swift
|
swift launcher tool More...
Public Types | |
enum | Pages { PageNews = 0 , PageWindowType , PageCoreMode , PageUpdates } |
Pages. | |
![]() | |
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. | |
![]() | |
CEnableForFramelessWindow (WindowMode mode, bool isMainApplicationWindow, const char *framelessPropertyname, QWidget *correspondingWidget) | |
Constructor. More... | |
virtual | ~CEnableForFramelessWindow () |
Destructor. | |
CEnableForFramelessWindow (const CEnableForFramelessWindow &)=delete | |
Copy constructor. | |
CEnableForFramelessWindow & | operator= (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. | |
![]() | |
virtual | ~IMainWindowAccess () |
Destructor. | |
IMainWindowAccess () | |
Ctor. | |
IMainWindowAccess (const IMainWindowAccess &)=delete | |
Copy constructor. | |
IMainWindowAccess & | operator= (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. | |
![]() | |
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. | |
![]() | |
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) | |
IModelsForSimulatorSetable & | operator= (const IModelsForSimulatorSetable &)=default |
Ctor, dtor, copy operators (CLANG warnings) | |
![]() | |
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) | |
IModelsForSimulatorUpdatable & | operator= (const IModelsForSimulatorUpdatable &)=default |
Ctor, dtor, copy operators (CLANG warnings) | |
![]() | |
const CIdentifier & | identifier () 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. | |
![]() | |
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. | |
![]() | |
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. | |
CIdentifiable & | operator= (const CIdentifiable &)=default |
Copy assignment operator. | |
Additional Inherited Members | |
![]() | |
static WindowMode | stringToWindowMode (const QString &s) |
String to window mode. | |
static const QString & | windowModeToString (WindowMode m) |
String to window mode. | |
![]() | |
static Qt::WindowFlags | modeToWindowFlags (WindowMode mode) |
Translate mode. | |
![]() | |
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 | |
![]() | |
components::CLogComponent * | m_mwaLogComponent = nullptr |
the log component if any | |
CManagedStatusBar * | m_mwaStatusBar = nullptr |
status bar if any | |
COverlayMessagesFrame * | m_mwaOverlayFrame = nullptr |
overlay messages if any | |
swift launcher tool
Definition at line 45 of file swiftlauncher.h.
bool CSwiftLauncher::startDetached | ( | ) |
Start currently set application detached.
Definition at line 188 of file swiftlauncher.cpp.