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

#include <FlightModesComponent.h>

+ Inheritance diagram for FlightModesComponent:
+ Collaboration diagram for FlightModesComponent:

Public Member Functions

 FlightModesComponent (Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent=nullptr)
 
QString name (void) const final
 
QString description (void) const final
 
QString iconResource (void) const final
 
QUrl setupSource (void) const final
 
QUrl summaryQmlSource (void) const final
 
bool requiresSetup () const final
 
bool setupComplete () const final
 
QStringList setupCompleteChangedTriggerList () const final
 
QStringList sections () const final
 
- Public Member Functions inherited from VehicleComponent
 VehicleComponent (Vehicle *vehicle, AutoPilotPlugin *autopilot, AutoPilotPlugin::KnownVehicleComponent KnownVehicleComponent, QObject *parent=nullptr)
 
virtual ~VehicleComponent ()
 
virtual QString vehicleConfigJson () const
 Resource path to a VehicleConfig.json page definition, or empty if none.
 
QVariantMap sectionKeywords () const
 Search keywords per section, keyed by section title. Values are original-case translatable terms.
 
virtual bool showFirstSectionOnRootClick () const
 When true, clicking the root component in the tree selects the first section instead of showing all.
 
virtual Q_INVOKABLE bool sectionSetupComplete (const QString &sectionName) const
 Returns setup-complete status for a named section. Default returns true (no per-section tracking).
 
virtual bool allowSetupWhileArmed () const
 
virtual bool allowSetupWhileFlying () const
 
virtual void addSummaryQmlComponent (QQmlContext *context, QQuickItem *parent)
 
virtual void setupTriggerSignals ()
 
AutoPilotPlugin::KnownVehicleComponent KnownVehicleComponent () const
 

Additional Inherited Members

- Signals inherited from VehicleComponent
void setupCompleteChanged ()
 
void setupSourceChanged ()
 
void sectionsChanged ()
 
- Protected Slots inherited from VehicleComponent
void _triggerUpdated (QVariant)
 
- Protected Attributes inherited from VehicleComponent
Vehicle_vehicle = nullptr
 
AutoPilotPlugin_autopilot = nullptr
 
AutoPilotPlugin::KnownVehicleComponent _KnownVehicleComponent
 

Detailed Description

Definition at line 5 of file FlightModesComponent.h.

Constructor & Destructor Documentation

◆ FlightModesComponent()

FlightModesComponent::FlightModesComponent ( Vehicle vehicle,
AutoPilotPlugin autopilot,
QObject *  parent = nullptr 
)

Definition at line 10 of file FlightModesComponent.cc.

Member Function Documentation

◆ description()

QString FlightModesComponent::description ( void  ) const
finalvirtual

Reimplemented from VehicleComponent.

Definition at line 21 of file FlightModesComponent.cc.

◆ iconResource()

QString FlightModesComponent::iconResource ( void  ) const
finalvirtual

Implements VehicleComponent.

Definition at line 26 of file FlightModesComponent.cc.

◆ name()

QString FlightModesComponent::name ( void  ) const
finalvirtual

Implements VehicleComponent.

Definition at line 16 of file FlightModesComponent.cc.

◆ requiresSetup()

bool FlightModesComponent::requiresSetup ( void  ) const
inlinefinalvirtual

Implements VehicleComponent.

Definition at line 18 of file FlightModesComponent.h.

◆ sections()

QStringList FlightModesComponent::sections ( ) const
finalvirtual

Section names for sidebar navigation. Auto-populated from vehicleConfigJson() JSON. Repeat sections are expanded by probing vehicle parameters.

Reimplemented from VehicleComponent.

Definition at line 41 of file FlightModesComponent.cc.

◆ setupComplete()

bool FlightModesComponent::setupComplete ( void  ) const
inlinefinalvirtual

Implements VehicleComponent.

Definition at line 19 of file FlightModesComponent.h.

◆ setupCompleteChangedTriggerList()

QStringList FlightModesComponent::setupCompleteChangedTriggerList ( ) const
inlinefinalvirtual

Returns an list of parameter names for which a change should cause the setupCompleteChanged signal to be emitted.

Implements VehicleComponent.

Definition at line 20 of file FlightModesComponent.h.

◆ setupSource()

QUrl FlightModesComponent::setupSource ( void  ) const
finalvirtual

Implements VehicleComponent.

Definition at line 31 of file FlightModesComponent.cc.

◆ summaryQmlSource()

QUrl FlightModesComponent::summaryQmlSource ( void  ) const
finalvirtual

Implements VehicleComponent.

Definition at line 36 of file FlightModesComponent.cc.


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