1
0

titlebox.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. #ifndef __TITLEBOX_H
  2. #define __TITLEBOX_H
  3. #include <api/wnd/wndclass/guiobjwnd.h>
  4. #define TITLEBOX_PARENT GuiObjectWnd
  5. /**
  6. Titlebox
  7. @short
  8. @author Nullsoft
  9. @ver 1.0
  10. @see
  11. */
  12. class TitleBox : public TITLEBOX_PARENT {
  13. public:
  14. /**
  15. Method
  16. @see
  17. @ret
  18. @param
  19. */
  20. TitleBox();
  21. /**
  22. Method
  23. @see
  24. @ret
  25. @param
  26. */
  27. virtual ~TitleBox();
  28. /**
  29. Method
  30. @see
  31. @ret
  32. @param
  33. */
  34. virtual int onInit();
  35. virtual int onResize();
  36. virtual int getCentered() { return centered; }
  37. virtual void setCentered(int _centered);
  38. virtual void setTitle(const wchar_t *t);
  39. virtual const wchar_t *getTitle() { return title; }
  40. virtual void setSuffix(const wchar_t *suffix);
  41. const wchar_t *getSuffix() { return suffix; }
  42. virtual void onNewContent();
  43. virtual void setChildGroup(const wchar_t *grp);
  44. /**
  45. Method
  46. @see
  47. @ret
  48. @param
  49. */
  50. virtual int getPreferences(int what);
  51. private:
  52. /**
  53. Method
  54. @see
  55. @ret
  56. @param
  57. */
  58. void setSubContent(int insertcontent=1);
  59. GuiObjectWnd *titleleft;
  60. GuiObjectWnd *titleright;
  61. GuiObjectWnd *titlecenter;
  62. GuiObjectWnd *content;
  63. int centered;
  64. StringW title;
  65. StringW content_id;
  66. StringW suffix;
  67. };
  68. #endif