UltraScan III
us_colorgradient.h
Go to the documentation of this file.
1 #ifndef US_COLORGRAD_H
3 #define US_COLORGRAD_H
4 
5 #include <QtGui>
6 
7 #include "us_extern.h"
8 #include "us_widgets.h"
9 #include "us_help.h"
10 
12 class MyButton : public QPushButton
13 {
14  Q_OBJECT
15 
16  public:
19  MyButton( int );
20 
22  int which;
23 
24  signals:
26  void click( int );
27 
28  private slots:
29  void pushed( void );
30 };
31 
33 
42 {
43  Q_OBJECT
44 
45 public:
52  US_ColorGradient( QWidget* = 0, Qt::WindowFlags = 0 );
53 
54 private:
55 
56  bool have_load;
57  bool have_save;
58  bool new_mods;
59  bool is_reset;
60 
61  int width_lb;
62  int height_lb;
63  int margin;
64 
66 
67  QLabel* lb_banner1;
68  QLabel* lb_nsteps;
69  QLabel* lb_gradient;
70 
71  QPushButton* pb_help;
72  QPushButton* pb_reset;
73  QPushButton* pb_load;
74  QPushButton* pb_show;
75  QPushButton* pb_save;
76  QPushButton* pb_close;
77 
78  MyButton* pb_c[ 11 ];
79 
80  QwtCounter* ct_c[ 11 ];
81 
82  QwtCounter* ct_nsteps;
83  QwtCounter* ct_stindex;
84 
85  QPixmap* pm_gradient;
86 
87  QString in_filename;
88  QString out_filename;
89  QString img_filename;
90  QString grad_dir;
91 
92 public slots:
93 
94  void show_gradient ( void );
95 
96 private slots:
97 
98  void c_click ( int );
99  void c_cnt_change ( double );
100  void update_steps ( double );
101  void load_gradient ( void );
102  void save_gradient ( void );
103  void safe_close ( void );
104  void update_banner ( void );
105  void reset ( void );
106  void help ( void )
107  { showHelp.show_help( "manual/colorgradient.html" ); };
108 
109 };
110 
111 #endif