swift
Public Member Functions | List of all members
swift::gui::menus::CMenuAction Class Reference

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.
 
QActiongetQAction () 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 QStringgetPath () const
 Path.
 
QString getLastPathPart () const
 Last part of the path, e.g. "Foo/Bar" -> "Bar".
 
const QStringgetTitle () 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 QIcongetIcon () 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 QStringpathNone ()
 No key.
 
static const QStringpathSeparator ()
 Path converter into separator.
 
static const QStringpathSimulator ()
 Simulator sub menu.
 
static const QStringpathSimulatorModelsReload ()
 Simulator sub menu reload models.
 
static const QStringpathSimulatorModelsClearCache ()
 Simulator sub menu reload models.
 
static const QStringpathModel ()
 Model.
 
static const QStringpathModelSet ()
 Model set.
 
static const QStringpathModelSetNew ()
 Model set, new set.
 
static const QStringpathModelConsolidate ()
 Consolidate.
 
static const QStringpathModelStash ()
 Stash sub menu.
 
static const QStringpathModelStashEditor ()
 Stash editor sub menu.
 
static const QStringpathVPilot ()
 vPilot data More...
 
static const QStringpathLog ()
 Log functionality.
 
static const QStringpathFont ()
 Font menus (font size etc.)
 
static const QStringpathClientCom ()
 Client COM related.
 
static const QStringpathClientFlightPlan ()
 Client flight plan.
 
static const QStringpathClientFollowInSim ()
 Client follow in simulator.
 
static const QStringpathClientSimulation ()
 Client simulation related.
 
static const QStringpathClientSimulationDisplay ()
 Client simulation/display related.
 
static const QStringpathClientSimulationRender ()
 Client simulation/display related.
 
static const QStringpathClientSimulationTransfer ()
 Client simulation/display related.
 
static const QStringpathClientModelSet ()
 Client model set related.
 
static const QStringpathClientNetwork ()
 Network data.
 
static const QStringpathViewDatabase ()
 Database.
 
static const QStringpathViewAddRemove ()
 Select add remove.
 
static const QStringpathViewSelection ()
 View selection mode.
 
static const QStringpathViewOrder ()
 Order submenus.
 
static const QStringpathViewResize ()
 View resizing.
 
static const QStringpathViewWordWrap ()
 View word wrap.
 
static const QStringpathViewClearHighlighting ()
 View clear highlighting.
 
static const QStringpathViewFilter ()
 View filter.
 
static const QStringpathViewUpdates ()
 View update.
 
static const QStringpathViewLoadSave ()
 View load/save.
 
static const QStringpathViewCutPaste ()
 View cut and paste.
 
static const QStringpathDockWidgetNested ()
 Nested dock widget.
 
static const CMenuActionsubMenuDatabase ()
 Predefined sub sub menus.
 
static const CMenuActionsubMenuSimulator ()
 Predefined sub sub menus.
 
static const CMenuActionsubMenuConsolidateModels ()
 Predefined sub sub menus.
 
static const CMenuActionsubMenuCom ()
 Predefined sub sub menus.
 
static const CMenuActionsubMenuDisplayModels ()
 Predefined sub sub menus.
 
static const CMenuActionsubMenuRenderModels ()
 Predefined sub sub menus.
 
static const CMenuActionsubMenuDataTransfer ()
 Predefined sub sub menus.
 

Detailed Description

Wraps a QAction with extra metadata to allow proper sorting for a QMenu.

Definition at line 25 of file menuaction.h.

Member Function Documentation

◆ pathVPilot()

static const QString& swift::gui::menus::CMenuAction::pathVPilot ( )
inlinestatic

vPilot data

Deprecated:
vPilot functionality likely to be removed in the future

Definition at line 186 of file menuaction.h.


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