#include <settings.hpp>
The Settings object acts as a collection of user-provided values.
mc::Settings::~Settings |
( |
| ) |
|
void mc::Settings::bind |
( |
std::string |
s, |
|
|
Interface * |
i |
|
) |
| |
Map an input to a setting value.
- Parameters
-
s | The setting to update. |
i | The interface to watch. |
Settings * mc::Settings::get_instance |
( |
| ) |
|
|
static |
Get the singleton instance of settings
void mc::Settings::load |
( |
std::string |
p | ) |
|
Load the values from the database into the ui and settings.
void mc::Settings::notify |
( |
Event * |
e | ) |
|
|
virtual |
The method that will receive notifications from the broadcaster.
- Parameters
-
Implements mc::Subscriber.
void mc::Settings::save |
( |
| ) |
|
Save the values from the ui into the database.
void mc::Settings::set_builder |
( |
Glib::RefPtr< Gtk::Builder > |
b | ) |
|
Set the builder object so that Settings can load widgets from the ui.
- Parameters
-
void mc::Settings::set_submit |
( |
std::string |
s | ) |
|
Link the given Gtk::Button element id to the save method.
- Parameters
-
s | The id of the Gtk::Button to use. |
The documentation for this class was generated from the following files: