From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/Wasabi/api/skin/widgets/xuicustomobject.h | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Src/Wasabi/api/skin/widgets/xuicustomobject.h (limited to 'Src/Wasabi/api/skin/widgets/xuicustomobject.h') diff --git a/Src/Wasabi/api/skin/widgets/xuicustomobject.h b/Src/Wasabi/api/skin/widgets/xuicustomobject.h new file mode 100644 index 00000000..28f5227e --- /dev/null +++ b/Src/Wasabi/api/skin/widgets/xuicustomobject.h @@ -0,0 +1,40 @@ +#ifndef __CustomObject_H +#define __CustomObject_H + +#include +#include + +#define CUSTOMOBJECT_PARENT GuiObjectWnd + +// ----------------------------------------------------------------------- +class XuiCustomObject : public CUSTOMOBJECT_PARENT, public CustomObjectI { + + public: + + XuiCustomObject(); + virtual ~XuiCustomObject(); + + virtual int setXuiParam(int xuihandle, int xmlattributeid, const wchar_t *xmlattributename, const wchar_t *value); + + void setGroup(const wchar_t *elementname); + virtual void customobject_setRootWnd(ifc_window *w); +protected: + /*static */void CreateXMLParameters(int master_handle); + private: + + enum { + CUSTOMOBJECT_SETGROUP = 0, + }; + static XMLParamPair params[]; + int myxuihandle; + StringW groupid; +}; + + +// ----------------------------------------------------------------------- + +extern const wchar_t CustomObjectXuiObjectStr[]; +extern char CustomObjectXuiSvcName[]; +class CustomObjectXuiSvc : public XuiObjectSvc {}; + +#endif -- cgit