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 | Public Member Functions | Private Slots | Private Member Functions | List of all members
QKugouWindow Class Reference

The class of the kugou window widget. More...

#include <qkugouwindow.h>

+ Inheritance diagram for QKugouWindow:

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)
 

Detailed Description

The class of the kugou window widget.

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

Definition at line 30 of file qkugouwindow.h.

Member Enumeration Documentation

Enumerator
KuGouSong 

KuGou Song

KuGouRadio 

KuGou Radio

KuGouList 

KuGou List

KugouMovie 

Kugou Mv

KuGouSingle 

KuGou Single

Definition at line 34 of file qkugouwindow.h.

Constructor & Destructor Documentation

QKugouWindow::QKugouWindow ( Module  type,
QWidget *  parent = nullptr 
)
explicit

Member Function Documentation

void QKugouWindow::changeClickedButtonStyle ( int  index)
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().

void QKugouWindow::createKugouListWidget ( )
private

Create kugou list widget.

Definition at line 319 of file qkugouwindow.cpp.

References createWebViewer(), QKugouUrl::makeListUrl(), TTK_D, and TTKObjectCast.

Referenced by QKugouWindow().

void QKugouWindow::createKugouMovieWidget ( )
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().

void QKugouWindow::createKugouRadioWidget ( )
private
void QKugouWindow::createKugouSingleWidget ( )
private

Create kugou single widget.

Definition at line 396 of file qkugouwindow.cpp.

References createWebViewer(), QKugouUrl::makeKuiSheUrl(), setUrl(), and TTK_D.

Referenced by QKugouWindow().

void QKugouWindow::createKugouSongWidget ( )
private
void QKugouWindow::createWebViewer ( )
private

Create web view widget.

Definition at line 185 of file qkugouwindow.cpp.

References TTK_D.

Referenced by createKugouListWidget(), createKugouMovieWidget(), createKugouRadioWidget(), createKugouSingleWidget(), and createKugouSongWidget().

void QKugouWindow::kugouMVIndexChanged ( int  index)
privateslot

Kugou MV index changed.

Definition at line 171 of file qkugouwindow.cpp.

References changeClickedButtonStyle(), QKugouUrl::makeMVRadioUrl(), QKugouUrl::makeMVRecommendUrl(), and setUrl().

Referenced by createKugouMovieWidget().

void QKugouWindow::kugouRadioIndexChanged ( int  index)
privateslot

Kugou radio index changed.

Definition at line 157 of file qkugouwindow.cpp.

References changeClickedButtonStyle(), QKugouUrl::makeRadioHighFmUrl(), QKugouUrl::makeRadioPublicUrl(), and setUrl().

Referenced by createKugouRadioWidget().

void QKugouWindow::kugouSongIndexChanged ( int  index)
privateslot
void QKugouWindow::refresh ( )
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().


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