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.
This commit is contained in:
Pritpal Bedi
2012-01-18 02:13:03 +00:00
parent 7c9dd1a681
commit 7a5a9f2012
16 changed files with 1687 additions and 0 deletions

View File

@@ -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

View File

@@ -0,0 +1,114 @@
/*
* $Id$
*/
/*
* Harbour Project source code:
* QT Source Generator for Harbour
*
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
* 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
;
<CLASS>
QObject = Yes
Inherit = QObject
Type =
New =
Version = 0x040700
</CLASS>
<CODE>
#include <QtDeclarative/QDeclarativeComponent>
/*
* 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() );
}
</CODE>
<ENUMS>
enum Status { Null, Ready, Loading, Error }
</ENUMS>
<PROTOS>
virtual QObject * beginCreate ( QDeclarativeContext * context )
virtual void completeCreate ()
virtual QObject * create ( QDeclarativeContext * context = 0 )
QDeclarativeContext * creationContext () const
QList<QDeclarativeError> 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
</PROTOS>
<SLOTS>
</SLOTS>
<SIGNALS>
void progressChanged ( qreal progress )
void statusChanged ( QDeclarativeComponent::Status status )
</SIGNALS>
<VARIABLES>
</VARIABLES>

View File

@@ -0,0 +1,132 @@
/*
* $Id$
*/
/*
* Harbour Project source code:
* QT Source Generator for Harbour
*
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
* 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
;
<CLASS>
QObject = Yes
Inherit = QObject
Type =
New =
Version = 0x040700
</CLASS>
<CODE>
#include <QtDeclarative/QDeclarativeContext>
/*
* 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 );
}
}
</CODE>
<ENUMS>
</ENUMS>
<PROTOS>
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 )
</PROTOS>
<SLOTS>
</SLOTS>
<SIGNALS>
</SIGNALS>
<VARIABLES>
</VARIABLES>

View File

@@ -0,0 +1,131 @@
/*
* $Id$
*/
/*
* Harbour Project source code:
* QT Source Generator for Harbour
*
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
* 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
;
<CLASS>
QObject = Yes
Inherit = QObject
Type =
New =
Version = 0x040700
</CLASS>
<CODE>
#include <QtDeclarative/QDeclarativeEngine>
/*
* 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() );
}
}
</CODE>
<ENUMS>
enum ObjectOwnership { CppOwnership, JavaScriptOwnership }
</ENUMS>
<PROTOS>
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 )
</PROTOS>
<SLOTS>
</SLOTS>
<SIGNALS>
void quit ()
void warnings ( const QList<QDeclarativeError> & warnings )
</SIGNALS>
<VARIABLES>
</VARIABLES>

View File

@@ -0,0 +1,111 @@
/*
* $Id$
*/
/*
* Harbour Project source code:
* QT Source Generator for Harbour
*
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
* 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
;
<CLASS>
QObject = No
Inherit =
Type =
New =
Version = 0x040700
</CLASS>
<CODE>
#include <QtDeclarative/QDeclarativeError>
/*
*
*/
HB_FUNC( QT_QDECLARATIVEERROR )
{
if( hb_pcount() == 1 && HB_ISOBJECT( 1 ) )
{
__HB_RETPTRGC__( new QDeclarativeError( *hbqt_par_QDeclarativeError( 1 ) ) );
}
else
{
__HB_RETPTRGC__( new QDeclarativeError() );
}
}
</CODE>
<ENUMS>
</ENUMS>
<PROTOS>
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
</PROTOS>
<SLOTS>
</SLOTS>
<SIGNALS>
</SIGNALS>
<VARIABLES>
</VARIABLES>

View File

@@ -0,0 +1,111 @@
/*
* $Id$
*/
/*
* Harbour Project source code:
* QT Source Generator for Harbour
*
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
* 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
;
<CLASS>
QObject = Yes
Inherit = QObject
Type =
New =
Version = 0x040700
</CLASS>
<CODE>
#include <QtDeclarative/QDeclarativeExpression>
/*
* QDeclarativeExpression ()
* QDeclarativeExpression ( QDeclarativeContext * ctxt, QObject * scope, const QString & expression, QObject * parent = 0 )
* virtual ~QDeclarativeExpression ()
*/
HB_FUNC( QT_QDECLARATIVEEXPRESSION )
{
__HB_RETPTRGC__( new QDeclarativeExpression() );
}
</CODE>
<ENUMS>
</ENUMS>
<PROTOS>
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
</PROTOS>
<SLOTS>
</SLOTS>
<SIGNALS>
void valueChanged ()
</SIGNALS>
<VARIABLES>
</VARIABLES>

View File

@@ -0,0 +1,99 @@
/*
* $Id$
*/
/*
* Harbour Project source code:
* QT Source Generator for Harbour
*
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
* 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
;
<CLASS>
QObject = No
Inherit =
Type =
New =
Version = 0x040700
</CLASS>
<CODE>
#include <QtDeclarative/QDeclarativeImageProvider>
/*
* QDeclarativeImageProvider ( ImageType type )
* virtual ~QDeclarativeImageProvider ()
*/
HB_FUNC( QT_QDECLARATIVEIMAGEPROVIDER )
{
__HB_RETPTRGC__( new QDeclarativeImageProvider( ( QDeclarativeImageProvider::ImageType ) hb_parni( 1 ) ) );
}
</CODE>
<ENUMS>
enum ImageType { Image, Pixmap }
</ENUMS>
<PROTOS>
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 )
</PROTOS>
<SLOTS>
</SLOTS>
<SIGNALS>
</SIGNALS>
<VARIABLES>
</VARIABLES>

View File

@@ -0,0 +1,122 @@
/*
* $Id$
*/
/*
* Harbour Project source code:
* QT Source Generator for Harbour
*
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
* 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
;
<CLASS>
QObject = Yes
Inherit = QGraphicsObject, QDeclarativeParserStatus
Type =
New =
Version = 0x040700
</CLASS>
<CODE>
#include <QtDeclarative/QDeclarativeItem>
/*
* 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() );
}
}
</CODE>
<ENUMS>
enum TransformOrigin { TopLeft, Top, TopRight, Left, ..., BottomRight }
</ENUMS>
<PROTOS>
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
</PROTOS>
<SLOTS>
</SLOTS>
<SIGNALS>
</SIGNALS>
<VARIABLES>
</VARIABLES>

View File

@@ -0,0 +1,113 @@
/*
* $Id$
*/
/*
* Harbour Project source code:
* QT Source Generator for Harbour
*
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
* 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
;
<CLASS>
QObject = No
Inherit =
Type =
New =
Version = 0x040700
</CLASS>
<CODE>
#include <QtDeclarative/QDeclarativeListReference>
/*
* 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() );
}
}
</CODE>
<ENUMS>
</ENUMS>
<PROTOS>
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
</PROTOS>
<SLOTS>
</SLOTS>
<SIGNALS>
</SIGNALS>
<VARIABLES>
</VARIABLES>

View File

@@ -0,0 +1,96 @@
/*
* $Id$
*/
/*
* Harbour Project source code:
* QT Source Generator for Harbour
*
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
* 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
;
<CLASS>
QObject = No
Inherit =
Type =
New =
Version = 0x040700
</CLASS>
<CODE>
#include <QtDeclarative/QDeclarativeParserStatus>
/*
*
*/
HB_FUNC( QT_QDECLARATIVEPARSERSTATUS )
{
__HB_RETPTRGC__( NULL );
}
</CODE>
<ENUMS>
</ENUMS>
<PROTOS>
virtual void classBegin ()
virtual void componentComplete ()
</PROTOS>
<SLOTS>
</SLOTS>
<SIGNALS>
</SIGNALS>
<VARIABLES>
</VARIABLES>

View File

