21 #ifndef GUI_LIBRARYPREFERENCES_H 22 #define GUI_LIBRARYPREFERENCES_H 24 #include "Interfaces/PreferenceDialog/PreferenceWidgetInterface.h" 25 #include "GUI/Preferences/ui_GUI_LibraryPreferences.h" 52 #endif // GUI_LIBRARYPREFERENCES_H void commit() override
This method is called, when OK or apply is pressed. So all settings should be written there...
virtual void init_ui()=0
call setup_parent(this) here. initialize compoenents and connections here. After calling setup_parent...
Definition: ui_GUI_LibraryPreferences.h:231
Template class for implementing preference dialogs and preference widgets.
Definition: PreferenceInterface.h:70
virtual QString get_action_name() const =0
has to be implemented and should return the translated action text
Definition: GUI_LibraryPreferences.h:28
void revert() override
This method is called, when cancel is clicked. So the gui should be re-initialized when this method i...
void language_changed() override
automatically called when language has changed. When overriding this method. Overriding this method s...
Definition: PreferenceInterface.h:116