Ignore:
Timestamp:
05/09/09 13:48:12 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/gui
Files:
3 edited

Legend:

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

    r9132 r9439  
    318318}
    319319
    320 void MGCosy::CreatePredefinedPos(TGCompositeFrame *tf1)
     320void MGCosy::CreatePredefinedPos(TGCompositeFrame *tf1, const char *prepos)
    321321{
    322322    TGComboBox *box = new TGComboBox(tf1, kCB_PredefPos);
     
    331331    fList->Add(lay);
    332332
    333     ifstream fin("prepos.txt");
     333    ifstream fin(prepos);
    334334    if (!fin)
    335335    {
    336         gLog << err << "ERROR: Predifined positions in 'prepos.txt' not found." << endl;
     336        gLog << err << "ERROR: Predifined positions in '" << prepos << "' not found." << endl;
    337337        return;
    338338    }
     
    391391}
    392392
    393 void MGCosy::CreateTabs()
     393void MGCosy::CreateTabs(const char *prepos)
    394394{
    395395    TGCompositeFrame *tf1 = fTab->AddTab("Position");
     
    408408    fList->Add(fCZdAz);
    409409
    410     CreatePredefinedPos(tf1);
     410    CreatePredefinedPos(tf1, prepos);
    411411    CreateStarList(tf4);
    412412
     
    728728}
    729729
    730 MGCosy::MGCosy(MObservatory::LocationName_t key, MsgQueue *q)
     730MGCosy::MGCosy(MObservatory::LocationName_t key, const char *prepos, MsgQueue *q)
    731731    : TGMainFrame(gClient->GetRoot(), 1, 1), fObservatory(key), fQueue(q)
    732732{
     
    755755
    756756    fAccuracy = new MGAccuracy(f1, 300);
    757     fAccuracy->DrawText("0.5se", "1.0se", "2.0se", "Ctrl Deviation [min]");
     757    fAccuracy->SetColorScale(1);
     758    fAccuracy->DrawText("1.0'", "2.0'", "3.0'", "Ctrl Deviation [min]");
     759    //fAccuracy->DrawText("0.5se", "1.0se", "2.0se", "");
    758760    fAccuracy->DrawCircles();
    759761
     
    815817    AddFrame(f2, hints2);
    816818
    817     CreateTabs();
     819    CreateTabs(prepos);
    818820    CreateLabel(frame);
    819821
  • trunk/MagicSoft/Cosy/gui/MGCosy.h

    r9132 r9439  
    114114    void CreateMenu();
    115115    void CreateLabel(TGCompositeFrame *f);
    116     void CreateTabs();
    117     void CreatePredefinedPos(TGCompositeFrame *tf1);
     116    void CreateTabs(const char *prepos);
     117    void CreatePredefinedPos(TGCompositeFrame *tf1, const char *prepos);
    118118    void CreateStarList(TGCompositeFrame *tf1);
    119119
     
    133133
    134134public:
    135     MGCosy(MObservatory::LocationName_t key, MsgQueue *q);
     135    MGCosy(MObservatory::LocationName_t key, const char *prepos, MsgQueue *q);
    136136    ~MGCosy();
    137137
  • trunk/MagicSoft/Cosy/gui/MGStarg.cc

    r7790 r9439  
    2323: MGAccuracy(p, w)
    2424{
    25     SetColorScale(1.5);
     25    SetColorScale(1);
     26    DrawText("1.0'", "2.0'", "3.0'", "Mispointing [min]");
     27    DrawHexagon();
    2628}
Note: See TracChangeset for help on using the changeset viewer.