aboutsummaryrefslogtreecommitdiff
path: root/src/ui/actionmanager.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-11-02 19:09:08 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-11-02 19:09:08 +0000
commit4d69ace7baf470757d70d9d813b2df47c59e7ffa (patch)
tree964d2feef18e46c3da1c48c541e286bdbda4d2e9 /src/ui/actionmanager.cpp
parentd6482e20236a7cf89f5a7a5f1c40dbcf7ab9da8d (diff)
downloadqmmp-4d69ace7baf470757d70d9d813b2df47c59e7ffa.tar.gz
qmmp-4d69ace7baf470757d70d9d813b2df47c59e7ffa.tar.bz2
qmmp-4d69ace7baf470757d70d9d813b2df47c59e7ffa.zip
some shortcut editor changes
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1972 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/actionmanager.cpp')
-rw-r--r--src/ui/actionmanager.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/ui/actionmanager.cpp b/src/ui/actionmanager.cpp
index 9e329226e..a683c6e87 100644
--- a/src/ui/actionmanager.cpp
+++ b/src/ui/actionmanager.cpp
@@ -33,6 +33,7 @@ ActionManager::ActionManager(QObject *parent) :
m_instance = this;
m_settings = new QSettings(Qmmp::configFile(), QSettings::IniFormat);
m_settings->beginGroup("Shortcuts");
+ //playback
m_actions[PLAY] = createAction(tr("&Play"), "play", tr("X"), "media-playback-start");
m_actions[PAUSE] = createAction(tr("&Pause"), "pause", tr("C"), "media-playback-pause");
m_actions[STOP] = createAction(tr("&Stop"), "stop", tr("V"), "media-playback-stop");
@@ -40,6 +41,15 @@ ActionManager::ActionManager(QObject *parent) :
m_actions[NEXT] = createAction(tr("&Next"), "next", tr("B"), "media-skip-forward");
m_actions[PLAY_PAUSE] = createAction(tr("&Play/Pause"), "play_pause", tr("Space"));
m_actions[JUMP] = createAction(tr("&Jump to File"), "jump", tr("J"), "go-up");
+ m_actions[REPEAT_ALL] = createAction2(tr("&Repeat Playlist"), "repeate_playlist", tr("R"));
+ m_actions[REPEAT_TRACK] = createAction2(tr("&Repeat Track"), "repeate_track", tr("Ctrl+R"));
+ m_actions[SHUFFLE] = createAction2(tr("&Shuffle"), "shuffle", tr("S"));
+ m_actions[NO_PL_ADVANCE] = createAction2(tr("&No Playlist Advance"), "no_playlist_advance",
+ tr("Ctrl+N"));
+ m_actions[STOP_AFTER_SELECTED] = createAction(tr("&Stop After Selected"), "stop_after_selected",
+ tr("Ctrl+S"));
+ m_actions[CLEAR_QUEUE] = createAction(tr("&Clear Queue"), "clear_queue", tr("Alt+Q"));
+
m_settings->endGroup();
delete m_settings;
m_settings = 0;
@@ -80,3 +90,10 @@ QAction *ActionManager::createAction(QString name, QString confKey, QString key,
action->setIcon(QIcon::fromTheme(iconName));
return action;
}
+
+QAction *ActionManager::createAction2(QString name, QString confKey, QString key)
+{
+ QAction *action = createAction(name, confKey, key);
+ action->setCheckable(true);
+ return action;
+}