Qucs-GUI
0.0.19
|
00001 /*************************************************************************** 00002 arrowdialog.h 00003 --------------- 00004 begin : Fri Nov 28 2003 00005 copyright : (C) 2003 by Michael Margraf 00006 email : michael.margraf@alumni.tu-berlin.de 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef ARROWDIALOG_H 00019 #define ARROWDIALOG_H 00020 00021 #include <QDialog> 00022 00023 class QLineEdit; 00024 class QGridLayout; 00025 class QPushButton; 00026 class QComboBox; 00027 class QIntValidator; 00028 00029 00030 class ArrowDialog : public QDialog { 00031 Q_OBJECT 00032 public: 00033 ArrowDialog(QWidget *parent=0, const char *name=0); 00034 ~ArrowDialog(); 00035 00036 void SetComboBox(Qt::PenStyle); 00037 00038 private slots: 00039 void slotSetColor(); 00040 void slotSetStyle(int); 00041 00042 public: 00043 // TODO: I'm not sure whether declaring all this as public is really a good idea :-( 00044 // data encapsulation => make this stuff private & provide getter & setter methods... 00045 QLineEdit *LineWidth, *HeadWidth, *HeadLength; 00046 QPushButton *ColorButt; 00047 QComboBox *StyleBox, *ArrowStyleBox; 00048 Qt::PenStyle LineStyle; 00049 00050 QGridLayout *all; 00051 QIntValidator *val100; 00052 }; 00053 00054 #endif