From 8014351a0c59df6db67801e4f4f6b21cdbc13264 Mon Sep 17 00:00:00 2001 From: marco <marco@5a81b35b-ba03-0410-adc8-b2c5c5119f08> Date: Fri, 16 Apr 2010 08:27:08 +0000 Subject: [PATCH] tabs are evil git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2023 5a81b35b-ba03-0410-adc8-b2c5c5119f08 --- modules/gui/src/scene_selection.cc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/modules/gui/src/scene_selection.cc b/modules/gui/src/scene_selection.cc index 9cacf0da2..6866e8c83 100644 --- a/modules/gui/src/scene_selection.cc +++ b/modules/gui/src/scene_selection.cc @@ -142,13 +142,13 @@ void SceneSelection::ViewDensitySlices() { if (node) { gfx::MapIsoP obj = dyn_cast<gfx::MapIso> (node); if (obj) { - // The following is a hack. I need to pass a reference to an ImagHandle - // that never goes out of scope, so I get a reference from the MapIso using - // GetMap and pass it to the CreateDataViewer - img::gui::DataViewer* dv = GostyApp::Instance()->CreateDataViewer(obj->GetMap()); - MainArea* ma = GostyApp::Instance()->GetPerspective()->GetMainArea(); - ma->AddWidget(QString(obj->GetName().c_str()), dv) ; - dv->show(); + // The following is a hack. I need to pass a reference to an ImagHandle + // that never goes out of scope, so I get a reference from the MapIso using + // GetMap and pass it to the CreateDataViewer + img::gui::DataViewer* dv = GostyApp::Instance()->CreateDataViewer(obj->GetMap()); + MainArea* ma = GostyApp::Instance()->GetPerspective()->GetMainArea(); + ma->AddWidget(QString(obj->GetName().c_str()), dv) ; + dv->show(); } } } @@ -295,6 +295,7 @@ void SceneSelection::SelectViews(){ } } + gfx::EntityP SceneSelection::GetViewEntity() const{ return view_entity_; } -- GitLab