Class sh::actions::ActionCategory¶
-
class
sh::actions
::
ActionCategory
¶ Action categories are used for grouping actions in menus.
They provide the primary grouping in the toolbar an the context menus. Per default, the categories
"create"
,"open"
and"manage"
exist.Public Functions
-
ActionCategory
(QString name, QString label, QString icon)¶ Constructed only by the infrastructure and made available otherwise.
-
QString
name
()¶ The category name.
-
QString
label
()¶ The category label.
-
QString
icon
()¶ The category icon.
Public Static Functions
-
std::shared_ptr<ActionCategory>
getByName
(QString name)¶ Gets a category by name.
-
std::shared_ptr<ActionCategory>
add
(QString name, QString label, QString icon)¶ Adds a new category.
-
QList<std::shared_ptr<ActionCategory>>
categories
()¶ Returns a list of all existing categories.
-
void
doInitialize
()¶
-
void
doShutdown
()¶
Private Static Attributes
-
QList<std::shared_ptr<ActionCategory>>
_categories
¶
-