From 2ab1fd161b64ad3cdf87bf8bf0be78d42f69157c Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 19 Jan 2016 07:42:23 +0000 Subject: added feature to refresh playlist git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6060 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Ui/qsui/actionmanager.cpp | 3 ++- src/plugins/Ui/qsui/actionmanager.h | 3 ++- src/plugins/Ui/qsui/mainwindow.cpp | 2 ++ src/plugins/Ui/skinned/actionmanager.cpp | 3 ++- src/plugins/Ui/skinned/actionmanager.h | 3 ++- src/plugins/Ui/skinned/mainwindow.cpp | 2 +- src/plugins/Ui/skinned/playlist.cpp | 2 ++ 7 files changed, 13 insertions(+), 5 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/Ui/qsui/actionmanager.cpp b/src/plugins/Ui/qsui/actionmanager.cpp index 97d153206..2e63a0faa 100644 --- a/src/plugins/Ui/qsui/actionmanager.cpp +++ b/src/plugins/Ui/qsui/actionmanager.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2010-2015 by Ilya Kotov * + * Copyright (C) 2010-2016 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -79,6 +79,7 @@ ActionManager::ActionManager(QObject *parent) : m_actions[PL_REMOVE_INVALID] = createAction(tr("Remove unavailable files"), "remove_invalid", "", "dialog-error"); m_actions[PL_REMOVE_DUPLICATES] = createAction(tr("Remove duplicates"), "remove_duplicates", ""); + m_actions[PL_REFRESH] = createAction(tr("Refresh"), "refresh", "F5", "view-refresh"); m_actions[PL_ENQUEUE] = createAction(tr("&Queue Toggle"), "enqueue", tr("Q")); m_actions[PL_INVERT_SELECTION] = createAction(tr("Invert Selection"), "invert_selection", ""); m_actions[PL_CLEAR_SELECTION] = createAction(tr("&Select None"), "clear_selection", ""); diff --git a/src/plugins/Ui/qsui/actionmanager.h b/src/plugins/Ui/qsui/actionmanager.h index e863c5788..1a1980e41 100644 --- a/src/plugins/Ui/qsui/actionmanager.h +++ b/src/plugins/Ui/qsui/actionmanager.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2010-2015 by Ilya Kotov * + * Copyright (C) 2010-2016 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -81,6 +81,7 @@ public: PL_REMOVE_UNSELECTED, PL_REMOVE_INVALID, PL_REMOVE_DUPLICATES, + PL_REFRESH, PL_ENQUEUE, PL_INVERT_SELECTION, PL_CLEAR_SELECTION, diff --git a/src/plugins/Ui/qsui/mainwindow.cpp b/src/plugins/Ui/qsui/mainwindow.cpp index b7c44e363..ab784f1af 100644 --- a/src/plugins/Ui/qsui/mainwindow.cpp +++ b/src/plugins/Ui/qsui/mainwindow.cpp @@ -473,6 +473,8 @@ void MainWindow::createActions() SLOT(removeInvalidTracks()))); m_ui.menuEdit->addAction(SET_ACTION(ActionManager::PL_REMOVE_DUPLICATES, m_pl_manager, SLOT(removeDuplicates()))); + m_ui.menuEdit->addAction(SET_ACTION(ActionManager::PL_REFRESH, m_pl_manager, + SLOT(refresh()))); m_ui.menuEdit->addSeparator(); //view menu m_ui.menuView->addAction(SET_ACTION(ActionManager::WM_ALLWAYS_ON_TOP, this, SLOT(readSettings()))); diff --git a/src/plugins/Ui/skinned/actionmanager.cpp b/src/plugins/Ui/skinned/actionmanager.cpp index c1b0607af..52b655593 100644 --- a/src/plugins/Ui/skinned/actionmanager.cpp +++ b/src/plugins/Ui/skinned/actionmanager.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2010-2015 by Ilya Kotov * + * Copyright (C) 2010-2016 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -75,6 +75,7 @@ ActionManager::ActionManager(QObject *parent) : m_actions[PL_REMOVE_INVALID] = createAction(tr("Remove unavailable files"), "remove_invalid", "", "dialog-error"); m_actions[PL_REMOVE_DUPLICATES] = createAction(tr("Remove duplicates"), "remove_duplicates", ""); + m_actions[PL_REFRESH] = createAction(tr("Refresh"), "refresh", "F5", "view-refresh"); m_actions[PL_ENQUEUE] = createAction(tr("&Queue Toggle"), "enqueue", tr("Q")); m_actions[PL_INVERT_SELECTION] = createAction(tr("Invert Selection"), "invert_selection", ""); m_actions[PL_CLEAR_SELECTION] = createAction(tr("&Select None"), "clear_selection", ""); diff --git a/src/plugins/Ui/skinned/actionmanager.h b/src/plugins/Ui/skinned/actionmanager.h index 193273b1e..3723f5970 100644 --- a/src/plugins/Ui/skinned/actionmanager.h +++ b/src/plugins/Ui/skinned/actionmanager.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2010-2015 by Ilya Kotov * + * Copyright (C) 2010-2016 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -78,6 +78,7 @@ public: PL_REMOVE_UNSELECTED, PL_REMOVE_INVALID, PL_REMOVE_DUPLICATES, + PL_REFRESH, PL_ENQUEUE, PL_INVERT_SELECTION, PL_CLEAR_SELECTION, diff --git a/src/plugins/Ui/skinned/mainwindow.cpp b/src/plugins/Ui/skinned/mainwindow.cpp index cab91a4f9..f50de5466 100644 --- a/src/plugins/Ui/skinned/mainwindow.cpp +++ b/src/plugins/Ui/skinned/mainwindow.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2006-2015 by Ilya Kotov * + * Copyright (C) 2006-2016 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * diff --git a/src/plugins/Ui/skinned/playlist.cpp b/src/plugins/Ui/skinned/playlist.cpp index cc7412281..6cdc8b9e8 100644 --- a/src/plugins/Ui/skinned/playlist.cpp +++ b/src/plugins/Ui/skinned/playlist.cpp @@ -207,6 +207,8 @@ void PlayList::createActions() SLOT(removeInvalidTracks()))); m_subMenu->addAction(SET_ACTION(ActionManager::PL_REMOVE_DUPLICATES, m_pl_manager, SLOT(removeDuplicates()))); + m_subMenu->addAction(SET_ACTION(ActionManager::PL_REFRESH, m_pl_manager, + SLOT(refresh()))); //sort menu m_sortMenu->addAction(SET_ACTION(ActionManager::PL_SHOW_INFO, m_pl_manager, SLOT (showDetails ()))); m_sortMenu->addSeparator(); -- cgit v1.2.3-13-gbd6f