summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/metadatabase.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /kdevdesigner/designer/metadatabase.h
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdevdesigner/designer/metadatabase.h')
-rw-r--r--kdevdesigner/designer/metadatabase.h264
1 files changed, 132 insertions, 132 deletions
diff --git a/kdevdesigner/designer/metadatabase.h b/kdevdesigner/designer/metadatabase.h
index f7ce5088..6ded68d6 100644
--- a/kdevdesigner/designer/metadatabase.h
+++ b/kdevdesigner/designer/metadatabase.h
@@ -27,15 +27,15 @@
#ifndef METADATABASE_H
#define METADATABASE_H
-#include <qvariant.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qmap.h>
-#include <qptrlist.h>
-#include <qsizepolicy.h>
-#include <qsize.h>
-#include <qwidgetlist.h>
-#include <qcursor.h>
+#include <tqvariant.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqmap.h>
+#include <tqptrlist.h>
+#include <tqsizepolicy.h>
+#include <tqsize.h>
+#include <tqwidgetlist.h>
+#include <tqcursor.h>
#include "pixmapchooser.h"
#include "../interfaces/languageinterface.h"
@@ -49,8 +49,8 @@ class MetaDataBase
public:
struct Connection
{
- QObject *sender, *receiver;
- QCString signal, slot;
+ TQObject *sender, *receiver;
+ TQCString signal, slot;
bool operator==( const Connection &c ) const {
return sender == c.sender && receiver == c.receiver &&
signal == c.signal && slot == c.slot ;
@@ -59,12 +59,12 @@ public:
struct Function
{
- QString returnType;
- QCString function;
- QString specifier;
- QString access;
- QString type;
- QString language;
+ TQString returnType;
+ TQCString function;
+ TQString specifier;
+ TQString access;
+ TQString type;
+ TQString language;
bool operator==( const Function &f ) const {
return ( returnType == f.returnType &&
function == f.function &&
@@ -78,8 +78,8 @@ public:
struct Property
{
- QCString property;
- QString type;
+ TQCString property;
+ TQString type;
bool operator==( const Property &p ) const {
return property == p.property &&
type == p.type;
@@ -94,20 +94,20 @@ public:
bool operator==( const CustomWidget &w ) const;
CustomWidget &operator=( const CustomWidget &w );
- bool hasSignal( const QCString &signal ) const;
- bool hasSlot( const QCString &slot ) const;
- bool hasProperty( const QCString &prop ) const;
+ bool hasSignal( const TQCString &signal ) const;
+ bool hasSlot( const TQCString &slot ) const;
+ bool hasProperty( const TQCString &prop ) const;
enum IncludePolicy { Global, Local };
- QString className;
- QString includeFile;
+ TQString className;
+ TQString includeFile;
IncludePolicy includePolicy;
- QSize sizeHint;
- QSizePolicy sizePolicy;
- QPixmap *pixmap;
- QValueList<QCString> lstSignals;
- QValueList<Function> lstSlots;
- QValueList<Property> lstProperties;
+ TQSize sizeHint;
+ TQSizePolicy sizePolicy;
+ TQPixmap *pixmap;
+ TQValueList<TQCString> lstSignals;
+ TQValueList<Function> lstSlots;
+ TQValueList<Property> lstProperties;
int id;
bool isContainer;
};
@@ -115,18 +115,18 @@ public:
struct Include
{
Include() : header(), location(), implDecl( "in implementation" ) {}
- QString header;
- QString location;
+ TQString header;
+ TQString location;
bool operator==( const Include &i ) const {
return header == i.header && location == i.location;
}
- QString implDecl;
+ TQString implDecl;
};
struct Variable
{
- QString varName;
- QString varAccess;
+ TQString varName;
+ TQString varAccess;
bool operator==( const Variable &v ) const {
return varName == v.varName &&
varAccess == v.varAccess;
@@ -136,133 +136,133 @@ public:
struct MetaInfo
{
MetaInfo() : classNameChanged( FALSE ) { }
- QString className;
+ TQString className;
bool classNameChanged;
- QString comment;
- QString author;
+ TQString comment;
+ TQString author;
};
MetaDataBase();
static void clearDataBase();
- static void addEntry( QObject *o );
- static void removeEntry( QObject *o );
- static void setPropertyChanged( QObject *o, const QString &property, bool changed );
- static bool isPropertyChanged( QObject *o, const QString &property );
- static void setPropertyComment( QObject *o, const QString &property, const QString &comment );
- static QString propertyComment( QObject *o, const QString &property );
- static QStringList changedProperties( QObject *o );
-
- static void setFakeProperty( QObject *o, const QString &property, const QVariant& value );
- static QVariant fakeProperty( QObject * o, const QString &property );
- static QMap<QString,QVariant>* fakeProperties( QObject* o );
-
- static void setSpacing( QObject *o, int spacing );
- static int spacing( QObject *o );
- static void setMargin( QObject *o, int margin );
- static int margin( QObject *o );
-
- static void setResizeMode( QObject *o, const QString &mode );
- static QString resizeMode( QObject *o );
-
- static void addConnection( QObject *o, QObject *sender, const QCString &signal,
- QObject *receiver, const QCString &slot, bool addCode = TRUE );
- static void removeConnection( QObject *o, QObject *sender, const QCString &signal,
- QObject *receiver, const QCString &slot );
- static bool hasConnection( QObject *o, QObject *sender, const QCString &signal,
- QObject *receiver, const QCString &slot );
- static void setupConnections( QObject *o, const QValueList<LanguageInterface::Connection> &conns );
- static QValueList<Connection> connections( QObject *o );
- static QValueList<Connection> connections( QObject *o, QObject *sender, QObject *receiver );
- static QValueList<Connection> connections( QObject *o, QObject *object );
- static void doConnections( QObject *o );
-
- static void addFunction( QObject *o, const QCString &function, const QString &specifier,
- const QString &access, const QString &type, const QString &language,
- const QString &returnType );
- static void removeFunction( QObject *o, const QCString &function, const QString &specifier,
- const QString &access, const QString &type, const QString &language,
- const QString &returnType );
- static void removeFunction( QObject *o, const QString &function );
- static QValueList<Function> functionList( QObject *o, bool onlyFunctions = FALSE );
- static QValueList<Function> slotList( QObject *o );
- static bool isSlotUsed( QObject *o, const QCString &slot );
- static bool hasFunction( QObject *o, const QCString &function, bool onlyCustom = FALSE );
- static bool hasSlot( QObject *o, const QCString &slot, bool onlyCustom = FALSE );
- static void changeFunction( QObject *o, const QString &function, const QString &newName,
- const QString &returnType );
- static void changeFunctionAttributes( QObject *o, const QString &oldName, const QString &newName,
- const QString &specifier, const QString &access,
- const QString &type, const QString &language,
- const QString &returnType );
- static QString languageOfFunction( QObject *o, const QCString &function );
- static void setFunctionList( QObject *o, const QValueList<Function> &functionList );
+ static void addEntry( TQObject *o );
+ static void removeEntry( TQObject *o );
+ static void setPropertyChanged( TQObject *o, const TQString &property, bool changed );
+ static bool isPropertyChanged( TQObject *o, const TQString &property );
+ static void setPropertyComment( TQObject *o, const TQString &property, const TQString &comment );
+ static TQString propertyComment( TQObject *o, const TQString &property );
+ static TQStringList changedProperties( TQObject *o );
+
+ static void setFakeProperty( TQObject *o, const TQString &property, const TQVariant& value );
+ static TQVariant fakeProperty( TQObject * o, const TQString &property );
+ static TQMap<TQString,TQVariant>* fakeProperties( TQObject* o );
+
+ static void setSpacing( TQObject *o, int spacing );
+ static int spacing( TQObject *o );
+ static void setMargin( TQObject *o, int margin );
+ static int margin( TQObject *o );
+
+ static void setResizeMode( TQObject *o, const TQString &mode );
+ static TQString resizeMode( TQObject *o );
+
+ static void addConnection( TQObject *o, TQObject *sender, const TQCString &signal,
+ TQObject *receiver, const TQCString &slot, bool addCode = TRUE );
+ static void removeConnection( TQObject *o, TQObject *sender, const TQCString &signal,
+ TQObject *receiver, const TQCString &slot );
+ static bool hasConnection( TQObject *o, TQObject *sender, const TQCString &signal,
+ TQObject *receiver, const TQCString &slot );
+ static void setupConnections( TQObject *o, const TQValueList<LanguageInterface::Connection> &conns );
+ static TQValueList<Connection> connections( TQObject *o );
+ static TQValueList<Connection> connections( TQObject *o, TQObject *sender, TQObject *receiver );
+ static TQValueList<Connection> connections( TQObject *o, TQObject *object );
+ static void doConnections( TQObject *o );
+
+ static void addFunction( TQObject *o, const TQCString &function, const TQString &specifier,
+ const TQString &access, const TQString &type, const TQString &language,
+ const TQString &returnType );
+ static void removeFunction( TQObject *o, const TQCString &function, const TQString &specifier,
+ const TQString &access, const TQString &type, const TQString &language,
+ const TQString &returnType );
+ static void removeFunction( TQObject *o, const TQString &function );
+ static TQValueList<Function> functionList( TQObject *o, bool onlyFunctions = FALSE );
+ static TQValueList<Function> slotList( TQObject *o );
+ static bool isSlotUsed( TQObject *o, const TQCString &slot );
+ static bool hasFunction( TQObject *o, const TQCString &function, bool onlyCustom = FALSE );
+ static bool hasSlot( TQObject *o, const TQCString &slot, bool onlyCustom = FALSE );
+ static void changeFunction( TQObject *o, const TQString &function, const TQString &newName,
+ const TQString &returnType );
+ static void changeFunctionAttributes( TQObject *o, const TQString &oldName, const TQString &newName,
+ const TQString &specifier, const TQString &access,
+ const TQString &type, const TQString &language,
+ const TQString &returnType );
+ static TQString languageOfFunction( TQObject *o, const TQCString &function );
+ static void setFunctionList( TQObject *o, const TQValueList<Function> &functionList );
static bool addCustomWidget( CustomWidget *w );
static void removeCustomWidget( CustomWidget *w );
- static QPtrList<CustomWidget> *customWidgets();
+ static TQPtrList<CustomWidget> *customWidgets();
static CustomWidget *customWidget( int id );
static bool isWidgetNameUsed( CustomWidget *w );
- static bool hasCustomWidget( const QString &className );
+ static bool hasCustomWidget( const TQString &className );
- static void setTabOrder( QWidget *w, const QWidgetList &order );
- static QWidgetList tabOrder( QWidget *w );
+ static void setTabOrder( TQWidget *w, const TQWidgetList &order );
+ static TQWidgetList tabOrder( TQWidget *w );
- static void setIncludes( QObject *o, const QValueList<Include> &incs );
- static QValueList<Include> includes( QObject *o );
+ static void setIncludes( TQObject *o, const TQValueList<Include> &incs );
+ static TQValueList<Include> includes( TQObject *o );
- static void setForwards( QObject *o, const QStringList &fwds );
- static QStringList forwards( QObject *o );
+ static void setForwards( TQObject *o, const TQStringList &fwds );
+ static TQStringList forwards( TQObject *o );
- static void setVariables( QObject *o, const QValueList<Variable> &vars );
- static void addVariable( QObject *o, const QString &name, const QString &access );
- static void removeVariable( QObject *o, const QString &name );
- static QValueList<Variable> variables( QObject *o );
- static bool hasVariable( QObject *o, const QString &name );
- static QString extractVariableName( const QString &name );
+ static void setVariables( TQObject *o, const TQValueList<Variable> &vars );
+ static void addVariable( TQObject *o, const TQString &name, const TQString &access );
+ static void removeVariable( TQObject *o, const TQString &name );
+ static TQValueList<Variable> variables( TQObject *o );
+ static bool hasVariable( TQObject *o, const TQString &name );
+ static TQString extractVariableName( const TQString &name );
- static void setSignalList( QObject *o, const QStringList &sigs );
- static QStringList signalList( QObject *o );
+ static void setSignalList( TQObject *o, const TQStringList &sigs );
+ static TQStringList signalList( TQObject *o );
- static void setMetaInfo( QObject *o, MetaInfo mi );
- static MetaInfo metaInfo( QObject *o );
+ static void setMetaInfo( TQObject *o, MetaInfo mi );
+ static MetaInfo metaInfo( TQObject *o );
- static void setCursor( QWidget *w, const QCursor &c );
- static QCursor cursor( QWidget *w );
+ static void setCursor( TQWidget *w, const TQCursor &c );
+ static TQCursor cursor( TQWidget *w );
- static void setPixmapArgument( QObject *o, int pixmap, const QString &arg );
- static QString pixmapArgument( QObject *o, int pixmap );
- static void clearPixmapArguments( QObject *o );
+ static void setPixmapArgument( TQObject *o, int pixmap, const TQString &arg );
+ static TQString pixmapArgument( TQObject *o, int pixmap );
+ static void clearPixmapArguments( TQObject *o );
- static void setPixmapKey( QObject *o, int pixmap, const QString &arg );
- static QString pixmapKey( QObject *o, int pixmap );
- static void clearPixmapKeys( QObject *o );
+ static void setPixmapKey( TQObject *o, int pixmap, const TQString &arg );
+ static TQString pixmapKey( TQObject *o, int pixmap );
+ static void clearPixmapKeys( TQObject *o );
- static void setColumnFields( QObject *o, const QMap<QString, QString> &columnFields );
- static QMap<QString, QString> columnFields( QObject *o );
+ static void setColumnFields( TQObject *o, const TQMap<TQString, TQString> &columnFields );
+ static TQMap<TQString, TQString> columnFields( TQObject *o );
- static void setEditor( const QStringList &langs );
- static bool hasEditor( const QString &lang );
+ static void setEditor( const TQStringList &langs );
+ static bool hasEditor( const TQString &lang );
- static void setupInterfaceManagers( const QString &plugDir );
- static QStringList languages();
+ static void setupInterfaceManagers( const TQString &plugDir );
+ static TQStringList languages();
- static LanguageInterface *languageInterface( const QString &lang );
+ static LanguageInterface *languageInterface( const TQString &lang );
- static QString normalizeFunction( const QString &f );
+ static TQString normalizeFunction( const TQString &f );
- static void clear( QObject *o );
+ static void clear( TQObject *o );
- static void setBreakPoints( QObject *o, const QValueList<uint> &l );
- static void setBreakPointCondition( QObject *o, int line, const QString &condition );
- static QValueList<uint> breakPoints( QObject *o );
- static QString breakPointCondition( QObject *o, int line );
+ static void setBreakPoints( TQObject *o, const TQValueList<uint> &l );
+ static void setBreakPointCondition( TQObject *o, int line, const TQString &condition );
+ static TQValueList<uint> breakPoints( TQObject *o );
+ static TQString breakPointCondition( TQObject *o, int line );
- static void setExportMacro( QObject *o, const QString &macro );
- static QString exportMacro( QObject *o );
+ static void setExportMacro( TQObject *o, const TQString &macro );
+ static TQString exportMacro( TQObject *o );
- static bool hasObject( QObject *o );
+ static bool hasObject( TQObject *o );
};