API Documentation
Loading...
Searching...
No Matches
DeploymentWidgets.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/OrientationSensor.h>
4#include <NDEVR/QCustomCombobox.h>
5#include <NDEVR/ResizeVisibleAnimation.h>
6namespace NDEVR
7{
8 class OrientationSensor;
9 class WindowManager;
10 class QTModelManager;
11 class CalibrationWidget;
12 class Button;
13 class CustomUnit;
15 {
16 public:
18 static constexpr const char* DeploymentLengthUnitName() { return "DeploymentLengthUnit"; }
19 };
21 {
22 Q_OBJECT
23 public:
24 explicit DeploymentModeCombobox(QWidget* parent = nullptr);
27 signals:
29 protected slots:
32 protected:
33 void fixedHeadingChosen(bool has_calculated_yaw);
34 void roddedModeChosen(bool has_calculated_yaw);
35 void gyroModeChosen(bool use_compass, bool is_free_hanging = false);
36 protected:
44 bool m_is_showing_calibrate = false;
47 };
48
50 {
51 Q_OBJECT
52 public:
53 static TranslatedString DistanceValueString(fltp08 value, bool show_only_native);
54 public:
55 DeploymentLengthCombobox(QWidget* parent = nullptr);
56 void setLengths(const Buffer<fltp08>& lengths);
58 void setCustomDeploymentSettings(const String& settings);
59 signals:
61 protected:
63 protected:
65 };
66
68 {
69 Q_OBJECT
70 public:
71 explicit DeploymentWidget(QWidget* parent = nullptr);
74 void setupGyroButton(Button* button);
76 void setIgnoreSounds(bool ignore_sounds);
77 void setDeploymentWidgetEnabled(bool enabled);
79
80
81 void setAllowModeSwitch(bool allow);
82#if NDEVR_CALIBRATION
83 Button* calibrationButton();
84 void setAllowEditCalibration(bool allow);
85 void setAllowVerifyCalibration(bool allow);
86 void setAllowNewCalibration(bool allow);
87 void showCalibrationOptionsPopup(PopupInfo info);
88#endif
89 signals:
91 protected slots:
94 protected:
98 CalibrationWidget* m_calibration_widget;
100 bool m_is_enabled = true;
101 };
102
103}
#define HARDWARE_WIDGETS_API
Definition DLLInfo.h:74
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:59
A core widget that allows the user to click one of many button types.
Definition Button.h:66
Definition DeploymentWidgets.h:50
const String & customDeploymentSettings() const
DeploymentLengthCombobox(QWidget *parent=nullptr)
static TranslatedString DistanceValueString(fltp08 value, bool show_only_native)
void setLengths(const Buffer< fltp08 > &lengths)
void setCustomDeploymentSettings(const String &settings)
String m_custom_deployment_settings
Definition DeploymentWidgets.h:64
Definition DeploymentWidgets.h:21
uint04 m_rodded_mode_index
Definition DeploymentWidgets.h:38
DeploymentModeCombobox(QWidget *parent=nullptr)
void roddedModeChosen(bool has_calculated_yaw)
OrientationSensor * m_sensor
Definition DeploymentWidgets.h:46
uint04 m_free_hanging_index
Definition DeploymentWidgets.h:41
void setSensor(OrientationSensor *sensor)
void fixedHeadingChosen(bool has_calculated_yaw)
uint04 m_gyro_mode_index
Definition DeploymentWidgets.h:42
uint04 m_compass_and_gyro_mode_index
Definition DeploymentWidgets.h:40
GyroState m_last_gyro_state
Definition DeploymentWidgets.h:45
uint04 m_compass_mode_index
Definition DeploymentWidgets.h:39
uint04 m_fixed_mode_index
Definition DeploymentWidgets.h:37
void gyroModeChosen(bool use_compass, bool is_free_hanging=false)
uint04 m_mode_count
Definition DeploymentWidgets.h:43
Definition DeploymentWidgets.h:15
static constexpr const char * DeploymentLengthUnitName()
Definition DeploymentWidgets.h:18
static DynamicPointer< CustomUnit > DeploymentLengthUnit()
Definition DeploymentWidgets.h:68
void setAllowModeSwitch(bool allow)
void requestMagnetometerCalibrationSignal()
void setModelManager(QTModelManager *manager)
Buffer< QPointer< Button > > m_magnetometer_buttons
Definition DeploymentWidgets.h:96
void setDeploymentWidgetEnabled(bool enabled)
void setIgnoreSounds(bool ignore_sounds)
void showMagnetometerOptionsPopup(PopupInfo info)
OrientationSensor * m_sensor
Definition DeploymentWidgets.h:97
void setupGyroButton(Button *button)
Buffer< QPointer< Button > > m_gyro_buttons
Definition DeploymentWidgets.h:95
void setSensor(OrientationSensor *sensor)
DeploymentModeCombobox * m_mode_combo
Definition DeploymentWidgets.h:99
DeploymentWidget(QWidget *parent=nullptr)
void setupMagnetometerButton(Button *button)
CalibrationWidget * m_calibration_widget
Definition DeploymentWidgets.h:98
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:319
Used to report the orientation of a Hardware object within 3D space.
Definition OrientationSensor.h:88
A compact way to present a list of options to the user.
Definition QCustomCombobox.h:53
Definition QTModelManager.h:94
The core String class for the software.
Definition String.h:47
Any text displayed to the user should be defined as a TranslatedString which allows the.
Definition TranslatedString.h:13
Definition ACIColor.h:37
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:94
GyroState
Definition OrientationSensor.h:39
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:146
Definition PopupInfo.h:10