Index: trunk/MagicSoft/Cosy/gui/MGCosy.cc
===================================================================
--- trunk/MagicSoft/Cosy/gui/MGCosy.cc	(revision 808)
+++ trunk/MagicSoft/Cosy/gui/MGCosy.cc	(revision 910)
@@ -10,4 +10,5 @@
 #include <TGLabel.h>       // TGLabel
 #include <TGSplitter.h>    // TGHorizontal3DLine
+#include <TApplication.h>  // gApplication
 
 #include "timer.h"         // Timer
@@ -16,4 +17,5 @@
 #include "MGList.h"
 #include "MGCoordinates.h"
+#include "MGSkyPosition.h"
 
 #include "Slalib.h"
@@ -149,12 +151,17 @@
 
     fCoord = new MGCoordinates(this, kTRUE,
-                                "Coordinate 1 [\xb0]:", "Coordinate 2 [\xb0]:");
+                               "Coordinate 1 [\xb0]:", "Coordinate 2 [\xb0]:");
     fCoord->Move(10, 160);
     fList->Add(fCoord);
 
+    fSkyPosition = new MGSkyPosition(this);
+    fSkyPosition->Move(320, 40);
+    fSkyPosition->Resize(200, 200);
+    fList->Add(fSkyPosition);
+
     //
     //   Map the window, set up the layout, etc.
     //
-    SetWMSizeHints(350, 250, 350, 250, 10, 10 ) ;  // set the smallest and biggest size of the Main frame
+    SetWMSizeHints(550, 250, 550, 250, 10, 10);  // set the smallest and biggest size of the Main frame
 
     MapSubwindows();
@@ -173,9 +180,14 @@
 MGCosy::~MGCosy()
 {
+    cout << "Deleting MGCosy." << endl;
+
     delete fLayMenuBar;
     delete fLayMenuItem;
 
-    fList->Delete();
+    cout << "Deleting MGCosy::fList" << endl;
+
     delete fList;
+
+    cout << "MGCosy deleted." << endl;
 }
 // ======================================================================
@@ -188,9 +200,9 @@
     // window menu item is selected.
 
-    gSystem->ExitLoop();
+    //gSystem->ExitLoop();
     //  gSystem->DispatchOneEvent(kTRUE);
 
     //    TGMainFrame::CloseWindow();
-    //  gROOT->GetApplication()->Terminate(0);
+    gApplication->Terminate(0);
 }
 
@@ -270,4 +282,5 @@
             {
             case IDM_EXIT:
+                cout << "Idm_Exit." << endl;
                 CloseWindow();
                 return kTRUE;
Index: trunk/MagicSoft/Cosy/gui/MGCosy.h
===================================================================
--- trunk/MagicSoft/Cosy/gui/MGCosy.h	(revision 808)
+++ trunk/MagicSoft/Cosy/gui/MGCosy.h	(revision 910)
@@ -26,4 +26,5 @@
 class MGList;
 class MGCoordinates;
+class MGSkyPosition;
 
 class MGCosy : public TGMainFrame
@@ -44,4 +45,5 @@
 
     MGCoordinates *fCoord;
+    MGSkyPosition *fSkyPosition;
 
     MsgQueue      *fQueue;
@@ -61,4 +63,6 @@
     TGLabel **GetLabel3() { return fLabel3; }
 
+    MGSkyPosition *GetSkyDisplay() { return fSkyPosition; }
+
     Bool_t ProcessMessage(Long_t msg, Long_t mp1, Long_t mp2);
 };
Index: trunk/MagicSoft/Cosy/gui/Makefile
===================================================================
--- trunk/MagicSoft/Cosy/gui/Makefile	(revision 910)
+++ trunk/MagicSoft/Cosy/gui/Makefile	(revision 910)
@@ -0,0 +1,54 @@
+##################################################################
+#
+#   makefile
+# 
+#   for the MARS software
+#
+##################################################################
+# @maintitle
+
+# @code
+
+#
+#  please change all system depend values in the 
+#  config.mk.${OSTYPE} file 
+#
+#
+include ../Makefile.conf.$(OSTYPE)
+include ../Makefile.conf.general
+
+# @endcode 
+
+INCLUDES = -I. -I.. -I../base -I../slalib -I../candrv -I../incl -I../catalog
+
+# @code 
+
+CINT     = Gui
+LIB      = gui.a
+
+#------------------------------------------------------------------------------
+
+.SUFFIXES: .c .cc .cxx .h .hxx .o 
+
+SRCFILES = MGCoordinate.cc \
+	   MGCoordinates.cc \
+	   MGCosy.cc \
+	   MGImage.cc \
+	   MGSkyPosition.cc
+
+SRCS    = $(SRCFILES)
+HEADERS = $(SRCFILES:.cc=.h)
+OBJS    = $(SRCFILES:.cc=.o) 
+
+############################################################
+
+all: $(LIB)
+
+include ../Makefile.rules
+
+clean:	rmlib rmcint rmobjs rmcore
+
+mrproper:	clean rmbak
+
+# @endcode
+
