dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
ConfigTaskWidget Class Reference

#include <configtaskwidget.h>

Inheritance diagram for ConfigTaskWidget:
BrainConfiguration BrainRE1Configuration ConfigAttitudeWidget ConfigAutotuneWidget ConfigCameraStabilizationWidget ConfigInputWidget ConfigModuleWidget ConfigOsdWidget ConfigOutputWidget ConfigRadioWidget ConfigStabilizationWidget ConfigTxPIDWidget ConfigVehicleTypeWidget DefaultHwSettingsWidget DtfcConfiguration inputChannelForm LuxConfiguration OutputChannelForm SeppukuConfiguration SimulationConfiguration Sprf3eConfiguration VehicleConfig

Classes

struct  objectToWidget
 
struct  shadow
 
struct  temphelper
 
struct  uiRelationAutomation
 

Public Types

enum  buttonTypeEnum {
  none, save_button, apply_button, reload_button,
  default_button, help_button, reboot_button, connections_button
}
 
enum  metadataSetEnum { ALL_METADATA, SETTINGS_METADATA_ONLY, NONSETTINGS_METADATA_ONLY }
 

Public Slots

void onAutopilotDisconnect ()
 
void onAutopilotConnect ()
 
void invalidateObjects ()
 
void apply ()
 
void save ()
 

Signals

void widgetContentsChanged (QWidget *widget)
 
void populateWidgetsRequested ()
 
void refreshWidgetsValuesRequested ()
 
void updateObjectsFromWidgetsRequested ()
 
void autoPilotConnected ()
 
void autoPilotDisconnected ()
 
void defaultRequested (int group)
 

Public Member Functions

 ConfigTaskWidget (QWidget *parent=nullptr)
 
virtual ~ConfigTaskWidget ()
 
void disableMouseWheelEvents ()
 
bool eventFilter (QObject *obj, QEvent *evt)
 
void saveObjectToSD (UAVObject *obj)
 
UAVObjectManagergetObjectManager ()
 ConfigTaskWidget::getObjectManager Utility function to get a pointer to the object manager. More...
 
UAVObjectUtilManagergetObjectUtilManager ()
 ConfigTaskWidget::getObjectUtilManager Utility function to get a pointer to the object manager utilities. More...
 
void addUAVObject (QString objectName, QList< int > *reloadGroups=NULL)
 
void addUAVObject (UAVObject *objectName, QList< int > *reloadGroups=NULL)
 
void addWidget (QWidget *widget)
 
void addUAVObjectToWidgetRelation (QString object, QString field, QWidget *widget, int index=0, double scale=1, bool isLimited=false, bool useUnits=false, QList< int > *defaultReloadGroups=nullptr, quint32 instID=0, bool oneWayBind=false)
 Add an UAVObject field to widget relation to the management system Note: This is the instance called for objrelation dynamic properties. More...
 
void addConnectionsButton (QPushButton *button)
 addConnectionsButton Add connection diagram button More...
 
void addWidgetToDefaultReloadGroups (QWidget *widget, QList< int > *groups)
 
bool addShadowWidget (QString object, QString field, QWidget *widget, int index=0, double scale=1, bool isLimited=false, bool useUnits=false, QList< int > *defaultReloadGroups=NULL, quint32 instID=0)
 
void autoLoadWidgets ()
 
void loadAllLimits ()
 
bool isAutopilotConnected ()
 ConfigTaskWidget::isAutopilotConnected Checks if the autopilot is connected. More...
 
bool isDirty ()
 
void setDirty (bool value)
 
bool allObjectsUpdated ()
 
void setOutOfLimitsStyle (QString style)
 
void addHelpButton (QPushButton *button, QString url)
 
void forceShadowUpdates ()
 ConfigTaskWidget::forceShadowUpdates. More...
 
void forceConnectedState ()
 
void setNotMandatory (QString object)
 
virtual void tabSwitchingAway ()
 

Static Public Member Functions

static double listMean (QList< double > list)
 
static double listVar (QList< double > list)
 

Protected Slots

virtual void disableObjUpdates ()
 
virtual void enableObjUpdates ()
 
virtual void clearDirty ()
 
virtual void widgetsContentsChanged ()
 
virtual void populateWidgets ()
 
virtual void refreshWidgetsValues (UAVObject *obj=NULL)
 
virtual void updateObjectsFromWidgets ()
 
virtual void helpButtonPressed ()
 

Protected Member Functions

virtual void enableControls (bool enable)
 
void checkWidgetsLimits (QWidget *widget, UAVObjectField *field, int index, bool hasLimits, bool useUnits, QVariant value, double scale)
 
virtual QVariant getVariantFromWidget (QWidget *widget, double scale, bool usesUnits=false)
 
virtual bool setWidgetFromVariant (QWidget *widget, QVariant value, double scale, QString units="")
 
virtual QString getOptionFromChecked (QWidget *widget, bool checked)
 Determine which enum option based on checkbox. More...
 
virtual bool getCheckedFromOption (QWidget *widget, QString option)
 Determine whether checkbox should be checked. More...
 
bool resetWidgetToDefault (QWidget *widget)
 resetWidgetToDefault Resets the widget to the default value for the associated field More...
 
void setWidgetProperty (QWidget *widget, const char *prop, const QVariant &value)
 setWidgetProperty Sets a dynamic property on a widget and forces a re-evaluation of it's stylesheet Normally the stylesheet isn't re-evaluated when dynamic properties are changed More...
 
void setWidgetEnabled (QWidget *widget, bool enabled=true)
 setWidgetEnabled Enable/disable a widget controlled by a UAVO relation More...
 

Protected Attributes

UAVObjectUtilManagerutilMngr
 

Detailed Description

Definition at line 55 of file configtaskwidget.h.


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