From 935006663b425d16c35e12858e3370e39caf5ce5 Mon Sep 17 00:00:00 2001
From: andreas <andreas@5a81b35b-ba03-0410-adc8-b2c5c5119f08>
Date: Wed, 18 Aug 2010 20:55:46 +0000
Subject: [PATCH] added some missing functionality in PointlistOverlayBase

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2652 5a81b35b-ba03-0410-adc8-b2c5c5119f08
---
 .../src/data_viewer/pointlist_overlay_base.cc | 21 +++++++------------
 1 file changed, 8 insertions(+), 13 deletions(-)

diff --git a/modules/gui/src/data_viewer/pointlist_overlay_base.cc b/modules/gui/src/data_viewer/pointlist_overlay_base.cc
index a1a6e0eb4..65b0e3a32 100644
--- a/modules/gui/src/data_viewer/pointlist_overlay_base.cc
+++ b/modules/gui/src/data_viewer/pointlist_overlay_base.cc
@@ -212,27 +212,24 @@ void PointlistOverlayBase::DrawVariableSizePointList(QPainter& pnt, DataViewerPa
 
 bool PointlistOverlayBase::GetCrosshair() const
 {
-  //return menu_->IsChecked(ID_Crosshair);
-  return false;
+  return a_cr_->isChecked();
 }
 
 void PointlistOverlayBase::SetCrosshair(bool flag)
 {
-  /*
-  if(menu_->IsChecked(ID_Crosshair))	{
-    if(menu_->IsChecked(ID_Square)){
+  if(a_cr_->isChecked())	{
+    if(a_sq_->isChecked()){
       ReplaceStrategy<CrosshairSquareDrawingStrategy>();
     }else{
       ReplaceStrategy<CrosshairCircleDrawingStrategy>();
     }
   } else {
-    if(menu_->IsChecked(ID_Square)){
+    if(a_sq_->isChecked()){
       ReplaceStrategy<SquareDrawingStrategy>();
     }else{
       ReplaceStrategy<CircleDrawingStrategy>();
     }
   }
-  */
 }
 
 unsigned int PointlistOverlayBase::GetSymbolSize() const 
@@ -247,30 +244,28 @@ void PointlistOverlayBase::SetSymbolSize(unsigned int symbolsize)
 
 unsigned int PointlistOverlayBase::GetSymbolShape() const
 {
-  //return menu_->IsChecked(ID_Circle) ? 0 : 1;
-  return 0;
+  return a_sq_->isChecked() ? 1 : 0;
 }
 
 void PointlistOverlayBase::SetSymbolShape(unsigned int symbolshape)
 {
-  /*
   switch(symbolshape){
   case 1:
-    if(menu_->IsChecked(ID_Crosshair)){
+    if(a_cr_->isChecked()){
       ReplaceStrategy<CrosshairSquareDrawingStrategy>();
     }else{
       ReplaceStrategy<SquareDrawingStrategy>();
     }
     break;
   case 0:
-    if(menu_->IsChecked(ID_Crosshair)){
+    if(a_cr_->isChecked()){
         ReplaceStrategy<CrosshairCircleDrawingStrategy>();
     }else{
       ReplaceStrategy<CircleDrawingStrategy>();
     }
     break;
   }
-  */
+  
 }
 
 template <class StrategyClass>
-- 
GitLab