37 connect(progressForm,SIGNAL(cancelRequest()),
this,SLOT(
stopFetching()));
45 connect(
this,SIGNAL(
percentageChanged(
int)),progressForm,SLOT(SetPercentage(
int)));
46 connect(
this,SIGNAL(
numberOfTilesChanged(
int,
int)),progressForm,SLOT(SetNumberOfTiles(
int,
int)));
47 connect(
this,SIGNAL(
providerChanged(QString,
int)),progressForm,SLOT(SetProvider(QString,
int)));
48 connect(
this,SIGNAL(finished()),
this,SLOT(
finish()));
53 QMessageBox::information(
new QWidget(),
"No valid selection",
"This pre-caches map data.\n\nPlease first select the area of the map to rip with <COMMAND>+Left mouse click");
55 QMessageBox::information(
new QWidget(),
"No valid selection",
"This pre-caches map data.\n\nPlease first select the area of the map to rip with <CTRL>+Left mouse click");
60 if(zoom<maxzoom && !cancel)
67 msgBox.setText(QString(
"Continue Ripping at zoom level %1?").arg(zoom));
69 msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No | QMessageBox::YesAll);
70 msgBox.setDefaultButton(QMessageBox::Yes);
75 if(ret==QMessageBox::Yes)
81 else if(ret==QMessageBox::YesAll)
90 progressForm->close();
98 progressForm->close();
110 QVector<core::MapType::Types> types = TLMaps::Instance()->GetAllLayersOfType(type);
111 int all=points.count();
112 for(
int i = 0;
i < all;
i++)
121 foreach(core::MapType::Types type,types)
124 QByteArray img = TLMaps::Instance()->GetImageFromServer(type, p, zoom);
140 QThread::msleep(1000);
147 QThread::msleep(sleep);
153 QMutexLocker locker(&mutex);
A class that allows ripping of a selection of the map.