Changeset 1111 for trunk/MagicSoft/Cosy/gui/MGCoordinate.cc
- Timestamp:
- 12/12/01 13:26:34 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/gui/MGCoordinate.cc
r921 r1111 17 17 #include "slamac.h" 18 18 19 ClassImp(MGCoordinate); 20 19 21 enum { 20 22 IDM_kDeg, … … 28 30 : TGFrame(p, 119, flag?76:46, kSunkenFrame|kFixedSize), fDeg(deg), fMin(min), fSec(sec) 29 31 { 32 fList = new MGList; 33 30 34 // p = pointer to MainFrame (not owner) 31 35 if (flag) … … 43 47 fTextEntryMin->MapWindow(); 44 48 fTextEntrySec->MapWindow(); 45 fList .Add(fTextEntrySec);46 fList .Add(fTextEntryMin);47 fList .Add(fTextEntryDeg);49 fList->Add(fTextEntrySec); 50 fList->Add(fTextEntryMin); 51 fList->Add(fTextEntryDeg); 48 52 49 53 Set(fTextEntryDeg, fDeg); … … 66 70 fLabelMin->MapWindow(); 67 71 fLabelSec->MapWindow(); 68 fList .Add(fLabelSec);69 fList .Add(fLabelDeg);70 fList .Add(fLabelMin);72 fList->Add(fLabelSec); 73 fList->Add(fLabelDeg); 74 fList->Add(fLabelMin); 71 75 72 76 Set(fLabelDeg, fDeg); … … 78 82 fLabel->Move(4, 4); 79 83 fLabel->MapWindow(); 80 fList .Add(fLabel);84 fList->Add(fLabel); 81 85 82 86 TGLabel *label; … … 92 96 label->Move(39, 26); 93 97 label->MapWindow(); 94 fList .Add(label);98 fList->Add(label); 95 99 96 100 label = new TGLabel(this, min); … … 98 102 label->Move(73, 26); 99 103 label->MapWindow(); 100 fList .Add(label);104 fList->Add(label); 101 105 102 106 label = new TGLabel(this, sec); … … 104 108 label->Move(107, 26); 105 109 label->MapWindow(); 106 fList .Add(label);110 fList->Add(label); 107 111 } 108 112 … … 111 115 label->Move(39, ypos); 112 116 label->MapWindow(); 113 fList .Add(label);117 fList->Add(label); 114 118 115 119 label = new TGLabel(this, min); … … 117 121 label->Move(73, ypos); 118 122 label->MapWindow(); 119 fList .Add(label);123 fList->Add(label); 120 124 121 125 label = new TGLabel(this, sec); … … 123 127 label->Move(107, ypos); 124 128 label->MapWindow(); 125 fList .Add(label);129 fList->Add(label); 126 130 127 131 MapWindow(); … … 130 134 MGCoordinate::~MGCoordinate() 131 135 { 132 // cout << "MGCoordinate destroyed." << endl;136 delete fList; 133 137 } 134 138
Note:
See TracChangeset
for help on using the changeset viewer.