comparison Framework/Scene2DViewport/ViewportController.h @ 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 685c9a2d115f
children e713f1a99861 2d8ab34c8c91
comparison
equal deleted inserted replaced
1019:29f5f2031310 1020:ac88989817e3
82 82
83 ViewportController(boost::weak_ptr<UndoStack> undoStackW, 83 ViewportController(boost::weak_ptr<UndoStack> undoStackW,
84 MessageBroker& broker, 84 MessageBroker& broker,
85 IViewport& viewport); 85 IViewport& viewport);
86 86
87
88 ~ViewportController();
89
87 /** 90 /**
88 This method is called by the GUI system and should update/delete the 91 This method is called by the GUI system and should update/delete the
89 current tracker 92 current tracker
90 */ 93 */
91 bool HandlePointerEvent(PointerEvent e); 94 bool HandlePointerEvent(PointerEvent e);
154 */ 157 */
155 double GetAngleTopTextLabelDistanceS() const; 158 double GetAngleTopTextLabelDistanceS() const;
156 159
157 160
158 /** forwarded to the UndoStack */ 161 /** forwarded to the UndoStack */
159 void PushCommand(boost::shared_ptr<TrackerCommand> command); 162 void PushCommand(boost::shared_ptr<MeasureCommand> command);
160 163
161 /** forwarded to the UndoStack */ 164 /** forwarded to the UndoStack */
162 void Undo(); 165 void Undo();
163 166
164 /** forwarded to the UndoStack */ 167 /** forwarded to the UndoStack */