|
| ReadOnlyPart (QObject *parent=0) |
|
virtual | ~ReadOnlyPart () |
|
OpenUrlArguments | arguments () const |
|
BrowserExtension * | browserExtension () const |
|
bool | closeStream () |
|
virtual bool | closeUrl () |
|
bool | isProgressInfoEnabled () const |
|
bool | openStream (const QString &mimeType, const KUrl &url) |
|
void | setArguments (const OpenUrlArguments &arguments) |
|
void | setProgressInfoEnabled (bool show) |
|
void | showProgressInfo (bool show) |
|
KUrl | url () const |
|
bool | writeStream (const QByteArray &data) |
|
| Part (QObject *parent=0) |
|
virtual | ~Part () |
|
virtual void | embed (QWidget *parentWidget) |
|
virtual Part * | hitTest (QWidget *widget, const QPoint &globalPos) |
|
KIconLoader * | iconLoader () |
|
bool | isSelectable () const |
|
PartManager * | manager () const |
|
void | setAutoDeletePart (bool autoDeletePart) |
|
void | setAutoDeleteWidget (bool autoDeleteWidget) |
|
virtual void | setManager (PartManager *manager) |
|
virtual void | setSelectable (bool selectable) |
|
virtual QWidget * | widget () |
|
| 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 |
|
| PartBase () |
|
virtual | ~PartBase () |
|
QObject * | partObject () const |
|
void | setPartObject (QObject *object) |
|
| KXMLGUIClient () |
|
| KXMLGUIClient (KXMLGUIClient *parent) |
|
virtual | ~KXMLGUIClient () |
|
QAction * | action (const char *name) const |
|
virtual QAction * | action (const QDomElement &element) const |
|
virtual KActionCollection * | actionCollection () const |
|
void | addStateActionDisabled (const QString &state, const QString &action) |
|
void | addStateActionEnabled (const QString &state, const QString &action) |
|
void | beginXMLPlug (QWidget *) |
|
QList< KXMLGUIClient * > | childClients () |
|
KXMLGUIBuilder * | clientBuilder () const |
|
virtual KComponentData | componentData () const |
|
virtual QDomDocument | domDocument () const |
|
void | endXMLPlug () |
|
KXMLGUIFactory * | factory () const |
|
StateChange | getActionsToChangeForState (const QString &state) |
|
void | insertChildClient (KXMLGUIClient *child) |
|
virtual QString | localXMLFile () const |
|
KXMLGUIClient * | parentClient () const |
|
void | plugActionList (const QString &name, const QList< QAction * > &actionList) |
|
void | prepareXMLUnplug (QWidget *) |
|
void | reloadXML () |
|
void | removeChildClient (KXMLGUIClient *child) |
|
void | replaceXMLFile (const QString &xmlfile, const QString &localxmlfile, bool merge=false) |
|
void | setClientBuilder (KXMLGUIBuilder *builder) |
|
void | setFactory (KXMLGUIFactory *factory) |
|
void | setXMLGUIBuildDocument (const QDomDocument &doc) |
|
void | unplugActionList (const QString &name) |
|
virtual QString | xmlFile () const |
|
QDomDocument | xmlguiBuildDocument () const |
|
|
| ReadOnlyPart (ReadOnlyPartPrivate &dd, QObject *parent) |
|
void | abortLoad () |
|
virtual void | guiActivateEvent (GUIActivateEvent *event) |
|
bool | isLocalFileTemporary () const |
|
QString | localFilePath () const |
|
virtual bool | openFile () |
|
void | setLocalFilePath (const QString &localFilePath) |
|
void | setLocalFileTemporary (bool temp) |
|
void | setUrl (const KUrl &url) |
|
| Part (PartPrivate &dd, QObject *parent) |
|
virtual void | customEvent (QEvent *event) |
|
QWidget * | hostContainer (const QString &containerName) |
|
void | loadPlugins () |
|
virtual void | partActivateEvent (PartActivateEvent *event) |
|
virtual void | partSelectEvent (PartSelectEvent *event) |
|
virtual void | setWidget (QWidget *widget) |
|
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
|
virtual void | childEvent (QChildEvent *event) |
|
virtual void | connectNotify (const char *signal) |
|
virtual void | disconnectNotify (const char *signal) |
|
int | receivers (const char *signal) const |
|
QObject * | sender () const |
|
int | senderSignalIndex () const |
|
virtual void | timerEvent (QTimerEvent *event) |
|
| PartBase (PartBasePrivate &dd) |
|
void | loadPlugins (QObject *parent, KXMLGUIClient *parentGUIClient, const KComponentData &componentData) |
|
virtual void | setComponentData (const KComponentData &componentData) |
|
virtual void | setComponentData (const KComponentData &componentData, bool loadPlugins) |
|
void | setPluginInterfaceVersion (int version) |
|
void | setPluginLoadingMode (PluginLoadingMode loadingMode) |
|
void | loadStandardsXmlFile () |
|
virtual void | setDOMDocument (const QDomDocument &document, bool merge=false) |
|
virtual void | setLocalXMLFile (const QString &file) |
|
virtual void | setXML (const QString &document, bool merge=false) |
|
virtual void | setXMLFile (const QString &file, bool merge=false, bool setXMLDoc=true) |
|
virtual void | stateChanged (const QString &newstate, ReverseStateChange reverse=StateNoReverse) |
|
virtual void | virtual_hook (int id, void *data) |
|
|
enum | ReverseStateChange |
|
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) |
|
static QString | findMostRecentXMLFile (const QStringList &files, QString &doc) |
|
enum | PluginLoadingMode { DoNotLoadPlugins = 0,
LoadPlugins = 1,
LoadPluginsIfEnabled = 2
} |
|
void | slotWidgetDestroyed () |
|
QByteArray | normalizeSignalSlot (const char *signalSlot) |
|
PartBasePrivate * | d_ptr |
|
Base class for any "viewer" part.
This class takes care of network transparency for you, in the simplest way (downloading to a temporary file, then letting the part load from the temporary file). To use the built-in network transparency, you only need to implement openFile(), not openUrl().
To implement network transparency differently (e.g. for progressive loading, like a web browser does for instance), or to prevent network transparency (but why would you do that?), you can override openUrl().
KParts Application can use the signals to show feedback while the URL is being loaded.
ReadOnlyPart handles the window caption by setting it to the current URL (set in openUrl(), and each time the part is activated). If you want another caption, set it in openFile() and (if the part might ever be used with a part manager) in guiActivateEvent()
Definition at line 488 of file part.h.
bool ReadOnlyPart::openUrl |
( |
const KUrl & |
url | ) |
|
|
virtualslot |
Only reimplement openUrl if you don't want the network transparency support to download from the url into a temporary file (when the url isn't local).
Otherwise, reimplement openFile() only .
If you reimplement it, don't forget to set the caption, usually with emit setWindowCaption( url.prettyUrl() );
Definition at line 535 of file part.cpp.