![]() |
Sayonara Player
|
#include <PlayerPlugin.h>
Interface for PlayerPlugin classes. get_name() and language_changed() must be overwritten.
Friends | |
class | PlayerPluginHandler |
Signals | |
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 | |
void | sig_closed () |
emitted when plugin is closed | |
Public Member Functions | |
PlayerPluginInterface (QWidget *parent=nullptr) | |
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 QString | get_name () const =0 |
must be overwritten More... | |
virtual QString | get_display_name () const =0 |
must be overwritten More... | |
virtual bool | is_title_shown () const |
indicates if title bar is shown or not | |
virtual bool | has_loading_bar () const |
indicates if the widget has a loading bar. If yes, there will be reserved some extra space at the bottom of the widget More... | |
QString | get_shortcut_text (const QString &shortcut_identifier) const override |
get translated text of shortcut (overridden) More... | |
SayonaraDialog * | box_into_dialog () |
Protected Member Functions | |
bool | is_ui_initialized () const |
Check if ui already was initialized. More... | |
template<typename T , typename UiClass > | |
void | setup_parent (T *widget, UiClass **ui) |
void | closeEvent (QCloseEvent *e) override |
Event fired when closed overrides QWidget::closeEvent. More... | |
void | showEvent (QShowEvent *e) override |
Protected Slots | |
virtual void | skin_changed () |
Protected Attributes | |
SayonaraDialog * | _boxed_dialog =nullptr |
Settings * | _settings =nullptr |
|
overrideprotected |
Event fired when closed overrides QWidget::closeEvent.
e | the event |
|
finalvirtual |
needed by the player ui, final
|
pure virtual |
must be overwritten
Implemented in GUI_Equalizer, GUI_PlaylistChooser, GUI_Bookmarks, GUI_Broadcast, GUI_Spectrum, GUI_AudioConverter, GUI_LevelPainter, GUI_Speed, GUI_Podcasts, GUI_Crossfader, and GUI_Stream.
|
pure virtual |
must be overwritten
Implemented in GUI_Equalizer, GUI_PlaylistChooser, GUI_Bookmarks, GUI_Broadcast, GUI_Spectrum, GUI_AudioConverter, GUI_LevelPainter, GUI_Speed, GUI_Podcasts, GUI_Crossfader, and GUI_Stream.
|
overridevirtual |
get translated text of shortcut (overridden)
shortcut_identifier | shortcut id |
Implements ShortcutWidget.
|
finalvirtual |
needed by the player ui, final
|
virtual |
indicates if the widget has a loading bar. If yes, there will be reserved some extra space at the bottom of the widget
Reimplemented in GUI_AbstractStream.
|
protected |
Check if ui already was initialized.
|
signal |
signal is emitted when the plugin action is triggered
also emitted for when closeEvent is fired
plugin | this pointer to current plugin |
checked | indicates whether checked or unchecked |