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;
90 Q_PROPERTY(
bool urlDropHandling READ isURLDropHandlingEnabled WRITE setURLDropHandlingEnabled)
106 DefaultPopupItems = 0x0000,
107 ShowBookmark = 0x0008,
108 ShowCreateDirectory = 0x0010,
110 ShowTextSelectionItems = 0x0020,
114 ShowUrlOperations = 0x0100,
115 ShowProperties = 0x200,
128 virtual int xOffset();
134 virtual int yOffset();
159 bool isURLDropHandlingEnabled()
const;
171 void setURLDropHandlingEnabled(
bool enable);
179 bool isActionEnabled(
const char *name)
const;
187 QString actionText(
const char *name)
const;
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;
An extension to KParts::ReadOnlyPart, which allows a better integration of parts with browsers (in pa...
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.
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(...
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...
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.
QMap< QString, QList< QAction * > > ActionGroupMap
Associates a list of actions with a predefined name known by the host's popupmenu: "editactions" for ...
void resizeTopLevelWidget(int w, int h)
Ask the hosting application to resize the top level widget.
PopupFlag
Set of flags passed via the popupMenu signal, to ask for some items in the popup menu.
@ DefaultPopupItems
default value, no additional menu item
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.
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.