Sayonara Player
Friends | Public Member Functions | Protected Member Functions | Protected Slots | Protected Attributes | List of all members
GUI_LibraryPreferences Class Reference

Friends

class PreferenceWidgetInterface
 
class PreferenceInterface< SayonaraWidget >
 

Public Member Functions

 GUI_LibraryPreferences (QWidget *parent=nullptr)
 
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...
 
SayonaraDialogbox_into_dialog ()
 
bool is_dark () const
 Returns, if the current skin is dark. More...
 

Protected Member Functions

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)
 
void setupUi (QWidget *GUI_LibraryPreferences)
 
void retranslateUi (QWidget *GUI_LibraryPreferences)
 

Protected Slots

virtual void skin_changed ()
 

Protected Attributes

SayonaraDialog_boxed_dialog =nullptr
 
Settings_settings =nullptr
 
QGridLayout * gridLayout
 
QTabWidget * tabWidget
 
QWidget * tab_search
 
QGridLayout * gridLayout_4
 
QLabel * label_4
 
QCheckBox * cb_case_insensitive
 
QSpacerItem * verticalSpacer
 
QLabel * label_2
 
QLabel * label_5
 
QCheckBox * cb_no_special_chars
 
QLabel * label_3
 
QCheckBox * cb_no_accents
 
QLabel * label
 
QFrame * line
 
QWidget * tab_playlist_interaction
 
QGridLayout * gridLayout_3
 
QGroupBox * groupBox
 
QVBoxLayout * verticalLayout
 
QRadioButton * rb_dc_do_nothing
 
QRadioButton * rb_dc_play_if_stopped
 
QRadioButton * rb_dc_play_immediately
 
QGroupBox * groupBox_2
 
QGridLayout * gridLayout_2
 
QRadioButton * rb_dd_do_nothing
 
QRadioButton * rb_dd_start_if_stopped_and_empty
 
QSpacerItem * verticalSpacer_2
 

Member Function Documentation

◆ closeEvent()

void PreferenceInterface< SayonaraWidget >::closeEvent ( QCloseEvent *  e)
inlineoverrideprotectedinherited

closes the widget

Parameters
e

◆ get_action()

virtual QAction* PreferenceInterface< SayonaraWidget >::get_action ( )
inlinefinalvirtualinherited

get action with translated text

Returns

◆ is_dark()

bool SayonaraWidgetTemplate< QWidget >::is_dark ( ) const
inlineinherited

Returns, if the current skin is dark.

Returns
true, if dark. false else

◆ is_ui_initialized()

virtual bool PreferenceInterface< SayonaraWidget >::is_ui_initialized ( ) const
inlinefinalvirtualinherited

checks if ui has already been initialized.

Returns
false, if the widget has never been activated before, true else

◆ setup_parent()

void PreferenceInterface< SayonaraWidget >::setup_parent ( W *  widget)
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()

Parameters
widgetshould always be "this"

◆ showEvent()

void PreferenceInterface< SayonaraWidget >::showEvent ( QShowEvent *  e)
inlineoverrideprotectedinherited

shows the widget and automatically calls init_ui()

Parameters
e
Inheritance diagram for GUI_LibraryPreferences:
PreferenceWidgetInterface Ui::GUI_LibraryPreferences PreferenceInterface< SayonaraWidget > Ui_GUI_LibraryPreferences SayonaraWidget SayonaraWidgetTemplate< QWidget > SayonaraClass