00001 /* 00002 * QSceneTreeViewer.h 00003 * $Id: QSceneTreeViewer.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 00051 00061 class QSceneTreeViewer : public QGLExaminerViewer { 00062 Q_OBJECT 00063 00064 public: 00065 00068 QSceneTreeViewer(const CCamera &homecam, QWidget *parent=0, 00069 const char *name=0, const QGLWidget *shareWidget=0, 00070 WFlags f=0, bool viewertype=true, 00071 const QGLFormat &format=QGLFormat::defaultFormat()) 00072 : QGLExaminerViewer(homecam, parent, name, shareWidget, f, viewertype, format) {}; 00073 00075 virtual ~QSceneTreeViewer() {}; 00076 00077 signals: 00078 00080 void sigMyKey(int); 00081 00082 00083 protected: 00084 00086 virtual void keyPressEvent(QKeyEvent *event); 00087 00088 private: 00089 }; 00090 00091 #endif // QMYVIEWER__H