diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-05-23 18:14:06 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-05-23 18:14:06 -0500 |
commit | 08c816fe5d4eba7bc34c354c6958f1117f1a63a4 (patch) | |
tree | c14296c07840d4134d83b48df7691bac24d44d6a /interfaces/ktexteditor/document.h | |
parent | 6c806af1c99890adecb42abf52f4d6dc8ae72899 (diff) | |
download | tdelibs-08c816fe5d4eba7bc34c354c6958f1117f1a63a4.tar.gz tdelibs-08c816fe5d4eba7bc34c354c6958f1117f1a63a4.zip |
Add document position variable to text editor part
WARNING this breaks the kate/kwrite ABI!
Diffstat (limited to 'interfaces/ktexteditor/document.h')
-rw-r--r-- | interfaces/ktexteditor/document.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/interfaces/ktexteditor/document.h b/interfaces/ktexteditor/document.h index 90095b64b..12823e600 100644 --- a/interfaces/ktexteditor/document.h +++ b/interfaces/ktexteditor/document.h @@ -61,10 +61,21 @@ class KTEXTEDITOR_EXPORT Document : public KTextEditor::Editor */ virtual TQPtrList<class View> views () const = 0; + /** + * Returns the list position of this document in your app, if applicable. + */ + long documentListPosition () const; + + /** + * Sets the list position of this document in your app, if applicable. + */ + void setDocumentListPosition (long pos); + private: class PrivateDocument *d; static unsigned int globalDocumentNumber; unsigned int myDocumentNumber; + long myDocumentListPosition; }; KTEXTEDITOR_EXPORT Document *createDocument ( const char* libname, TQObject *parent = 0, const char *name = 0 ); |