settings.set_value("gradient.id",get_id().c_str());
settings.set_value("gradient.type",strprintf("%d",get_type()));
#ifdef BLEND_METHOD_IN_TOOL_OPTIONS
settings.set_value("gradient.blend",strprintf("%d",get_blend()));
#endif // BLEND_METHOD_IN_TOOL_OPTIONS
settings.set_value("gradient.id",get_id().c_str());
settings.set_value("gradient.type",strprintf("%d",get_type()));
#ifdef BLEND_METHOD_IN_TOOL_OPTIONS
settings.set_value("gradient.blend",strprintf("%d",get_blend()));
#endif // BLEND_METHOD_IN_TOOL_OPTIONS