QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
ParameterEditorController Class Reference

#include <ParameterEditorController.h>

+ Inheritance diagram for ParameterEditorController:
+ Collaboration diagram for ParameterEditorController:

Signals

void searchTextChanged (QString searchText)
 
void currentCategoryChanged (void)
 
void currentGroupChanged (void)
 
void showModifiedOnlyChanged (void)
 
void showFavoritesOnlyChanged (void)
 
void hideReadOnlyChanged (void)
 
void favoritesChanged (void)
 
void diffOtherVehicleChanged (bool diffOtherVehicle)
 
void diffMultipleComponentsChanged (bool diffMultipleComponents)
 
void diffParsedCountChanged (int diffParsedCount)
 
void diffUnchangedCountChanged (int diffUnchangedCount)
 
void diffReadOnlyCountChanged (int diffReadOnlyCount)
 
void diffNoVehicleCountChanged (int diffNoVehicleCount)
 
void diffSendableCountChanged (int diffSendableCount)
 
void diffSelectedCountChanged (int diffSelectedCount)
 
void diffMissingParamsChanged (const QStringList &diffMissingParams)
 
void parametersChanged (void)
 
- Signals inherited from FactPanelController
void missingParametersAvailable ()
 

Public Member Functions

 ParameterEditorController (QObject *parent=nullptr)
 
 ~ParameterEditorController ()
 
Q_INVOKABLE void saveToFile (const QString &filename)
 
Q_INVOKABLE bool buildDiffFromFile (const QString &filename)
 
Q_INVOKABLE void clearDiff (void)
 
Q_INVOKABLE void sendDiff (void)
 
Q_INVOKABLE void refresh (void)
 
Q_INVOKABLE void resetAllToDefaults (void)
 
Q_INVOKABLE void resetAllToVehicleConfiguration (void)
 
Q_INVOKABLE void toggleFavorite (const QString &paramName)
 
Q_INVOKABLE bool isFavorite (const QString &paramName) const
 
Q_INVOKABLE void clearAllFavorites (void)
 
QObject * currentCategory (void)
 
QObject * currentGroup (void)
 
QmlObjectListModelcategories (void)
 
QmlObjectListModeldiffList (void)
 
bool diffOtherVehicle (void) const
 
bool diffMultipleComponents (void) const
 
int diffParsedCount (void) const
 
int diffUnchangedCount (void) const
 
int diffReadOnlyCount (void) const
 
int diffNoVehicleCount (void) const
 
int diffSendableCount (void) const
 
int diffSelectedCount (void) const
 
QStringList diffMissingParams (void) const
 
QStringList favoriteParameterNames (void) const
 
void setCurrentCategory (QObject *currentCategory)
 
void setCurrentGroup (QObject *currentGroup)
 
- Public Member Functions inherited from FactPanelController
 FactPanelController (QObject *parent=nullptr)
 
virtual ~FactPanelController ()
 
Q_INVOKABLE FactgetParameterFact (int componentId, const QString &name, bool reportMissing=true) const
 
Q_INVOKABLE bool parameterExists (int componentId, const QString &name) const
 
Q_INVOKABLE void getMissingParameters (const QStringList &rgNames)
 

Additional Inherited Members

- Protected Member Functions inherited from FactPanelController
bool _allParametersExists (int componentId, const QStringList &names) const
 
void _reportMissingParameter (int componentId, const QString &name) const
 Report a missing parameter.
 
- Protected Attributes inherited from FactPanelController
Vehicle_vehicle = nullptr
 

Detailed Description

Definition at line 126 of file ParameterEditorController.h.

Constructor & Destructor Documentation

◆ ParameterEditorController()

◆ ~ParameterEditorController()

ParameterEditorController::~ParameterEditorController ( )

Definition at line 179 of file ParameterEditorController.cc.

Member Function Documentation

◆ buildDiffFromFile()

bool ParameterEditorController::buildDiffFromFile ( const QString &  filename)

Definition at line 434 of file ParameterEditorController.cc.

