Static Public Member Functions | List of all members
iqtgui::CCommandTools Class Reference

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)
 Create menu according to the given commands. More...
 
static int SetupToolbar (const iqtgui::CHierarchicalCommand &command, QToolBar &result, int prevGroupId=ibase::ICommand::GI_NONE)
 Fill a toolbar with the commands. More...
 
static int SetupContextMenu (const iqtgui::CHierarchicalCommand &command, QWidget &menuOwner, int prevGroupId=ibase::ICommand::GI_NONE)
 Fill a context menu of a widget with the commands. More...
 

Detailed Description

Helper class to manage menu and toolbar using CHierarchicalCommand.

Definition at line 34 of file CCommandTools.h.

Member Function Documentation

template<class MenuType >
void iqtgui::CCommandTools::CreateMenu ( const iqtgui::CHierarchicalCommand command,
MenuType &  result 
)
static
static int iqtgui::CCommandTools::SetupContextMenu ( const iqtgui::CHierarchicalCommand command,
QWidget &  menuOwner,
int  prevGroupId = ibase::ICommand::GI_NONE 
)
static

Fill a context menu of a widget with the commands.

static int iqtgui::CCommandTools::SetupToolbar ( const iqtgui::CHierarchicalCommand command,
QToolBar &  result,
int  prevGroupId = ibase::ICommand::GI_NONE 
)
static

Fill a toolbar with the commands.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy