Konsole
Konsole::BookmarkHandler Class Reference
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. More...
#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 | |
ViewProperties * | activeView () const |
BookmarkHandler (KActionCollection *collection, KMenu *menu, bool toplevel, QObject *parent) | |
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) |
QMenu * | popupMenu () |
virtual bool | supportsTabs () const |
QList< ViewProperties * > | views () const |
~BookmarkHandler () |
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 54 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 boomark menu's actions should be added to menu The menu which the bookmark actions should be added to toplevel TODO: Document me
Definition at line 44 of file BookmarkHandler.cpp.
BookmarkHandler::~BookmarkHandler | ( | ) |
Definition at line 76 of file BookmarkHandler.cpp.
Member Function Documentation
ViewProperties * BookmarkHandler::activeView | ( | ) | const |
Definition at line 173 of file BookmarkHandler.cpp.
Definition at line 146 of file BookmarkHandler.cpp.
QString BookmarkHandler::currentTitle | ( | ) | const [virtual] |
Definition at line 114 of file BookmarkHandler.cpp.
QString BookmarkHandler::currentUrl | ( | ) | const [virtual] |
Definition at line 97 of file BookmarkHandler.cpp.
bool BookmarkHandler::enableOption | ( | BookmarkOption | option | ) | const [virtual] |
Definition at line 89 of file BookmarkHandler.cpp.
KMenu* Konsole::BookmarkHandler::menu | ( | ) | const [inline] |
Returns the menu which this bookmark handler inserts its actions into.
Definition at line 82 of file BookmarkHandler.h.
void BookmarkHandler::openFolderinTabs | ( | const KBookmarkGroup & | group | ) | [virtual] |
Definition at line 85 of file BookmarkHandler.cpp.
void Konsole::BookmarkHandler::openUrl | ( | const KUrl & | url | ) | [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. text TODO: Document me
void Konsole::BookmarkHandler::openUrls | ( | const QList< KUrl > & | urls | ) | [signal] |
Emitted when the user selects 'Open Folder in Tabs' from the bookmark menu.
- Parameters:
-
urls The urls of the bookmarks in the folder whoose 'Open Folder in Tabs' action was triggered
QMenu* Konsole::BookmarkHandler::popupMenu | ( | ) |
void BookmarkHandler::setActiveView | ( | ViewProperties * | view | ) | [slot] |
Definition at line 169 of file BookmarkHandler.cpp.
void BookmarkHandler::setViews | ( | const QList< ViewProperties * > & | views | ) | [slot] |
Definition at line 161 of file BookmarkHandler.cpp.
bool BookmarkHandler::supportsTabs | ( | ) | const [virtual] |
Definition at line 141 of file BookmarkHandler.cpp.
QList< ViewProperties * > BookmarkHandler::views | ( | ) | const |
Definition at line 165 of file BookmarkHandler.cpp.
The documentation for this class was generated from the following files: