#include "us_selectbox.h"
Public Member Functions | |
US_ListwidgetBox (QWidget *parent=0, int fontAdjust=0) | |
Generic constructor for the US_ListwidgetBox class. More... | |
~US_ListwidgetBox () | |
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_SelectBase | |
US_SelectBase () | |
Generic constructor for the US_SelectBase class. The base class itself does not populate or manipulate the widget's contents—this would be done in the derived class. More... | |
~US_SelectBase () | |
A null destructor. More... | |
Additional Inherited Members | |
Protected Attributes inherited from US_SelectBase | |
QList< listInfo > | widgetList |
This class provides the ability to create a list widget that can keep track of its contents. The ability to set the widget 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 100 of file us_selectbox.h.
US_ListwidgetBox::US_ListwidgetBox | ( | QWidget * | parent = 0 , |
int | fontAdjust = 0 |
||
) |
Generic constructor for the US_ListwidgetBox class.
parent | A reference to the parent dialog to which this US_ListwidgetBox belongs, or 0 if no parent. |
fontAdjust | Adjustment to default font size |
Definition at line 78 of file us_selectbox.cpp.
|
inline |
A null destructor.
Definition at line 113 of file us_selectbox.h.
void US_ListwidgetBox::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 90 of file us_selectbox.cpp.
void US_ListwidgetBox::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 95 of file us_selectbox.cpp.
int US_ListwidgetBox::getLogicalID | ( | void | ) |
A function to retrieve the logical ID of the option the combo box is currently pointing to.
Definition at line 131 of file us_selectbox.cpp.
void US_ListwidgetBox::load | ( | void | ) |
A function to load the contents of the widget from the information it reads in widgetList.
Definition at line 105 of file us_selectbox.cpp.
void US_ListwidgetBox::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 116 of file us_selectbox.cpp.