swift
simulatorfsxconfigwindow.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_FSXCOMMON_SIMULATORFSXCONFIGWINDOW_H
7 #define SWIFT_SIMPLUGIN_FSXCOMMON_SIMULATORFSXCONFIGWINDOW_H
8 
9 #include <QScopedPointer>
10 
11 #include "gui/pluginconfigwindow.h"
14 
15 namespace Ui
16 {
17  class CSimulatorFsxConfigWindow;
18 }
19 namespace swift::simplugin::fsxcommon
20 {
25  {
26  Q_OBJECT
27 
28  public:
30  CSimulatorFsxConfigWindow(const QString &simulator, QWidget *parent);
31 
33  virtual ~CSimulatorFsxConfigWindow();
34 
36  const swift::misc::simulation::CSimulatorInfo &getSimulator() const { return m_simulator; }
37 
38  private:
39  const swift::misc::simulation::CSimulatorInfo m_simulator { "FSX" };
40  QScopedPointer<Ui::CSimulatorFsxConfigWindow> ui;
41  };
42 } // namespace swift::simplugin::fsxcommon
43 
44 #endif // SWIFT_SIMPLUGIN_FSXCOMMON_SIMULATORFSXCONFIGWINDOW_H
Base class for plugin config window.
Simple hardcoded info about the corresponding simulator.
Definition: simulatorinfo.h:41
A window that lets user set up the FSX plugin.
const swift::misc::simulation::CSimulatorInfo & getSimulator() const
Related simulator, i.e. "P3D" or "FSX".
#define FSXCOMMON_EXPORT
FSXCommon Export Macro.