API Documentation
Loading...
Searching...
No Matches
DeploymentModeCombobox Class Reference

#include <DeploymentWidgets.h>

Inheritance diagram for DeploymentModeCombobox:
[legend]
Collaboration diagram for DeploymentModeCombobox:
[legend]

Signals

void optionsChangedSignal ()
 
- Signals inherited from QCustomComboBox
void edited ()
 

Public Member Functions

 DeploymentModeCombobox (QWidget *parent=nullptr)
 
void setSensor (OrientationSensor *sensor)
 
uint04 modeCount () const
 
- Public Member Functions inherited from QCustomComboBox
 QCustomComboBox (QWidget *parent=nullptr)
 
const QCustomValidatorcustomValidator () const
 
QCustomValidatorcustomValidator ()
 
void setCustomValidator (const QCustomValidator &validator)
 
void setup (const TranslatedString &title, const Buffer< TranslatedString > &values)
 
void setup (const TranslatedString &title, const Buffer< String > &values, const Buffer< TranslatedString > &display_values)
 
bool isUsingCustom () const
 
template<class t_object >
void setup (const TranslatedString &title, const Buffer< std::pair< TranslatedString, t_object > > &items)
 
template<class t_object >
std::enable_if< ObjectInfo< t_object >::Enum >::type setup (const TranslatedString &title, const Buffer< t_object > &items)
 
template<class t_object >
std::enable_if< ObjectInfo< t_object >::Number >::type setup (const TranslatedString &title, const Buffer< t_object > &items)
 
template<class t_enum >
std::enable_if< ObjectInfo< t_enum >::Enum >::type setup (const TranslatedString &title, uint04 size)
 
template<class t_object >
std::enable_if<!ObjectInfo< t_object >::Enum &&!ObjectInfo< t_object >::Number >::type setup (const TranslatedString &title, const Buffer< t_object > &items)
 
template<class t_enum >
std::enable_if< ObjectInfo< t_enum >::Enum >::type setup (const TranslatedString &title, t_enum first, t_enum last)
 
template<class t_type >
void add (const t_type &value, const TranslatedString &display_value, bool refresh_widget=false)
 
template<class t_type >
void remove (const t_type &value, bool refresh_widget=false)
 
void refresh ()
 
template<class t_type >
void setupResource (const TranslatedString &title, Resource< t_type > &resource)
 
void setAutoFormat (bool auto_format)
 
template<class t_enum >
std::enable_if< ObjectInfo< t_enum >::Enum >::type set (t_enum value)
 
template<class t_type >
t_type getAs () const
 
template<class t_type >
t_type getAs (uint04 index) const
 
template<class t_type >
void setValue (const t_type &t_value)
 
void setValue (const TranslatedString &t_value)
 
void setTitle (const TranslatedString &title)
 
void clearValue ()
 
QSize minimumSizeHint () const override
 
QSize sizeHint () const override
 
fltp08 getUnitValue () const
 
Angle< fltp08getUnitAngle () const
 
void setValue (const String &value)
 
void setToolTip (const TranslatedString &tooltip)
 
void setUnitType (UnitType unit, uint01 dimension=Constant< uint01 >::NaN)
 
void setConstantUnit (const ConstPointer< Unit > &unit, uint01 dimension=Constant< uint01 >::NaN)
 
void setCustomUnit (const String &unit, UnitType fallback_unit, uint01 dimension=Constant< uint01 >::NaN)
 
void setUnitValue (fltp08 value, uint01 unit_dimension=0)
 
void setAllowCustom (bool allow_custom)
 
void setSuffix (const TranslatedString &suffix)
 
const TranslatedStringsuffix () const
 
void focusInEvent (QFocusEvent *e) override
 
void updateFontSize ()
 
bool event (QEvent *event) override
 
void sortAlphabetically (uint04 start=0, uint04 size=Constant< uint04 >::NaN)
 
const Buffer< String > & values () const
 
