~ubuntu-branches/ubuntu/vivid/kdesdk/vivid

« back to all changes in this revision

Viewing changes to okteta/kasten/controllers/view/bookmarks/bookmarkscontroller.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-06-06 11:49:54 UTC
  • mfrom: (0.4.21)
  • Revision ID: package-import@ubuntu.com-20120606114954-rdls73fzlpzxglbx
Tags: 4:4.8.80-0ubuntu1
* New uptream beta release
* Update dont_export_private_classes.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
#include <QtGui/QAction>
49
49
 
50
50
 
51
 
namespace Kasten1
 
51
namespace Kasten2
52
52
{
53
53
 
54
54
static const char BookmarkListActionListId[] = "bookmark_list";
62
62
 
63
63
    mCreateAction = KStandardAction::addBookmark( this, SLOT(createBookmark()), actionCollection );
64
64
 
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 );
69
69
 
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 );
74
74
 
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 );
79
79
 
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 );
84
84
 
85
85
    mBookmarksActionGroup = new QActionGroup( this ); // TODO: do we use this only for the signal mapping?