swift
modelmodeselector.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2016 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_GUI_COMPONENTS_MODELMODESELECTOR_H
7 #define SWIFT_GUI_COMPONENTS_MODELMODESELECTOR_H
8 
9 #include <QFrame>
10 #include <QObject>
11 #include <QScopedPointer>
12 
13 #include "gui/swiftguiexport.h"
15 
16 class QWidget;
17 
18 namespace Ui
19 {
20  class CModelModeSelector;
21 }
22 
23 namespace swift::gui::components
24 {
28  class SWIFT_GUI_EXPORT CModelModeSelector : public QFrame
29  {
30  Q_OBJECT
31 
32  public:
34  explicit CModelModeSelector(QWidget *parent = nullptr);
35 
38 
41 
44 
46  void setValue(const swift::misc::simulation::CAircraftModel &model);
47 
49  void setReadOnly(bool readOnly);
50 
51  signals:
53  void changed();
54 
55  private:
56  QScopedPointer<Ui::CModelModeSelector> ui;
57  };
58 } // namespace swift::gui::components
59 
60 #endif // SWIFT_GUI_COMPONENTS_MODELMODESELECTOR_H
Aircraft model (used by another pilot, my models on disk)
Definition: aircraftmodel.h:71
ModelMode
Mode, decides if a model is supposed to be used in the model set for model matching or not....
Definition: aircraftmodel.h:92
High level reusable GUI components.
Definition: aboutdialog.cpp:13
#define SWIFT_GUI_EXPORT
Export a class or function from the library.