00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00016
00017 #ifndef MIDAD_GUIBOX_H
00018 #define MIDAD_GUIBOX_H
00019
00020 #include <Midad/Gui/GuiBase.h>
00021 #include <TGFrame.h>
00022
00023 class GuiBox : public TGCompositeFrame, public GuiCompositeFrameBase
00024 {
00025
00026 public:
00027
00028 GuiBox(TGWindow& parent, unsigned int option,int width=1,int height=1)
00029 : TGCompositeFrame(&parent,width,height,option|kChildFrame)
00030 { this->SetLayoutHints(kLHintsExpandX|kLHintsExpandY); }
00031 virtual ~GuiBox() { }
00032
00033 ClassDef(GuiBox,0)
00034 };
00035
00036 class GuiHBox : public GuiBox
00037 {
00038
00039 public:
00040
00041 GuiHBox(TGWindow& parent) : GuiBox(parent,kHorizontalFrame)
00042 { this->SetLayoutHints(kLHintsExpandX); }
00043 virtual ~GuiHBox() { }
00044 };
00045 class GuiVBox : public GuiBox
00046 {
00047
00048 public:
00049
00050 GuiVBox(TGWindow& parent) : GuiBox(parent,kVerticalFrame)
00051 { this->SetLayoutHints(kLHintsExpandY); }
00052 virtual ~GuiVBox() { }
00053 };
00054
00055 #endif // MIDAD_GUIBOX_H