TTKMusicPlayer  4.3.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 | 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  FunctionMode {
  MainRecommendWidget, KugouRadioWidget, PlaylistWidget, KugouMovieWidget,
  VideoWidget, LrcWidget, SongRecommendWidget, ToplistWidget,
  ArtistCategoryWidget, PlaylistCategoryWidget, SearchWidget, SearchSingleWidget,
  SimilarWidget, AlbumWidget, ArtistWidget, PlaylistInfoWidget,
  SongDailyWidget, AdvancedSearchWidget, IndentifyWidget, KugouKuiSheWidget,
  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 showArtistFound (const QString &text, const QString &id)
 
void showPlaylistFound (const QString &id)
 
void showPlaylistCategoryFound (const QString &id, const QString &value)
 
void showMovieRadioFound (const QVariant &data)
 
void showMovieSearchedFound (const QString &name, const QString &id)
 
void showPersonalRadioFound (const QString &id)
 
void showSongSearchedFound (const QString &text)
 
void showSingleSearchedFound (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 showContainerForWallpaper ()
 
void changeDownloadFulllyWidget ()
 
void changeDownloadCustumWidget ()
 

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 findTimePosition (qint64 time) const
 
void checkMetaDataValid (bool mode) const
 
void showSettingWidget () const
 
void applyParameter ()
 
void resizeWidgetGeometry ()
 

Static Public Member Functions

static MusicRightAreaWidgetinstance ()
 

Private Member Functions

void functionInitialize ()
 
void functionCleanup ()
 
void createkWebWindow (int type)
 

Private Attributes

Ui::MusicApplication * m_ui
 
bool m_lowPowerMode
 
FunctionMode m_modeIndex
 
FunctionMode m_lastModeIndex
 
int m_lastWidgetIndex
 
QWidget * m_currentWidget
 
MusicSettingWidgetm_settingWidget
 
MusicVideoPlayWidgetm_videoWidget
 
MusicLrcAnalysism_lrcAnalysis
 
MusicLrcContainerForInteriorm_interiorLrc
 
MusicLrcContainerForDesktopm_desktopLrc
 
MusicLrcContainerForWallpaperm_wallpaperLrc
 
MusicDownloadStatusModulem_downloadStatus
 

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
MainRecommendWidget 

Insert main recommend widget

KugouRadioWidget 

Insert kugou radio widget

PlaylistWidget 

Insert kugou playlist widget

KugouMovieWidget 

Insert kugou movie widget

VideoWidget 

Insert video widget

LrcWidget 

Insert lrc display widget

SongRecommendWidget 

Insert song 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

PlaylistInfoWidget 

Insert playlist found widget

SongDailyWidget 

Insert song daily widget

AdvancedSearchWidget 

Insert advanced search widget

IndentifyWidget 

Insert indentify songs widget

KugouKuiSheWidget 

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 45 of file musicrightareawidget.h.

Constructor & Destructor Documentation

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

Object destructor.

Definition at line 69 of file musicrightareawidget.cpp.

References m_desktopLrc, m_downloadStatus, m_settingWidget, m_videoWidget, and m_wallpaperLrc.

Member Function Documentation

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

Change to download fully widget.

Definition at line 820 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_downloadStatus.

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

void MusicRightAreaWidget::createkWebWindow ( int  type)
private

Create kugou web window.

Definition at line 893 of file musicrightareawidget.cpp.

References G_SETTING_PTR, m_currentWidget, m_ui, QKugouWindow::None, MusicSettingManager::RippleLowPowerMode, and TTKStaticCast.

Referenced by functionClicked().

bool MusicRightAreaWidget::destopLrcVisible ( ) const

Get destop lrc visible state.

Definition at line 143 of file musicrightareawidget.cpp.

References m_desktopLrc.

Referenced by MusicApplication::writeSystemConfigToFile().

void MusicRightAreaWidget::findTimePosition ( qint64  time) const
void MusicRightAreaWidget::functionCleanup ( )
private

Function widget clean up.

Definition at line 857 of file musicrightareawidget.cpp.

References DEFAULT_CONTAINER_SIZE, m_lastWidgetIndex, m_ui, and MAX_CONTAINER_SIZE.

Referenced by functionClicked().

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

Function button clicked.

Definition at line 318 of file musicrightareawidget.cpp.

References AdvancedSearchWidget, AlbumWidget, ArtistCategoryWidget, ArtistWidget, MusicTopAreaWidget::backgroundThemeDownloadFinished(), MusicTopAreaWidget::backgroundTransparentChanged(), createkWebWindow(), DEFAULT_CONTAINER_SIZE, functionCleanup(), functionInitialize(), IndentifyWidget, MusicIdentifySongWidget::initialize(), MusicWebDJRadioWidget::initialize(), MusicTopAreaWidget::instance(), KugouKuiSheWidget, KugouMovieWidget, KugouRadioWidget, LrcWidget, m_currentWidget, m_lastModeIndex, m_lastWidgetIndex, m_modeIndex, m_ui, m_videoWidget, MainRecommendWidget, QKugouWindow::Movie, MUSIC_LRC_PAGE, MUSIC_SEARCH_PAGE, PlaylistBackupWidget, PlaylistCategoryWidget, PlaylistInfoWidget, PlaylistWidget, MusicToastLabel::popup(), MusicVideoPlayWidget::popupMode(), QKugouWindow::Radio, ScreenSaverWidget, SearchSingleWidget, SearchWidget, MusicRecommendQueryWidget::setCurrentValue(), MusicToplistQueryWidget::setCurrentValue(), MusicArtistListQueryWidget::setCurrentValue(), MusicWebMVRadioQueryWidget::setCurrentValue(), MusicPlaylistQueryWidget::setCurrentValue(), SimilarWidget, QKugouWindow::Single, SongDailyWidget, SongRecommendWidget, TTK::UI::TinyBtnLrcCollapse, ToplistWidget, TTKStaticCast, videoFullscreen(), videoSetPopup(), VideoWidget, WebDJRadioWidget, WebMVRadioWidget, and WebPVRadioWidget.

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

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

Get class object instance.

Definition at line 83 of file musicrightareawidget.cpp.

References m_instance.

Referenced by MusicPlaylistCategoryItem::buttonClicked(), MusicConnectLocalWidget::changeStatckedWidgetThird(), MusicApplication::createRightMenu(), MusicMainRecommendWidget::createTopWidget(), MusicLrcContainerForDesktop::creatToolBarWidget(), MusicToolSetsWidget::currentItemClicked(), MusicArtistMvsQueryWidget::currentItemClicked(), MusicArtistListQueryWidget::currentItemClicked(), MusicArtistAlbumsQueryWidget::currentItemClicked(), MusicItemRecommendQueryWidget::currentItemClicked(), MusicItemMoreRecommendQueryWidget::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::showSongMovieWidget(), MusicApplicationModule::showSoundEffectWidget(), MusicLeftAreaWidget::switchToSelectedItemStyle(), and MusicLrcFloatWidget::wallpaperButtonClicked().

bool MusicRightAreaWidget::interiorLrcVisible ( ) const

Get interior lrc visible state.

Definition at line 153 of file musicrightareawidget.cpp.

References m_interiorLrc.

void MusicRightAreaWidget::loadCurrentSongLrc ( const QString &  name,
const QString &  path 
) const
void MusicRightAreaWidget::lrcDisplayAllClicked ( )
slot
void MusicRightAreaWidget::resizeWidgetGeometry ( )
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 148 of file musicrightareawidget.cpp.

References m_interiorLrc.

Referenced by MusicApplication::readSystemConfigFromFile().

void MusicRightAreaWidget::setupUi ( Ui::MusicApplication *  ui)
void MusicRightAreaWidget::setWindowLockedChanged ( )
slot

Lock current desktop lrc state changed.

Definition at line 688 of file musicrightareawidget.cpp.

References m_desktopLrc, and MusicLrcContainerForDesktop::setWindowLockedChanged().

Referenced by MusicSystemTrayMenu::setWindowLockedChanged().

void MusicRightAreaWidget::setWindowLrcTypeChanged ( )
slot
void MusicRightAreaWidget::showAlbumFound ( const QString &  text,
const QString &  id 
)
slot
void MusicRightAreaWidget::showArtistFound ( const QString &  text,
const QString &  id 
)
slot
void MusicRightAreaWidget::showCommentsFound ( )
slot
void MusicRightAreaWidget::showContainerForWallpaper ( )
slot
void MusicRightAreaWidget::showMovieRadioFound ( const QVariant &  data)
slot
void MusicRightAreaWidget::showMovieSearchedFound ( const QString &  name,
const QString &  id 
)
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 662 of file musicrightareawidget.cpp.

References functionClicked(), m_ui, and SearchSingleWidget.

Referenced by MusicAdvancedSearchedWidget::searchButtonClicked().

void MusicRightAreaWidget::showSongMainWidget ( )
slot

Song main widget.

To prevent concise state changed while function windowConciseChanged first called

Definition at line 668 of file musicrightareawidget.cpp.

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

void MusicRightAreaWidget::showSongSearchedFound ( const QString &  text)
slot
void MusicRightAreaWidget::startDrawLrc ( ) const
void MusicRightAreaWidget::stopDrawLrc ( ) const
void MusicRightAreaWidget::updateCurrentLrc ( qint64  current,
qint64  total,
bool  playState 
) const
void MusicRightAreaWidget::videoActiveWindow ( )
slot

Set video widget actived window.

Definition at line 750 of file musicrightareawidget.cpp.

References MusicApplication::instance(), and m_videoWidget.

Referenced by videoSetPopup().

void MusicRightAreaWidget::videoFullscreen ( bool  full)
slot

Set video widget fullScreen or not.

Definition at line 768 of file musicrightareawidget.cpp.

References m_videoWidget, MusicVideoPlayWidget::resizeGeometry(), and TTKAbstractMoveWidget::setBlockOption().

Referenced by functionClicked().

void MusicRightAreaWidget::videoNeedToClose ( )
slot

Set video widget close and delete.

Definition at line 759 of file musicrightareawidget.cpp.

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

void MusicRightAreaWidget::videoSetPopup ( bool  popup)
slot

Member Data Documentation

QWidget* MusicRightAreaWidget::m_currentWidget
private
MusicLrcContainerForDesktop* MusicRightAreaWidget::m_desktopLrc
private
MusicDownloadStatusModule* MusicRightAreaWidget::m_downloadStatus
private
MusicRightAreaWidget * MusicRightAreaWidget::m_instance = nullptr
staticprivate

Definition at line 285 of file musicrightareawidget.h.

Referenced by instance(), and MusicRightAreaWidget().

MusicLrcContainerForInterior* MusicRightAreaWidget::m_interiorLrc
private
FunctionMode MusicRightAreaWidget::m_lastModeIndex
private

Definition at line 274 of file musicrightareawidget.h.

Referenced by functionClicked(), and functionGoBack().

int MusicRightAreaWidget::m_lastWidgetIndex
private

Definition at line 275 of file musicrightareawidget.h.

Referenced by functionCleanup(), functionClicked(), and functionGoBack().

bool MusicRightAreaWidget::m_lowPowerMode
private

Definition at line 272 of file musicrightareawidget.h.

Referenced by applyParameter().

MusicLrcAnalysis* MusicRightAreaWidget::m_lrcAnalysis
private
FunctionMode MusicRightAreaWidget::m_modeIndex
private
MusicSettingWidget* MusicRightAreaWidget::m_settingWidget
private
Ui::MusicApplication* MusicRightAreaWidget::m_ui
private
MusicVideoPlayWidget* MusicRightAreaWidget::m_videoWidget
private
MusicLrcContainerForWallpaper* MusicRightAreaWidget::m_wallpaperLrc
private

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