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, TQ_SIGNAL( result( TDEIO::Job * ) ), this, TQ_SLOT( slotJobFinished ( TDEIO::Job * ) ) );
469 kdDebug(1000) << "ReadWritePart::setModified( " << (modified ? "true" : "false") << ")" << endl;
642 connect( d->m_uploadJob, TQ_SIGNAL( result( TDEIO::Job * ) ), this, TQ_SLOT( slotUploadFinished (TDEIO::Job *) ) );
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)
This event is sent to a Part when its GUI has been activated or deactivated.
Definition: event.h:55
This event is sent by the part manager when the active part changes.
Definition: event.h:77
void loadPlugins(TQObject *parent, KXMLGUIClient *parentGUIClient, TDEInstance *instance)
Load the Plugins honoring the PluginLoadingMode.
Definition: part.cpp:122
void setPluginLoadingMode(PluginLoadingMode loadingMode)
For a KParts::Part: call this before setInstance().
Definition: part.cpp:128
virtual void setInstance(TDEInstance *instance)
Set the instance ( TDEInstance) for this part.
Definition: part.cpp:105
PluginLoadingMode
We have three different policies, whether to load new plugins or not.
Definition: part.h:102
The part manager is an object which knows about a collection of parts (even nested ones) and handles ...
Definition: partmanager.h:50
virtual void removePart(Part *part)
Removes a part from the manager (this does not delete the object) .
Definition: partmanager.cpp:368
This event is sent when a part is selected or deselected.
Definition: event.h:100
void setWindowCaption(const TQString &caption)
Emitted by the part, to set the caption of the window(s) hosting this part.
virtual void partSelectEvent(PartSelectEvent *event)
Convenience method which is called when the Part received a PartSelectEvent .
Definition: part.cpp:248
virtual void embed(TQWidget *parentWidget)
Embed this part into a host widget.
Definition: part.cpp:165
virtual void guiActivateEvent(GUIActivateEvent *event)
Convenience method which is called when the Part received a GUIActivateEvent .
Definition: part.cpp:252
virtual void partActivateEvent(PartActivateEvent *event)
Convenience method which is called when the Part received a PartActivateEvent .
Definition: part.cpp:244
TQWidget * hostContainer(const TQString &containerName)
Convenience method for KXMLGUIFactory::container.
Definition: part.cpp:256
PartManager * manager() const
Returns the part manager handling this part, if any (0L otherwise).
Definition: part.cpp:181
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
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
bool isProgressInfoEnabled() const
Returns whether the part shows the progress info dialog used by internal TDEIO job.
Definition: part.cpp:321
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
ReadOnlyPart(TQObject *parent=0, const char *name=0)
Constructor See also Part for the setXXX methods to call.
Definition: part.cpp:304
void setProgressInfoEnabled(bool show)
Call this to turn off the progress info dialog used by the internal TDEIO job.
Definition: part.cpp:316
bool m_bTemp
If true, m_file is a temporary file that needs to be deleted later.
Definition: part.h:523
void canceled(const TQString &errMsg)
Emit this if loading is canceled by the user or by an error.
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
TQString m_file
Local file - the only one the part implementation should deal with.
Definition: part.h:519
bool openStream(const TQString &mimeType, const KURL &url)
Initiate sending data to this part.
Definition: part.cpp:427
virtual bool openFile()=0
If the part uses the standard implementation of openURL(), it must reimplement this,...
virtual void setReadWrite(bool readwrite=true)
Changes the behavior of this part to readonly or readwrite.
Definition: part.cpp:461
bool queryClose()
If the document has been modified, ask the user to save changes.
Definition: part.cpp:483
bool waitSaveComplete()
Waits for any pending upload job to finish and returns whether the last save() action was successful.
Definition: part.cpp:685
void sigQueryClose(bool *handled, bool *abortClosing)
virtual void setModified()
Call setModified() whenever the contents get modified.
Definition: part.cpp:478
void unlink()
TQString name() const
TQString path() const
TQString query() const
void setPath(const TQString &path)
bool isEmpty() const
TQString fileName(bool _ignore_trailing_slash_in_path=true) const
TQString url(int _trailing=0, int encoding_hint=0) const
bool isLocalFile() const
TQString prettyURL(int _trailing=0) const
bool isValid() const
virtual TDEInstance * instance() const
KXMLGUIFactory * factory() const
virtual TDEActionCollection * actionCollection() const
virtual void setInstance(TDEInstance *instance)
TQWidget * container(const TQString &containerName, KXMLGUIClient *client, bool useTagName=false)
virtual void setWidget(TQWidget *widget)
void setAutoConnectShortcuts(bool)
static TDEStandardDirs * dirs()
static TDELocale * locale()
TQCString instanceName() const
void insertCatalogue(const TQString &catalog)
bool addResourceType(const char *type, const TQString &relativename)
static TQString kde_default(const char *type)
kndbgstream & endl(kndbgstream &s)
kdbgstream kdError(int area=0)
kdbgstream kdDebug(int area=0)