dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
Dial Plugin

Plots flight information rotary style dials. More...

Namespaces

 Core
 The Core namespace contains all classes that make up the Core plugin which constitute the basic functionality of the GCS.
 
 Ui
 

Classes

class  DialGadget
 
class  DialGadgetConfiguration
 
class  DialGadgetFactory
 
class  DialGadgetOptionsPage
 
class  DialGadgetWidget
 
class  DialPlugin
 

Functions

 DialGadget::DialGadget (QString classId, DialGadgetWidget *widget, QWidget *parent=nullptr)
 
 DialGadget::~DialGadget ()
 
QWidget * DialGadget::widget ()
 
void DialGadget::loadConfiguration (IUAVGadgetConfiguration *config)
 
 DialGadgetConfiguration::DialGadgetConfiguration (QString classId, QSettings *qSettings=nullptr, QObject *parent=nullptr)
 
void DialGadgetConfiguration::setDialFile (QString dialFile)
 
void DialGadgetConfiguration::setDialBackgroundID (QString elementID)
 
void DialGadgetConfiguration::setDialForegroundID (QString elementID)
 
void DialGadgetConfiguration::setDialNeedleID1 (QString elementID)
 
void DialGadgetConfiguration::setDialNeedleID2 (QString elementID)
 
void DialGadgetConfiguration::setDialNeedleID3 (QString elementID)
 
void DialGadgetConfiguration::setN1Min (double val)
 
void DialGadgetConfiguration::setN2Min (double val)
 
void DialGadgetConfiguration::setN3Min (double val)
 
void DialGadgetConfiguration::setN1Max (double val)
 
void DialGadgetConfiguration::setN2Max (double val)
 
void DialGadgetConfiguration::setN3Max (double val)
 
void DialGadgetConfiguration::setN1Factor (double val)
 
void DialGadgetConfiguration::setN2Factor (double val)
 
void DialGadgetConfiguration::setN3Factor (double val)
 
void DialGadgetConfiguration::setN1DataObject (QString text)
 
void DialGadgetConfiguration::setN2DataObject (QString text)
 
void DialGadgetConfiguration::setN3DataObject (QString text)
 
void DialGadgetConfiguration::setN1ObjField (QString text)
 
void DialGadgetConfiguration::setN2ObjField (QString text)
 
void DialGadgetConfiguration::setN3ObjField (QString text)
 
void DialGadgetConfiguration::setN1Move (QString move)
 
void DialGadgetConfiguration::setN2Move (QString move)
 
void DialGadgetConfiguration::setN3Move (QString move)
 
void DialGadgetConfiguration::setFont (QString text)
 
void DialGadgetConfiguration::setBeSmooth (bool flag)
 
QString DialGadgetConfiguration::dialFile ()
 
QString DialGadgetConfiguration::dialBackground ()
 
QString DialGadgetConfiguration::dialForeground ()
 
QString DialGadgetConfiguration::dialNeedle1 ()
 
QString DialGadgetConfiguration::dialNeedle2 ()
 
QString DialGadgetConfiguration::dialNeedle3 ()
 
double DialGadgetConfiguration::getN1Min ()
 
double DialGadgetConfiguration::getN2Min ()
 
double DialGadgetConfiguration::getN3Min ()
 
double DialGadgetConfiguration::getN1Max ()
 
double DialGadgetConfiguration::getN2Max ()
 
double DialGadgetConfiguration::getN3Max ()
 
double DialGadgetConfiguration::getN1Factor ()
 
double DialGadgetConfiguration::getN2Factor ()
 
double DialGadgetConfiguration::getN3Factor ()
 
QString DialGadgetConfiguration::getN1DataObject ()
 
QString DialGadgetConfiguration::getN2DataObject ()
 
QString DialGadgetConfiguration::getN3DataObject ()
 
QString DialGadgetConfiguration::getN1ObjField ()
 
QString DialGadgetConfiguration::getN2ObjField ()
 
QString DialGadgetConfiguration::getN3ObjField ()
 
QString DialGadgetConfiguration::getN1Move ()
 
QString DialGadgetConfiguration::getN2Move ()
 
QString DialGadgetConfiguration::getN3Move ()
 
QString DialGadgetConfiguration::getFont ()
 
