Sayonara Player
Loading...
Searching...
No Matches
Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
GUI_LevelPainter Class Reference
Inheritance diagram for GUI_LevelPainter:
VisualPlugin Engine::LevelDataReceiver 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_LevelPainter (LevelDataProvider *dataProvider, PlayManager *playManager, QWidget *parent=nullptr)
 
QString name () const override
 must be overwritten
 
QString displayName () const override
 must be overwritten
 
bool isActive () const override
 
bool hasTitle () const override
 indicates if title bar is shown or not
 
virtual QAction * pluginAction () const final
 needed by the player ui, final
 
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 Slots

void doFadeoutStep () override
 
void setLevel (float left, float right) override
 

Protected Member Functions

void initUi () override
 GUI will be initialized on first show up. Please use this to make Sayonara starting fast.
 
void retranslate () override
 
QWidget * widget () override
 
bool hasSmallButtons () const override
 
void finalizeInitialization () override
 
ColorStyle extractStyle (const RawColorStyle &rawColorStyle) const override
 
bool applyStyle (const ColorStyle &colorStyle) override
 
int loadStyleIndex () const override
 
void saveStyleIndex (int index) const override
 
void paint () override
 
bool isFadeoutCompleted () const override
 
void notifyDataProvider (bool isActive) override
 
bool isProcessing () const
 
const ColorStylecurrentStyle () const
 
void paintEvent (QPaintEvent *e) override
 
void showEvent (QShowEvent *e) override
 
void closeEvent (QCloseEvent *e) override
 
void resizeEvent (QResizeEvent *e) override
 
void mousePressEvent (QMouseEvent *e) override
 
void enterEvent (QEvent *e) override
 
void leaveEvent (QEvent *e) override
 
virtual bool isUiInitialized () const
 Check if ui already was initialized.
 
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

◆ applyStyle()

bool GUI_LevelPainter::applyStyle ( const ColorStyle & colorStyle)
overrideprotectedvirtual

Implements VisualPlugin.

◆ closeEvent()

void VisualPlugin::closeEvent ( QCloseEvent * e)
overrideprotectedvirtualinherited

Reimplemented from PlayerPlugin::Base.

◆ displayName()

QString GUI_LevelPainter::displayName ( ) const
overridevirtual

must be overwritten

Returns
the translated name of the plugin

Implements PlayerPlugin::Base.

◆ extractStyle()

ColorStyle GUI_LevelPainter::extractStyle ( const RawColorStyle & rawColorStyle) const
overrideprotectedvirtual

Implements VisualPlugin.

◆ finalizeInitialization()

void GUI_LevelPainter::finalizeInitialization ( )
overrideprotectedvirtual

Reimplemented from 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.

◆ hasSmallButtons()

bool GUI_LevelPainter::hasSmallButtons ( ) const
overrideprotectedvirtual

Implements VisualPlugin.

◆ hasTitle()

bool VisualPlugin::hasTitle ( ) const
overridevirtualinherited

indicates if title bar is shown or not

Reimplemented from PlayerPlugin::Base.

◆ initUi()

void GUI_LevelPainter::initUi ( )
overrideprotectedvirtual

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

Implements PlayerPlugin::Base.

◆ isActive()

bool GUI_LevelPainter::isActive ( ) const
overridevirtual

◆ isFadeoutCompleted()

bool GUI_LevelPainter::isFadeoutCompleted ( ) const
overrideprotectedvirtual

Implements VisualPlugin.

◆ isUiInitialized()

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

Check if ui already was initialized.

Returns

Reimplemented in GUI_SpectrogramPainter.

◆ loadStyleIndex()

int GUI_LevelPainter::loadStyleIndex ( ) const
overrideprotectedvirtual

Implements VisualPlugin.

◆ name()

QString GUI_LevelPainter::name ( ) const
overridevirtual

must be overwritten

Returns
the NOT translated name of the plugin

Implements PlayerPlugin::Base.

◆ notifyDataProvider()

void GUI_LevelPainter::notifyDataProvider ( bool isActive)
overrideprotectedvirtual

Implements VisualPlugin.

◆ paint()

void GUI_LevelPainter::paint ( )
overrideprotectedvirtual

Implements VisualPlugin.

◆ pluginAction()

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

needed by the player ui, final

Returns
action of plugin

◆ retranslate()

void GUI_LevelPainter::retranslate ( )
overrideprotectedvirtual

Implements PlayerPlugin::Base.

◆ saveStyleIndex()

void GUI_LevelPainter::saveStyleIndex ( int index) const
overrideprotectedvirtual

Implements VisualPlugin.

◆ showEvent()

void VisualPlugin::showEvent ( QShowEvent * e)
overrideprotectedvirtualinherited

Reimplemented from PlayerPlugin::Base.

◆ 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

◆ widget()

QWidget * GUI_LevelPainter::widget ( )
overrideprotectedvirtual

Implements VisualPlugin.