6 #ifndef SWIFTLAUNCHER_H
7 #define SWIFTLAUNCHER_H
13 #include "gui/mainwindowaccess.h"
24 #include <QMainWindow>
25 #include <QNetworkReply>
26 #include <QScopedPointer>
35 class CConfigurationWizard;
36 class CTextEditDialog;
100 QScopedPointer<Ui::CSwiftLauncher> ui;
101 QScopedPointer<swift::gui::components::CConfigurationWizard> m_wizard;
102 QScopedPointer<swift::gui::components::CTextEditDialog> m_textEditDialog;
109 QString m_executable;
110 QStringList m_executableArgs;
111 QTimer m_checkTimer {
this };
112 int m_startCoreWaitCycles = 0;
113 int m_startMappingToolWaitCycles = 0;
114 int m_startGuiWaitCycles = 0;
126 void initStyleSheet();
129 void initLogDisplay();
135 bool setSwiftCoreExecutable();
138 bool setSwiftDataExecutable();
141 bool setSwiftGuiExecutable();
144 bool canConnectSwiftOnDBusServer(
const QString &dbusAddress, QString &msg)
const;
147 bool isStandaloneGuiSelected()
const;
156 bool warnAboutOtherSwiftApplications();
159 void updateInfoAvailable();
162 void startButtonPressed();
165 void dbusServerModeSelected(
bool selected);
171 void showStatusMessage(
const QString &htmlMsg);
177 void tabChanged(
int current);
180 void checkRunningApplicationsAndCore();
186 void onStyleSheetsChanged();
189 void onDBusEditingFinished();
192 void onCoreModeReleased();
195 void popupExecutableArgs();
198 void showSimulatorConfigDirs();
201 void requestMacMicrophoneAccess();
204 void installerMode();
207 void clearWindowsRegistry();
210 static QString toCmdLine(
const QString &exe,
const QStringList &exeArgs);
virtual void mouseReleaseEvent(QMouseEvent *event)
Mouse events for frameless window.
virtual void mouseMoveEvent(QMouseEvent *event)
Mouse events for frameless window.
virtual ~CSwiftLauncher()
Destructor.
CSwiftLauncher(bool installerMode, QWidget *parent=nullptr)
Constructor.
bool shouldStartAppDetached() const
Check if an app is set that should be started detached.
bool startDetached()
Start currently set application detached.
const QString & getExecutable() const
Executable (to be started)
virtual void mousePressEvent(QMouseEvent *event)
Mouse events for frameless window.
QString getCmdLine() const
Current command line.
const QStringList & getExecutableArgs() const
Arguments.
Main window which can be frameless.
Direct acccess to main window`s status bar, info bar and such.
Base class with a member CIdentifier to be inherited by a class which has an identity in the environm...
Allows distributed access to the log messages of a central CLogHistory.
Wrapper around MacOS 10.14 AVCaptureDevice AVCaptureDevice authorization.
Streamable status message, e.g.
Artifacts ("our software" products)
Basically a QObject free (delegate based) version of CCentralMultiSimulatorModelSetCachesProvider.
High level reusable GUI components.
CoreMode
Core runs how and where?