00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
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
00031 void ShowAll();
00032
00033
00034 void SetMinSize(int width=-1, int height=-1);
00035
00036
00037
00038
00039 void ConnectClose(bool delete_on_close = false);
00040
00041
00042
00043 void KillMe();
00044
00045 SigC::Signal0<void> close_window;
00046
00047 protected:
00048
00049 virtual void CloseWindow();
00050
00051 };
00052
00053 #endif // MIDAD_GUIMAINWINDOW_H