UltraScan III
List of all members | Public Member Functions
US_SelectBox Class Reference

#include "us_selectbox.h"

Inheritance diagram for US_SelectBox:
Inheritance graph
[legend]
Collaboration diagram for US_SelectBox:
Collaboration graph
[legend]

Public Member Functions

 US_SelectBox (QWidget *parent=0)
 Generic constructor for the US_SelectBox class. More...
 
 ~US_SelectBox ()
 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< listInfowidgetList
 

Detailed Description

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.h.

Constructor & Destructor Documentation

US_SelectBox::US_SelectBox ( QWidget *  parent = 0)

Generic constructor for the US_SelectBox class.

Parameters
parentA reference to the parent dialog to which this US_SelectBox belongs, or 0 if no parent.

Definition at line 13 of file us_selectbox.cpp.

US_SelectBox::~US_SelectBox ( )
inline

A null destructor.

Definition at line 59 of file us_selectbox.h.

Member Function Documentation

void US_SelectBox::addOption ( listInfo option)

A function to add one option to the widget.

Parameters
optionA variable of type listInfo, containing an ID and corresponding text information

Definition at line 26 of file us_selectbox.cpp.

void US_SelectBox::addOptions ( QList< listInfo > &  options)

A function to load the widget with appropriate information.

Parameters
optionsA QList of type listInfo, containing the ID's and corresponding text information

Definition at line 31 of file us_selectbox.cpp.

int US_SelectBox::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.cpp.

void US_SelectBox::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.cpp.

void US_SelectBox::setLogicalIndex ( int  ID)

A function to set the current index of the combo box to a logical ID.

Parameters
IDThe logical ID to set the current index to

Definition at line 54 of file us_selectbox.cpp.


The documentation for this class was generated from the following files: