swift
src
plugins
simulator
xplaneconfig
simulatorxplaneconfigwindow.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 SWIFT_SIMPLUGIN_SIMULATOR_XPLANE_CONFIG_WINDOW_H
7
#define SWIFT_SIMPLUGIN_SIMULATOR_XPLANE_CONFIG_WINDOW_H
8
9
#include <QObject>
10
#include <QScopedPointer>
11
12
#include "
simulatorxplaneconfig.h
"
13
14
#include "
gui/pluginconfigwindow.h
"
15
#include "
misc/simulation/settings/xswiftbussettings.h
"
16
17
namespace
Ui
18
{
19
class
CSimulatorXPlaneConfigWindow;
20
}
21
namespace
swift::simplugin::xplane
22
{
26
class
CSimulatorXPlaneConfigWindow
:
public
swift::gui::CPluginConfigWindow
27
{
28
Q_OBJECT
29
30
public
:
32
CSimulatorXPlaneConfigWindow
(QWidget *parent);
33
35
virtual
~CSimulatorXPlaneConfigWindow
()
override
;
36
37
private
:
39
swift::misc::simulation::settings::CXSwiftBusSettings
getSettingsFromUI()
const
;
40
42
void
setUiValues(
const
swift::misc::simulation::settings::CXSwiftBusSettings
&settings);
43
45
void
onSettingsAccepted();
46
48
void
onSettingsChanged();
49
51
static
int
marginToInt(
const
QString &text,
int
defaultValue);
52
53
QScopedPointer<Ui::CSimulatorXPlaneConfigWindow> ui;
54
swift::misc::CSetting<swift::misc::simulation::settings::TXSwiftBusSettings>
m_xSwiftBusServerSettings {
55
this
, &CSimulatorXPlaneConfigWindow::onSettingsChanged
56
};
57
};
58
}
// namespace swift::simplugin::xplane
59
60
#endif
// SWIFT_SIMPLUGIN_SIMULATOR_XPLANE_CONFIG_WINDOW_H
swift::gui::CPluginConfigWindow
Base class for plugin config window.
Definition:
pluginconfigwindow.h:20
swift::misc::CSetting< swift::misc::simulation::settings::TXSwiftBusSettings >
swift::misc::simulation::settings::CXSwiftBusSettings
xswiftbus settings
Definition:
xswiftbussettings.h:27
swift::simplugin::xplane::CSimulatorXPlaneConfigWindow
A window that shows all the X-Plane plugin options.
Definition:
simulatorxplaneconfigwindow.h:27
swift::simplugin::xplane::CSimulatorXPlaneConfigWindow::~CSimulatorXPlaneConfigWindow
virtual ~CSimulatorXPlaneConfigWindow()
Dtor.
Definition:
simulatorxplaneconfigwindow.cpp:45
swift::simplugin::xplane::CSimulatorXPlaneConfigWindow::CSimulatorXPlaneConfigWindow
CSimulatorXPlaneConfigWindow(QWidget *parent)
Ctor.
Definition:
simulatorxplaneconfigwindow.cpp:25
pluginconfigwindow.h
simulatorxplaneconfig.h
xswiftbussettings.h
Generated on Mon Mar 24 2025 16:42:23 for swift by
1.9.1