Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
id_dialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  id_dialog.h
3  -------------
4  begin : Sat Oct 16 2004
5  copyright : (C) 2004 by Michael Margraf
6  email : michael.margraf@alumni.tu-berlin.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef ID_DIALOG_H
19 #define ID_DIALOG_H
20 
21 #include <QDialog>
22 #include <QRegExp>
23 //Added by qt3to4:
24 #include <Q3VBoxLayout>
25 
26 
27 class ID_Text;
28 class Q3ListView;
29 class QLineEdit;
30 class QCheckBox;
31 class Q3VBoxLayout;
32 class Q3ListViewItem;
33 class QRegExpValidator;
34 
35 
36 class ID_Dialog : public QDialog {
37 Q_OBJECT
38 public:
40  ~ID_Dialog();
41 
42 private:
44 
45  Q3VBoxLayout *v;
46  QLineEdit *Prefix;
47 
48  Q3ListView *ParamList;
49  QCheckBox *showCheck;
51 
52  QRegExp Expr;
53  QRegExpValidator *SubVal, *NameVal, *ValueVal, *DescrVal, *TypeVal;
54 
55 private slots:
56  void slotOk();
57  void slotAddParameter();
58  void slotRemoveParameter();
59  void slotEditParameter(Q3ListViewItem*);
60  void slotToggleShow(bool);
61  void slotNameChanged(const QString&);
62  void slotValueChanged(const QString&);
63  void slotDescrChanged(const QString&);
64  void slotTypeChanged(const QString&);
65 };
66 
67 #endif
QRegExpValidator * TypeVal
Definition: id_dialog.h:53
QRegExpValidator * NameVal
Definition: id_dialog.h:53
Q3ListView * ParamList
Definition: id_dialog.h:48
QRegExp Expr
Definition: id_dialog.h:52
void slotEditParameter(Q3ListViewItem *)
Definition: id_dialog.cpp:147
ID_Dialog(ID_Text *)
Definition: id_dialog.cpp:36
QLineEdit * DescriptionEdit
Definition: id_dialog.h:50
Q3VBoxLayout * v
Definition: id_dialog.h:45
void slotRemoveParameter()
Definition: id_dialog.cpp:198
ID_Text * idText
Definition: id_dialog.h:43
QRegExpValidator * ValueVal
Definition: id_dialog.h:53
void slotNameChanged(const QString &)
Definition: id_dialog.cpp:223
void slotDescrChanged(const QString &)
Definition: id_dialog.cpp:241
QRegExpValidator * SubVal
Definition: id_dialog.h:53
QLineEdit * ValueEdit
Definition: id_dialog.h:50
void slotValueChanged(const QString &)
Definition: id_dialog.cpp:232
QLineEdit * ParamNameEdit
Definition: id_dialog.h:50
QLineEdit * Prefix
Definition: id_dialog.h:46
void slotAddParameter()
Definition: id_dialog.cpp:167
void slotTypeChanged(const QString &)
Definition: id_dialog.cpp:250
void slotOk()
Definition: id_dialog.cpp:259
QCheckBox * showCheck
Definition: id_dialog.h:49
QLineEdit * TypeEdit
Definition: id_dialog.h:50
QRegExpValidator * DescrVal
Definition: id_dialog.h:53
void slotToggleShow(bool)
Definition: id_dialog.cpp:214