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

Impliments a gadget that displays linear gauges. 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  LineardialGadget
 
class  LineardialGadgetConfiguration
 
class  LineardialGadgetFactory
 
class  LineardialGadgetOptionsPage
 
class  LineardialGadgetWidget
 
class  LineardialPlugin
 

Functions

 LineardialGadget::LineardialGadget (QString classId, LineardialGadgetWidget *widget, QWidget *parent=nullptr)
 
 LineardialGadget::~LineardialGadget ()
 
QWidget * LineardialGadget::widget ()
 
void LineardialGadget::loadConfiguration (IUAVGadgetConfiguration *config)
 
 LineardialGadgetConfiguration::LineardialGadgetConfiguration (QString classId, QSettings *qSettings=nullptr, QObject *parent=nullptr)
 
void LineardialGadgetConfiguration::setDialFile (QString filename)
 
void LineardialGadgetConfiguration::setRange (double min, double max)
 
void LineardialGadgetConfiguration::setGreenRange (double min, double max)
 
void LineardialGadgetConfiguration::setYellowRange (double min, double max)
 
void LineardialGadgetConfiguration::setRedRange (double min, double max)
 
void LineardialGadgetConfiguration::setFont (QString text)
 
void LineardialGadgetConfiguration::setFactor (double val)
 
void LineardialGadgetConfiguration::setDecimalPlaces (int val)
 
void LineardialGadgetConfiguration::setSourceDataObject (QString text)
 
void LineardialGadgetConfiguration::setSourceObjField (QString text)
 
QString LineardialGadgetConfiguration::getDialFile ()
 
double LineardialGadgetConfiguration::getMin ()
 
double LineardialGadgetConfiguration::getMax ()
 
double LineardialGadgetConfiguration::getGreenMin ()
 
double LineardialGadgetConfiguration::getGreenMax ()
 
double LineardialGadgetConfiguration::getYellowMin ()
 
double LineardialGadgetConfiguration::getYellowMax ()
 
double LineardialGadgetConfiguration::getRedMin ()
 
double LineardialGadgetConfiguration::getRedMax ()
 
QString LineardialGadgetConfiguration::getSourceDataObject ()
 
QString LineardialGadgetConfiguration::getSourceObjectField ()
 
QString LineardialGadgetConfiguration::getFont ()
 
int LineardialGadgetConfiguration::getDecimalPlaces ()
 
double LineardialGadgetConfiguration::getFactor ()
 
void LineardialGadgetConfiguration::saveConfig (QSettings *settings) const
 
IUAVGadgetConfiguration * LineardialGadgetConfiguration::clone ()
 
 LineardialGadgetFactory::LineardialGadgetFactory (QObject *parent=nullptr)
 
 LineardialGadgetFactory::~LineardialGadgetFactory ()
 
Core::IUAVGadgetLineardialGadgetFactory::createGadget (QWidget *parent)
 
IUAVGadgetConfiguration * LineardialGadgetFactory::createConfiguration (QSettings *qSettings)
 
IOptionsPage * LineardialGadgetFactory::createOptionsPage (IUAVGadgetConfiguration *config)
 
 LineardialGadgetOptionsPage::LineardialGadgetOptionsPage (LineardialGadgetConfiguration *config, QObject *parent=nullptr)
 
QWidget * LineardialGadgetOptionsPage::createPage (QWidget *parent)
 
void LineardialGadgetOptionsPage::apply ()
 
void LineardialGadgetOptionsPage::finish ()
 
 LineardialGadgetWidget::LineardialGadgetWidget (QWidget *parent=nullptr)
 
 LineardialGadgetWidget::~LineardialGadgetWidget ()
 
void LineardialGadgetWidget::setDialFile (QString dfn)
 Setup dial using its master SVG template. More...
 
void LineardialGadgetWidget::paint ()
 
void LineardialGadgetWidget::setRange (double min, double max)
 
void LineardialGadgetWidget::setGreenRange (double min, double max)
 
void LineardialGadgetWidget::setYellowRange (double min, double max)
 
void LineardialGadgetWidget::setRedRange (double min, double max)
 
void LineardialGadgetWidget::connectInput (QString obj, QString field)
 Connects the widget to the relevant UAVObjects. More...
 
void LineardialGadgetWidget::setIndex (double val)
 
void LineardialGadgetWidget::setDialFont (QString fontProps)
 
void LineardialGadgetWidget::setFactor (double val)
 
void LineardialGadgetWidget::setDecimalPlaces (int val)
 
void LineardialGadgetWidget::paintEvent (QPaintEvent *event)
 
