![]() |
UNIVERS
15.3
UNIVERS base processing software API
|
#include <list_selector_wid.hpp>
Signals | |
| void | itemDoubleClicked (QListWidgetItem *item) |
Public Member Functions | |
| ListSelectorWid (QWidget *parent=0, Qt::WindowFlags f=0) | |
| virtual | ~ListSelectorWid () |
| virtual int | currentId () const |
| virtual QString | current () const |
| virtual void | setCurrent (int id) |
| virtual void | setCurrent (const QString &item) |
| virtual int | count () const |
| virtual void | add (const QString &item) |
| virtual void | add (const QStringList &items) |
| virtual void | remove (int id) |
| virtual void | clear () |
| void | setArbitraryNameSelectionMode (bool arbitrary_item_mode) |
Public Member Functions inherited from hds::SelectorWid | |
| SelectorWid (QWidget *parent=0, Qt::WindowFlags f=0) | |
| virtual | ~SelectorWid () |
| bool | findString () const |
| void | findString (bool on) |
| QLineEdit & | getFindLineEdit () |
Protected Slots | |
| virtual void | currentItemChangedSlot (QListWidgetItem *current, QListWidgetItem *previous) |
| virtual void | textEditedSlot (const QString &str) |
Protected Member Functions | |
| const QListWidget & | listWid () const |
| QListWidget & | listWid () |
Protected Member Functions inherited from hds::SelectorWid | |
| Ui::SelectorWid & | ui () |
| const Ui::SelectorWid & | ui () const |
Widget provides item selection from any list.
| hds::ListSelectorWid::ListSelectorWid | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
Default constructor of the widget.
|
virtual |
Destructor.
|
virtual |
Add one item.
|
virtual |
Add list of items.
|
virtual |
Clear all items.
Implements hds::SelectorWid.
|
virtual |
Number of items.
Implements hds::SelectorWid.
|
virtual |
Current item, null string if not selected.
|
virtual |
Id of current item (-1 if not selected).
Implements hds::SelectorWid.
|
protectedvirtualslot |
If any item selected.
|
signal |
Double click on item.
|
inlineprotected |
Access to the list widget.
|
inlineprotected |
Access to the list widget.
|
virtual |
Remove item, nothing happens if no such item.
Implements hds::SelectorWid.
| void hds::ListSelectorWid::setArbitraryNameSelectionMode | ( | bool | arbitrary_item_mode | ) |
Set mode for arbitrary name selection.
|
virtual |
Set current item.
Implements hds::SelectorWid.
|
virtual |
Set item with provided name as current item.
Do nothing if no such item.
|
protectedvirtualslot |
If text in line edit is to be changed.
1.8.5