1
0

grouptgbutton.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. #ifndef __GROUPTGBUTTON_H
  2. #define __GROUPTGBUTTON_H
  3. #include <api/skin/widgets/groupclickwnd.h>
  4. #include <api/wnd/wndclass/guiobjwnd.h>
  5. #define GROUPTOGGLEBUTTON_PARENT GuiObjectWnd
  6. #define STATUS_OFF 0
  7. #define STATUS_ON 1
  8. /**
  9. Class
  10. @short
  11. @author Nullsoft
  12. @ver 1.0
  13. @see
  14. */
  15. class GroupToggleButton : public GROUPTOGGLEBUTTON_PARENT {
  16. public:
  17. /**
  18. Method
  19. @see
  20. @ret
  21. @param
  22. */
  23. GroupToggleButton();
  24. /**
  25. Method
  26. @see
  27. @ret
  28. @param
  29. */
  30. virtual ~GroupToggleButton();
  31. /**
  32. Method
  33. @see
  34. @ret
  35. @param
  36. */
  37. virtual int onInit();
  38. /**
  39. Method
  40. @see
  41. @ret
  42. @param
  43. */
  44. virtual int childNotify(ifc_window *child, int msg, intptr_t param1=0, intptr_t param2=0);
  45. virtual void setGroups(const wchar_t *on, const wchar_t *off);
  46. virtual void toggle();
  47. virtual int wantFullClick();
  48. virtual void grouptoggle_onLeftPush();
  49. virtual void grouptoggle_onRightPush();
  50. virtual void setStatus(int s);
  51. virtual int getStatus() { return status; }
  52. virtual int wantAutoToggle() { return 1; }
  53. virtual GroupClickWnd *enumGroups(int n);
  54. virtual int getNumGroups();
  55. private:
  56. void initGroups();
  57. GroupClickWnd on;
  58. GroupClickWnd off;
  59. StringW on_id, off_id;
  60. int status;
  61. };
  62. #endif