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 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, kugouListWidget, VideoWidget,
  kugouLiveWidget, LrcWidget, SearchWidget, SearchSingleWidget,
  SimilarWidget, AlbumWidget, ArtistWidget, ArtistCategoryWidget,
  ToplistWidget, PlaylistWidget, AdvancedSearchWidget, RecommendWidget,
  IndentifyWidget, KuiSheWidget, WebDJRadioWidget, WebMVRadioWidget,
  LocalManagerWidget, CloudManagerWidget, ScreenSaverWidget, PlaylistBackupWidget
}
 

Public Slots

void functionGoBack ()
 
void functionClicked (int index, QWidget *widget=nullptr)
 
void showSongCommentsWidget ()
 
void showSimilarFound (const QString &text)
 
void showAlbumFound (const QString &text, const QString &id)
 
void showArtistCategoryFound ()
 
void showArtistSearchFound ()
 
void showAlbumSearchFound ()
 
void showMovieSearchFound ()
 
void showMovieSearchRadioFound ()
 
void showArtistFound (const QString &text, const QString &id)
 
void showToplistFound ()
 
void showPlaylistFound (const QString &id)
 
void showRecommendFound ()
 
void showAdvancedSearchFound ()
 
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

kugouListWidget 

insert kugou list widget

VideoWidget 

insert video widget

kugouLiveWidget 

insert kugou live widget

LrcWidget 

insert lrc display 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

ArtistCategoryWidget 

insert artist category found widget

ToplistWidget 

insert toplist found widget

PlaylistWidget 

insert playlist found widget

AdvancedSearchWidget 

insert advanced search widget

RecommendWidget 

insert recommend found widget

IndentifyWidget 

insert indentify songs widget

KuiSheWidget 

insert kugou kuishe widget

WebDJRadioWidget 

insert web dj radio widget

WebMVRadioWidget 

insert web mv 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)

Music album search function.

Definition at line 238 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)

Music artist search function.

Definition at line 232 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 804 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 221 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 133 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 320 of file musicrightareawidget.cpp.

References AdvancedSearchWidget, AlbumWidget, ArtistCategoryWidget, ArtistWidget, createkWebWindow(), functionInitialize(), IndentifyWidget, MusicWebDJRadioWidget::initialize(), KugGouRadioWidget, KugGouSongWidget, QKugouWindow::KuGouList, kugouListWidget, kugouLiveWidget, QKugouWindow::KugouMovie, 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, PlaylistWidget, MusicToastLabel::popup(), MusicVideoPlayWidget::popupMode(), MusicIdentifySongWidget::queryIdentifyKey(), RecommendWidget, ScreenSaverWidget, SearchSingleWidget, SearchWidget, MusicWebMVRadioQueryWidget::setCurrentValue(), SimilarWidget, TTK::UI::TinyBtnLrcCollapse, ToplistWidget, TTKStaticCast, updateBackgroundTheme(), updateBackgroundThemeDownload(), videoFullscreen(), videoSetPopup(), VideoWidget, WebDJRadioWidget, and WebMVRadioWidget.

Referenced by applyParameter(), MusicConnectLocalWidget::changeStatckedWidgetThird(), MusicToolSetsWidget::currentItemClicked(), MusicEnhancedPopWidget::helpButtonClicked(), MusicCloudSharedSongWidget::initialize(), MusicWebFMRadioWidget::itemDoubleClicked(), setupUi(), showAdvancedSearchFound(), showAlbumFound(), showArtistCategoryFound(), showArtistFound(), showMovieSearchRadioFound(), showPlaylistFound(), showRecommendFound(), showSimilarFound(), showSingleSearchedFound(), showSongCommentsWidget(), showSongMainWidget(), showSongSearchedFound(), showToplistFound(), showVideoSearchedFound(), videoNeedToClose(), and videoSetPopup().

void MusicRightAreaWidget::functionGoBack ( )
slot

Function go back clicked.

Definition at line 308 of file musicrightareawidget.cpp.

Referenced by setupUi().

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

Get class object instance.

Definition at line 73 of file musicrightareawidget.cpp.

