swift
Public Types | Public Member Functions | List of all members
CSwiftLauncher Class Reference

swift launcher tool More...

Inheritance diagram for CSwiftLauncher:
[legend]

Public Types

enum  Pages { PageNews = 0 , PageWindowType , PageCoreMode , PageUpdates }
 Pages.
 
- Public Types inherited from swift::gui::CEnableForFramelessWindow
enum  WindowMode { WindowNormal , WindowFrameless , WindowTool }
 Window modes.
 

Public Member Functions

 CSwiftLauncher (bool installerMode, QWidget *parent=nullptr)
 Constructor.
 
virtual ~CSwiftLauncher ()
 Destructor.
 
const QString & getExecutable () const
 Executable (to be started)
 
const QStringList & getExecutableArgs () const
 Arguments.
 
QString getCmdLine () const
 Current command line.
 
bool startDetached ()
 Start currently set application detached. More...
 
bool shouldStartAppDetached () const
 Check if an app is set that should be started detached.
 
- Public Member Functions inherited from swift::gui::CEnableForFramelessWindow
 CEnableForFramelessWindow (WindowMode mode, bool isMainApplicationWindow, const char *framelessPropertyname, QWidget *correspondingWidget)
 Constructor. More...
 
virtual ~CEnableForFramelessWindow ()
 Destructor.
 
 CEnableForFramelessWindow (const CEnableForFramelessWindow &)=delete
 Copy constructor.
 
CEnableForFramelessWindowoperator= (const CEnableForFramelessWindow &)=delete
 Copy assignment operator.
 
void setMode (WindowMode mode)
 Window mode.
 
virtual void setFrameless (bool frameless)
 Framless.
 
bool isFrameless () const
 Frameless?
 
bool isMainApplicationWindow () const
 Is main application, explicitly set.
 
void alwaysOnTop (bool onTop)
 Always on top?
 
void activate ()
 Activates the window.
 
QWidget * getWidget () const
 Corresponding QMainWindow.
 
- Public Member Functions inherited from swift::gui::IMainWindowAccess
virtual ~IMainWindowAccess ()
 Destructor.
 
 IMainWindowAccess ()
 Ctor.
 
 IMainWindowAccess (const IMainWindowAccess &)=delete
 Copy constructor.
 
IMainWindowAccessoperator= (const IMainWindowAccess &)=delete
 Copy assignment operator.
 
virtual bool displayInStatusBar (const swift::misc::CStatusMessage &message)
 Display in status bar.
 
virtual bool displayInOverlayWindow (const swift::misc::CStatusMessage &message, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))
 Display in overlay window.
 
virtual bool displayInOverlayWindow (const swift::misc::CStatusMessageList &messages, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))
 Display in overlay window.
 
virtual bool displayInOverlayWindow (const QString &html, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))
 Display in overlay window.
 
- Public Member Functions inherited from swift::misc::simulation::data::CCentralMultiSimulatorModelSetCachesAware
void setModelsForSimulator (const CAircraftModelList &models, const CSimulatorInfo &simulator)
 Set models. More...
 
int updateModelsForSimulator (const CAircraftModelList &models, const CSimulatorInfo &simulator)
 Set models. More...
 
CAircraftModelList getCachedModels (const CSimulatorInfo &simulator) const
 Look like IMultiSimulatorModelCaches interface.
 
int getCachedModelsCount (const CSimulatorInfo &simulator) const
 Look like IMultiSimulatorModelCaches interface.
 
QString getCacheCountAndTimestamp (const CSimulatorInfo &simulator) const
 Look like IMultiSimulatorModelCaches interface.
 
CStatusMessage setCachedModels (const CAircraftModelList &models, const CSimulatorInfo &simulator)
 Look like IMultiSimulatorModelCaches interface.
 
CStatusMessage clearCachedModels (const CSimulatorInfo &simulator)
 Look like IMultiSimulatorModelCaches interface.
 
QDateTime getCacheTimestamp (const CSimulatorInfo &simulator) const
 Look like IMultiSimulatorModelCaches interface.
 
CStatusMessage setCacheTimestamp (const QDateTime &ts, const CSimulatorInfo &simulator)
 Look like IMultiSimulatorModelCaches interface.
 
void synchronizeCache (const CSimulatorInfo &simulator)
 Look like IMultiSimulatorModelCaches interface.
 
void admitCache (const CSimulatorInfo &simulator)
 Look like IMultiSimulatorModelCaches interface.
 
QString getFilename (const CSimulatorInfo &simulator) const
 Look like IMultiSimulatorModelCaches interface.
 
bool isSaved (const CSimulatorInfo &simulator) const
 Look like IMultiSimulatorModelCaches interface.
 
QString getDescription () const
 Look like IMultiSimulatorModelCaches interface.
 
QString getInfoString () const
 Look like IMultiSimulatorModelCaches interface.
 
QString getInfoStringFsFamily () const
 Look like IMultiSimulatorModelCaches interface.
 
- Public Member Functions inherited from swift::misc::simulation::IModelsForSimulatorSetable
 IModelsForSimulatorSetable ()
 Ctor, dtor, copy operators (CLANG warnings)
 
virtual ~IModelsForSimulatorSetable ()
 Ctor, dtor, copy operators (CLANG warnings)
 
 IModelsForSimulatorSetable (const IModelsForSimulatorSetable &)=default
 Ctor, dtor, copy operators (CLANG warnings)
 
