comparison Applications/Samples/SimpleViewer/SimpleViewerApplication.h @ 726:4f2416d519b4

moving layers, widgets and loaders to Deprecated namespace
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 21 May 2019 11:43:25 +0200
parents d2c0e347ddc2
children c35e98d22764
comparison
equal deleted inserted replaced
714:d2c0e347ddc2 726:4f2416d519b4
81 private: 81 private:
82 Tool currentTool_; 82 Tool currentTool_;
83 83
84 std::auto_ptr<MainWidgetInteractor> mainWidgetInteractor_; 84 std::auto_ptr<MainWidgetInteractor> mainWidgetInteractor_;
85 std::auto_ptr<ThumbnailInteractor> thumbnailInteractor_; 85 std::auto_ptr<ThumbnailInteractor> thumbnailInteractor_;
86 LayoutWidget* mainLayout_; 86 Deprecated::LayoutWidget* mainLayout_;
87 LayoutWidget* thumbnailsLayout_; 87 Deprecated::LayoutWidget* thumbnailsLayout_;
88 SliceViewerWidget* mainWidget_; 88 Deprecated::SliceViewerWidget* mainWidget_;
89 std::vector<SliceViewerWidget*> thumbnails_; 89 std::vector<Deprecated::SliceViewerWidget*> thumbnails_;
90 std::map<std::string, std::vector<std::string> > instancesIdsPerSeriesId_; 90 std::map<std::string, std::vector<std::string> > instancesIdsPerSeriesId_;
91 std::map<std::string, Json::Value> seriesTags_; 91 std::map<std::string, Json::Value> seriesTags_;
92 unsigned int currentInstanceIndex_; 92 unsigned int currentInstanceIndex_;
93 OrthancStone::WidgetViewport* wasmViewport1_; 93 Deprecated::WidgetViewport* wasmViewport1_;
94 OrthancStone::WidgetViewport* wasmViewport2_; 94 Deprecated::WidgetViewport* wasmViewport2_;
95 95
96 IStatusBar* statusBar_; 96 Deprecated::IStatusBar* statusBar_;
97 std::auto_ptr<SmartLoader> smartLoader_; 97 std::auto_ptr<Deprecated::SmartLoader> smartLoader_;
98 98
99 Orthanc::Font font_; 99 Orthanc::Font font_;
100 100
101 public: 101 public:
102 SimpleViewerApplication(MessageBroker& broker) : 102 SimpleViewerApplication(MessageBroker& broker) :
110 { 110 {
111 font_.LoadFromResource(Orthanc::EmbeddedResources::FONT_UBUNTU_MONO_BOLD_16); 111 font_.LoadFromResource(Orthanc::EmbeddedResources::FONT_UBUNTU_MONO_BOLD_16);
112 } 112 }
113 113
114 virtual void Finalize() ORTHANC_OVERRIDE {} 114 virtual void Finalize() ORTHANC_OVERRIDE {}
115 virtual IWidget* GetCentralWidget() ORTHANC_OVERRIDE {return mainLayout_;} 115 virtual Deprecated::IWidget* GetCentralWidget() ORTHANC_OVERRIDE {return mainLayout_;}
116 116
117 virtual void DeclareStartupOptions(boost::program_options::options_description& options) ORTHANC_OVERRIDE; 117 virtual void DeclareStartupOptions(boost::program_options::options_description& options) ORTHANC_OVERRIDE;
118 virtual void Initialize(StoneApplicationContext* context, 118 virtual void Initialize(StoneApplicationContext* context,
119 IStatusBar& statusBar, 119 Deprecated::IStatusBar& statusBar,
120 const boost::program_options::variables_map& parameters) ORTHANC_OVERRIDE; 120 const boost::program_options::variables_map& parameters) ORTHANC_OVERRIDE;
121 121
122 void OnStudyListReceived(const OrthancApiClient::JsonResponseReadyMessage& message); 122 void OnStudyListReceived(const Deprecated::OrthancApiClient::JsonResponseReadyMessage& message);
123 123
124 void OnStudyReceived(const OrthancApiClient::JsonResponseReadyMessage& message); 124 void OnStudyReceived(const Deprecated::OrthancApiClient::JsonResponseReadyMessage& message);
125 125
126 void OnSeriesReceived(const OrthancApiClient::JsonResponseReadyMessage& message); 126 void OnSeriesReceived(const Deprecated::OrthancApiClient::JsonResponseReadyMessage& message);
127 127
128 void LoadThumbnailForSeries(const std::string& seriesId, const std::string& instanceId); 128 void LoadThumbnailForSeries(const std::string& seriesId, const std::string& instanceId);
129 129
130 void SelectStudy(const std::string& studyId); 130 void SelectStudy(const std::string& studyId);
131 131
132 void OnWidgetGeometryChanged(const SliceViewerWidget::GeometryChangedMessage& message); 132 void OnWidgetGeometryChanged(const Deprecated::SliceViewerWidget::GeometryChangedMessage& message);
133 133
134 void SelectSeriesInMainViewport(const std::string& seriesId); 134 void SelectSeriesInMainViewport(const std::string& seriesId);
135 135
136 136
137 Tool GetCurrentTool() const 137 Tool GetCurrentTool() const