diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2016-01-19 07:42:23 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2016-01-19 07:42:23 +0000 |
| commit | 2ab1fd161b64ad3cdf87bf8bf0be78d42f69157c (patch) | |
| tree | a0c0843e5a75eb3170410651a7cafe15dd662cdb /src/plugins/Ui | |
| parent | 9e379f3ee5febcb63182ad8902774e7d6761cfaf (diff) | |
| download | qmmp-2ab1fd161b64ad3cdf87bf8bf0be78d42f69157c.tar.gz qmmp-2ab1fd161b64ad3cdf87bf8bf0be78d42f69157c.tar.bz2 qmmp-2ab1fd161b64ad3cdf87bf8bf0be78d42f69157c.zip | |
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
Diffstat (limited to 'src/plugins/Ui')
| -rw-r--r-- | src/plugins/Ui/qsui/actionmanager.cpp | 3 | ||||
| -rw-r--r-- | src/plugins/Ui/qsui/actionmanager.h | 3 | ||||
| -rw-r--r-- | src/plugins/Ui/qsui/mainwindow.cpp | 2 | ||||
| -rw-r--r-- | src/plugins/Ui/skinned/actionmanager.cpp | 3 | ||||
| -rw-r--r-- | src/plugins/Ui/skinned/actionmanager.h | 3 | ||||
| -rw-r--r-- | src/plugins/Ui/skinned/mainwindow.cpp | 2 | ||||
| -rw-r--r-- | src/plugins/Ui/skinned/playlist.cpp | 2 |
7 files changed, 13 insertions, 5 deletions
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(); |
