Changeset 1057 for trunk/MagicSoft/Mars/meventdisp
- Timestamp:
- 11/08/01 15:00:25 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/meventdisp/MGCamDisplay.cc
r1051 r1057 46 46 enum 47 47 { 48 M_RBUT_RAW = 0x1000,49 M_RBUT_CLEAN = 0x1001,50 M_CBUT_HILLAS = 0x100248 kRButRawEvt, 49 kRButCleanedEvt, 50 kCButHillas 51 51 }; 52 52 … … 63 63 fList->Add(group); 64 64 65 TGRadioButton *but1 = new TGRadioButton(group, "Raw Events", M_RBUT_RAW);66 TGRadioButton *but2 = new TGRadioButton(group, "Cleaned Events", M_RBUT_CLEAN);67 TGCheckButton *but3 = new TGCheckButton(fTab1, "Display Ellipse", M_CBUT_HILLAS);65 TGRadioButton *but1 = new TGRadioButton(group, "Raw Events", kRButRawEvt); 66 TGRadioButton *but2 = new TGRadioButton(group, "Cleaned Events", kRButCleanedEvt); 67 TGCheckButton *but3 = new TGCheckButton(fTab1, "Display Ellipse", kCButHillas); 68 68 69 69 but2->SetState(kButtonDown); … … 73 73 fDisplayHillas = kTRUE; 74 74 75 /* FXIME: 76 fList->Add(but1); 77 fList->Add(but2); 78 */ 75 /* 76 WARNING: 77 Bacause of some strage and hidden dependencies the 78 GetMaiFrame call in the destructor of TGButton may fail if some 79 of the other gui elemts is deleted first. 80 AddFirst adds the buttons at the beginning of the deletion list, 81 this seems to work. 82 */ 83 fList->AddFirst(but1); 84 fList->AddFirst(but2); 79 85 80 86 but1->Associate(this); … … 223 229 switch (parm1) 224 230 { 225 case M_CBUT_HILLAS:231 case kCButHillas: 226 232 fDisplayHillas = !fDisplayHillas; 227 233 UpdateDisplay(); … … 233 239 switch (parm1) 234 240 { 235 case M_RBUT_RAW:241 case kRButRawEvt: 236 242 fDisplayRaw = kTRUE; 237 243 UpdateDisplay(); 238 244 return kTRUE; 239 245 240 case M_RBUT_CLEAN:246 case kRButCleanedEvt: 241 247 fDisplayRaw = kFALSE; 242 248 UpdateDisplay();
Note:
See TracChangeset
for help on using the changeset viewer.