23 #ifndef __TOOLS_CONFIG_EDITOR_CONFIG_EDITOR_PLUGIN_H_
24 #define __TOOLS_CONFIG_EDITOR_CONFIG_EDITOR_PLUGIN_H_
49 virtual void post_run(
int response ) =0;
virtual void pre_run()=0
Config editor plugins need to implement this function.
ConfigEditorPlugin(std::string config_path, std::string ui_file)
Constructor.
virtual void post_run(int response)=0
This method is called after the dialog is closed.
fawkes::Configuration * m_config
The fawkes::Configuration.
Glib::RefPtr< Gtk::Builder > m_builder
Gtk Builder created from the UI file of the plugin.
void set_config(fawkes::Configuration *config)
Set the configuration for the plugin to work on.
std::string m_config_path
The config prefix the plugin is attached to.
void initialize()
Initialize the plugin.
void run()
Run the plugin.
virtual Gtk::Dialog * load_dialog()=0
In this function the (custom) dialog of the plugin needs to be initialized.
std::string get_config_path() const
Get the config prefix specified for this config editor plugin.
Gtk::Dialog * m_dialog
The (main-) dialog of the plugin.
Base class for plugins for the Fawkes config editor.
Interface for configuration handling.
virtual ~ConfigEditorPlugin()
Destructor.