|
Sayonara Player
|
Signals | |
| void | sigShown () |
| void | sigClosed () |
Public Member Functions | |
| GUI_LibraryPreferences (Library::Manager *libraryManager, const QString &identifier) | |
| bool | commit () override |
| This method is called, when OK or apply is pressed. So all settings should be written there. More... | |
| void | revert () override |
| This method is called, when cancel is clicked. So the gui should be re-initialized when this method is called. This method should also be called in the init_ui() method. More... | |
| QString | actionName () const override |
| has to be implemented and should return the translated action text More... | |
| QString | identifier () const |
| return the unique identifier More... | |
| virtual bool | isUiInitialized () const final |
| checks if ui has already been initialized. More... | |
| virtual QAction * | action () final |
| get action with translated text More... | |
| virtual bool | hasError () const |
| indicates if there was an error on the settings page like an invalid expression or combination of settings More... | |
| Dialog * | boxIntoDialog () |
Protected Member Functions | |
| void | initUi () override |
| call setup_parent(this) here. initialize compoenents and connections here. After calling setup_parent(this), the preference Dialog is ready to use, language_changed() is called automatically More... | |
| void | retranslate () override |
| call the Qt retranslateUi method here More... | |
| void | skinChanged () override |
| void | showEvent (QShowEvent *e) override |
| QString | errorString () const override |
| A closer description of the error. More... | |
| template<typename W , typename UiClass > | |
| void | setupParent (W *widget, UiClass **ui) |
| Sets up the Preference dialog. After this method, the dialog is "ready to use" This method should be the first to be called when calling init_ui() More... | |
| virtual void | languageChanged () override final |
| automatically called when language has changed. When overriding this method. Overriding this method should look like this: void GUI_FontConfig::language_changed() { translate_action(); More... | |
| void | translationAction () |
| Sets the new translated action name. | |
| void | closeEvent (QCloseEvent *e) override |
Protected Attributes | |
| Dialog * | mBoxedDialog =nullptr |
|
finalvirtualinherited |
get action with translated text
|
overridevirtual |
has to be implemented and should return the translated action text
Implements Preferences::Base.
|
overrideprotectedvirtualinherited |
Reimplemented from Gui::Widget.
|
overridevirtual |
This method is called, when OK or apply is pressed. So all settings should be written there.
Implements Preferences::Base.
|
overrideprotectedvirtual |
|
virtualinherited |
indicates if there was an error on the settings page like an invalid expression or combination of settings
Reimplemented in GUI_BroadcastPreferences, and GUI_RemoteControlPreferences.
|
inherited |
return the unique identifier
|
overrideprotectedvirtual |
call setup_parent(this) here.
initialize compoenents and connections here.
After calling setup_parent(this), the preference Dialog is ready to use, language_changed() is called automatically
Implements Preferences::Base.
|
finalvirtualinherited |
checks if ui has already been initialized.
|
finaloverrideprotectedvirtualinherited |
automatically called when language has changed. When overriding this method. Overriding this method should look like this: void GUI_FontConfig::language_changed()
{
translate_action();
if(!is_ui_initialized()){
return;
}
retranslateUi(this);
PreferenceWidgetInterface::language_changed();
}
Reimplemented from Gui::WidgetTemplateParent.
|
overrideprotectedvirtual |
call the Qt retranslateUi method here
Implements Preferences::Base.
|
overridevirtual |
This method is called, when cancel is clicked. So the gui should be re-initialized when this method is called. This method should also be called in the init_ui() method.
Implements Preferences::Base.
|
inlineprotectedinherited |
Sets up the Preference dialog. After this method, the dialog is "ready to use"
This method should be the first to be called when calling init_ui()
| widget | should always be "this" |
|
overrideprotectedvirtual |
Reimplemented from Gui::Widget.
|
overrideprotectedvirtual |
Reimplemented from Gui::WidgetTemplateParent.