UltraScan III
us_dmga_init.h
Go to the documentation of this file.
1 #ifndef US_DMGA_INIT_H
2 #define US_DMGA_INIT_H
3 
4 #include <QtGui>
5 
6 #include "us_extern.h"
7 #include "us_dmga_constr.h"
8 #include "us_widgets.h"
9 #include "us_widgets_dialog.h"
10 #include "us_help.h"
11 #include "us_model.h"
12 #include "us_model_gui.h"
13 
16 class US_DMGA_Init : public US_Widgets
17 {
18  Q_OBJECT
19 
20  public:
22  US_DMGA_Init();
23 
25  ~US_DMGA_Init();
26 
28 
29  signals:
32  void valueChanged( US_Hydrosim hydro );
33 
36  void done( void );
37 
40  void use_db( bool DB );
41 
42  private:
45 
47 
48  QVector< US_dmGA_Constraints::Constraint > attribs;
49  QVector< US_dmGA_Constraints::Constraint > flt_attrs;
50  QVector< US_dmGA_Constraints::Constraint > wrk_attrs;
51 
53 
55 
56  int dbg_level;
57  int sctm_id;
58 
59  QPushButton* pb_loadmodel;
60  QPushButton* pb_loadconstr;
61  QPushButton* pb_defmodel;
62  QPushButton* pb_defconstr;
63  QPushButton* pb_savemodel;
64  QPushButton* pb_saveconstr;
65  QPushButton* pb_help;
66  QPushButton* pb_close;
67 
68  QLineEdit* le_status;
69 
70  private slots:
71  void load_model ( void );
72  void define_model ( void );
73  void load_constraints ( void );
74  void define_constraints( void );
75  void save_model ( void );
76  void save_constraints ( void );
77  void update_disk_db ( bool );
78  void new_base_model ( US_Model );
79  void help( void ){ showhelp.show_help( "dmga_init.html" ); };
80 
81  protected:
82  virtual void timerEvent( QTimerEvent* );
83 };
84 #endif
85