MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / init

Method init

src/core/map.cpp:474–500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474void Map::init()
475{
476 color_set = new MapColorSet();
477
478 parts.push_back(new MapPart(tr("default part"), this));
479
480 widgets.clear();
481
482 undo_manager->setClean();
483
484 symbol_set_id = QString();
485 map_notes = QString();
486
487 printer_config.reset();
488
489 image_template_use_meters_per_pixel = true;
490 image_template_meters_per_pixel = 0;
491 image_template_dpi = 0;
492 image_template_scale = 0;
493
494 colors_dirty = false;
495 symbols_dirty = false;
496 templates_dirty = false;
497 objects_dirty = false;
498 other_dirty = false;
499 unsaved_changes = false;
500}
501
502void Map::reset()
503{

Callers 1

mainFormMethod · 0.45

Calls 4

setCleanMethod · 0.80
QStringClass · 0.70
clearMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected