UltraScan III
us_selectbox_ra.h
Go to the documentation of this file.
1 #ifndef US_SELECTBOX_H
3 #define US_SELECTBOX_H
4 
5 #include <QtGui>
6 
7 #include "us_extern.h"
8 
9 struct listInfo
10 {
11  QString ID;
12  QString text;
13 };
14 
24 {
25  public:
31  US_SelectBaseRa ();
32 
35 
36  protected:
37  QList< listInfo > widgetList;
38 
39 };
40 
48 class US_SelectBoxRa : public QComboBox, public US_SelectBaseRa
49 {
50  public:
56  US_SelectBoxRa ( QWidget* parent = 0 );
57 
60 
66  void addOption ( listInfo& );
67 
73  void addOptions ( QList< listInfo >& );
74 
78  void load ( void );
79 
85  void setLogicalIndex ( int );
86 
90  int getLogicalID ( void );
91 };
92 
100 class US_ListwidgetBoxRa : public QListWidget, public US_SelectBaseRa
101 {
102  public:
109  US_ListwidgetBoxRa ( QWidget* parent = 0, int fontAdjust = 0 );
110 
113 
118  void addOption ( listInfo& );
119 
124  void addOptions ( QList< listInfo >& );
125 
129  void load ( void );
130 
135  void setLogicalIndex ( int );
136 
140  int getLogicalID ( void );
141 };
142 
143 #endif