swift
interpolationsetupform.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2018 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_EDITORS_INTERPOLATIONSETUPFORM_H
7 #define SWIFT_GUI_EDITORS_INTERPOLATIONSETUPFORM_H
8 
9 #include <QCheckBox>
10 #include <QScopedPointer>
11 
12 #include "gui/editors/form.h"
13 #include "misc/pq/angle.h"
15 #include "misc/statusmessagelist.h"
16 
17 namespace Ui
18 {
19  class CInterpolationSetupForm;
20 }
21 namespace swift::gui::editors
22 {
25  {
26  Q_OBJECT
27 
28  public:
30  explicit CInterpolationSetupForm(QWidget *parent = nullptr);
31 
33  virtual ~CInterpolationSetupForm() override;
34 
37 
40 
43  virtual void setReadOnly(bool readonly) override;
44  virtual swift::misc::CStatusMessageList validate(bool nested = false) const override;
46 
47  signals:
49  void valueChanged();
50 
51  private:
52  QScopedPointer<Ui::CInterpolationSetupForm> ui;
53  QList<QCheckBox *> m_allCheckBoxes;
54 
56  void onCheckboxChanged(int state);
57 
59  void onInterpolatorModeChanged(bool checked);
60 
62  void onPitchChanged();
63 
65  swift::misc::physical_quantities::CAngle getPitchOnGround() const;
66 
68  void displayPitchOnGround(const swift::misc::physical_quantities::CAngle &pitchOnGround);
69 
72 
75  };
76 } // namespace swift::gui::editors
77 #endif // SWIFT_GUI_EDITORS_INTERPOLATIONSETUPFORM_H
Form base class.
Definition: form.h:27
Setup of interpolation and rendering.
swift::misc::simulation::CInterpolationAndRenderingSetupPerCallsign getValue() const
Get value.
void setValue(const swift::misc::simulation::CInterpolationAndRenderingSetupBase &setup)
Set value.
virtual void setReadOnly(bool readonly)
Set editable.
CInterpolationSetupForm(QWidget *parent=nullptr)
Constructor.
virtual swift::misc::CStatusMessageList validate(bool nested=false) const
Validate, empty list means OK.
Status messages, e.g. from Core -> GUI.
Physical unit angle (radians, degrees)
Definition: angle.h:23
Value object for interpolator and rendering base class.
Value object for interpolator and rendering per callsign.