cola.settings – Settings manager

This handles saving complex settings such as bookmarks, etc.

class cola.settings.SettingsManager

Manages a SettingsModel singleton

static get_gui_state(gui)
Returns the state for a gui
static save_gui_state(gui)
Saves settings for a cola view
static settings()
Returns the SettingsModel singleton
class cola.settings.SettingsModel
add_bookmark(bookmark)
Adds a bookmark to the saved settings
get_gui_state(name)
Returns the state an gui
load()
Loads settings if they exist
path()
Path to the model’s on-disk representation
remove_bookmark(bookmark)
Removes a bookmark from the saved settings
save()
Saves settings to the .cola file
set_gui_state(name, state)
Sets GUI state for a view

Previous topic

cola.resources – Resources

Next topic

cola.utils – Miscellaneous helpers

This Page