--- a/GUI/playlist/view/ContextMenu.h
+++ b/GUI/playlist/view/ContextMenu.h
@@ -1,5 +1,3 @@
-/* ContextMenu.h */
-
/* Copyright (C) 2013 Lucio Carreras
*
* This file is part of sayonara player
@@ -17,9 +15,6 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-
-
-
#ifndef CONTEXTMENU_H
#define CONTEXTMENU_H
@@ -27,14 +22,10 @@
#include <QAction>
#include <QEvent>
-#define ENTRY_INFO (1 << 0)
-#define ENTRY_EDIT (1 << 1)
-#define ENTRY_REMOVE (1 << 2)
-#define ENTRY_DELETE (1 << 3)
-#define ENTRY_PLAY_NEXT (1 << 4)
-#define ENTRY_APPEND (1 << 5)
-#define ENTRY_SORT_TNO (1 << 6)
-#define ENTRY_INVERT_SELECTION (1<<7)
+enum PopupEntry {
+ ENTRY_NONE, ENTRY_INFO = 0x1, ENTRY_REMOVE=0x2, ENTRY_SORT_TNO = 0x4,
+ ENTRY_INVERT_SELECTION = 0x8, ENTRY_CLEAR_SELECTION = 0x10,
+ ENTRY_SELECT_ALL = 0x20};
class ContextMenu : public QMenu {
Q_OBJECT
@@ -44,26 +35,18 @@
void setup_entries(int entries);
signals:
- void sig_info_clicked();
- void sig_edit_clicked();
void sig_remove_clicked();
- void sig_delete_clicked();
- void sig_play_next_clicked();
- void sig_append_clicked();
void sig_sort_tno_clicked();
void sig_invert_selection_clicked();
+ void sig_clear_selection_clicked();
+ void sig_select_all_clicked();
private:
- QAction* _info_action;
- QAction* _edit_action;
QAction* _remove_action;
- QAction* _delete_action;
- QAction* _play_next_action;
- QAction* _append_action;
QAction* _sort_tno_action;
QAction* _invert_selection_action;
-
- void clear_actions();
+ QAction* _clear_selection_action;
+ QAction* _select_all_action;
};
#endif // CONTEXTMENU_H