22 TGTransientFrame(gClient->GetDefaultRoot(),
p,w,
h),
28 SetCleanup(kDeepCleanup);
31 const TGFont *font = gClient->GetFont(
"-adobe-helvetica-bold-r-*-*-14-*-*-*-*-*-iso8859-1");
33 font = gClient->GetResourcePool()->GetDefaultFont();
35 gval.fMask = kGCBackground | kGCFont | kGCForeground;
36 gval.fFont = font->GetFontHandle();
37 fTextGC = gClient->GetGC(&gval, kTRUE);
39 TGCompositeFrame* vf2 =
new TGVerticalFrame(
this);
40 AddFrame(vf2,
new TGLayoutHints(kLHintsExpandX, 2, 2, 2, 2));
45 TGLabel* xx =
new TGLabel(vf2,
"GlobalScales ", fTextGC->GetGC());
46 vf2->AddFrame(xx,
new TGLayoutHints(kLHintsLeft ,2,2,4,4));
49 vf2->AddFrame(scaleEditor);
53 vf2->AddFrame(
new TGHorizontal3DLine(vf2),
new TGLayoutHints(kLHintsExpandX,4 ,8, 3, 3));
55 TGLabel* xx =
new TGLabel(vf2,
"Projections ", fTextGC->GetGC());
56 vf2->AddFrame(xx,
new TGLayoutHints(kLHintsLeft ,2,2,4,4));
58 vf2->AddFrame(
new TGLabel(vf2,
"Track behaviour when crossing y=0 in RhoZ-view:"),
new TGLayoutHints(kLHintsLeft ,2,2,0,0));
66 vf2->AddFrame(
new TGHorizontal3DLine(vf2),
new TGLayoutHints(kLHintsExpandX ,4 ,8, 8, 2));
68 TGLabel* xx =
new TGLabel(vf2,
"General Colors ", fTextGC->GetGC());
69 vf2->AddFrame(xx,
new TGLayoutHints(kLHintsLeft,2,2,4,4));
81 TGLabel* xx =
new TGLabel(vf2,
"DetectorColors ", fTextGC->GetGC());
82 vf2->AddFrame(xx,
new TGLayoutHints(kLHintsLeft,2,2,8,0));
85 TGFont* smallFont = 0;
89 TGFontPool *pool = gClient->GetFontPool();
90 TGFont* defaultFont = pool->GetFont(defaultFontStruct);
91 FontAttributes_t
attributes = defaultFont->GetFontAttributes();
92 smallFont = pool->GetFont(attributes.fFamily, 8, attributes.fWeight, attributes.fSlant);
100 TGHSlider* transpWidget2D = 0;
101 TGHSlider* transpWidget3D = 0;
102 TGCompositeFrame* top =
new TGVerticalFrame(vf2);
103 vf2->AddFrame(top,
new TGLayoutHints(kLHintsNormal, 2, 2, 2, 0));
106 TGHorizontalFrame* hf =
new TGHorizontalFrame(top);
107 hf->AddFrame(
new TGLabel(hf,
"Tansparency 2D:"),
new TGLayoutHints(kLHintsBottom, 2, 2, 3, 3));
108 transpWidget2D =
new TGHSlider(hf, 100, kSlider1);
109 hf->AddFrame( transpWidget2D);
110 top->AddFrame(hf,
new TGLayoutHints( kLHintsNormal, 0, 0, 2, 2));
113 TGHorizontalFrame* hf =
new TGHorizontalFrame(top);
114 hf->AddFrame(
new TGLabel(hf,
"Tansparency 3D:") ,
new TGLayoutHints(kLHintsBottom,2, 2, 2, 2 ));
115 transpWidget3D =
new TGHSlider(hf, 100, kSlider1);
116 hf->AddFrame( transpWidget3D);
117 top->AddFrame(hf,
new TGLayoutHints(kLHintsExpandX, 0, 0, 0, 10));
127 for (
int k = 0;
k < 3; ++
k)
129 TGHorizontalFrame* hf =
new TGHorizontalFrame(top);
132 for (
int j = 0 ;
j < 2; ++
j)
137 m_colorSelectWidget[
i]->Connect(
"ColorChosen(Color_t)",
"CmsShowCommonPopup",
this,
"changeGeomColor(Color_t)");
139 TGFrame* lf =
new TGHorizontalFrame(hf, 100, 16, kFixedSize);
141 label->SetTextFont(smallFont);
142 hf->AddFrame(lf,
new TGLayoutHints(kLHintsLeft |kLHintsCenterY , 0, 0, 0,0));
149 m_backgroundButton->Connect(
"Clicked()",
"CmsShowCommonPopup",
this,
"switchBackground()");
151 transpWidget2D->SetRange(0, 100);
153 transpWidget2D->Connect(
"PositionChanged(Int_t)",
"CmsShowCommonPopup",
this,
"changeGeomTransparency2D(Int_t)");
155 transpWidget3D->SetRange(0, 100);
157 transpWidget3D->Connect(
"PositionChanged(Int_t)",
"CmsShowCommonPopup",
this,
"changeGeomTransparency3D(Int_t)");
159 SetWindowName(
"Common Preferences");
161 Resize(GetDefaultSize());
163 CenterOnParent(kTRUE, TGTransientFrame::kTopRight);
Color_t geomTransparency(bool projected) const
void SetColorByIndex(Color_t iColor)
FWBoolParameter m_drawBreakPoints
const FWColorManager * colorManager() const
std::auto_ptr< FWViewEnergyScale > m_energyScale
FWEnumParameter m_trackBreak
Color_t geomColor(FWGeomColorIndex) const
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
static const HistoName names[]