]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/Alieve/AliEveTPCSector2DEditor.cxx
Put all classes in Alieve/ sub-module out of the Alieve namespace and
[u/mrichter/AliRoot.git] / EVE / Alieve / AliEveTPCSector2DEditor.cxx
similarity index 61%
rename from EVE/Alieve/TPCSector2DEditor.cxx
rename to EVE/Alieve/AliEveTPCSector2DEditor.cxx
index f044e9e64da14f45c5ebecc56ea3517bbaa969ae..dcea77dd8dd90a5210c02f5b52cfd304fdf2a9bb 100644 (file)
@@ -1,46 +1,53 @@
-// $Header$
+// $Id$
+// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
 
-#include "TPCSector2DEditor.h"
-#include <Alieve/TPCSector2D.h>
+/**************************************************************************
+ * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
+ * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
+ * full copyright notice.                                                 * 
+ **************************************************************************/
+
+#include "AliEveTPCSector2DEditor.h"
+#include <Alieve/AliEveTPCSector2D.h>
 
 #include <TGButton.h>
 #include <TGComboBox.h>
 #include <TGLabel.h>
-using namespace Alieve;
+
 
 //______________________________________________________________________
-// TPCSector2DEditor
+// AliEveTPCSector2DEditor
 //
 
-ClassImp(TPCSector2DEditor)
+ClassImp(AliEveTPCSector2DEditor)
 
-TPCSector2DEditor::TPCSector2DEditor(const TGWindow *p,
+AliEveTPCSector2DEditor::AliEveTPCSector2DEditor(const TGWindow *p,
                                     Int_t width, Int_t height,
                                     UInt_t options, Pixel_t back) :
   TGedFrame(p, width, height, options | kVerticalFrame, back),
   fM(0),
   fShowMax(0), fAverage(0), fUseTexture(0), fPickEmpty(0), fPickMode(0)
 {
-  MakeTitle("TPCSector2D");
+  MakeTitle("AliEveTPCSector2D");
 
   {
     TGHorizontalFrame* f = new TGHorizontalFrame(this);
     fShowMax = new TGCheckButton(f, "ShowMax");
     f->AddFrame(fShowMax, new TGLayoutHints(kLHintsLeft, 3, 16, 1, 0));
-    fShowMax->Connect("Toggled(Bool_t)","Alieve::TPCSector2DEditor", this, "DoShowMax()");
+    fShowMax->Connect("Toggled(Bool_t)","AliEveTPCSector2DEditor", this, "DoShowMax()");
     fAverage = new TGCheckButton(f, "Average");
     f->AddFrame(fAverage, new TGLayoutHints(kLHintsLeft, 3, 1, 1, 0));
-    fAverage->Connect("Toggled(Bool_t)","Alieve::TPCSector2DEditor", this, "DoAverage()");
+    fAverage->Connect("Toggled(Bool_t)","AliEveTPCSector2DEditor", this, "DoAverage()");
     AddFrame(f);
   }
   {
     TGHorizontalFrame* f = new TGHorizontalFrame(this);
     fUseTexture = new TGCheckButton(f, "UseTexture");
     f->AddFrame(fUseTexture, new TGLayoutHints(kLHintsTop, 3, 9, 1, 0));
-    fUseTexture->Connect("Toggled(Bool_t)","Alieve::TPCSector2DEditor", this, "DoUseTexture()");
+    fUseTexture->Connect("Toggled(Bool_t)","AliEveTPCSector2DEditor", this, "DoUseTexture()");
     fPickEmpty = new TGCheckButton(f, "PickEmpty");
     f->AddFrame(fPickEmpty, new TGLayoutHints(kLHintsTop, 3, 1, 1, 0));
-    fPickEmpty->Connect("Toggled(Bool_t)","Alieve::TPCSector2DEditor", this, "DoPickEmpty()");
+    fPickEmpty->Connect("Toggled(Bool_t)","AliEveTPCSector2DEditor", this, "DoPickEmpty()");
     AddFrame(f);
   }
   {
@@ -54,20 +61,20 @@ TPCSector2DEditor::TPCSector2DEditor(const TGWindow *p,
     TGListBox* lb = fPickMode->GetListBox();
     lb->Resize(lb->GetWidth(), 3*18);
     fPickMode->Resize(80, 20);
-    fPickMode->Connect("Selected(Int_t)", "Alieve::TPCSector2DEditor", this, "DoPickMode(Int_t)");
+    fPickMode->Connect("Selected(Int_t)", "AliEveTPCSector2DEditor", this, "DoPickMode(Int_t)");
     f->AddFrame(fPickMode, new TGLayoutHints(kLHintsTop, 1, 1, 1, 1));
     AddFrame(f);
   }
 }
 
-TPCSector2DEditor::~TPCSector2DEditor()
+AliEveTPCSector2DEditor::~AliEveTPCSector2DEditor()
 {}
 
 /**************************************************************************/
 
-void TPCSector2DEditor::SetModel(TObject* obj)
+void AliEveTPCSector2DEditor::SetModel(TObject* obj)
 {
-  fM = dynamic_cast<TPCSector2D*>(obj);
+  fM = dynamic_cast<AliEveTPCSector2D*>(obj);
 
   fShowMax->SetState(fM->fShowMax ? kButtonDown : kButtonUp);
   SetupAverage();
@@ -79,20 +86,20 @@ void TPCSector2DEditor::SetModel(TObject* obj)
 
 /**************************************************************************/
 
-void TPCSector2DEditor::DoShowMax()
+void AliEveTPCSector2DEditor::DoShowMax()
 {
   fM->SetShowMax(fShowMax->IsOn());
   SetupAverage();
   Update();
 }
 
-void TPCSector2DEditor::DoAverage()
+void AliEveTPCSector2DEditor::DoAverage()
 {
   fM->SetAverage(fAverage->IsOn());
   Update();
 }
 
-void TPCSector2DEditor::SetupAverage()
+void AliEveTPCSector2DEditor::SetupAverage()
 {
   if(fM->fShowMax) {
     fAverage->SetEnabled(kFALSE);
@@ -104,19 +111,19 @@ void TPCSector2DEditor::SetupAverage()
 
 /**************************************************************************/
 
-void TPCSector2DEditor::DoUseTexture()
+void AliEveTPCSector2DEditor::DoUseTexture()
 {
   fM->fUseTexture = fUseTexture->IsOn();
   Update();
 }
 
-void TPCSector2DEditor::DoPickEmpty()
+void AliEveTPCSector2DEditor::DoPickEmpty()
 {
   fM->fPickEmpty = fPickEmpty->IsOn();
   // Update();
 }
 
-void TPCSector2DEditor::DoPickMode(Int_t mode)
+void AliEveTPCSector2DEditor::DoPickMode(Int_t mode)
 {
   fM->fPickMode = mode;
   // Update();