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

Friends

class PlayerPluginInterface
 

Signals

void sig_playlist_chosen (int)
 
void sig_delete_playlist (int)
 
void sig_save_playlist (int)
 
void sig_save_playlist (QString)
 
void sig_save_playlist_file (QString, bool)
 
void sig_closed ()
 
void sig_clear_playlist ()
 
void sig_files_selected (const QStringList &)
 
void sig_action_triggered (PlayerPluginInterface *plugin, bool checked)
 signal is emitted when the plugin action is triggered
also emitted for when closeEvent is fired More...
 
void sig_reload (PlayerPluginInterface *)
 emitted when reloading is requested, after firing this signal the plugin will be painted new. Useful, if the size has changed
 

Public Member Functions

 GUI_PlaylistChooser (QWidget *parent=nullptr)
 
QString get_name () const override
 must be overwritten More...
 
QString get_display_name () const override
 must be overwritten More...
 
QLabel * get_title_label () const override
 must be overwritten More...
 
QPushButton * get_close_button () const override
 must be overwritten More...
 
virtual QSize get_size () const final
 needed by the player ui, final More...
 
virtual QAction * get_action () const final
 needed by the player ui, final More...
 
virtual bool is_closed () const final
 needed by the player ui, final More...
 
virtual void show ()
 show Plugin
 
QString get_shortcut_text (const QString &shortcut_identifier) const override
 get translated text of shortcut (overridden) More...
 
SayonaraDialogbox_into_dialog ()
 
bool is_dark () const
 Returns, if the current skin is dark. More...
 

Public Slots

void all_playlists_fetched (const CustomPlaylistSkeletons &)
 

Protected Member Functions

void closeEvent (QCloseEvent *e) override
 Event fired when closed overrides QWidget::closeEvent. More...
 
bool is_ui_initialized () const
 Check if ui already was initialized. More...
 
void set_ui_initialized ()
 mark ui as initialized
 
void change_exit_icon (QPushButton *close_button)
 
template<typename T >
void setup_parent (T *widget)
 
QString elide_text (const QString &text, QWidget *widget, int max_lines)
 

Protected Slots

virtual void skin_changed ()
 
virtual void playstate_changed (PlayManager::PlayState state)
 Playstate has changed, this does nothing in default implementation. More...
 
virtual void played ()
 Playstate has changed to playing.
 
virtual void paused ()
 Playstate has changed to paused.
 
virtual void stopped ()
 Playstate has changed to stop.
 

Protected Attributes

PlayManager_play_manager =nullptr
 _play_manager Notifies about playstate
 
QAction * _pp_action =nullptr
 _pp_action already allocated, displays name of the plugin by calling get_name()
 
SayonaraDialog_boxed_dialog =nullptr
 
Settings_settings =nullptr
 

Private Member Functions

void setupUi (PlayerPluginInterface *GUI_PlaylistChooser)
 
void retranslateUi (PlayerPluginInterface *GUI_PlaylistChooser)
 

Private Attributes

QGridLayout * gridLayout
 
QTabWidget * tabWidget
 
QWidget * tab
 
QGridLayout * gridLayout_3
 
QComboBox * combo_playlistchooser
 
MenuToolButtonbtn_tool_pl
 
QWidget * tab_2
 
QGridLayout * gridLayout_2
 
QLineEdit * le_playlist_file
 
MenuToolButtonbtn_tool_file
 
QHBoxLayout * horizontalLayout
 
QLabel * lab_title
 
QPushButton * btn_close
 
QFrame * line
 
QFrame * line_2
 

Member Function Documentation

void PlayerPluginInterface::closeEvent ( QCloseEvent *  e)
overrideprotectedinherited

Event fired when closed overrides QWidget::closeEvent.

Parameters
ethe event
virtual QAction* PlayerPluginInterface::get_action ( ) const
finalvirtualinherited

needed by the player ui, final

Returns
action of plugin
QPushButton* GUI_PlaylistChooser::get_close_button ( ) const
overridevirtual

must be overwritten

Returns
get close button. May be nullptr

Implements PlayerPluginInterface.

QString GUI_PlaylistChooser::get_display_name ( ) const
overridevirtual

must be overwritten

Returns
the translated name of the plugin

Implements PlayerPluginInterface.

QString GUI_PlaylistChooser::get_name ( ) const
overridevirtual

must be overwritten

Returns
the NOT translated name of the plugin

Implements PlayerPluginInterface.

QString PlayerPluginInterface::get_shortcut_text ( const QString &  shortcut_identifier) const
overridevirtualinherited

get translated text of shortcut (overridden)

Parameters
shortcut_identifiershortcut id
Returns
translated shortcut text

Implements ShortcutWidget.

virtual QSize PlayerPluginInterface::get_size ( ) const
finalvirtualinherited

needed by the player ui, final

Returns
miminum size of plugin
QLabel* GUI_PlaylistChooser::get_title_label ( ) const
overridevirtual

must be overwritten

Returns
get label where the title is located. May be nullptr

Implements PlayerPluginInterface.

virtual bool PlayerPluginInterface::is_closed ( ) const
finalvirtualinherited

needed by the player ui, final

Returns
visibility of plugin
bool SayonaraWidgetTemplate< QWidget >::is_dark ( ) const
inlineinherited

Returns, if the current skin is dark.

Returns
true, if dark. false else
bool PlayerPluginInterface::is_ui_initialized ( ) const
protectedinherited

Check if ui already was initialized.

Returns
virtual void PlayerPluginInterface::playstate_changed ( PlayManager::PlayState  state)
protectedvirtualslotinherited

Playstate has changed, this does nothing in default implementation.

Parameters
thenew State
void PlayerPluginInterface::sig_action_triggered ( PlayerPluginInterface plugin,
bool  checked 
)
signalinherited

signal is emitted when the plugin action is triggered
also emitted for when closeEvent is fired

Parameters
pluginthis pointer to current plugin
checkedindicates whether checked or unchecked
Inheritance diagram for GUI_PlaylistChooser:
PlayerPluginInterface Ui::GUI_PlaylistChooser SayonaraWidget ShortcutWidget SayonaraWidgetTemplate< QWidget > SayonaraClass