Changeset 8865 for trunk/MagicSoft/Cosy/gui/MGCosy.cc
- Timestamp:
- 02/20/08 19:39:13 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/gui/MGCosy.cc
r8864 r8865 58 58 kPB_TPOINT, 59 59 kPB_ENDSWITCH, 60 kPB_ARM, 60 61 kPB_START, 61 62 kPB_DISPLAY1, … … 529 530 530 531 #ifdef EXPERT 532 but = new TGTextButton(tf1, "Arm", kPB_ARM); 533 but->MoveResize(204, 213, 62, 25); 534 but->SetToolTipText("Arm the telescop (allow for movement)."); 535 but->Associate(this); 536 fList->Add(but); 537 538 ULong_t col; 539 gClient->GetColorByName("Magenta", col); 540 but->SetBackgroundColor(col); 541 531 542 but= new TGTextButton(tf1, "New Position", kPB_SavePreDef); 532 543 but->MoveResize(165, 197, 80, 25); … … 554 565 555 566 but = new TGTextButton(tf4, "Load", kPB_LoadBending); 556 but-> ResizeMove(151, 185, 50, 25);567 but->MoveResize(151, 185, 50, 25); 557 568 but->SetToolTipText("Load bending corrections from file 'bending.txt'"); 558 569 but->Associate(this); … … 1030 1041 1031 1042 void MGCosy::Update(ZdAz pos, ZdAz acc, ZdAz vel, /*ZdAz off,*/ RaDec radec, 1032 ZdAz soll, UInt_t stat, UInt_t stat2 )1043 ZdAz soll, UInt_t stat, UInt_t stat2, Bool_t armed) 1033 1044 { 1034 1045 // acc [rad] … … 1058 1069 SetLabelColor(fAvailSe3, stat2&0x20); 1059 1070 1060 EnableLabel(fArmed, 1);//stat2&0x40);1071 EnableLabel(fArmed, armed);//stat2&0x40); 1061 1072 1062 1073 if (stat&MDriveCom::kTracking) … … 1502 1513 StartTrackPos(); 1503 1514 return kTRUE; 1515 case kPB_ARM: 1516 fQueue->PostMsg(WM_ARM); 1517 return kTRUE; 1504 1518 case kPB_DISPLAY1: 1505 1519 case kPB_DISPLAY2:
Note:
See TracChangeset
for help on using the changeset viewer.