Mercurial > hg > orthanc-stone
comparison Applications/Samples/SingleFrameEditorApplication.h @ 330:7a364e44fbb4 am-2
renamed SetDefaultView in FitContent
author | am@osimis.io |
---|---|
date | Wed, 17 Oct 2018 12:45:52 +0200 |
parents | b10dfdb96866 |
children | c34784e5f299 |
comparison
equal
deleted
inserted
replaced
329:b10dfdb96866 | 330:7a364e44fbb4 |
---|---|
117 IStatusBar* statusBar) | 117 IStatusBar* statusBar) |
118 { | 118 { |
119 switch (keyChar) | 119 switch (keyChar) |
120 { | 120 { |
121 case 's': | 121 case 's': |
122 widget.SetDefaultView(); | 122 widget.FitContent(); |
123 break; | 123 break; |
124 case 'p': | 124 case 'p': |
125 application_.currentTool_ = Tools_Pan; | 125 application_.currentTool_ = Tools_Pan; |
126 break; | 126 break; |
127 case 'z': | 127 case 'z': |
152 }; | 152 }; |
153 | 153 |
154 void OnGeometryChanged(const LayerWidget::GeometryChangedMessage& message) | 154 void OnGeometryChanged(const LayerWidget::GeometryChangedMessage& message) |
155 { | 155 { |
156 mainWidget_->SetSlice(source_->GetSlice(slice_).GetGeometry()); | 156 mainWidget_->SetSlice(source_->GetSlice(slice_).GetGeometry()); |
157 mainWidget_->SetDefaultView(); | 157 mainWidget_->FitContent(); |
158 } | 158 } |
159 | 159 |
160 std::unique_ptr<Interactor> mainWidgetInteractor_; | 160 std::unique_ptr<Interactor> mainWidgetInteractor_; |
161 std::unique_ptr<OrthancApiClient> orthancApiClient_; | 161 std::unique_ptr<OrthancApiClient> orthancApiClient_; |
162 Tools currentTool_; | 162 Tools currentTool_; |