#ifndef __V8_WRAPPERS_H__ # define __V8_WRAPPERS_H__ #include "V8Templates.h" #include "SkinOptions.h" class V8Wrappers : public V8Templates { public: virtual v8::Handle newState(FieldType type); virtual void fillState(v8::Handle obj, FieldState *state); virtual v8::Handle getOptionsTemplate(); virtual v8::Handle newOptions(); virtual void fillOptions(v8::Handle v8Obj, SkinOptions *obj, bool configure); virtual v8::Handle getDialogInfoTemplate(); virtual v8::Handle newDialogInfo(); virtual void fillDialogInfo(v8::Handle v8Obj, DialogInfo *obj, const char *prefix = NULL); private: v8::Persistent optionsTemplate; v8::Persistent dialogInfoTemplate; protected: virtual void addGlobalTemplateFields(v8::Handle &templ); virtual void addSkinOptionTemplateFields(v8::Handle &templ); }; #endif // __V8_WRAPPERS_H__