My Project  0.0.16
QUCS Mapping
 All Classes Namespaces 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.h>
22 #include <qregexp.h>
23 
24 
25 class ID_Text;
26 class QListView;
27 class QLineEdit;
28 class QCheckBox;
29 class QVBoxLayout;
30 class QListViewItem;
31 class QRegExpValidator;
32 
33 
34 class ID_Dialog : public QDialog {
35 Q_OBJECT
36 public:
38  ~ID_Dialog();
39 
40 private:
41  ID_Text *idText;
42 
43  QVBoxLayout *v;
44  QLineEdit *Prefix;
45 
46  QListView *ParamList;
47  QCheckBox *showCheck;
48  QLineEdit *ParamNameEdit, *ValueEdit, *DescriptionEdit, *TypeEdit;
49 
50  QRegExp Expr;
51  QRegExpValidator *SubVal, *NameVal, *ValueVal, *DescrVal, *TypeVal;
52 
53 private slots:
54  void slotOk();
55  void slotAddParameter();
56  void slotRemoveParameter();
57  void slotEditParameter(QListViewItem*);
58  void slotToggleShow(bool);
59  void slotNameChanged(const QString&);
60  void slotValueChanged(const QString&);
61  void slotDescrChanged(const QString&);
62  void slotTypeChanged(const QString&);
63 };
64 
65 #endif