dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
mapripform.cpp
Go to the documentation of this file.
1 
13 /*
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 3 of the License, or
17 * (at your option) any later version.
18 *
19 * This program is distributed in the hope that it will be useful, but
20 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 * for more details.
23 *
24 * You should have received a copy of the GNU General Public License along
25 * with this program; if not, see <http://www.gnu.org/licenses/>
26 */
27 
28 #include "mapripform.h"
29 #include "ui_mapripform.h"
30 
31 MapRipForm::MapRipForm(QWidget *parent) :
32  QWidget(parent),
33  ui(new Ui::MapRipForm)
34 {
35  ui->setupUi(this);
36  connect(ui->cancelButton,SIGNAL(clicked()),this,SIGNAL(cancelRequest()));
37 }
38 
40 {
41  delete ui;
42 }
43 void MapRipForm::SetPercentage(const int &perc)
44 {
45  ui->progressBar->setValue(perc);
46 }
47 void MapRipForm::SetProvider(const QString &prov,const int &zoom)
48 {
49  ui->mainlabel->setText(QString("Currently ripping from:%1 at Zoom level %2").arg(prov).arg(zoom));
50 }
51 void MapRipForm::SetNumberOfTiles(const int &total, const int &actual)
52 {
53  ui->statuslabel->setText(QString("Downloading tile %1 of %2").arg(actual).arg(total));
54 }
MapRipForm(QWidget *parent=nullptr)
Definition: mapripform.cpp:31
void SetProvider(QString const &prov, int const &zoom)
Definition: mapripform.cpp:47
void SetPercentage(int const &perc)
Definition: mapripform.cpp:43
Form to be used with the MapRipper class.
void SetNumberOfTiles(int const &total, int const &actual)
Definition: mapripform.cpp:51
void cancelRequest()