swift
aircraftcombinedtypeselector.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_GUI_AIRCRAFTCOMBINEDTYPESELECTOR_H
7 #define SWIFT_GUI_AIRCRAFTCOMBINEDTYPESELECTOR_H
8 
9 #include <QFrame>
10 #include <QObject>
11 #include <QScopedPointer>
12 #include <QString>
13 
14 #include "gui/swiftguiexport.h"
16 
17 namespace Ui
18 {
19  class CAircraftCombinedTypeSelector;
20 }
21 namespace swift::misc::aviation
22 {
23  class CAircraftIcaoCode;
24 }
25 namespace swift::gui::components
26 {
31  {
32  Q_OBJECT
33 
34  public:
36  explicit CAircraftCombinedTypeSelector(QWidget *parent = nullptr);
37 
39  virtual ~CAircraftCombinedTypeSelector() override;
40 
42  void setCombinedType(const QString &combinedCode);
43 
45  void setCombinedType(const swift::misc::aviation::CAircraftIcaoCode &icao);
46 
48  void clear();
49 
51  void setReadOnly(bool readOnly);
52 
54  QString getCombinedType() const;
55 
56  signals:
58  void changedCombinedType(const QString &cominedType);
59 
60  private:
62  void combinedTypeEntered();
63 
65  void changedComboBox(const QString &text);
66 
68  QString getCombinedTypeFromComboBoxes() const;
69 
70  QString m_cc;
71  QScopedPointer<Ui::CAircraftCombinedTypeSelector> ui;
72  };
73 } // namespace swift::gui::components
74 
75 #endif // SWIFT_GUI_AIRCRAFTCOMBINEDTYPESELECTOR_H
void changedCombinedType(const QString &cominedType)
Combined type has beend changed.
Value object for ICAO classification.
High level reusable GUI components.
Definition: aboutdialog.cpp:13
#define SWIFT_GUI_EXPORT
Export a class or function from the library.