UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
selector_wid.hpp
1 /* selector_wid.hpp */
2 /* $Id$ */
3 #ifndef __selector_wid_hpp
4 #define __selector_wid_hpp
5 
6 #include <QWidget>
7 
8 #include <hds_widgets/ui_selector_wid.h>
9 
11 namespace hds
12 {
14  class SelectorWid : public QWidget
15  {
16  Q_OBJECT
17 
18  public:
19 
22  SelectorWid(QWidget *parent = 0, Qt::WindowFlags f = 0);
23 
25  virtual ~SelectorWid();
26 
27 
29  virtual int currentId() const = 0;
30 
32  virtual void setCurrent(int id) = 0;
33 
34 
36  virtual int count() const = 0;
37 
38 
40  virtual void remove(int id) = 0;
41 
43  virtual void clear() = 0;
44 
45 
47  bool findString() const;
48 
50  void findString(bool on);
51 
52 
54  QLineEdit& getFindLineEdit() {return *(ui().findLineEdit);}
55 
56  protected:
57 
59  Ui::SelectorWid& ui() {return m_ui;}
60 
62  const Ui::SelectorWid& ui() const {return m_ui;}
63 
64  private:
65 
67  Ui::SelectorWid m_ui;
68  };
69 };
70 
71 #endif /* selector_wid.hpp */
Ui::SelectorWid & ui()
Definition: selector_wid.hpp:59
virtual void clear()=0
QLineEdit & getFindLineEdit()
Definition: selector_wid.hpp:54
const Ui::SelectorWid & ui() const
Definition: selector_wid.hpp:62
bool findString() const
SelectorWid(QWidget *parent=0, Qt::WindowFlags f=0)
virtual ~SelectorWid()
virtual int count() const =0
virtual int currentId() const =0
Definition: selector_wid.hpp:14
virtual void setCurrent(int id)=0
Definition: ui_selector_wid.h:64