diff options
Diffstat (limited to 'kjsembed/qtbindings/qmenudata_imp.cpp')
-rw-r--r-- | kjsembed/qtbindings/qmenudata_imp.cpp | 184 |
1 files changed, 92 insertions, 92 deletions
diff --git a/kjsembed/qtbindings/qmenudata_imp.cpp b/kjsembed/qtbindings/qmenudata_imp.cpp index aecd1808..da91f8dd 100644 --- a/kjsembed/qtbindings/qmenudata_imp.cpp +++ b/kjsembed/qtbindings/qmenudata_imp.cpp @@ -1,13 +1,13 @@ -#include <qcstring.h> -#include <qimage.h> -#include <qpainter.h> -#include <qpalette.h> -#include <qpixmap.h> -#include <qfont.h> -#include <qkeysequence.h> +#include <tqcstring.h> +#include <tqimage.h> +#include <tqpainter.h> +#include <tqpalette.h> +#include <tqpixmap.h> +#include <tqfont.h> +#include <tqkeysequence.h> #include <kjs/object.h> #include <kjsembed/global.h> @@ -15,7 +15,7 @@ #include <kjsembed/jsopaqueproxy.h> #include <kjsembed/jsbinding.h> -#include <qmenudata.h> +#include <tqmenudata.h> #include "qmenudata_imp.h" /** @@ -43,7 +43,7 @@ void QMenuDataImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object }; int idx = 0; - QCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -121,7 +121,7 @@ void QMenuDataImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - QCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -134,25 +134,25 @@ void QMenuDataImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a QMenuData pointer from an Object. + * Extract a TQMenuData pointer from an Object. */ -QMenuData *QMenuDataImp::toQMenuData( KJS::Object &self ) +TQMenuData *QMenuDataImp::toQMenuData( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - QObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<QMenuData *>( obj ); + return dynamic_cast<TQMenuData *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "QMenuData" ) + if ( op->typeName() != "TQMenuData" ) return 0; - return op->toNative<QMenuData>(); + return op->toNative<TQMenuData>(); } /** @@ -170,7 +170,7 @@ KJS::Object QMenuDataImp::construct( KJS::ExecState *exec, const KJS::List &args break; } - QString msg = i18n("QMenuDataCons has no constructor with id '%1'").arg(id); + TQString msg = i18n("QMenuDataCons has no constructor with id '%1'").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -179,9 +179,9 @@ KJS::Object QMenuDataImp::QMenuData_1( KJS::ExecState *exec, const KJS::List &ar { - // We should now create an instance of the QMenuData object + // We should now create an instance of the TQMenuData object - QMenuData *ret = new QMenuData( + TQMenuData *ret = new TQMenuData( ); return KJS::Object(); @@ -409,7 +409,7 @@ KJS::Value QMenuDataImp::call( KJS::ExecState *exec, KJS::Object &self, const KJ break; } - QString msg = i18n( "QMenuDataImp has no method with id '%1'" ).arg( id ); + TQString msg = i18n( "QMenuDataImp has no method with id '%1'" ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -426,19 +426,19 @@ KJS::Value QMenuDataImp::count_3( KJS::ExecState *exec, KJS::Object &obj, const KJS::Value QMenuDataImp::insertItem_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QString arg0 = extractQString(exec, args, 0); + TQString arg0 = extractQString(exec, args, 0); - // Unsupported parameter const QObject * + // Unsupported parameter const TQObject * return KJS::Value(); - const QObject * arg1; // Dummy + const TQObject * arg1; // Dummy const char *arg2 = (args.size() >= 3) ? args[2].toString(exec).ascii() : 0; // Unsupported parameter const QKeySequence return KJS::Value(); - const QKeySequence arg3; // Dummy + const TQKeySequence arg3; // Dummy int arg4 = extractInt(exec, args, 4); @@ -462,21 +462,21 @@ KJS::Value QMenuDataImp::insertItem_5( KJS::ExecState *exec, KJS::Object &obj, c // Unsupported parameter const QIconSet return KJS::Value(); - const QIconSet arg0; // Dummy + const TQIconSet arg0; // Dummy - QString arg1 = extractQString(exec, args, 1); + TQString arg1 = extractQString(exec, args, 1); - // Unsupported parameter const QObject * + // Unsupported parameter const TQObject * return KJS::Value(); - const QObject * arg2; // Dummy + const TQObject * arg2; // Dummy const char *arg3 = (args.size() >= 4) ? args[3].toString(exec).ascii() : 0; // Unsupported parameter const QKeySequence return KJS::Value(); - const QKeySequence arg4; // Dummy + const TQKeySequence arg4; // Dummy int arg5 = extractInt(exec, args, 5); @@ -498,19 +498,19 @@ KJS::Value QMenuDataImp::insertItem_5( KJS::ExecState *exec, KJS::Object &obj, c KJS::Value QMenuDataImp::insertItem_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QPixmap arg0 = extractQPixmap(exec, args, 0); + TQPixmap arg0 = extractQPixmap(exec, args, 0); - // Unsupported parameter const QObject * + // Unsupported parameter const TQObject * return KJS::Value(); - const QObject * arg1; // Dummy + const TQObject * arg1; // Dummy const char *arg2 = (args.size() >= 3) ? args[2].toString(exec).ascii() : 0; // Unsupported parameter const QKeySequence return KJS::Value(); - const QKeySequence arg3; // Dummy + const TQKeySequence arg3; // Dummy int arg4 = extractInt(exec, args, 4); @@ -534,21 +534,21 @@ KJS::Value QMenuDataImp::insertItem_7( KJS::ExecState *exec, KJS::Object &obj, c // Unsupported parameter const QIconSet return KJS::Value(); - const QIconSet arg0; // Dummy + const TQIconSet arg0; // Dummy - QPixmap arg1 = extractQPixmap(exec, args, 1); + TQPixmap arg1 = extractQPixmap(exec, args, 1); - // Unsupported parameter const QObject * + // Unsupported parameter const TQObject * return KJS::Value(); - const QObject * arg2; // Dummy + const TQObject * arg2; // Dummy const char *arg3 = (args.size() >= 4) ? args[3].toString(exec).ascii() : 0; // Unsupported parameter const QKeySequence return KJS::Value(); - const QKeySequence arg4; // Dummy + const TQKeySequence arg4; // Dummy int arg5 = extractInt(exec, args, 5); @@ -570,7 +570,7 @@ KJS::Value QMenuDataImp::insertItem_7( KJS::ExecState *exec, KJS::Object &obj, c KJS::Value QMenuDataImp::insertItem_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QString arg0 = extractQString(exec, args, 0); + TQString arg0 = extractQString(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -591,9 +591,9 @@ KJS::Value QMenuDataImp::insertItem_9( KJS::ExecState *exec, KJS::Object &obj, c // Unsupported parameter const QIconSet return KJS::Value(); - const QIconSet arg0; // Dummy + const TQIconSet arg0; // Dummy - QString arg1 = extractQString(exec, args, 1); + TQString arg1 = extractQString(exec, args, 1); int arg2 = extractInt(exec, args, 2); @@ -612,12 +612,12 @@ KJS::Value QMenuDataImp::insertItem_9( KJS::ExecState *exec, KJS::Object &obj, c KJS::Value QMenuDataImp::insertItem_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QString arg0 = extractQString(exec, args, 0); + TQString arg0 = extractQString(exec, args, 0); - // Unsupported parameter QPopupMenu * + // Unsupported parameter TQPopupMenu * return KJS::Value(); - QPopupMenu * arg1; // Dummy + TQPopupMenu * arg1; // Dummy int arg2 = extractInt(exec, args, 2); @@ -639,14 +639,14 @@ KJS::Value QMenuDataImp::insertItem_11( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const QIconSet return KJS::Value(); - const QIconSet arg0; // Dummy + const TQIconSet arg0; // Dummy - QString arg1 = extractQString(exec, args, 1); + TQString arg1 = extractQString(exec, args, 1); - // Unsupported parameter QPopupMenu * + // Unsupported parameter TQPopupMenu * return KJS::Value(); - QPopupMenu * arg2; // Dummy + TQPopupMenu * arg2; // Dummy int arg3 = extractInt(exec, args, 3); @@ -666,7 +666,7 @@ KJS::Value QMenuDataImp::insertItem_11( KJS::ExecState *exec, KJS::Object &obj, KJS::Value QMenuDataImp::insertItem_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QPixmap arg0 = extractQPixmap(exec, args, 0); + TQPixmap arg0 = extractQPixmap(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -687,9 +687,9 @@ KJS::Value QMenuDataImp::insertItem_13( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const QIconSet return KJS::Value(); - const QIconSet arg0; // Dummy + const TQIconSet arg0; // Dummy - QPixmap arg1 = extractQPixmap(exec, args, 1); + TQPixmap arg1 = extractQPixmap(exec, args, 1); int arg2 = extractInt(exec, args, 2); @@ -708,12 +708,12 @@ KJS::Value QMenuDataImp::insertItem_13( KJS::ExecState *exec, KJS::Object &obj, KJS::Value QMenuDataImp::insertItem_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QPixmap arg0 = extractQPixmap(exec, args, 0); + TQPixmap arg0 = extractQPixmap(exec, args, 0); - // Unsupported parameter QPopupMenu * + // Unsupported parameter TQPopupMenu * return KJS::Value(); - QPopupMenu * arg1; // Dummy + TQPopupMenu * arg1; // Dummy int arg2 = extractInt(exec, args, 2); @@ -735,14 +735,14 @@ KJS::Value QMenuDataImp::insertItem_15( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const QIconSet return KJS::Value(); - const QIconSet arg0; // Dummy + const TQIconSet arg0; // Dummy - QPixmap arg1 = extractQPixmap(exec, args, 1); + TQPixmap arg1 = extractQPixmap(exec, args, 1); - // Unsupported parameter QPopupMenu * + // Unsupported parameter TQPopupMenu * return KJS::Value(); - QPopupMenu * arg2; // Dummy + TQPopupMenu * arg2; // Dummy int arg3 = extractInt(exec, args, 3); @@ -762,10 +762,10 @@ KJS::Value QMenuDataImp::insertItem_15( KJS::ExecState *exec, KJS::Object &obj, KJS::Value QMenuDataImp::insertItem_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter QWidget * + // Unsupported parameter TQWidget * return KJS::Value(); - QWidget * arg0; // Dummy + TQWidget * arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -786,12 +786,12 @@ KJS::Value QMenuDataImp::insertItem_17( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const QIconSet return KJS::Value(); - const QIconSet arg0; // Dummy + const TQIconSet arg0; // Dummy - // Unsupported parameter QCustomMenuItem * + // Unsupported parameter TQCustomMenuItem * return KJS::Value(); - QCustomMenuItem * arg1; // Dummy + TQCustomMenuItem * arg1; // Dummy int arg2 = extractInt(exec, args, 2); @@ -810,10 +810,10 @@ KJS::Value QMenuDataImp::insertItem_17( KJS::ExecState *exec, KJS::Object &obj, KJS::Value QMenuDataImp::insertItem_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter QCustomMenuItem * + // Unsupported parameter TQCustomMenuItem * return KJS::Value(); - QCustomMenuItem * arg0; // Dummy + TQCustomMenuItem * arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -887,7 +887,7 @@ KJS::Value QMenuDataImp::setAccel_24( KJS::ExecState *exec, KJS::Object &obj, co // Unsupported parameter const QKeySequence return KJS::Value(); - const QKeySequence arg0; // Dummy + const TQKeySequence arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -905,7 +905,7 @@ KJS::Value QMenuDataImp::iconSet_25( KJS::ExecState *exec, KJS::Object &obj, con instance->iconSet( arg0 ); - return KJS::Value(); // Returns 'QIconSet *' + return KJS::Value(); // Returns 'TQIconSet *' } @@ -914,7 +914,7 @@ KJS::Value QMenuDataImp::text_26( KJS::ExecState *exec, KJS::Object &obj, const int arg0 = extractInt(exec, args, 0); - QString ret; + TQString ret; ret = instance->text( arg0 ); return KJS::String( ret ); @@ -928,7 +928,7 @@ KJS::Value QMenuDataImp::pixmap_27( KJS::ExecState *exec, KJS::Object &obj, cons instance->pixmap( arg0 ); - return KJS::Value(); // Returns 'QPixmap *' + return KJS::Value(); // Returns 'TQPixmap *' } @@ -937,7 +937,7 @@ KJS::Value QMenuDataImp::setWhatsThis_28( KJS::ExecState *exec, KJS::Object &obj int arg0 = extractInt(exec, args, 0); - QString arg1 = extractQString(exec, args, 1); + TQString arg1 = extractQString(exec, args, 1); instance->setWhatsThis( arg0, @@ -951,7 +951,7 @@ KJS::Value QMenuDataImp::whatsThis_29( KJS::ExecState *exec, KJS::Object &obj, c int arg0 = extractInt(exec, args, 0); - QString ret; + TQString ret; ret = instance->whatsThis( arg0 ); return KJS::String( ret ); @@ -963,7 +963,7 @@ KJS::Value QMenuDataImp::changeItem_30( KJS::ExecState *exec, KJS::Object &obj, int arg0 = extractInt(exec, args, 0); - QString arg1 = extractQString(exec, args, 1); + TQString arg1 = extractQString(exec, args, 1); instance->changeItem( arg0, @@ -977,7 +977,7 @@ KJS::Value QMenuDataImp::changeItem_31( KJS::ExecState *exec, KJS::Object &obj, int arg0 = extractInt(exec, args, 0); - QPixmap arg1 = extractQPixmap(exec, args, 1); + TQPixmap arg1 = extractQPixmap(exec, args, 1); instance->changeItem( arg0, @@ -994,9 +994,9 @@ KJS::Value QMenuDataImp::changeItem_32( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const QIconSet return KJS::Value(); - const QIconSet arg1; // Dummy + const TQIconSet arg1; // Dummy - QString arg2 = extractQString(exec, args, 2); + TQString arg2 = extractQString(exec, args, 2); instance->changeItem( arg0, @@ -1014,9 +1014,9 @@ KJS::Value QMenuDataImp::changeItem_33( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const QIconSet return KJS::Value(); - const QIconSet arg1; // Dummy + const TQIconSet arg1; // Dummy - QPixmap arg2 = extractQPixmap(exec, args, 2); + TQPixmap arg2 = extractQPixmap(exec, args, 2); instance->changeItem( arg0, @@ -1029,7 +1029,7 @@ KJS::Value QMenuDataImp::changeItem_33( KJS::ExecState *exec, KJS::Object &obj, KJS::Value QMenuDataImp::changeItem_34( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QString arg0 = extractQString(exec, args, 0); + TQString arg0 = extractQString(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -1043,7 +1043,7 @@ KJS::Value QMenuDataImp::changeItem_34( KJS::ExecState *exec, KJS::Object &obj, KJS::Value QMenuDataImp::changeItem_35( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QPixmap arg0 = extractQPixmap(exec, args, 0); + TQPixmap arg0 = extractQPixmap(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -1060,9 +1060,9 @@ KJS::Value QMenuDataImp::changeItem_36( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const QIconSet return KJS::Value(); - const QIconSet arg0; // Dummy + const TQIconSet arg0; // Dummy - QString arg1 = extractQString(exec, args, 1); + TQString arg1 = extractQString(exec, args, 1); int arg2 = extractInt(exec, args, 2); @@ -1218,10 +1218,10 @@ KJS::Value QMenuDataImp::connectItem_48( KJS::ExecState *exec, KJS::Object &obj, int arg0 = extractInt(exec, args, 0); - // Unsupported parameter const QObject * + // Unsupported parameter const TQObject * return KJS::Value(); - const QObject * arg1; // Dummy + const TQObject * arg1; // Dummy const char *arg2 = (args.size() >= 3) ? args[2].toString(exec).ascii() : 0; @@ -1239,10 +1239,10 @@ KJS::Value QMenuDataImp::disconnectItem_49( KJS::ExecState *exec, KJS::Object &o int arg0 = extractInt(exec, args, 0); - // Unsupported parameter const QObject * + // Unsupported parameter const TQObject * return KJS::Value(); - const QObject * arg1; // Dummy + const TQObject * arg1; // Dummy const char *arg2 = (args.size() >= 3) ? args[2].toString(exec).ascii() : 0; @@ -1289,7 +1289,7 @@ KJS::Value QMenuDataImp::findItem_52( KJS::ExecState *exec, KJS::Object &obj, co instance->findItem( arg0 ); - return KJS::Value(); // Returns 'QMenuItem *' + return KJS::Value(); // Returns 'TQMenuItem *' } @@ -1298,25 +1298,25 @@ KJS::Value QMenuDataImp::findItem_53( KJS::ExecState *exec, KJS::Object &obj, co int arg0 = extractInt(exec, args, 0); - // Unsupported parameter QMenuData ** + // Unsupported parameter TQMenuData ** return KJS::Value(); - QMenuData ** arg1; // Dummy + TQMenuData ** arg1; // Dummy instance->findItem( arg0, arg1 ); - return KJS::Value(); // Returns 'QMenuItem *' + return KJS::Value(); // Returns 'TQMenuItem *' } KJS::Value QMenuDataImp::findPopup_54( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter QPopupMenu * + // Unsupported parameter TQPopupMenu * return KJS::Value(); - QPopupMenu * arg0; // Dummy + TQPopupMenu * arg0; // Dummy // Unsupported parameter int * return KJS::Value(); @@ -1326,7 +1326,7 @@ KJS::Value QMenuDataImp::findPopup_54( KJS::ExecState *exec, KJS::Object &obj, c instance->findPopup( arg0, arg1 ); - return KJS::Value(); // Returns 'QMenuItem *' + return KJS::Value(); // Returns 'TQMenuItem *' } |