Changeset 921 for trunk/MagicSoft/Cosy/gui/MGCoordinate.cc
- Timestamp:
- 08/30/01 16:02:20 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/gui/MGCoordinate.cc
r918 r921 23 23 }; 24 24 25 MGCoordinate::MGCoordinate(const TGWindow* p, 25 MGCoordinate::MGCoordinate(const TGWindow* p, const Int_t type=kETypeDeg, 26 26 const Bool_t flag, const char *txt, 27 27 const Int_t deg, const UInt_t min, const UInt_t sec) 28 : TGFrame(p, 11 4, flag?76:46, kSunkenFrame|kFixedSize), fDeg(deg), fMin(min), fSec(sec)28 : TGFrame(p, 119, flag?76:46, kSunkenFrame|kFixedSize), fDeg(deg), fMin(min), fSec(sec) 29 29 { 30 30 // p = pointer to MainFrame (not owner) … … 37 37 // fTextEntryMin->SetAlignment(kTextCenterX); 38 38 // fTextEntrySec->SetAlignment(kTextCenterX); 39 fTextEntryDeg->Move( 4, 26);40 fTextEntryMin->Move(4 4, 26);41 fTextEntrySec->Move( 78, 26);39 fTextEntryDeg->Move( 7, 26); 40 fTextEntryMin->Move(47, 26); 41 fTextEntrySec->Move(81, 26); 42 42 fTextEntryDeg->MapWindow(); 43 43 fTextEntryMin->MapWindow(); … … 60 60 fLabelMin->SetTextJustify(kTextRight); 61 61 fLabelSec->SetTextJustify(kTextRight); 62 fLabelDeg->Move( 4+6, ypos);63 fLabelMin->Move( 44+6, ypos);64 fLabelSec->Move( 78+6, ypos);62 fLabelDeg->Move(13, ypos); 63 fLabelMin->Move(53, ypos); 64 fLabelSec->Move(87, ypos); 65 65 fLabelDeg->MapWindow(); 66 66 fLabelMin->MapWindow(); … … 82 82 TGLabel *label; 83 83 84 const char *deg = type==kETypeDeg ? "\xb0" : "h"; 85 const char *min = type==kETypeDeg ? "'" : "m"; 86 const char *sec = type==kETypeDeg ? "\"" : "s"; 87 84 88 if (flag) 85 89 { 86 label = new TGLabel(this, "\xb0");90 label = new TGLabel(this, deg); 87 91 label->SetTextJustify(kTextLeft); 88 label->Move(3 6, 26);92 label->Move(39, 26); 89 93 label->MapWindow(); 90 94 fList.Add(label); 91 95 92 label = new TGLabel(this, "'");96 label = new TGLabel(this, min); 93 97 label->SetTextJustify(kTextLeft); 94 label->Move(7 0, 26);98 label->Move(73, 26); 95 99 label->MapWindow(); 96 100 fList.Add(label); 97 101 98 label = new TGLabel(this, "\"");102 label = new TGLabel(this, sec); 99 103 label->SetTextJustify(kTextLeft); 100 label->Move(10 4, 26);104 label->Move(107, 26); 101 105 label->MapWindow(); 102 106 fList.Add(label); 103 107 } 104 108 105 label = new TGLabel(this, "\xb0");109 label = new TGLabel(this, deg); 106 110 label->SetTextJustify(kTextLeft); 107 label->Move(3 6, ypos);111 label->Move(39, ypos); 108 112 label->MapWindow(); 109 113 fList.Add(label); 110 114 111 label = new TGLabel(this, "'");115 label = new TGLabel(this, min); 112 116 label->SetTextJustify(kTextLeft); 113 label->Move(7 0, ypos);117 label->Move(73, ypos); 114 118 label->MapWindow(); 115 119 fList.Add(label); 116 120 117 label = new TGLabel(this, "\"");121 label = new TGLabel(this, sec); 118 122 label->SetTextJustify(kTextLeft); 119 label->Move(10 4, ypos);123 label->Move(107, ypos); 120 124 label->MapWindow(); 121 125 fList.Add(label);
Note:
See TracChangeset
for help on using the changeset viewer.