Sayonara Player
Loading...
Searching...
No Matches
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
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 (PlayManager *playManager, QWidget *parent=nullptr)
QString name () const override
 must be overwritten
QString displayName () const override
 must be overwritten
bool isUiInitialized () const override
 Check if ui already was initialized.
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

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 ()
template<typename T, typename UiClass>
void setupParent (T *widget, UiClass **ui)
virtual void skinChanged ()

Protected Attributes

Dialog * mBoxedDialog = nullptr

Member Function Documentation

◆ closeEvent()

void GUI_SpectrogramPainter::closeEvent ( QCloseEvent * e)
overrideprotectedvirtual

Reimplemented from Gui::Widget.

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

◆ hasTitle()

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

indicates if title bar is shown or not

Reimplemented in VisualPlugin.

◆ initUi()

void GUI_SpectrogramPainter::initUi ( )
overrideprotectedvirtual

GUI will be initialized on first show up. Please use this to make Sayonara starting fast.

Implements PlayerPlugin::Base.

◆ 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

◆ retranslate()

void GUI_SpectrogramPainter::retranslate ( )
overrideprotectedvirtual

Implements PlayerPlugin::Base.

◆ showEvent()

void GUI_SpectrogramPainter::showEvent ( QShowEvent * e)
overrideprotectedvirtual

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