part.cpp
122 void PartBase::loadPlugins( TQObject *parent, KXMLGUIClient *parentGUIClient, TDEInstance *instance )
125 Plugin::loadPlugins( parent, parentGUIClient, instance, d->m_pluginLoadingMode == LoadPlugins );
355 // Use same extension as remote file. This is important for mimetype-determination (e.g. koffice)
360 if ( !ext.isEmpty() && url.query().isNull() ) // not if the URL has a query, e.g. cgi.pl?something
370 connect( d->m_job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotJobFinished ( TDEIO::Job * ) ) );
469 kdDebug(1000) << "ReadWritePart::setModified( " << (modified ? "true" : "false") << ")" << endl;
void setWindowCaption(const TQString &caption)
Emitted by the part, to set the caption of the window(s) hosting this part.
TQString name() const
TQString prettyURL(int _trailing=0) const
bool openStream(const TQString &mimeType, const KURL &url)
Initiate sending data to this part.
Definition: part.cpp:427
This event is sent when a part is selected or deselected.
Definition: event.h:99
void loadPlugins(TQObject *parent, KXMLGUIClient *parentGUIClient, TDEInstance *instance)
Load the Plugins honoring the PluginLoadingMode.
Definition: part.cpp:122
The part manager is an object which knows about a collection of parts (even nested ones) and handles ...
Definition: partmanager.h:49
PluginLoadingMode
We have three different policies, whether to load new plugins or not.
Definition: part.h:102
static TDEStandardDirs * dirs()
bool m_bTemp
If true, m_file is a temporary file that needs to be deleted later.
Definition: part.h:523
TQWidget * container(const TQString &containerName, KXMLGUIClient *client, bool useTagName=false)
static TQString kde_default(const char *type)
PartManager * manager() const
Returns the part manager handling this part, if any (0L otherwise).
Definition: part.cpp:181
This event is sent to a Part when its GUI has been activated or deactivated.
Definition: event.h:54
bool addResourceType(const char *type, const TQString &relativename)
virtual void setInstance(TDEInstance *instance)
Set the instance ( TDEInstance) for this part.
Definition: part.cpp:105
void canceled(const TQString &errMsg)
Emit this if loading is canceled by the user or by an error.
void setProgressInfoEnabled(bool show)
Call this to turn off the progress info dialog used by the internal TDEIO job.
Definition: part.cpp:316
TQCString instanceName() const
virtual void removePart(Part *part)
Removes a part from the manager (this does not delete the object) .
Definition: partmanager.cpp:368
void sigQueryClose(bool *handled, bool *abortClosing)
kndbgstream & endl(kndbgstream &s)
void setPluginLoadingMode(PluginLoadingMode loadingMode)
For a KParts::Part: call this before setInstance().
Definition: part.cpp:128
static void loadPlugins(TQObject *parent, const TDEInstance *instance)
Load the plugin libraries from the directories appropriate to instance and make the Plugin objects ch...
Definition: plugin.cpp:141
void insertCatalogue(const TQString &catalog)
bool isProgressInfoEnabled() const
Returns whether the part shows the progress info dialog used by internal TDEIO job.
Definition: part.cpp:321
virtual void setModified()
Call setModified() whenever the contents get modified.
Definition: part.cpp:478
bool isLocalFile() const
ReadOnlyPart(TQObject *parent=0, const char *name=0)
Constructor See also Part for the setXXX methods to call.
Definition: part.cpp:304
kdbgstream kdDebug(int area=0)
static int warningYesNoCancel(TQWidget *parent, const TQString &text, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
bool queryClose()
If the document has been modified, ask the user to save changes.
Definition: part.cpp:483
void unlink()
virtual void guiActivateEvent(GUIActivateEvent *event)
Reimplemented from Part, so that the window caption is set to the current url (decoded) when the part...
Definition: part.cpp:415
void setAutoConnectShortcuts(bool)
virtual Part * hitTest(TQWidget *widget, const TQPoint &globalPos)
Returns the part (this, or a child part) at the given global position.
Definition: part.cpp:186
KXMLGUIFactory * factory() const
virtual bool openURL(const KURL &url)
Only reimplement openURL if you don't want the network transparency support to download from the url ...
Definition: part.cpp:333
virtual void embed(TQWidget *parentWidget)
Embed this part into a host widget.
Definition: part.cpp:165
bool isValid() const
TQString path() const
virtual void setReadWrite(bool readwrite=true)
Changes the behavior of this part to readonly or readwrite.
Definition: part.cpp:461
TQString query() const
virtual bool openFile()=0
If the part uses the standard implementation of openURL(), it must reimplement this,...
virtual TDEInstance * instance() const
TQWidget * hostContainer(const TQString &containerName)
Convenience method for KXMLGUIFactory::container.
Definition: part.cpp:256
bool isEmpty() const
virtual void partActivateEvent(PartActivateEvent *event)
Convenience method which is called when the Part received a PartActivateEvent .
Definition: part.cpp:244
kdbgstream kdError(int area=0)
virtual void setInstance(TDEInstance *instance)
virtual void guiActivateEvent(GUIActivateEvent *event)
Convenience method which is called when the Part received a GUIActivateEvent .
Definition: part.cpp:252
virtual TDEActionCollection * actionCollection() const
virtual void setWidget(TQWidget *widget)
TQString url(int _trailing=0, int encoding_hint=0) const
TQString m_file
Local file - the only one the part implementation should deal with.
Definition: part.h:519
virtual void partSelectEvent(PartSelectEvent *event)
Convenience method which is called when the Part received a PartSelectEvent .
Definition: part.cpp:248
static TDELocale * locale()
This event is sent by the part manager when the active part changes.
Definition: event.h:76
TQString fileName(bool _ignore_trailing_slash_in_path=true) const
void setPath(const TQString &path)
bool waitSaveComplete()
Waits for any pending upload job to finish and returns whether the last save() action was successful.
Definition: part.cpp:685