bool DialGadgetConfiguration::getBeSmooth ()
 
void DialGadgetConfiguration::saveConfig (QSettings *settings) const
 
IUAVGadgetConfiguration * DialGadgetConfiguration::clone ()
 
 DialGadgetFactory::DialGadgetFactory (QObject *parent=nullptr)
 
 DialGadgetFactory::~DialGadgetFactory ()
 
Core::IUAVGadgetDialGadgetFactory::createGadget (QWidget *parent)
 
IUAVGadgetConfiguration * DialGadgetFactory::createConfiguration (QSettings *qSettings)
 
IOptionsPage * DialGadgetFactory::createOptionsPage (IUAVGadgetConfiguration *config)
 
 DialGadgetOptionsPage::DialGadgetOptionsPage (DialGadgetConfiguration *config, QObject *parent=nullptr)
 
QWidget * DialGadgetOptionsPage::createPage (QWidget *parent)
 
void DialGadgetOptionsPage::apply ()
 
void DialGadgetOptionsPage::finish ()
 
 DialGadgetWidget::DialGadgetWidget (QWidget *parent=nullptr)
 
 DialGadgetWidget::~DialGadgetWidget ()
 
void DialGadgetWidget::enableSmoothUpdates (bool flag)
 
void DialGadgetWidget::setDialFile (QString dfn, QString bg, QString fg, QString n1, QString n2, QString n3, QString n1Move, QString n2Move, QString n3Move)
 
void DialGadgetWidget::paint ()
 
void DialGadgetWidget::setNeedle1 (double value)
 
void DialGadgetWidget::setNeedle2 (double value)
 
void DialGadgetWidget::setNeedle3 (double value)
 
void DialGadgetWidget::setN1Min (double value)
 
void DialGadgetWidget::setN1Max (double value)
 
void DialGadgetWidget::setN1Factor (double value)
 
void DialGadgetWidget::setN2Min (double value)
 
void DialGadgetWidget::setN2Max (double value)
 
void DialGadgetWidget::setN2Factor (double value)
 
void DialGadgetWidget::setN3Min (double value)
 
void DialGadgetWidget::setN3Max (double value)
 
void DialGadgetWidget::setN3Factor (double value)
 
void DialGadgetWidget::connectNeedles (QString object1, QString field1, QString object2, QString field2, QString object3, QString field3)
 Connects the widget to the relevant UAVObjects. More...
 
void DialGadgetWidget::setDialFont (QString fontProps)
 
void DialGadgetWidget::paintEvent (QPaintEvent *event)
 
void DialGadgetWidget::resizeEvent (QResizeEvent *event)
 

Public Slots

void DialGadgetWidget::updateNeedle1 (UAVObject *object1)
 Called by the UAVObject which got updated. More...
 
void DialGadgetWidget::updateNeedle2 (UAVObject *object2)
 Called by the UAVObject which got updated. More...
 
void DialGadgetWidget::updateNeedle3 (UAVObject *object3)
 Called by the UAVObject which got updated. More...
 

Detailed Description

Plots flight information rotary style dials.

Function Documentation

void DialGadgetOptionsPage::apply ( )
virtual

Called when the user presses apply or OK.

Saves the current values

Implements Core::IOptionsPage.

Definition at line 173 of file dialgadgetoptionspage.cpp.

IUAVGadgetConfiguration * DialGadgetConfiguration::clone ( )
virtual

Clones a configuration.

Implements Core::IUAVGadgetConfiguration.

Definition at line 95 of file dialgadgetconfiguration.cpp.

void DialGadgetWidget::connectNeedles ( QString  object1,
QString  field1,
QString  object2,
QString  field2,
QString  object3,
QString  field3 
)

Connects the widget to the relevant UAVObjects.

Definition at line 75 of file dialgadgetwidget.cpp.

IUAVGadgetConfiguration * DialGadgetFactory::createConfiguration ( QSettings *  qSettings)
virtual

Reimplemented from Core::IUAVGadgetFactory.

Definition at line 49 of file dialgadgetfactory.cpp.

Core::IUAVGadget * DialGadgetFactory::createGadget ( QWidget *  parent)
virtual

Implements Core::IUAVGadgetFactory.

Definition at line 43 of file dialgadgetfactory.cpp.

IOptionsPage * DialGadgetFactory::createOptionsPage ( IUAVGadgetConfiguration *  config)
virtual

Reimplemented from Core::IUAVGadgetFactory.

Definition at line 54 of file dialgadgetfactory.cpp.

QWidget * DialGadgetOptionsPage::createPage ( QWidget *  parent)
virtual

Implements Core::IOptionsPage.

Definition at line 46 of file dialgadgetoptionspage.cpp.

QString DialGadgetConfiguration::dialBackground ( )
inline

Definition at line 75 of file dialgadgetconfiguration.h.

QString DialGadgetConfiguration::dialFile ( )
inline

Definition at line 74 of file dialgadgetconfiguration.h.

QString DialGadgetConfiguration::dialForeground ( )
inline

Definition at line 76 of file dialgadgetconfiguration.h.

DialGadget::DialGadget ( QString  classId,
DialGadgetWidget widget,
QWidget *  parent = nullptr 
)

Definition at line 32 of file dialgadget.cpp.

DialGadgetConfiguration::DialGadgetConfiguration ( QString  classId,
QSettings *  qSettings = nullptr,
QObject *  parent = nullptr 
)
explicit

Loads a saved configuration or defaults if non exist.

Definition at line 35 of file dialgadgetconfiguration.cpp.

DialGadgetFactory::DialGadgetFactory ( QObject *  parent = nullptr)

Definition at line 34 of file dialgadgetfactory.cpp.

DialGadgetOptionsPage::DialGadgetOptionsPage ( DialGadgetConfiguration config,
QObject *  parent = nullptr 
)
explicit

Definition at line 39 of file dialgadgetoptionspage.cpp.

DialGadgetWidget::DialGadgetWidget ( QWidget *  parent = nullptr)

Definition at line 35 of file dialgadgetwidget.cpp.

QString DialGadgetConfiguration::dialNeedle1 ( )
inline

Definition at line 77 of file dialgadgetconfiguration.h.

QString DialGadgetConfiguration::dialNeedle2 ( )
inline

Definition at line 78 of file dialgadgetconfiguration.h.

QString DialGadgetConfiguration::dialNeedle3 ( )
inline

Definition at line 79 of file dialgadgetconfiguration.h.

void DialGadgetWidget::enableSmoothUpdates ( bool  flag)
inline

Definition at line 49 of file dialgadgetwidget.h.

void DialGadgetOptionsPage::finish ( )
virtual

Implements Core::IOptionsPage.

Definition at line 241 of file dialgadgetoptionspage.cpp.

bool DialGadgetConfiguration::getBeSmooth ( )
inline

Definition at line 99 of file dialgadgetconfiguration.h.

QString DialGadgetConfiguration::getFont ( )
inline

Definition at line 98 of file dialgadgetconfiguration.h.

QString DialGadgetConfiguration::getN1DataObject ( )
inline

Definition at line 89 of file dialgadgetconfiguration.h.

double DialGadgetConfiguration::getN1Factor ( )
inline

Definition at line 86 of file dialgadgetconfiguration.h.

double DialGadgetConfiguration::getN1Max ( )
inline

Definition at line 83 of file dialgadgetconfiguration.h.

double DialGadgetConfiguration::getN1Min ( )
inline

Definition at line 80 of file dialgadgetconfiguration.h.

QString DialGadgetConfiguration::getN1Move ( )
inline

Definition at line 95 of file dialgadgetconfiguration.h.

QString DialGadgetConfiguration::getN1ObjField ( )
inline

Definition at line 92 of file dialgadgetconfiguration.h.

QString DialGadgetConfiguration::getN2DataObject ( )
inline

Definition at line 90 of file dialgadgetconfiguration.h.

double DialGadgetConfiguration::getN2Factor ( )
inline

Definition at line 87 of file dialgadgetconfiguration.h.

double DialGadgetConfiguration::getN2Max ( )
inline

Definition at line 84 of file dialgadgetconfiguration.h.

double DialGadgetConfiguration::getN2Min ( )
inline

Definition at line 81 of file dialgadgetconfiguration.h.

QString DialGadgetConfiguration::getN2Move ( )
inline

