Changeset 3825 for trunk/MagicSoft/Mars
- Timestamp:
- 04/23/04 15:12:33 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3819 r3825 23 23 2004/04/23: Markus Gaug 24 24 25 * mcalib/MHCalibrationCam.cc 26 - fixed a bug in the ReInit() for the number of average events in 27 each area index and sector 25 * mcalib/MHCalibrationCam.cc 26 - fixed a bug in the ReInit() for the number of average events in 27 each area index and sector 28 28 29 29 30 30 31 2004/04/23: Thomas Bretz 31 32 32 * */Makefile: 33 - added some more mpedestal 34 35 * mreport/MReportRun.cc: 36 - changed to work with the latest version of report-files 37 --> This will make it incompatible with older report files 38 (for this use older Mars versions for merpping) 33 * */Makefile: 34 - added some more mpedestal 35 36 * mreport/MReportRun.cc: 37 - changed to work with the latest version of report-files 38 --> This will make it incompatible with older report files 39 (for this use older Mars versions for merpping) 40 41 * mbase/MStatusDisplay.[h,cc]: 42 - added combo-box to surf through tabs in MARS-tab 39 43 40 44 -
trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc
r3666 r3825 86 86 #include <TGButton.h> // TGPictureButton 87 87 #include <TGTextView.h> // TGTextView 88 #include <TGComboBox.h> // TGComboBox 88 89 #include <TGStatusBar.h> // TGStatusBar 89 90 #include <TGFileDialog.h> // TGFileDialog … … 306 307 } 307 308 309 char *rot128(char *c) 310 { 311 char *rc=c; 312 while (*c) *c++ += 128; 313 return rc; 314 } 315 308 316 // -------------------------------------------------------------------------- 309 317 // … … 314 322 // Create Tab1 315 323 TGCompositeFrame *f = fTab->AddTab("-=MARS=-"); 324 325 // Add list of tabs 326 327 TGComboBox *filter = new TGComboBox(f, kTabs); 328 fList->Add(filter); 329 filter->Associate(this); 330 filter->AddEntry("-=MARS=-", 0); 331 filter->Select(0); 332 333 TGLayoutHints *lay3 = new TGLayoutHints(kLHintsCenterX|kLHintsTop, 10, 10, 10, 5); 334 fList->Add(lay3); 335 f->AddFrame(filter, lay3); 316 336 317 337 // Add MARS version 318 338 TGLabel *l = new TGLabel(f, Form("Official Release: V%s", MARSVER)); 319 339 fList->Add(l); 340 341 filter->SetWidth(l->GetWidth()); 342 filter->SetHeight(4*l->GetHeight()/3); 320 343 321 344 TGLayoutHints *layb = new TGLayoutHints(kLHintsCenterX|kLHintsTop, 10, 10, 5, 5); … … 358 381 fList->Add(layc); 359 382 360 l = new TGLabel(f, "<< Thomas Bretz >>"); 383 char *txt = "<< Thomas Bretz >>"; 384 l = new TGLabel(f, txt); 361 385 fList->Add(l); 362 386 f->AddFrame(l, layc); … … 385 409 386 410 // Create Tab1 387 TGCompositeFrame *f = fTab->AddTab("-Logbook-");411 TGCompositeFrame *f = AddRawTab("-Logbook-");//fTab->AddTab("-Logbook-"); 388 412 389 413 // Create Text View … … 786 810 TGCompositeFrame *f = fTab->AddTab(name); 787 811 812 TGComboBox *box = (TGComboBox*)fList->FindWidget(kTabs); 813 box->AddEntry(name, box->GetListBox()->GetNumberOfEntries()); 814 788 815 // layout and map new tab 789 816 Layout(); … … 868 895 c.Connect("ProcessedEvent(Int_t,Int_t,Int_t,TObject*)", 869 896 "MStatusDisplay", this, "EventInfo(Int_t,Int_t,Int_t,TObject*)"); 897 898 TGComboBox *box = (TGComboBox*)fList->FindWidget(kTabs); 899 box->AddEntry(name, box->GetListBox()->GetNumberOfEntries()); 870 900 871 901 // layout and map new tab … … 1039 1069 fTab->RemoveTab(i); 1040 1070 fTab->SetTab(0); 1071 1072 TGComboBox *box = (TGComboBox*)fList->FindWidget(kTabs); 1073 box->RemoveEntry(i); 1074 for (int j=i; j<box->GetListBox()->GetNumberOfEntries(); j++) 1075 { 1076 TGTextLBEntry *entry = (TGTextLBEntry *)box->GetListBox()->Select(j+1, kFALSE); 1077 box->AddEntry(entry->GetText()->GetString(), j); 1078 box->RemoveEntry(j+1); 1079 } 1080 box->GetListBox()->Select(0); 1041 1081 1042 1082 // Looks strange... … … 1283 1323 */ 1284 1324 return kTRUE; 1325 case kCM_COMBOBOX: // 7 1326 if (mp1==kTabs) 1327 fTab->SetTab(mp2); 1328 return kTRUE; 1285 1329 #ifdef DEBUG 1286 1330 case kCM_MENUSELECT: // 2 … … 1302 1346 case kCM_LISTBOX: // 6 1303 1347 cout << "Command-Listbox #" << mp1 << " (LineId #" << mp2 << ")" << endl; 1304 return kTRUE;1305 1306 case kCM_COMBOBOX: // 71307 cout << "Command-ComboBox." << endl;1308 1348 return kTRUE; 1309 1349 default: -
trunk/MagicSoft/Mars/mbase/MStatusDisplay.h
r3507 r3825 51 51 // kPic 52 52 kPicMagic, kPicMars, 53 // k Pic54 kSearch 53 // kGui 54 kSearch, kTabs 55 55 } Status_t; 56 56
Note:
See TracChangeset
for help on using the changeset viewer.