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

#include "us_selectbox.h"

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

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< listInfowidgetList
 

Detailed Description

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.

Constructor & Destructor Documentation

US_ListwidgetBox::US_ListwidgetBox ( QWidget *  parent = 0,
int  fontAdjust = 0 
)

Generic constructor for the US_ListwidgetBox class.

Parameters
parentA reference to the parent dialog to which this US_ListwidgetBox belongs, or 0 if no parent.
fontAdjustAdjustment to default font size

Definition at line 78 of file us_selectbox.cpp.

US_ListwidgetBox::~US_ListwidgetBox ( )
inline

A null destructor.

Definition at line 113 of file us_selectbox.h.

Member Function Documentation

void US_ListwidgetBox::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 90 of file us_selectbox.cpp.

void US_ListwidgetBox::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 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.

Parameters
IDThe logical ID to set the current index to

Definition at line 116 of file us_selectbox.cpp.


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