ACF $AcfVersion:0$
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, 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.
 

Detailed Description

Helper class to manage menu and toolbar using CHierarchicalCommand.

Definition at line 38 of file CCommandTools.h.

Member Function Documentation

◆ CreateMenu()

template<class MenuType >
void iqtgui::CCommandTools::CreateMenu ( const iqtgui::CHierarchicalCommand command,
MenuType &  result,
const QVector< int > &  includedGroups = QVector<int>(),
const QVector< int > &  excludedGroups = QVector<int>() 
)
static

◆ SetupContextMenu()

static int iqtgui::CCommandTools::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 >() 
)
static

Fill a context menu of a widget with the commands.

◆ SetupToolbar()

static int iqtgui::CCommandTools::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 >() 
)
static

Fill a toolbar with the commands.


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