1
0

xuicustomobject.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef __CustomObject_H
  2. #define __CustomObject_H
  3. #include <api/wnd/wndclass/guiobjwnd.h>
  4. #include <api/skin/widgets/customobject.h>
  5. #define CUSTOMOBJECT_PARENT GuiObjectWnd
  6. // -----------------------------------------------------------------------
  7. class XuiCustomObject : public CUSTOMOBJECT_PARENT, public CustomObjectI {
  8. public:
  9. XuiCustomObject();
  10. virtual ~XuiCustomObject();
  11. virtual int setXuiParam(int xuihandle, int xmlattributeid, const wchar_t *xmlattributename, const wchar_t *value);
  12. void setGroup(const wchar_t *elementname);
  13. virtual void customobject_setRootWnd(ifc_window *w);
  14. protected:
  15. /*static */void CreateXMLParameters(int master_handle);
  16. private:
  17. enum {
  18. CUSTOMOBJECT_SETGROUP = 0,
  19. };
  20. static XMLParamPair params[];
  21. int myxuihandle;
  22. StringW groupid;
  23. };
  24. // -----------------------------------------------------------------------
  25. extern const wchar_t CustomObjectXuiObjectStr[];
  26. extern char CustomObjectXuiSvcName[];
  27. class CustomObjectXuiSvc : public XuiObjectSvc<XuiCustomObject, CustomObjectXuiObjectStr, CustomObjectXuiSvcName> {};
  28. #endif