Inherits MLABSimpleWidgetControl.
Public Slots | |
Scripting access | |
| void | changeItem (int idx, const QString &text, const QString &pixmapFile) |
| void | changeItem (int idx, const QString &text) |
| void | clearItems () |
| int | countItems () |
| int | currentItem () |
| void | insertItem (const QString &text, int idx) |
| void | insertItem (const QString &text) |
| void | insertItems (const QStringList &items, int idx) |
| void | insertItems (const QStringList &items) |
| void | insertPixmapItem (const QString &pixmapFile, const QString &text, int idx) |
| void | insertPixmapItem (const QString &pixmapFile, const QString &text) |
| bool | isItemSelected (int idx) |
| QString | itemText (int idx) |
| void | removeItem (int idx) |
| int | selectedItem () |
| void | selectItem (int idx, bool selected) |
| void | setCurrentItem (int idx) |
| void | setItems (const QStringList &items) |
| void | setSelectedItem (int idx) |
Control for showing a ListBox.
MDL reference: ListBox
| void MLABListBoxControl::changeItem | ( | int | idx, | |
| const QString & | text, | |||
| const QString & | pixmapFile | |||
| ) | [slot] |
change given item
| void MLABListBoxControl::changeItem | ( | int | idx, | |
| const QString & | text | |||
| ) | [slot] |
change given item
| void MLABListBoxControl::clearItems | ( | ) | [slot] |
clear all items
| int MLABListBoxControl::countItems | ( | ) | [slot] |
returns number of items
| int MLABListBoxControl::currentItem | ( | ) | [slot] |
index of current item
| void MLABListBoxControl::insertItem | ( | const QString & | text, | |
| int | idx | |||
| ) | [slot] |
insert item (at given idx)
| void MLABListBoxControl::insertItem | ( | const QString & | text | ) | [slot] |
insert item (at end of list)
| void MLABListBoxControl::insertItems | ( | const QStringList & | items, | |
| int | idx | |||
| ) | [slot] |
insert list of items
| void MLABListBoxControl::insertItems | ( | const QStringList & | items | ) | [slot] |
insert items (at end of list)
| void MLABListBoxControl::insertPixmapItem | ( | const QString & | pixmapFile, | |
| const QString & | text, | |||
| int | idx | |||
| ) | [slot] |
insert item (at given idx)
| void MLABListBoxControl::insertPixmapItem | ( | const QString & | pixmapFile, | |
| const QString & | text | |||
| ) | [slot] |
insert item (at end of list)
| bool MLABListBoxControl::isItemSelected | ( | int | idx | ) | [slot] |
returns if item is selected
| QString MLABListBoxControl::itemText | ( | int | idx | ) | [slot] |
get text at index
| void MLABListBoxControl::removeItem | ( | int | idx | ) | [slot] |
remove item
| int MLABListBoxControl::selectedItem | ( | ) | [slot] |
index of selected item
| void MLABListBoxControl::selectItem | ( | int | idx, | |
| bool | selected | |||
| ) | [slot] |
select an item (on/off)
| void MLABListBoxControl::setCurrentItem | ( | int | idx | ) | [slot] |
set the current item
| void MLABListBoxControl::setItems | ( | const QStringList & | items | ) | [slot] |
clear and set given items
| void MLABListBoxControl::setSelectedItem | ( | int | idx | ) | [slot] |
select an item
1.5.8