diff options
author | Slávek Banko <[email protected]> | 2013-10-08 00:13:25 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2013-10-08 05:14:53 +0200 |
commit | 84f5a315c3429b47a7eff15e626e2efdbe4f6e5e (patch) | |
tree | 770861aa9033e1dc6c5168358194ff85b32dd429 /src/editorpage.h | |
parent | 57d8bb3d12aed373eee08915f0ff19f5233aabe3 (diff) | |
download | kscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.tar.gz kscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.zip |
Initial TQt conversion
Diffstat (limited to 'src/editorpage.h')
-rw-r--r-- | src/editorpage.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/src/editorpage.h b/src/editorpage.h index 0af3aaf..37a6e65 100644 --- a/src/editorpage.h +++ b/src/editorpage.h @@ -28,11 +28,11 @@ #ifndef EDITORPAGE_H #define EDITORPAGE_H -#include <qwidget.h> -#include <qhbox.h> -#include <qsplitter.h> -#include <qtabwidget.h> -#include <qpopupmenu.h> +#include <ntqwidget.h> +#include <ntqhbox.h> +#include <ntqsplitter.h> +#include <ntqtabwidget.h> +#include <ntqpopupmenu.h> #include <ktexteditor/document.h> #include <ktexteditor/view.h> #include <ktexteditor/markinterfaceextension.h> @@ -53,16 +53,16 @@ * @author Elad Lahav */ -class EditorPage : public QHBox, SymbolCompletion::Interface +class EditorPage : public TQHBox, SymbolCompletion::Interface { Q_OBJECT public: - EditorPage(KTextEditor::Document*, QPopupMenu*, QTabWidget* pParent = 0, + EditorPage(KTextEditor::Document*, TQPopupMenu*, TQTabWidget* pParent = 0, const char* szName = 0); ~EditorPage(); - void open(const QString&); + void open(const TQString&); void setNewFile(); void save(); bool close(bool bForce = false); @@ -74,26 +74,26 @@ public: KTextEditor::Document* getDocument(); KTextEditor::View* getView(); - QString getFilePath(); - QString getFileName(); + TQString getFilePath(); + TQString getFileName(); bool isWritable(); bool isModified(); - QString getSelection(); - QString getSuggestedText(); - QString getLineContents(uint); + TQString getSelection(); + TQString getSuggestedText(); + TQString getLineContents(uint); void setLayout(bool bShowTagList, const SPLIT_SIZES&); bool getCursorPos(uint&, uint&); bool setCursorPos(uint, uint nCol = 1); void setTabWidth(uint); - virtual QString getWordUnderCursor(uint* pPosInWord = NULL); + virtual TQString getWordUnderCursor(uint* pPosInWord = NULL); /** * Implements the SymbolCompletion interface method for returning an * object that supports KTextEditor::CodeCompletionInterface. * @return A pointer to the View object of the editor */ - virtual QObject* getCCObject() { return m_pView; } + virtual TQObject* getCCObject() { return m_pView; } /** * @return true if a previously unsaved file is currently being edited, @@ -115,7 +115,7 @@ signals: * @param pPage The emitting object * @param sPath The full path of the loaded file */ - void fileOpened(EditorPage* pPage, const QString& sPath); + void fileOpened(EditorPage* pPage, const TQString& sPath); /** * Emitted when an editor is opened for editing a new file. @@ -146,24 +146,24 @@ signals: * @param sPath The full path of the saved file * @param bIsNew true if this is a new file, false otherwise */ - void fileSaved(const QString& sPath, bool bIsNew); + void fileSaved(const TQString& sPath, bool bIsNew); /** * Emitted when a file is closed. * @param sPath The full path of the closed file */ - void fileClosed(const QString& sPath); + void fileClosed(const TQString& sPath); private: /** The tab widget holding this page. */ - QTabWidget* m_pParentTab; + TQTabWidget* m_pParentTab; /** A Ctags process to use on the edited source file. */ CtagsFrontend m_ctags; /** An adjustable splitter for separating the tag list from the editor part. */ - QSplitter* m_pSplit; + TQSplitter* m_pSplit; /** A list view for displaying Ctags results. */ CtagsList* m_pCtagsList; @@ -182,7 +182,7 @@ private: bool m_bNewFile; /** The name of the file being edited. */ - QString m_sName; + TQString m_sName; /** true if the file system allows this file to be modified, false otherwise. */ |