Mercurial > hg > orthanc-stone
comparison Framework/Deprecated/Viewport/WidgetViewport.h @ 1069:5d1b0d2f4b15 broker
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 15 Oct 2019 21:11:09 +0200 |
parents | e146743f6cdc |
children | 0ca50d275b9a |
comparison
equal
deleted
inserted
replaced
1068:04a95ee91327 | 1069:5d1b0d2f4b15 |
---|---|
29 namespace Deprecated | 29 namespace Deprecated |
30 { | 30 { |
31 class WidgetViewport : public IViewport | 31 class WidgetViewport : public IViewport |
32 { | 32 { |
33 private: | 33 private: |
34 std::auto_ptr<IWidget> centralWidget_; | 34 boost::shared_ptr<IWidget> centralWidget_; |
35 IStatusBar* statusBar_; | 35 IStatusBar* statusBar_; |
36 std::auto_ptr<IMouseTracker> mouseTracker_; | 36 std::auto_ptr<IMouseTracker> mouseTracker_; |
37 bool isMouseOver_; | 37 bool isMouseOver_; |
38 int lastMouseX_; | 38 int lastMouseX_; |
39 int lastMouseY_; | 39 int lastMouseY_; |
45 | 45 |
46 virtual void FitContent(); | 46 virtual void FitContent(); |
47 | 47 |
48 virtual void SetStatusBar(IStatusBar& statusBar); | 48 virtual void SetStatusBar(IStatusBar& statusBar); |
49 | 49 |
50 IWidget& SetCentralWidget(IWidget* widget); // Takes ownership | 50 void SetCentralWidget(boost::shared_ptr<IWidget> widget); |
51 | 51 |
52 virtual void NotifyBackgroundChanged(); | 52 virtual void NotifyBackgroundChanged(); |
53 | 53 |
54 virtual void SetSize(unsigned int width, | 54 virtual void SetSize(unsigned int width, |
55 unsigned int height); | 55 unsigned int height); |