TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Classes | Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
MusicSpectrumWidget Class Reference

The class of the music spectrum widget all. More...

#include <musicspectrumwidget.h>

+ Inheritance diagram for MusicSpectrumWidget:

Classes

struct  MusicSpectrum
 

Public Slots

void spectrumNormalTypeChanged (bool &state, const QString &name)
 
void spectrumPlusTypeChanged (bool &state, const QString &name)
 
void spectrumWaveTypeChanged (bool &state, const QString &name)
 
void spectrumFlowTypeChanged (bool &state, const QString &name)
 
void spectrumFloridTypeChanged (bool &state, const QString &name)
 
void localFileButtonClicked ()
 
void openFileButtonClicked ()
 
void fullscreenByUser (QWidget *widget, bool state)
 
- Public Slots inherited from MusicAbstractMoveResizePlainWidget
void backgroundChanged ()
 
void show ()
 

Public Member Functions

 MusicSpectrumWidget (QWidget *parent=nullptr)
 
 ~MusicSpectrumWidget ()
 
- Public Member Functions inherited from MusicAbstractMoveResizePlainWidget
 MusicAbstractMoveResizePlainWidget (QWidget *parent=nullptr)
 
 ~MusicAbstractMoveResizePlainWidget ()
 
- Public Member Functions inherited from TTKAbstractMoveResizeWidget
 TTKAbstractMoveResizeWidget (QWidget *parent=nullptr)
 
 TTKAbstractMoveResizeWidget (bool transparent, QWidget *parent=nullptr)
 

Private Member Functions

 TTK_DECLARE_LIST (MusicSpectrum)
 
virtual void mouseDoubleClickEvent (QMouseEvent *event) overridefinal
 
void createSpectrumWidget (MusicSpectrum::Module spectrum, bool &state, const QString &name, QLayout *layout)
 
void createFlowWidget (MusicSpectrum::Module spectrum, bool &state, const QString &name, QLayout *layout)
 
void createFloridWidget (MusicSpectrum::Module spectrum, bool &state, const QString &name, QLayout *layout)
 
void createModuleWidget (MusicSpectrum::Module spectrum, bool &state, const QString &name, QLayout *layout, bool florid)
 
void createLightWidget (MusicSpectrum::Module spectrum, bool &state, const QString &name, QLayout *layout, const QString &url={})
 
int findSpectrumWidget (const QString &name)
 
void showMessageBoxWidget ()
 

Private Attributes

Ui::MusicSpectrumWidget * m_ui
 
QLayout * m_spectrumLayout
 
QString m_lastFlowName
 
QString m_lastFloridName
 
MusicSpectrumList m_types
 

Additional Inherited Members

- Protected Member Functions inherited from TTKAbstractMoveResizeWidget
virtual bool eventFilter (QObject *object, QEvent *event) override
 
virtual void paintEvent (QPaintEvent *event) override
 
virtual void mousePressEvent (QMouseEvent *event) override
 
virtual void mouseReleaseEvent (QMouseEvent *event) override
 
virtual void mouseMoveEvent (QMouseEvent *event) override
 
void sizeDirection ()
 
void moveDirection ()
 
void setObjectsTracking (const QWidgetList &objects)
 
- Protected Member Functions inherited from MusicWidgetRenderer
void setBackgroundPixmap (const QSize &size)
 
 MusicWidgetRenderer ()
 
void setBackgroundLabel (QLabel *label)
 
- Protected Attributes inherited from TTKAbstractMoveResizeWidget
MoveResizeData m_struct
 
TTK::Direction m_direction
 

Detailed Description

The class of the music spectrum widget all.

Author
Greedysky greed.nosp@m.ysky.nosp@m.@163..nosp@m.com

Definition at line 31 of file musicspectrumwidget.h.

Constructor & Destructor Documentation

MusicSpectrumWidget::MusicSpectrumWidget ( QWidget *  parent = nullptr)
explicit
MusicSpectrumWidget::~MusicSpectrumWidget ( )

Object destructor.

Definition at line 72 of file musicspectrumwidget.cpp.

References TTK::TTKQmmp::enabledVisualPlugin(), m_types, m_ui, qAsConst, and TTKRemoveSingleWidget.

Member Function Documentation

void MusicSpectrumWidget::createFloridWidget ( MusicSpectrum::Module  spectrum,
bool &  state,
const QString &  name,
QLayout *  layout 
)
private

Create florid widget.

Definition at line 243 of file musicspectrumwidget.cpp.

References createModuleWidget().

Referenced by fullscreenByUser(), and spectrumFloridTypeChanged().

void MusicSpectrumWidget::createFlowWidget ( MusicSpectrum::Module  spectrum,
bool &  state,
const QString &  name,
QLayout *  layout 
)
private

Create flow widget.

Definition at line 238 of file musicspectrumwidget.cpp.

References createModuleWidget().

Referenced by fullscreenByUser(), and spectrumFlowTypeChanged().

void MusicSpectrumWidget::createLightWidget ( MusicSpectrum::Module  spectrum,
bool &  state,
const QString &  name,
QLayout *  layout,
const QString &  url = {} 
)
private
void MusicSpectrumWidget::createModuleWidget ( MusicSpectrum::Module  spectrum,
bool &  state,
const QString &  name,
QLayout *  layout,
bool  florid 
)
private
void MusicSpectrumWidget::createSpectrumWidget ( MusicSpectrum::Module  spectrum,
bool &  state,
const QString &  name,
QLayout *  layout 
)
private
int MusicSpectrumWidget::findSpectrumWidget ( const QString &  name)
private

Find spectrum widget index by name.

Definition at line 372 of file musicspectrumwidget.cpp.

References m_types.

Referenced by createLightWidget(), createModuleWidget(), and createSpectrumWidget().

void MusicSpectrumWidget::fullscreenByUser ( QWidget *  widget,
bool  state 
)
slot
void MusicSpectrumWidget::localFileButtonClicked ( )
slot

Local file button clicked.

Definition at line 114 of file musicspectrumwidget.cpp.

References createLightWidget(), MusicSpectrumWidget::MusicSpectrum::Light, LIGHT_SPECTROGRAM_MODULE, and m_ui.

Referenced by MusicSpectrumWidget().

void MusicSpectrumWidget::mouseDoubleClickEvent ( QMouseEvent *  event)
finaloverrideprivatevirtual

Override the widget event.

Definition at line 185 of file musicspectrumwidget.cpp.

void MusicSpectrumWidget::openFileButtonClicked ( )
slot
void MusicSpectrumWidget::showMessageBoxWidget ( )
private

Show message box widget.

Definition at line 390 of file musicspectrumwidget.cpp.

References MusicToastLabel::popup().

Referenced by createModuleWidget(), and createSpectrumWidget().

void MusicSpectrumWidget::spectrumFloridTypeChanged ( bool &  state,
const QString &  name 
)
slot

Spectrum Florid Type Changed.

Definition at line 109 of file musicspectrumwidget.cpp.

References createFloridWidget(), MusicSpectrumWidget::MusicSpectrum::Florid, and m_ui.

Referenced by MusicSpectrumWidget().

void MusicSpectrumWidget::spectrumFlowTypeChanged ( bool &  state,
const QString &  name 
)
slot

Spectrum Flow Type Changed.

Definition at line 104 of file musicspectrumwidget.cpp.

References createFlowWidget(), MusicSpectrumWidget::MusicSpectrum::Flow, and m_ui.

Referenced by MusicSpectrumWidget().

void MusicSpectrumWidget::spectrumNormalTypeChanged ( bool &  state,
const QString &  name 
)
slot

Spectrum Normal Type Changed.

Definition at line 82 of file musicspectrumwidget.cpp.

References createSpectrumWidget(), m_ui, and MusicSpectrumWidget::MusicSpectrum::Normal.

Referenced by MusicSpectrumWidget().

void MusicSpectrumWidget::spectrumPlusTypeChanged ( bool &  state,
const QString &  name 
)
slot

Spectrum Plus Type Changed.

Definition at line 87 of file musicspectrumwidget.cpp.

References createSpectrumWidget(), m_ui, and MusicSpectrumWidget::MusicSpectrum::Plus.

Referenced by MusicSpectrumWidget().

void MusicSpectrumWidget::spectrumWaveTypeChanged ( bool &  state,
const QString &  name 
)
slot
MusicSpectrumWidget::TTK_DECLARE_LIST ( MusicSpectrum  )
private

Member Data Documentation

QString MusicSpectrumWidget::m_lastFloridName
private

Definition at line 137 of file musicspectrumwidget.h.

Referenced by createModuleWidget().

QString MusicSpectrumWidget::m_lastFlowName
private

Definition at line 136 of file musicspectrumwidget.h.

Referenced by createModuleWidget().

QLayout* MusicSpectrumWidget::m_spectrumLayout
private

Definition at line 135 of file musicspectrumwidget.h.

Referenced by fullscreenByUser().

MusicSpectrumList MusicSpectrumWidget::m_types
private
Ui::MusicSpectrumWidget* MusicSpectrumWidget::m_ui
private

The documentation for this class was generated from the following files: