Ignore:
Timestamp:
08/15/01 12:52:38 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/gui
Files:
1 added
2 edited

Legend:

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

    r808 r910  
    1010#include <TGLabel.h>       // TGLabel
    1111#include <TGSplitter.h>    // TGHorizontal3DLine
     12#include <TApplication.h>  // gApplication
    1213
    1314#include "timer.h"         // Timer
     
    1617#include "MGList.h"
    1718#include "MGCoordinates.h"
     19#include "MGSkyPosition.h"
    1820
    1921#include "Slalib.h"
     
    149151
    150152    fCoord = new MGCoordinates(this, kTRUE,
    151                                 "Coordinate 1 [\xb0]:", "Coordinate 2 [\xb0]:");
     153                               "Coordinate 1 [\xb0]:", "Coordinate 2 [\xb0]:");
    152154    fCoord->Move(10, 160);
    153155    fList->Add(fCoord);
    154156
     157    fSkyPosition = new MGSkyPosition(this);
     158    fSkyPosition->Move(320, 40);
     159    fSkyPosition->Resize(200, 200);
     160    fList->Add(fSkyPosition);
     161
    155162    //
    156163    //   Map the window, set up the layout, etc.
    157164    //
    158     SetWMSizeHints(350, 250, 350, 250, 10, 10 ) ;  // set the smallest and biggest size of the Main frame
     165    SetWMSizeHints(550, 250, 550, 250, 10, 10);  // set the smallest and biggest size of the Main frame
    159166
    160167    MapSubwindows();
     
    173180MGCosy::~MGCosy()
    174181{
     182    cout << "Deleting MGCosy." << endl;
     183
    175184    delete fLayMenuBar;
    176185    delete fLayMenuItem;
    177186
    178     fList->Delete();
     187    cout << "Deleting MGCosy::fList" << endl;
     188
    179189    delete fList;
     190
     191    cout << "MGCosy deleted." << endl;
    180192}
    181193// ======================================================================
     
    188200    // window menu item is selected.
    189201
    190     gSystem->ExitLoop();
     202    //gSystem->ExitLoop();
    191203    //  gSystem->DispatchOneEvent(kTRUE);
    192204
    193205    //    TGMainFrame::CloseWindow();
    194     //  gROOT->GetApplication()->Terminate(0);
     206    gApplication->Terminate(0);
    195207}
    196208
     
    270282            {
    271283            case IDM_EXIT:
     284                cout << "Idm_Exit." << endl;
    272285                CloseWindow();
    273286                return kTRUE;
  • trunk/MagicSoft/Cosy/gui/MGCosy.h

    r740 r910  
    2626class MGList;
    2727class MGCoordinates;
     28class MGSkyPosition;
    2829
    2930class MGCosy : public TGMainFrame
     
    4445
    4546    MGCoordinates *fCoord;
     47    MGSkyPosition *fSkyPosition;
    4648
    4749    MsgQueue      *fQueue;
     
    6163    TGLabel **GetLabel3() { return fLabel3; }
    6264
     65    MGSkyPosition *GetSkyDisplay() { return fSkyPosition; }
     66
    6367    Bool_t ProcessMessage(Long_t msg, Long_t mp1, Long_t mp2);
    6468};
Note: See TracChangeset for help on using the changeset viewer.