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 replay gain widget. More...
#include <musicreplaygainwidget.h>
Public Slots | |
void | show () |
![]() | |
void | backgroundChanged () |
void | show () |
Public Member Functions | |
MusicReplayGainWidget (QWidget *parent=nullptr) | |
~MusicReplayGainWidget () | |
![]() | |
MusicAbstractMoveWidget (QWidget *parent=nullptr) | |
MusicAbstractMoveWidget (bool transparent, QWidget *parent=nullptr) | |
~MusicAbstractMoveWidget () | |
![]() | |
TTKAbstractMoveWidget (QWidget *parent=nullptr) | |
TTKAbstractMoveWidget (bool transparent, QWidget *parent=nullptr) | |
void | drawWindowShadow (bool show) |
void | blockOption (bool block) |
Private Slots | |
void | addFileButtonClicked () |
void | addFilesButtonClicked () |
void | rmFileButtonClicked () |
void | rmFilesButtonClicked () |
void | analysisButtonClicked () |
void | applyButtonClicked () |
void | lineTextChanged (const QString &text) |
void | analysisOutput () |
void | applyOutput () |
void | confirmDataChanged () |
Private Member Functions | |
void | initialize () |
void | addItemFinished (const QString &track, const QString &album) |
void | setControlEnabled (bool enabled) |
Private Attributes | |
Ui::MusicReplayGainWidget * | m_ui |
QProcess * | m_process |
QStringList | m_paths |
Light * | m_replayGainWidget |
int | m_currentIndex |
Additional Inherited Members | |
![]() | |
virtual void | paintEvent (QPaintEvent *event) override |
virtual void | mousePressEvent (QMouseEvent *event) override |
virtual void | mouseMoveEvent (QMouseEvent *event) override |
virtual void | mouseReleaseEvent (QMouseEvent *event) override |
![]() | |
void | setBackgroundPixmap (const QSize &size) |
MusicWidgetRenderer () | |
void | setBackgroundLabel (QLabel *label) |
![]() | |
QPoint | m_mousePressedAt |
bool | m_blockOption |
bool | m_shadowOption |
bool | m_mouseLeftPressed |
The class of the replay gain widget.
Definition at line 50 of file musicreplaygainwidget.h.
|
explicit |
Object constructor.
Definition at line 33 of file musicreplaygainwidget.cpp.
References addFileButtonClicked(), addFilesButtonClicked(), analysisButtonClicked(), analysisOutput(), applyButtonClicked(), confirmDataChanged(), initialize(), TTK::UI::LineEditStyle01, lineTextChanged(), m_process, m_ui, TTK::UI::ProgressBar01, rmFileButtonClicked(), rmFilesButtonClicked(), MusicWidgetRenderer::setBackgroundLabel(), TTK::UI::TabWidgetStyle01, and TTK::UI::ToolButtonStyle04.
MusicReplayGainWidget::~MusicReplayGainWidget | ( | ) |
Object destructor.
Definition at line 110 of file musicreplaygainwidget.cpp.
References m_process, m_ui, and TTKRemoveSingleWidget.
|
privateslot |
Add input file button clicked.
Definition at line 186 of file musicreplaygainwidget.cpp.
References TTKSemaphoreLoop::exec(), TTK::File::getOpenFileNames(), m_currentIndex, m_paths, m_process, MAKE_GAIN_PATH_FULL, qAsConst, QtProcessVoidConnect, setControlEnabled(), and TTK_SLOT.
Referenced by MusicReplayGainWidget().
|
privateslot |
Add input files button clicked.
Definition at line 215 of file musicreplaygainwidget.cpp.
References TTKSemaphoreLoop::exec(), TTK::File::fileInfoListByPath(), TTK::File::getExistingDirectory(), m_currentIndex, m_paths, m_process, MAKE_GAIN_PATH_FULL, MP3_FILE_SUFFIX, QtProcessVoidConnect, setControlEnabled(), TTK_FILE_SUFFIX, and TTK_SLOT.
Referenced by MusicReplayGainWidget().
|
private |
Create table item finished.
Definition at line 138 of file musicreplaygainwidget.cpp.
References TTK::Widget::elidedText(), GAIN_DEFAULT, m_currentIndex, m_paths, m_ui, and QtItemSetTextAlignment.
Referenced by analysisOutput().
|
privateslot |
Analysis input files button clicked.
do nothing here
Definition at line 257 of file musicreplaygainwidget.cpp.
Referenced by MusicReplayGainWidget().
|
privateslot |
Analysis output by process.
Definition at line 307 of file musicreplaygainwidget.cpp.
References addItemFinished(), GAIN_ALBUMDB, GAIN_TRACKDB, m_process, and TTK_WLINEFEED.
Referenced by applyButtonClicked(), and MusicReplayGainWidget().
|
privateslot |
Apply input files button clicked.
Definition at line 262 of file musicreplaygainwidget.cpp.
References analysisOutput(), applyOutput(), TTKSemaphoreLoop::exec(), m_paths, m_process, m_ui, MAKE_GAIN_PATH_FULL, MusicToastLabel::popup(), QtProcessVoidConnect, rmFilesButtonClicked(), setControlEnabled(), and TTK_SLOT.
Referenced by MusicReplayGainWidget().
|
privateslot |
Apply output by process.
Definition at line 334 of file musicreplaygainwidget.cpp.
References m_process, and m_ui.
Referenced by applyButtonClicked().
|
privateslot |
Confirm Data changed.
Definition at line 354 of file musicreplaygainwidget.cpp.
References m_replayGainWidget, m_ui, Light::open(), and qAsConst.
Referenced by MusicReplayGainWidget().
|
private |
Init parameters.
Definition at line 117 of file musicreplaygainwidget.cpp.
References TTK::UI::CheckBoxStyle01, LightFactory::create(), TTK::UI::HeaderView01, m_replayGainWidget, m_ui, TTK::TTKQmmp::pluginPath(), MusicToastLabel::popup(), TTK::UI::ProgressBar01, TTK::UI::PushButtonStyle04, TTK::UI::ScrollBarStyle03, and TTKObjectCast.
Referenced by MusicReplayGainWidget().
|
privateslot |
Music gain input value changed.
Definition at line 295 of file musicreplaygainwidget.cpp.
References m_ui.
Referenced by MusicReplayGainWidget().
|
privateslot |
Remove input file button clicked.
Definition at line 239 of file musicreplaygainwidget.cpp.
References m_ui, and MusicToastLabel::popup().
Referenced by MusicReplayGainWidget().
|
privateslot |
Remove input files button clicked.
Definition at line 250 of file musicreplaygainwidget.cpp.
References m_currentIndex, m_paths, and m_ui.
Referenced by applyButtonClicked(), and MusicReplayGainWidget().
|
private |
Enable or disable control state.
Definition at line 176 of file musicreplaygainwidget.cpp.
References m_ui.
Referenced by addFileButtonClicked(), addFilesButtonClicked(), and applyButtonClicked().
|
slot |
Override show function.
Definition at line 366 of file musicreplaygainwidget.cpp.
References MAKE_GAIN_PATH_FULL, MusicToastLabel::popup(), and MusicAbstractMoveWidget::show().
|
private |
Definition at line 130 of file musicreplaygainwidget.h.
Referenced by addFileButtonClicked(), addFilesButtonClicked(), addItemFinished(), and rmFilesButtonClicked().
|
private |
Definition at line 128 of file musicreplaygainwidget.h.
Referenced by addFileButtonClicked(), addFilesButtonClicked(), addItemFinished(), applyButtonClicked(), and rmFilesButtonClicked().
|
private |
Definition at line 127 of file musicreplaygainwidget.h.
Referenced by addFileButtonClicked(), addFilesButtonClicked(), analysisOutput(), applyButtonClicked(), applyOutput(), MusicReplayGainWidget(), and ~MusicReplayGainWidget().
|
private |
Definition at line 129 of file musicreplaygainwidget.h.
Referenced by confirmDataChanged(), and initialize().
|
private |
Definition at line 126 of file musicreplaygainwidget.h.
Referenced by addItemFinished(), applyButtonClicked(), applyOutput(), confirmDataChanged(), initialize(), lineTextChanged(), MusicReplayGainWidget(), rmFileButtonClicked(), rmFilesButtonClicked(), setControlEnabled(), and ~MusicReplayGainWidget().