35 : TGMainFrame(gClient->GetRoot(), 650, 435, kHorizontalFrame),
fExitLoopOnClose(kFALSE),
44 gROOT->GetListOfCleanups()->Add(
fList);
45 fList->SetBit(kMustCleanup);
47 fFont = gVirtualX->LoadQueryFont(
"7x13bold");
49 TGLayoutHints *hints0 =
new TGLayoutHints(kLHintsExpandY, 7, 5, 5, 0);
50 TGLayoutHints *hints1 =
new TGLayoutHints(kLHintsExpandX|kLHintsExpandY, 5, 7, 5, 6);
54 TGGroupFrame *grp1 =
new TGGroupFrame(
this,
"Control", kVerticalFrame);
55 AddFrame(grp1, hints0);
58 TGGroupFrame *grp2 =
new TGGroupFrame(
this,
"Parameters", kHorizontalFrame);
59 AddFrame(grp2, hints1);
63 TGLayoutHints *hints4 =
new TGLayoutHints(kLHintsExpandX, 5, 5, 3);
64 TGLayoutHints *hints5 =
new TGLayoutHints(kLHintsExpandX, 5, 5, 10);
81 TGHorizontalFrame *comp =
new TGHorizontalFrame(grp2, 1, 1);
85 TGLayoutHints *hints3 =
new TGLayoutHints(kLHintsLeft|kLHintsTop, 0, 10, 5, 0);
88 TGVerticalFrame *vframe =
new TGVerticalFrame(comp, 1, 1);
95 comp->AddFrame(vframe, hints3);
98 vframe =
new TGVerticalFrame(comp, 1, 1);
99 comp->AddFrame(vframe, hints3);
102 hints3 =
new TGLayoutHints(kLHintsLeft|kLHintsTop, 0, 10, 5, 0);
105 TGLabel *l =
new TGLabel(vframe,
"+000.0000");
106 l->SetTextJustify(kTextRight);
110 TGLayoutHints *h =
new TGLayoutHints(kLHintsCenterY, 0, 0, but->GetHeight()-l->GetHeight());
113 vframe->AddFrame(l,h);
116 AddLabel(vframe,
"+000.0000", h)->SetTextJustify(kTextRight);
118 vframe =
new TGVerticalFrame(comp, 1, 1);
119 comp->AddFrame(vframe, hints3);
123 AddLabel(vframe,
"\xb1 00.0000\xb0", h)->SetTextJustify(kTextRight);
125 hints3 =
new TGLayoutHints(kLHintsLeft|kLHintsTop, 0, 20, 5, 0);
128 TGLayoutHints *hreset =
new TGLayoutHints(kLHintsLeft|kLHintsTop, 0, 0, 3, 1);
131 TGVerticalFrame *vframe2 =
new TGVerticalFrame(comp, 1, 1);
132 comp->AddFrame(vframe2, hints3);
138 vframe =
new TGVerticalFrame(comp, 1, 1);
139 comp->AddFrame(vframe, hints3);
145 TGLayoutHints *hints6 =
new TGLayoutHints(kLHintsExpandX, 5, 5, 4, 6);
148 l =
new TGLabel(grp1,
"0000000 Data Sets loaded.");
149 grp1->AddFrame(l, hints6);
153 l =
new TGLabel(grp1,
"");
154 l->SetTextJustify(kTextLeft);
155 grp1->AddFrame(l, hints6);
159 l =
new TGLabel(grp1,
"");
160 l->SetTextJustify(kTextLeft);
161 grp1->AddFrame(l, hints6);
165 l =
new TGLabel(grp1,
"");
166 l->SetTextJustify(kTextLeft);
167 grp1->AddFrame(l, hints6);
173 TGLayoutHints *hintse1 =
new TGLayoutHints(kLHintsExpandX|kLHintsBottom);
174 TGLayoutHints *hintse2 =
new TGLayoutHints(kLHintsExpandX, 2, 2);
175 TGLayoutHints *hintse3 =
new TGLayoutHints(kLHintsExpandX);
176 TGLayoutHints *hintsl =
new TGLayoutHints(kLHintsExpandX, 1, 0, 5);
181 TGHorizontalFrame *entries =
new TGHorizontalFrame(grp1, 1, 1);
182 grp1->AddFrame(entries, hintse1);
185 TGVerticalFrame *v1 =
new TGVerticalFrame(entries);
186 TGVerticalFrame *v2 =
new TGVerticalFrame(entries);
187 TGVerticalFrame *v3 =
new TGVerticalFrame(entries);
188 entries->AddFrame(v1, hintse2);
189 entries->AddFrame(v2, hintse2);
190 entries->AddFrame(v3, hintse2);
195 TGLabel *label1 =
new TGLabel(v1,
"Az min/°");
196 TGLabel *label2 =
new TGLabel(v2,
"Az max/°");
197 TGLabel *label3 =
new TGLabel(v3,
"Mag min");
198 TGLabel *label4 =
new TGLabel(v1,
"Zd min/°");
199 TGLabel *label5 =
new TGLabel(v2,
"Zd max/°");
200 TGLabel *label6 =
new TGLabel(v3,
"Limit/°");
201 label1->SetTextJustify(kTextLeft);
202 label2->SetTextJustify(kTextLeft);
203 label3->SetTextJustify(kTextLeft);
204 label4->SetTextJustify(kTextLeft);
205 label5->SetTextJustify(kTextLeft);
206 label6->SetTextJustify(kTextLeft);
220 entry1->SetToolTipText(
"TPoints with a real star located at Az<Az min are ignored in the fit.");
221 entry2->SetToolTipText(
"TPoints with a real star located at Az>Az max are ignored in the fit.");
222 entry2->SetToolTipText(
"TPoints with a artifiical magnitude Mag<Mag min are ignored in the fit.");
223 entry4->SetToolTipText(
"TPoints with a real star located at Zd<Zd min are ignored in the fit.");
224 entry5->SetToolTipText(
"TPoints with a real star located at Zd>Zd max are ignored in the fit.");
225 entry6->SetToolTipText(
"TPoints with an residual after the fit > Limit are output.");
226 entry1->Associate(
this);
227 entry2->Associate(
this);
228 entry3->Associate(
this);
229 entry4->Associate(
this);
230 entry5->Associate(
this);
231 entry6->Associate(
this);
232 v1->AddFrame(label1, hintsl);
233 v1->AddFrame(entry1, hintse3);
234 v1->AddFrame(label4, hintsl);
235 v1->AddFrame(entry4, hintse3);
236 v2->AddFrame(label2, hintsl);
237 v2->AddFrame(entry2, hintse3);
238 v2->AddFrame(label5, hintsl);
239 v2->AddFrame(entry5, hintse3);
240 v3->AddFrame(label3, hintsl);
241 v3->AddFrame(entry3, hintse3);
242 v3->AddFrame(label6, hintsl);
243 v3->AddFrame(entry6, hintse3);
254 ((TGCheckButton*)
FindWidget(0))->SetState(kButtonDown);
255 ((TGCheckButton*)
FindWidget(1))->SetState(kButtonDown);
256 ((TGCheckButton*)
FindWidget(3))->SetState(kButtonDown);
257 ((TGCheckButton*)
FindWidget(4))->SetState(kButtonDown);
258 ((TGCheckButton*)
FindWidget(5))->SetState(kButtonDown);
259 ((TGCheckButton*)
FindWidget(6))->SetState(kButtonDown);
260 ((TGCheckButton*)
FindWidget(7))->SetState(kButtonDown);
261 ((TGCheckButton*)
FindWidget(8))->SetState(kButtonDown);
262 ((TGCheckButton*)
FindWidget(11))->SetState(kButtonDown);
263 ((TGCheckButton*)
FindWidget(12))->SetState(kButtonDown);
264 ((TGCheckButton*)
FindWidget(13))->SetState(kButtonDown);
265 ((TGCheckButton*)
FindWidget(14))->SetState(kButtonDown);
277 SetWindowName(
"Telesto");
278 SetIconName(
"Telesto");
const TString & GetDescription(int i) const
void AddCheckButton(TGCompositeFrame *f, TString txt, Int_t id=-1, TGLayoutHints *h=0)
void LoadStars(TString fname="tpoint.txt")
static const Int_t GetNumPar()
TObject * FindWidget(Int_t id) const
Bool_t Load(const char *name)
const TString & GetVarName(int i) const
void AddTextButton(TGCompositeFrame *f, TString txt, Int_t id=-1, TGLayoutHints *h=0)
void AddResetButton(TGCompositeFrame *f, Int_t id, TGLayoutHints *h, Int_t height)
TGLabel * AddLabel(TGCompositeFrame *f, TString txt, TGLayoutHints *h=0)