00001 /* 00002 * QSimpleViewer.h 00003 * $Id: QSimpleViewer.h,v 1.2 2001/10/01 10:14:49 mjanich Exp $ 00004 * 00005 * Copyright (C) 1999, 2000 Markus Janich, Michael Meissner 00006 * 00007 * This program is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 2 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00020 * 00021 */ 00022 00023 // Description : Class inherits from QGLExaminerViewer 00024 // Purpose : Overloads the catch key method and emits an own key signal 00025 00026 00027 00028 #ifndef QMYVIEWER__H 00029 #define QMYVIEWER__H 00030 00031 00032 // Qt 00034 #include <qlabel.h> 00035 #include <qslider.h> 00036 #include <qpushbutton.h> 00037 #include <qlayout.h> 00038 00039 00040 // Own 00042 #include "QGLExaminerViewer.h" 00043 00044 00045 // Defines 00047 #define ZOOMSCALING 100.0 // used for translating slidervalue to real (double) value. 00048 00049 00050 00060 class QSimpleViewer : public QGLExaminerViewer { 00061 Q_OBJECT 00062 00063 public: 00064 00067 QSimpleViewer(const CCamera &homecam, QWidget *parent=0, 00068 const char *name=0, const QGLWidget *shareWidget=0, 00069 WFlags f=0, bool viewertype=true, 00070 const QGLFormat &format=QGLFormat::defaultFormat()) 00071 : QGLExaminerViewer(homecam, parent, name, shareWidget, f, viewertype, format) {}; 00072 00074 virtual ~QSimpleViewer() {}; 00075 00076 signals: 00077 00079 void sigMyKey(int); 00080 00081 00082 protected: 00083 00085 virtual void keyPressEvent(QKeyEvent *event); 00086 00087 private: 00088 }; 00089 00090 #endif // QMYVIEWER__H