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

#include <inputchannelform.h>

Inheritance diagram for inputChannelForm:
ConfigTaskWidget

Public Types

enum  ChannelFunc { CHANNELFUNC_RC, CHANNELFUNC_RSSI }
 
- 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 }
 

Signals

void assignmentChanged ()
 
- Signals inherited from ConfigTaskWidget
void widgetContentsChanged (QWidget *widget)
 
void populateWidgetsRequested ()
 
void refreshWidgetsValuesRequested ()
 
void updateObjectsFromWidgetsRequested ()
 
void autoPilotConnected ()
 
void autoPilotDisconnected ()
 
void defaultRequested (int group)
 

Public Member Functions

 inputChannelForm (QWidget *parent=nullptr, bool showlegend=false, bool showSlider=true, ChannelFunc chanType=CHANNELFUNC_RC)
 
 ~inputChannelForm ()
 
void setName (QString &name)
 
bool assigned ()
 Is an input assigned to this channel? More...
 
- 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 ()
 

Friends

class ConfigInputWidget
 

Additional Inherited Members

- Public Slots inherited from ConfigTaskWidget
void onAutopilotDisconnect ()
 
void onAutopilotConnect ()
 
void invalidateObjects ()
 
void apply ()
 
void save ()
 
- 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 Member Functions inherited from ConfigTaskWidget
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 inherited from ConfigTaskWidget
UAVObjectUtilManagerutilMngr
 

Detailed Description

Definition at line 10 of file inputchannelform.h.

Member Enumeration Documentation

Enumerator
CHANNELFUNC_RC 
CHANNELFUNC_RSSI 

Definition at line 15 of file inputchannelform.h.

Constructor & Destructor Documentation

inputChannelForm::inputChannelForm ( QWidget *  parent = nullptr,
bool  showlegend = false,
bool  showSlider = true,
ChannelFunc  chanType = CHANNELFUNC_RC 
)
explicit

Definition at line 11 of file inputchannelform.cpp.

inputChannelForm::~inputChannelForm ( )

Definition at line 70 of file inputchannelform.cpp.

Member Function Documentation

bool inputChannelForm::assigned ( )

Is an input assigned to this channel?

Definition at line 291 of file inputchannelform.cpp.

void inputChannelForm::assignmentChanged ( )
signal
void inputChannelForm::setName ( QString &  name)

Definition at line 75 of file inputchannelform.cpp.

Friends And Related Function Documentation

friend class ConfigInputWidget
friend

Definition at line 20 of file inputchannelform.h.


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