Mercurial > hg > orthanc-stone
diff Framework/Scene2DViewport/ViewportController.cpp @ 1020:ac88989817e3 toa2019093001
TrackerCommand --> MeasureCommand + fuse against exception in MeasureTool dtor
+ added DeleteMeasureCommand + moved the various concrete measuring tool-related
classes to their pre-assigned file locations (everything was crammed into
MeasureCommands.* files up to this commit) + added double-click handler to
GuiAdapter (for TOA implementation of "delete measuring tool on double-click")
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 30 Sep 2019 10:41:06 +0200 |
parents | a911f5bb48da |
children | 348866dd217c |
line wrap: on
line diff
--- a/Framework/Scene2DViewport/ViewportController.cpp Fri Sep 27 13:32:05 2019 +0200 +++ b/Framework/Scene2DViewport/ViewportController.cpp Mon Sep 30 10:41:06 2019 +0200 @@ -38,6 +38,11 @@ , viewport_(viewport) { } + + ViewportController::~ViewportController() + { + + } boost::shared_ptr<UndoStack> ViewportController::GetUndoStack() { @@ -49,7 +54,7 @@ return undoStackW_.lock(); } - void ViewportController::PushCommand(boost::shared_ptr<TrackerCommand> command) + void ViewportController::PushCommand(boost::shared_ptr<MeasureCommand> command) { boost::shared_ptr<UndoStack> undoStack = undoStackW_.lock(); if(undoStack.get() != NULL)