An extension of QListWidget to provide Undo/Redo functionality.
More...
An extension of QListWidget to provide Undo/Redo functionality.
◆ ModuleBase_ListView()
| ModuleBase_ListView::ModuleBase_ListView |
( |
QWidget * |
theParent = 0, |
|
|
const QString & |
theObjectName = QString(), |
|
|
const QString & |
theToolTip = QString() |
|
) |
| |
◆ ~ModuleBase_ListView()
| virtual ModuleBase_ListView::~ModuleBase_ListView |
( |
| ) |
|
|
inlinevirtual |
◆ getControl()
Returns current control.
- Returns
- list view instance
◆ addItem()
| void ModuleBase_ListView::addItem |
( |
const QString & |
theTextValue, |
|
|
const int |
theIndex |
|
) |
| |
Adds a new list widget item to the end of the list and connect it to the given index.
- Parameters
-
| theTextValue | value visualized in the view |
| theIndex | an item internal index |
◆ hasItem()
| bool ModuleBase_ListView::hasItem |
( |
const QString & |
theTextValue | ) |
const |
Returns True if the control already contains an item with the given text.
- Parameters
-
| theTextValue | tex of item to find |
◆ getSelectedIndices()
| void ModuleBase_ListView::getSelectedIndices |
( |
std::set< int > & |
theIndices | ) |
|
Returns list of internal list view item indices.
- Parameters
-
| theIndices | an output container for indices |
◆ selectIndices()
| void ModuleBase_ListView::selectIndices |
( |
const std::set< int > & |
theIndices | ) |
|
Selects items with indices.
- Parameters
-
◆ removeSelectedItems()
| void ModuleBase_ListView::removeSelectedItems |
( |
| ) |
|
Removes selected items from the list widget.
◆ removeItems()
| void ModuleBase_ListView::removeItems |
( |
std::set< int > & |
theIndices | ) |
|
Remove items contain parameter indices.
- Parameters
-
◆ restoreSelection()
| void ModuleBase_ListView::restoreSelection |
( |
const QModelIndexList & |
theIndices | ) |
|
Set selected items if possible.
- Parameters
-
| theIndices | container of indices to be selected |
◆ updateActionsStatus()
| void ModuleBase_ListView::updateActionsStatus |
( |
| ) |
|
Update enable/disable state of context menu actions.
◆ onCopyItem
| void ModuleBase_ListView::onCopyItem |
( |
| ) |
|
|
protectedslot |
Slot for copy command in a list pop-up menu.
◆ onListSelection
| void ModuleBase_ListView::onListSelection |
( |
| ) |
|
|
protectedslot |
Slot is called on selection of list of selected items.
◆ deleteActionClicked
| void ModuleBase_ListView::deleteActionClicked |
( |
| ) |
|
|
signal |
Signal about delete action click.
◆ myListControl
◆ myCopyAction
| QAction* ModuleBase_ListView::myCopyAction |
|
protected |
A copy action for pop-up menu in a list control.
◆ myDeleteAction
| QAction* ModuleBase_ListView::myDeleteAction |
|
protected |
A delete action for pop-up menu in a list control.