swift
dbairlinenameselectorcomponent.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_COMPONENTS_DBAIRLINENAMESELECTORCOMPONENT_H
7 #define SWIFT_GUI_COMPONENTS_DBAIRLINENAMESELECTORCOMPONENT_H
8 
9 #include <QObject>
10 #include <QScopedPointer>
11 
13 #include "gui/swiftguiexport.h"
15 
16 class QCompleter;
17 class QWidget;
18 
19 namespace Ui
20 {
21  class CDbAirlineNameSelectorComponent;
22 }
23 namespace swift::gui::components
24 {
29  {
30  Q_OBJECT
31 
32  public:
34  explicit CDbAirlineNameSelectorComponent(QWidget *parent = nullptr);
35 
38  virtual ~CDbAirlineNameSelectorComponent() override;
39 
42  virtual void setReadOnly(bool readOnly) override;
43  virtual bool setAirlineIcao(const swift::misc::aviation::CAirlineIcaoCode &icao) override;
44  virtual void clear() override;
46 
47  protected:
49  virtual QCompleter *createCompleter() override;
50 
51  private:
52  QScopedPointer<Ui::CDbAirlineNameSelectorComponent> ui;
53 
54  private slots:
56  void ps_dataChanged();
57  };
58 } // namespace swift::gui::components
59 
60 #endif // SWIFT_GUI_COMPONENTS_DBAIRLINENAMESELECTORCOMPONENT_H
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.