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

Method MapEditorController

src/gui/map/map_editor.cpp:252–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250// ### MapEditorController ###
251
252MapEditorController::MapEditorController(OperatingMode mode, Map* map, MapView* map_view)
253: MainWindowController()
254, mobile_mode(Settings::getInstance().touchModeEnabled())
255, active_symbol(nullptr)
256, template_list_widget(nullptr)
257, mappart_remove_act(nullptr)
258, mappart_merge_act(nullptr)
259, mappart_merge_menu(nullptr)
260, mappart_move_menu(nullptr)
261, mappart_selector_box(nullptr)
262, mappart_merge_mapper(new QSignalMapper(this))
263, mappart_move_mapper(new QSignalMapper(this))
264{
265 this->mode = mode;
266 this->map = nullptr;
267 main_view = nullptr;
268 symbol_widget = nullptr;
269 window = nullptr;
270 editing_in_progress = false;
271
272 cut_hole_menu = nullptr;
273
274 if (map)
275 setMapAndView(map, map_view ? map_view : new MapView(this, map));
276
277 editor_activity = nullptr;
278 current_tool = nullptr;
279 override_tool = nullptr;
280
281 paste_act = nullptr;
282 reopen_template_act = nullptr;
283 overprinting_simulation_act = nullptr;
284
285 toolbar_view = nullptr;
286 toolbar_mapparts = nullptr;
287 toolbar_drawing = nullptr;
288 toolbar_editing = nullptr;
289 toolbar_advanced_editing = nullptr;
290 print_dock_widget = nullptr;
291 measure_dock_widget = nullptr;
292 symbol_dock_widget = nullptr;
293
294 statusbar_zoom_frame = nullptr;
295 statusbar_cursorpos_label = nullptr;
296
297 gps_display = nullptr;
298 gps_track_recorder = nullptr;
299 compass_display = nullptr;
300 gps_marker_display = nullptr;
301
302 actionsById[""] = new QAction(this); // dummy action
303
304 connect(mappart_merge_mapper, QOverload<int>::of(&QSignalMapper::mapped), this, &MapEditorController::mergeCurrentMapPartTo);
305 connect(mappart_move_mapper, QOverload<int>::of(&QSignalMapper::mapped), this, &MapEditorController::reassignObjectsToMapPart);
306}
307
308MapEditorController::~MapEditorController()
309{

Callers

nothing calls this directly

Calls 1

touchModeEnabledMethod · 0.80

Tested by

no test coverage detected