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

The class of the app bottom area widget. More...

#include <musicbottomareawidget.h>

+ Inheritance diagram for MusicBottomAreaWidget:

Public Slots

void lrcWidgetShowFullScreen ()
 
void lockDesktopLrc (bool lock)
 
void desktopLrcClosed ()
 
void iconActivated (QSystemTrayIcon::ActivationReason)
 

Public Member Functions

 MusicBottomAreaWidget (QWidget *parent=nullptr)
 
 ~MusicBottomAreaWidget ()
 
void setupUi (Ui::MusicApplication *ui)
 
void setDestopLrcVisible (bool status) const
 
void setCurrentPlayState (bool state) const
 
void setVolumeValue (int value) const
 
void setLabelText (const QString &name) const
 
void setSystemCloseConfig (bool status)
 
bool systemCloseConfig ()
 
bool systemTrayIsVisible ()
 
void showMessage (const QString &title, const QString &text)
 
void setWindowConcise ()
 
bool isLrcWidgetShowFullScreen () const
 
void resizeWindow ()
 
void applyParameter ()
 

Static Public Member Functions

static MusicBottomAreaWidgetinstance ()
 

Private Member Functions

void createSystemTrayIcon ()
 

Private Attributes

Ui::MusicApplication * m_ui
 
bool m_systemCloseConfig
 
bool m_lrcWidgetShowFullScreen
 
QSystemTrayIcon * m_systemTray
 
MusicSystemTrayMenum_systemTrayMenu
 
MusicPlatformExtrasm_platformExtras
 
MusicBlurSpecturmModulem_blurModule
 

Static Private Attributes

static MusicBottomAreaWidgetm_instance = nullptr
 

Detailed Description

The class of the app bottom area widget.

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

Definition at line 37 of file musicbottomareawidget.h.

Constructor & Destructor Documentation

MusicBottomAreaWidget::MusicBottomAreaWidget ( QWidget *  parent = nullptr)
explicit

Object constructor.

Definition at line 13 of file musicbottomareawidget.cpp.

References createSystemTrayIcon(), m_blurModule, m_instance, and m_platformExtras.

MusicBottomAreaWidget::~MusicBottomAreaWidget ( )

Object destructor.

Definition at line 25 of file musicbottomareawidget.cpp.

References m_blurModule, m_platformExtras, m_systemTray, and m_systemTrayMenu.

Member Function Documentation

void MusicBottomAreaWidget::applyParameter ( )
void MusicBottomAreaWidget::createSystemTrayIcon ( )
private

Create system tray icon.

Definition at line 68 of file musicbottomareawidget.cpp.

References iconActivated(), MusicApplication::instance(), m_systemTray, and m_systemTrayMenu.

Referenced by MusicBottomAreaWidget().

void MusicBottomAreaWidget::desktopLrcClosed ( )
slot
void MusicBottomAreaWidget::iconActivated ( QSystemTrayIcon::ActivationReason  reason)
slot

System tray icon activate.

Definition at line 49 of file musicbottomareawidget.cpp.

References MusicApplication::instance().

Referenced by createSystemTrayIcon().

MusicBottomAreaWidget * MusicBottomAreaWidget::instance ( )
static
bool MusicBottomAreaWidget::isLrcWidgetShowFullScreen ( ) const
void MusicBottomAreaWidget::lockDesktopLrc ( bool  lock)
slot
void MusicBottomAreaWidget::lrcWidgetShowFullScreen ( )
slot
void MusicBottomAreaWidget::resizeWindow ( )

Resize window bound by resize called.

Definition at line 194 of file musicbottomareawidget.cpp.

References G_SETTING_PTR, m_ui, and MusicSettingManager::WidgetSize.

Referenced by MusicApplication::resizeEvent().

void MusicBottomAreaWidget::setCurrentPlayState ( bool  state) const
void MusicBottomAreaWidget::setDestopLrcVisible ( bool  status) const

Set destop lrc visible by string.

Definition at line 81 of file musicbottomareawidget.cpp.

References m_systemTrayMenu, and MusicSystemTrayMenu::showDesktopLrc().

Referenced by applyParameter(), and MusicApplication::readSystemConfigFromFile().

void MusicBottomAreaWidget::setLabelText ( const QString &  name) const

Set current song text.

Definition at line 97 of file musicbottomareawidget.cpp.

References m_systemTray, m_systemTrayMenu, and MusicSystemTrayMenu::setLabelText().

Referenced by MusicApplication::showCurrentSong().

void MusicBottomAreaWidget::setSystemCloseConfig ( bool  status)
inline

Set system close config or not.

Definition at line 80 of file musicbottomareawidget.h.

Referenced by applyParameter().

void MusicBottomAreaWidget::setupUi ( Ui::MusicApplication *  ui)
void MusicBottomAreaWidget::setVolumeValue ( int  value) const

Set current play volume.

Definition at line 92 of file musicbottomareawidget.cpp.

References m_systemTrayMenu, and MusicSystemTrayMenu::setVolumeValue().

Referenced by MusicApplication::volumeChanged(), and MusicApplication::volumeMute().

void MusicBottomAreaWidget::setWindowConcise ( )
void MusicBottomAreaWidget::showMessage ( const QString &  title,
const QString &  text 
)

Set system tray message show title and context.

Definition at line 103 of file musicbottomareawidget.cpp.

References m_systemTray.

Referenced by MusicApplication::closeEvent(), and MusicDownloadStatusModule::networkConnectionStateChanged().

bool MusicBottomAreaWidget::systemCloseConfig ( )
inline

Get system close config state.

Definition at line 84 of file musicbottomareawidget.h.

Referenced by MusicApplication::closeEvent().

bool MusicBottomAreaWidget::systemTrayIsVisible ( )
inline

Get system tray visible state.

Definition at line 88 of file musicbottomareawidget.h.

Referenced by MusicApplication::closeEvent().

Member Data Documentation

MusicBlurSpecturmModule* MusicBottomAreaWidget::m_blurModule
private
MusicBottomAreaWidget * MusicBottomAreaWidget::m_instance = nullptr
staticprivate

Definition at line 144 of file musicbottomareawidget.h.

Referenced by instance(), and MusicBottomAreaWidget().

bool MusicBottomAreaWidget::m_lrcWidgetShowFullScreen
private

Definition at line 138 of file musicbottomareawidget.h.

Referenced by isLrcWidgetShowFullScreen(), and lrcWidgetShowFullScreen().

MusicPlatformExtras* MusicBottomAreaWidget::m_platformExtras
private
bool MusicBottomAreaWidget::m_systemCloseConfig
private

Definition at line 137 of file musicbottomareawidget.h.

QSystemTrayIcon* MusicBottomAreaWidget::m_systemTray
private
MusicSystemTrayMenu* MusicBottomAreaWidget::m_systemTrayMenu
private
Ui::MusicApplication* MusicBottomAreaWidget::m_ui
private

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