-// $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),
fInfoLabel0(0),
fInfoLabel1(0)
{
- MakeTitle("ITSScaledModule");
+ MakeTitle("AliEveITSScaledModule");
// Create widgets
{
TGHorizontalFrame* f = new TGHorizontalFrame(this);
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));
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));
}
}
/*************************************************************************/
-ITSScaledModuleEditor::~ITSScaledModuleEditor()
+AliEveITSScaledModuleEditor::~AliEveITSScaledModuleEditor()
{}
/*************************************************************************/
-void ITSScaledModuleEditor::CreateInfoFrame()
+void AliEveITSScaledModuleEditor::CreateInfoFrame()
{
fInfoFrame = CreateEditorTabSubFrame("Info");
TGCompositeFrame *title1 = new TGCompositeFrame(fInfoFrame, 145, 10,
/**************************************************************************/
-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());
/**************************************************************************/
-void ITSScaledModuleEditor::DoScale()
+void AliEveITSScaledModuleEditor::DoScale()
{
fModule->GetScaleInfo()->ScaleChanged(fScale->GetIntNumber());
/**************************************************************************/
-void ITSScaledModuleEditor::DoStatType(Int_t v)
+void AliEveITSScaledModuleEditor::DoStatType(Int_t v)
{
fModule->GetScaleInfo()->StatTypeChanged(v);
Update();