|
| GUI_PlayerPreferences (QWidget *parent=0) |
|
QString | get_action_name () const override |
| has to be implemented and should return the translated action text More...
|
|
void | commit () override |
| This method is called, when OK or apply is pressed. So all settings should be written there.
|
|
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.
|
|
virtual bool | is_ui_initialized () const final |
| checks if ui has already been initialized. More...
|
|
virtual QAction * | get_action () final |
| get action with translated text More...
|
|
SayonaraDialog * | box_into_dialog () |
|
bool | is_dark () const |
| Returns, if the current skin is dark. More...
|
|
|
void | init_ui () |
| 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
|
|
void | language_changed () |
|
void | setup_parent (W *widget) |
| 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...
|
|
void | translate_action () |
| Sets the new translated action name.
|
|
void | showEvent (QShowEvent *e) override |
| shows the widget and automatically calls init_ui() More...
|
|
void | closeEvent (QCloseEvent *e) override |
| closes the widget More...
|
|
QString | elide_text (const QString &text, QWidget *widget, int max_lines) |
|