References FactPanelController::_vehicle, QmlObjectListModel::append(), ParameterEditorDiff::cannotSend, clearDiff(), Fact::componentId(), ParameterEditorDiff::componentId, FactMetaData::convertAndValidateRaw(), Fact::cookedUnits(), ParameterManager::defaultComponentId, diffMissingParams(), diffMissingParamsChanged(), diffMultipleComponents(), diffMultipleComponentsChanged(), diffNoVehicleCount(), diffNoVehicleCountChanged(), diffOtherVehicle(), diffOtherVehicleChanged(), diffParsedCount(), diffParsedCountChanged(), diffReadOnlyCount(), diffReadOnlyCountChanged(), diffSelectedCountChanged(), diffSendableCount(), diffSendableCountChanged(), diffUnchangedCount(), diffUnchangedCountChanged(), Fact::enumOrValueString(), errorString, ParameterManager::factTypeToMavType(), ParameterEditorDiff::fileValue, ParameterEditorDiff::fileValueVar, ParameterManager::getParameter(), Vehicle::id(), ParameterEditorDiff::load, ParameterEditorDiff::loadChanged(), ParameterManager::mavTypeToFactType(), Fact::metaData(), Fact::name(), ParameterEditorDiff::name, ParameterEditorDiff::noVehicleValue, ParameterManager::parameterExists(), Fact::rawValue(), Fact::readOnly(), Fact::setMetaData(), Fact::setRawValue(), FactMetaData::setVehicleRebootRequired(), QGC::showAppMessage(), Fact::type(), ParameterEditorDiff::units, ParameterEditorDiff::valueType, FactMetaData::valueTypeFloat, FactMetaData::vehicleRebootRequired(), and ParameterEditorDiff::vehicleValue.

◆ categories()

QmlObjectListModel * ParameterEditorController::categories ( void  )
inline

Definition at line 169 of file ParameterEditorController.h.

◆ clearAllFavorites()

void ParameterEditorController::clearAllFavorites ( void  )

Definition at line 813 of file ParameterEditorController.cc.

References favoritesChanged().

◆ clearDiff()

◆ currentCategory()

QObject * ParameterEditorController::currentCategory ( void  )
inline

Definition at line 167 of file ParameterEditorController.h.

Referenced by setCurrentCategory().

◆ currentCategoryChanged

void ParameterEditorController::currentCategoryChanged ( void  )
signal

◆ currentGroup()

QObject * ParameterEditorController::currentGroup ( void  )
inline

Definition at line 168 of file ParameterEditorController.h.

Referenced by setCurrentGroup().

◆ currentGroupChanged

void ParameterEditorController::currentGroupChanged ( void  )
signal

◆ diffList()

QmlObjectListModel * ParameterEditorController::diffList ( void  )
inline

Definition at line 170 of file ParameterEditorController.h.

◆ diffMissingParams()

QStringList ParameterEditorController::diffMissingParams ( void  ) const
inline

Definition at line 179 of file ParameterEditorController.h.

Referenced by buildDiffFromFile().

◆ diffMissingParamsChanged

void ParameterEditorController::diffMissingParamsChanged ( const QStringList &  diffMissingParams)
signal

Referenced by buildDiffFromFile(), and clearDiff().

◆ diffMultipleComponents()

bool ParameterEditorController::diffMultipleComponents ( void  ) const
inline

Definition at line 172 of file ParameterEditorController.h.

Referenced by buildDiffFromFile().

◆ diffMultipleComponentsChanged

void ParameterEditorController::diffMultipleComponentsChanged ( bool  diffMultipleComponents)
signal

Referenced by buildDiffFromFile(), and clearDiff().

◆ diffNoVehicleCount()

int ParameterEditorController::diffNoVehicleCount ( void  ) const
inline

Definition at line 176 of file ParameterEditorController.h.

Referenced by buildDiffFromFile().

◆ diffNoVehicleCountChanged

void ParameterEditorController::diffNoVehicleCountChanged ( int  diffNoVehicleCount)
signal

Referenced by buildDiffFromFile(), and clearDiff().

◆ diffOtherVehicle()

bool ParameterEditorController::diffOtherVehicle ( void  ) const
inline

Definition at line 171 of file ParameterEditorController.h.

Referenced by buildDiffFromFile().

◆ diffOtherVehicleChanged

