UltraScan III
us_exclude_profile.h
Go to the documentation of this file.
1 #ifndef US_EXCLUDE_PROFILE_H
2 #define US_EXCLUDE_PROFILE_H
3 
4 #include <QtGui>
5 #include <qwt_counter.h>
6 
7 #include "us_extern.h"
8 #include "us_widgets_dialog.h"
9 #include "us_help.h"
10 
11 #ifndef DbgLv
12 #define DbgLv(a) if(dbg_level>=a)qDebug()
13 #endif
14 
16 {
17  Q_OBJECT
18 
19  public:
20  US_ExcludeProfile( QList< int > );
21 
22  signals:
23  void update_exclude_profile( QList< int > );
24  void finish_exclude_profile( QList< int > );
25  void cancel_exclude_profile( void );
26 
27  private:
28  QwtCounter* ct_start;
29  QwtCounter* ct_stop;
30  QwtCounter* ct_nth;
31 
32  QLineEdit* le_remaining;
33  QLineEdit* le_excluded;
34 
35  int dbg_level;
36  bool finished;
37  QList< int > original;
38  QList< int > excludes;
39  QList< int > current;
40 
42 
43  private slots:
44  void update ( double=0.0 );
45  void update_start( double );
46  void update_stop ( double );
47  void terminate ( void );
48  void apply ( void );
49  void done ( void );
50  void reset ( void );
51  void help ( void )
52  { showHelp.show_help( "manual/edit_exclude_profile.html" ); };
53 };
54 #endif