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

The class of the songs list play table widget. More...

#include <musicsongslistplaytablewidget.h>

+ Inheritance diagram for MusicSongsListPlayTableWidget:

Public Slots

virtual void itemCellEntered (int row, int column) overridefinal
 
virtual void itemCellClicked (int row, int column) overridefinal
 
virtual void removeItems () overridefinal
 
virtual void removeItemAt () overridefinal
 
void removeItemWithFile ()
 
void setChangSongName ()
 
void showMakeRingWidget ()
 
void showTransformWidget ()
 
void searchQueryByName (QAction *action)
 
void addToPlayLater ()
 
void addToPlayedList ()
 
void itemRenameFinished (const QString &name)
 
void songListSortBy (QAction *action)
 
- Public Slots inherited from MusicAbstractSongsListTableWidget
virtual void removeItemAt ()
 
void playClicked ()
 
void clearItems ()
 
void openFileDir ()
 
void showFileInformation ()
 
void showMovieQueryWidget ()
 
void showAlbumQueryWidget ()
 
void showSimilarQueryWidget ()
 
void showSongSharedWidget ()
 
void showDownloadWidget ()
 
void showPlayedMovieQueryWidget ()
 
void showPlayedSimilarQueryWidget ()
 
void showPlayedSongSharedWidget ()
 
- Public Slots inherited from MusicSmoothMovingTableWidget
void timeToAnimation ()
 
void valueChanged (int value)
 
- Public Slots inherited from TTKAbstractTableWidget
virtual void itemCellEntered (int row, int column)
 
virtual void itemCellClicked (int row, int column)
 
virtual void removeItems ()
 

Signals

void isSearchedResultEmpty (bool &empty)
 
void deleteItemAt (const TTKIntList &index, bool fileRemove)
 
void itemIndexSwaped (int start, int end, int play, MusicSongList &songs)
 
void addSongToLovestList (bool state, int row)
 
void showFloatWidget ()
 
void songListSortBy (int index)
 
- Signals inherited from MusicAbstractSongsListTableWidget
void isCurrentPlaylistRow (bool &state)
 

Public Member Functions

 MusicSongsListPlayTableWidget (int index, QWidget *parent=nullptr)
 
 ~MusicSongsListPlayTableWidget ()
 
virtual void updateSongsList (const MusicSongList &songs) overridefinal
 
virtual void selectRow (int index) overridefinal
 
void updateSearchFileName (MusicSongList *songs, const TTKIntList &result)
 
void setSongSort (MusicSongSort *sort)
 
void updateDurationLabel (const QString &current, const QString &total) const
 
void updateCurrentArtist ()
 
void adjustPlayWidgetRow ()
 
bool createUploadFileModule ()
 
- Public Member Functions inherited from MusicAbstractSongsListTableWidget
 MusicAbstractSongsListTableWidget (QWidget *parent=nullptr)
 
 MusicAbstractSongsListTableWidget (int index, QWidget *parent=nullptr)
 
 ~MusicAbstractSongsListTableWidget ()
 
virtual void setSongsList (MusicSongList *songs)
 
int totalHeight () const
 
void setPlaylistRow (int index)
 
void setPlayRowIndex (int index)
 
int playRowIndex () const
 
- Public Member Functions inherited from MusicSmoothMovingTableWidget
 MusicSmoothMovingTableWidget (QWidget *parent=nullptr)
 
 ~MusicSmoothMovingTableWidget ()
 
void setMovedScrollBar (QScrollBar *bar=nullptr)
 
- Public Member Functions inherited from MusicAbstractTableWidget
 MusicAbstractTableWidget (QWidget *parent=nullptr)
 
- Public Member Functions inherited from TTKAbstractTableWidget
 TTKAbstractTableWidget (QWidget *parent=nullptr)
 
 ~TTKAbstractTableWidget ()
 
TTKIntList selectedIndexList () const
 

Private Slots

void showTimeOut ()
 
void stayTimeOut ()
 

Private Member Functions