void LineardialGadgetWidget::resizeEvent (QResizeEvent *event)
 

Public Slots

void LineardialGadgetWidget::updateIndex (UAVObject *object1)
 Called by the UAVObject which got updated. More...
 

Detailed Description

Impliments a gadget that displays linear gauges.

Implements a gadget that displays linear gauges and generic indicators.

Implements a gadget that displays linear gauges.

Function Documentation

void LineardialGadgetOptionsPage::apply ( )
virtual

Called when the user presses apply or OK.

Saves the current values

Implements Core::IOptionsPage.

Definition at line 155 of file lineardialgadgetoptionspage.cpp.

IUAVGadgetConfiguration * LineardialGadgetConfiguration::clone ( )
virtual

Clones a configuration.

Implements Core::IUAVGadgetConfiguration.

Definition at line 75 of file lineardialgadgetconfiguration.cpp.

void LineardialGadgetWidget::connectInput ( QString  obj,
QString  field 
)

Connects the widget to the relevant UAVObjects.

Definition at line 67 of file lineardialgadgetwidget.cpp.

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

Reimplemented from Core::IUAVGadgetFactory.

Definition at line 48 of file lineardialgadgetfactory.cpp.

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

Implements Core::IUAVGadgetFactory.

Definition at line 42 of file lineardialgadgetfactory.cpp.

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

Reimplemented from Core::IUAVGadgetFactory.

Definition at line 53 of file lineardialgadgetfactory.cpp.

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

Implements Core::IOptionsPage.

Definition at line 49 of file lineardialgadgetoptionspage.cpp.

void LineardialGadgetOptionsPage::finish ( )
virtual

Implements Core::IOptionsPage.

Definition at line 202 of file lineardialgadgetoptionspage.cpp.

int LineardialGadgetConfiguration::getDecimalPlaces ( )
inline

Definition at line 88 of file lineardialgadgetconfiguration.h.

QString LineardialGadgetConfiguration::getDialFile ( )
inline

Definition at line 76 of file lineardialgadgetconfiguration.h.

double LineardialGadgetConfiguration::getFactor ( )
inline

Definition at line 89 of file lineardialgadgetconfiguration.h.

QString LineardialGadgetConfiguration::getFont ( )
inline

Definition at line 87 of file lineardialgadgetconfiguration.h.

double LineardialGadgetConfiguration::getGreenMax ( )
inline

Definition at line 80 of file lineardialgadgetconfiguration.h.

double LineardialGadgetConfiguration::getGreenMin ( )
inline

Definition at line 79 of file lineardialgadgetconfiguration.h.

double LineardialGadgetConfiguration::getMax ( )
inline

Definition at line 78 of file lineardialgadgetconfiguration.h.

double LineardialGadgetConfiguration::getMin ( )
inline

Definition at line 77 of file lineardialgadgetconfiguration.h.

double LineardialGadgetConfiguration::getRedMax ( )
inline

Definition at line 84 of file lineardialgadgetconfiguration.h.

double LineardialGadgetConfiguration::getRedMin ( )
inline

Definition at line 83 of file lineardialgadgetconfiguration.h.

QString LineardialGadgetConfiguration::getSourceDataObject ( )
inline

Definition at line 85 of file lineardialgadgetconfiguration.h.

QString LineardialGadgetConfiguration::getSourceObjectField ( )
inline

Definition at line 86 of file lineardialgadgetconfiguration.h.

double LineardialGadgetConfiguration::getYellowMax ( )
inline

Definition at line 82 of file lineardialgadgetconfiguration.h.

double LineardialGadgetConfiguration::getYellowMin ( )
inline

Definition at line 81 of file lineardialgadgetconfiguration.h.

LineardialGadget::LineardialGadget ( QString  classId,
LineardialGadgetWidget widget,
QWidget *  parent = nullptr 
)

Definition at line 31 of file lineardialgadget.cpp.

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

Loads a saved configuration or defaults if non exist.

Definition at line 34 of file lineardialgadgetconfiguration.cpp.

LineardialGadgetFactory::LineardialGadgetFactory ( QObject *  parent = nullptr)

Definition at line 33 of file lineardialgadgetfactory.cpp.

LineardialGadgetOptionsPage::LineardialGadgetOptionsPage ( LineardialGadgetConfiguration config,
QObject *  parent = nullptr 
)
explicit

Definition at line 40 of file lineardialgadgetoptionspage.cpp.

LineardialGadgetWidget::LineardialGadgetWidget ( QWidget *  parent = nullptr)

Definition at line 34 of file lineardialgadgetwidget.cpp.

void LineardialGadget::loadConfiguration ( IUAVGadgetConfiguration *  config)
virtual

Reimplemented from Core::IUAVGadget.

Definition at line 48 of file lineardialgadget.cpp.

void LineardialGadgetWidget::paint ( )

Definition at line 370 of file lineardialgadgetwidget.cpp.

void LineardialGadgetWidget::paintEvent ( QPaintEvent *  event)
protected

Definition at line 375 of file lineardialgadgetwidget.cpp.

void LineardialGadgetWidget::resizeEvent ( QResizeEvent *  event)
protected

Definition at line 388 of file lineardialgadgetwidget.cpp.

void LineardialGadgetConfiguration::saveConfig ( QSettings *  qSettings) const
virtual

Saves a configuration.

Reimplemented from Core::IUAVGadgetConfiguration.

Definition at line 100 of file lineardialgadgetconfiguration.cpp.

void LineardialGadgetConfiguration::setDecimalPlaces ( int  val)
inline

Definition at line 70 of file lineardialgadgetconfiguration.h.

void LineardialGadgetWidget::setDecimalPlaces ( int  val)
inline

Definition at line 74 of file lineardialgadgetwidget.h.

void LineardialGadgetConfiguration::setDialFile ( QString  filename)
inline

Definition at line 45 of file lineardialgadgetconfiguration.h.

void LineardialGadgetWidget::setDialFile ( QString  dfn)

Setup dial using its master SVG template.

Should only be called after the min/max ranges have been set.

Definition at line 152 of file lineardialgadgetwidget.cpp.

void LineardialGadgetWidget::setDialFont ( QString  fontProps)

Definition at line 352 of file lineardialgadgetwidget.cpp.

void LineardialGadgetConfiguration::setFactor ( double  val)
inline

Definition at line 69 of file lineardialgadgetconfiguration.h.

void LineardialGadgetWidget::setFactor ( double  val)
inline

Definition at line 73 of file lineardialgadgetwidget.h.

void LineardialGadgetConfiguration::setFont ( QString  text)
inline

Definition at line 67 of file lineardialgadgetconfiguration.h.

void LineardialGadgetConfiguration::setGreenRange ( double  min,
double  max 
)
inline

Definition at line 51 of file lineardialgadgetconfiguration.h.

void LineardialGadgetWidget::setGreenRange ( double  min,
double  max 
)
inline

Definition at line 55 of file lineardialgadgetwidget.h.

void LineardialGadgetWidget::setIndex ( double  val)

Definition at line 396 of file lineardialgadgetwidget.cpp.

void LineardialGadgetConfiguration::setRange ( double  min,
double  max 
)
inline

Definition at line 46 of file lineardialgadgetconfiguration.h.

void LineardialGadgetWidget::setRange ( double  min,
double  max 
)
inline

Definition at line 50 of file lineardialgadgetwidget.h.

void LineardialGadgetConfiguration::setRedRange ( double  min,
double  max 
)
inline

Definition at line 61 of file lineardialgadgetconfiguration.h.

void LineardialGadgetWidget::setRedRange ( double  min,
double  max 
)
inline

Definition at line 65 of file lineardialgadgetwidget.h.

void LineardialGadgetConfiguration::setSourceDataObject ( QString  text)
inline

Definition at line 72 of file lineardialgadgetconfiguration.h.

void LineardialGadgetConfiguration::setSourceObjField ( QString  text)
inline

Definition at line 73 of file lineardialgadgetconfiguration.h.

void LineardialGadgetConfiguration::setYellowRange ( double  min,
double  max 
)
inline

Definition at line 56 of file lineardialgadgetconfiguration.h.

void LineardialGadgetWidget::setYellowRange ( double  min,
double  max 
)
inline

Definition at line 60 of file lineardialgadgetwidget.h.

QWidget* LineardialGadget::widget ( )
inlinevirtual

Implements Core::IUAVGadget.

Definition at line 47 of file lineardialgadget.h.

LineardialGadget::~LineardialGadget ( )

Definition at line 37 of file lineardialgadget.cpp.

LineardialGadgetFactory::~LineardialGadgetFactory ( )

Definition at line 38 of file lineardialgadgetfactory.cpp.

LineardialGadgetWidget::~LineardialGadgetWidget ( )

Definition at line 59 of file lineardialgadgetwidget.cpp.

Public Slots

void LineardialGadgetWidget::updateIndex ( UAVObject object1)
slot

Called by the UAVObject which got updated.

Updates the numeric value and/or the icon if the dial wants this.

Definition at line 106 of file lineardialgadgetwidget.cpp.