My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
optimizedialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  optimizedialog.h
3  ------------------
4  begin : Sun Jul 30 2006
5  copyright : (C) 2006 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 OPTIMIZEDIALOG_H
19 #define OPTIMIZEDIALOG_H
20 
21 #include <qdialog.h>
22 #include <qregexp.h>
23 
24 class Schematic;
25 class Optimize_Sim;
26 class QListView;
27 class QListViewItem;
28 class QCheckBox;
29 class QComboBox;
30 class QLineEdit;
31 class QPushButton;
32 class QVBoxLayout;
33 class QRegExpValidator;
34 class QDoubleValidator;
35 class QIntValidator;
36 
37 
38 class OptimizeDialog : public QDialog {
39 Q_OBJECT
40 public:
43 
44 private slots:
45  void slotOK();
46  void slotApply();
47  void slotCancel();
48  void slotAddVariable();
49  void slotDeleteVariable();
50  void slotAddGoal();
51  void slotDeleteGoal();
52  void slotEditGoal(QListViewItem*);
53  void slotEditVariable(QListViewItem*);
54  void slotChangeVarName(const QString&);
55  void slotChangeVarActive(bool);
56  void slotChangeVarInit(const QString&);
57  void slotChangeVarMin(const QString&);
58  void slotChangeVarMax(const QString&);
59  void slotChangeVarType(const QString&);
60  void slotChangeGoalName(const QString&);
61  void slotChangeGoalNum(const QString&);
62  void slotChangeGoalType(const QString&);
63 
64 private:
65  void createASCOFiles();
66 
67 public:
70  bool changed;
71 
72  QVBoxLayout *all;
73  QLineEdit *NameEdit, *VarNameEdit,
78  QCheckBox *VarActiveCheck;
80  QListView *VarList, *GoalList;
81 
82  QRegExp Expr;
83  QRegExpValidator *Validator;
84  QDoubleValidator *numVal;
85  QIntValidator *intVal;
86 };
87 
88 #endif