Sayonara Player
Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
VisualPlugin Class Referenceabstract
Inheritance diagram for VisualPlugin:
PlayerPlugin::Base Gui::Widget Gui::WidgetTemplate< QWidget > Gui::WidgetTemplateParent GUI_LevelPainter GUI_Spectrum

Public Slots

virtual void update_style (int new_index)=0
 
virtual void update ()
 
virtual void initUi () override
 

Signals

void sigActionTriggered (bool checked)
 signal is emitted when the plugin action is triggered
also emitted for when closeEvent is fired More...
 
void sigReload (PlayerPlugin::Base *plugin)
 emitted when reloading is requested, after firing this signal the plugin will be painted new. Useful, if the size has changed
 
void sigOpened ()
 
void sigShown ()
 
void sigClosed ()
 

Public Member Functions

 VisualPlugin (QWidget *parent=nullptr)
 
virtual bool hasTitle () const override
 indicates if title bar is shown or not
 
virtual QAction * pluginAction () const final
 needed by the player ui, final More...
 
virtual QString name () const =0
 must be overwritten More...
 
virtual QString displayName () const =0
 must be overwritten More...
 
virtual bool hasLoadingBar () 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...
 
Dialog * boxIntoDialog ()
 

Protected Slots

virtual void config_clicked ()
 
virtual void next_clicked ()
 
virtual void prev_clicked ()
 
virtual void doFadeoutStep ()=0
 
virtual void playstate_changed (PlayState play_state)
 
virtual void played ()
 
virtual void paused ()
 
virtual void stopped ()
 

Protected Member Functions

void init_buttons ()
 
virtual void showEvent (QShowEvent *e) override
 
virtual void closeEvent (QCloseEvent *e) override
 
virtual void resizeEvent (QResizeEvent *e) override
 
virtual void mousePressEvent (QMouseEvent *e) override
 
virtual void enterEvent (QEvent *e) override
 
virtual void leaveEvent (QEvent *e) override
 
virtual QWidget * widget ()=0
 
virtual ColorStyle currentStyle () const =0
 
virtual int currentStyleIndex () const =0
 
virtual bool hasSmallButtons () const =0
 
void stop_fadeout_timer ()
 
virtual void finalizeInitialization ()
 
virtual bool isUiInitialized () const
 Check if ui already was initialized. More...
 
virtual void assignUiVariables ()
 
virtual void skinChanged () override
 
virtual void retranslate ()=0
 
template<typename T , typename UiClass >
void setupParent (T *widget, UiClass **ui)
 

Protected Attributes

VisualColorStyleChooserm_ecsc =nullptr
 
Dialog * mBoxedDialog =nullptr
 

Member Function Documentation

◆ displayName()

virtual QString PlayerPlugin::Base::displayName ( ) const
pure virtualinherited

◆ hasLoadingBar()

virtual bool PlayerPlugin::Base::hasLoadingBar ( ) const
virtualinherited

indicates if the widget has a loading bar. If yes, there will be reserved some extra space at the bottom of the widget

Returns

Reimplemented in Gui::AbstractStationPlugin.

◆ isUiInitialized()

virtual bool PlayerPlugin::Base::isUiInitialized ( ) const
protectedvirtualinherited

Check if ui already was initialized.

Returns

Reimplemented in GUI_SpectrogramPainter.

◆ name()

virtual QString PlayerPlugin::Base::name ( ) const
pure virtualinherited

◆ pluginAction()

virtual QAction* PlayerPlugin::Base::pluginAction ( ) const
finalvirtualinherited

needed by the player ui, final

Returns
action of plugin

◆ sigActionTriggered

void PlayerPlugin::Base::sigActionTriggered ( 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