Changeset 9439 for trunk/MagicSoft/Cosy/gui
- Timestamp:
- 05/09/09 13:48:12 (16 years ago)
- Location:
- trunk/MagicSoft/Cosy/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/gui/MGCosy.cc
r9132 r9439 318 318 } 319 319 320 void MGCosy::CreatePredefinedPos(TGCompositeFrame *tf1 )320 void MGCosy::CreatePredefinedPos(TGCompositeFrame *tf1, const char *prepos) 321 321 { 322 322 TGComboBox *box = new TGComboBox(tf1, kCB_PredefPos); … … 331 331 fList->Add(lay); 332 332 333 ifstream fin( "prepos.txt");333 ifstream fin(prepos); 334 334 if (!fin) 335 335 { 336 gLog << err << "ERROR: Predifined positions in ' prepos.txt' not found." << endl;336 gLog << err << "ERROR: Predifined positions in '" << prepos << "' not found." << endl; 337 337 return; 338 338 } … … 391 391 } 392 392 393 void MGCosy::CreateTabs( )393 void MGCosy::CreateTabs(const char *prepos) 394 394 { 395 395 TGCompositeFrame *tf1 = fTab->AddTab("Position"); … … 408 408 fList->Add(fCZdAz); 409 409 410 CreatePredefinedPos(tf1 );410 CreatePredefinedPos(tf1, prepos); 411 411 CreateStarList(tf4); 412 412 … … 728 728 } 729 729 730 MGCosy::MGCosy(MObservatory::LocationName_t key, MsgQueue *q)730 MGCosy::MGCosy(MObservatory::LocationName_t key, const char *prepos, MsgQueue *q) 731 731 : TGMainFrame(gClient->GetRoot(), 1, 1), fObservatory(key), fQueue(q) 732 732 { … … 755 755 756 756 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", ""); 758 760 fAccuracy->DrawCircles(); 759 761 … … 815 817 AddFrame(f2, hints2); 816 818 817 CreateTabs( );819 CreateTabs(prepos); 818 820 CreateLabel(frame); 819 821 -
trunk/MagicSoft/Cosy/gui/MGCosy.h
r9132 r9439 114 114 void CreateMenu(); 115 115 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); 118 118 void CreateStarList(TGCompositeFrame *tf1); 119 119 … … 133 133 134 134 public: 135 MGCosy(MObservatory::LocationName_t key, MsgQueue *q);135 MGCosy(MObservatory::LocationName_t key, const char *prepos, MsgQueue *q); 136 136 ~MGCosy(); 137 137 -
trunk/MagicSoft/Cosy/gui/MGStarg.cc
r7790 r9439 23 23 : MGAccuracy(p, w) 24 24 { 25 SetColorScale(1.5); 25 SetColorScale(1); 26 DrawText("1.0'", "2.0'", "3.0'", "Mispointing [min]"); 27 DrawHexagon(); 26 28 }
Note:
See TracChangeset
for help on using the changeset viewer.