xuiaddparams.h 978 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef __ADDPARAMS_H
  2. #define __ADDPARAMS_H
  3. #include <api/skin/objectactuator.h>
  4. #include <bfc/pair.h>
  5. #define ADDPARAMS_PARENT ObjectActuator
  6. extern const wchar_t AddParamsXuiObjectStr[];
  7. extern char AddParamsXuiSvcName[];
  8. // -----------------------------------------------------------------------
  9. // Your wnd object class
  10. class AddParams: public ADDPARAMS_PARENT {
  11. public:
  12. AddParams();
  13. virtual ~AddParams();
  14. virtual int setXmlParam(const wchar_t *param, const wchar_t *value);
  15. virtual void actuator_onPerform(GuiObject *target);
  16. virtual const wchar_t *getActuatorTag() { return AddParamsXuiObjectStr; } // for error msgs purposes
  17. private:
  18. int myxuihandle;
  19. PtrList< Pair<StringW, StringW> > pastlist;
  20. };
  21. // -----------------------------------------------------------------------
  22. // This defines the svc_xuiObject that exposes your wnd object
  23. class AddParamsXuiSvc : public XuiObjectSvc<AddParams, AddParamsXuiObjectStr, AddParamsXuiSvcName> {};
  24. #endif