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
247294a8
Commit
247294a8
authored
May 27, 2013
by
Bryant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The mission listing now has its UI disabled when not usable due to the lack of a connected UAS.
parent
d2317252
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
110 additions
and
88 deletions
+110
-88
WaypointList.cc
src/ui/WaypointList.cc
+12
-5
WaypointList.ui
src/ui/WaypointList.ui
+98
-83
No files found.
src/ui/WaypointList.cc
View file @
247294a8
...
...
@@ -103,11 +103,12 @@ WaypointList::WaypointList(QWidget *parent, UASWaypointManager* wpm) :
// SET UAS AFTER ALL SIGNALS/SLOTS ARE CONNECTED
if
(
!
WPM
->
getUAS
())
{
// Hide buttons, which don't make sense without valid UAS
m_ui
->
positionAddButton
->
hide
();
m_ui
->
transmitButton
->
hide
();
m_ui
->
readButton
->
hide
();
m_ui
->
refreshButton
->
hide
();
// Disable buttons which don't make sense without valid UAS.
m_ui
->
positionAddButton
->
setEnabled
(
false
);
m_ui
->
transmitButton
->
setEnabled
(
false
);
m_ui
->
readButton
->
setEnabled
(
false
);
m_ui
->
refreshButton
->
setEnabled
(
false
);
//FIXME: The whole "Onboard Waypoints"-tab should be hidden, instead of "refresh" button
// Insert a "NO UAV" info into the Onboard Tab
QLabel
*
noUas
=
new
QLabel
(
this
);
...
...
@@ -185,6 +186,12 @@ void WaypointList::setUAS(UASInterface* uas)
disconnect
(
this
->
uas
,
SIGNAL
(
attitudeChanged
(
UASInterface
*
,
double
,
double
,
double
,
quint64
)),
this
,
SLOT
(
updateAttitude
(
UASInterface
*
,
double
,
double
,
double
,
quint64
)));
}
// Now that there's a valid UAS, enable the UI.
m_ui
->
positionAddButton
->
setEnabled
(
true
);
m_ui
->
transmitButton
->
setEnabled
(
true
);
m_ui
->
readButton
->
setEnabled
(
true
);
m_ui
->
refreshButton
->
setEnabled
(
true
);
WPM
=
uas
->
getWaypointManager
();
this
->
uas
=
uas
;
...
...
src/ui/WaypointList.ui
View file @
247294a8
This diff is collapsed.
Click to expand it.
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