@@ -0,0 +1,176 @@
/*
* $Id$
*/
/*
* Harbour Project source code:
* QT Source Generator for Harbour
*
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
* 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
;
<CLASS>
QObject = No
Inherit =
Type =
New =
Version = 0x040700
</CLASS>
<CODE>
#include <QtDeclarative/QDeclarativeProperty>
/*
* 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() );
}
}
</CODE>
<ENUMS>
enum PropertyTypeCategory { InvalidCategory, List, Object, Normal }
enum Type { Invalid, Property, SignalProperty }
</ENUMS>
<PROTOS>
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 )
</PROTOS>
<SLOTS>
</SLOTS>
<SIGNALS>
</SIGNALS>
<VARIABLES>
</VARIABLES>

View File

@@ -0,0 +1,111 @@
/*
* $Id$
*/
/*
* Harbour Project source code:
* QT Source Generator for Harbour
*
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
* 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
;
<CLASS>
QObject = Yes
Inherit = QObject
Type =
New =
Version = 0x040700
</CLASS>
<CODE>
#include <QtDeclarative/QDeclarativePropertyMap>
/*
* 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() );
}
}
</CODE>
<ENUMS>
</ENUMS>
<PROTOS>
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
</PROTOS>
<SLOTS>
</SLOTS>
<SIGNALS>
void valueChanged ( const QString & key, const QVariant & value )
</SIGNALS>
<VARIABLES>
</VARIABLES>

View File

@@ -0,0 +1,96 @@
/*
* $Id$
*/
/*
* Harbour Project source code:
* QT Source Generator for Harbour
*
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
* 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
;
<CLASS>
QObject = No
Inherit =
Type =
New =
Version = 0x040700
</CLASS>
<CODE>
#include <QtDeclarative/QDeclarativePropertyValueSource>
/*
* QDeclarativePropertyValueSource ()
* virtual ~QDeclarativePropertyValueSource ()
*/
HB_FUNC( QT_QDECLARATIVEPROPERTYVALUESOURCE )
{
__HB_RETPTRGC__( NULL );
}
</CODE>
<ENUMS>
</ENUMS>
<PROTOS>
virtual void setTarget ( const QDeclarativeProperty & property )
</PROTOS>
<SLOTS>
</SLOTS>
<SIGNALS>
</SIGNALS>
<VARIABLES>
</VARIABLES>

View File

@@ -0,0 +1,108 @@
/*
* $Id$
*/
/*
* Harbour Project source code:
* QT Source Generator for Harbour
*
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
* 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
;
<CLASS>
QObject = No
Inherit =
Type =
New =
Version = 0x040700
</CLASS>
<CODE>
#include <QtDeclarative/QDeclarativeScriptString>
/*
* 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() );
}
}
</CODE>
<ENUMS>
</ENUMS>
<PROTOS>
QDeclarativeContext * context () const
QObject * scopeObject () const
QString script () const
void setContext ( QDeclarativeContext * context )
void setScopeObject ( QObject * object )
void setScript ( const QString & script )
</PROTOS>
<SLOTS>
</SLOTS>
<SIGNALS>
</SIGNALS>
<VARIABLES>
</VARIABLES>

View File

@@ -0,0 +1,129 @@
/*
* $Id$
*/
/*
* Harbour Project source code:
* QT Source Generator for Harbour
*
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
* 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
;
<CLASS>
QObject = Yes
Inherit = QGraphicsView
Type =
New =
Version = 0x040700
</CLASS>
<CODE>
#include <QtDeclarative/QDeclarativeView>
#include <QtDeclarative/QDeclarativeError>
/*
* 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() );
}
}
</CODE>
<ENUMS>
enum ResizeMode { SizeViewToRootObject, SizeRootObjectToView }
enum Status { Null, Ready, Loading, Error }
</ENUMS>
<PROTOS>
QDeclarativeEngine * engine () const
QList<QDeclarativeError> 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
</PROTOS>
<SLOTS>
</SLOTS>
<SIGNALS>
void sceneResized ( QSize size )
void statusChanged ( QDeclarativeView::Status status )
</SIGNALS>
<VARIABLES>
</VARIABLES>

View File

@@ -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