UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
seismic_sel_dlg.hpp
1 /* seismic_sel_dlg.hpp */
2 /* $Id$ */
3 #ifndef __seismic_sel_dlg_hpp
4 #define __seismic_sel_dlg_hpp
5 
6 #include <hds_widgets/selection_dialog.hpp>
7 #include <hds_widgets/list_selector_wid.hpp>
8 
10 namespace hds
11 {
14  {
15  Q_OBJECT
16 
17  public:
18 
19  using hds::SelectionDialog::operator();
20 
23  SeismicSelDlg(QWidget *parent = 0, Qt::WindowFlags f = 0);
24 
27  SeismicSelDlg(const QString &project, QWidget *parent = 0, Qt::WindowFlags f = 0);
28 
31  SeismicSelDlg(const QString &project, bool new_seismic_flag,
32  QWidget *parent = 0, Qt::WindowFlags f = 0);
33 
35  virtual ~SeismicSelDlg();
36 
37 
40  int operator()(const QString &prj);
41 
42 
46  virtual void update();
47 
48 
50  QString current() const;
51 
54  void setCurrent(const QString &name);
55 
56 
58  QString project() const;
59 
61  void setProject(const QString &project);
62 
63 
65  void setNewSeismicSelectionMode(const bool flag);
66 
67  protected:
68 
71 
73  QString m_project;
74 
76  bool m_new_seismic_flag;
77 
79  void setup_gui(Qt::WindowFlags f);
80 
83 
85  const ListSelectorWid& selWid() const {return *mp_sel_wid;}
86 
87  protected slots:
88 
90  void itemDoubleClickedSlot(QListWidgetItem *item);
91  };
92 };
93 
94 #endif /* seismic_sel_dlg.hpp */
void itemDoubleClickedSlot(QListWidgetItem *item)
virtual void update()
virtual ~SeismicSelDlg()
SeismicSelDlg(QWidget *parent=0, Qt::WindowFlags f=0)
void setup_gui(Qt::WindowFlags f)
void setProject(const QString &project)
Definition: selection_dialog.hpp:14
QString project() const
ListSelectorWid & selWid()
Definition: seismic_sel_dlg.hpp:82
const ListSelectorWid & selWid() const
Definition: seismic_sel_dlg.hpp:85
QString m_project
Definition: seismic_sel_dlg.hpp:73
Definition: list_selector_wid.hpp:14
Definition: seismic_sel_dlg.hpp:13
ListSelectorWid * mp_sel_wid
Definition: seismic_sel_dlg.hpp:70
QString current() const
void setCurrent(const QString &name)
void setNewSeismicSelectionMode(const bool flag)