Definition at line 96 of file dialgadgetconfiguration.h.

QString DialGadgetConfiguration::getN2ObjField ( )
inline

Definition at line 93 of file dialgadgetconfiguration.h.

QString DialGadgetConfiguration::getN3DataObject ( )
inline

Definition at line 91 of file dialgadgetconfiguration.h.

double DialGadgetConfiguration::getN3Factor ( )
inline

Definition at line 88 of file dialgadgetconfiguration.h.

double DialGadgetConfiguration::getN3Max ( )
inline

Definition at line 85 of file dialgadgetconfiguration.h.

double DialGadgetConfiguration::getN3Min ( )
inline

Definition at line 82 of file dialgadgetconfiguration.h.

QString DialGadgetConfiguration::getN3Move ( )
inline

Definition at line 97 of file dialgadgetconfiguration.h.

QString DialGadgetConfiguration::getN3ObjField ( )
inline

Definition at line 94 of file dialgadgetconfiguration.h.

void DialGadget::loadConfiguration ( IUAVGadgetConfiguration *  config)
virtual

Reimplemented from Core::IUAVGadget.

Definition at line 49 of file dialgadget.cpp.

void DialGadgetWidget::paint ( )

Definition at line 429 of file dialgadgetwidget.cpp.

void DialGadgetWidget::paintEvent ( QPaintEvent *  event)
protected

Definition at line 434 of file dialgadgetwidget.cpp.

void DialGadgetWidget::resizeEvent ( QResizeEvent *  event)
protected

Definition at line 447 of file dialgadgetwidget.cpp.

void DialGadgetConfiguration::saveConfig ( QSettings *  settings) const
virtual

Saves a configuration.

Reimplemented from Core::IUAVGadgetConfiguration.

Definition at line 132 of file dialgadgetconfiguration.cpp.

void DialGadgetConfiguration::setBeSmooth ( bool  flag)
inline

Definition at line 71 of file dialgadgetconfiguration.h.

void DialGadgetConfiguration::setDialBackgroundID ( QString  elementID)
inline

Definition at line 47 of file dialgadgetconfiguration.h.

void DialGadgetConfiguration::setDialFile ( QString  dialFile)
inline

Definition at line 46 of file dialgadgetconfiguration.h.

void DialGadgetWidget::setDialFile ( QString  dfn,
QString  bg,
QString  fg,
QString  n1,
QString  n2,
QString  n3,
QString  n1Move,
QString  n2Move,
QString  n3Move 
)

Definition at line 226 of file dialgadgetwidget.cpp.

void DialGadgetWidget::setDialFont ( QString  fontProps)

Definition at line 453 of file dialgadgetwidget.cpp.

void DialGadgetConfiguration::setDialForegroundID ( QString  elementID)
inline

Definition at line 48 of file dialgadgetconfiguration.h.

void DialGadgetConfiguration::setDialNeedleID1 ( QString  elementID)
inline

Definition at line 49 of file dialgadgetconfiguration.h.

void DialGadgetConfiguration::setDialNeedleID2 ( QString  elementID)
inline

Definition at line 50 of file dialgadgetconfiguration.h.

void DialGadgetConfiguration::setDialNeedleID3 ( QString  elementID)
inline

Definition at line 51 of file dialgadgetconfiguration.h.

void DialGadgetConfiguration::setFont ( QString  text)
inline

Definition at line 70 of file dialgadgetconfiguration.h.

void DialGadgetConfiguration::setN1DataObject ( QString  text)
inline

Definition at line 61 of file dialgadgetconfiguration.h.

void DialGadgetConfiguration::setN1Factor ( double  val)
inline

Definition at line 58 of file dialgadgetconfiguration.h.

void DialGadgetWidget::setN1Factor ( double  value)
inline

Definition at line 60 of file dialgadgetwidget.h.

void DialGadgetConfiguration::setN1Max ( double  val)
inline

Definition at line 55 of file dialgadgetconfiguration.h.

void DialGadgetWidget::setN1Max ( double  value)
inline

Definition at line 59 of file dialgadgetwidget.h.

void DialGadgetConfiguration::setN1Min ( double  val)
inline

Definition at line 52 of file dialgadgetconfiguration.h.

