00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef __TOOL_TAB_BAR_H
00012 #define __TOOL_TAB_BAR_H
00013
00014 class GToolTab : public GToolButton
00015 {
00016 friend class GToolTabBar;
00017 List<GView> Attached;
00018
00019 public:
00020 GToolTab();
00021 ~GToolTab();
00022
00023 void OnPaint(GSurface *pDC);
00024 virtual bool AttachControls(class GToolTabBar *Parent) { return false; }
00025 };
00026
00027 class GToolTabBar : public GToolBar
00028 {
00029 friend class GToolTab;
00030
00031 GRect Client;
00032 GRect Tab;
00033 GToolTab *Current;
00034 bool FitToArea;
00035 bool Border;
00036
00037 void _PaintTab(GSurface *pDC, GToolTab *Tab);
00038
00039 public:
00040 GToolTabBar();
00041 ~GToolTabBar();
00042
00043 bool IsFitToArea() { return FitToArea; }
00044 void IsFitToArea(bool b) { FitToArea = b; }
00045 bool HasBorder() { return Border; }
00046 void HasBorder(bool b) { Border = b; }
00047
00048 bool Pour(GRegion &r);
00049
00050 void OnButtonClick(GToolButton *Btn);
00051 void OnChange(GToolButton *Btn);
00052 void OnPaint(GSurface *pDC);
00053 int OnNotify(GViewI *Ctrl, int Flags);
00054 void OnCreate();
00055 };
00056
00057 #endif