kdevpartcontroller.h
Go to the documentation of this file.
89 virtual void scrollToLineColumn(const KURL &url, int lineNum=-1, int col=-1, bool storeHistory = false ) = 0;
Interface to control loaded parts and other documents.
Definition kdevpartcontroller.h:57
virtual void showPart(KParts::Part *part, const TQString &name, const TQString &shortDescription)=0
Embeds a part into the main area of the mainwindow.
virtual void scrollToLineColumn(const KURL &url, int lineNum=-1, int col=-1, bool storeHistory=false)=0
Scrolls the viewport of the already opened document to the specified line and column if applicable,...
virtual DocumentState documentState(KURL const &url)=0
Checks the state of a document.
virtual void showDocument(const KURL &url, bool newWin=false)=0
Shows a HTML document in the documentation viewer.
void partURLChanged(KParts::ReadOnlyPart *)
This is typically emitted when an editorpart does "save as" which will change the part's URL.
virtual bool closePart(KParts::Part *part)=0
Closes this part (closes the window/tab for this part).
virtual KURL::List openURLs()=0
virtual void setEncoding(const TQString &encoding)=0
Call this 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
Opens a new or existing document.
virtual bool closeFiles(const KURL::List &list)=0
Closes a list of files.
virtual KParts::ReadOnlyPart * partForURL(const KURL &url)=0
Finds the embedded part corresponding to a given URL.
virtual void splitCurrentDocument(const KURL &url, int lineNum=-1, int col=-1)=0
Opens a new or existing document by splitting the view with the current, if applicable.
void documentChangedState(const KURL &, DocumentState)
This is emitted when the document changes, either internally or on disc.
virtual KParts::Part * partForWidget(const TQWidget *widget)=0
Finds the embedded part corresponding to a given main widget.
virtual void revertFiles(const KURL::List &list)=0
Reloads a list of files.
void fileDirty(const KURL &)
Emitted when a file has been modified outside of KDevelop.
@ DirtyAndModified
Document is modified inside a shell and at the same time by an external process.
Definition kdevpartcontroller.h:48
Trinity API Reference