Qucs-GUI  0.0.18
 All Data Structures 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>
22 #include <QRegExp>
23 //Added by qt3to4:
24 #include <Q3VBoxLayout>
25 
26 class Schematic;
27 class Optimize_Sim;
28 class Q3ListView;
29 class Q3ListViewItem;
30 class QCheckBox;
31 class QComboBox;
32 class QLineEdit;
33 class QPushButton;
34 class Q3VBoxLayout;
35 class QRegExpValidator;
36 class QDoubleValidator;
37 class QIntValidator;
38 
39 
40 class OptimizeDialog : public QDialog {
41 Q_OBJECT
42 public:
45 
46 private slots:
47  void slotOK();
48  void slotApply();
49  void slotCancel();
50  void slotAddVariable();
51  void slotDeleteVariable();
52  void slotAddGoal();
53  void slotDeleteGoal();
54  void slotEditGoal(Q3ListViewItem*);
55  void slotEditVariable(Q3ListViewItem*);
56  void slotChangeVarName(const QString&);
57  void slotChangeVarActive(bool);
58  void slotChangeVarInit(const QString&);
59  void slotChangeVarMin(const QString&);
60  void slotChangeVarMax(const QString&);
61  void slotChangeVarType(const QString&);
62  void slotChangeGoalName(const QString&);
63  void slotChangeGoalNum(const QString&);
64  void slotChangeGoalType(const QString&);
65 
66 private:
67  void createASCOFiles();
68 
69 public:
72  bool changed;
73 
74  Q3VBoxLayout *all;
75  QLineEdit *NameEdit, *VarNameEdit,
80  QCheckBox *VarActiveCheck;
82  Q3ListView *VarList, *GoalList;
83 
84  QRegExp Expr;
85  QRegExpValidator *Validator;
86  QDoubleValidator *numVal;
87  QIntValidator *intVal;
88 };
89 
90 #endif
QLineEdit * CostObjEdit
Q3VBoxLayout * all
QLineEdit * GoalNumEdit
QLineEdit * ParentsEdit
void slotChangeVarActive(bool)
QComboBox * SimEdit
Schematic * Doc
OptimizeDialog(Optimize_Sim *, Schematic *)
QDoubleValidator * numVal
QLineEdit * SeedEdit
void slotChangeVarName(const QString &)
QLineEdit * RefreshEdit
Q3ListView * VarList
QLineEdit * CrossEdit
QLineEdit * VarInitEdit
QLineEdit * GoalNameEdit
QComboBox * GoalTypeCombo
void slotChangeVarMin(const QString &)
void createASCOFiles()
void slotEditGoal(Q3ListViewItem *)
void slotEditVariable(Q3ListViewItem *)
void slotChangeGoalType(const QString &)
void slotChangeVarType(const QString &)
QLineEdit * VarMinEdit
Optimize_Sim * Comp
void slotChangeVarInit(const QString &)
QLineEdit * ConstEdit
void slotChangeGoalNum(const QString &)
QLineEdit * CostConEdit
QIntValidator * intVal
Q3ListView * GoalList
void slotChangeGoalName(const QString &)
QLineEdit * CostVarEdit
QLineEdit * VarMaxEdit
QLineEdit * VarNameEdit
QComboBox * VarTypeCombo
QRegExpValidator * Validator
void slotChangeVarMax(const QString &)
QComboBox * MethodCombo
QCheckBox * VarActiveCheck
QLineEdit * IterEdit
QLineEdit * NameEdit