Mercurial > hg > orthanc-stone
diff Framework/Widgets/WidgetBase.h @ 385:6cc3ce74dc05
using message broker in widgets
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 07 Nov 2018 20:49:41 +0100 |
parents | 7a364e44fbb4 |
children | e33659decec5 |
line wrap: on
line diff
--- a/Framework/Widgets/WidgetBase.h Wed Nov 07 16:17:02 2018 +0100 +++ b/Framework/Widgets/WidgetBase.h Wed Nov 07 20:49:41 2018 +0100 @@ -24,19 +24,20 @@ #include "IWidget.h" #include "../Viewport/CairoContext.h" +#include "../Viewport/WidgetViewport.h" namespace OrthancStone { class WidgetBase : public IWidget { private: - IWidget* parent_; - IViewport* viewport_; - IStatusBar* statusBar_; - bool backgroundCleared_; - uint8_t backgroundColor_[3]; - bool transmitMouseOver_; - std::string name_; + IWidget* parent_; + WidgetViewport* viewport_; + IStatusBar* statusBar_; + bool backgroundCleared_; + uint8_t backgroundColor_[3]; + bool transmitMouseOver_; + std::string name_; protected: void ClearBackgroundOrthanc(Orthanc::ImageAccessor& target) const; @@ -61,7 +62,7 @@ virtual void SetParent(IWidget& parent); - virtual void SetViewport(IViewport& viewport); + virtual void SetViewport(WidgetViewport& viewport); void SetBackgroundCleared(bool clear) {