]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/Alieve/AliEveITSScaledModuleEditor.cxx
Put all classes in Alieve/ sub-module out of the Alieve namespace and
[u/mrichter/AliRoot.git] / EVE / Alieve / AliEveITSScaledModuleEditor.cxx
similarity index 75%
rename from EVE/Alieve/ITSScaledModuleEditor.cxx
rename to EVE/Alieve/AliEveITSScaledModuleEditor.cxx
index 59f4507483d04deaa83fc0e87e7e9f890890db69..5797e5dd473a9b8497b02e47b109dda925291ecf 100644 (file)
@@ -1,7 +1,14 @@
-// $Header$
+// $Id$
+// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
 
-#include "ITSScaledModuleEditor.h"
-#include <Alieve/ITSScaledModule.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 "AliEveITSScaledModuleEditor.h"
+#include <Alieve/AliEveITSScaledModule.h>
 #include <TEveTransEditor.h>
 #include <TEveGValuators.h>
 
 #include <TGNumberEntry.h>
 #include <TGColorSelect.h>
 #include <TGComboBox.h>
-using namespace Alieve;
+
 
 //______________________________________________________________________
-// ITSScaledModuleEditor 
+// AliEveITSScaledModuleEditor 
 //
 
-ClassImp(ITSScaledModuleEditor)
+ClassImp(AliEveITSScaledModuleEditor)
 
-  ITSScaledModuleEditor::ITSScaledModuleEditor(const TGWindow *p, Int_t width, Int_t height,
+  AliEveITSScaledModuleEditor::AliEveITSScaledModuleEditor(const TGWindow *p, Int_t width, Int_t height,
                                               UInt_t options, Pixel_t back) :
     TGedFrame(p, width, height, options | kVerticalFrame, back),
 
@@ -37,7 +44,7 @@ ClassImp(ITSScaledModuleEditor)
     fInfoLabel0(0),
     fInfoLabel1(0)
 {
-  MakeTitle("ITSScaledModule");
+  MakeTitle("AliEveITSScaledModule");
   // Create widgets
   {
     TGHorizontalFrame* f = new TGHorizontalFrame(this);
@@ -49,7 +56,7 @@ ClassImp(ITSScaledModuleEditor)
     fScale->GetNumberEntry()->SetToolTipText("Set cell size.");
     f->AddFrame(fScale, new TGLayoutHints(kLHintsLeft, 1, 7, 1, 1));
     fScale->Associate(f);
-    fScale->Connect("ValueSet(Long_t)", "Alieve::ITSScaledModuleEditor", this, "DoScale()");
+    fScale->Connect("ValueSet(Long_t)", "AliEveITSScaledModuleEditor", this, "DoScale()");
     
     TGLabel* lab = new TGLabel(f, "Statistic:");
     f->AddFrame(lab, new TGLayoutHints(kLHintsLeft|kLHintsBottom, 1, 2, 1, 2));
@@ -60,7 +67,7 @@ ClassImp(ITSScaledModuleEditor)
     TGListBox* lb = fStatistic->GetListBox();
     lb->Resize(lb->GetWidth(), 3*16);
     fStatistic->Resize(74, 20);
-    fStatistic->Connect("Selected(Int_t)", "Alieve::ITSScaledModuleEditor", this, "DoStatType(Int_t)");
+    fStatistic->Connect("Selected(Int_t)", "AliEveITSScaledModuleEditor", this, "DoStatType(Int_t)");
     f->AddFrame(fStatistic, new TGLayoutHints(kLHintsLeft, 1, 2, 1, 1));
     AddFrame(f, new TGLayoutHints(kLHintsTop, 1, 1, 1, 1));
   }
@@ -69,11 +76,11 @@ ClassImp(ITSScaledModuleEditor)
 }
 
 /*************************************************************************/
-ITSScaledModuleEditor::~ITSScaledModuleEditor()
+AliEveITSScaledModuleEditor::~AliEveITSScaledModuleEditor()
 {}
 
 /*************************************************************************/
-void ITSScaledModuleEditor::CreateInfoFrame()
+void AliEveITSScaledModuleEditor::CreateInfoFrame()
 {
   fInfoFrame = CreateEditorTabSubFrame("Info");
   TGCompositeFrame *title1 = new TGCompositeFrame(fInfoFrame, 145, 10, 
@@ -104,9 +111,9 @@ void ITSScaledModuleEditor::CreateInfoFrame()
 
 /**************************************************************************/
 
-void ITSScaledModuleEditor::SetModel(TObject* obj)
+void AliEveITSScaledModuleEditor::SetModel(TObject* obj)
 {
-  fModule = dynamic_cast<ITSScaledModule*>(obj); 
+  fModule = dynamic_cast<AliEveITSScaledModule*>(obj); 
 
   // widgets
   fScale->SetIntNumber(fModule->GetScaleInfo()->GetScale());
@@ -122,7 +129,7 @@ void ITSScaledModuleEditor::SetModel(TObject* obj)
 
 /**************************************************************************/
 
-void ITSScaledModuleEditor::DoScale()
+void AliEveITSScaledModuleEditor::DoScale()
 {
   fModule->GetScaleInfo()->ScaleChanged(fScale->GetIntNumber());
 
@@ -135,7 +142,7 @@ void ITSScaledModuleEditor::DoScale()
 
 /**************************************************************************/
 
-void ITSScaledModuleEditor::DoStatType(Int_t v)
+void AliEveITSScaledModuleEditor::DoStatType(Int_t v)
 {
   fModule->GetScaleInfo()->StatTypeChanged(v);
   Update();