Mercurial > hg > orthanc-stone
comparison Framework/Scene2DViewport/ViewportController.cpp @ 1059:e713f1a99861 broker
replacing MessageBroker by weak_ptr
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 11 Oct 2019 17:08:34 +0200 |
parents | 32b403a47b19 |
children | f3bb9a6dd949 |
comparison
equal
deleted
inserted
replaced
1058:a36c47487a70 | 1059:e713f1a99861 |
---|---|
28 #include <boost/make_shared.hpp> | 28 #include <boost/make_shared.hpp> |
29 | 29 |
30 namespace OrthancStone | 30 namespace OrthancStone |
31 { | 31 { |
32 ViewportController::ViewportController(boost::weak_ptr<UndoStack> undoStackW, | 32 ViewportController::ViewportController(boost::weak_ptr<UndoStack> undoStackW, |
33 MessageBroker& broker, | |
34 IViewport& viewport) | 33 IViewport& viewport) |
35 : IObservable(broker) | 34 : undoStackW_(undoStackW) |
36 , undoStackW_(undoStackW) | |
37 , canvasToSceneFactor_(0.0) | 35 , canvasToSceneFactor_(0.0) |
38 , viewport_(viewport) | 36 , viewport_(viewport) |
39 { | 37 { |
40 } | 38 } |
41 | 39 |