9#ifndef KPARTS_NAVIGATIONEXTENSION
10#define KPARTS_NAVIGATIONEXTENSION
12#include <kparts/openurlarguments.h>
13#include <kparts/readonlypart.h>
18#include <qplatformdefs.h>
20template<
class Key,
class T>
32class NavigationExtensionPrivate;
320 void infoMessage(
const QString &);
352 mode_t mode =
static_cast<mode_t
>(-1),
405 KPARTS_NO_EXPORT
void slotEmitOpenUrlRequestDelayed();
406 KPARTS_NO_EXPORT
void slotEnableAction(
const char *,
bool);
407 KPARTS_NO_EXPORT
void slotSetActionText(
const char *,
const QString &);
413 std::unique_ptr<NavigationExtensionPrivate>
const d;
void mouseOverInfo(const KFileItem &item)
Inform the hosting application that the user moved the mouse over an item.
void moveTopLevelWidget(int x, int y)
Ask the hosting application to move the top level widget.
NavigationExtension(KParts::ReadOnlyPart *parent)
Constructor.
void openUrlRequestDelayed(const QUrl &url, const KParts::OpenUrlArguments &arguments)
This signal is emitted when openUrlRequest() is called, after a 0-seconds timer.
void openUrlNotify()
Tells the hosting browser that the part opened a new URL (which can be queried via KParts::Part::url(...
static NavigationExtension * childObject(QObject *obj)
Queries obj for a child object which inherits from this BrowserExtension class.
void enableAction(const char *name, bool enabled)
Enables or disable a standard action held by the browser.
void requestFocus(KParts::ReadOnlyPart *part)
Ask the hosting application to focus part.
void loadingProgress(int percent)
Since the part emits the jobid in the started() signal, progress information is automatically display...
bool isURLDropHandlingEnabled() const
Returns whether url drop handling is enabled.
bool isActionEnabled(const char *name) const
virtual int yOffset()
Returns the current y offset.
void setIconUrl(const QUrl &url)
Sets the URL of an icon for the currently displayed page.
void createNewWindow(const QUrl &url)
Asks the hosting browser to open a new window for the given url and return a reference to the content...
void speedProgress(int bytesPerSecond)
void itemsRemoved(const KFileItemList &items)
Inform the host about items that have been removed.
void popupMenu(const QPoint &global, const QUrl &url, mode_t mode=static_cast< mode_t >(-1), const KParts::OpenUrlArguments &arguments=KParts::OpenUrlArguments(), KParts::NavigationExtension::PopupFlags flags=KParts::NavigationExtension::DefaultPopupItems, const KParts::NavigationExtension::ActionGroupMap &actionGroups=ActionGroupMap())
Emit this to make the browser show a standard popup menu for the given url.
void setLocationBarUrl(const QString &url)
Updates the URL shown in the browser's location bar to url.
void popupMenu(const QPoint &global, const KFileItemList &items, const KParts::OpenUrlArguments &arguments=KParts::OpenUrlArguments(), KParts::NavigationExtension::PopupFlags flags=KParts::NavigationExtension::DefaultPopupItems, const KParts::NavigationExtension::ActionGroupMap &actionGroups=ActionGroupMap())
Emit this to make the browser show a standard popup menu for the files items.
virtual void restoreState(QDataStream &stream)
Used by the browser to restore the view in the state it was when we left it.
void resizeTopLevelWidget(int w, int h)
Ask the hosting application to resize the top level widget.
QMap< QString, QList< QAction * > > ActionGroupMap
Associates a list of actions with a predefined name known by the host's popupmenu: "editactions" for ...
PopupFlag
Set of flags passed via the popupMenu signal, to ask for some items in the popup menu.
@ ShowTextSelectionItems
set when selecting text, for a popup that only contains text-related items.
@ NoDeletion
deletion, trashing and renaming not allowed (e.g.
@ ShowUrlOperations
show copy, paste, as well as cut if NoDeletion is not set.
@ ShowCreateDirectory
show "create directory" (usually only done on the background of the view, or in hierarchical views li...
@ ShowBookmark
show "add to bookmarks" (usually not done on the local filesystem)
@ ShowProperties
show "Properties" action (usually done by directory views)
@ DefaultPopupItems
default value, no additional menu item
@ IsLink
show "Bookmark This Link" and other link-related actions (linkactions merging group)
void pasteRequest()
Asks the hosting browser to perform a paste (using openUrlRequestDelayed())
virtual int xOffset()
Returns the current x offset.
void setURLDropHandlingEnabled(bool enable)
Enables or disables url drop handling.
QString actionText(const char *name) const
void openUrlRequest(const QUrl &url, const KParts::OpenUrlArguments &arguments=KParts::OpenUrlArguments())
Asks the host (browser) to open url.
void setPageSecurity(int)
Tell the host (browser) about security state of current page enum PageSecurity { NotCrypted,...
void selectionInfo(const KFileItemList &items)
Inform the hosting application about the current selection.
QFlags< PopupFlag > PopupFlags
Stores a combination of PopupFlag values.
static ActionSlotMap * actionSlotMap()
Returns a pointer to the static map containing the action names as keys and corresponding SLOT()'ifie...
virtual void saveState(QDataStream &stream)
Used by the browser to save the current state of the view (in order to restore it if going back in na...
void addWebSideBar(const QUrl &url, const QString &name)
Ask the hosting application to add a new HTML (aka Mozilla/Netscape) SideBar entry.
void setActionText(const char *name, const QString &text)
Change the text of a standard action held by the browser.
OpenUrlArguments is the set of arguments that specify how a URL should be opened by KParts::ReadOnlyP...
Base class for any "viewer" part.
QObject * parent() const const