summaryrefslogtreecommitdiffstats
path: root/src/projectbase.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/projectbase.h')
-rw-r--r--src/projectbase.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/projectbase.h b/src/projectbase.h
index 4170652..eb0356d 100644
--- a/src/projectbase.h
+++ b/src/projectbase.h
@@ -28,9 +28,9 @@
#ifndef PROJECTBASE_H
#define PROJECTBASE_H
-#include <qstringlist.h>
-#include <qdir.h>
-#include <qfile.h>
+#include <ntqstringlist.h>
+#include <ntqdir.h>
+#include <ntqfile.h>
#include <kconfig.h>
#define DEF_IS_KERNEL false
@@ -75,7 +75,7 @@ public:
* Appends a file to the list.
* @param sFilePath The full path of the file to add
*/
- virtual void addItem(const QString& sFilePath) = 0;
+ virtual void addItem(const TQString& sFilePath) = 0;
};
/**
@@ -106,14 +106,14 @@ public:
* @param sFilePath Holds the path of the first file, upon return
* @return true if there are more files, false otherwise
*/
- virtual bool firstItem(QString& sFilePath) = 0;
+ virtual bool firstItem(TQString& sFilePath) = 0;
/**
* Returns the next file in the list.
* @param sFilePath Holds the path of the file, upon return
* @return true if there are more files, false otherwise
*/
- virtual bool nextItem(QString& sFilePath) = 0;
+ virtual bool nextItem(TQString& sFilePath) = 0;
};
/**
@@ -129,11 +129,11 @@ struct FileLocation
* @param nLine The line position of the cursor
* @param nCol The column position of the cursor
*/
- FileLocation(QString sPath, uint nLine, uint nCol) : m_sPath(sPath),
+ FileLocation(TQString sPath, uint nLine, uint nCol) : m_sPath(sPath),
m_nLine(nLine), m_nCol(nCol) {}
/** The full path of the file. */
- QString m_sPath;
+ TQString m_sPath;
/** The line position of the cursor. */
uint m_nLine;
@@ -145,7 +145,7 @@ struct FileLocation
/**
* A list of file locations used for restoring a session.
*/
-typedef QPtrList<FileLocation> FileLocationList;
+typedef TQPtrList<FileLocation> FileLocationList;
class FileSemaphore;
@@ -162,11 +162,11 @@ public:
* Configurable project options.
*/
struct Options {
- QString sSrcRootPath;
+ TQString sSrcRootPath;
/** A list of MIME-types that determines which files are included in
the project. */
- QStringList slFileTypes;
+ TQStringList slFileTypes;
/** true if the -k option for CScope should be used. */
bool bKernel;
@@ -201,22 +201,22 @@ public:
uint nTabWidth;
/** Ctags command line. */
- QString sCtagsCmd;
+ TQString sCtagsCmd;
};
- virtual bool open(const QString&);
+ virtual bool open(const TQString&);
virtual bool loadFileList(FileListTarget*);
virtual bool storeFileList(FileListSource*) { return false; }
virtual bool isEmpty() { return false; }
bool dbExists();
virtual void close() {}
- virtual QString getFileTypes() const { return QString::null; }
+ virtual TQString getFileTypes() const { return TQString::null; }
virtual void getOptions(Options&) const;
virtual void setOptions(const Options&) {}
- virtual void getSymHistory(QStringList&) const {}
- virtual void setSymHistory(QStringList&) {}
- virtual void getMakeParams(QString&, QString&) const;
+ virtual void getSymHistory(TQStringList&) const {}
+ virtual void setSymHistory(TQStringList&) {}
+ virtual void getMakeParams(TQString&, TQString&) const;
/**
* Determines whether a project is based on a Cscope.out file, and is
@@ -228,12 +228,12 @@ public:
/**
* @return The name of the current project
*/
- QString getName() const { return m_sName; }
+ TQString getName() const { return m_sName; }
/**
* @return The full path of the project's directory
*/
- QString getPath() const { return m_dir.absPath(); }
+ TQString getPath() const { return m_dir.absPath(); }
/**
* @return Command-line arguments to pass to a Cscope object, based on
@@ -241,7 +241,7 @@ public:
*/
uint getArgs() const { return m_nArgs; }
- const QString& getSourceRoot() const { return m_opt.sSrcRootPath; }
+ const TQString& getSourceRoot() const { return m_opt.sSrcRootPath; }
/**
* @return The time, in seconds, to wait before rebuilding the
@@ -258,10 +258,10 @@ public:
protected:
/** The name of the project, as written in the configuration file */
- QString m_sName;
+ TQString m_sName;
/** The directory associated with the project */
- QDir m_dir;
+ TQDir m_dir;
/** A cached version of the project's options. */
Options m_opt;
@@ -271,11 +271,11 @@ protected:
uint m_nArgs;
/** A list of symbols previously queried. */
- QStringList m_slSymHistory;
+ TQStringList m_slSymHistory;
void initOptions();
- static bool isCscopeOut(const QString&);
+ static bool isCscopeOut(const TQString&);
};
#endif