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

Dialog which allows user to edit or create a MagneticCalibrationData object. More...

#include <MagnetometerCalibrationDialog.h>

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

Signals

void requestCloseSignal ()
 
- Signals inherited from Editor
void objectUpdatedSignal ()
 
void isBusyStatusChanged ()
 

Public Member Functions

 MagnetometerCalibrationDialog (const DynamicPointer< QTDesignObject > &object, QWidget *parent=nullptr)
 
 MagnetometerCalibrationDialog (QWidget *parent=nullptr)
 
void init ()
 
void setModelManager (DesignObjectLookup *manager)
 
void setSensor (OrientationSensor *sensor)
 
bool event (QEvent *event) override
 
bool isFinished () const
 
DesignObjectLookupmanager ()
 
void cancel ()
 
void startRecording ()
 
void showMatrix (bool show_matrix)
 
void showClear (bool show_clear)
 
MagneticCalibrationData calibrationData () const
 
void updateValues () override
 
- Public Member Functions inherited from Editor
 Editor (QWidget *parent=nullptr)
 
 Editor (const DynamicPointer< QTDesignObject > &object, QWidget *parent=nullptr)
 
virtual bool fullscreenTouch () const
 
virtual bool allowDocking () const
 
virtual TranslatedString customDialogTitle () const
 
virtual String customDialogIcon () const
 
virtual InterfaceOrientationControllerorientationController () const
 
virtual Buffer< QWidget * > printableWidgets ()
 
virtual Buffer< QWidget * > printableWidgetOptions ()
 
virtual Buffer< QWidget * > bottomOptions ()
 
virtual void setTarget (const DynamicPointer< QTDesignObject > &object)
 
virtual void setHorizontal (bool horizontal)
 
virtual void requestScrollEnabled (bool enabled)
 
const DynamicPointer< QTDesignObject > & target () const
 
virtual void setup (DesignObjectDialog *, const ShowPropertiesSettings &)
 
virtual bool isBusy () const
 

Static Public Attributes

static ApplicationOption< bool > default_show_matrix
 
static ApplicationOption< bool > default_show_clear
 

Protected Member Functions

FileChooserDialogfileChooser (bool is_save)
 
void createFileChooser ()
 

Protected Attributes

Ui::MagnetometerCalibrationUI * ui = nullptr
 
OrientationSensorm_sensor = nullptr
 
DesignObjectLookupm_manager = nullptr
 
FileChooserDialogm_file_chooser = nullptr
 
QTimer * m_countdown_timer = nullptr
 
Buttonm_clear_button = nullptr
 
Time m_start_time = Constant<Time>::NaN
 
bool m_show_popup = true
 
bool m_is_finished = false
 
bool m_is_activated = false
 
bool m_is_saving = false
 
bool m_show_matrix = true
 
- Protected Attributes inherited from Editor
InterfaceOrientationControllerm_orientation_controller
 
DynamicPointer< QTDesignObjectm_design_object
 

Additional Inherited Members

- Protected Slots inherited from Editor
void onDesignObjectUpdateSlot ()
 

Detailed Description

Dialog which allows user to edit or create a MagneticCalibrationData object.


Class: MagneticDeclinationDialog

\ingroup Hardware Magnetometer Widget Dialog

Constructor & Destructor Documentation

◆ MagnetometerCalibrationDialog() [1/2]

MagnetometerCalibrationDialog ( const DynamicPointer< QTDesignObject > & object,
QWidget * parent = nullptr )

◆ MagnetometerCalibrationDialog() [2/2]

MagnetometerCalibrationDialog ( QWidget * parent = nullptr)

Member Function Documentation

◆ calibrationData()

MagneticCalibrationData calibrationData ( ) const

◆ cancel()

void cancel ( )

◆ createFileChooser()

void createFileChooser ( )
protected

◆ event()

bool event ( QEvent * event)
override

◆ fileChooser()

FileChooserDialog * fileChooser ( bool is_save)
protected

◆ init()

void init ( )

◆ isFinished()

bool isFinished ( ) const

◆ manager()

DesignObjectLookup * manager ( )

◆ requestCloseSignal

void requestCloseSignal ( )
signal

◆ setModelManager()

void setModelManager ( DesignObjectLookup * manager)

◆ setSensor()

void setSensor ( OrientationSensor * sensor)

◆ showClear()

void showClear ( bool show_clear)

◆ showMatrix()

void showMatrix ( bool show_matrix)

◆ startRecording()

void startRecording ( )

◆ updateValues()

void updateValues ( )
overridevirtual

Implements Editor.

Member Data Documentation

◆ default_show_clear

ApplicationOption< bool > default_show_clear
static

◆ default_show_matrix

ApplicationOption< bool > default_show_matrix
static

◆ m_clear_button

Button* m_clear_button = nullptr
protected

◆ m_countdown_timer

QTimer* m_countdown_timer = nullptr
protected

◆ m_file_chooser

FileChooserDialog* m_file_chooser = nullptr
protected

◆ m_is_activated

bool m_is_activated = false
protected

◆ m_is_finished

bool m_is_finished = false
protected

◆ m_is_saving

bool m_is_saving = false
protected

◆ m_manager

DesignObjectLookup* m_manager = nullptr
protected

◆ m_sensor

OrientationSensor* m_sensor = nullptr
protected

◆ m_show_matrix

bool m_show_matrix = true
protected

◆ m_show_popup

bool m_show_popup = true
protected

◆ m_start_time

Time m_start_time = Constant<Time>::NaN
protected

◆ ui

Ui::MagnetometerCalibrationUI* ui = nullptr
protected

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