Provides single command for interaction with user.
StaticFlags
Flags indicating attributes of command.
@ CF_CONTEXT_MENU
Enable to use this command in context menu.
@ CF_PERMANENT
If this is enabled command will be permanent accessible, even if context is not active.
@ CF_EXCLUSIVE
Enable exclusive selection of this command with other commands in the same node with the same group I...
@ CF_TOOLBAR
Enable to use this command in application toolbar.
@ CF_TOOLBOX
Enable to use this command in separated toolbox.
@ CF_ONOFF
Inform that this command can be turned on or off (checkable).
@ CF_GLOBAL_MENU
Enable to use this command in global application menu.
virtual QByteArray GetCommandId() const =0
Get command ID used to identify the command in the command hierarchy.
virtual int GetPriority() const =0
Get priority in the same group.
virtual int GetGroupId() const =0
Get group ID used to decide if separator should be used.
virtual bool Execute(istd::IPolymorphic *contextPtr)=0
Execute this command.
virtual int GetStaticFlags() const =0
Get static flags of this command.
Interface for objects which can be enabled/disabled.
Interface for an object containing a name.
Base interface for all used interfaces and implementations.
Common interface to define the hierarchical graph structures.
This namespace contains basic implementations of standard primitives on the component level.
istd::TIHierarchical< ICommand > IHierarchicalCommand
Hierarchical command structure used to create dynamic menu structures.