![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
Helper class to manage menu and toolbar using CHierarchicalCommand. More...
#include <CCommandTools.h>
Static Public Member Functions | |
template<class MenuType > | |
static void | CreateMenu (const istdgui::CHierarchicalCommand &command, MenuType &result) |
Create menu according to the given commands. | |
static int | SetupToolbar (const istdgui::CHierarchicalCommand &command, QToolBar &result, int prevGroupId=ibase::ICommand::GI_NONE, int *counterPtr=nullptr) |
Fill a toolbar with the commands. | |
static int | SetupContextMenu (const istdgui::CHierarchicalCommand &command, QWidget &menuOwner, int prevGroupId=ibase::ICommand::GI_NONE, int *counterPtr=nullptr) |
Fill a context menu of a widget with the commands. | |
Helper class to manage menu and toolbar using CHierarchicalCommand.
Definition at line 31 of file CCommandTools.h.
|
static |
Create menu according to the given commands.
Definition at line 63 of file CCommandTools.h.
References ibase::ICommand::CF_EXCLUSIVE, ibase::ICommand::CF_GLOBAL_MENU, CreateMenu(), istdgui::CHierarchicalCommand::GetChild(), istdgui::CHierarchicalCommand::GetChildsCount(), istdgui::CHierarchicalCommand::GetGroupId(), iprm::CNameParam::GetName(), istdgui::CHierarchicalCommand::GetStaticFlags(), and ibase::ICommand::GI_NONE.
Referenced by CreateMenu().
|
static |
Fill a context menu of a widget with the commands.
|
static |
Fill a toolbar with the commands.
© Witold Gantzke and Kirill Lepskiy