summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/uilib/qwidgetfactory.h
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/uilib/qwidgetfactory.h')
-rw-r--r--kdevdesigner/uilib/qwidgetfactory.h62
1 files changed, 31 insertions, 31 deletions
diff --git a/kdevdesigner/uilib/qwidgetfactory.h b/kdevdesigner/uilib/qwidgetfactory.h
index 87daa640..c7028696 100644
--- a/kdevdesigner/uilib/qwidgetfactory.h
+++ b/kdevdesigner/uilib/qwidgetfactory.h
@@ -1,15 +1,15 @@
/**********************************************************************
** Copyright (C) 2000 Trolltech AS. All rights reserved.
**
-** This file is part of Qt Designer.
+** This file is part of TQt Designer.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file.
**
-** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
-** licenses may use this file in accordance with the Qt Commercial License
+** Licensees holding valid TQt Enterprise Edition or TQt Professional Edition
+** licenses may use this file in accordance with the TQt Commercial License
** Agreement provided with the Software.
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
@@ -17,17 +17,17 @@
**
** See http://www.trolltech.com/gpl/ for GPL licensing information.
** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
-** information about Qt Commercial License Agreements.
+** information about TQt Commercial License Agreements.
**
** Contact info@trolltech.com if any conditions of this licensing are
** not clear to you.
**
**********************************************************************/
-#ifndef QWIDGETFACTORY_H
-#define QWIDGETFACTORY_H
+#ifndef TQWIDGETFACTORY_H
+#define TQWIDGETFACTORY_H
-#ifndef QT_H
+#ifndef TQT_H
#include <tqstring.h>
#include <tqptrlist.h>
#include <tqimage.h>
@@ -35,7 +35,7 @@
#include <tqvaluelist.h>
#include <tqmap.h>
#include <tqaction.h>
-#endif // QT_H
+#endif // TQT_H
class TQDomDocument;
class TQDomElement;
@@ -45,21 +45,21 @@ class TQListViewItem;
class TQMenuBar;
class TQTable;
class TQWidget;
-class QWidgetFactoryPrivate;
+class TQWidgetFactoryPrivate;
class UibStrTable;
-class QWidgetFactory
+class TQWidgetFactory
{
public:
TQWidgetFactory();
virtual ~TQWidgetFactory();
- static TQWidget *create( const TQString &uiFile, TQObject *connector = 0, TQWidget *parent = 0, const char *name = 0 );
- static TQWidget *create( TQIODevice *dev, TQObject *connector = 0, TQWidget *parent = 0, const char *name = 0 );
+ static TQWidget *create( const TQString &uiFile, TQObject *connector = 0, TQWidget *tqparent = 0, const char *name = 0 );
+ static TQWidget *create( TQIODevice *dev, TQObject *connector = 0, TQWidget *tqparent = 0, const char *name = 0 );
static void addWidgetFactory( TQWidgetFactory *factory );
static void loadImages( const TQString &dir );
- virtual TQWidget *createWidget( const TQString &className, TQWidget *parent, const char *name ) const;
+ virtual TQWidget *createWidget( const TQString &className, TQWidget *tqparent, const char *name ) const;
static TQStringList widgets();
static bool supportsWidget( const TQString &widget );
@@ -68,12 +68,12 @@ private:
void loadImageCollection( const TQDomElement &e );
void loadConnections( const TQDomElement &e, TQObject *connector );
void loadTabOrder( const TQDomElement &e );
- TQWidget *createWidgetInternal( const TQDomElement &e, TQWidget *parent, TQLayout* layout, const TQString &classNameArg );
- TQLayout *createLayout( TQWidget *widget, TQLayout* layout, LayoutType type, bool isQLayoutWidget = FALSE );
- LayoutType layoutType( TQLayout *l ) const;
+ TQWidget *createWidgetInternal( const TQDomElement &e, TQWidget *tqparent, TQLayout* tqlayout, const TQString &classNameArg );
+ TQLayout *createLayout( TQWidget *widget, TQLayout* tqlayout, LayoutType type, bool isTQLayoutWidget = FALSE );
+ LayoutType tqlayoutType( TQLayout *l ) const;
void setProperty( TQObject* widget, const TQString &prop, TQVariant value );
void setProperty( TQObject* widget, const TQString &prop, const TQDomElement &e );
- void createSpacer( const TQDomElement &e, TQLayout *layout );
+ void createSpacer( const TQDomElement &e, TQLayout *tqlayout );
TQImage loadFromCollection( const TQString &name );
TQPixmap loadPixmap( const TQString &name );
TQPixmap loadPixmap( const TQDomElement &e );
@@ -81,7 +81,7 @@ private:
void createListViewColumn( TQListView *lv, const TQString& txt,
const TQPixmap& pix, bool clickable,
bool resizable );
-#ifndef QT_NO_TABLE
+#ifndef TQT_NO_TABLE
void createTableColumnOrRow( TQTable *table, const TQString& txt,
const TQPixmap& pix, const TQString& field,
bool isRow );
@@ -89,7 +89,7 @@ private:
void createColumn( const TQDomElement &e, TQWidget *widget );
void loadItem( const TQDomElement &e, TQPixmap &pix, TQString &txt, bool &hasPixmap );
void createItem( const TQDomElement &e, TQWidget *widget, TQListViewItem *i = 0 );
- void loadChildAction( TQObject *parent, const TQDomElement &e );
+ void loadChildAction( TQObject *tqparent, const TQDomElement &e );
void loadActions( const TQDomElement &e );
void loadToolBars( const TQDomElement &e );
void loadMenuBar( const TQDomElement &e );
@@ -98,10 +98,10 @@ private:
TQAction *findAction( const TQString &name );
void loadExtraSource();
TQString translate( const char *sourceText, const char *comment = "" );
- TQString translate( const TQString& sourceText, const TQString& comment = TQString::null );
+ TQString translate( const TQString& sourceText, const TQString& comment = TQString() );
- void unpackUInt16( TQDataStream& in, Q_UINT16& n );
- void unpackUInt32( TQDataStream& in, Q_UINT32& n );
+ void unpackUInt16( TQDataStream& in, TQ_UINT16& n );
+ void unpackUInt32( TQDataStream& in, TQ_UINT32& n );
void unpackByteArray( TQDataStream& in, TQByteArray& array );
void unpackCString( const UibStrTable& strings, TQDataStream& in,
TQCString& cstr );
@@ -112,21 +112,21 @@ private:
void unpackVariant( const UibStrTable& strings, TQDataStream& in,
TQVariant& value );
void inputSpacer( const UibStrTable& strings, TQDataStream& in,
- TQLayout *parent );
+ TQLayout *tqparent );
void inputColumnOrRow( const UibStrTable& strings, TQDataStream& in,
- TQObject *parent, bool isRow );
+ TQObject *tqparent, bool isRow );
void inputItem( const UibStrTable& strings, TQDataStream& in,
- TQObject *parent, TQListViewItem *parentItem = 0 );
+ TQObject *tqparent, TQListViewItem *tqparentItem = 0 );
void inputMenuItem( TQObject **objects, const UibStrTable& strings,
TQDataStream& in, TQMenuBar *menuBar );
TQObject *inputObject( TQObject **objects, int& numObjects,
const UibStrTable& strings, TQDataStream& in,
- TQWidget *ancestorWidget, TQObject *parent,
+ TQWidget *ancestorWidget, TQObject *tqparent,
TQCString className = "" );
TQWidget *createFromUiFile( TQDomDocument doc, TQObject *connector,
- TQWidget *parent, const char *name );
+ TQWidget *tqparent, const char *name );
TQWidget *createFromUibFile( TQDataStream& in, TQObject *connector,
- TQWidget *parent, const char *name );
+ TQWidget *tqparent, const char *name );
private:
struct Image {
@@ -145,7 +145,7 @@ private:
TQString name;
TQPixmap pix;
TQString field;
- Q_DUMMY_COMPARISON_OPERATOR( Field )
+ TQ_DUMMY_COMPARISON_OPERATOR( Field )
};
struct SqlWidgetConnection
@@ -156,12 +156,12 @@ private:
TQString conn;
TQString table;
TQMap<TQString, TQString> *dbControls;
- Q_DUMMY_COMPARISON_OPERATOR( SqlWidgetConnection )
+ TQ_DUMMY_COMPARISON_OPERATOR( SqlWidgetConnection )
};
TQValueList<Image> images;
TQWidget *toplevel;
- QWidgetFactoryPrivate *d;
+ TQWidgetFactoryPrivate *d;
TQMap<TQString, TQString> *dbControls;
TQMap<TQString, TQStringList> dbTables;
TQMap<TQWidget*, SqlWidgetConnection> sqlWidgetConnections;