diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 3464d8c505..b29d4f54e0 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,30 @@ The license applies to all entries newer than 2009-04-28. */ +2012-01-17 18:07 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) + * contrib/hbqt/qtgui/qth/filelist.hbm + + Added: new following classes. + + contrib/hbqt/qtgui/qth/QDeclarativeComponent.qth + + contrib/hbqt/qtgui/qth/QDeclarativeContext.qth + + contrib/hbqt/qtgui/qth/QDeclarativeEngine.qth + + contrib/hbqt/qtgui/qth/QDeclarativeError.qth + + contrib/hbqt/qtgui/qth/QDeclarativeExpression.qth + + contrib/hbqt/qtgui/qth/QDeclarativeImageProvider.qth + + contrib/hbqt/qtgui/qth/QDeclarativeItem.qth + + contrib/hbqt/qtgui/qth/QDeclarativeListReference.qth + + contrib/hbqt/qtgui/qth/QDeclarativeParserStatus.qth + + contrib/hbqt/qtgui/qth/QDeclarativeProperty.qth + + contrib/hbqt/qtgui/qth/QDeclarativePropertyMap.qth + + contrib/hbqt/qtgui/qth/QDeclarativePropertyValueSource.qth + + contrib/hbqt/qtgui/qth/QDeclarativeScriptString.qth + + contrib/hbqt/qtgui/qth/QDeclarativeView.qth + + Implemented: QDeclarative*() classes. + These classes implement the "Qt Quick" protocol introduced + in Qt 4.7 onwards and being a whole new world to Harbour + developers. + + TODO: an example how to use them in the context of Harbour. + 2012-01-17 12:13 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) * contrib/hbqt/tests/browqt.prg * contrib/hbqt/tests/wvtqt.prg diff --git a/harbour/contrib/hbqt/qtgui/qth/QDeclarativeComponent.qth b/harbour/contrib/hbqt/qtgui/qth/QDeclarativeComponent.qth new file mode 100644 index 0000000000..955a966418 --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/qth/QDeclarativeComponent.qth @@ -0,0 +1,114 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009-2012 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = Yes +Inherit = QObject +Type = +New = +Version = 0x040700 + + + +#include + + +/* + * QDeclarativeComponent ( QDeclarativeEngine * engine, QObject * parent = 0 ) + * QDeclarativeComponent ( QDeclarativeEngine * engine, const QString & fileName, QObject * parent = 0 ) + * QDeclarativeComponent ( QDeclarativeEngine * engine, const QUrl & url, QObject * parent = 0 ) + * virtual ~QDeclarativeComponent () + */ +HB_FUNC( QT_QDECLARATIVECOMPONENT ) +{ + __HB_RETPTRGC__( new QDeclarativeComponent() ); +} + + + +enum Status { Null, Ready, Loading, Error } + + + +virtual QObject * beginCreate ( QDeclarativeContext * context ) +virtual void completeCreate () +virtual QObject * create ( QDeclarativeContext * context = 0 ) +QDeclarativeContext * creationContext () const +QList errors () const +bool isError () const +bool isLoading () const +bool isNull () const +bool isReady () const +void loadUrl ( const QUrl & url ) +qreal progress () const +void setData ( const QByteArray & data, const QUrl & url ) +Status status () const +QUrl url () const + + + + + + +void progressChanged ( qreal progress ) +void statusChanged ( QDeclarativeComponent::Status status ) + + + + + + + diff --git a/harbour/contrib/hbqt/qtgui/qth/QDeclarativeContext.qth b/harbour/contrib/hbqt/qtgui/qth/QDeclarativeContext.qth new file mode 100644 index 0000000000..a3098a53d8 --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/qth/QDeclarativeContext.qth @@ -0,0 +1,132 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009-2012 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = Yes +Inherit = QObject +Type = +New = +Version = 0x040700 + + + +#include + + +/* + * QDeclarativeContext ( QDeclarativeEngine * engine, QObject * parent = 0 ) + * QDeclarativeContext ( QDeclarativeContext * parentContext, QObject * parent = 0 ) + * virtual ~QDeclarativeContext () + */ +HB_FUNC( QT_QDECLARATIVECONTEXT ) +{ + if( hb_pcount() == 2 && HB_ISOBJECT( 1 ) && HB_ISOBJECT( 2 ) ) + { + if( hbqt_isObjectType( 1, HBQT_TYPE_QDeclarativeEngine ) ) + { + __HB_RETPTRGC__( new QDeclarativeContext( hbqt_par_QDeclarativeEngine( 1 ), hbqt_par_QObject( 2 ) ) ); + } + else + { + __HB_RETPTRGC__( new QDeclarativeContext( hbqt_par_QDeclarativeContext( 1 ), hbqt_par_QObject( 2 ) ) ); + } + } + else if( hb_pcount() == 1 && HB_ISOBJECT( 1 ) ) + { + if( hbqt_isObjectType( 1, HBQT_TYPE_QDeclarativeEngine ) ) + { + __HB_RETPTRGC__( new QDeclarativeContext( hbqt_par_QDeclarativeEngine( 1 ) ) ); + } + else + { + __HB_RETPTRGC__( new QDeclarativeContext( hbqt_par_QDeclarativeContext( 1 ) ) ); + } + } + else + { + __HB_RETPTRGC__( NULL ); + } +} + + + + + + +QUrl baseUrl () const +QObject * contextObject () const +QVariant contextProperty ( const QString & name ) const +QDeclarativeEngine * engine () const +bool isValid () const +QDeclarativeContext * parentContext () const +QUrl resolvedUrl ( const QUrl & src ) +void setBaseUrl ( const QUrl & baseUrl ) +void setContextObject ( QObject * object ) +void setContextProperty ( const QString & name, QObject * value ) +void setContextProperty ( const QString & name, const QVariant & value ) + + + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qtgui/qth/QDeclarativeEngine.qth b/harbour/contrib/hbqt/qtgui/qth/QDeclarativeEngine.qth new file mode 100644 index 0000000000..ff3c4246df --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/qth/QDeclarativeEngine.qth @@ -0,0 +1,131 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009-2012 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = Yes +Inherit = QObject +Type = +New = +Version = 0x040700 + + + +#include + + +/* + * QDeclarativeEngine ( QObject * parent = 0 ) + * virtual ~QDeclarativeEngine () + */ +HB_FUNC( QT_QDECLARATIVEENGINE ) +{ + if( hb_pcount() == 1 && HB_ISOBJECT( 1 ) ) + { + __HB_RETPTRGC__( new QDeclarativeEngine( hbqt_par_QObject( 1 ) ) ); + } + else + { + __HB_RETPTRGC__( new QDeclarativeEngine() ); + } +} + + + +enum ObjectOwnership { CppOwnership, JavaScriptOwnership } + + + +void addImageProvider ( const QString & providerId, QDeclarativeImageProvider * provider ) +void addImportPath ( const QString & path ) +void addPluginPath ( const QString & path ) +QUrl baseUrl () const +void clearComponentCache () +QDeclarativeImageProvider * imageProvider ( const QString & providerId ) const +QStringList importPathList () const +// bool importPlugin ( const QString & filePath, const QString & uri, QString * errorString ) +QNetworkAccessManager * networkAccessManager () const +QDeclarativeNetworkAccessManagerFactory * networkAccessManagerFactory () const +QString offlineStoragePath () const +bool outputWarningsToStandardError () const +QStringList pluginPathList () const +void removeImageProvider ( const QString & providerId ) +QDeclarativeContext * rootContext () const +void setBaseUrl ( const QUrl & url ) +void setImportPathList ( const QStringList & paths ) +void setNetworkAccessManagerFactory ( QDeclarativeNetworkAccessManagerFactory * factory ) +void setOfflineStoragePath ( const QString & dir ) +void setOutputWarningsToStandardError ( bool enabled ) +void setPluginPathList ( const QStringList & paths ) + +QDeclarativeContext * contextForObject ( const QObject * object ) +ObjectOwnership objectOwnership ( QObject * object ) +void setContextForObject ( QObject * object, QDeclarativeContext * context ) +void setObjectOwnership ( QObject * object, ObjectOwnership ownership ) + + + + + + +void quit () +void warnings ( const QList & warnings ) + + + + + + + diff --git a/harbour/contrib/hbqt/qtgui/qth/QDeclarativeError.qth b/harbour/contrib/hbqt/qtgui/qth/QDeclarativeError.qth new file mode 100644 index 0000000000..6b66834c36 --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/qth/QDeclarativeError.qth @@ -0,0 +1,111 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009-2012 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = No +Inherit = +Type = +New = +Version = 0x040700 + + + +#include + + +/* + * + */ +HB_FUNC( QT_QDECLARATIVEERROR ) +{ + if( hb_pcount() == 1 && HB_ISOBJECT( 1 ) ) + { + __HB_RETPTRGC__( new QDeclarativeError( *hbqt_par_QDeclarativeError( 1 ) ) ); + } + else + { + __HB_RETPTRGC__( new QDeclarativeError() ); + } +} + + + + + + +int column () const +QString description () const +bool isValid () const +int line () const +void setColumn ( int column ) +void setDescription ( const QString & description ) +void setLine ( int line ) +void setUrl ( const QUrl & url ) +QString toString () const +QUrl url () const + + + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qtgui/qth/QDeclarativeExpression.qth b/harbour/contrib/hbqt/qtgui/qth/QDeclarativeExpression.qth new file mode 100644 index 0000000000..b15e64a546 --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/qth/QDeclarativeExpression.qth @@ -0,0 +1,111 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009-2012 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = Yes +Inherit = QObject +Type = +New = +Version = 0x040700 + + + +#include + + +/* + * QDeclarativeExpression () + * QDeclarativeExpression ( QDeclarativeContext * ctxt, QObject * scope, const QString & expression, QObject * parent = 0 ) + * virtual ~QDeclarativeExpression () + */ +HB_FUNC( QT_QDECLARATIVEEXPRESSION ) +{ + __HB_RETPTRGC__( new QDeclarativeExpression() ); +} + + + + + + +void clearError () +QDeclarativeContext * context () const +QDeclarativeEngine * engine () const +QDeclarativeError error () const +QVariant evaluate ( bool * valueIsUndefined = 0 ) +QString expression () const +bool hasError () const +int lineNumber () const +bool notifyOnValueChanged () const +QObject * scopeObject () const +void setExpression ( const QString & expression ) +void setNotifyOnValueChanged ( bool notifyOnChange ) +void setSourceLocation ( const QString & url, int line ) +QString sourceFile () const + + + + + + +void valueChanged () + + + + + + + diff --git a/harbour/contrib/hbqt/qtgui/qth/QDeclarativeImageProvider.qth b/harbour/contrib/hbqt/qtgui/qth/QDeclarativeImageProvider.qth new file mode 100644 index 0000000000..78b019fd64 --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/qth/QDeclarativeImageProvider.qth @@ -0,0 +1,99 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009-2012 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = No +Inherit = +Type = +New = +Version = 0x040700 + + + +#include + + +/* + * QDeclarativeImageProvider ( ImageType type ) + * virtual ~QDeclarativeImageProvider () + */ +HB_FUNC( QT_QDECLARATIVEIMAGEPROVIDER ) +{ + __HB_RETPTRGC__( new QDeclarativeImageProvider( ( QDeclarativeImageProvider::ImageType ) hb_parni( 1 ) ) ); +} + + + +enum ImageType { Image, Pixmap } + + + +ImageType imageType () const +virtual QImage requestImage ( const QString & id, QSize * size, const QSize & requestedSize ) +virtual QPixmap requestPixmap ( const QString & id, QSize * size, const QSize & requestedSize ) + + + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qtgui/qth/QDeclarativeItem.qth b/harbour/contrib/hbqt/qtgui/qth/QDeclarativeItem.qth new file mode 100644 index 0000000000..50ecab97d9 --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/qth/QDeclarativeItem.qth @@ -0,0 +1,122 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009-2012 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = Yes +Inherit = QGraphicsObject, QDeclarativeParserStatus +Type = +New = +Version = 0x040700 + + + +#include + + +/* + * QDeclarativeItem ( QDeclarativeItem * parent = 0 ) + * virtual ~QDeclarativeItem () + */ +HB_FUNC( QT_QDECLARATIVEITEM ) +{ + if( hb_pcount() == 1 && HB_ISOBJECT( 1 ) ) + { + __HB_RETPTRGC__( new QDeclarativeItem( hbqt_par_QDeclarativeItem( 1 ) ) ); + } + else + { + __HB_RETPTRGC__( new QDeclarativeItem() ); + } +} + + + +enum TransformOrigin { TopLeft, Top, TopRight, Left, ..., BottomRight } + + + +qreal baselineOffset () const +QDeclarativeItem * childAt ( qreal x, qreal y ) const +QRectF childrenRect () +bool clip () const +void forceActiveFocus () +qreal implicitHeight () const +qreal implicitWidth () const +bool keepMouseGrab () const +QScriptValue mapFromItem ( const QScriptValue & item, qreal x, qreal y ) const +QScriptValue mapToItem ( const QScriptValue & item, qreal x, qreal y ) const +QDeclarativeItem * parentItem () const +void setBaselineOffset ( qreal ) +void setClip ( bool ) +void setKeepMouseGrab ( bool keep ) +void setParentItem ( QDeclarativeItem * parent ) +void setSmooth ( bool smooth ) +void setTransformOrigin ( TransformOrigin origin ) +bool smooth () const +TransformOrigin transformOrigin () const + + + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qtgui/qth/QDeclarativeListReference.qth b/harbour/contrib/hbqt/qtgui/qth/QDeclarativeListReference.qth new file mode 100644 index 0000000000..9624c4feb6 --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/qth/QDeclarativeListReference.qth @@ -0,0 +1,113 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009-2012 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = No +Inherit = +Type = +New = +Version = 0x040700 + + + +#include + + +/* + * QDeclarativeListReference () + * QDeclarativeListReference ( QObject * object, const char * property, QDeclarativeEngine * engine = 0 ) + */ +HB_FUNC( QT_QDECLARATIVELISTREFERENCE ) +{ + if( hb_pcount() >= 2 && HB_ISOBJECT( 1 ) && HB_ISCHAR( 2 ) ) + { + __HB_RETPTRGC__( new QDeclarativeListReference( hbqt_par_QObject( 1 ), hb_parc( 2 ), HB_ISOBJECT( 3 ) ? hbqt_par_QDeclarativeEngine( 3 ) : 0 ) ); + } + else + { + __HB_RETPTRGC__( new QDeclarativeListReference() ); + } +} + + + + + + +bool append ( QObject * object ) const +QObject * at ( int index ) const +bool canAppend () const +bool canAt () const +bool canClear () const +bool canCount () const +bool clear () const +int count () const +bool isValid () const +const QMetaObject * listElementType () const +QObject * object () const + + + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qtgui/qth/QDeclarativeParserStatus.qth b/harbour/contrib/hbqt/qtgui/qth/QDeclarativeParserStatus.qth new file mode 100644 index 0000000000..5169c41ba3 --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/qth/QDeclarativeParserStatus.qth @@ -0,0 +1,96 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009-2012 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = No +Inherit = +Type = +New = +Version = 0x040700 + + + +#include + + +/* + * + */ +HB_FUNC( QT_QDECLARATIVEPARSERSTATUS ) +{ + __HB_RETPTRGC__( NULL ); +} + + + + + + +virtual void classBegin () +virtual void componentComplete () + + + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qtgui/qth/QDeclarativeProperty.qth b/harbour/contrib/hbqt/qtgui/qth/QDeclarativeProperty.qth new file mode 100644 index 0000000000..220ea0489d --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/qth/QDeclarativeProperty.qth @@ -0,0 +1,176 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009-2012 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = No +Inherit = +Type = +New = +Version = 0x040700 + + + +#include + + +/* + * QDeclarativeProperty () + * QDeclarativeProperty ( QObject * obj ) + * QDeclarativeProperty ( QObject * obj, QDeclarativeContext * ctxt ) + * QDeclarativeProperty ( QObject * obj, QDeclarativeEngine * engine ) + * QDeclarativeProperty ( QObject * obj, const QString & name ) + * QDeclarativeProperty ( QObject * obj, const QString & name, QDeclarativeContext * ctxt ) + * QDeclarativeProperty ( QObject * obj, const QString & name, QDeclarativeEngine * engine ) + * QDeclarativeProperty ( const QDeclarativeProperty & other ) + */ +HB_FUNC( QT_QDECLARATIVEPROPERTY ) +{ + if( hb_pcount() == 1 && HB_ISOBJECT( 1 ) ) + { + if( hbqt_isObjectType( 1, HBQT_TYPE_QDeclarativeProperty ) ) + { + __HB_RETPTRGC__( new QDeclarativeProperty( *hbqt_par_QDeclarativeProperty( 1 ) ) ); + } + else + { + __HB_RETPTRGC__( new QDeclarativeProperty( hbqt_par_QObject( 1 ) ) ); + } + } + else if( hb_pcount() == 2 && HB_ISOBJECT( 1 ) && HB_ISOBJECT( 2 ) ) + { + if( hbqt_isObjectType( 2, HBQT_TYPE_QDeclarativeContext ) ) + { + __HB_RETPTRGC__( new QDeclarativeProperty( hbqt_par_QObject( 1 ), hbqt_par_QDeclarativeContext( 2 ) ) ); + } + else + { + __HB_RETPTRGC__( new QDeclarativeProperty( hbqt_par_QObject( 1 ), hbqt_par_QDeclarativeEngine( 2 ) ) ); + } + } + else if( hb_pcount() == 2 && HB_ISOBJECT( 1 ) && HB_ISCHAR( 2 ) ) + { + void * pText01 = NULL; + __HB_RETPTRGC__( new QDeclarativeProperty( hbqt_par_QObject( 1 ), hb_parstr_utf8( 2, &pText01, NULL ) ) ); + hb_strfree( pText01 ); + } + else if( hb_pcount() == 2 && HB_ISOBJECT( 1 ) && HB_ISCHAR( 2 ) && HB_ISOBJECT( 3 ) ) + { + void * pText01 = NULL; + if( hbqt_isObjectType( 2, HBQT_TYPE_QDeclarativeContext ) ) + { + __HB_RETPTRGC__( new QDeclarativeProperty( hbqt_par_QObject( 1 ), hb_parstr_utf8( 2, &pText01, NULL ), hbqt_par_QDeclarativeContext( 3 ) ) ); + } + else + { + __HB_RETPTRGC__( new QDeclarativeProperty( hbqt_par_QObject( 1 ), hb_parstr_utf8( 2, &pText01, NULL ), hbqt_par_QDeclarativeEngine( 3 ) ) ); + } + hb_strfree( pText01 ); + } + else + { + __HB_RETPTRGC__( new QDeclarativeProperty() ); + } +} + + + +enum PropertyTypeCategory { InvalidCategory, List, Object, Normal } +enum Type { Invalid, Property, SignalProperty } + + + +bool connectNotifySignal ( QObject * dest, const char * slot ) const +bool connectNotifySignal ( QObject * dest, int method ) const +bool hasNotifySignal () const +int index () const +bool isDesignable () const +bool isProperty () const +bool isResettable () const +bool isSignalProperty () const +bool isValid () const +bool isWritable () const +QMetaMethod method () const +QString name () const +bool needsNotifySignal () const +QObject * object () const +QMetaProperty property () const +int propertyType () const +PropertyTypeCategory propertyTypeCategory () const +const char * propertyTypeName () const +QVariant read () const +bool reset () const +Type type () const +bool write ( const QVariant & value ) const + +QVariant read ( QObject * object, const QString & name ) +QVariant read ( QObject * object, const QString & name, QDeclarativeContext * ctxt ) +QVariant read ( QObject * object, const QString & name, QDeclarativeEngine * engine ) +bool write ( QObject * object, const QString & name, const QVariant & value ) +bool write ( QObject * object, const QString & name, const QVariant & value, QDeclarativeContext * ctxt ) +bool write ( QObject * object, const QString & name, const QVariant & value, QDeclarativeEngine * engine ) + + + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qtgui/qth/QDeclarativePropertyMap.qth b/harbour/contrib/hbqt/qtgui/qth/QDeclarativePropertyMap.qth new file mode 100644 index 0000000000..a4c2fdc39a --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/qth/QDeclarativePropertyMap.qth @@ -0,0 +1,111 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009-2012 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = Yes +Inherit = QObject +Type = +New = +Version = 0x040700 + + + +#include + + +/* + * QDeclarativePropertyMap ( QObject * parent = 0 ) + * virtual ~QDeclarativePropertyMap () + */ +HB_FUNC( QT_QDECLARATIVEPROPERTYMAP ) +{ + if( hb_pcount() == 1 && HB_ISOBJECT( 1 ) ) + { + __HB_RETPTRGC__( new QDeclarativePropertyMap( hbqt_par_QObject( 1 ) ) ); + } + else + { + __HB_RETPTRGC__( new QDeclarativePropertyMap() ); + } +} + + + + + + +void clear ( const QString & key ) +bool contains ( const QString & key ) const +int count () const +void insert ( const QString & key, const QVariant & value ) +bool isEmpty () const +QStringList keys () const +int size () const +QVariant value ( const QString & key ) const + + + + + + +void valueChanged ( const QString & key, const QVariant & value ) + + + + + + + diff --git a/harbour/contrib/hbqt/qtgui/qth/QDeclarativePropertyValueSource.qth b/harbour/contrib/hbqt/qtgui/qth/QDeclarativePropertyValueSource.qth new file mode 100644 index 0000000000..aa08cebfa8 --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/qth/QDeclarativePropertyValueSource.qth @@ -0,0 +1,96 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009-2012 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = No +Inherit = +Type = +New = +Version = 0x040700 + + + +#include + + +/* + * QDeclarativePropertyValueSource () + * virtual ~QDeclarativePropertyValueSource () + */ +HB_FUNC( QT_QDECLARATIVEPROPERTYVALUESOURCE ) +{ + __HB_RETPTRGC__( NULL ); +} + + + + + + +virtual void setTarget ( const QDeclarativeProperty & property ) + + + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qtgui/qth/QDeclarativeScriptString.qth b/harbour/contrib/hbqt/qtgui/qth/QDeclarativeScriptString.qth new file mode 100644 index 0000000000..f20f7421b6 --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/qth/QDeclarativeScriptString.qth @@ -0,0 +1,108 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009-2012 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = No +Inherit = +Type = +New = +Version = 0x040700 + + + +#include + + +/* + * QDeclarativeScriptString () + * QDeclarativeScriptString ( const QDeclarativeScriptString & other ) + */ +HB_FUNC( QT_QDECLARATIVESCRIPTSTRING ) +{ + if( hb_pcount() == 1 && HB_ISOBJECT( 1 ) ) + { + __HB_RETPTRGC__( new QDeclarativeScriptString( *hbqt_par_QDeclarativeScriptString( 1 ) ) ); + } + else + { + __HB_RETPTRGC__( new QDeclarativeScriptString() ); + } +} + + + + + + +QDeclarativeContext * context () const +QObject * scopeObject () const +QString script () const +void setContext ( QDeclarativeContext * context ) +void setScopeObject ( QObject * object ) +void setScript ( const QString & script ) + + + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qtgui/qth/QDeclarativeView.qth b/harbour/contrib/hbqt/qtgui/qth/QDeclarativeView.qth new file mode 100644 index 0000000000..a936fd17cd --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/qth/QDeclarativeView.qth @@ -0,0 +1,129 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009-2012 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = Yes +Inherit = QGraphicsView +Type = +New = +Version = 0x040700 + + + +#include +#include + + +/* + * QDeclarativeView ( QWidget * parent = 0 ) + * QDeclarativeView ( const QUrl & source, QWidget * parent = 0 ) + * ~QDeclarativeView () + */ +HB_FUNC( QT_QDECLARATIVEVIEW ) +{ + if( hb_pcount() == 2 && HB_ISOBJECT( 1 ) && HB_ISOBJECT( 2 ) ) + { + __HB_RETPTRGC__( new QDeclarativeView( *hbqt_par_QUrl( 1 ), hbqt_par_QWidget( 2 ) ) ); + } + else if( hb_pcount() == 2 && HB_ISOBJECT( 1 ) ) + { + if( hbqt_isObjectType( 1, HBQT_TYPE_QUrl ) ) + { + __HB_RETPTRGC__( new QDeclarativeView( *hbqt_par_QUrl( 1 ), 0 ) ); + } + else + { + __HB_RETPTRGC__( new QDeclarativeView( hbqt_par_QWidget( 1 ) ) ); + } + } + else + { + __HB_RETPTRGC__( new QDeclarativeView() ); + } +} + + + +enum ResizeMode { SizeViewToRootObject, SizeRootObjectToView } +enum Status { Null, Ready, Loading, Error } + + + +QDeclarativeEngine * engine () const +QList errors () const +QSize initialSize () const +ResizeMode resizeMode () const +QDeclarativeContext * rootContext () const +QGraphicsObject * rootObject () const +void setResizeMode ( ResizeMode ) +void setSource ( const QUrl & url ) +QUrl source () const +QDeclarativeView::Status status () const + + + + + + +void sceneResized ( QSize size ) +void statusChanged ( QDeclarativeView::Status status ) + + + + + + + diff --git a/harbour/contrib/hbqt/qtgui/qth/filelist.hbm b/harbour/contrib/hbqt/qtgui/qth/filelist.hbm index 679e2510a3..3fdf0adaa0 100644 --- a/harbour/contrib/hbqt/qtgui/qth/filelist.hbm +++ b/harbour/contrib/hbqt/qtgui/qth/filelist.hbm @@ -40,6 +40,8 @@ QColor.qth QColorDialog.qth QComboBox.qth QCommandLinkButton.qth +QDeclarativePropertyValueSource.qth +QDeclarativeScriptString.qth QCommonStyle.qth QCompleter.qth QConicalGradient.qth @@ -47,6 +49,18 @@ QContextMenuEvent.qth QCursor.qth QDateEdit.qth QDateTimeEdit.qth +QDeclarativeComponent.qth +QDeclarativeContext.qth +QDeclarativeEngine.qth +QDeclarativeError.qth +QDeclarativeExpression.qth +QDeclarativeImageProvider.qth +QDeclarativeItem.qth +QDeclarativeListReference.qth +QDeclarativeParserStatus.qth +QDeclarativeProperty.qth +QDeclarativePropertyMap.qth +QDeclarativeView.qth QDesktopServices.qth QDesktopWidget.qth QDial.qth