UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
scale_options_dialog.hpp
1 /* scale_options_dialog.hpp */
2 /* $Id$ */
3 #ifndef __scale_options_dialog_hpp
4 #define __scale_options_dialog_hpp
5 
6 #include <set>
7 
8 #include <hds_widgets/ui_scale_options_dialog.h>
9 #include <hds_widgets/dialog.hpp>
10 #include <hds_widgets/scale_widget.hpp>
11 
13 namespace hds
14 {
17  {
18  Q_OBJECT
19 
20  public:
21 
23  ScaleOptionsDialog(QWidget *parent = 0, Qt::WindowFlags f = 0);
24 
26  virtual ~ScaleOptionsDialog();
27 
28 
30  virtual void attachScaleWidget(hds::ScaleWidget *psw);
31 
33  virtual void detachAll();
34 
36  virtual void show();
37 
38  protected:
39 
41  std::set<hds::ScaleWidget*> m_scales_set;
42 
43  void setButtonColor(QPushButton* button, const QColor& color);
44 
45  signals:
46 
48  void scaleOptionChanged();
49 
50  protected slots:
51 
52  void updateScalePlacement(int id);
53  void updateScaleFont(bool checked);
54  void updateScaleColor(bool checked);
55 
56  private:
57 
60  };
61 }; // hds
62 
63 #endif /* scale_options_dialog.hpp */
ScaleOptionsDialog(QWidget *parent=0, Qt::WindowFlags f=0)
Definition: ui_scale_options_dialog.h:99
virtual void attachScaleWidget(hds::ScaleWidget *psw)
std::set< hds::ScaleWidget * > m_scales_set
Definition: scale_options_dialog.hpp:41
Definition: scale_widget.hpp:16
virtual void detachAll()
Definition: scale_options_dialog.hpp:16
Definition: dialog.hpp:15