References m_instance.

Referenced by 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 143 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)

Music movie radio search function.

Definition at line 250 of file musicrightareawidget.cpp.

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

Referenced by MusicWebMVRadioInfoTableWidget::itemCellClicked().

void MusicRightAreaWidget::movieSearchByID ( const QString &  id)

Music movie search function.

Definition at line 244 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 138 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 672 of file musicrightareawidget.cpp.

References m_lrcForDesktop, and MusicLrcContainerForDesktop::setWindowLockedChanged().

Referenced by MusicSystemTrayMenu::setWindowLockedChanged().

void MusicRightAreaWidget::setWindowLrcTypeChanged ( )
slot
void MusicRightAreaWidget::showAdvancedSearchFound ( )
slot

Music advanced search function.

Definition at line 624 of file musicrightareawidget.cpp.

References AdvancedSearchWidget, and functionClicked().

Referenced by MusicMoreFunctionsPopWidget::functionClicked().

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

Music album search function.

Definition at line 574 of file musicrightareawidget.cpp.

References m_rawData, and showAlbumFound().

Referenced by albumSearchByID().

void MusicRightAreaWidget::showArtistCategoryFound ( )
slot

Music artist category function.

Definition at line 563 of file musicrightareawidget.cpp.

References ArtistCategoryWidget, functionClicked(), m_stackedWidget, and TTKObjectCast.

Referenced by MusicMoreFunctionsPopWidget::functionClicked().

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

Music artist search function.

Definition at line 569 of file musicrightareawidget.cpp.

References m_rawData, and showArtistFound().

Referenced by artistSearchByID().

void MusicRightAreaWidget::showMovieSearchFound ( )
slot

Music movie search function.

Definition at line 579 of file musicrightareawidget.cpp.

References m_rawData, and showVideoSearchedFound().

Referenced by movieSearchByID().

void MusicRightAreaWidget::showMovieSearchRadioFound ( )
slot
void MusicRightAreaWidget::showPlaylistFound ( const QString &  id)
slot
void MusicRightAreaWidget::showRecommendFound ( )
slot

Music recommend function.

Definition at line 618 of file musicrightareawidget.cpp.

References functionClicked(), m_stackedWidget, RecommendWidget, and TTKObjectCast.

Referenced by MusicMoreFunctionsPopWidget::functionClicked().

void MusicRightAreaWidget::showSettingWidget ( ) const
void MusicRightAreaWidget::showSimilarFound ( const QString &  text)
slot
void MusicRightAreaWidget::showSingleSearchedFound ( const QString &  id)
slot

Music song search by given id.

Definition at line 635 of file musicrightareawidget.cpp.

References functionClicked(), m_ui, and SearchSingleWidget.

Referenced by MusicAdvancedSearchedWidget::searchButtonClicked().

void MusicRightAreaWidget::showSongCommentsWidget ( )
slot
void MusicRightAreaWidget::showSongMainWidget ( )
slot

Music load song index widget.

To prevent concise state changed while function windowConciseChanged first called

Definition at line 655 of file musicrightareawidget.cpp.

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

void MusicRightAreaWidget::showSongSearchedFound ( const QString &  text)
slot
void MusicRightAreaWidget::showToplistFound ( )
slot

Music toplist function.

Definition at line 605 of file musicrightareawidget.cpp.

References functionClicked(), m_stackedWidget, ToplistWidget, and TTKObjectCast.

Referenced by MusicMoreFunctionsPopWidget::functionClicked().

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 734 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 752 of file musicrightareawidget.cpp.

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

Referenced by functionClicked().

void MusicRightAreaWidget::videoNeedToClose ( )
slot

Set video widget close and delete.

Definition at line 743 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 308 of file musicrightareawidget.h.

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

MusicRightAreaWidget * MusicRightAreaWidget::m_instance = nullptr
staticprivate

Definition at line 319 of file musicrightareawidget.h.

Referenced by instance(), and MusicRightAreaWidget().

bool MusicRightAreaWidget::m_lowPowerMode
private

Definition at line 307 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 310 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: