My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
changedialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  changedialog.h
3  ----------------
4  begin : Fri Jul 22 2005
5  copyright : (C) 2005 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 CHANGEDIALOG_H
19 #define CHANGEDIALOG_H
20 
21 #include <qdialog.h>
22 #include <qregexp.h>
23 
24 class Schematic;
25 class QLineEdit;
26 class QComboBox;
27 class QGridLayout;
28 class QRegExpValidator;
29 
30 
31 class ChangeDialog : public QDialog {
32  Q_OBJECT
33 public:
35  ~ChangeDialog();
36 
37 private slots:
38  void slotButtReplace();
39 
40 private:
41  bool matches(const QString&);
42 
43  Schematic *Doc;
44  QGridLayout *all; // the mother of all widgets
45  QRegExpValidator *Validator, *ValRestrict;
46  QRegExp Expr;
47  QLineEdit *CompNameEdit, *NewValueEdit;
48  QComboBox *CompTypeEdit, *PropNameEdit;
49 };
50 
51 #endif