swift
src
swiftcore
swiftcore.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (C) 2015 swift Project Community / Contributors
2
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6
#ifndef SWIFTCORE_H
7
#define SWIFTCORE_H
8
9
#include <QObject>
10
#include <QScopedPointer>
11
#include <QString>
12
13
#include "
core/coremodeenums.h
"
14
#include "gui/mainwindowaccess.h"
15
#include "
gui/systemtraywindow.h
"
16
#include "
misc/identifiable.h
"
17
#include "
misc/statusmessage.h
"
18
19
class
QWidget;
20
namespace
swift::gui::components
21
{
22
class
CCoreSettingsDialog;
23
class
CRawFsdMessagesDialog;
24
class
CCockpitComAudioDialog;
25
class
CAudioAdvancedDistributedDialog;
26
}
// namespace swift::gui::components
27
namespace
Ui
28
{
29
class
CSwiftCore
;
30
}
31
35
class
CSwiftCore
:
36
public
swift::gui::CSystemTrayWindow
,
37
public
swift::gui::IMainWindowAccess
,
38
public
swift::misc::CIdentifiable
39
{
40
Q_OBJECT
41
Q_INTERFACES(
swift::gui::IMainWindowAccess
)
42
43
public
:
45
CSwiftCore
(QWidget *parent =
nullptr
);
46
48
virtual
~CSwiftCore
()
override
;
49
50
private
:
53
void
initLogDisplay();
54
void
initStyleSheet();
55
void
initMenus();
57
59
void
p2pModeToggled(
bool
checked);
60
62
void
showSettingsDialog();
63
65
void
showRawFsdMessageDialog();
66
68
virtual
void
onStyleSheetsChanged
();
69
71
void
restart();
72
74
void
disconnectFromNetwork();
75
77
void
audioDialog();
78
80
void
audioAdvancedDialog();
81
83
QStringList getRestartCmdArgs()
const
;
84
85
QScopedPointer<swift::gui::components::CCoreSettingsDialog> m_settingsDialog;
86
QScopedPointer<swift::gui::components::CRawFsdMessagesDialog> m_rawFsdMessageDialog;
87
QScopedPointer<swift::gui::components::CCockpitComAudioDialog> m_audioDialog;
88
QScopedPointer<swift::gui::components::CAudioAdvancedDistributedDialog> m_audioAdvDialog;
89
90
QScopedPointer<Ui::CSwiftCore> ui;
91
};
92
93
#endif
// SWIFTCORE_H
CSwiftCore
swift core control GUI
Definition:
swiftcore.h:39
CSwiftCore::onStyleSheetsChanged
virtual void onStyleSheetsChanged()
Style sheet has changed.
Definition:
swiftcore.cpp:99
CSwiftCore::~CSwiftCore
virtual ~CSwiftCore()
Destructor.
Definition:
swiftcore.cpp:75
CSwiftCore::CSwiftCore
CSwiftCore(QWidget *parent=nullptr)
Constructor.
Definition:
swiftcore.cpp:41
swift::gui::CSystemTrayWindow
QDialog which can minimize to system tray.
Definition:
systemtraywindow.h:29
swift::gui::IMainWindowAccess
Direct acccess to main window`s status bar, info bar and such.
Definition:
mainwindowaccess.h:26
swift::misc::CIdentifiable
Base class with a member CIdentifier to be inherited by a class which has an identity in the environm...
Definition:
identifiable.h:24
coremodeenums.h
identifiable.h
swift::gui::components
High level reusable GUI components.
Definition:
aboutdialog.cpp:13
statusmessage.h
systemtraywindow.h
Generated on Mon Mar 24 2025 16:42:23 for swift by
1.9.1