Konsole
#include <BookmarkHandler.h>

Public Slots | |
void | setActiveView (ViewProperties *view) |
void | setViews (const QList< ViewProperties * > &views) |
Signals | |
void | openUrl (const KUrl &url) |
void | openUrls (const QList< KUrl > &urls) |
Public Member Functions | |
BookmarkHandler (KActionCollection *collection, KMenu *menu, bool toplevel, QObject *parent) | |
~BookmarkHandler () | |
ViewProperties * | activeView () const |
virtual QList< QPair< QString, QString > > | currentBookmarkList () const |
virtual QString | currentTitle () const |
virtual QString | currentUrl () const |
virtual bool | enableOption (BookmarkOption option) const |
KMenu * | menu () const |
virtual void | openFolderinTabs (const KBookmarkGroup &group) |
virtual bool | supportsTabs () const |
QList< ViewProperties * > | views () const |
Detailed Description
This class handles the communication between the bookmark menu and the active session, providing a suggested title and URL when the user clicks the "Add Bookmark" item in the bookmarks menu.
The bookmark handler is associated with a session controller, which is used to determine the working URL of the current session. When the user changes the active view, the bookmark handler's controller should be changed using setController()
When the user selects a bookmark, the openUrl() signal is emitted.
Definition at line 52 of file BookmarkHandler.h.
Constructor & Destructor Documentation
BookmarkHandler::BookmarkHandler | ( | KActionCollection * | collection, |
KMenu * | menu, | ||
bool | toplevel, | ||
QObject * | parent | ||
) |
Constructs a new bookmark handler for Konsole bookmarks.
- Parameters
-
collection The collection which the bookmark menu's actions should be added to menu The menu which the bookmark actions should be added to toplevel TODO: Document me parent The parent object
Definition at line 40 of file BookmarkHandler.cpp.
BookmarkHandler::~BookmarkHandler | ( | ) |
Definition at line 66 of file BookmarkHandler.cpp.
Member Function Documentation
ViewProperties * BookmarkHandler::activeView | ( | ) | const |
Definition at line 153 of file BookmarkHandler.cpp.
|
virtual |
Definition at line 130 of file BookmarkHandler.cpp.
|
virtual |
Definition at line 100 of file BookmarkHandler.cpp.
|
virtual |
Definition at line 87 of file BookmarkHandler.cpp.
|
virtual |
Definition at line 79 of file BookmarkHandler.cpp.
|
inline |
Returns the menu which this bookmark handler inserts its actions into.
Definition at line 78 of file BookmarkHandler.h.
|
virtual |
Definition at line 75 of file BookmarkHandler.cpp.
|
signal |
Emitted when the user selects a bookmark from the bookmark menu.
- Parameters
-
url The url of the bookmark which was selected by the user.
|
signal |
Emitted when the user selects 'Open Folder in Tabs' from the bookmark menu.
- Parameters
-
urls The urls of the bookmarks in the folder whose 'Open Folder in Tabs' action was triggered
|
slot |
Definition at line 149 of file BookmarkHandler.cpp.
|
slot |
Definition at line 141 of file BookmarkHandler.cpp.
|
virtual |
Definition at line 125 of file BookmarkHandler.cpp.
QList< ViewProperties * > BookmarkHandler::views | ( | ) | const |
Definition at line 145 of file BookmarkHandler.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:24 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.