UltraScan III
us_combine_models.h
Go to the documentation of this file.
1 #ifndef US_COMBMODEL_H
2 #define US_COMBMODEL_H
3 
4 #include <QtGui>
5 
6 #include "us_extern.h"
7 #include "us_widgets.h"
8 #include "us_db2.h"
9 #include "us_help.h"
10 #include "us_model.h"
11 #include "us_settings.h"
12 
13 #ifndef DbgLv
14 #define DbgLv(a) if(dbg_level>=a)qDebug()
15 #endif
16 
18 {
19  Q_OBJECT
20 
21  public:
23 
24  private:
25 
26  QList< US_Model > models; // List of selected models
27 
28  QStringList mdescs; // List of descriptions of models
29 
31 
33 
34  QPushButton* pb_prefilt;
35  QPushButton* pb_add;
36  QPushButton* pb_reset;
37  QPushButton* pb_help;
38  QPushButton* pb_close;
39  QPushButton* pb_save;
40 
41  QLineEdit* le_prefilt;
42 
44 
45  QListWidget* lw_models;
46 
47  int ntrows;
48  int dbg_level;
49 
50  bool rbtn_click;
51  bool changed;
52  bool runsel;
53  bool latest;
54 
55  QString mfilter;
56  QString run_name;
57  QString cmodel_name;
58 
59  QStringList pfilts;
60 
61  private slots:
62 
63  void add_models ( void );
64  void reset ( void );
65  void save ( void );
66  void update_disk_db( bool );
67  void select_filt ( void );
68 
69  void help ( void )
70  { showHelp.show_help( "combine_models.html" ); };
71 
72  protected:
73  bool eventFilter( QObject*, QEvent* );
74 };
75 #endif