swift
transpondermodecomponent.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2019 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_TRANSPONDERMODECOMPONENT_H
7 #define SWIFT_GUI_COMPONENTS_TRANSPONDERMODECOMPONENT_H
8 
9 #include <QFrame>
10 #include <QScopedPointer>
11 
13 #include "misc/identifiable.h"
14 
15 namespace Ui
16 {
17  class CTransponderModeComponent;
18 }
19 namespace swift::misc
20 {
21  class CIdentifier;
22  namespace simulation
23  {
24  class CSimulatedAircraft;
25  }
26 } // namespace swift::misc
27 namespace swift::gui::components
28 {
33  {
34  Q_OBJECT
35 
36  public:
38  explicit CTransponderModeComponent(QWidget *parent = nullptr);
39 
41  virtual ~CTransponderModeComponent() override;
42 
43  signals:
45  void changed();
46 
47  private:
48  QScopedPointer<Ui::CTransponderModeComponent> ui;
50 
52  void init();
53 
55  void onClicked();
56 
58  void onChangedAircraftCockpit(const swift::misc::simulation::CSimulatedAircraft &aircraft,
59  const swift::misc::CIdentifier &originator);
60  };
61 } // namespace swift::gui::components
62 
63 #endif // SWIFT_GUI_COMPONENTS_TRANSPONDERMODECOMPONENT_H
Base class with a member CIdentifier to be inherited by a class which has an identity in the environm...
Definition: identifiable.h:24
Value object encapsulating information identifying a component of a modular distributed swift process...
Definition: identifier.h:29
Comprehensive information of an aircraft.
High level reusable GUI components.
Definition: aboutdialog.cpp:13
Free functions in swift::misc.