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 */ 00021 00022 00023 00024 #ifndef _QICONOPTIONS_H 00025 #define _QICONOPTIONS_H 00026 00027 00028 // Qt 00030 #include <qdialog.h> 00031 #include <qlineedit.h> 00032 00033 00040 class QIconOptions : public QDialog 00041 { 00042 Q_OBJECT 00043 00044 public: 00045 00047 QIconOptions(QWidget* parent=0, const char* name=0, 00048 bool modal=FALSE, WFlags fl=0); 00049 00051 ~QIconOptions() {} 00052 00054 double getArrowSize(); 00055 00057 double getFrustumSize(); 00058 00059 signals: 00060 00061 void sigArrowChanged(double); 00062 void sigFrustumChanged(double); 00063 00064 public slots: 00065 00067 void sltArrowSize(const QString &qText) { 00068 emit(sigArrowChanged(qText.toDouble())); 00069 }; 00070 00072 void sltFrustumSize(const QString &qText) { 00073 emit(sigFrustumChanged(qText.toDouble())); 00074 }; 00075 00076 protected: 00077 00078 QLineEdit *m_pArrowSize; 00079 QLineEdit *m_pFrustumSize; 00080 }; 00081 00082 00083 #endif /* QICONOPTIONS_H */