void ParameterEditorController::diffOtherVehicleChanged ( bool  diffOtherVehicle)
signal

Referenced by buildDiffFromFile(), and clearDiff().

◆ diffParsedCount()

int ParameterEditorController::diffParsedCount ( void  ) const
inline

Definition at line 173 of file ParameterEditorController.h.

Referenced by buildDiffFromFile().

◆ diffParsedCountChanged

void ParameterEditorController::diffParsedCountChanged ( int  diffParsedCount)
signal

Referenced by buildDiffFromFile(), and clearDiff().

◆ diffReadOnlyCount()

int ParameterEditorController::diffReadOnlyCount ( void  ) const
inline

Definition at line 175 of file ParameterEditorController.h.

Referenced by buildDiffFromFile().

◆ diffReadOnlyCountChanged

void ParameterEditorController::diffReadOnlyCountChanged ( int  diffReadOnlyCount)
signal

Referenced by buildDiffFromFile(), and clearDiff().

◆ diffSelectedCount()

int ParameterEditorController::diffSelectedCount ( void  ) const
inline

Definition at line 178 of file ParameterEditorController.h.

◆ diffSelectedCountChanged

void ParameterEditorController::diffSelectedCountChanged ( int  diffSelectedCount)
signal

Referenced by buildDiffFromFile(), and clearDiff().

◆ diffSendableCount()

int ParameterEditorController::diffSendableCount ( void  ) const
inline

Definition at line 177 of file ParameterEditorController.h.

Referenced by buildDiffFromFile().

◆ diffSendableCountChanged

void ParameterEditorController::diffSendableCountChanged ( int  diffSendableCount)
signal

Referenced by buildDiffFromFile(), and clearDiff().

◆ diffUnchangedCount()

int ParameterEditorController::diffUnchangedCount ( void  ) const
inline

Definition at line 174 of file ParameterEditorController.h.

Referenced by buildDiffFromFile().

◆ diffUnchangedCountChanged

void ParameterEditorController::diffUnchangedCountChanged ( int  diffUnchangedCount)
signal

Referenced by buildDiffFromFile(), and clearDiff().

◆ favoriteParameterNames()

QStringList ParameterEditorController::favoriteParameterNames ( void  ) const

Definition at line 786 of file ParameterEditorController.cc.

◆ favoritesChanged

void ParameterEditorController::favoritesChanged ( void  )
signal

◆ hideReadOnlyChanged

void ParameterEditorController::hideReadOnlyChanged ( void  )
signal

◆ isFavorite()

bool ParameterEditorController::isFavorite ( const QString &  paramName) const

Definition at line 808 of file ParameterEditorController.cc.

◆ parametersChanged

void ParameterEditorController::parametersChanged ( void  )
signal

◆ refresh()

void ParameterEditorController::refresh ( void  )

◆ resetAllToDefaults()

void ParameterEditorController::resetAllToDefaults ( void  )

◆ resetAllToVehicleConfiguration()

void ParameterEditorController::resetAllToVehicleConfiguration ( void  )

◆ saveToFile()

void ParameterEditorController::saveToFile ( const QString &  filename)

◆ searchTextChanged

void ParameterEditorController::searchTextChanged ( QString  searchText)
signal

◆ sendDiff()

◆ setCurrentCategory()

void ParameterEditorController::setCurrentCategory ( QObject *  currentCategory)

Definition at line 768 of file ParameterEditorController.cc.

References currentCategory(), and currentCategoryChanged().

Referenced by ParameterEditorController().

◆ setCurrentGroup()

void ParameterEditorController::setCurrentGroup ( QObject *  currentGroup)

Definition at line 777 of file ParameterEditorController.cc.

References currentGroup(), and currentGroupChanged().

◆ showFavoritesOnlyChanged

void ParameterEditorController::showFavoritesOnlyChanged ( void  )
signal

◆ showModifiedOnlyChanged

void ParameterEditorController::showModifiedOnlyChanged ( void  )
signal

◆ toggleFavorite()

void ParameterEditorController::toggleFavorite ( const QString &  paramName)

Definition at line 793 of file ParameterEditorController.cc.

References favoritesChanged().


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