TemplateImage::TemplateImage(const QString& path, Map* map) : Template(path, map) { undo_index = 0; georef.reset(new Georeferencing()); const Georeferencing& georef = map->getGeoreferencing(); connect(&georef, SIGNAL(projectionChanged()), this, SLOT(updateGeoreferencing())); connect(&georef, SIGNAL(transformationChanged()), this, SLOT(updateGeoreferencing())); }
TemplateTrack::TemplateTrack(const QString& path, Map* map) : Template(path, map) { // set default value track_crs_spec = QString::fromLatin1("+proj=latlong +datum=WGS84"); const Georeferencing& georef = map->getGeoreferencing(); connect(&georef, SIGNAL(projectionChanged()), this, SLOT(updateGeoreferencing())); connect(&georef, SIGNAL(transformationChanged()), this, SLOT(updateGeoreferencing())); connect(&georef, SIGNAL(stateChanged()), this, SLOT(updateGeoreferencing())); connect(&georef, SIGNAL(declinationChanged()), this, SLOT(updateGeoreferencing())); }