UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ss_options_dialog.hpp
1 /* useisdoc_seldlg.hpp */
2 /* $Id$ */
3 #ifndef __hds_ss_options_dialog_hpp
4 #define __hds_ss_options_dialog_hpp
5 
6 #include <vector>
7 
8 #include <hds_widgets/ui_ss_options_dialog.h>
9 #include <hds_widgets/dialog.hpp>
10 #include <zq4/zd_seismic_set.hpp>
11 
13 namespace hds
14 {
17  {
18  Q_OBJECT
19 
20  public:
21 
23  SSOptionsDialog(QWidget *parent = 0, Qt::WindowFlags f = 0);
24 
26  virtual ~SSOptionsDialog();
27 
31  void attachSeismicDoc(ZdSeismicSet *pdoc);
32 
34  void detachSeismicDoc();
35 
38  void setHeaderWords(const std::vector<int> &hdr_words_set);
39 
41  const std::vector<int>& getHeaderWords() const;
42 
43 
46  static QString
47  coordParser(ZqbType type,
48  const std::vector<ZdCoordObjStream::CoordArgVal> &args);
49 
52  static std::vector<ZdCoordObjStream::CoordArgVal>
53  coordParser(ZqbType type,
54  const QString &str);
55 
57  void applyOrders() const;
58 
60  void applyOrders(ZdSeismicSet *pdoc) const;
61 
62  signals:
63 
65  void seismicDocChanged();
66 
67  protected:
68 
70  virtual void buttonClicked(const hds::Dialog::Button &button_type);
71 
72  protected slots:
73 
75  virtual void sort1ToolButtonClicked(bool checked = false);
76 
78  virtual void sort2ToolButtonClicked(bool checked = false);
79 
81  virtual void sort3ToolButtonClicked(bool checked = false);
82 
83  private:
84 
87 
89  ZdSeismicSet *mp_seismic_doc;
90 
92  std::vector<int> m_hdr_words_set;
93 
96  static QVector< QPair<double, double> >
97  parse_double_ranges_str(const QString &str);
98 
99  // some useful private methods
100  void gui_prepare_hw_items();
101  void gui_setup_orders();
102 
103  int get_coord_id(int id) const;
104  static void reg_exp_parser(ZqbType type,
105  const QString &str,
106  const QRegExp &reg_exp,
107  std::vector<ZdCoordObjStream::CoordArgVal> &args);
108  };
109 };
110 
111 #endif /* hds_ss_options_dialog.hpp */
virtual ~SSOptionsDialog()
const std::vector< int > & getHeaderWords() const
static QString coordParser(ZqbType type, const std::vector< ZdCoordObjStream::CoordArgVal > &args)
virtual void sort2ToolButtonClicked(bool checked=false)
void setHeaderWords(const std::vector< int > &hdr_words_set)
SSOptionsDialog(QWidget *parent=0, Qt::WindowFlags f=0)
void attachSeismicDoc(ZdSeismicSet *pdoc)
Definition: dialog.hpp:15
Definition: ui_ss_options_dialog.h:255
virtual void sort1ToolButtonClicked(bool checked=false)
Definition: zd_seismic_set.hpp:17
Button
Definition: dialog.hpp:22
void applyOrders() const
Definition: ss_options_dialog.hpp:16
virtual void buttonClicked(const hds::Dialog::Button &button_type)
virtual void sort3ToolButtonClicked(bool checked=false)