virtual void mousePressEvent (QMouseEvent *event) overridefinal
 
virtual void mouseMoveEvent (QMouseEvent *event) overridefinal
 
virtual void mouseReleaseEvent (QMouseEvent *event) overridefinal
 
virtual void leaveEvent (QEvent *event) overridefinal
 
virtual void wheelEvent (QWheelEvent *event) overridefinal
 
virtual void contextMenuEvent (QContextMenuEvent *event) overridefinal
 
void closeRenameItem ()
 
void startToDrag ()
 

Private Attributes

QWidget * m_parent
 
int m_dragStartIndex
 
QPoint m_dragStartPoint
 
bool m_mouseMoved
 
QTimer m_timerShow
 
QTimer m_timerStay
 
MusicOpenFileWidgetm_openFileWidget
 
MusicSongsListItemInfoWidgetm_songsInfoWidget
 
MusicSongsListPlayWidgetm_songsPlayWidget
 
bool m_leftButtonPressed
 
bool m_renameActived
 
bool m_deleteItemWithFile
 
MusicSongList m_searchedSongs
 
QTableWidgetItem * m_renameItem
 
MusicLineEditItemDelegatem_renameEditDelegate
 
MusicSongSortm_songSort
 

Additional Inherited Members

- Protected Member Functions inherited from MusicAbstractSongsListTableWidget
void createMoreMenu (QMenu *menu)
 
QString currentSongPath () const
 
QString songPath (int index) const
 
QString currentSongName () const
 
QString songName (int index) const
 
- Protected Member Functions inherited from TTKAbstractTableWidget
void setRowColor (int row, const QColor &color) const
 
bool isValid () const
 
- Protected Attributes inherited from MusicAbstractSongsListTableWidget
int m_playlistRow
 
int m_playRowIndex
 
MusicSongList * m_songs
 
- Protected Attributes inherited from MusicSmoothMovingTableWidget
bool m_initialized
 
int m_previousValue
 
int m_deltaValue
 
QScrollBar * m_scrollBar
 
QTimer * m_animationTimer
 
QPropertyAnimation * m_slowAnimation
 
- Protected Attributes inherited from TTKAbstractTableWidget
int m_previousColorRow
 
int m_previousClickRow
 
QColor m_backgroundColor
 

Detailed Description

The class of the songs list play table widget.

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

Definition at line 34 of file musicsongslistplaytablewidget.h.

Constructor & Destructor Documentation

MusicSongsListPlayTableWidget::MusicSongsListPlayTableWidget ( int  index,
QWidget *  parent = nullptr 
)
explicit
MusicSongsListPlayTableWidget::~MusicSongsListPlayTableWidget ( )

Member Function Documentation

void MusicSongsListPlayTableWidget::addSongToLovestList ( bool  state,
int  row 
)
signal

Add or remove music list song to lovest list by row.

Referenced by itemCellClicked().

void MusicSongsListPlayTableWidget::addToPlayedList ( )
slot
void MusicSongsListPlayTableWidget::addToPlayLater ( )
slot
void MusicSongsListPlayTableWidget::adjustPlayWidgetRow ( )
void MusicSongsListPlayTableWidget::closeRenameItem ( )
private
void MusicSongsListPlayTableWidget::contextMenuEvent ( QContextMenuEvent *  event)
finaloverrideprivatevirtual
bool MusicSongsListPlayTableWidget::createUploadFileModule ( )
void MusicSongsListPlayTableWidget::deleteItemAt ( const TTKIntList index,
bool  fileRemove 
)
signal

Delete items from indexs and check remove file or not.

Referenced by removeItemAt().

void MusicSongsListPlayTableWidget::isSearchedResultEmpty ( bool &  empty)
signal

Check current list is searched or not.

Referenced by contextMenuEvent(), itemCellClicked(), and startToDrag().

