swift
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"
16 
17 namespace Ui
18 {
19  class CSimulatorXPlaneConfigWindow;
20 }
21 namespace swift::simplugin::xplane
22 {
27  {
28  Q_OBJECT
29 
30  public:
32  CSimulatorXPlaneConfigWindow(QWidget *parent);
33 
35  virtual ~CSimulatorXPlaneConfigWindow() override;
36 
37  private:
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;
55  this, &CSimulatorXPlaneConfigWindow::onSettingsChanged
56  };
57  };
58 } // namespace swift::simplugin::xplane
59 
60 #endif // SWIFT_SIMPLUGIN_SIMULATOR_XPLANE_CONFIG_WINDOW_H
Base class for plugin config window.
A window that shows all the X-Plane plugin options.