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 |
![]() | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Additional Inherited Members | |
![]() | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
![]() | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
![]() | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
![]() | |
objectName | |
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.
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-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.