Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

QIconOptions.h

Go to the documentation of this file.
00001 /*
00002  * QIconOptions.h
00003  *
00004  * Copyright (C) 2001 Thomas Woerner, Michael Meissner
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  *
00020  * As a special exception to the GPL, the QGLViewer authors (Markus
00021  * Janich, Michael Meissner, Richard Guenther, Alexander Buck and Thomas
00022  * Woerner) give permission to link this program with Qt (non-)commercial
00023  * edition, and distribute the resulting executable, without including
00024  * the source code for the Qt (non-)commercial edition in the source
00025  * distribution.
00026  *
00027  */
00028 
00029 
00030 
00031 #ifndef _QICONOPTIONS_H
00032 #define _QICONOPTIONS_H
00033 
00034 
00035 // Qt
00037 #include <qdialog.h>
00038 #include <qlineedit.h>
00039 
00040 
00047 class QIconOptions : public QDialog
00048 { 
00049    Q_OBJECT
00050 
00051    public:
00052 
00054       QIconOptions(QWidget* parent=0, const char* name=0, 
00055                    bool modal=FALSE, WFlags fl=0);
00056 
00058       ~QIconOptions() {}
00059 
00061       double getArrowSize();
00062 
00064       double getFrustumSize();
00065 
00066    signals:
00067 
00068       void sigArrowChanged(double);
00069       void sigFrustumChanged(double);
00070 
00071    public slots:
00072 
00074       void sltArrowSize(const QString &qText) {
00075         emit(sigArrowChanged(qText.toDouble()));
00076       };
00077 
00079       void sltFrustumSize(const QString &qText) {
00080         emit(sigFrustumChanged(qText.toDouble()));
00081       };
00082 
00083    protected:
00084 
00085       QLineEdit *m_pArrowSize;
00086       QLineEdit *m_pFrustumSize;
00087 };
00088 
00089 
00090 #endif /* QICONOPTIONS_H */

Generated on Mon Oct 20 17:24:13 2003 for QGLViewer by doxygen 1.3.4