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
8f30c8be
Commit
8f30c8be
authored
Jun 23, 2014
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Let map ripper stop once finished
parent
43f4c370
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
23 deletions
+29
-23
mapripper.cpp
libs/opmapcontrol/src/mapwidget/mapripper.cpp
+29
-23
No files found.
libs/opmapcontrol/src/mapwidget/mapripper.cpp
View file @
8f30c8be
...
...
@@ -52,31 +52,37 @@ namespace mapcontrol
}
void
MapRipper
::
finish
()
{
if
(
zoom
<
maxzoom
)
if
(
zoom
<
maxzoom
)
{
++
zoom
;
QMessageBox
msgBox
;
msgBox
.
setText
(
tr
(
"Continue Ripping at zoom level %1? (Continuing automatically after 3s)"
).
arg
(
zoom
));
// msgBox.setInformativeText("Do you want to save your changes?");
msgBox
.
setStandardButtons
(
QMessageBox
::
Yes
|
QMessageBox
::
No
);
msgBox
.
setDefaultButton
(
QMessageBox
::
Yes
);
QTimer
::
singleShot
(
3000
,
&
msgBox
,
SLOT
(
accept
()));
msgBox
.
exec
();
int
ret
=
msgBox
.
result
();
++
zoom
;
QMessageBox
msgBox
;
msgBox
.
setText
(
tr
(
"Continue Ripping at zoom level %1? (Continuing automatically after 3s)"
).
arg
(
zoom
));
// msgBox.setInformativeText("Do you want to save your changes?");
msgBox
.
setStandardButtons
(
QMessageBox
::
Yes
|
QMessageBox
::
No
);
msgBox
.
setDefaultButton
(
QMessageBox
::
Yes
);
QTimer
::
singleShot
(
3000
,
&
msgBox
,
SLOT
(
accept
()));
msgBox
.
exec
();
int
ret
=
msgBox
.
result
();
if
(
ret
==
QMessageBox
::
Yes
||
ret
==
1
)
{
points
.
clear
();
points
=
core
->
Projection
()
->
GetAreaTileList
(
area
,
zoom
,
0
);
this
->
start
();
}
else
{
progressForm
->
close
();
delete
progressForm
;
this
->
deleteLater
();
}
}
if
(
ret
==
QMessageBox
::
Yes
||
ret
==
1
)
{
points
.
clear
();
points
=
core
->
Projection
()
->
GetAreaTileList
(
area
,
zoom
,
0
);
this
->
start
();
}
else
{
progressForm
->
close
();
delete
progressForm
;
this
->
deleteLater
();
}
}
else
{
progressForm
->
close
();
delete
progressForm
;
this
->
deleteLater
();
}
}
...
...
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