aboutsummaryrefslogtreecommitdiff
path: root/src/ui/actionmanager.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-11-04 20:17:13 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-11-04 20:17:13 +0000
commit40c82a8a1d3e65788451022249d984d3166c3aca (patch)
treed6205444e71f1f103af8d8ddf13136602eebb6da /src/ui/actionmanager.h
parent1963054966e3a2514fb481c8159c09834a1a12fa (diff)
downloadqmmp-40c82a8a1d3e65788451022249d984d3166c3aca.tar.gz
qmmp-40c82a8a1d3e65788451022249d984d3166c3aca.tar.bz2
qmmp-40c82a8a1d3e65788451022249d984d3166c3aca.zip
completed shortcut editor
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1980 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/actionmanager.h')
-rw-r--r--src/ui/actionmanager.h36
1 files changed, 32 insertions, 4 deletions
diff --git a/src/ui/actionmanager.h b/src/ui/actionmanager.h
index 736baa8fa..3d0bb53cd 100644
--- a/src/ui/actionmanager.h
+++ b/src/ui/actionmanager.h
@@ -25,13 +25,14 @@
#include <QString>
#include <QHash>
-#define ACTION(type, receiver, member) ActionManager::instance()->use(type, receiver, member)
-
class QAction;
class QSettings;
+#define ACTION(type, receiver, member) ActionManager::instance()->use(type, receiver, member)
-
+/**
+ @author Ilya Kotov <forkotov02@hotmail.ru>
+*/
class ActionManager : public QObject
{
Q_OBJECT
@@ -56,20 +57,47 @@ public:
STOP_AFTER_SELECTED,
CLEAR_QUEUE,
+ WM_ALLWAYS_ON_TOP,
+ WM_STICKY,
+ WM_DOUBLE_SIZE,
+
+ PL_ADD_FILE,
+ PL_ADD_DIRECTORY,
+ PL_ADD_URL,
+ PL_REMOVE_SELECTED,
+ PL_REMOVE_ALL,
+ PL_REMOVE_UNSELECTED,
+ PL_REMOVE_INVALID,
+ PL_REMOVE_DUPLICATES,
+ PL_ENQUEUE,
+ PL_INVERT_SELECTION,
+ PL_CLEAR_SELECTION,
+ PL_SELECT_ALL,
+ PL_SHOW_INFO,
+ PL_NEW,
+ PL_CLOSE,
+ PL_LOAD,
+ PL_SAVE,
+ PL_SELECT_NEXT,
+ PL_SELECT_PREVIOUS,
+ PL_SHOW_MANAGER,
SETTINGS,
ABOUT,
- ABOUT_QT
+ ABOUT_QT,
+ QUIT,
};
QAction *action(int type);
QAction *use(int type, const QObject *receiver, const char *member);
QList<int> actions();
+ void saveActions();
static ActionManager* instance();
private:
QAction *createAction(QString name, QString confKey, QString key, QString iconName = QString());
QAction *createAction2(QString name, QString confKey, QString key);
+
QSettings *m_settings;
QHash <int, QAction *> m_actions;
static ActionManager *m_instance;