KDevPartController Class Reference
#include <kdevpartcontroller.h>
Inheritance diagram for KDevPartController:


Signals | |
void | savedFile (const KURL &) |
Emitted when a document has been saved. | |
void | loadedFile (const KURL &) |
Emitted when a document has been loaded. | |
void | closedFile (const KURL &) |
Emitted when a document has been closed. | |
void | fileDirty (const KURL &) |
Emitted when a file has been modified outside of KDevelop. | |
void | partURLChanged (KParts::ReadOnlyPart *) |
this is typically emitted when an editorpart does "save as" which will change the part's URL | |
void | documentChangedState (const KURL &, DocumentState) |
this is emitted when the document changes, either internally or on disc | |
Public Member Functions | |
KDevPartController (QWidget *parent) | |
virtual void | setEncoding (const QString &encoding)=0 |
Call before a call to editDocument to set the encoding of the document to be opened. | |
virtual void | editDocument (const KURL &url, int lineNum=-1, int col=-1)=0 |
Open a new or existing document. | |
virtual void | showDocument (const KURL &url, bool newWin=false)=0 |
Show a HTML document in the documentation viewer. | |
virtual void | showPart (KParts::Part *part, const QString &name, const QString &shortDescription)=0 |
Embed a part into the main area of the mainwindow. | |
virtual KParts::ReadOnlyPart * | partForURL (const KURL &url)=0 |
Find the embedded part corresponding to a given URL. | |
virtual KParts::Part * | partForWidget (const QWidget *widget)=0 |
Find the embedded part corresponding to a given main widget. | |
virtual KURL::List | openURLs ()=0 |
Returns a list of open documents. | |
virtual void | saveAllFiles ()=0 |
Save all open files. | |
virtual void | saveFiles (const KURL::List &list)=0 |
Save a list of files. | |
virtual void | revertAllFiles ()=0 |
Reload all open files. | |
virtual void | revertFiles (const KURL::List &list)=0 |
Reload a list of files. | |
virtual bool | closeAllFiles ()=0 |
Close all open files. | |
virtual bool | closeFiles (const KURL::List &list)=0 |
Close a list of files. | |
virtual bool | closePart (KParts::Part *part)=0 |
Close this part (close the window/tab for this part). | |
virtual void | activatePart (KParts::Part *part)=0 |
Activate this part. | |
virtual DocumentState | documentState (KURL const &url)=0 |
Check the state of a document. |
Constructor & Destructor Documentation
|
Definition at line 25 of file kdevpartcontroller.cpp. |
Member Function Documentation
|
Activate this part.
Implemented in PartController. Referenced by FileListWidget::itemClicked(). |
|
Close all open files.
Implemented in PartController. |
|
Emitted when a document has been closed.
Referenced by PartController::closePart(). |
|
Close a list of files.
Implemented in PartController. Referenced by FileListWidget::closeSelectedFiles(), and CloserPart::openDialog(). |
|
Close this part (close the window/tab for this part).
Implemented in PartController. |
|
this is emitted when the document changes, either internally or on disc
Referenced by PartController::doEmitState(), PartController::reloadFile(), PartController::saveFile(), and PartController::slotDocumentDirty(). |
|
Check the state of a document.
Implemented in PartController. Referenced by DiffPart::contextMenu(), and FileListWidget::refreshFileList(). |
|
|
Emitted when a file has been modified outside of KDevelop.
|
|
Emitted when a document has been loaded.
Referenced by PartController::integratePart(). |
|
Returns a list of open documents.
Implemented in PartController. |
|
Find the embedded part corresponding to a given URL.
Implemented in PartController. Referenced by MakeWidget::createCursor(), FileListWidget::itemClicked(), FileListWidget::partRemoved(), and MakeWidget::slotDocumentOpened(). |
|
Find the embedded part corresponding to a given main widget.
Implemented in PartController. |
|
this is typically emitted when an editorpart does "save as" which will change the part's URL
Referenced by PartController::showDocument(), and PartController::slotUploadFinished(). |
|
Reload all open files.
Implemented in PartController. |
|
Reload a list of files.
Implemented in PartController. Referenced by FileListWidget::reloadSelectedFiles(). |
|
Save all open files.
Implemented in PartController. Referenced by AutoProjectPart::buildTarget(), PHPSupportPart::executeInTerminal(), PHPSupportPart::executeOnWebserver(), AutoProjectPart::executeTarget(), ReplaceWidget::makeReplacements(), PascalProjectPart::slotBuild(), HaskellProjectPart::slotBuild(), AdaProjectPart::slotBuild(), TrollProjectWidget::slotBuildProject(), TrollProjectWidget::slotBuildTarget(), TrollProjectWidget::slotCleanTarget(), PascalProjectPart::slotExecute(), HaskellProjectPart::slotExecute(), CustomProjectPart::slotExecute(), AutoProjectPart::slotExecute(), AdaProjectPart::slotExecute(), FortranSupportPart::slotFtnchek(), TrollProjectWidget::slotRebuildProject(), TrollProjectWidget::slotRebuildTarget(), TrollProjectWidget::startMakeCommand(), CustomProjectPart::startMakeCommand(), and AutoProjectPart::startMakeCommand(). |
|
Emitted when a document has been saved.
Referenced by PartController::saveFile(). |
|
Save a list of files.
Implemented in PartController. Referenced by FileListWidget::saveSelectedFiles(). |
|
Call before a call to editDocument to set the encoding of the document to be opened.
Implemented in PartController. Referenced by OpenWithPart::openAsEncoding(). |
|
Show a HTML document in the documentation viewer.
Implemented in PartController. Referenced by DocIndexDialog::accept(), FindDocumentation::clickOnItem(), DocUtils::docItemPopup(), SearchView::executed(), DocumentationPart::infoPage(), ContentsView::itemExecuted(), BookmarkView::itemExecuted(), DocumentationPart::manPage(), DocBookmarkOwner::openBookmarkURL(), FindDocumentation::procInfoReadFromStdout(), FindDocumentation::procManReadFromStdout(), FindDocumentation::searchInContents(), FindDocumentation::searchInGoogle(), IndexView::searchInIndex(), FindDocumentation::searchInIndex(), DocTreeViewPart::slotContextFulltextSearch(), DocTreeViewPart::slotContextGotoManpage(), PHPHTMLView::slotDuplicate(), DocTreeViewWidget::slotIndexItemExecuted(), DocTreeViewWidget::slotItemExecuted(), ChooseDlg::slotItemExecuted(), DocTreeViewPart::slotManpage(), PHPHTMLView::slotOpenInNewWindow(), PerlSupportPart::slotPerldocFAQ(), PerlSupportPart::slotPerldocFunction(), DoxygenPart::slotPreviewProcessExited(), PythonSupportPart::slotPydoc(), and DocTreeViewPart::slotSearchDocumentation(). |
|
Embed a part into the main area of the mainwindow.
Implemented in PartController. Referenced by KDevPlugin::showPart(). |
The documentation for this class was generated from the following files:
- lib/interfaces/kdevpartcontroller.h
- lib/interfaces/kdevpartcontroller.cpp