00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef __GPANEL_H
00012 #define __GPANEL_H
00013
00014 class LgiClass GPanel : public GLayout
00015 {
00016 protected:
00017 bool IsOpen;
00018 int Align;
00019 int ClosedSize;
00020 int OpenSize;
00021 GRect ThumbPos;
00022
00023 void RePour();
00024 void SetChildrenVisibility(bool i);
00025 virtual int CalcWidth();
00026
00027 public:
00028 GPanel(char *name, int size, bool open = true);
00029 ~GPanel();
00030
00031 bool Open();
00032 virtual void Open(bool i);
00033 int GetClosedSize();
00034 void SetClosedSize(int i);
00035 int GetOpenSize();
00036 void SetOpenSize(int i);
00037 int Alignment();
00038 void Alignment(int i);
00039
00040 bool Attach(GView *Wnd);
00041 bool Pour(GRegion &r);
00042 int OnNotify(GView *Ctrl, int Flags);
00043 void OnPaint(GSurface *pDC);
00044 void OnMouseClick(GMouse &m);
00045 };
00046
00047 #endif