Changeset 910 for trunk/MagicSoft/Cosy/gui
- Timestamp:
- 08/15/01 12:52:38 (23 years ago)
- Location:
- trunk/MagicSoft/Cosy/gui
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/gui/MGCosy.cc
r808 r910 10 10 #include <TGLabel.h> // TGLabel 11 11 #include <TGSplitter.h> // TGHorizontal3DLine 12 #include <TApplication.h> // gApplication 12 13 13 14 #include "timer.h" // Timer … … 16 17 #include "MGList.h" 17 18 #include "MGCoordinates.h" 19 #include "MGSkyPosition.h" 18 20 19 21 #include "Slalib.h" … … 149 151 150 152 fCoord = new MGCoordinates(this, kTRUE, 151 153 "Coordinate 1 [\xb0]:", "Coordinate 2 [\xb0]:"); 152 154 fCoord->Move(10, 160); 153 155 fList->Add(fCoord); 154 156 157 fSkyPosition = new MGSkyPosition(this); 158 fSkyPosition->Move(320, 40); 159 fSkyPosition->Resize(200, 200); 160 fList->Add(fSkyPosition); 161 155 162 // 156 163 // Map the window, set up the layout, etc. 157 164 // 158 SetWMSizeHints( 350, 250, 350, 250, 10, 10 ); // set the smallest and biggest size of the Main frame165 SetWMSizeHints(550, 250, 550, 250, 10, 10); // set the smallest and biggest size of the Main frame 159 166 160 167 MapSubwindows(); … … 173 180 MGCosy::~MGCosy() 174 181 { 182 cout << "Deleting MGCosy." << endl; 183 175 184 delete fLayMenuBar; 176 185 delete fLayMenuItem; 177 186 178 fList->Delete(); 187 cout << "Deleting MGCosy::fList" << endl; 188 179 189 delete fList; 190 191 cout << "MGCosy deleted." << endl; 180 192 } 181 193 // ====================================================================== … … 188 200 // window menu item is selected. 189 201 190 gSystem->ExitLoop();202 //gSystem->ExitLoop(); 191 203 // gSystem->DispatchOneEvent(kTRUE); 192 204 193 205 // TGMainFrame::CloseWindow(); 194 // gROOT->GetApplication()->Terminate(0);206 gApplication->Terminate(0); 195 207 } 196 208 … … 270 282 { 271 283 case IDM_EXIT: 284 cout << "Idm_Exit." << endl; 272 285 CloseWindow(); 273 286 return kTRUE; -
trunk/MagicSoft/Cosy/gui/MGCosy.h
r740 r910 26 26 class MGList; 27 27 class MGCoordinates; 28 class MGSkyPosition; 28 29 29 30 class MGCosy : public TGMainFrame … … 44 45 45 46 MGCoordinates *fCoord; 47 MGSkyPosition *fSkyPosition; 46 48 47 49 MsgQueue *fQueue; … … 61 63 TGLabel **GetLabel3() { return fLabel3; } 62 64 65 MGSkyPosition *GetSkyDisplay() { return fSkyPosition; } 66 63 67 Bool_t ProcessMessage(Long_t msg, Long_t mp1, Long_t mp2); 64 68 };
Note:
See TracChangeset
for help on using the changeset viewer.