#include "us_selectbox_ra.h"
Public Member Functions | |
US_SelectBoxRa (QWidget *parent=0) | |
Generic constructor for the US_SelectBoxRa class. More... | |
~US_SelectBoxRa () | |
A null destructor. More... | |
void | addOption (listInfo &) |
A function to add one option to the widget. More... | |
void | addOptions (QList< listInfo > &) |
A function to load the widget with appropriate information. More... | |
void | load (void) |
A function to load the contents of the widget from the information it reads in widgetList. More... | |
void | setLogicalIndex (int) |
A function to set the current index of the combo box to a logical ID. More... | |
int | getLogicalID (void) |
A function to retrieve the logical ID of the option the combo box is currently pointing to. More... | |
Public Member Functions inherited from US_SelectBaseRa | |
US_SelectBaseRa () | |
Generic constructor for the US_SelectBaseRa class. The base class itself does not populate or manipulate the widget's contents—this would be done in the derived class. More... | |
~US_SelectBaseRa () | |
A null destructor. More... | |
Additional Inherited Members | |
Protected Attributes inherited from US_SelectBaseRa | |
QList< listInfo > | widgetList |
This class provides the ability to create a combo box that can keep track of its contents. The ability to set the box to display the contents associated with a logical ID (for instance, an ID from a database table), and to retrieve the current logical ID are provided.
Definition at line 48 of file us_selectbox_ra.h.
US_SelectBoxRa::US_SelectBoxRa | ( | QWidget * | parent = 0 | ) |
Generic constructor for the US_SelectBoxRa class.
parent | A reference to the parent dialog to which this US_SelectBoxRa belongs, or 0 if no parent. |
Definition at line 13 of file us_selectbox_ra.cpp.
|
inline |
A null destructor.
Definition at line 59 of file us_selectbox_ra.h.
void US_SelectBoxRa::addOption | ( | listInfo & | option | ) |
A function to add one option to the widget.
option | A variable of type listInfo, containing an ID and corresponding text information |
Definition at line 26 of file us_selectbox_ra.cpp.
void US_SelectBoxRa::addOptions | ( | QList< listInfo > & | options | ) |
A function to load the widget with appropriate information.
options | A QList of type listInfo, containing the ID's and corresponding text information |
Definition at line 31 of file us_selectbox_ra.cpp.
int US_SelectBoxRa::getLogicalID | ( | void | ) |
A function to retrieve the logical ID of the option the combo box is currently pointing to.
Definition at line 69 of file us_selectbox_ra.cpp.
void US_SelectBoxRa::load | ( | void | ) |
A function to load the contents of the widget from the information it reads in widgetList.
Definition at line 43 of file us_selectbox_ra.cpp.
void US_SelectBoxRa::setLogicalIndex | ( | int | ID | ) |
A function to set the current index of the combo box to a logical ID.
ID | The logical ID to set the current index to |
Definition at line 54 of file us_selectbox_ra.cpp.