#include <TxqListDlog.h>
Inheritance diagram for TxqListDlog::

Public Slots | |
| virtual bool | close (bool alsoDelete) |
| Close the dialog frame. More... | |
Signals | |
| virtual void | itemSelected (int idNumber) |
| signal emitted whenver a item is selected. More... | |
| virtual void | cancelButtonPressed () |
| signal emitted whenever the Cancel button is pressed. More... | |
| virtual void | okButtonPressed () |
| Signal emitted whenever the Ok button is pressed. More... | |
| virtual void | applyButtonPressed () |
| Signal emitted whenever the Apply button is pressed. More... | |
| virtual void | applyButtonPressed (int) |
| Signal emitted whenever the Apply button is pressed. More... | |
Public Methods | |
| TxqListDlog (QWidget *parent=0, const QString &okButtonText="&Ok", const QString &applyButtonText="&Apply", const QString &cancelButtonText="&Cancel", const char *name=0, bool modal=FALSE, WFlags fl=0) | |
| Constructs a TxqListDlog which is a child of 'parent', with the name 'name' and widget flags set to 'f'. More... | |
| ~TxqListDlog () | |
| The destructor will destroy the object and free any allocated resources. More... | |
| void | insertItem (const QString s, bool bold=false) |
| Insert a new item into the QListBox. More... | |
| void | selectItem (int idNumber, bool bold=false) |
| Select the item with given id number and set its properties to bold. More... | |
| void | sort (bool order=true) |
| Sort the list box in ascending or descending order. More... | |
Protected Slots | |
| virtual void | selectItem (QListBoxItem *listItem) |
| Slot used whenver the return or mouse click is heard on an item. More... | |
| virtual void | okClicked () |
| Slot used whenever the Ok button is clicked. More... | |
| virtual void | applyClicked () |
| Slot used whenever the Apply button is clicked. More... | |
| virtual void | cancelClicked () |
| Slot used whenever the Cancel button is clicked. More... | |
| virtual void | closeWindow () |
| Slot used to close the window. More... | |
Protected Methods | |
| QListBox* | getListBox () |
| Get the list box. More... | |
Protected Attributes | |
| QVBoxLayout* | dlogLayout |
| The layout for this QDialog class. More... | |
| QHBoxLayout* | buttonLayout |
| The layout for the buttons. More... | |
| QListBox* | listBox |
| The QListBox to set the text items. More... | |
| QPushButton* | buttonCancel |
| The Cancel button. More... | |
| QPushButton* | buttonOk |
| The Ok button. More... | |
| QPushButton* | buttonApply |
| The Apply button. More... | |
Private Attributes | |
| TXSTD::map<QString, int, less< QString> > | nameMap |
| The index map of name and id number to be used in sorting. More... | |
| TXSTD::map<int, int> | idMap |
| The index map of un-sorted id number and sorted id number such that int id = idMap[number] will return the sorted id number. More... | |
| int | masterIdNumber |
| The master id number before sorting. More... | |
| bool | sorted |
| The bool flag for sorting Set to true if the QListBox is sorted. More... | |
The text is set to bold when highlighted by clicking on the text or hitting return. It adds a Ok, Apply, and Cancel button to the dialog frame. The text for these buttons can be changed.
Definition at line 40 of file TxqListDlog.h.
|
|
Constructs a TxqListDlog which is a child of 'parent', with the name 'name' and widget flags set to 'f'. The dialog will by default be modeless, unless you set 'modal' to TRUE to construct a modal dialog.
|
|
|
The destructor will destroy the object and free any allocated resources.
|
|
|
Signal emitted whenever the Apply button is pressed. Signal includes the window Id number. |
|
|
Signal emitted whenever the Apply button is pressed.
|
|
|
Slot used whenever the Apply button is clicked.
|
|
|
signal emitted whenever the Cancel button is pressed.
|
|
|
Slot used whenever the Cancel button is clicked.
|
|
|
Close the dialog frame.
|
|
|
Slot used to close the window.
|
|
|
Get the list box.
Definition at line 164 of file TxqListDlog.h. |
|
|
Insert a new item into the QListBox.
|
|
|
signal emitted whenver a item is selected.
|
|
|
Signal emitted whenever the Ok button is pressed.
|
|
|
Slot used whenever the Ok button is clicked.
|
|
|
Slot used whenver the return or mouse click is heard on an item.
|
|
|
Select the item with given id number and set its properties to bold.
|
|
|
Sort the list box in ascending or descending order.
|
|
|
The Apply button.
Definition at line 194 of file TxqListDlog.h. |
|
|
The Cancel button.
Definition at line 184 of file TxqListDlog.h. |
|
|
The layout for the buttons.
Definition at line 174 of file TxqListDlog.h. |
|
|
The Ok button.
Definition at line 189 of file TxqListDlog.h. |
|
|
The layout for this QDialog class.
Definition at line 169 of file TxqListDlog.h. |
|
|
The index map of un-sorted id number and sorted id number such that int id = idMap[number] will return the sorted id number.
Definition at line 208 of file TxqListDlog.h. |
|
|
The QListBox to set the text items.
Definition at line 179 of file TxqListDlog.h. |
|
|
The master id number before sorting.
Definition at line 213 of file TxqListDlog.h. |
|
|
The index map of name and id number to be used in sorting.
Definition at line 202 of file TxqListDlog.h. |
|
|
The bool flag for sorting Set to true if the QListBox is sorted.
Definition at line 219 of file TxqListDlog.h. |
Copyright Tech-X Corporation, all rights reserved.