swift
|
Wraps a QAction with extra metadata to allow proper sorting for a QMenu. More...
Public Member Functions | |
CMenuAction (const QIcon &icon, const QString &title, const QString &path=pathNone(), bool separator=false) | |
Constructor. | |
CMenuAction (const QString &path=pathNone(), bool separator=false) | |
Constructor. | |
CMenuAction (QAction *action, const QString &path=pathNone(), bool separator=false) | |
Constructor. | |
void | setTitle (const QString &title) |
Title. | |
void | setIcon (const QIcon &icon) |
Icon. | |
void | setPath (const QString &path) |
Path. | |
QAction * | getQAction () const |
Action. | |
bool | isCheckableQAction () const |
Checkable QAction. | |
void | setActionChecked (bool checked) |
Set a checkable action, QAction::setChecked. | |
bool | isActionEnabled () const |
Enabled action? | |
void | setActionEnabled (bool enabled) |
Enable action (allow gray out) | |
const QString & | getPath () const |
Path. | |
QString | getLastPathPart () const |
Last part of the path, e.g. "Foo/Bar" -> "Bar". | |
const QString & | getTitle () const |
Title. | |
bool | hasTitle () const |
Has title? | |
bool | isSubMenu () const |
Is menu? | |
bool | isSeparator () const |
Is separator? | |
void | setSubMenu (bool menu) |
Is menu? | |
bool | hasNoPathWithSeparator () const |
No path and separator wanted. | |
bool | hasNoPath () const |
No path? | |
const QIcon & | getIcon () const |
Icon. | |
QPixmap | getPixmap () const |
Icon as pixmap. | |
bool | hasIcon () const |
Has icon? | |
void | setEnabled (bool enabled) |
Set enabled / disabled (allows to gray out) | |
operator QAction * () const | |
Conversion. | |
Static Public Member Functions | |
Menu path definitions | |
static const QString & | pathNone () |
No key. | |
static const QString & | pathSeparator () |
Path converter into separator. | |
static const QString & | pathSimulator () |
Simulator sub menu. | |
static const QString & | pathSimulatorModelsReload () |
Simulator sub menu reload models. | |
static const QString & | pathSimulatorModelsClearCache () |
Simulator sub menu reload models. | |
static const QString & | pathModel () |
Model. | |
static const QString & | pathModelSet () |
Model set. | |
static const QString & | pathModelSetNew () |
Model set, new set. | |
static const QString & | pathModelConsolidate () |
Consolidate. | |
static const QString & | pathModelStash () |
Stash sub menu. | |
static const QString & | pathModelStashEditor () |
Stash editor sub menu. | |
static const QString & | pathVPilot () |
vPilot data More... | |
static const QString & | pathLog () |
Log functionality. | |
static const QString & | pathFont () |
Font menus (font size etc.) | |
static const QString & | pathClientCom () |
Client COM related. | |
static const QString & | pathClientFlightPlan () |
Client flight plan. | |
static const QString & | pathClientFollowInSim () |
Client follow in simulator. | |
static const QString & | pathClientSimulation () |
Client simulation related. | |
static const QString & | pathClientSimulationDisplay () |
Client simulation/display related. | |
static const QString & | pathClientSimulationRender () |
Client simulation/display related. | |
static const QString & | pathClientSimulationTransfer () |
Client simulation/display related. | |
static const QString & | pathClientModelSet () |
Client model set related. | |
static const QString & | pathClientNetwork () |
Network data. | |
static const QString & | pathViewDatabase () |
Database. | |
static const QString & | pathViewAddRemove () |
Select add remove. | |
static const QString & | pathViewSelection () |
View selection mode. | |
static const QString & | pathViewOrder () |
Order submenus. | |
static const QString & | pathViewResize () |
View resizing. | |
static const QString & | pathViewWordWrap () |
View word wrap. | |
static const QString & | pathViewClearHighlighting () |
View clear highlighting. | |
static const QString & | pathViewFilter () |
View filter. | |
static const QString & | pathViewUpdates () |
View update. | |
static const QString & | pathViewLoadSave () |
View load/save. | |
static const QString & | pathViewCutPaste () |
View cut and paste. | |
static const QString & | pathDockWidgetNested () |
Nested dock widget. | |
static const CMenuAction & | subMenuDatabase () |
Predefined sub sub menus. | |
static const CMenuAction & | subMenuSimulator () |
Predefined sub sub menus. | |
static const CMenuAction & | subMenuConsolidateModels () |
Predefined sub sub menus. | |
static const CMenuAction & | subMenuCom () |
Predefined sub sub menus. | |
static const CMenuAction & | subMenuDisplayModels () |
Predefined sub sub menus. | |
static const CMenuAction & | subMenuRenderModels () |
Predefined sub sub menus. | |
static const CMenuAction & | subMenuDataTransfer () |
Predefined sub sub menus. | |
Wraps a QAction with extra metadata to allow proper sorting for a QMenu.
Definition at line 25 of file menuaction.h.
|
inlinestatic |
vPilot data
Definition at line 186 of file menuaction.h.