#include <SUIT_ShortcutEditor.h>
|
| | SUIT_ShortcutTree (SUIT_ShortcutTabWidget *theParent, std::shared_ptr< const SUIT_ShortcutModuleAssets > theAssets, const QString &theLang) |
| |
| | SUIT_ShortcutTree (const SUIT_ShortcutTree &)=delete |
| |
| SUIT_ShortcutTree & | operator= (const SUIT_ShortcutTree &)=delete |
| |
| void | sortRecursive (QTreeWidgetItem *theParentItem) |
| |
| bool | updateItems (bool theHighlightModified) |
| |
| bool | updateChildrenItemsRecursively (bool theHighlightModified, QTreeWidgetItem *const theItem, bool theItemIsInvisibleRoot=false) |
| |
| bool | updateItemShortcut (SUIT_ShortcutTreeItem *const theItem, const std::map< QString, QKeySequence > &theModuleShortcuts, bool theHighlightModified) const |
| |
| SUIT_ShortcutTreeItem * | findItem (QStringList theRelativeIDTokens, const QTreeWidgetItem *theAncestorItem=nullptr) const |
| |
| std::set< SUIT_ShortcutTreeItem *, std::function< bool(SUIT_ShortcutTreeItem *, SUIT_ShortcutTreeItem *)> > | getSortedChildren (QTreeWidgetItem *theParentItem) |
| |
| void | insertChild (QTreeWidgetItem *theParentItem, std::set< SUIT_ShortcutTreeItem *, std::function< bool(SUIT_ShortcutTreeItem *, SUIT_ShortcutTreeItem *)>> &theSortedChildren, SUIT_ShortcutTreeItem *theChildItem) |
| | Inserts theChildItem to theParentItem and theSortedChildren. Does not check whether theSortedChildren are actually child items of theParentItem. Does not check whether current item sort schema is same as one of theSortedChildren. More...
|
| |
◆ ColumnIdx
| Enumerator |
|---|
| Name | |
| KeySequence | |
| ToolTip | |
| NotExist | |
◆ SortKey
| Enumerator |
|---|
| ID | |
| Name | |
| ToolTip | |
| KeySequence | |
◆ SUIT_ShortcutTree() [1/2]
◆ SUIT_ShortcutTree() [2/2]
◆ ~SUIT_ShortcutTree()
| virtual SUIT_ShortcutTree::~SUIT_ShortcutTree |
( |
| ) |
|
|
virtualdefault |
◆ findItem()
◆ getSortedChildren()
◆ insertChild()
Inserts theChildItem to theParentItem and theSortedChildren. Does not check whether theSortedChildren are actually child items of theParentItem. Does not check whether current item sort schema is same as one of theSortedChildren.
References SUIT_tools::distanceFromBegin().
◆ moduleID()
| const QString & SUIT_ShortcutTree::moduleID |
( |
| ) |
const |
◆ name()
| const QString & SUIT_ShortcutTree::name |
( |
| ) |
const |
◆ onHeaderItemClicked
| void SUIT_ShortcutTree::onHeaderItemClicked |
( |
int |
theColIdx | ) |
|
|
privateslot |
◆ onItemCollapsed
◆ onItemDoubleClicked
| void SUIT_ShortcutTree::onItemDoubleClicked |
( |
QTreeWidgetItem * |
theWidgetItem, |
|
|
int |
theColIdx |
|
) |
| |
|
privateslot |
◆ onItemExpanded
◆ operator=()
◆ parentTabWidget()
◆ setLang()
| void SUIT_ShortcutTree::setLang |
( |
const QString & |
theLang | ) |
|
◆ shortcutContainer()
◆ sort()
◆ sortRecursive()
◆ toColumnIdx()
◆ toFoundActionTreeColIdx()
◆ toolTip()
| const QString & SUIT_ShortcutTree::toolTip |
( |
| ) |
const |
◆ toSortKey()
◆ updateChildrenItemsRecursively()
| bool SUIT_ShortcutTree::updateChildrenItemsRecursively |
( |
bool |
theHighlightModified, |
|
|
QTreeWidgetItem *const |
theItem, |
|
|
bool |
theItemIsInvisibleRoot = false |
|
) |
| |
|
private |
- Returns
- True, if at least one key sequence is modified (differs from applied one).
References SUIT_ShortcutMgr::currentLang(), SUIT_ShortcutMgr::get(), SUIT_ShortcutContainer::getModuleShortcutsInversed(), getSortedChildren(), insertChild(), moduleID(), myAssets, ShCutDbg(), shortcutContainer(), and updateItemShortcut().
◆ updateItems()
| bool SUIT_ShortcutTree::updateItems |
( |
bool |
theHighlightModified | ) |
|
|
private |
◆ updateItemShortcut()
| bool SUIT_ShortcutTree::updateItemShortcut |
( |
SUIT_ShortcutTreeItem *const |
theItem, |
|
|
const std::map< QString, QKeySequence > & |
theModuleShortcuts, |
|
|
bool |
theHighlightModified |
|
) |
| const |
|
private |
◆ SUIT_ShortcutTabWidget
◆ DEFAULT_SORT_SCHEMA
◆ myAssets
◆ myIsPopulated
| bool SUIT_ShortcutTree::myIsPopulated |
|
private |
◆ myLeadingSortKey
◆ myName
| QString SUIT_ShortcutTree::myName |
|
private |
◆ myParentTabWidget
◆ mySortSchema
◆ myToolTip
| QString SUIT_ShortcutTree::myToolTip |
|
private |
The documentation for this class was generated from the following files: