summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/project.h
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/designer/project.h')
-rw-r--r--kdevdesigner/designer/project.h212
1 files changed, 106 insertions, 106 deletions
diff --git a/kdevdesigner/designer/project.h b/kdevdesigner/designer/project.h
index a2606ffa..fb447218 100644
--- a/kdevdesigner/designer/project.h
+++ b/kdevdesigner/designer/project.h
@@ -27,18 +27,18 @@
#ifndef PROJECT_H
#define PROJECT_H
-#include <qfeatures.h>
+#include <tqfeatures.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qptrlist.h>
-#include <qmap.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqptrlist.h>
+#include <tqmap.h>
#include <private/qpluginmanager_p.h>
#include "../interfaces/projectsettingsiface.h"
#include "sourcefile.h"
#include "formfile.h"
-#include <qobjectlist.h>
-#include <qptrdict.h>
+#include <tqobjectlist.h>
+#include <tqptrdict.h>
#include "formfile.h"
class QObjectList;
@@ -66,40 +66,40 @@ public:
DesignerDatabase *iFace();
bool isLoaded() const { return loaded; }
- void setName( const QString& n ) { nm = n; }
- QString name() const { return nm; }
- void setDriver( const QString& d ) { drv = d; }
- QString driver() const { return drv; }
- void setDatabase( const QString& db ) { dbName = db; }
- QString database() const { return dbName; }
- void setUsername( const QString& u ) { uname = u; }
- QString username() const { return uname; }
- void setPassword( const QString& p ) { pword = p; }
- QString password() const { return pword; }
- void setHostname( const QString& h ) { hname = h; }
- QString hostname() const { return hname; }
+ void setName( const TQString& n ) { nm = n; }
+ TQString name() const { return nm; }
+ void setDriver( const TQString& d ) { drv = d; }
+ TQString driver() const { return drv; }
+ void setDatabase( const TQString& db ) { dbName = db; }
+ TQString database() const { return dbName; }
+ void setUsername( const TQString& u ) { uname = u; }
+ TQString username() const { return uname; }
+ void setPassword( const TQString& p ) { pword = p; }
+ TQString password() const { return pword; }
+ void setHostname( const TQString& h ) { hname = h; }
+ TQString hostname() const { return hname; }
void setPort( int p ) { prt = p; }
int port() const { return prt; }
- QString lastError() const { return dbErr; }
- void addTable( const QString& t ) { tbls.append(t); }
- void setFields( const QString& t, const QStringList& f ) { flds[t] = f; }
- QStringList tables() const { return tbls; }
- QStringList fields( const QString& t ) { return flds[t]; }
- QMap<QString, QStringList> fields() { return flds; }
+ TQString lastError() const { return dbErr; }
+ void addTable( const TQString& t ) { tbls.append(t); }
+ void setFields( const TQString& t, const TQStringList& f ) { flds[t] = f; }
+ TQStringList tables() const { return tbls; }
+ TQStringList fields( const TQString& t ) { return flds[t]; }
+ TQMap<TQString, TQStringList> fields() { return flds; }
#ifndef QT_NO_SQL
- QSqlDatabase* connection() const { return conn; }
+ TQSqlDatabase* connection() const { return conn; }
void remove();
#endif
private:
- QString nm;
- QString drv, dbName, uname, pword, hname;
- QString dbErr;
+ TQString nm;
+ TQString drv, dbName, uname, pword, hname;
+ TQString dbErr;
int prt;
- QStringList tbls;
- QMap<QString, QStringList> flds;
+ TQStringList tbls;
+ TQMap<TQString, TQStringList> flds;
#ifndef QT_NO_SQL
- QSqlDatabase *conn;
+ TQSqlDatabase *conn;
#endif
Project *project;
bool loaded;
@@ -114,23 +114,23 @@ class Project : public QObject
friend class DatabaseConnection;
public:
- Project( const QString &fn, const QString &pName = QString::null,
+ Project( const TQString &fn, const TQString &pName = TQString::null,
QPluginManager<ProjectSettingsInterface> *pm = 0, bool isDummy = FALSE,
- const QString &l = "C++" );
+ const TQString &l = "C++" );
~Project();
- void setFileName( const QString &fn, bool doClear = TRUE );
- QString fileName( bool singlePro = FALSE ) const;
- QString projectName() const;
+ void setFileName( const TQString &fn, bool doClear = TRUE );
+ TQString fileName( bool singlePro = FALSE ) const;
+ TQString projectName() const;
- void setDatabaseDescription( const QString &db );
- QString databaseDescription() const;
+ void setDatabaseDescription( const TQString &db );
+ TQString databaseDescription() const;
- void setDescription( const QString &s );
- QString description() const;
+ void setDescription( const TQString &s );
+ TQString description() const;
- void setLanguage( const QString &l );
- QString language() const;
+ void setLanguage( const TQString &l );
+ TQString language() const;
bool isValid() const;
@@ -138,77 +138,77 @@ public:
// returns TRUE if this project is the <No Project> project
bool isDummy() const;
- QString makeAbsolute( const QString &f );
- QString makeRelative( const QString &f );
+ TQString makeAbsolute( const TQString &f );
+ TQString makeRelative( const TQString &f );
void save( bool onlyProjectFile = FALSE );
#ifndef QT_NO_SQL
- QPtrList<DatabaseConnection> databaseConnections() const;
- void setDatabaseConnections( const QPtrList<DatabaseConnection> &lst );
+ TQPtrList<DatabaseConnection> databaseConnections() const;
+ void setDatabaseConnections( const TQPtrList<DatabaseConnection> &lst );
void addDatabaseConnection( DatabaseConnection *conn );
- void removeDatabaseConnection( const QString &conn );
- DatabaseConnection *databaseConnection( const QString &name );
- QStringList databaseConnectionList();
- QStringList databaseTableList( const QString &connection );
- QStringList databaseFieldList( const QString &connection, const QString &table );
+ void removeDatabaseConnection( const TQString &conn );
+ DatabaseConnection *databaseConnection( const TQString &name );
+ TQStringList databaseConnectionList();
+ TQStringList databaseTableList( const TQString &connection );
+ TQStringList databaseFieldList( const TQString &connection, const TQString &table );
#endif
void saveConnections();
void loadConnections();
- bool openDatabase( const QString &connection, bool suppressDialog = TRUE );
- void closeDatabase( const QString &connection );
+ bool openDatabase( const TQString &connection, bool suppressDialog = TRUE );
+ void closeDatabase( const TQString &connection );
- QObjectList *formList( bool resolveFakeObjects = FALSE ) const;
+ TQObjectList *formList( bool resolveFakeObjects = FALSE ) const;
DesignerProject *iFace();
- void setCustomSetting( const QString &key, const QString &value );
- QString customSetting( const QString &key ) const;
+ void setCustomSetting( const TQString &key, const TQString &value );
+ TQString customSetting( const TQString &key ) const;
PixmapCollection *pixmapCollection() const { return pixCollection; }
void setActive( bool b );
- QPtrListIterator<SourceFile> sourceFiles() const { return QPtrListIterator<SourceFile>(sourcefiles); }
+ TQPtrListIterator<SourceFile> sourceFiles() const { return TQPtrListIterator<SourceFile>(sourcefiles); }
void addSourceFile( SourceFile *sf );
bool removeSourceFile( SourceFile *sf );
- SourceFile* findSourceFile( const QString& filename, SourceFile *ignore = 0 ) const;
+ SourceFile* findSourceFile( const TQString& filename, SourceFile *ignore = 0 ) const;
- QPtrListIterator<FormFile> formFiles() const { return QPtrListIterator<FormFile>(formfiles); }
+ TQPtrListIterator<FormFile> formFiles() const { return TQPtrListIterator<FormFile>(formfiles); }
void addFormFile( FormFile *ff );
bool removeFormFile( FormFile *ff );
- FormFile* findFormFile( const QString& filename, FormFile *ignore = 0 ) const;
+ FormFile* findFormFile( const TQString& filename, FormFile *ignore = 0 ) const;
- void setIncludePath( const QString &platform, const QString &path );
- void setLibs( const QString &platform, const QString &path );
- void setDefines( const QString &platform, const QString &path );
- void setConfig( const QString &platform, const QString &config );
- void setTemplate( const QString &t );
+ void setIncludePath( const TQString &platform, const TQString &path );
+ void setLibs( const TQString &platform, const TQString &path );
+ void setDefines( const TQString &platform, const TQString &path );
+ void setConfig( const TQString &platform, const TQString &config );
+ void setTemplate( const TQString &t );
- QString config( const QString &platform ) const;
- QString libs( const QString &platform ) const;
- QString defines( const QString &platform ) const;
- QString includePath( const QString &platform ) const;
- QString templte() const;
+ TQString config( const TQString &platform ) const;
+ TQString libs( const TQString &platform ) const;
+ TQString defines( const TQString &platform ) const;
+ TQString includePath( const TQString &platform ) const;
+ TQString templte() const;
bool isModified() const { return !isDummy() && modified; }
void setModified( bool b );
- void addObject( QObject *o );
- void setObjects( const QObjectList &ol );
- void removeObject( QObject *o );
- QObjectList objects() const;
- FormFile *fakeFormFileFor( QObject *o ) const;
- QObject *objectForFakeForm( FormWindow *fw ) const;
- QObject *objectForFakeFormFile( FormFile *ff ) const;
+ void addObject( TQObject *o );
+ void setObjects( const TQObjectList &ol );
+ void removeObject( TQObject *o );
+ TQObjectList objects() const;
+ FormFile *fakeFormFileFor( TQObject *o ) const;
+ TQObject *objectForFakeForm( FormWindow *fw ) const;
+ TQObject *objectForFakeFormFile( FormFile *ff ) const;
- void addAndEditFunction( const QString &functionName, const QString &functionBody,
+ void addAndEditFunction( const TQString &functionName, const TQString &functionBody,
bool openDeveloper );
void removeTempProject();
- bool hasParentObject( QObject *o );
- QString qualifiedName( QObject *o );
+ bool hasParentObject( TQObject *o );
+ TQString qualifiedName( TQObject *o );
bool isCpp() const { return is_cpp; }
@@ -216,7 +216,7 @@ public:
void formOpened( FormWindow *fw );
- QString locationOfObject( QObject *o );
+ TQString locationOfObject( TQObject *o );
bool hasGUI() const;
@@ -226,46 +226,46 @@ signals:
void sourceFileRemoved( SourceFile* );
void formFileAdded( FormFile* );
void formFileRemoved( FormFile* );
- void objectAdded( QObject * );
- void objectRemoved( QObject * );
+ void objectAdded( TQObject * );
+ void objectRemoved( TQObject * );
void newFormOpened( FormWindow *fw );
private:
void parse();
void clear();
void updateCustomSettings();
- void readPlatformSettings( const QString &contents,
- const QString &setting,
- QMap<QString, QString> &res );
- void removePlatformSettings( QString &contents, const QString &setting );
- void writePlatformSettings( QString &contents, const QString &setting,
- const QMap<QString, QString> &input );
+ void readPlatformSettings( const TQString &contents,
+ const TQString &setting,
+ TQMap<TQString, TQString> &res );
+ void removePlatformSettings( TQString &contents, const TQString &setting );
+ void writePlatformSettings( TQString &contents, const TQString &setting,
+ const TQMap<TQString, TQString> &input );
bool singleProjectMode() const;
- QWidget *messageBoxParent() const;
+ TQWidget *messageBoxParent() const;
private:
- QString filename;
- QString proName;
- QString desc;
- QString dbFile;
+ TQString filename;
+ TQString proName;
+ TQString desc;
+ TQString dbFile;
#ifndef QT_NO_SQL
- QPtrList<DatabaseConnection> dbConnections;
+ TQPtrList<DatabaseConnection> dbConnections;
#endif
- QString lang;
+ TQString lang;
DesignerProject *iface;
- QMap<QString, QString> customSettings;
- QStringList csList;
+ TQMap<TQString, TQString> customSettings;
+ TQStringList csList;
QPluginManager<ProjectSettingsInterface> *projectSettingsPluginManager;
PixmapCollection *pixCollection;
- QPtrList<SourceFile> sourcefiles;
- QPtrList<FormFile> formfiles;
- QMap<QString, QString> inclPath, defs, lbs, cfg, sources, headers;
- QString templ;
+ TQPtrList<SourceFile> sourcefiles;
+ TQPtrList<FormFile> formfiles;
+ TQMap<TQString, TQString> inclPath, defs, lbs, cfg, sources, headers;
+ TQString templ;
bool isDummyProject;
bool modified;
- QObjectList objs;
- QPtrDict<FormFile> fakeFormFiles;
- QString singleProFileName;
+ TQObjectList objs;
+ TQPtrDict<FormFile> fakeFormFiles;
+ TQString singleProFileName;
bool is_cpp;
};