c_treeitem.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /* This file was generated by Maki Compiler, do not edit manually */
  2. #ifndef __C_TREEITEM_H
  3. #define __C_TREEITEM_H
  4. #include "c_rootobj.h"
  5. #define C_TREEITEM_PARENT C_RootObject
  6. class C_TreeItem : public C_TREEITEM_PARENT {
  7. public:
  8. C_TreeItem(ScriptObject *object);
  9. C_TreeItem();
  10. virtual ~C_TreeItem();
  11. virtual void C_hook(ScriptObject *o);
  12. ScriptObject *getScriptObject();
  13. virtual int getNumChildren();
  14. virtual void setLabel(const wchar_t *label);
  15. virtual const wchar_t *getLabel();
  16. virtual void ensureVisible();
  17. virtual ScriptObject *getNthChild(int nth);
  18. virtual ScriptObject *getChild();
  19. virtual ScriptObject *getChildSibling(ScriptObject *_item);
  20. virtual ScriptObject *getSibling();
  21. virtual ScriptObject *getParent();
  22. virtual void editLabel();
  23. virtual int hasSubItems();
  24. virtual void setSorted(int issorted);
  25. virtual void setChildTab(int haschildtab);
  26. virtual int isSorted();
  27. virtual int isCollapsed();
  28. virtual int isExpanded();
  29. virtual void invalidate();
  30. virtual int isSelected();
  31. virtual int isHilited();
  32. virtual void setHilited(int ishilited);
  33. virtual int collapse();
  34. virtual int expand();
  35. virtual ScriptObject *getTree();
  36. virtual void onTreeAdd();
  37. virtual void onTreeRemove();
  38. virtual void onSelect();
  39. virtual void onDeselect();
  40. virtual int onLeftDoubleClick();
  41. virtual int onRightDoubleClick();
  42. virtual int onChar(int key);
  43. virtual void onExpand();
  44. virtual void onCollapse();
  45. virtual int onBeginLabelEdit();
  46. virtual int onEndLabelEdit(const wchar_t *newlabel);
  47. virtual int onContextMenu(int x, int y);
  48. private:
  49. ScriptObject *obj;
  50. int inited;
  51. static int loaded;
  52. static int getnumchildren_id;
  53. static int setlabel_id;
  54. static int getlabel_id;
  55. static int ensurevisible_id;
  56. static int getnthchild_id;
  57. static int getchild_id;
  58. static int getchildsibling_id;
  59. static int getsibling_id;
  60. static int getparent_id;
  61. static int editlabel_id;
  62. static int hassubitems_id;
  63. static int setsorted_id;
  64. static int setchildtab_id;
  65. static int issorted_id;
  66. static int iscollapsed_id;
  67. static int isexpanded_id;
  68. static int invalidate_id;
  69. static int isselected_id;
  70. static int ishilited_id;
  71. static int sethilited_id;
  72. static int collapse_id;
  73. static int expand_id;
  74. static int gettree_id;
  75. static int ontreeadd_id;
  76. static int ontreeremove_id;
  77. static int onselect_id;
  78. static int ondeselect_id;
  79. static int onleftdoubleclick_id;
  80. static int onrightdoubleclick_id;
  81. static int onchar_id;
  82. static int onexpand_id;
  83. static int oncollapse_id;
  84. static int onbeginlabeledit_id;
  85. static int onendlabeledit_id;
  86. static int oncontextmenu_id;
  87. };
  88. #endif