TTKMusicPlayer
3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The class of the kugou window widget. More...
#include <qkugouwindow.h>
Public Types | |
enum | Module { KuGouSong, KuGouRadio, KuGouList, KugouMovie, KuGouSingle } |
Public Slots | |
void | refresh () |
Public Member Functions | |
QKugouWindow (Module type, QWidget *parent=nullptr) | |
void | setUrl (const QString &url) |
Private Slots | |
void | kugouSongIndexChanged (int index) |
void | kugouRadioIndexChanged (int index) |
void | kugouMVIndexChanged (int index) |
Private Member Functions | |
void | createWebViewer () |
void | createKugouSongWidget () |
void | createKugouRadioWidget () |
void | createKugouListWidget () |
void | createKugouMovieWidget () |
void | createKugouSingleWidget () |
void | changeClickedButtonStyle (int index) |
The class of the kugou window widget.
Definition at line 30 of file qkugouwindow.h.
enum QKugouWindow::Module |
Enumerator | |
---|---|
KuGouSong |
KuGou Song |
KuGouRadio |
KuGou Radio |
KuGouList |
KuGou List |
KugouMovie |
Kugou Mv |
KuGouSingle |
KuGou Single |
Definition at line 34 of file qkugouwindow.h.
|
explicit |
Object constructor.
Definition at line 57 of file qkugouwindow.cpp.
References createKugouListWidget(), createKugouMovieWidget(), createKugouRadioWidget(), createKugouSingleWidget(), createKugouSongWidget(), KuGouList, KugouMovie, KuGouRadio, KuGouSingle, KuGouSong, and TTK_INIT_PRIVATE.
|
private |
Change clicked button style by index.
Definition at line 417 of file qkugouwindow.cpp.
References TTK::UI::PushButtonStyle01, TTK::UI::PushButtonStyle02, and TTK_D.
Referenced by kugouMVIndexChanged(), kugouRadioIndexChanged(), and kugouSongIndexChanged().
|
private |
Create kugou list widget.
Definition at line 319 of file qkugouwindow.cpp.
References createWebViewer(), QKugouUrl::makeListUrl(), TTK_D, and TTKObjectCast.
Referenced by QKugouWindow().
|
private |
Create kugou movie widget.
Definition at line 348 of file qkugouwindow.cpp.
References createWebViewer(), kugouMVIndexChanged(), TTK::UI::PushButtonStyle01, QtButtonGroupConnect, TTK_D, TTK_SLOT, and TTK::UI::WidgetStyle01.
Referenced by QKugouWindow().
|
private |
Create kugou radio widget.
Definition at line 271 of file qkugouwindow.cpp.
References createWebViewer(), kugouRadioIndexChanged(), TTK::UI::PushButtonStyle01, QtButtonGroupConnect, TTK_D, TTK_SLOT, and TTK::UI::WidgetStyle01.
Referenced by QKugouWindow().
|
private |
Create kugou single widget.
Definition at line 396 of file qkugouwindow.cpp.
References createWebViewer(), QKugouUrl::makeKuiSheUrl(), setUrl(), and TTK_D.
Referenced by QKugouWindow().
|
private |
Create kugou song widget.
Definition at line 213 of file qkugouwindow.cpp.
References createWebViewer(), kugouSongIndexChanged(), TTK::UI::PushButtonStyle01, QtButtonGroupConnect, TTK_D, TTK_SLOT, and TTK::UI::WidgetStyle01.
Referenced by QKugouWindow().
|
private |
Create web view widget.
Definition at line 185 of file qkugouwindow.cpp.
References TTK_D.
Referenced by createKugouListWidget(), createKugouMovieWidget(), createKugouRadioWidget(), createKugouSingleWidget(), and createKugouSongWidget().
|
privateslot |
Kugou MV index changed.
Definition at line 171 of file qkugouwindow.cpp.
References changeClickedButtonStyle(), QKugouUrl::makeMVRadioUrl(), QKugouUrl::makeMVRecommendUrl(), and setUrl().
Referenced by createKugouMovieWidget().
|
privateslot |
Kugou radio index changed.
Definition at line 157 of file qkugouwindow.cpp.
References changeClickedButtonStyle(), QKugouUrl::makeRadioHighFmUrl(), QKugouUrl::makeRadioPublicUrl(), and setUrl().
Referenced by createKugouRadioWidget().
|
privateslot |
Kugou song index changed.
Definition at line 141 of file qkugouwindow.cpp.
References changeClickedButtonStyle(), QKugouUrl::makeSongCategoryUrl(), QKugouUrl::makeSongRankUrl(), QKugouUrl::makeSongRecommendUrl(), QKugouUrl::makeSongSingerUrl(), and setUrl().
Referenced by createKugouSongWidget().
|
slot |
Set web index refresh.
Definition at line 117 of file qkugouwindow.cpp.
References TTK_D, TTK_SIGNLE_SHOT, TTK_SLOT, and TTKObjectCast.
void QKugouWindow::setUrl | ( | const QString & | url | ) |
Set current web viewer url to show.
Definition at line 88 of file qkugouwindow.cpp.
References TTK_D, and TTKObjectCast.
Referenced by createKugouSingleWidget(), kugouMVIndexChanged(), kugouRadioIndexChanged(), and kugouSongIndexChanged().