1 2 #ifndef _RADIAL_SLIDER_SERVICE_PROVIDER_ 3 #define _RADIAL_SLIDER_SERVICE_PROVIDER_ 4 5 class screen_generator; // forward reference 6 7 class radial_slider_service_provider : public widget_service_provider 8 { 9 public: 10 radial_slider_service_provider(); 11 GetType()12 virtual int GetType() { return GX_TYPE_RADIAL_SLIDER; } GetTypeName(widget_info *)13 virtual CString GetTypeName(widget_info *) { return CString("GX_TYPE_RADIAL_SLIDER"); } GetShortName()14 virtual CString GetShortName() { return CString("radial_slider"); } 15 virtual CString GetVarDeclaration(); GetControlBlockName()16 virtual CString GetControlBlockName() { return CString("GX_RADIAL_SLIDER"); } 17 18 virtual CString DeclarePropertiesStruct(); 19 virtual CString WriteExtendedProperties(screen_generator *gen, CString &scope, widget_info *info); 20 virtual CString GetCreateFromDefFunctionName(); 21 virtual CString GetCreateFromDefFunction(int version); 22 23 virtual widget_info *CreateNewInstance(GX_WIDGET *parent); 24 virtual GX_WIDGET *GenerateFromInfo(GX_WIDGET *parent, widget_info *info); 25 26 virtual void SaveToProject(xml_writer &, studiox_project *project, int display, widget_info *); 27 virtual void ReadFromProject(xml_reader &, studiox_project *project, int display, widget_info *info, ULONG valid_styles); 28 29 virtual void AssignPixelmap(widget_info *info, int index, GX_RESOURCE_ID pixmap_id); 30 virtual void Autosize(widget_info *info); 31 32 void SetRadialSliderInfo(widget_info *info, radial_slider_info *new_info); 33 }; 34 35 #endif 36