comparison Framework/Scene2DViewport/UndoStack.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 e3c56d4f863f
children 2d8ab34c8c91
comparison
equal deleted inserted replaced
1019:29f5f2031310 1020:ac88989817e3
27 namespace OrthancStone 27 namespace OrthancStone
28 { 28 {
29 UndoStack::UndoStack() : numAppliedCommands_(0) 29 UndoStack::UndoStack() : numAppliedCommands_(0)
30 {} 30 {}
31 31
32 void UndoStack::PushCommand(boost::shared_ptr<TrackerCommand> command) 32 void UndoStack::PushCommand(boost::shared_ptr<MeasureCommand> command)
33 { 33 {
34 commandStack_.erase( 34 commandStack_.erase(
35 commandStack_.begin() + numAppliedCommands_, 35 commandStack_.begin() + numAppliedCommands_,
36 commandStack_.end()); 36 commandStack_.end());
37 37