IModelsForSimulatorSetableoperator= (const IModelsForSimulatorSetable &)=default
 Ctor, dtor, copy operators (CLANG warnings)
 
- Public Member Functions inherited from swift::misc::simulation::IModelsForSimulatorUpdatable
 IModelsForSimulatorUpdatable ()
 Ctor, dtor, copy operators (CLANG warnings)
 
virtual ~IModelsForSimulatorUpdatable ()
 Ctor, dtor, copy operators (CLANG warnings)
 
 IModelsForSimulatorUpdatable (const IModelsForSimulatorUpdatable &)=default
 Ctor, dtor, copy operators (CLANG warnings)
 
IModelsForSimulatorUpdatableoperator= (const IModelsForSimulatorUpdatable &)=default
 Ctor, dtor, copy operators (CLANG warnings)
 
- Public Member Functions inherited from swift::misc::CIdentifiable
const CIdentifieridentifier () const
 Get identifier.
 
void setIdentifier (const CIdentifier &identifier)
 Set identifier, allows to set an external identifier.
 
bool isMyIdentifier (const CIdentifier &otherIdentifier) const
 My identifier?
 

Protected Member Functions

virtual void mousePressEvent (QMouseEvent *event)
 Mouse events for frameless window.
 
virtual void mouseMoveEvent (QMouseEvent *event)
 Mouse events for frameless window.
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 Mouse events for frameless window.
 
- Protected Member Functions inherited from swift::gui::CEnableForFramelessWindow
virtual void windowFlagsChanged ()
 Can be used as notification if window mode changes.
 
void addFramelessSizeGripToStatusBar (QStatusBar *statusBar)
 Resize grip handle.
 
void hideFramelessSizeGripInStatusBar ()
 Resize grip handle.
 
void setWindowAttributes (WindowMode mode)
 Attributes. More...
 
void setDynamicProperties (bool frameless)
 Set dynamic properties such as frameless.
 
QHBoxLayout * addFramelessCloseButton (QMenuBar *menuBar)
 Close button for frameless windows.
 
void toolToNormalWindow ()
 Remove tool and add desktop window.
 
void normalToToolWindow ()
 Remove desktop and add tool window.
 
bool isToolWindow () const
 Tool window.
 
bool handleMousePressEvent (QMouseEvent *event)
 Mouse press, required for frameless window.
 
bool handleMouseMoveEvent (QMouseEvent *event)
 Mouse moving, required for frameless window.
 
bool handleChangeEvent (QEvent *event)
 Mouse window change event.
 
void showMinimizedModeChecked ()
 Check mode and then show minimized.
 
void showNormalModeChecked ()
 Check mode and then show normal.
 
- Protected Member Functions inherited from swift::misc::CIdentifiable
 CIdentifiable (const QString &objectName)
 Use literal based object name.
 
 CIdentifiable (QObject *nameProvider)
 Connect with QObject providing the name.
 
 CIdentifiable ()
 Construct without a name.
 
 ~CIdentifiable ()
 Destructor.
 
 CIdentifiable (const CIdentifiable &)=default
 Copy constructor.
 
CIdentifiableoperator= (const CIdentifiable &)=default
 Copy assignment operator.
 

Additional Inherited Members

- Static Public Member Functions inherited from swift::gui::CEnableForFramelessWindow
static WindowMode stringToWindowMode (const QString &s)
 String to window mode.
 
static const QString & windowModeToString (WindowMode m)
 String to window mode.
 
- Static Protected Member Functions inherited from swift::gui::CEnableForFramelessWindow
static Qt::WindowFlags modeToWindowFlags (WindowMode mode)
 Translate mode.
 
- Protected Attributes inherited from swift::gui::CEnableForFramelessWindow
QPoint m_framelessDragPosition
 position, if moving is handled with frameless window
 
QSize m_moveSize
 size when moved (in frameless window)
 
QPushButton * m_framelessCloseButton = nullptr
 close button
 
WindowMode m_windowMode = WindowNormal
 Window mode,. More...
 
WindowMode m_originalWindowMode = WindowNormal
 mode when initialized
 
bool m_isMainApplicationWindow = false
 is this the main application window (only 1)?
 
QWidget * m_widget = nullptr
 corresponding window or dock widget
 
QSizeGrip * m_framelessSizeGrip = nullptr
 size grip object
 
QByteArray m_framelessPropertyName
 property name for frameless widgets
 
int m_windowFrameSizeW = -1
 window frame width
 
int m_windowFrameSizeH = -1
 window frame height
 
- Protected Attributes inherited from swift::gui::IMainWindowAccess
components::CLogComponentm_mwaLogComponent = nullptr
 the log component if any
 
CManagedStatusBarm_mwaStatusBar = nullptr
 status bar if any
 
COverlayMessagesFramem_mwaOverlayFrame = nullptr
 overlay messages if any
 

Detailed Description

swift launcher tool

Note
Besides the fact the launcher makes it easy to start our applications it also pre-fetches some cache files, hence reducing load times in the subsequent applications. Therefor starting via the launcher is preferable, but not mandatory.

Definition at line 45 of file swiftlauncher.h.

Member Function Documentation

◆ startDetached()

bool CSwiftLauncher::startDetached ( )

Start currently set application detached.

Remarks
simplifies debugging

Definition at line 188 of file swiftlauncher.cpp.


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