const Buffer< TranslatedString > & displayValues () const
 
void showPopup () override
 
void hidePopup () override
 
void resizeEvent (QResizeEvent *event) override
 
void paintEvent (QPaintEvent *) override
 
void wheelEvent (QWheelEvent *e) override
 
void lockInCustomValue ()
 

Protected Slots

void updatedSlot ()
 
void deploymentModeChoosenSlot ()
 
- Protected Slots inherited from QCustomComboBox
void onEdit ()
 
void onEditTextChangedSlot ()
 
void onChange ()
 

Protected Member Functions

void fixedHeadingChosen (bool has_calculated_yaw)
 
void roddedModeChosen (bool has_calculated_yaw)
 
void gyroModeChosen (bool use_compass, bool is_free_hanging=false)
 
- Protected Member Functions inherited from QCustomComboBox
void refreshWidget ()
 
void adjustLineEditSize ()
 
virtual void onSorted (const Buffer< uint04 > &swap_indices)
 

Protected Attributes

uint04 m_fixed_mode_index
 
uint04 m_rodded_mode_index
 
uint04 m_compass_mode_index
 
uint04 m_compass_and_gyro_mode_index
 
uint04 m_free_hanging_index
 
uint04 m_gyro_mode_index
 
uint04 m_mode_count
 
bool m_is_showing_calibrate = false
 
GyroState m_last_gyro_state
 
OrientationSensorm_sensor
 
- Protected Attributes inherited from QCustomComboBox
bool m_is_refreshing = false
 
bool m_is_changing = false
 
bool m_allow_custom
 
bool m_using_custom
 
bool m_auto_format
 
bool m_sort_alphabetically = false
 
bool m_is_showing_popup = false
 
uint04 m_custom_index
 
uint04 m_sort_offset = 0
 
uint04 m_last_index
 
Buffer< Stringm_values
 
Buffer< TranslatedStringm_display_values
 
String m_current_custom
 
TranslatedString m_suffix
 
QCustomLineEditm_line_edit
 
Dictionary< uint04, uint04enum_to_index
 
Dictionary< uint04, uint04index_to_enum
 
QTResourceListenerm_resource_changed_listener
 

Constructor & Destructor Documentation

◆ DeploymentModeCombobox()

DeploymentModeCombobox ( QWidget * parent = nullptr)
explicit

Member Function Documentation

◆ deploymentModeChoosenSlot

void deploymentModeChoosenSlot ( )
protectedslot

◆ fixedHeadingChosen()

void fixedHeadingChosen ( bool has_calculated_yaw)
protected

◆ gyroModeChosen()

void gyroModeChosen ( bool use_compass,
bool is_free_hanging = false )
protected

◆ modeCount()

uint04 modeCount ( ) const

◆ optionsChangedSignal

void optionsChangedSignal ( )
signal

◆ roddedModeChosen()

void roddedModeChosen ( bool has_calculated_yaw)
protected

◆ setSensor()

void setSensor ( OrientationSensor * sensor)

◆ updatedSlot

void updatedSlot ( )
protectedslot

Member Data Documentation

◆ m_compass_and_gyro_mode_index

uint04 m_compass_and_gyro_mode_index
protected

◆ m_compass_mode_index

uint04 m_compass_mode_index
protected

◆ m_fixed_mode_index

uint04 m_fixed_mode_index
protected

◆ m_free_hanging_index

uint04 m_free_hanging_index
protected

◆ m_gyro_mode_index

uint04 m_gyro_mode_index
protected

◆ m_is_showing_calibrate

bool m_is_showing_calibrate = false
protected

◆ m_last_gyro_state

GyroState m_last_gyro_state
protected

◆ m_mode_count

uint04 m_mode_count
protected

◆ m_rodded_mode_index

uint04 m_rodded_mode_index
protected

◆ m_sensor

OrientationSensor* m_sensor
protected

The documentation for this class was generated from the following files: