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

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

#include <musicrightareawidget.h>

+ Inheritance diagram for MusicRightAreaWidget:

Public Types

enum  FunctionModule {
  KugGouSongWidget, KugGouRadioWidget, kugouPlaylistWidget, kugouMovieWidget,
  VideoWidget, LrcWidget, RecommendWidget, ToplistWidget,
  ArtistCategoryWidget, PlaylistCategoryWidget, SearchWidget, SearchSingleWidget,
  SimilarWidget, AlbumWidget, ArtistWidget, PlaylistWidget,
  SongDailyWidget, AdvancedSearchWidget, IndentifyWidget, KuiSheWidget,
  WebDJRadioWidget, WebMVRadioWidget, WebPVRadioWidget, LocalManagerWidget,
  CloudManagerWidget, ScreenSaverWidget, PlaylistBackupWidget
}
 

Public Slots

void functionGoBack ()
 
void functionClicked (int index, QWidget *widget=nullptr)
 
void showCommentsFound ()
 
void showSimilarFound (const QString &text)
 
void showAlbumFound (const QString &text, const QString &id)
 
void showArtistSearchFound ()
 
void showAlbumSearchFound ()
 
void showMovieSearchFound ()
 
void showMovieSearchRadioFound ()
 
void showPersonalRadioFound (const QString &id)
 
void showArtistFound (const QString &text, const QString &id)
 
void showPlaylistFound (const QString &id)
 
void showPlaylistCategoryFound (const QString &id, const QString &value)
 
void showSongSearchedFound (const QString &text)
 
void showSingleSearchedFound (const QString &id)
 
void showVideoSearchedFound (const QString &name, const QString &id)
 
void showSongMainWidget ()
 
void setDestopLrcVisible (bool visible) const
 
void setWindowLockedChanged ()
 
void setWindowLrcTypeChanged ()
 
void videoSetPopup (bool popup)
 
void videoActiveWindow ()
 
void videoNeedToClose ()
 
void videoFullscreen (bool full)
 
void lrcDisplayAllClicked ()
 
void containerForWallpaperClicked ()
 
void changeDownloadFulllyWidget ()
 
void changeDownloadCustumWidget ()
 

Signals

void updateBackgroundTheme ()
 
void updateBackgroundThemeDownload ()
 

Public Member Functions

 MusicRightAreaWidget (QWidget *parent=nullptr)
 
 ~MusicRightAreaWidget ()
 
void setupUi (Ui::MusicApplication *ui)
 
void startDrawLrc () const
 
void stopDrawLrc () const
 
void setCurrentPlayState (bool state) const
 
bool destopLrcVisible () const
 
void setInteriorLrcVisible (bool status) const
 
bool interiorLrcVisible () const
 
void updateCurrentLrc (qint64 current, qint64 total, bool playState) const
 
void loadCurrentSongLrc (const QString &name, const QString &path) const
 
void setSongTimeSpeed (qint64 time) const
 
void checkMetaDataValid (bool mode) const
 
void showSettingWidget () const
 
void artistSearchByID (const QString &id)
 
void albumSearchByID (const QString &id)
 
void movieSearchByID (const QString &id)
 
void movieRadioSearchByID (const QVariant &data)
 
void resizeWindow ()
 
void applyParameter ()
 

Static Public Member Functions

static MusicRightAreaWidgetinstance ()
 

Private Member Functions

void functionInitialize ()
 
void createkWebWindow (int type)
 

Private Attributes

Ui::MusicApplication * m_ui
 
QVariant m_rawData
 
bool m_lowPowerMode
 
FunctionModule m_funcIndex
 
QWidget * m_stackedWidget
 
QWidget * m_stackedStandWidget
 
MusicSettingWidgetm_settingWidget
 
MusicVideoPlayWidgetm_videoPlayerWidget
 
MusicLrcAnalysism_lrcAnalysis
 
MusicLrcContainerForInteriorm_lrcForInterior
 
MusicLrcContainerForDesktopm_lrcForDesktop
 
MusicLrcContainerForWallpaperm_lrcForWallpaper
 
MusicDownloadStatusModulem_downloadStatusObject
 

Static Private Attributes

static MusicRightAreaWidgetm_instance = nullptr
 

Detailed Description

The class of the app right area widget.

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

Definition at line 41 of file musicrightareawidget.h.

Member Enumeration Documentation

Enumerator
KugGouSongWidget 

insert kugou song widget

KugGouRadioWidget 

insert kugou radio widget

kugouPlaylistWidget 

insert kugou playlist widget

kugouMovieWidget 

insert kugou movie widget

VideoWidget 

insert video widget

LrcWidget 

insert lrc display widget

RecommendWidget 

insert recommend found widget

ToplistWidget 

insert toplist found widget

ArtistCategoryWidget 

insert artist category found widget

PlaylistCategoryWidget 

insert playlist category found widget

SearchWidget 

insert search display widget

SearchSingleWidget 

insert search single display widget

SimilarWidget 

insert similar found widget

AlbumWidget 

insert album found widget

ArtistWidget 

insert artist found widget

PlaylistWidget 

insert playlist found widget

SongDailyWidget 

insert song daily widget

AdvancedSearchWidget 

insert advanced search widget

IndentifyWidget 

insert indentify songs widget

KuiSheWidget 

insert kugou kuishe widget

WebDJRadioWidget 

insert web dj radio widget

WebMVRadioWidget 

insert web mv radio widget

WebPVRadioWidget 

insert web pv radio widget

LocalManagerWidget 

insert local manager widget

CloudManagerWidget 

insert cloud manager widget

ScreenSaverWidget 

insert screen saver widget

PlaylistBackupWidget 

insert playlist backup widget

Definition at line 46 of file musicrightareawidget.h.

Constructor & Destructor Documentation

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

Member Function Documentation

void MusicRightAreaWidget::albumSearchByID ( const QString &  id)

Song album search function.

Definition at line 241 of file musicrightareawidget.cpp.

References m_rawData, showAlbumSearchFound(), TTK_SIGNLE_SHOT, and TTK_SLOT.

Referenced by MusicArtistAlbumsQueryWidget::currentItemClicked().

void MusicRightAreaWidget::applyParameter ( )
void MusicRightAreaWidget::artistSearchByID ( const QString &  id)

Song artist search function.

Definition at line 235 of file musicrightareawidget.cpp.

References m_rawData, showArtistSearchFound(), TTK_SIGNLE_SHOT, and TTK_SLOT.

Referenced by MusicArtistListQueryWidget::currentArtistListClicked().

void MusicRightAreaWidget::changeDownloadCustumWidget ( )
slot
void MusicRightAreaWidget::changeDownloadFulllyWidget ( )
slot

Change to download fully widget.

Definition at line 828 of file musicrightareawidget.cpp.

References MusicSettingManager::DownloadLimitEnable, and G_SETTING_PTR.

void MusicRightAreaWidget::checkMetaDataValid ( bool  mode) const

Check the current song meta data valid.

Definition at line 224 of file musicrightareawidget.cpp.

References MusicDownloadStatusModule::checkMetaDataValid(), and m_downloadStatusObject.

Referenced by MusicApplication::currentLrcUpdated(), and MusicApplication::showCurrentSong().

void MusicRightAreaWidget::containerForWallpaperClicked ( )
slot
void MusicRightAreaWidget::createkWebWindow ( int  type)
private
bool MusicRightAreaWidget::destopLrcVisible ( ) const

Get destop lrc visible state.

Definition at line 136 of file musicrightareawidget.cpp.

References m_lrcForDesktop.

Referenced by MusicApplication::writeSystemConfigToFile().

void MusicRightAreaWidget::functionClicked ( int  index,
QWidget *  widget = nullptr 
)
slot

Function button clicked.

Definition at line 323 of file musicrightareawidget.cpp.

References AdvancedSearchWidget, AlbumWidget, ArtistCategoryWidget, ArtistWidget, createkWebWindow(), functionInitialize(), IndentifyWidget, MusicWebDJRadioWidget::initialize(), KugGouRadioWidget, KugGouSongWidget, QKugouWindow::KugouMovie, kugouMovieWidget, kugouPlaylistWidget, QKugouWindow::KuGouRadio, QKugouWindow::KuGouSingle, QKugouWindow::KuGouSong, KuiSheWidget, LrcWidget, m_funcIndex, m_stackedStandWidget, m_stackedWidget, m_ui, m_videoPlayerWidget, MUSIC_LRC_PAGE, MUSIC_SEARCH_PAGE, PlaylistBackupWidget, PlaylistCategoryWidget, PlaylistWidget, MusicToastLabel::popup(), MusicVideoPlayWidget::popupMode(), MusicIdentifySongWidget::queryIdentifyKey(), RecommendWidget, ScreenSaverWidget, SearchSingleWidget, SearchWidget, MusicRecommendQueryWidget::setCurrentValue(), MusicToplistQueryWidget::setCurrentValue(), MusicArtistListQueryWidget::setCurrentValue(), MusicWebMVRadioQueryWidget::setCurrentValue(), MusicPlaylistQueryWidget::setCurrentValue(), SimilarWidget, SongDailyWidget, TTK::UI::TinyBtnLrcCollapse, ToplistWidget, TTKStaticCast, updateBackgroundTheme(), updateBackgroundThemeDownload(), videoFullscreen(), videoSetPopup(), VideoWidget, WebDJRadioWidget, WebMVRadioWidget, and WebPVRadioWidget.

Referenced by applyParameter(), MusicConnectLocalWidget::changeStatckedWidgetThird(), createkWebWindow(), MusicToolSetsWidget::currentItemClicked(), MusicMoreFunctionsPopWidget::functionClicked(), MusicEnhancedPopWidget::helpButtonClicked(), MusicCloudSharedSongWidget::initialize(), MusicWebFMRadioWidget::itemDoubleClicked(), setupUi(), showAlbumFound(), showArtistFound(), showCommentsFound(), showMovieSearchRadioFound(), showPersonalRadioFound(), showPlaylistCategoryFound(), showPlaylistFound(), showSimilarFound(), showSingleSearchedFound(), showSongMainWidget(), showSongSearchedFound(), showVideoSearchedFound(), videoNeedToClose(), and videoSetPopup().

void MusicRightAreaWidget::functionGoBack ( )
slot

Function go back clicked.

Definition at line 311 of file musicrightareawidget.cpp.

Referenced by setupUi().

void MusicRightAreaWidget::functionInitialize ( )
private
MusicRightAreaWidget * MusicRightAreaWidget::instance ( )
static

Get class object instance.

Definition at line 76 of file musicrightareawidget.cpp.

References m_instance.

Referenced by MusicPlaylistCategoryItem::buttonClicked(), MusicConnectLocalWidget::changeStatckedWidgetThird(), MusicApplication::createRightMenu(), MusicLrcContainerForDesktop::creatToolBarWidget(), MusicArtistListQueryWidget::currentArtistListClicked(), MusicToolSetsWidget::currentItemClicked(), MusicArtistMvsQueryWidget::currentItemClicked(), MusicArtistAlbumsQueryWidget::currentItemClicked(), MusicMoreFunctionsPopWidget::functionClicked(), MusicEnhancedPopWidget::helpButtonClicked(), MusicCloudSharedSongWidget::initialize(), MusicWebMVRadioInfoTableWidget::itemCellClicked(), MusicWebFMRadioWidget::itemDoubleClicked(), MusicBottomAreaWidget::lrcWidgetShowFullScreen(), MusicItemQueryTableWidget::menuActionChanged(), MusicSplitItemClickedLabel::mousePressEvent(), MusicSongSearchOnlineWidget::MusicSongSearchOnlineWidget(), MusicSongSearchTableWidget::searchActionClicked(), MusicAdvancedSearchedWidget::searchButtonClicked(), MusicSongsListPlayTableWidget::searchQueryByName(), MusicSystemTrayMenu::setWindowLockedChanged(), MusicAbstractSongsListTableWidget::showAlbumQueryWidget(), MusicSystemTrayMenu::showDesktopLrc(), MusicAbstractSongsListTableWidget::showMovieQueryWidget(), MusicAbstractSongsListTableWidget::showPlayedMovieQueryWidget(), MusicAbstractSongsListTableWidget::showPlayedSimilarQueryWidget(), MusicAbstractSongsListTableWidget::showSimilarQueryWidget(), MusicLrcContainerForInterior::showSongMovieClicked(), MusicLeftAreaWidget::switchToSelectedItemStyle(), and MusicLrcFloatWidget::wallpaperButtonClicked().

bool MusicRightAreaWidget::interiorLrcVisible ( ) const

Get interior lrc visible state.

Definition at line 146 of file musicrightareawidget.cpp.

References m_lrcForInterior.

void MusicRightAreaWidget::loadCurrentSongLrc ( const QString &  name,
const QString &  path 
) const
void MusicRightAreaWidget::lrcDisplayAllClicked ( )
slot
void MusicRightAreaWidget::movieRadioSearchByID ( const QVariant &  data)

Song movie radio search function.

Definition at line 253 of file musicrightareawidget.cpp.

References m_rawData, showMovieSearchRadioFound(), TTK_SIGNLE_SHOT, and TTK_SLOT.

Referenced by MusicWebMVRadioInfoTableWidget::itemCellClicked().

void MusicRightAreaWidget::movieSearchByID ( const QString &  id)

Song movie search function.

Definition at line 247 of file musicrightareawidget.cpp.

References m_rawData, showMovieSearchFound(), TTK_SIGNLE_SHOT, and TTK_SLOT.

Referenced by MusicArtistMvsQueryWidget::currentItemClicked().

void MusicRightAreaWidget::resizeWindow ( )
void MusicRightAreaWidget::setCurrentPlayState ( bool  state) const
void MusicRightAreaWidget::setDestopLrcVisible ( bool  visible) const
slot
void MusicRightAreaWidget::setInteriorLrcVisible ( bool  status) const

Set interior lrc visible by string.

Definition at line 141 of file musicrightareawidget.cpp.

References m_lrcForInterior.

Referenced by MusicApplication::readSystemConfigFromFile().

void MusicRightAreaWidget::setSongTimeSpeed ( qint64  time) const
void MusicRightAreaWidget::setupUi ( Ui::MusicApplication *  ui)
void MusicRightAreaWidget::setWindowLockedChanged ( )
slot

Lock current desktop lrc state changed.

Definition at line 696 of file musicrightareawidget.cpp.

References m_lrcForDesktop, and MusicLrcContainerForDesktop::setWindowLockedChanged().

Referenced by MusicSystemTrayMenu::setWindowLockedChanged().

void MusicRightAreaWidget::setWindowLrcTypeChanged ( )
slot
void MusicRightAreaWidget::showAlbumFound ( const QString &  text,
const QString &  id 
)
slot
void MusicRightAreaWidget::showAlbumSearchFound ( )
slot

Song album search function.

Definition at line 598 of file musicrightareawidget.cpp.

References m_rawData, and showAlbumFound().

Referenced by albumSearchByID().

void MusicRightAreaWidget::showArtistFound ( const QString &  text,
const QString &  id 
)
slot
void MusicRightAreaWidget::showArtistSearchFound ( )
slot

Song artist search function.

Definition at line 593 of file musicrightareawidget.cpp.

References m_rawData, and showArtistFound().

Referenced by artistSearchByID().

void MusicRightAreaWidget::showCommentsFound ( )
slot
void MusicRightAreaWidget::showMovieSearchFound ( )
slot

Song movie search function.

Definition at line 603 of file musicrightareawidget.cpp.

References m_rawData, and showVideoSearchedFound().

Referenced by movieSearchByID().

void MusicRightAreaWidget::showMovieSearchRadioFound ( )
slot
void MusicRightAreaWidget::showPersonalRadioFound ( const QString &  id)
slot
void MusicRightAreaWidget::showPlaylistCategoryFound ( const QString &  id,
const QString &  value 
)
slot
void MusicRightAreaWidget::showPlaylistFound ( const QString &  id)
slot
void MusicRightAreaWidget::showSettingWidget ( ) const
void MusicRightAreaWidget::showSimilarFound ( const QString &  text)
slot
void MusicRightAreaWidget::showSingleSearchedFound ( const QString &  id)
slot

Song search by given id.

Definition at line 656 of file musicrightareawidget.cpp.

References functionClicked(), m_ui, and SearchSingleWidget.

Referenced by MusicAdvancedSearchedWidget::searchButtonClicked().

void MusicRightAreaWidget::showSongMainWidget ( )
slot

Song load song index widget.

To prevent concise state changed while function windowConciseChanged first called

Definition at line 676 of file musicrightareawidget.cpp.

References functionClicked(), G_SETTING_PTR, KugGouSongWidget, m_ui, MUSIC_LRC_PAGE, and MusicSettingManager::WindowConciseMode.

void MusicRightAreaWidget::showSongSearchedFound ( const QString &  text)
slot
void MusicRightAreaWidget::showVideoSearchedFound ( const QString &  name,
const QString &  id 
)
slot
void MusicRightAreaWidget::startDrawLrc ( ) const
void MusicRightAreaWidget::stopDrawLrc ( ) const
void MusicRightAreaWidget::updateBackgroundTheme ( )
signal

Current background transparent changed.

Referenced by functionClicked().

void MusicRightAreaWidget::updateBackgroundThemeDownload ( )
signal

Current background skin download.

Referenced by functionClicked(), and setupUi().

void MusicRightAreaWidget::updateCurrentLrc ( qint64  current,
qint64  total,
bool  playState 
) const
void MusicRightAreaWidget::videoActiveWindow ( )
slot

Set video widget actived window.

Definition at line 758 of file musicrightareawidget.cpp.

References MusicApplication::instance(), and m_videoPlayerWidget.

Referenced by videoSetPopup().

void MusicRightAreaWidget::videoFullscreen ( bool  full)
slot

Set video widget fullScreen or not.

Definition at line 776 of file musicrightareawidget.cpp.

References TTKAbstractMoveWidget::blockOption(), m_videoPlayerWidget, and MusicVideoPlayWidget::resizeGeometry().

Referenced by functionClicked().

void MusicRightAreaWidget::videoNeedToClose ( )
slot

Set video widget close and delete.

Definition at line 767 of file musicrightareawidget.cpp.

References functionClicked(), LrcWidget, m_ui, and m_videoPlayerWidget.

void MusicRightAreaWidget::videoSetPopup ( bool  popup)
slot

Member Data Documentation

MusicDownloadStatusModule* MusicRightAreaWidget::m_downloadStatusObject
private
FunctionModule MusicRightAreaWidget::m_funcIndex
private

Definition at line 310 of file musicrightareawidget.h.

Referenced by applyParameter(), functionClicked(), and functionInitialize().

MusicRightAreaWidget * MusicRightAreaWidget::m_instance = nullptr
staticprivate

Definition at line 321 of file musicrightareawidget.h.

Referenced by instance(), and MusicRightAreaWidget().

bool MusicRightAreaWidget::m_lowPowerMode
private

Definition at line 309 of file musicrightareawidget.h.

Referenced by applyParameter().

MusicLrcAnalysis* MusicRightAreaWidget::m_lrcAnalysis
private
MusicLrcContainerForDesktop* MusicRightAreaWidget::m_lrcForDesktop
private
MusicLrcContainerForInterior* MusicRightAreaWidget::m_lrcForInterior
private
MusicLrcContainerForWallpaper* MusicRightAreaWidget::m_lrcForWallpaper
private
QVariant MusicRightAreaWidget::m_rawData
private
MusicSettingWidget* MusicRightAreaWidget::m_settingWidget
private
QWidget* MusicRightAreaWidget::m_stackedStandWidget
private

Definition at line 312 of file musicrightareawidget.h.

Referenced by functionClicked(), functionInitialize(), and resizeWindow().

QWidget* MusicRightAreaWidget::m_stackedWidget
private
Ui::MusicApplication* MusicRightAreaWidget::m_ui
private
MusicVideoPlayWidget* MusicRightAreaWidget::m_videoPlayerWidget
private

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