UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
sa_axes_dialog.hpp
1 /* sa_axes_dialog.hpp */
2 /* $Id$ */
3 #ifndef __sa_axes_dialog_hpp
4 #define __sa_axes_dialog_hpp
5 
6 #include <hds_widgets/dialog.hpp>
7 #include <hds_widgets/sa_options_controller.hpp>
8 #include <hds_widgets/ui_sa_axes_dialog.h>
9 #include <zq4/zd_seismic_set.hpp>
10 
12 namespace hds
13 {
16  {
17  Q_OBJECT
18 
19  public:
20 
22  SAAxesDialog(QWidget *parent = 0, Qt::WindowFlags f = 0);
23 
25  virtual ~SAAxesDialog();
26 
27 
30  virtual void attachSeismicArea(hds::SeismicArea *psa);
31 
34  void setHeaderWords(ZdSeismicFile &seismic_doc,
35  const std::vector<int> &hdr_words_set = std::vector<int>());
36 
38  void applyOptions(hds::SeismicArea &sa) const;
39 
40 
42  virtual void show();
43 
45  virtual void showModal();
46 
47  signals:
48 
50  void optionsChanged();
51 
52  protected:
53 
55  std::vector<int> m_hdr_words_set;
56 
58  virtual void buttonClicked(const hds::Dialog::Button &button_type);
59 
60  protected slots:
61 
62  void taCheckBoxClicked(bool checked);
63  void taColorToolButtonClicked(bool clicked);
64  void taFontToolButtonClicked(bool clicked);
65  void taCheckBoxStateChanged(int state);
66 
67  void ca1CheckBoxClicked(bool checked);
68  void ca1ColorToolButtonClicked(bool clicked);
69  void ca1FontToolButtonClicked(bool clicked);
70  void ca1ComboBoxIndexChanged(int id);
71 
72  void ca2CheckBoxClicked(bool checked);
73  void ca2ColorToolButtonClicked(bool clicked);
74  void ca2FontToolButtonClicked(bool clicked);
75 
76  void ca3CheckBoxClicked(bool checked);
77  void ca3ColorToolButtonClicked(bool clicked);
78  void ca3FontToolButtonClicked(bool clicked);
79 
80  void ca4CheckBoxClicked(bool checked);
81  void ca4ColorToolButtonClicked(bool clicked);
82  void ca4FontToolButtonClicked(bool clicked);
83 
84  void ca5CheckBoxClicked(bool checked);
85  void ca5ColorToolButtonClicked(bool clicked);
86  void ca5FontToolButtonClicked(bool clicked);
87 
88  private:
89 
91  Ui::SAAxesDialog m_ui;
92 
94  mutable QFont m_ta_font, m_ca1_font, m_ca2_font, m_ca3_font, m_ca4_font, m_ca5_font;
95 
96  void gui_prepare_hw_items(ZdSeismicFile &seismic_doc);
97 
98  void gui_prepare_axes(hds::SeismicArea &sa);
99 
100  void gui_prepare_axis(size_t id,
101  hds::SeismicArea &sa,
102  QCheckBox &check_box,
103  QComboBox &coord_combo,
104  QToolButton &color_button,
105  QToolButton &font_button,
106  QFont &axis_font);
107 
108  void get_axis_vis_mode(QComboBox &combo,
109  QToolButton &color_tool_button,
110  QFont &axis_font,
111  hds::SeismicArea::CoordAxisVisMode &axis_vis_mode) const;
112 
113  int get_coord_id(int id) const;
114 
115  void set_tool_button_color(const QColor &color, QToolButton &button) const;
116  };
117 };
118 
119 #endif /* sa_axes_dialog.hpp */
virtual void buttonClicked(const hds::Dialog::Button &button_type)
virtual void attachSeismicArea(hds::SeismicArea *psa)
virtual void showModal()
virtual ~SAAxesDialog()
virtual void show()
SAAxesDialog(QWidget *parent=0, Qt::WindowFlags f=0)
void applyOptions(hds::SeismicArea &sa) const
Definition: zd_seismic_file.hpp:17
void setHeaderWords(ZdSeismicFile &seismic_doc, const std::vector< int > &hdr_words_set=std::vector< int >())
Definition: dialog.hpp:15
std::vector< int > m_hdr_words_set
Definition: sa_axes_dialog.hpp:55
Definition: seismic_area.hpp:20
Definition: seismic_area.hpp:25
Definition: sa_options_controller.hpp:14
Definition: sa_axes_dialog.hpp:15
Definition: ui_sa_axes_dialog.h:289
Button
Definition: dialog.hpp:22