Sayonara Player
Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
GUI_SpectrogramPainter Class Reference
Inheritance diagram for GUI_SpectrogramPainter:
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 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

 GUI_SpectrogramPainter (QWidget *parent=nullptr)
 
QString name () const override
 must be overwritten More...
 
QString displayName () const override
 must be overwritten More...
 
bool isUiInitialized () const override
 Check if ui already was initialized. More...
 
virtual QAction * pluginAction () const final
 needed by the player ui, final More...
 
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 More...
 
Dialog * boxIntoDialog ()
 

Protected Member Functions

void retranslate () override
 
void initUi () override
 GUI will be initialized on first show up. Please use this to make Sayonara starting fast.
 
void paintEvent (QPaintEvent *e) override
 
void mousePressEvent (QMouseEvent *e) override
 
void mouseMoveEvent (QMouseEvent *e) override
 
void showEvent (QShowEvent *e) override
 
void closeEvent (QCloseEvent *e) override
 
virtual void finalizeInitialization ()
 
virtual void assignUiVariables ()
 
virtual void skinChanged () override
 
template<typename T , typename UiClass >
void setupParent (T *widget, UiClass **ui)
 

Protected Attributes

Dialog * mBoxedDialog =nullptr
 

Member Function Documentation

◆ displayName()

QString GUI_SpectrogramPainter::displayName ( ) const
overridevirtual

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.

◆ isUiInitialized()

bool GUI_SpectrogramPainter::isUiInitialized ( ) const
overridevirtual

Check if ui already was initialized.

Returns

Reimplemented from PlayerPlugin::Base.

◆ name()

QString GUI_SpectrogramPainter::name ( ) const
overridevirtual

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

◆ 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