void MusicSongsListPlayTableWidget::itemCellClicked ( int  row,
int  column 
)
finaloverridevirtualslot
void MusicSongsListPlayTableWidget::itemCellEntered ( int  row,
int  column 
)
finaloverridevirtualslot
void MusicSongsListPlayTableWidget::itemIndexSwaped ( int  start,
int  end,
int  play,
MusicSongList &  songs 
)
signal

Swap the current play index when user drag and drop.

Referenced by startToDrag().

void MusicSongsListPlayTableWidget::itemRenameFinished ( const QString &  name)
slot

Rename item artist label is finised.

Definition at line 547 of file musicsongslistplaytablewidget.cpp.

References MusicAbstractSongsListTableWidget::m_playRowIndex.

void MusicSongsListPlayTableWidget::leaveEvent ( QEvent *  event)
finaloverrideprivatevirtual

Override the widget event.

Reimplemented from TTKAbstractTableWidget.

Definition at line 640 of file musicsongslistplaytablewidget.cpp.

References closeRenameItem(), TTKAbstractTableWidget::leaveEvent(), and m_songsInfoWidget.

void MusicSongsListPlayTableWidget::mouseMoveEvent ( QMouseEvent *  event)
finaloverrideprivatevirtual
void MusicSongsListPlayTableWidget::mousePressEvent ( QMouseEvent *  event)
finaloverrideprivatevirtual

Override the widget event.

Definition at line 607 of file musicsongslistplaytablewidget.cpp.

References closeRenameItem(), m_dragStartIndex, m_dragStartPoint, and m_leftButtonPressed.

void MusicSongsListPlayTableWidget::mouseReleaseEvent ( QMouseEvent *  event)
finaloverrideprivatevirtual
void MusicSongsListPlayTableWidget::removeItemAt ( )
finaloverridevirtualslot
void MusicSongsListPlayTableWidget::removeItems ( )
finaloverridevirtualslot
void MusicSongsListPlayTableWidget::removeItemWithFile ( )
slot

Remove item or items from list with file.

Definition at line 462 of file musicsongslistplaytablewidget.cpp.

References m_deleteItemWithFile, and removeItemAt().

Referenced by contextMenuEvent().

void MusicSongsListPlayTableWidget::searchQueryByName ( QAction *  action)
slot

Open music song search query.

Definition at line 515 of file musicsongslistplaytablewidget.cpp.

References MusicRightAreaWidget::instance(), and MusicRightAreaWidget::showSongSearchedFound().

Referenced by contextMenuEvent().

void MusicSongsListPlayTableWidget::selectRow ( int  index)
finaloverridevirtual
void MusicSongsListPlayTableWidget::setChangSongName ( )
slot
void MusicSongsListPlayTableWidget::setSongSort ( MusicSongSort sort)
inline

Set music sort.

Definition at line 65 of file musicsongslistplaytablewidget.h.

Referenced by MusicSongsContainerWidget::createWidgetItem().

void MusicSongsListPlayTableWidget::showFloatWidget ( )
signal

Show the float function widget.

Referenced by wheelEvent().

void MusicSongsListPlayTableWidget::showMakeRingWidget ( )
slot

Open music make ring widget.

Definition at line 495 of file musicsongslistplaytablewidget.cpp.

References MusicSongRingtoneMaker::exec(), and TTKAbstractTableWidget::isValid().

Referenced by contextMenuEvent().

void MusicSongsListPlayTableWidget::showTimeOut ( )
privateslot
void MusicSongsListPlayTableWidget::showTransformWidget ( )
slot

Open music transform widget.

Definition at line 505 of file musicsongslistplaytablewidget.cpp.

References MusicTransformWidget::exec(), and TTKAbstractTableWidget::isValid().

Referenced by contextMenuEvent().

void MusicSongsListPlayTableWidget::songListSortBy ( int  index)
signal

Music list songs sort by type.

Referenced by contextMenuEvent(), and songListSortBy().

void MusicSongsListPlayTableWidget::songListSortBy ( QAction *  action)
slot
void MusicSongsListPlayTableWidget::startToDrag ( )
private
void MusicSongsListPlayTableWidget::stayTimeOut ( )
privateslot

