Changeset 1030 for trunk/MagicSoft/Mars/mmain/MAnalysis.cc
- Timestamp:
- 11/05/01 10:35:36 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmain/MAnalysis.cc
r1021 r1030 31 31 #include <TGButton.h> // TGTextButton 32 32 #include <TGTextEntry.h> // TGNumberEntry 33 #include <TGProgressBar.h> // TGHProgressBar34 35 33 36 34 ClassImp(MAnalysis) … … 48 46 fList->Add(hillas); 49 47 50 TGLayoutHints *laybut = new TGLayoutHints(kLHints Top|kLHintsLeft, 10, 10, 5, 5);48 TGLayoutHints *laybut = new TGLayoutHints(kLHintsCenterY|kLHintsLeft, 10, 10, 5, 5); 51 49 fList->Add(laybut); 52 50 … … 209 207 } 210 208 211 TGHProgressBar bar(fTop2);212 TGLayoutHints laybar(kLHintsExpandX|kLHintsCenterY|kLHintsRight, 10, 10, 5, 5); //, 10); //, 5, 5);213 bar.SetWidth(150);214 fTop2->AddFrame(&bar, &laybar);215 Layout();216 MapSubwindows();217 218 209 // 219 210 // Create a empty Parameter List and an empty Task List … … 252 243 // 253 244 MReadTree read("Events", fInputFile); 254 read.SetProgressBar(&bar);255 245 256 246 MCerPhotCalc ncalc; … … 277 267 MEvtLoop evtloop; 278 268 evtloop.SetParList(&plist); 279 evtloop.SetProgressBar(&bar); 269 270 // 271 // Add ProgressBar to window 272 // 273 TGProgressBar *bar = CreateProgressBar(fTop2); 274 read.SetProgressBar(bar); 275 evtloop.SetProgressBar(bar); 276 280 277 // 281 278 // Execute your analysis … … 283 280 Bool_t rc = evtloop.Eventloop(); 284 281 285 fTop2->RemoveFrame(&bar); 286 Layout(); 287 MapSubwindows(); 282 // 283 // Remove progressbar from window 284 // 285 DestroyProgressBar(bar); 288 286 289 287 if (!rc)
Note:
See TracChangeset
for help on using the changeset viewer.