24 from .immutable_preset_info_handler
import ImmutablePresetInfoHandler
29 ImmutablePresetInfoHandler.__init__(self, file_name)
32 group = self.
presets_presets_.CreateGroup(ImmutablePresetInfoHandler.PRESET_GROUP_NAME)
37 group_list = self.
presets_presets_.GetGroups(ImmutablePresetInfoHandler.PRESET_GROUP_NAME)
39 for group
in group_list:
40 if group.HasAttribute(ImmutablePresetInfoHandler.NAME_ATTRIBUTE_NAME):
41 groupname = group.GetAttribute(ImmutablePresetInfoHandler.NAME_ATTRIBUTE_NAME)
46 if group_to_del !=
None:
47 self.
presets_presets_.Remove(group_to_del)
51 group_list = self.
presets_presets_.GetGroups(ImmutablePresetInfoHandler.PRESET_GROUP_NAME)
52 for group
in group_list:
53 if group.HasAttribute(ImmutablePresetInfoHandler.NAME_ATTRIBUTE_NAME):
54 groupname = group.GetAttribute(ImmutablePresetInfoHandler.NAME_ATTRIBUTE_NAME)
56 group.SetAttribute(ImmutablePresetInfoHandler.NAME_ATTRIBUTE_NAME, new)
def StorePreset(self, preset)
def __init__(self, file_name)
def RemovePreset(self, name)
def RenamePreset(self, old, new)