1
0

tabsheetbar.h 791 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef __TABSHEETBAR_H
  2. #define __TABSHEETBAR_H
  3. #include <api/wnd/wndclass/guiobjwnd.h>
  4. class GroupTabButton;
  5. #define TABSHEETBAR_PARENT GuiObjectWnd
  6. /**
  7. Class
  8. @short
  9. @author Nullsoft
  10. @ver 1.0
  11. @see
  12. */
  13. class TabSheetBar : public TABSHEETBAR_PARENT
  14. {
  15. public:
  16. TabSheetBar();
  17. virtual ~TabSheetBar();
  18. virtual int onInit();
  19. virtual int onResize();
  20. virtual void addChild(GroupTabButton *child);
  21. virtual int getHeight();
  22. virtual int childNotify(ifc_window *child, int msg, intptr_t param1 = 0, intptr_t param2 = 0);
  23. void setMargin(int m) { margin = m; if (isInited()) onResize(); }
  24. void setSpacing(int s) { spacing = s; if (isInited()) onResize(); }
  25. private:
  26. int maxheightsofar;
  27. PtrList<GroupTabButton> btns;
  28. int margin, spacing;
  29. GuiObjectWnd bottombar;
  30. };
  31. #endif