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 diffInvalidParamsChanged (const QStringList &diffInvalidParams)
void parametersChanged (void)
Signals inherited from FactPanelController
void missingParametersAvailable ()
void suppressRebootMessageChanged ()

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)
QmlObjectListModel * categories (void)
QmlObjectListModel * diffList (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 diffInvalidParams (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 Fact * getParameterFact (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)
bool suppressRebootMessage () const
void setSuppressRebootMessage (bool suppress)

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 128 of file ParameterEditorController.h.

Constructor & Destructor Documentation

◆ ParameterEditorController()

◆ ~ParameterEditorController()

ParameterEditorController::~ParameterEditorController ( )

Definition at line 183 of file ParameterEditorController.cc.

Member Function Documentation

◆ buildDiffFromFile()

bool ParameterEditorController::buildDiffFromFile ( const QString & filename)

◆ categories()

QmlObjectListModel * ParameterEditorController::categories ( void )
inline

Definition at line 172 of file ParameterEditorController.h.

◆ clearAllFavorites()

void ParameterEditorController::clearAllFavorites ( void )

Definition at line 927 of file ParameterEditorController.cc.

References favoritesChanged().

◆ clearDiff()

◆ currentCategory()

QObject * ParameterEditorController::currentCategory ( void )
inline

Definition at line 170 of file ParameterEditorController.h.

Referenced by setCurrentCategory().

◆ currentCategoryChanged

void ParameterEditorController::currentCategoryChanged ( void )
signal

◆ currentGroup()

QObject * ParameterEditorController::currentGroup ( void )
inline

Definition at line 171 of file ParameterEditorController.h.

Referenced by setCurrentGroup().

◆ currentGroupChanged

void ParameterEditorController::currentGroupChanged ( void )
signal

◆ diffInvalidParams()

QStringList ParameterEditorController::diffInvalidParams ( void ) const
inline

Definition at line 183 of file ParameterEditorController.h.

Referenced by buildDiffFromFile(), and diffInvalidParamsChanged().

◆ diffInvalidParamsChanged

void ParameterEditorController::diffInvalidParamsChanged ( const QStringList & diffInvalidParams)
signal

References diffInvalidParams().

Referenced by buildDiffFromFile(), and clearDiff().

◆ diffList()

QmlObjectListModel * ParameterEditorController::diffList ( void )
inline

Definition at line 173 of file ParameterEditorController.h.

◆ diffMissingParams()

QStringList ParameterEditorController::diffMissingParams ( void ) const
inline

Definition at line 182 of file ParameterEditorController.h.

Referenced by buildDiffFromFile(), and diffMissingParamsChanged().

◆ diffMissingParamsChanged

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

References diffMissingParams().

Referenced by buildDiffFromFile(), and clearDiff().

◆ diffMultipleComponents()

bool ParameterEditorController::diffMultipleComponents ( void ) const
inline

◆ diffMultipleComponentsChanged

void ParameterEditorController::diffMultipleComponentsChanged ( bool diffMultipleComponents)
signal

References diffMultipleComponents().

Referenced by buildDiffFromFile(), and clearDiff().

◆ diffNoVehicleCount()

int ParameterEditorController::diffNoVehicleCount ( void ) const
inline

Definition at line 179 of file ParameterEditorController.h.

Referenced by buildDiffFromFile(), and diffNoVehicleCountChanged().

◆ diffNoVehicleCountChanged

void ParameterEditorController::diffNoVehicleCountChanged ( int diffNoVehicleCount)
signal

References diffNoVehicleCount().

Referenced by buildDiffFromFile(), and clearDiff().

◆ diffOtherVehicle()

bool ParameterEditorController::diffOtherVehicle ( void ) const
inline

Definition at line 174 of file ParameterEditorController.h.

Referenced by buildDiffFromFile(), and diffOtherVehicleChanged().

◆ diffOtherVehicleChanged

void ParameterEditorController::diffOtherVehicleChanged ( bool diffOtherVehicle)
signal

References diffOtherVehicle().

Referenced by buildDiffFromFile(), and clearDiff().

◆ diffParsedCount()

int ParameterEditorController::diffParsedCount ( void ) const
inline

Definition at line 176 of file ParameterEditorController.h.

Referenced by buildDiffFromFile(), and diffParsedCountChanged().

◆ diffParsedCountChanged

void ParameterEditorController::diffParsedCountChanged ( int diffParsedCount)
signal

References diffParsedCount().

Referenced by buildDiffFromFile(), and clearDiff().

◆ diffReadOnlyCount()

int ParameterEditorController::diffReadOnlyCount ( void ) const
inline

Definition at line 178 of file ParameterEditorController.h.

Referenced by buildDiffFromFile(), and diffReadOnlyCountChanged().

◆ diffReadOnlyCountChanged

void ParameterEditorController::diffReadOnlyCountChanged ( int diffReadOnlyCount)
signal

References diffReadOnlyCount().

Referenced by buildDiffFromFile(), and clearDiff().

◆ diffSelectedCount()

int ParameterEditorController::diffSelectedCount ( void ) const
inline

Definition at line 181 of file ParameterEditorController.h.

Referenced by diffSelectedCountChanged().

◆ diffSelectedCountChanged

void ParameterEditorController::diffSelectedCountChanged ( int diffSelectedCount)
signal

References diffSelectedCount().

Referenced by buildDiffFromFile(), and clearDiff().

◆ diffSendableCount()

int ParameterEditorController::diffSendableCount ( void ) const
inline

Definition at line 180 of file ParameterEditorController.h.

Referenced by buildDiffFromFile(), and diffSendableCountChanged().

◆ diffSendableCountChanged

void ParameterEditorController::diffSendableCountChanged ( int diffSendableCount)
signal

References diffSendableCount().

Referenced by buildDiffFromFile(), and clearDiff().

◆ diffUnchangedCount()

int ParameterEditorController::diffUnchangedCount ( void ) const
inline

Definition at line 177 of file ParameterEditorController.h.

Referenced by buildDiffFromFile(), and diffUnchangedCountChanged().

◆ diffUnchangedCountChanged

void ParameterEditorController::diffUnchangedCountChanged ( int diffUnchangedCount)
signal

References diffUnchangedCount().

Referenced by buildDiffFromFile(), and clearDiff().

◆ favoriteParameterNames()

QStringList ParameterEditorController::favoriteParameterNames ( void ) const

Definition at line 900 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 922 of file ParameterEditorController.cc.

◆ parametersChanged

void ParameterEditorController::parametersChanged ( void )
signal

◆ refresh()

void ParameterEditorController::refresh ( void )

◆ resetAllToDefaults()

void ParameterEditorController::resetAllToDefaults ( void )

Definition at line 753 of file ParameterEditorController.cc.

References refresh().

◆ resetAllToVehicleConfiguration()

void ParameterEditorController::resetAllToVehicleConfiguration ( void )

Definition at line 759 of file ParameterEditorController.cc.

References refresh().

◆ saveToFile()

void ParameterEditorController::saveToFile ( const QString & filename)

◆ searchTextChanged

void ParameterEditorController::searchTextChanged ( QString searchText)
signal

◆ sendDiff()

◆ setCurrentCategory()

void ParameterEditorController::setCurrentCategory ( QObject * currentCategory)

Definition at line 882 of file ParameterEditorController.cc.

References currentCategory(), and currentCategoryChanged().

Referenced by ParameterEditorController().

◆ setCurrentGroup()

void ParameterEditorController::setCurrentGroup ( QObject * currentGroup)

Definition at line 891 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 907 of file ParameterEditorController.cc.

References favoritesChanged().


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