|
ACF $AcfVersion:0$
|
Helper class to manage menu and toolbar using CHierarchicalCommand. More...
#include <CCommandTools.h>
Static Public Member Functions | |
| template<class MenuType > | |
| static void | CreateMenu (const iqtgui::CHierarchicalCommand &command, MenuType &result, const QVector< int > &includedGroups=QVector< int >(), const QVector< int > &excludedGroups=QVector< int >()) |
| Create menu according to the given commands. | |
| static int | SetupToolbar (const iqtgui::CHierarchicalCommand &command, QToolBar &result, int prevGroupId=ibase::ICommand::GI_NONE, const QVector< int > &includedGroups=QVector< int >(), const QVector< int > &excludedGroups=QVector< int >()) |
| Fill a toolbar with the commands. | |
| static int | SetupContextMenu (const iqtgui::CHierarchicalCommand &command, QWidget &menuOwner, int prevGroupId=ibase::ICommand::GI_NONE, const QVector< int > &includedGroups=QVector< int >(), const QVector< int > &excludedGroups=QVector< int >()) |
| Fill a context menu of a widget with the commands. | |
Helper class to manage menu and toolbar using CHierarchicalCommand.
Definition at line 38 of file CCommandTools.h.
|
static |
Create menu according to the given commands.
Definition at line 82 of file CCommandTools.h.
References ibase::ICommand::CF_EXCLUSIVE, ibase::ICommand::CF_GLOBAL_MENU, iqtgui::CHierarchicalCommand::GetChild(), iqtgui::CHierarchicalCommand::GetChildsCount(), iqtgui::CHierarchicalCommand::GetGroupId(), iprm::CNameParam::GetName(), iqtgui::CHierarchicalCommand::GetStaticFlags(), ibase::ICommand::GI_NONE, and NULL.
|
static |
Fill a context menu of a widget with the commands.
|
static |
Fill a toolbar with the commands.