void DialGadgetWidget::setN1Min ( double  value)
inline

Definition at line 58 of file dialgadgetwidget.h.

void DialGadgetConfiguration::setN1Move ( QString  move)
inline

Definition at line 67 of file dialgadgetconfiguration.h.

void DialGadgetConfiguration::setN1ObjField ( QString  text)
inline

Definition at line 64 of file dialgadgetconfiguration.h.

void DialGadgetConfiguration::setN2DataObject ( QString  text)
inline

Definition at line 62 of file dialgadgetconfiguration.h.

void DialGadgetConfiguration::setN2Factor ( double  val)
inline

Definition at line 59 of file dialgadgetconfiguration.h.

void DialGadgetWidget::setN2Factor ( double  value)
inline

Definition at line 63 of file dialgadgetwidget.h.

void DialGadgetConfiguration::setN2Max ( double  val)
inline

Definition at line 56 of file dialgadgetconfiguration.h.

void DialGadgetWidget::setN2Max ( double  value)
inline

Definition at line 62 of file dialgadgetwidget.h.

void DialGadgetConfiguration::setN2Min ( double  val)
inline

Definition at line 53 of file dialgadgetconfiguration.h.

void DialGadgetWidget::setN2Min ( double  value)
inline

Definition at line 61 of file dialgadgetwidget.h.

void DialGadgetConfiguration::setN2Move ( QString  move)
inline

Definition at line 68 of file dialgadgetconfiguration.h.

void DialGadgetConfiguration::setN2ObjField ( QString  text)
inline

Definition at line 65 of file dialgadgetconfiguration.h.

void DialGadgetConfiguration::setN3DataObject ( QString  text)
inline

Definition at line 63 of file dialgadgetconfiguration.h.

void DialGadgetConfiguration::setN3Factor ( double  val)
inline

Definition at line 60 of file dialgadgetconfiguration.h.

void DialGadgetWidget::setN3Factor ( double  value)
inline

Definition at line 66 of file dialgadgetwidget.h.

void DialGadgetConfiguration::setN3Max ( double  val)
inline

Definition at line 57 of file dialgadgetconfiguration.h.

void DialGadgetWidget::setN3Max ( double  value)
inline

Definition at line 65 of file dialgadgetwidget.h.

void DialGadgetConfiguration::setN3Min ( double  val)
inline

Definition at line 54 of file dialgadgetconfiguration.h.

void DialGadgetWidget::setN3Min ( double  value)
inline

Definition at line 64 of file dialgadgetwidget.h.

void DialGadgetConfiguration::setN3Move ( QString  move)
inline

Definition at line 69 of file dialgadgetconfiguration.h.

void DialGadgetConfiguration::setN3ObjField ( QString  text)
inline

Definition at line 66 of file dialgadgetconfiguration.h.

void DialGadgetWidget::setNeedle1 ( double  value)

Definition at line 464 of file dialgadgetwidget.cpp.

void DialGadgetWidget::setNeedle2 ( double  value)

Definition at line 484 of file dialgadgetwidget.cpp.

void DialGadgetWidget::setNeedle3 ( double  value)

Definition at line 504 of file dialgadgetwidget.cpp.

QWidget* DialGadget::widget ( )
inlinevirtual

Implements Core::IUAVGadget.

Definition at line 48 of file dialgadget.h.

DialGadget::~DialGadget ( )

Definition at line 38 of file dialgadget.cpp.

DialGadgetFactory::~DialGadgetFactory ( )

Definition at line 39 of file dialgadgetfactory.cpp.

DialGadgetWidget::~DialGadgetWidget ( )

Definition at line 67 of file dialgadgetwidget.cpp.

Public Slots

void DialGadgetWidget::updateNeedle1 ( UAVObject object1)
slot

Called by the UAVObject which got updated.

Definition at line 152 of file dialgadgetwidget.cpp.

void DialGadgetWidget::updateNeedle2 ( UAVObject object2)
slot

Called by the UAVObject which got updated.

Definition at line 177 of file dialgadgetwidget.cpp.

void DialGadgetWidget::updateNeedle3 ( UAVObject object3)
slot

Called by the UAVObject which got updated.

Definition at line 201 of file dialgadgetwidget.cpp.