h_treeitem.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* This file was generated by Maki Compiler, do not edit manually */
  2. #ifndef __HOOK_TREEITEM_H
  3. #define __HOOK_TREEITEM_H
  4. #include "h_rootobj.h"
  5. #define H_TREEITEM_PARENT H_RootObject
  6. class H_TreeItem : public H_TREEITEM_PARENT {
  7. public:
  8. H_TreeItem(ScriptObject *o);
  9. H_TreeItem();
  10. virtual ~H_TreeItem();
  11. virtual void H_hook(ScriptObject *o);
  12. ScriptObject *getHookedObject();
  13. virtual int eventCallback(ScriptObject *object, int dlfid, scriptVar **params, int nparams);
  14. virtual void hook_onTreeAdd() { }
  15. virtual void hook_onTreeRemove() { }
  16. virtual void hook_onSelect() { }
  17. virtual void hook_onDeselect() { }
  18. virtual void hook_onLeftDoubleClick() { }
  19. virtual void hook_onRightDoubleClick() { }
  20. virtual void hook_onChar(wchar_t key) { }
  21. virtual void hook_onExpand() { }
  22. virtual void hook_onCollapse() { }
  23. virtual void hook_onBeginLabelEdit() { }
  24. virtual void hook_onEndLabelEdit(const wchar_t *newlabel) { }
  25. virtual void hook_onContextMenu(int x, int y) { }
  26. private:
  27. ScriptObject *obj;
  28. int inited;
  29. static int loaded;
  30. static int ontreeadd_id;
  31. static int ontreeremove_id;
  32. static int onselect_id;
  33. static int ondeselect_id;
  34. static int onleftdoubleclick_id;
  35. static int onrightdoubleclick_id;
  36. static int onchar_id;
  37. static int onexpand_id;
  38. static int oncollapse_id;
  39. static int onbeginlabeledit_id;
  40. static int onendlabeledit_id;
  41. static int oncontextmenu_id;
  42. };
  43. #endif