1 #ifndef MUSICSONGSCONTAINERWIDGET_H
2 #define MUSICSONGSCONTAINERWIDGET_H
27 class MusicSongsListWidget;
58 bool addSongItemList(
const MusicSongItemList &items);
62 void appendSongItemList(
const MusicSongItemList &items);
71 void importSongsByUrl(
const QString &path,
int playlistRow);
75 void importSongsByPath(
const QStringList &files,
int playlistRow);
80 QStringList songsFileName(
int index)
const;
84 QStringList songsFilePath(
int index)
const;
88 int mapSongIndexByFilePath(
int playlistRow,
const QString &path)
const;
92 QString mapFilePathBySongIndex(
int playlistRow,
int index)
const;
97 void removeSearchResult(
int &row);
106 void setPlayRowIndex(
int index);
111 void playLocation(
int index);
115 void selectRow(
int index);
119 void updateDurationLabel(
const QString ¤t,
const QString &total)
const;
125 void addNewRowItem();
129 void deleteRowItem(
int index);
133 void deleteRowItems();
137 void deleteAllItems(
int index);
141 void changRowItemName(
int index,
const QString &
name);
145 void swapDragItemIndex(
int start,
int end);
149 void addToPlayLater(
int index);
153 void addToPlayedList(
int index);
165 void showSongCheckToolsWidget();
169 void showLrcDownloadBatchWidget();
173 void searchResultChanged(
int row,
int column);
178 void updateCurrentIndex();
182 void songToLovestListAt(
bool state,
int row);
186 void addSongToLovestList(
bool state,
int row);
194 void addSongToPlaylist(
const QStringList &items);
198 void removeItemAt(
const TTKIntList &rows,
bool fileRemove);
202 void itemRowSwaped(
int start,
int end,
int play, MusicSongList &songs);
206 void isCurrentPlaylistRow(
bool &
state);
210 void isSearchedResultEmpty(
bool &empty);
214 void setSongPlayCount(
int index);
218 void appendRecentSongs(
int index);
222 void querySongItemList(MusicSongItemList &songs);
226 void updateCurrentArtist();
230 void showFloatWidget();
234 void songListSortBy(
int index);
240 void showSearchWidget();
244 void sliderValueChanaged(
int value);
248 void deleteFunctionWidget();
254 virtual void resizeEvent(QResizeEvent *event)
override final;
255 virtual void contextMenuEvent(QContextMenuEvent *event)
override final;
256 virtual void dragEnterEvent(QDragEnterEvent *event)
override final;
257 virtual void dragMoveEvent(QDragMoveEvent *event)
override final;
258 virtual void dropEvent(QDropEvent *event)
override final;
266 void closeSearchWidget();
270 void closeSearchWidgetInNeed();
274 void checkTitleNameValid(QString &
name);
290 void setInputModule(QObject *
object)
const;
294 void resizeGeometry();
298 void updatePlayedRows(
int start,
int end);
302 void importSongsWithProgress(QWidget *progress,
int offset,
const QStringList &files,
int playlistRow);
316 #endif // MUSICSONGSCONTAINERWIDGET_H
#define TTK_MODULE_EXPORT
The class of the search result data item.
The class of the item search interface.
The class of the music song item.
The class of the song search widget.