Hide play item information widget.

Definition at line 600 of file musicsongslistplaytablewidget.cpp.

References m_songsInfoWidget, and m_timerStay.

Referenced by MusicSongsListPlayTableWidget().

void MusicSongsListPlayTableWidget::updateCurrentArtist ( )

Update current artist when it download finished.

Definition at line 177 of file musicsongslistplaytablewidget.cpp.

References m_songsPlayWidget, and MusicSongsListPlayWidget::updateCurrentArtist().

void MusicSongsListPlayTableWidget::updateDurationLabel ( const QString &  current,
const QString &  total 
) const

Update item duration label.

Definition at line 169 of file musicsongslistplaytablewidget.cpp.

References m_songsPlayWidget, and MusicSongsListPlayWidget::updateDurationLabel().

void MusicSongsListPlayTableWidget::updateSearchFileName ( MusicSongList *  songs,
const TTKIntList result 
)
void MusicSongsListPlayTableWidget::updateSongsList ( const MusicSongList &  songs)
finaloverridevirtual
void MusicSongsListPlayTableWidget::wheelEvent ( QWheelEvent *  event)
finaloverrideprivatevirtual

Override the widget event.

Reimplemented from MusicSmoothMovingTableWidget.

Definition at line 649 of file musicsongslistplaytablewidget.cpp.

References closeRenameItem(), showFloatWidget(), and MusicSmoothMovingTableWidget::wheelEvent().

Member Data Documentation

bool MusicSongsListPlayTableWidget::m_deleteItemWithFile
private

Definition at line 203 of file musicsongslistplaytablewidget.h.

Referenced by removeItemAt(), and removeItemWithFile().

int MusicSongsListPlayTableWidget::m_dragStartIndex
private

Definition at line 193 of file musicsongslistplaytablewidget.h.

Referenced by mousePressEvent(), and startToDrag().

QPoint MusicSongsListPlayTableWidget::m_dragStartPoint
private

Definition at line 194 of file musicsongslistplaytablewidget.h.

Referenced by mouseMoveEvent(), and mousePressEvent().

bool MusicSongsListPlayTableWidget::m_leftButtonPressed
private
bool MusicSongsListPlayTableWidget::m_mouseMoved
private

Definition at line 195 of file musicsongslistplaytablewidget.h.

Referenced by mouseMoveEvent(), mouseReleaseEvent(), and startToDrag().

MusicOpenFileWidget* MusicSongsListPlayTableWidget::m_openFileWidget
private
QWidget* MusicSongsListPlayTableWidget::m_parent
private

Definition at line 192 of file musicsongslistplaytablewidget.h.

Referenced by createUploadFileModule().

bool MusicSongsListPlayTableWidget::m_renameActived
private

Definition at line 203 of file musicsongslistplaytablewidget.h.

Referenced by closeRenameItem(), and setChangSongName().

MusicLineEditItemDelegate* MusicSongsListPlayTableWidget::m_renameEditDelegate
private
QTableWidgetItem* MusicSongsListPlayTableWidget::m_renameItem
private

Definition at line 205 of file musicsongslistplaytablewidget.h.

Referenced by closeRenameItem(), and setChangSongName().

MusicSongList MusicSongsListPlayTableWidget::m_searchedSongs
private

Definition at line 204 of file musicsongslistplaytablewidget.h.

Referenced by updateSearchFileName().

MusicSongsListItemInfoWidget* MusicSongsListPlayTableWidget::m_songsInfoWidget
private
MusicSongSort* MusicSongsListPlayTableWidget::m_songSort
private

Definition at line 207 of file musicsongslistplaytablewidget.h.

Referenced by contextMenuEvent(), and songListSortBy().

MusicSongsListPlayWidget* MusicSongsListPlayTableWidget::m_songsPlayWidget
private
QTimer MusicSongsListPlayTableWidget::m_timerShow
private
QTimer MusicSongsListPlayTableWidget::m_timerStay
private

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