Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

GuiMainWindow.h

Go to the documentation of this file.
00001 
00002 //
00003 // $Id: GuiMainWindow.h,v 1.5 2005/07/21 20:26:36 bv Exp $
00004 //
00005 // GuiMainWindow
00006 //
00007 // Package: MIDAD
00008 //
00009 // A main window.
00010 //
00011 // Contact: bv@bnl.gov
00012 //
00013 // Created on: Tue Nov  6 16:37:20 2001
00014 //
00016 
00017 #ifndef MIDAD_GUIMAINWINDOW_H
00018 #define MIDAD_GUIMAINWINDOW_H
00019 
00020 #include <Midad/Gui/GuiBase.h>
00021 #include <TGFrame.h>
00022 
00023 class GuiMainWindow : public TGMainFrame, public GuiCompositeFrameBase
00024 {
00025 public:
00026 
00027     GuiMainWindow(int width=1, int height=1);
00028     virtual ~GuiMainWindow();
00029 
00030     // Call after filling:
00031     void ShowAll();
00032 
00033     // Set min size of window, <0 use DefaultSize
00034     void SetMinSize(int width=-1, int height=-1);
00035 
00036     // Connect to window manage close window event.  Note, if you
00037     // delete_on_close, you better not have this object on the
00038     // stack....  
00039     void ConnectClose(bool delete_on_close = false);
00040 
00041     // Do *NOT* connect this to a signal of some GUI element contained
00042     // in this main window!!!  Connect SendCloseMessage() instead
00043     void KillMe();
00044 
00045     SigC::Signal0<void> close_window;
00046     
00047 protected:
00048 
00049     virtual void CloseWindow();
00050 
00051 };                              // end of class GuiMainWindow
00052 
00053 #endif  // MIDAD_GUIMAINWINDOW_H

Generated on Mon Nov 23 05:26:56 2009 for loon by  doxygen 1.3.9.1