1
0

wndmgrapi.h 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #ifndef __APIWNDMGR_H
  2. #define __APIWNDMGR_H
  3. #include <api/wndmgr/api_wndmgr.h>
  4. #include <bfc/stack.h>
  5. #include <bfc/string/StringW.h>
  6. class WndMgrApi : public wndmgr_apiI {
  7. public:
  8. WndMgrApi();
  9. virtual ~WndMgrApi();
  10. virtual void wndTrackAdd(ifc_window *wnd);
  11. virtual void wndTrackRemove(ifc_window *wnd);
  12. virtual bool wndTrackDock(ifc_window *wnd, RECT *r, int mask);
  13. virtual bool wndTrackDock2(ifc_window *wnd, RECT *r, RECT *orig_r, int mask);
  14. virtual void wndTrackStartCooperative(ifc_window *wnd);
  15. virtual void wndTrackEndCooperative();
  16. virtual int wndTrackWasCooperative();
  17. virtual void wndTrackInvalidateAll();
  18. virtual int skinwnd_toggleByGuid(GUID g, const wchar_t *prefered_container = NULL, int container_flag = 0, RECT *sourceanimrect = NULL, int transcient = 0);
  19. virtual int skinwnd_toggleByGroupId(const wchar_t *groupid, const wchar_t *prefered_container = NULL, int container_flag = 0, RECT *sourceanimrect = NULL, int transcient = 0);
  20. virtual ifc_window *skinwnd_createByGuid(GUID g, const wchar_t *prefered_container = NULL, int container_flag = 0, RECT *sourceanimrect = NULL, int transcient = 0, int starthidden = 0, int *isnew=NULL);
  21. virtual ifc_window *skinwnd_createByGroupId(const wchar_t *groupid, const wchar_t *prefered_container = NULL, int container_flag = 0, RECT *sourceanimrect = NULL, int transcient = 0, int starthidden = 0, int *isnew=NULL);
  22. virtual void skinwnd_destroy(ifc_window *w, RECT *destanimrect = NULL);
  23. virtual int skinwnd_getNumByGuid(GUID g);
  24. virtual ifc_window *skinwnd_enumByGuid(GUID g, int n);
  25. virtual int skinwnd_getNumByGroupId(const wchar_t *groupid);
  26. virtual ifc_window *skinwnd_enumByGroupId(const wchar_t *groupid, int n);
  27. virtual void skinwnd_attachToSkin(ifc_window *w, int side, int size);
  28. virtual ScriptObject *skin_getContainer(const wchar_t *container_name);
  29. virtual ScriptObject *skin_getLayout(ScriptObject *container, const wchar_t *layout_name);
  30. virtual void wndholder_register(WindowHolder *wh);
  31. virtual void wndholder_unregister(WindowHolder *wh);
  32. virtual int messageBox(const wchar_t *txt, const wchar_t *title, int flags, const wchar_t *not_anymore_identifier, ifc_window *parenwnt);
  33. virtual ifc_window *getModalWnd();
  34. virtual void pushModalWnd(ifc_window *w = MODALWND_NOWND);
  35. virtual void popModalWnd(ifc_window *w = MODALWND_NOWND);
  36. virtual void drawAnimatedRects(const RECT *r1, const RECT *r2);
  37. virtual int autopopup_registerGuid(GUID g, const wchar_t *desc, const wchar_t *prefered_container = NULL, int container_flag = 0);
  38. virtual int autopopup_registerGroupId(const wchar_t *groupid, const wchar_t *desc, const wchar_t *prefered_container = NULL, int container_flag = 0);
  39. virtual void autopopup_unregister(int id);
  40. virtual int autopopup_getNumGuids();
  41. virtual GUID autopopup_enumGuid(int n);
  42. virtual int autopopup_getNumGroups();
  43. virtual const wchar_t *autopopup_enumGroup(int n);
  44. virtual const wchar_t *varmgr_translate(const wchar_t *str);
  45. virtual Container *newDynamicContainer(const wchar_t *name, int transcient);
  46. virtual const wchar_t *autopopup_enumGuidDescription(int n);
  47. virtual const wchar_t *autopopup_enumGroupDescription(int n);
  48. private:
  49. static Stack<ifc_window*> modal_wnd_stack;
  50. StringW ret;
  51. };
  52. #endif // __APIWNDMGR_H