![]() |
Sayonara Player
|
Friends | |
class | PlayerPluginInterface |
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 | |
Public Member Functions | |
GUI_Spectrum (QWidget *parent=nullptr) | |
virtual QString | get_name () const override |
must be overwritten More... | |
virtual QString | get_display_name () const override |
must be overwritten More... | |
virtual bool | is_title_shown () const override |
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... | |
SayonaraDialog * | box_into_dialog () |
bool | is_dark () const |
Returns, if the current skin is dark. More... | |
Public Slots | |
void | set_spectrum (const QList< float > &) override |
void | sl_update_style () override |
virtual void | update () |
Protected Member Functions | |
void | paintEvent (QPaintEvent *e) override |
void | showEvent (QShowEvent *) override |
void | closeEvent (QCloseEvent *) override |
void | language_changed () override |
language_changed Has to be implemented and is called when language has changed | |
void | init_ui () override |
void | init_buttons (bool small) |
virtual void | resizeEvent (QResizeEvent *e) override |
virtual void | mousePressEvent (QMouseEvent *e) override |
virtual void | enterEvent (QEvent *e) override |
virtual void | leaveEvent (QEvent *e) override |
bool | is_ui_initialized () const |
Check if ui already was initialized. More... | |
void | set_ui_initialized () |
mark ui as initialized | |
template<typename T > | |
void | setup_parent (T *widget) |
QString | elide_text (const QString &text, QWidget *widget, int max_lines) |
Protected Slots | |
void | timed_out () override |
virtual void | config_clicked () |
virtual void | next_clicked () |
virtual void | prev_clicked () |
virtual void | played () override |
virtual void | paused () override |
virtual void | stopped () override |
virtual void | playstate_changed (PlayManager::PlayState state) |
Playstate has changed, this does nothing in default implementation. More... | |
virtual void | skin_changed () |
Protected Attributes | |
QPushButton * | _btn_config =nullptr |
QPushButton * | _btn_prev =nullptr |
QPushButton * | _btn_next =nullptr |
QPushButton * | _btn_close =nullptr |
EngineHandler * | _engine =nullptr |
GUI_StyleSettings * | _ui_style_settings =nullptr |
EngineColorStyleChooser * | _ecsc =nullptr |
ColorStyle | _cur_style |
int | _cur_style_idx |
QTimer * | _timer =nullptr |
int | _timer_stopped |
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 (QWidget *GUI_Spectrum) |
void | retranslateUi (QWidget *GUI_Spectrum) |
Private Attributes | |
QGridLayout * | gridLayout |
QLabel * | lab |
|
finalvirtualinherited |
needed by the player ui, final
|
overridevirtual |
|
overridevirtual |
|
overridevirtualinherited |
get translated text of shortcut (overridden)
shortcut_identifier | shortcut id |
Implements ShortcutWidget.
|
finalvirtualinherited |
needed by the player ui, final
|
finalvirtualinherited |
needed by the player ui, final
|
inlineinherited |
Returns, if the current skin is dark.
|
protectedinherited |
Check if ui already was initialized.
|
protectedvirtualslotinherited |
Playstate has changed, this does nothing in default implementation.
the | new State |
|
signalinherited |
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 |