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
24169552
Commit
24169552
authored
Jul 27, 2011
by
lm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added trail clear button
parent
8dadb1a4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
+18
-2
QGCMapToolBar.cc
src/ui/map/QGCMapToolBar.cc
+1
-0
QGCMapToolBar.ui
src/ui/map/QGCMapToolBar.ui
+9
-2
QGCMapWidget.h
src/ui/map/QGCMapWidget.h
+8
-0
No files found.
src/ui/map/QGCMapToolBar.cc
View file @
24169552
...
...
@@ -24,6 +24,7 @@ void QGCMapToolBar::setMap(QGCMapWidget* map)
connect
(
ui
->
goToButton
,
SIGNAL
(
clicked
()),
map
,
SLOT
(
showGoToDialog
()));
connect
(
ui
->
goHomeButton
,
SIGNAL
(
clicked
()),
map
,
SLOT
(
goHome
()));
connect
(
ui
->
lastPosButton
,
SIGNAL
(
clicked
()),
map
,
SLOT
(
loadSettings
()));
connect
(
ui
->
clearTrailsButton
,
SIGNAL
(
clicked
()),
map
,
SLOT
(
deleteTrails
()));
connect
(
map
,
SIGNAL
(
OnTileLoadStart
()),
this
,
SLOT
(
tileLoadStart
()));
connect
(
map
,
SIGNAL
(
OnTileLoadComplete
()),
this
,
SLOT
(
tileLoadEnd
()));
connect
(
map
,
SIGNAL
(
OnTilesStillToLoad
(
int
)),
this
,
SLOT
(
tileLoadProgress
(
int
)));
...
...
src/ui/map/QGCMapToolBar.ui
View file @
24169552
...
...
@@ -6,14 +6,14 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
69
3
</width>
<width>
69
5
</width>
<height>
35
</height>
</rect>
</property>
<property
name=
"windowTitle"
>
<string>
Form
</string>
</property>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout"
stretch=
"1,1,1,1,1,1,100,20,1"
>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout"
stretch=
"1,1,1,1,1,
0,
1,100,20,1"
>
<property
name=
"spacing"
>
<number>
12
</number>
</property>
...
...
@@ -55,6 +55,13 @@
</property>
</widget>
</item>
<item>
<widget
class=
"QPushButton"
name=
"clearTrailsButton"
>
<property
name=
"text"
>
<string>
Clear Trails
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QCheckBox"
name=
"followCheckBox"
>
<property
name=
"text"
>
...
...
src/ui/map/QGCMapWidget.h
View file @
24169552
...
...
@@ -98,6 +98,14 @@ public slots:
}
}
}
/** @brief Delete all trails */
void
deleteTrails
()
{
foreach
(
mapcontrol
::
UAVItem
*
uav
,
GetUAVS
())
{
uav
->
DeleteTrail
();
}
}
/** @brief Load the settings for this widget from disk */
void
loadSettings
(
bool
changePosition
=
true
);
...
...
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