My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
labeldialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  labeldialog.h
3  ---------------
4  begin : Thu Dec 09 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 LABELDIALOG_H
19 #define LABELDIALOG_H
20 
21 #include <qdialog.h>
22 #include <qregexp.h>
23 
24 class QLabel;
25 class QLineEdit;
26 class QPushButton;
27 class QGridLayout;
28 class QRegExpValidator;
29 class WireLabel;
30 
31 
32 class LabelDialog : public QDialog {
33 Q_OBJECT
34 public:
35  LabelDialog(WireLabel*, QWidget *parent=0);
36  ~LabelDialog();
37 
38  QLineEdit *NodeName, *InitValue;
39 
40 private slots:
41  void slotExtend();
42  void slotOk();
43  void slotCancel();
44 
45 private:
46  QPushButton *ButtonOk, *ButtonCancel, *ButtonMore;
47  QGridLayout *gbox;
48  QRegExpValidator *Validator1, *Validator2;
49  QRegExp Expr1, Expr2;
50  QLabel *Label2;
51 
52  WireLabel *pLabel;
53 };
54 
55 #endif