Sayonara Player
Loading...
Searching...
No Matches
GuiSmartPlaylists Class Reference
Inheritance diagram for GuiSmartPlaylists:
PlayerPlugin::Base Gui::Widget Gui::WidgetTemplate< QWidget > Gui::WidgetTemplateParent

Signals

void sigActionTriggered (bool checked)
 signal is emitted when the plugin action is triggered
also emitted for when closeEvent is fired
 
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

 GuiSmartPlaylists (SmartPlaylistManager *smartPlaylistManager, Library::InfoAccessor *libraryManager, QWidget *parent=nullptr)
 
QString name () const override
 must be overwritten
 
QString displayName () const override
 must be overwritten
 
virtual QAction * pluginAction () const final
 needed by the player ui, final
 
virtual bool hasTitle () const
 indicates if title bar is shown or not
 
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
 
Dialog * boxIntoDialog ()
 

Protected Member Functions

virtual void finalizeInitialization ()
 
virtual bool isUiInitialized () const
 Check if ui already was initialized.
 
virtual void assignUiVariables ()
 
template<typename T , typename UiClass >
void setupParent (T *widget, UiClass **ui)
 
void closeEvent (QCloseEvent *e) override
 
void showEvent (QShowEvent *e) override
 
virtual void skinChanged ()
 

Protected Attributes

Dialog * mBoxedDialog = nullptr
 

Member Function Documentation

◆ closeEvent()

void PlayerPlugin::Base::closeEvent ( QCloseEvent * e)
overrideprotectedvirtualinherited

Reimplemented from Gui::Widget.

◆ displayName()

QString GuiSmartPlaylists::displayName ( ) const
nodiscardoverridevirtual

must be overwritten

Returns
the translated name of the plugin

Implements PlayerPlugin::Base.

◆ 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.

◆ hasTitle()

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

indicates if title bar is shown or not

Reimplemented in VisualPlugin.

◆ isUiInitialized()

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

Check if ui already was initialized.

Returns

Reimplemented in GUI_SpectrogramPainter.

◆ name()

QString GuiSmartPlaylists::name ( ) const
nodiscardoverridevirtual

must be overwritten

Returns
the NOT translated name of the plugin

Implements PlayerPlugin::Base.

◆ pluginAction()

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

needed by the player ui, final

Returns
action of plugin

◆ showEvent()

void PlayerPlugin::Base::showEvent ( QShowEvent * e)
overrideprotectedvirtualinherited

Reimplemented from Gui::Widget.

◆ 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