Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
e6e826bd
Commit
e6e826bd
authored
Mar 06, 2017
by
Gus Grubba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Making toolbar indicator list private.
parent
b7f2d3b1
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
17 deletions
+16
-17
ArduSubFirmwarePlugin.cc
src/FirmwarePlugin/APM/ArduSubFirmwarePlugin.cc
+8
-8
ArduSubFirmwarePlugin.h
src/FirmwarePlugin/APM/ArduSubFirmwarePlugin.h
+2
-1
FirmwarePlugin.cc
src/FirmwarePlugin/FirmwarePlugin.cc
+1
-1
FirmwarePlugin.h
src/FirmwarePlugin/FirmwarePlugin.h
+2
-4
Vehicle.cc
src/Vehicle/Vehicle.cc
+1
-1
Vehicle.h
src/Vehicle/Vehicle.h
+2
-2
No files found.
src/FirmwarePlugin/APM/ArduSubFirmwarePlugin.cc
View file @
e6e826bd
...
...
@@ -107,16 +107,16 @@ bool ArduSubFirmwarePlugin::supportsMotorInterference(void)
return
false
;
}
QVariantList
&
ArduSubFirmwarePlugin
::
toolBarIndicators
(
const
Vehicle
*
vehicle
)
const
QVariantList
&
ArduSubFirmwarePlugin
::
toolBarIndicators
(
const
Vehicle
*
vehicle
)
{
Q_UNUSED
(
vehicle
);
//-- Sub specific list of indicators (Enter your modified list here)
if
(
_toolBarIndicator
List
.
size
()
==
0
)
{
_toolBarIndicator
List
.
append
(
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/MessageIndicator.qml"
)));
_toolBarIndicator
List
.
append
(
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/TelemetryRSSIIndicator.qml"
)));
_toolBarIndicator
List
.
append
(
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/RCRSSIIndicator.qml"
)));
_toolBarIndicator
List
.
append
(
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/BatteryIndicator.qml"
)));
_toolBarIndicator
List
.
append
(
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/ModeIndicator.qml"
)));
if
(
_toolBarIndicator
s
.
size
()
==
0
)
{
_toolBarIndicator
s
.
append
(
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/MessageIndicator.qml"
)));
_toolBarIndicator
s
.
append
(
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/TelemetryRSSIIndicator.qml"
)));
_toolBarIndicator
s
.
append
(
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/RCRSSIIndicator.qml"
)));
_toolBarIndicator
s
.
append
(
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/BatteryIndicator.qml"
)));
_toolBarIndicator
s
.
append
(
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/ModeIndicator.qml"
)));
}
return
_toolBarIndicator
List
;
return
_toolBarIndicator
s
;
}
src/FirmwarePlugin/APM/ArduSubFirmwarePlugin.h
View file @
e6e826bd
...
...
@@ -86,9 +86,10 @@ public:
QString
brandImage
(
const
Vehicle
*
vehicle
)
const
{
Q_UNUSED
(
vehicle
);
return
QStringLiteral
(
"/qmlimages/APM/BrandImageSub"
);
}
const
FirmwarePlugin
::
remapParamNameMajorVersionMap_t
&
paramNameRemapMajorVersionMap
(
void
)
const
final
{
return
_remapParamName
;
}
int
remapParamNameHigestMinorVersionNumber
(
int
majorVersionNumber
)
const
final
;
QVariantList
&
toolBarIndicators
(
const
Vehicle
*
vehicle
)
final
;
const
QVariantList
&
toolBarIndicators
(
const
Vehicle
*
vehicle
)
final
;
private:
QVariantList
_toolBarIndicators
;
static
bool
_remapParamNameIntialized
;
static
FirmwarePlugin
::
remapParamNameMajorVersionMap_t
_remapParamName
;
};
...
...
src/FirmwarePlugin/FirmwarePlugin.cc
View file @
e6e826bd
...
...
@@ -341,7 +341,7 @@ QString FirmwarePlugin::vehicleImageCompass(const Vehicle* vehicle) const
return
QStringLiteral
(
"/qmlimages/compassInstrumentArrow.svg"
);
}
QVariantList
&
FirmwarePlugin
::
toolBarIndicators
(
const
Vehicle
*
vehicle
)
const
QVariantList
&
FirmwarePlugin
::
toolBarIndicators
(
const
Vehicle
*
vehicle
)
{
Q_UNUSED
(
vehicle
);
//-- Default list of indicators for all vehicles.
...
...
src/FirmwarePlugin/FirmwarePlugin.h
View file @
e6e826bd
...
...
@@ -259,7 +259,7 @@ public:
/// Allows the core plugin to override the toolbar indicators
/// @return A list of QUrl with the indicators (see MainToolBarIndicators.qml)
virtual
QVariantList
&
toolBarIndicators
(
const
Vehicle
*
vehicle
);
virtual
const
QVariantList
&
toolBarIndicators
(
const
Vehicle
*
vehicle
);
/// Returns a list of CameraMetaData objects for available cameras on the vehicle.
virtual
const
QVariantList
&
cameraList
(
const
Vehicle
*
vehicle
);
...
...
@@ -267,10 +267,8 @@ public:
// FIXME: Hack workaround for non pluginize FollowMe support
static
const
char
*
px4FollowMeFlightMode
;
protected:
QVariantList
_toolBarIndicatorList
;
private:
QVariantList
_toolBarIndicatorList
;
static
QVariantList
_cameraList
;
///< Standard QGC camera list
};
...
...
src/Vehicle/Vehicle.cc
View file @
e6e826bd
...
...
@@ -2375,7 +2375,7 @@ QString Vehicle::vehicleImageCompass() const
return
QString
();
}
QVariantList
&
Vehicle
::
toolBarIndicators
()
const
QVariantList
&
Vehicle
::
toolBarIndicators
()
{
if
(
_firmwarePlugin
)
{
return
_firmwarePlugin
->
toolBarIndicators
(
this
);
...
...
src/Vehicle/Vehicle.h
View file @
e6e826bd
...
...
@@ -653,8 +653,8 @@ public:
QString
vehicleImageOutline
()
const
;
QString
vehicleImageCompass
()
const
;
QVariantList
&
toolBarIndicators
();
const
QVariantList
&
cameraList
(
void
)
const
;
const
QVariantList
&
toolBarIndicators
();
const
QVariantList
&
cameraList
(
void
)
const
;
public
slots
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment