ROOT logo
// @(#)root/gl:$Id$
// Author:  Richard Maunder  10/08/2005

/*************************************************************************
 * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#include "TGLSAFrame.h"
#include "TGLSAViewer.h"

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TGLSAFrame                                                           //
//                                                                      //
// Standalone GL Viewer GUI main frame. Is aggregated in TGLSAViewer -  //
// top level standalone viewer object.                                  //
//////////////////////////////////////////////////////////////////////////

ClassImp(TGLSAFrame)

//______________________________________________________________________________
TGLSAFrame::TGLSAFrame(TGLSAViewer & viewer) :
   TGMainFrame(gClient->GetRoot()),
   fViewer(viewer)
{
   // Construct GUI frame, bound to passed 'viewer'
}

//______________________________________________________________________________
TGLSAFrame::TGLSAFrame(const TGWindow* parent, TGLSAViewer & viewer) :
   TGMainFrame(parent),
   fViewer(viewer)
{
   // Construct GUI frame, bound to passed 'viewer'
}

//______________________________________________________________________________
TGLSAFrame::~TGLSAFrame()
{
   // Destroy the GUI frame
}

//______________________________________________________________________________
Bool_t TGLSAFrame::ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
{
   // Process GUI message - defered back up to TGLSAViewer::ProcessFrameMessage()
   return fViewer.ProcessFrameMessage(msg, parm1, parm2);
}

//______________________________________________________________________________
void TGLSAFrame::CloseWindow()
{
   // Close the GUI frame

   // Ask our owning viewer to close
   // Has to be defered so that our GUI event thread can process this event
   // and emit signals - otherwise deleted object is called to emit events
   // Not very nice but seems to be only reliable way to close down
   TTimer::SingleShot(50, "TGLSAViewer", &fViewer, "Close()");
}
 TGLSAFrame.cxx:1
 TGLSAFrame.cxx:2
 TGLSAFrame.cxx:3
 TGLSAFrame.cxx:4
 TGLSAFrame.cxx:5
 TGLSAFrame.cxx:6
 TGLSAFrame.cxx:7
 TGLSAFrame.cxx:8
 TGLSAFrame.cxx:9
 TGLSAFrame.cxx:10
 TGLSAFrame.cxx:11
 TGLSAFrame.cxx:12
 TGLSAFrame.cxx:13
 TGLSAFrame.cxx:14
 TGLSAFrame.cxx:15
 TGLSAFrame.cxx:16
 TGLSAFrame.cxx:17
 TGLSAFrame.cxx:18
 TGLSAFrame.cxx:19
 TGLSAFrame.cxx:20
 TGLSAFrame.cxx:21
 TGLSAFrame.cxx:22
 TGLSAFrame.cxx:23
 TGLSAFrame.cxx:24
 TGLSAFrame.cxx:25
 TGLSAFrame.cxx:26
 TGLSAFrame.cxx:27
 TGLSAFrame.cxx:28
 TGLSAFrame.cxx:29
 TGLSAFrame.cxx:30
 TGLSAFrame.cxx:31
 TGLSAFrame.cxx:32
 TGLSAFrame.cxx:33
 TGLSAFrame.cxx:34
 TGLSAFrame.cxx:35
 TGLSAFrame.cxx:36
 TGLSAFrame.cxx:37
 TGLSAFrame.cxx:38
 TGLSAFrame.cxx:39
 TGLSAFrame.cxx:40
 TGLSAFrame.cxx:41
 TGLSAFrame.cxx:42
 TGLSAFrame.cxx:43
 TGLSAFrame.cxx:44
 TGLSAFrame.cxx:45
 TGLSAFrame.cxx:46
 TGLSAFrame.cxx:47
 TGLSAFrame.cxx:48
 TGLSAFrame.cxx:49
 TGLSAFrame.cxx:50
 TGLSAFrame.cxx:51
 TGLSAFrame.cxx:52
 TGLSAFrame.cxx:53
 TGLSAFrame.cxx:54
 TGLSAFrame.cxx:55
 TGLSAFrame.cxx:56
 TGLSAFrame.cxx:57
 TGLSAFrame.cxx:58
 TGLSAFrame.cxx:59
 TGLSAFrame.cxx:60
 TGLSAFrame.cxx:61
 TGLSAFrame.cxx:62
 TGLSAFrame.cxx:63
 TGLSAFrame.cxx:64