Ignore:
Timestamp:
02/20/08 19:39:13 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/gui/MGCosy.cc

    r8864 r8865  
    5858    kPB_TPOINT,
    5959    kPB_ENDSWITCH,
     60    kPB_ARM,
    6061    kPB_START,
    6162    kPB_DISPLAY1,
     
    529530
    530531#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
    531542    but= new TGTextButton(tf1, "New Position",  kPB_SavePreDef);
    532543    but->MoveResize(165, 197, 80, 25);
     
    554565
    555566    but = new TGTextButton(tf4, "Load", kPB_LoadBending);
    556     but->ResizeMove(151, 185, 50, 25);
     567    but->MoveResize(151, 185, 50, 25);
    557568    but->SetToolTipText("Load bending corrections from file 'bending.txt'");
    558569    but->Associate(this);
     
    10301041
    10311042void 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)
    10331044{
    10341045    // acc [rad]
     
    10581069    SetLabelColor(fAvailSe3,  stat2&0x20);
    10591070
    1060     EnableLabel(fArmed, 1);//stat2&0x40);
     1071    EnableLabel(fArmed, armed);//stat2&0x40);
    10611072
    10621073    if (stat&MDriveCom::kTracking)
     
    15021513                StartTrackPos();
    15031514                return kTRUE;
     1515            case kPB_ARM:
     1516                fQueue->PostMsg(WM_ARM);
     1517                return kTRUE;
    15041518            case kPB_DISPLAY1:
    15051519            case kPB_DISPLAY2:
Note: See TracChangeset for help on using the changeset viewer.