Commit c167a866 authored by Bart Cerneels's avatar Bart Cerneels
Browse files

Add keyboard shortcut for Edit Track

Patch by: Jasneet Bhatti

FEATURE: 173814
FIXED-IN:2.6

REVIEW: 103960
parent dbee445a
......@@ -4,6 +4,8 @@ Amarok ChangeLog
Version 2.6-Beta 1
FEATURES:
* Added keyboard shortcut for "Edit Track Information..." (BR 173814)
Patch by Jasneet Bhatti.
* Support for embedded album covers in non-collection tracks and
in USB Mass Storage collection.
* Hold the Shift key when dragging tracks to collections to move them
......
......@@ -521,6 +521,12 @@ MainWindow::slotShowActiveTrack() const
m_playlistDock.data()->showActiveTrack();
}
void
MainWindow::slotEditTrackInfo() const
{
m_playlistDock.data()->editTrackInfo();
}
void
MainWindow::slotShowCoverManager() const //SLOT
{
......@@ -765,6 +771,11 @@ MainWindow::createActions()
action->setShortcut( Qt::CTRL + Qt::Key_O );
connect( action, SIGNAL( triggered( bool ) ), SLOT( slotPlayMedia() ) );
action = new KAction( KIcon("media-track-edit-amarok"), i18n("Edit Details of Currently Selected Track"), this );
ac->addAction( "trackdetails_edit", action );
action->setShortcut( Qt::CTRL + Qt::Key_E );
connect( action, SIGNAL( triggered( bool ) ), SLOT( slotEditTrackInfo() ) );
action = new KAction( KIcon( "media-seek-forward-amarok" ), i18n("&Seek Forward"), this );
ac->addAction( "seek_forward", action );
action->setShortcut( Qt::Key_Right );
......
......@@ -136,6 +136,7 @@ class AMAROK_EXPORT MainWindow : public KMainWindow
void exportPlaylist() const;
void slotShowActiveTrack() const;
void slotEditTrackInfo() const;
void slotShowBookmarkManager() const;
void slotShowEqualizer() const;
void slotShowCoverManager() const;
......
......@@ -321,6 +321,12 @@ Playlist::Dock::showActiveTrack()
m_playlistView->scrollToActiveTrack();
}
void
Playlist::Dock::editTrackInfo()
{
m_playlistView->editTrackInformation();
}
void
Playlist::Dock::showDynamicHint() // slot
{
......
......@@ -52,6 +52,7 @@ public:
SortWidget *sortWidget();
ProgressiveSearchWidget *searchWidget();
void showActiveTrack();
void editTrackInfo();
void polish();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment