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

#include <configinputwidget.h>

Inheritance diagram for ConfigInputWidget:
ConfigTaskWidget

Classes

struct  ArmingMethod
 

Public Types

enum  wizardSteps {
  wizardWelcome, wizardChooseMode, wizardChooseType, wizardIdentifySticks,
  wizardIdentifyCenter, wizardIdentifyLimits, wizardIdentifyInverted, wizardVerifyFailsafe,
  wizardFinish, wizardNone
}
 
enum  txMode { mode1, mode2 }
 
enum  txMovements {
  moveLeftVerticalStick, moveRightVerticalStick, moveLeftHorizontalStick, moveRightHorizontalStick,
  moveAccess0, moveAccess1, moveAccess2, moveFlightMode,
  centerAll, moveAll, armingSwitch, nothing
}
 
enum  txMovementType { vertical, horizontal, jump, mix }
 
enum  txType { acro, heli }
 
enum  failsafeDetection { FS_AWAITING_CONNECTION, FS_AWAITING_FAILSAFE, FS_AWAITING_RECONNECT }
 
- Public Types inherited from ConfigTaskWidget
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 Member Functions

 ConfigInputWidget (QWidget *parent=nullptr)
 
 ~ConfigInputWidget ()
 
void startInputWizard ()
 
- Public Member Functions inherited from ConfigTaskWidget
 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 ()
 

Protected Types

enum  ArmingMethodType {
  ARM_INVALID, ARM_ALWAYS_DISARMED, ARM_SWITCH, ARM_ROLL_LEFT,
  ARM_ROLL_RIGHT, ARM_YAW_LEFT, ARM_YAW_RIGHT, ARM_CORNERS
}
 

Protected Member Functions

void resizeEvent (QResizeEvent *event)
 
virtual void enableControls (bool enable)
 
void addMessage (QWidget *target, const QString type, const QString msg)
 
void addWarning (QWidget *target, QWidget *cause, const QString msg)
 
void clearMessages (QWidget *widget, const QString type)
 
void clearWarnings (QWidget *target, QWidget *causesParent)
 
- Protected Member Functions inherited from ConfigTaskWidget
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...
 

Static Protected Attributes

static const QVector
< ArmingMethod
armingMethods
 

Additional Inherited Members

- Public Slots inherited from ConfigTaskWidget
void onAutopilotDisconnect ()
 
void onAutopilotConnect ()
 
void invalidateObjects ()
 
void apply ()
 
void save ()
 
- Signals inherited from ConfigTaskWidget
void widgetContentsChanged (QWidget *widget)
 
void populateWidgetsRequested ()
 
void refreshWidgetsValuesRequested ()
 
void updateObjectsFromWidgetsRequested ()
 
void autoPilotConnected ()
 
void autoPilotDisconnected ()
 
void defaultRequested (int group)
 
- Static Public Member Functions inherited from ConfigTaskWidget
static double listMean (QList< double > list)
 
static double listVar (QList< double > list)
 
- Protected Slots inherited from ConfigTaskWidget
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 Attributes inherited from ConfigTaskWidget
UAVObjectUtilManagerutilMngr
 

Detailed Description

Definition at line 56 of file configinputwidget.h.


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