comparison Applications/Generic/GuiAdapter.cpp @ 1341:d80a3e3cc800 broker

dummy fixes
author Benjamin Golinvaux <bgo@osimis.io>
date Fri, 03 Apr 2020 18:18:37 +0200
parents 1b24f6b06408
children 28eb7106ef44
comparison
equal deleted inserted replaced
1340:c7dbe89c82d7 1341:d80a3e3cc800
837 } 837 }
838 # endif 838 # endif
839 839
840 #if 0 840 #if 0
841 // TODO: remove this when generic sdl event handlers are implemented in 841 // TODO: remove this when generic sdl event handlers are implemented in
842 // the VolumeSlicerWidget 842 // the DoseView
843 // SDL ONLY 843 // SDL ONLY
844 bool GuiAdapter::IsSdlViewPortRefreshEvent(const SDL_Event& event) const 844 bool GuiAdapter::IsSdlViewPortRefreshEvent(const SDL_Event& event) const
845 { 845 {
846 SDL_Window* sdlWindow = SDL_GetWindowFromID(event.window.windowID); 846 SDL_Window* sdlWindow = SDL_GetWindowFromID(event.window.windowID);
847 847
848 ORTHANC_ASSERT(sdlWindow != NULL, "Window ID \"" << event.window.windowID << "\" is not a valid SDL window ID!"); 848 ORTHANC_ASSERT(sdlWindow != NULL, "Window ID \"" << event.window.windowID << "\" is not a valid SDL window ID!");
849 849
850 const char* windowTitleSz = SDL_GetWindowTitle(sdlWindow); 850 const char* windowTitleSz = SDL_GetWindowTitle(sdlWindow);
851 851
852 // now we need to find the VolumeSlicerWidget from from the canvas name! 852 // now we need to find the DoseView from from the canvas name!
853 // (and retrieve the SdlViewport) 853 // (and retrieve the SdlViewport)
854 boost::shared_ptr<IGuiAdapterWidget> foundWidget; 854 boost::shared_ptr<IGuiAdapterWidget> foundWidget;
855 VisitWidgets([&foundWidget, windowTitleSz](auto widget) 855 VisitWidgets([&foundWidget, windowTitleSz](auto widget)
856 { 856 {
857 if (widget->GetCanvasIdentifier() == std::string(windowTitleSz)) 857 if (widget->GetCanvasIdentifier() == std::string(windowTitleSz))