TTKMusicPlayer
4.1.3.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The class of the music spectrum layout widget. More...
#include <musicspectrumlayoutwidget.h>
Public Slots | |
virtual void | popupMenu () overridefinal |
void | labelClicked (int index) |
![]() | |
virtual void | popupMenu () |
Signals | |
void | stateChanged (bool &state, const QString &name) |
Public Member Functions | |
MusicSpectrumLayoutWidget (QWidget *parent=nullptr) | |
~MusicSpectrumLayoutWidget () | |
![]() | |
MusicToolMenuWidget (QWidget *parent=nullptr) | |
~MusicToolMenuWidget () | |
void | setTranslucentBackground () |
Protected Types | |
using | SpectrumInfo = QPair< QString, QString > |
using | SpectrumInfoList = QList< SpectrumInfo > |
Protected Member Functions | |
virtual QStringList | spectrumTypeList () const =0 |
void | initialize () |
void | addCellItems (const SpectrumInfoList &items) |
Protected Attributes | |
bool | m_exclusive |
QVBoxLayout * | m_containLayout |
QList< MusicSpectrumLayoutItem * > | m_items |
![]() | |
MusicToolMenu * | m_menu |
QWidget * | m_containWidget |
The class of the music spectrum layout widget.
Definition at line 66 of file musicspectrumlayoutwidget.h.
|
protected |
Definition at line 97 of file musicspectrumlayoutwidget.h.
|
protected |
Definition at line 98 of file musicspectrumlayoutwidget.h.
|
explicit |
Object constructor.
Definition at line 44 of file musicspectrumlayoutwidget.cpp.
References initialize().
MusicSpectrumLayoutWidget::~MusicSpectrumLayoutWidget | ( | ) |
|
protected |
Create cell items by input data.
Definition at line 114 of file musicspectrumlayoutwidget.cpp.
References MusicSpectrumLayoutItem::addCellItem(), labelClicked(), m_containLayout, m_items, and TTKClickedGroup::mapped().
Referenced by MusicSpectrumFloridLayoutWidget::MusicSpectrumFloridLayoutWidget(), MusicSpectrumFlowLayoutWidget::MusicSpectrumFlowLayoutWidget(), MusicSpectrumNormalLayoutWidget::MusicSpectrumNormalLayoutWidget(), MusicSpectrumPlusLayoutWidget::MusicSpectrumPlusLayoutWidget(), and MusicSpectrumWaveLayoutWidget::MusicSpectrumWaveLayoutWidget().
|
protected |
Create all widget in layout.
Definition at line 82 of file musicspectrumlayoutwidget.cpp.
References TTK::UI::BackgroundStyle10, TTK::UI::BorderStyle02, TTK::Widget::generateVScrollAreaStyle(), m_containLayout, MusicToolMenuWidget::m_containWidget, and m_exclusive.
Referenced by MusicSpectrumLayoutWidget().
|
slot |
Label selected state changed.
Definition at line 60 of file musicspectrumlayoutwidget.cpp.
References m_exclusive, m_items, MusicToolMenuWidget::m_menu, qAsConst, spectrumTypeList(), and stateChanged().
Referenced by addCellItems().
|
finaloverridevirtualslot |
To popup menu.
Definition at line 55 of file musicspectrumlayoutwidget.cpp.
References MusicToolMenuWidget::m_containWidget, and MusicToolMenuWidget::m_menu.
|
protectedpure virtual |
Spectrum types list.
Implemented in MusicSpectrumFloridLayoutWidget, MusicSpectrumWaveLayoutWidget, MusicSpectrumFlowLayoutWidget, MusicSpectrumPlusLayoutWidget, and MusicSpectrumNormalLayoutWidget.
Referenced by labelClicked().
|
signal |
Spectrum item check state changed.
Referenced by labelClicked().
|
protected |
Definition at line 115 of file musicspectrumlayoutwidget.h.
Referenced by addCellItems(), and initialize().
|
protected |
Definition at line 114 of file musicspectrumlayoutwidget.h.
Referenced by initialize(), labelClicked(), MusicSpectrumFloridLayoutWidget::MusicSpectrumFloridLayoutWidget(), and MusicSpectrumFlowLayoutWidget::MusicSpectrumFlowLayoutWidget().
|
protected |
Definition at line 116 of file musicspectrumlayoutwidget.h.
Referenced by addCellItems(), labelClicked(), and ~MusicSpectrumLayoutWidget().