63
63
mCreateAction = KStandardAction::addBookmark( this, SLOT(createBookmark()), actionCollection );
65
mDeleteAction = actionCollection->addAction( QLatin1String("bookmark_remove") );
65
mDeleteAction = actionCollection->addAction( QLatin1String("bookmark_remove"),
66
this, SLOT(deleteBookmark()) );
66
67
mDeleteAction->setText( i18nc("@action:inmenu","Remove Bookmark") );
67
connect( mDeleteAction, SIGNAL(triggered(bool)), SLOT(deleteBookmark()) );
68
68
mDeleteAction->setShortcut( Qt::CTRL + Qt::SHIFT + Qt::Key_B );
70
mDeleteAllAction = actionCollection->addAction( QLatin1String("bookmark_remove_all") );
70
mDeleteAllAction = actionCollection->addAction( QLatin1String("bookmark_remove_all"),
71
this, SLOT(deleteAllBookmarks()) );
71
72
mDeleteAllAction->setText( i18nc("@action:inmenu","Remove All Bookmarks") );
72
connect( mDeleteAllAction, SIGNAL(triggered(bool)), SLOT(deleteAllBookmarks()) );
73
73
// mDeleteAllAction->setShortcut( Qt::CTRL + Qt::Key_G );
75
mGotoNextBookmarkAction = actionCollection->addAction( QLatin1String("bookmark_next") );
75
mGotoNextBookmarkAction = actionCollection->addAction( QLatin1String("bookmark_next"),
76
this, SLOT(gotoNextBookmark()) );
76
77
mGotoNextBookmarkAction->setText( i18nc("@action:inmenu","Go to Next Bookmark") );
77
connect( mGotoNextBookmarkAction, SIGNAL(triggered(bool)), SLOT(gotoNextBookmark()) );
78
78
mGotoNextBookmarkAction->setShortcut( Qt::ALT + Qt::Key_Down );
80
mGotoPreviousBookmarkAction = actionCollection->addAction( QLatin1String("bookmark_previous") );
80
mGotoPreviousBookmarkAction = actionCollection->addAction( QLatin1String("bookmark_previous"),
81
this, SLOT(gotoPreviousBookmark()) );
81
82
mGotoPreviousBookmarkAction->setText( i18nc("@action:inmenu","Go to Previous Bookmark") );
82
connect( mGotoPreviousBookmarkAction, SIGNAL(triggered(bool)), SLOT(gotoPreviousBookmark()) );
83
83
mGotoPreviousBookmarkAction->setShortcut( Qt::ALT + Qt::Key_Up );
85
85
mBookmarksActionGroup = new QActionGroup( this ); // TODO: do we use this only for the signal mapping?