ICF 3.0.5.47
Technical documentation of ICF Libraries
istdgui::CCommandTools Class Reference

Helper class to manage menu and toolbar using CHierarchicalCommand. More...

#include <CCommandTools.h>

Collaboration diagram for istdgui::CCommandTools:

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.
 

Detailed Description

Helper class to manage menu and toolbar using CHierarchicalCommand.

Definition at line 31 of file CCommandTools.h.

Member Function Documentation

◆ CreateMenu()

◆ SetupContextMenu()

static int istdgui::CCommandTools::SetupContextMenu ( const istdgui::CHierarchicalCommand & command,
QWidget & menuOwner,
int prevGroupId = ibase::ICommand::GI_NONE,
int * counterPtr = nullptr )
static

Fill a context menu of a widget with the commands.

◆ SetupToolbar()

static int istdgui::CCommandTools::SetupToolbar ( const istdgui::CHierarchicalCommand & command,
QToolBar & result,
int prevGroupId = ibase::ICommand::GI_NONE,
int * counterPtr = nullptr )
static

Fill a toolbar with the commands.


The documentation for this class was generated from the following file:

© Witold Gantzke and Kirill Lepskiy