GUI-related module assets. More...
#include <SUIT_ShortcutMgr.h>

Public Member Functions | |
| ~SUIT_ShortcutModuleAssets ()=default | |
| int | depth () const |
| SUIT_ShortcutAssets::Type | type () const |
| const QString & | bestName (const QString &theLang=QString()) const |
| QString | description () const |
Public Member Functions inherited from SUIT_ShortcutAssets | |
| virtual | ~SUIT_ShortcutAssets ()=0 |
| const std::map< QString, std::shared_ptr< SUIT_ShortcutItemAssets > > & | children () const |
| std::shared_ptr< SUIT_ShortcutItemAssets > | findDescendantItem (const QString &theRelativeID) const |
| std::shared_ptr< SUIT_ShortcutItemAssets > | descendantItem (const QString &theRelativeID, bool theIsAction=true) |
| bool | fromJSON (const QJsonObject &theJsonObject, bool theParseDescendants=true, const std::set< QString > &theLangs={}) |
| bool | fromJSON (const QJsonObject &theJsonObject, const QString &theRelativeID, const std::set< QString > &theLangs={}) |
| Parses only the branch of descdendants, which leads to the item with theRelativeID. More... | |
| void | toJSON (QJsonObject &oJsonObject) const |
| virtual void | merge (const SUIT_ShortcutAssets &theOther, bool theOverride) |
| virtual void | merge (SUIT_ShortcutAssets &&theOther, bool theOverride) |
| void | loadIcon (bool theReload=false) |
| void | forEachDescendant (const std::function< void(SUIT_ShortcutItemAssets &)> &theFunc) const |
| Iterates all descendants. *this is not iterated. More... | |
| void | forEachDescendant (const std::function< void(const SUIT_ShortcutItemAssets &)> &theFunc) const |
| Iterates all descendants. *this is not iterated. More... | |
| void | forEachDescendant (const std::function< void(std::shared_ptr< SUIT_ShortcutItemAssets >)> &theFunc) const |
| Iterates all descendants. *this is not iterated. More... | |
| void | forEachDescendant (const std::function< void(std::shared_ptr< const SUIT_ShortcutItemAssets >)> &theFunc) const |
| Iterates all descendants. *this is not iterated. More... | |
| QString | toString () const |
| QStringList | getLangs () const |
| void | clearAllLangsExcept (const QString &theLang) |
| const LangDependentAssets * | bestLangDependentAssets (QString theLang=QString()) const |
| virtual const QString & | bestToolTip (const QString &theLang=QString()) const |
Static Public Member Functions | |
| static std::shared_ptr< SUIT_ShortcutModuleAssets > | create (const QString &theModuleID) |
Private Member Functions | |
| SUIT_ShortcutModuleAssets (const QString &theModuleID) | |
| SUIT_ShortcutModuleAssets (const SUIT_ShortcutModuleAssets &)=delete | |
| SUIT_ShortcutModuleAssets & | operator= (const SUIT_ShortcutModuleAssets &)=delete |
Additional Inherited Members | |
Public Types inherited from SUIT_ShortcutAssets | |
| enum class | Type { Module , Item } |
Public Attributes inherited from SUIT_ShortcutAssets | |
| const QString | myModuleID |
| std::map< QString, LangDependentAssets > | myLangDependentAssets |
| QString | myIconPath |
| QIcon | myIcon |
Static Public Attributes inherited from SUIT_ShortcutAssets | |
| static const QString | PROP_ID_LANG_DEPENDENT_ASSETS = "langDependentAssets" |
| static const QString | PROP_ID_ICON_PATH = "iconPath" |
| static const QString | PROP_ID_CHILDREN = "children" |
Protected Member Functions inherited from SUIT_ShortcutAssets | |
| SUIT_ShortcutAssets (const QString &theModuleID) | |
GUI-related module assets.
|
private |
|
privatedelete |
|
default |
|
virtual |
| theLang | If empty, current language is requested. |
Implements SUIT_ShortcutAssets.
References SUIT_ShortcutAssets::bestLangDependentAssets(), and SUIT_ShortcutAssets::myModuleID.
|
static |
References SUIT_ShortcutMgr::isModuleIDValid(), and SUIT_ShortcutModuleAssets().
|
inlinevirtual |
Implements SUIT_ShortcutAssets.
|
virtual |
Implements SUIT_ShortcutAssets.
References SUIT_ShortcutAssets::myModuleID.
|
privatedelete |
|
inlinevirtual |
Implements SUIT_ShortcutAssets.
References SUIT_ShortcutAssets::Module.