2010-10-03 14:03 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)

* contrib/hbqt/qtcore/qth/HBQEvents.qth
  * contrib/hbqt/qtcore/qth/HBQSlots.qth
  * contrib/hbqt/qtcore/qth/HBQString.qth
  * contrib/hbqt/qtcore/qth/QAbstractEventDispatcher.qth
  * contrib/hbqt/qtcore/qth/QAbstractItemModel.qth
  * contrib/hbqt/qtgui/qth/HBQAbstractItemModel.qth
  * contrib/hbqt/qtgui/qth/HBQGraphicsItem.qth
  * contrib/hbqt/qtgui/qth/HBQGraphicsScene.qth
  * contrib/hbqt/qtgui/qth/HBQSyntaxHighlighter.qth
  * contrib/hbqt/qtgui/qth/HBQTableView.qth
  * contrib/hbqt/qtgui/qth/HBQTextBlockUserData.qth
  * contrib/hbqt/qtgui/qth/QBrush.qth
  * contrib/hbqt/qtgui/qth/QWidget.qth
    ! Some tweaks to be ready for next massive commit
      where CONSTRIUCTORS will be managed automatically.
 
  * contrib/hbqt/utils/hbqtgen.prg
    + Added: constructs to manage CONSTRUCTORS automatically.
      ( yet not activated - a work-in-progress )
  
  * contrib/hbxbp/xbptreeview.prg
    ! Refined SLOTS as per Fracesco's tips.

  * contrib/hbqt/qtcore/hbqt_hbqslots.cpp
    ! Refined SLOTS as per Fracesco's tips for QTreeWidget().
  
  * contrib/hbide/hbqreportsmanager.prg
  * contrib/hbide/ideskeletons.prg
    ! Fixed: two reported regressions.

  * contrib/hbide/idemain.prg
    ! Small optimization.

  * Re-generated sources.
This commit is contained in:
Pritpal Bedi
2010-10-03 21:18:48 +00:00
parent 4d27a0e9b2
commit 4171b1b8a8
69 changed files with 4942 additions and 442 deletions

View File

@@ -16,6 +16,42 @@
The license applies to all entries newer than 2009-04-28.
*/
2010-10-03 14:03 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtcore/qth/HBQEvents.qth
* contrib/hbqt/qtcore/qth/HBQSlots.qth
* contrib/hbqt/qtcore/qth/HBQString.qth
* contrib/hbqt/qtcore/qth/QAbstractEventDispatcher.qth
* contrib/hbqt/qtcore/qth/QAbstractItemModel.qth
* contrib/hbqt/qtgui/qth/HBQAbstractItemModel.qth
* contrib/hbqt/qtgui/qth/HBQGraphicsItem.qth
* contrib/hbqt/qtgui/qth/HBQGraphicsScene.qth
* contrib/hbqt/qtgui/qth/HBQSyntaxHighlighter.qth
* contrib/hbqt/qtgui/qth/HBQTableView.qth
* contrib/hbqt/qtgui/qth/HBQTextBlockUserData.qth
* contrib/hbqt/qtgui/qth/QBrush.qth
* contrib/hbqt/qtgui/qth/QWidget.qth
! Some tweaks to be ready for next massive commit
where CONSTRIUCTORS will be managed automatically.
* contrib/hbqt/utils/hbqtgen.prg
+ Added: constructs to manage CONSTRUCTORS automatically.
( yet not activated - a work-in-progress )
* contrib/hbxbp/xbptreeview.prg
! Refined SLOTS as per Fracesco's tips.
* contrib/hbqt/qtcore/hbqt_hbqslots.cpp
! Refined SLOTS as per Fracesco's tips for QTreeWidget().
* contrib/hbide/hbqreportsmanager.prg
* contrib/hbide/ideskeletons.prg
! Fixed: two reported regressions.
* contrib/hbide/idemain.prg
! Small optimization.
* Re-generated sources.
2010-10-03 11:14 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtcore/hbqt_pointer.cpp
! Fixed: to not reach end of code with return type.

View File

@@ -362,7 +362,7 @@ METHOD HbqReportsManager:buildDesignReport()
::qTreeObjects:setObjectName( "ObjectsTree" )
::qTreeObjects:setIconSize( QSize( 12,12 ) )
::qTreeObjects:setIndentation( 12 )
::qTreeObjects:connect( "itemClicked(QTWItem)", {|p,p1| ::execEvent( "treeObjects_clicked", p, p1 ) } )
::qTreeObjects:connect( "itemClicked(QTWItem,int)", {|p,p1| ::execEvent( "treeObjects_clicked", p, p1 ) } )
::qTabL1 := QTabWidget()
::qSplL:addWidget( ::qTabL1 )

View File

@@ -1202,8 +1202,6 @@ METHOD HbIde:manageProjectContext( mp1, mp2, oXbpTreeItem )
HB_SYMBOL_UNUSED( mp2 )
oXbpTreeItem := ::oCurProjItem
IF oXbpTreeItem == ::oProjRoot
n := -1
ELSEIF oXbpTreeItem == ::oOpenedSources

View File

@@ -527,7 +527,7 @@ METHOD IdeSkeletons:updateTree()
aadd( ::aItems, oItem )
NEXT
::oRoot:oWidget:sortChildren( 0 )
::oRoot:oWidget:sortChildren( 0, Qt_AscendingOrder )
RETURN Self

View File

@@ -26,7 +26,6 @@
* $RETURNS$
* An instance of the object of type HBQEvents
* $METHODS$
* :HBQEvents() -> oHBQEvents
* :hbConnect( xObj, nEvent, xBlock ) -> lBool
* :hbDisconnect( xObj, nEvent ) -> lBool
* :hbClear() -> lBool

View File

@@ -26,7 +26,6 @@
* $RETURNS$
* An instance of the object of type HBQSlots
* $METHODS$
* :HBQSlots() -> oHBQSlots
* :hbConnect( xPObj, cSlot, xBBlock ) -> lBool
* :hbDisconnect( xObj, cSlot ) -> lBool
* :hbIsConnected( xObj, cSlot ) -> lBool

View File

@@ -0,0 +1,216 @@
/*
* $Id$
*/
/* $DOC$
* $TEMPLATE$
* Class
* $NAME$
* HBQString()
* $CATEGORY$
* Harbour Bindings for Qt
* $SUBCATEGORY$
* GUI
* $EXTERNALLINK$
* http://doc.trolltech.com/4.5/hbqstring.html
* $ONELINER$
* Creates a new HBQString object.
* $INHERITS$
*
* $SYNTAX$
* HBQString( ... )
* HBQString():from( pPtr_OR_oObj_of_type_HBQString )
*
* $ARGUMENTS$
*
* $RETURNS$
* An instance of the object of type HBQString
* $METHODS$
* :append( cStr ) -> cQString
* :append_1( oQStringRef ) -> cQString
* :append_2( oQLatin1String ) -> cQString
* :append_3( oQByteArray ) -> cQString
* :append_4( cStr ) -> cQString
* :append_5( oQChar ) -> cQString
* :arg( cA, nFieldWidth, oQChar ) -> cQString
* :arg_1( cA1, cA2 ) -> cQString
* :arg_2( cA1, cA2, cA3 ) -> cQString
* :arg_3( cA1, cA2, cA3, cA4 ) -> cQString
* :arg_4( cA1, cA2, cA3, cA4, cA5 ) -> cQString
* :arg_5( cA1, cA2, cA3, cA4, cA5, cA6 ) -> cQString
* :arg_6( cA1, cA2, cA3, cA4, cA5, cA6, cA7 ) -> cQString
* :arg_7( cA1, cA2, cA3, cA4, cA5, cA6, cA7, cA8 ) -> cQString
* :arg_8( cA1, cA2, cA3, cA4, cA5, cA6, cA7, cA8, cA9 ) -> cQString
* :arg_9( nA, nFieldWidth, nBase, oQChar ) -> cQString
* :arg_10( nA, nFieldWidth, nBase, oQChar ) -> cQString
* :arg_11( nA, nFieldWidth, nBase, oQChar ) -> cQString
* :arg_12( nA, nFieldWidth, nBase, oQChar ) -> cQString
* :arg_13( nA, nFieldWidth, nBase, oQChar ) -> cQString
* :arg_14( nA, nFieldWidth, nBase, oQChar ) -> cQString
* :arg_15( nA, nFieldWidth, nBase, oQChar ) -> cQString
* :arg_16( nA, nFieldWidth, nBase, oQChar ) -> cQString
* :arg_17( oQChar, nFieldWidth, oQChar ) -> cQString
* :arg_18( nA, nFieldWidth, oQChar ) -> cQString
* :arg_19( nA, nFieldWidth, nFormat, nPrecision, oQChar ) -> cQString
* :at( nPosition ) -> oQChar
* :capacity() -> nInt
* :chop( nN ) -> NIL
* :clear() -> NIL
* :compare( cOther ) -> nInt
* :compare_1( cOther, nCs ) -> nInt
* :compare_2( oQLatin1String, nCs ) -> nInt
* :compare_3( oQStringRef, nCs ) -> nInt
* :constData() -> oQChar
* :count( cStr, nCs ) -> nInt
* :count_1( oQChar, nCs ) -> nInt
* :count_2( oQRegExp ) -> nInt
* :count_3() -> nInt
* :data() -> oQChar
* :data_1() -> oQChar
* :endsWith( cS, nCs ) -> lBool
* :endsWith_1( oQLatin1String, nCs ) -> lBool
* :endsWith_2( oQChar, nCs ) -> lBool
* :fill( oQChar, nSize ) -> cQString
* :indexOf( cStr, nFrom, nCs ) -> nInt
* :indexOf_1( oQLatin1String, nFrom, nCs ) -> nInt
* :indexOf_2( oQChar, nFrom, nCs ) -> nInt
* :indexOf_3( oQRegExp, nFrom ) -> nInt
* :indexOf_4( oQRegExp, nFrom ) -> nInt
* :insert( nPosition, cStr ) -> cQString
* :insert_1( nPosition, oQLatin1String ) -> cQString
* :insert_2( nPosition, oQChar, nSize ) -> cQString
* :insert_3( nPosition, oQChar ) -> cQString
* :isEmpty() -> lBool
* :isNull() -> lBool
* :lastIndexOf( cStr, nFrom, nCs ) -> nInt
* :lastIndexOf_1( oQLatin1String, nFrom, nCs ) -> nInt
* :lastIndexOf_2( oQChar, nFrom, nCs ) -> nInt
* :lastIndexOf_3( oQRegExp, nFrom ) -> nInt
* :lastIndexOf_4( oQRegExp, nFrom ) -> nInt
* :left( nN ) -> cQString
* :leftJustified( nWidth, oQChar, lTruncate ) -> cQString
* :leftRef( nN ) -> oQStringRef
* :length() -> nInt
* :localeAwareCompare( oQStringRef ) -> nInt
* :localeAwareCompare_1( cOther ) -> nInt
* :mid( nPosition, nN ) -> cQString
* :midRef( nPosition, nN ) -> oQStringRef
* :normalized( nMode ) -> cQString
* :normalized_1( nMode, nVersion ) -> cQString
* :prepend( cStr ) -> cQString
* :prepend_1( oQLatin1String ) -> cQString
* :prepend_2( oQByteArray ) -> cQString
* :prepend_3( cStr ) -> cQString
* :prepend_4( oQChar ) -> cQString
* :push_back( cOther ) -> NIL
* :push_back_1( oQChar ) -> NIL
* :push_front( cOther ) -> NIL
* :push_front_1( oQChar ) -> NIL
* :remove( nPosition, nN ) -> cQString
* :remove_1( oQChar, nCs ) -> cQString
* :remove_2( cStr, nCs ) -> cQString
* :remove_3( oQRegExp ) -> cQString
* :repeated( nTimes ) -> cQString
* :replace( nPosition, nN, cAfter ) -> cQString
* :replace_1( nPosition, nN, oQChar, nSize ) -> cQString
* :replace_2( nPosition, nN, oQChar ) -> cQString
* :replace_3( cBefore, cAfter, nCs ) -> cQString
* :replace_4( oQChar, nBlen, oQChar, nAlen, nCs ) -> cQString
* :replace_5( oQChar, cAfter, nCs ) -> cQString
* :replace_6( oQChar, oQChar, nCs ) -> cQString
* :replace_7( oQLatin1String, oQLatin1String, nCs ) -> cQString
* :replace_8( oQLatin1String, cAfter, nCs ) -> cQString
* :replace_9( cBefore, oQLatin1String, nCs ) -> cQString
* :replace_10( oQChar, oQLatin1String, nCs ) -> cQString
* :replace_11( oQRegExp, cAfter ) -> cQString
* :reserve( nSize ) -> NIL
* :resize( nSize ) -> NIL
* :right( nN ) -> cQString
* :rightJustified( nWidth, oQChar, lTruncate ) -> cQString
* :rightRef( nN ) -> oQStringRef
* :section( oQChar, nStart, nEnd, nFlags ) -> cQString
* :section_1( cSep, nStart, nEnd, nFlags ) -> cQString
* :section_2( oQRegExp, nStart, nEnd, nFlags ) -> cQString
* :setNum( nN, nBase ) -> cQString
* :setNum_1( nN, nBase ) -> cQString
* :setNum_2( nN, nBase ) -> cQString
* :setNum_3( nN, nBase ) -> cQString
* :setNum_4( nN, nBase ) -> cQString
* :setNum_5( nN, nBase ) -> cQString
* :setNum_6( nN, nBase ) -> cQString
* :setNum_7( nN, nBase ) -> cQString
* :setNum_8( nN, nFormat, nPrecision ) -> cQString
* :setNum_9( nN, nFormat, nPrecision ) -> cQString
* :setUnicode( oQChar, nSize ) -> cQString
* :setUtf16( @nUnicode, nSize ) -> cQString
* :simplified() -> cQString
* :size() -> nInt
* :split( cSep, nBehavior, nCs ) -> oQStringList
* :split_1( oQChar, nBehavior, nCs ) -> oQStringList
* :split_2( oQRegExp, nBehavior ) -> oQStringList
* :squeeze() -> NIL
* :startsWith( cS, nCs ) -> lBool
* :startsWith_1( oQLatin1String, nCs ) -> lBool
* :startsWith_2( oQChar, nCs ) -> lBool
* :toAscii() -> oQByteArray
* :toCaseFolded() -> cQString
* :toDouble( @lOk ) -> nDouble
* :toFloat( @lOk ) -> nFloat
* :toInt( @lOk, nBase ) -> nInt
* :toLatin1() -> oQByteArray
* :toLocal8Bit() -> oQByteArray
* :toLong( @lOk, nBase ) -> nLong
* :toLongLong( @lOk, nBase ) -> nQlonglong
* :toLower() -> cQString
* :toShort( @lOk, nBase ) -> nShort
* :toUInt( @lOk, nBase ) -> nUint
* :toULong( @lOk, nBase ) -> nUlong
* :toULongLong( @lOk, nBase ) -> nQulonglong
* :toUShort( @lOk, nBase ) -> nUshort
* :toUpper() -> cQString
* :toUtf8() -> oQByteArray
* :trimmed() -> cQString
* :truncate( nPosition ) -> NIL
* :unicode() -> oQChar
* :compare_4( cS1, cS2, nCs ) -> nInt
* :compare_5( cS1, cS2 ) -> nInt
* :compare_6( cS1, oQLatin1String, nCs ) -> nInt
* :compare_7( oQLatin1String, cS2, nCs ) -> nInt
* :compare_8( cS1, oQStringRef, nCs ) -> nInt
* :fromAscii( cStr, nSize ) -> cQString
* :fromLatin1( cStr, nSize ) -> cQString
* :fromLocal8Bit( cStr, nSize ) -> cQString
* :fromRawData( oQChar, nSize ) -> cQString
* :fromUcs4( @nUnicode, nSize ) -> cQString
* :fromUtf8( cStr, nSize ) -> cQString
* :fromUtf16( @nUnicode, nSize ) -> cQString
* :localeAwareCompare_2( cS1, cS2 ) -> nInt
* :localeAwareCompare_3( cS1, oQStringRef ) -> nInt
* :number( nN, nBase ) -> cQString
* :number_1( nN, nFormat, nPrecision ) -> cQString
* :number_2( nN, nBase ) -> cQString
* :number_3( nN, nBase ) -> cQString
* :number_4( nN, nBase ) -> cQString
* :number_5( nN, nBase ) -> cQString
* :number_6( nN, nBase ) -> cQString
*
* $DESCRIPTION$
*
* $EXAMPLES$
*
* $TESTS$
*
* $STATUS$
* R
* $COMPLIANCE$
* Not Clipper compatible
* $PLATFORMS$
* Windows, Linux, Mac OS X, OS/2
* $VERSION$
* 4.5 or upper
* $FILES$
* Harbour source: contrib/hbqt/qtcore/THBQString.prg
* C++ wrappers : contrib/hbqt/qtcore/HBQString.cpp
* Library : hbqtcore
* $END$
*/

View File

@@ -0,0 +1,52 @@
/*
* $Id$
*/
/* $DOC$
* $TEMPLATE$
* Class
* $NAME$
* QGenericArgument()
* $CATEGORY$
* Harbour Bindings for Qt
* $SUBCATEGORY$
* GUI
* $EXTERNALLINK$
* http://doc.trolltech.com/4.5/qgenericargument.html
* $ONELINER$
* Creates a new QGenericArgument object.
* $INHERITS$
*
* $SYNTAX$
* QGenericArgument( ... )
* QGenericArgument():from( pPtr_OR_oObj_of_type_QGenericArgument )
*
* $ARGUMENTS$
*
* $RETURNS$
* An instance of the object of type QGenericArgument
* $METHODS$
* :QGenericArgument( cName, ovoid ) -> oQGenericArgument
* :data() -> NIL
* :name() -> cChar
*
* $DESCRIPTION$
*
* $EXAMPLES$
*
* $TESTS$
*
* $STATUS$
* R
* $COMPLIANCE$
* Not Clipper compatible
* $PLATFORMS$
* Windows, Linux, Mac OS X, OS/2
* $VERSION$
* 4.5 or upper
* $FILES$
* Harbour source: contrib/hbqt/qtcore/TQGenericArgument.prg
* C++ wrappers : contrib/hbqt/qtcore/QGenericArgument.cpp
* Library : hbqtcore
* $END$
*/

View File

@@ -0,0 +1,51 @@
/*
* $Id$
*/
/* $DOC$
* $TEMPLATE$
* Class
* $NAME$
* QMetaClassInfo()
* $CATEGORY$
* Harbour Bindings for Qt
* $SUBCATEGORY$
* GUI
* $EXTERNALLINK$
* http://doc.trolltech.com/4.5/qmetaclassinfo.html
* $ONELINER$
* Creates a new QMetaClassInfo object.
* $INHERITS$
*
* $SYNTAX$
* QMetaClassInfo( ... )
* QMetaClassInfo():from( pPtr_OR_oObj_of_type_QMetaClassInfo )
*
* $ARGUMENTS$
*
* $RETURNS$
* An instance of the object of type QMetaClassInfo
* $METHODS$
* :name() -> cChar
* :value() -> cChar
*
* $DESCRIPTION$
*
* $EXAMPLES$
*
* $TESTS$
*
* $STATUS$
* R
* $COMPLIANCE$
* Not Clipper compatible
* $PLATFORMS$
* Windows, Linux, Mac OS X, OS/2
* $VERSION$
* 4.5 or upper
* $FILES$
* Harbour source: contrib/hbqt/qtcore/TQMetaClassInfo.prg
* C++ wrappers : contrib/hbqt/qtcore/QMetaClassInfo.cpp
* Library : hbqtcore
* $END$
*/

View File

@@ -0,0 +1,60 @@
/*
* $Id$
*/
/* $DOC$
* $TEMPLATE$
* Class
* $NAME$
* QMetaEnum()
* $CATEGORY$
* Harbour Bindings for Qt
* $SUBCATEGORY$
* GUI
* $EXTERNALLINK$
* http://doc.trolltech.com/4.5/qmetaenum.html
* $ONELINER$
* Creates a new QMetaEnum object.
* $INHERITS$
*
* $SYNTAX$
* QMetaEnum( ... )
* QMetaEnum():from( pPtr_OR_oObj_of_type_QMetaEnum )
*
* $ARGUMENTS$
*
* $RETURNS$
* An instance of the object of type QMetaEnum
* $METHODS$
* :isFlag() -> lBool
* :isValid() -> lBool
* :key( nIndex ) -> cChar
* :keyCount() -> nInt
* :keyToValue( cKey ) -> nInt
* :keysToValue( cKeys ) -> nInt
* :name() -> cChar
* :scope() -> cChar
* :value( nIndex ) -> nInt
* :valueToKey( nValue ) -> cChar
* :valueToKeys( nValue ) -> oQByteArray
*
* $DESCRIPTION$
*
* $EXAMPLES$
*
* $TESTS$
*
* $STATUS$
* R
* $COMPLIANCE$
* Not Clipper compatible
* $PLATFORMS$
* Windows, Linux, Mac OS X, OS/2
* $VERSION$
* 4.5 or upper
* $FILES$
* Harbour source: contrib/hbqt/qtcore/TQMetaEnum.prg
* C++ wrappers : contrib/hbqt/qtcore/QMetaEnum.cpp
* Library : hbqtcore
* $END$
*/

View File

@@ -0,0 +1,56 @@
/*
* $Id$
*/
/* $DOC$
* $TEMPLATE$
* Class
* $NAME$
* QMetaMethod()
* $CATEGORY$
* Harbour Bindings for Qt
* $SUBCATEGORY$
* GUI
* $EXTERNALLINK$
* http://doc.trolltech.com/4.5/qmetamethod.html
* $ONELINER$
* Creates a new QMetaMethod object.
* $INHERITS$
*
* $SYNTAX$
* QMetaMethod( ... )
* QMetaMethod():from( pPtr_OR_oObj_of_type_QMetaMethod )
*
* $ARGUMENTS$
*
* $RETURNS$
* An instance of the object of type QMetaMethod
* $METHODS$
* :access() -> nAccess
* :methodType() -> nMethodType
* :parameterNames() -> oQList_QByteArray>
* :parameterTypes() -> oQList_QByteArray>
* :signature() -> cChar
* :tag() -> cChar
* :typeName() -> cChar
*
* $DESCRIPTION$
*
* $EXAMPLES$
*
* $TESTS$
*
* $STATUS$
* R
* $COMPLIANCE$
* Not Clipper compatible
* $PLATFORMS$
* Windows, Linux, Mac OS X, OS/2
* $VERSION$
* 4.5 or upper
* $FILES$
* Harbour source: contrib/hbqt/qtcore/TQMetaMethod.prg
* C++ wrappers : contrib/hbqt/qtcore/QMetaMethod.cpp
* Library : hbqtcore
* $END$
*/

View File

@@ -0,0 +1,77 @@
/*
* $Id$
*/
/* $DOC$
* $TEMPLATE$
* Class
* $NAME$
* QMetaObject()
* $CATEGORY$
* Harbour Bindings for Qt
* $SUBCATEGORY$
* GUI
* $EXTERNALLINK$
* http://doc.trolltech.com/4.5/qmetaobject.html
* $ONELINER$
* Creates a new QMetaObject object.
* $INHERITS$
*
* $SYNTAX$
* QMetaObject( ... )
* QMetaObject():from( pPtr_OR_oObj_of_type_QMetaObject )
*
* $ARGUMENTS$
*
* $RETURNS$
* An instance of the object of type QMetaObject
* $METHODS$
* :classInfo( nIndex ) -> oQMetaClassInfo
* :classInfoCount() -> nInt
* :classInfoOffset() -> nInt
* :className() -> cChar
* :constructor( nIndex ) -> oQMetaMethod
* :constructorCount() -> nInt
* :enumerator( nIndex ) -> oQMetaEnum
* :enumeratorCount() -> nInt
* :enumeratorOffset() -> nInt
* :indexOfClassInfo( cName ) -> nInt
* :indexOfConstructor( cConstructor ) -> nInt
* :indexOfEnumerator( cName ) -> nInt
* :indexOfMethod( cMethod ) -> nInt
* :indexOfProperty( cName ) -> nInt
* :indexOfSignal( cSignal ) -> nInt
* :indexOfSlot( cSlot ) -> nInt
* :method( nIndex ) -> oQMetaMethod
* :methodCount() -> nInt
* :methodOffset() -> nInt
* :property( nIndex ) -> oQMetaProperty
* :propertyCount() -> nInt
* :propertyOffset() -> nInt
* :superClass() -> oQMetaObject
* :userProperty() -> oQMetaProperty
* :checkConnectArgs( cSignal, cMethod ) -> lBool
* :connectSlotsByName( oQObject ) -> NIL
* :normalizedSignature( cMethod ) -> oQByteArray
* :normalizedType( cType ) -> oQByteArray
*
* $DESCRIPTION$
*
* $EXAMPLES$
*
* $TESTS$
*
* $STATUS$
* R
* $COMPLIANCE$
* Not Clipper compatible
* $PLATFORMS$
* Windows, Linux, Mac OS X, OS/2
* $VERSION$
* 4.5 or upper
* $FILES$
* Harbour source: contrib/hbqt/qtcore/TQMetaObject.prg
* C++ wrappers : contrib/hbqt/qtcore/QMetaObject.cpp
* Library : hbqtcore
* $END$
*/

View File

@@ -0,0 +1,70 @@
/*
* $Id$
*/
/* $DOC$
* $TEMPLATE$
* Class
* $NAME$
* QMetaProperty()
* $CATEGORY$
* Harbour Bindings for Qt
* $SUBCATEGORY$
* GUI
* $EXTERNALLINK$
* http://doc.trolltech.com/4.5/qmetaproperty.html
* $ONELINER$
* Creates a new QMetaProperty object.
* $INHERITS$
*
* $SYNTAX$
* QMetaProperty( ... )
* QMetaProperty():from( pPtr_OR_oObj_of_type_QMetaProperty )
*
* $ARGUMENTS$
*
* $RETURNS$
* An instance of the object of type QMetaProperty
* $METHODS$
* :enumerator() -> oQMetaEnum
* :hasNotifySignal() -> lBool
* :isDesignable( oQObject ) -> lBool
* :isEnumType() -> lBool
* :isFlagType() -> lBool
* :isReadable() -> lBool
* :isResettable() -> lBool
* :isScriptable( oQObject ) -> lBool
* :isStored( oQObject ) -> lBool
* :isUser( oQObject ) -> lBool
* :isValid() -> lBool
* :isWritable() -> lBool
* :name() -> cChar
* :notifySignal() -> oQMetaMethod
* :notifySignalIndex() -> nInt
* :read( oQObject ) -> oQVariant
* :reset( oQObject ) -> lBool
* :type() -> nQVariant_Type
* :typeName() -> cChar
* :userType() -> nInt
* :write( oQObject, oQVariant ) -> lBool
*
* $DESCRIPTION$
*
* $EXAMPLES$
*
* $TESTS$
*
* $STATUS$
* R
* $COMPLIANCE$
* Not Clipper compatible
* $PLATFORMS$
* Windows, Linux, Mac OS X, OS/2
* $VERSION$
* 4.5 or upper
* $FILES$
* Harbour source: contrib/hbqt/qtcore/TQMetaProperty.prg
* C++ wrappers : contrib/hbqt/qtcore/QMetaProperty.cpp
* Library : hbqtcore
* $END$
*/

View File

@@ -0,0 +1,53 @@
/*
* $Id$
*/
/* $DOC$
* $TEMPLATE$
* Class
* $NAME$
* QMetaType()
* $CATEGORY$
* Harbour Bindings for Qt
* $SUBCATEGORY$
* GUI
* $EXTERNALLINK$
* http://doc.trolltech.com/4.5/qmetatype.html
* $ONELINER$
* Creates a new QMetaType object.
* $INHERITS$
*
* $SYNTAX$
* QMetaType( ... )
* QMetaType():from( pPtr_OR_oObj_of_type_QMetaType )
*
* $ARGUMENTS$
*
* $RETURNS$
* An instance of the object of type QMetaType
* $METHODS$
* :isRegistered( nType ) -> lBool
* :type( cTypeName ) -> nInt
* :typeName( nType ) -> cChar
* :unregisterType( cTypeName ) -> NIL
*
* $DESCRIPTION$
*
* $EXAMPLES$
*
* $TESTS$
*
* $STATUS$
* R
* $COMPLIANCE$
* Not Clipper compatible
* $PLATFORMS$
* Windows, Linux, Mac OS X, OS/2
* $VERSION$
* 4.5 or upper
* $FILES$
* Harbour source: contrib/hbqt/qtcore/TQMetaType.prg
* C++ wrappers : contrib/hbqt/qtcore/QMetaType.cpp
* Library : hbqtcore
* $END$
*/

View File

@@ -0,0 +1,68 @@
/*
* $Id$
*/
/* $DOC$
* $TEMPLATE$
* Class
* $NAME$
* QStringRef()
* $CATEGORY$
* Harbour Bindings for Qt
* $SUBCATEGORY$
* GUI
* $EXTERNALLINK$
* http://doc.trolltech.com/4.5/qstringref.html
* $ONELINER$
* Creates a new QStringRef object.
* $INHERITS$
*
* $SYNTAX$
* QStringRef( ... )
* QStringRef():from( pPtr_OR_oObj_of_type_QStringRef )
*
* $ARGUMENTS$
*
* $RETURNS$
* An instance of the object of type QStringRef
* $METHODS$
* :at( nPosition ) -> oQChar
* :clear() -> NIL
* :compare( cOther, nCs ) -> nInt
* :compare( oQStringRef, nCs ) -> nInt
* :constData() -> oQChar
* :count() -> nInt
* :data() -> oQChar
* :isEmpty() -> lBool
* :isNull() -> lBool
* :length() -> nInt
* :localeAwareCompare( cOther ) -> nInt
* :localeAwareCompare( oQStringRef ) -> nInt
* :position() -> nInt
* :size() -> nInt
* :unicode() -> oQChar
* :compare( oQStringRef, cS2, nCs ) -> nInt
* :compare( oQStringRef, oQStringRef, nCs ) -> nInt
* :localeAwareCompare( oQStringRef, cS2 ) -> nInt
* :localeAwareCompare( oQStringRef, oQStringRef ) -> nInt
*
* $DESCRIPTION$
*
* $EXAMPLES$
*
* $TESTS$
*
* $STATUS$
* R
* $COMPLIANCE$
* Not Clipper compatible
* $PLATFORMS$
* Windows, Linux, Mac OS X, OS/2
* $VERSION$
* 4.5 or upper
* $FILES$
* Harbour source: contrib/hbqt/qtcore/TQStringRef.prg
* C++ wrappers : contrib/hbqt/qtcore/QStringRef.cpp
* Library : hbqtcore
* $END$
*/

View File

@@ -98,7 +98,7 @@
/*----------------------------------------------------------------------*/
/*
* Constructed[ 4/4 [ 100.00% ] ]
* Constructed[ 3/3 [ 100.00% ] ]
*
*/
@@ -188,14 +188,6 @@ HB_FUNC( QT_HBQEVENTS )
hb_retptrGC( hbqt_gcAllocate_HBQEvents( ( void * ) pObj, true ) );
}
/*
* HBQEvents()
*/
HB_FUNC( QT_HBQEVENTS_HBQEVENTS )
{
hb_retptrGC( hbqt_gcAllocate_HBQEvents( new HBQEvents(), true ) );
}
/*
* bool hbConnect( PHB_ITEM obj, int event, PHB_ITEM block )
*/

View File

@@ -98,7 +98,7 @@
/*----------------------------------------------------------------------*/
/*
* Constructed[ 5/5 [ 100.00% ] ]
* Constructed[ 4/4 [ 100.00% ] ]
*
*/
@@ -187,14 +187,6 @@ HB_FUNC( QT_HBQSLOTS )
hb_retptrGC( hbqt_gcAllocate_HBQSlots( ( void * ) pObj, true ) );
}
/*
* HBQSlots()
*/
HB_FUNC( QT_HBQSLOTS_HBQSLOTS )
{
hb_retptrGC( hbqt_gcAllocate_HBQSlots( new HBQSlots(), true ) );
}
/*
* bool hbConnect( PHB_ITEM pObj, const char * slot, PHB_ITEM bBlock )
*/

View File

@@ -110,7 +110,7 @@
*/
/*
* Constructed[ 175/176 [ 99.43% ] ]
* Constructed[ 167/168 [ 99.40% ] ]
*
* *** Unconvered Prototypes ***
*
@@ -237,72 +237,6 @@ HB_FUNC( QT_HBQSTRING )
hb_retptrGC( hbqt_gcAllocate_HBQString( ( void * ) pObj, true ) );
}
/*
* HBQString ()
*/
HB_FUNC( QT_HBQSTRING_HBQSTRING )
{
hb_retptrGC( hbqt_gcAllocate_HBQString( new HBQString(), true ) );
}
/*
* HBQString ( const QChar * unicode, int size )
*/
HB_FUNC( QT_HBQSTRING_HBQSTRING_1 )
{
hb_retptrGC( hbqt_gcAllocate_HBQString( new HBQString( hbqt_par_QChar( 2 ), hb_parni( 3 ) ), true ) );
}
/*
* HBQString ( QChar ch )
*/
HB_FUNC( QT_HBQSTRING_HBQSTRING_2 )
{
hb_retptrGC( hbqt_gcAllocate_HBQString( new HBQString( *hbqt_par_QChar( 2 ) ), true ) );
}
/*
* HBQString ( int size, QChar ch )
*/
HB_FUNC( QT_HBQSTRING_HBQSTRING_3 )
{
hb_retptrGC( hbqt_gcAllocate_HBQString( new HBQString( hb_parni( 2 ), *hbqt_par_QChar( 3 ) ), true ) );
}
/*
* HBQString ( const QLatin1String & str )
*/
HB_FUNC( QT_HBQSTRING_HBQSTRING_4 )
{
hb_retptrGC( hbqt_gcAllocate_HBQString( new HBQString( *hbqt_par_QLatin1String( 2 ) ), true ) );
}
/*
* HBQString ( const QString & other )
*/
HB_FUNC( QT_HBQSTRING_HBQSTRING_5 )
{
void * pText;
hb_retptrGC( hbqt_gcAllocate_HBQString( new HBQString( hb_parstr_utf8( 2, &pText, NULL ) ), true ) );
hb_strfree( pText );
}
/*
* HBQString ( const char * str )
*/
HB_FUNC( QT_HBQSTRING_HBQSTRING_6 )
{
hb_retptrGC( hbqt_gcAllocate_HBQString( new HBQString( ( const char * ) hb_parc( 2 ) ), true ) );
}
/*
* HBQString ( const QByteArray & ba )
*/
HB_FUNC( QT_HBQSTRING_HBQSTRING_7 )
{
hb_retptrGC( hbqt_gcAllocate_HBQString( new HBQString( *hbqt_par_QByteArray( 2 ) ), true ) );
}
/*
* QString & append ( const QString & str )
*/

View File

@@ -107,7 +107,6 @@
*
* *** Commented out protostypes ***
*
* //QAbstractItemModel ( QObject * parent = 0 )
* // virtual QModelIndexList match ( const QModelIndex & start, int role, const QVariant & value, int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags( Qt::MatchStartsWith | Qt::MatchWrap ) ) const
* // virtual QMimeData * mimeData ( const QModelIndexList & indexes ) const
*/

View File

@@ -0,0 +1,224 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009-2010 Pritpal Bedi <bedipritpal@hotmail.com>
* www - http://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.
*
*/
/*----------------------------------------------------------------------*/
/* C R E D I T S */
/*----------------------------------------------------------------------*/
/*
* Marcos Antonio Gambeta
* for providing first ever prototype parsing methods. Though the current
* implementation is diametrically different then what he proposed, still
* current code shaped on those footsteps.
*
* Viktor Szakats
* for directing the project with futuristic vision;
* for designing and maintaining a complex build system for hbQT, hbIDE;
* for introducing many constructs on PRG and C++ levels;
* for streamlining signal/slots and events management classes;
*
* Istvan Bisz
* for introducing QPointer<> concept in the generator;
* for testing the library on numerous accounts;
* for showing a way how a GC pointer can be detached;
*
* Francesco Perillo
* for taking keen interest in hbQT development and peeking the code;
* for providing tips here and there to improve the code quality;
* for hitting bulls eye to describe why few objects need GC detachment;
*
* Carlos Bacco
* for implementing HBQT_TYPE_Q*Class enums;
* for peeking into the code and suggesting optimization points;
*
* Przemyslaw Czerpak
* for providing tips and trick to manipulate HVM internals to the best
* of its use and always showing a path when we get stuck;
* A true tradition of a MASTER...
*/
/*----------------------------------------------------------------------*/
#include "hbqtcore.h"
/*----------------------------------------------------------------------*/
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
/*
* Constructed[ 3/3 [ 100.00% ] ]
*
*/
#include <QtCore/QPointer>
#include <QtCore/QGenericArgument>
/*
* QGenericArgument ( const char * name = 0, const void * data = 0 )
*
*/
typedef struct
{
QGenericArgument * ph;
bool bNew;
PHBQT_GC_FUNC func;
int type;
} HBQT_GC_T_QGenericArgument;
HBQT_GC_FUNC( hbqt_gcRelease_QGenericArgument )
{
HBQT_GC_T * p = ( HBQT_GC_T * ) Cargo;
if( p && p->bNew )
{
if( p->ph )
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _rel_QGenericArgument /.\\", p->ph ) );
delete ( ( QGenericArgument * ) p->ph );
HB_TRACE( HB_TR_DEBUG, ( "ph=%p YES_rel_QGenericArgument \\./", p->ph ) );
p->ph = NULL;
}
else
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p DEL_rel_QGenericArgument : Object already deleted!", p->ph ) );
p->ph = NULL;
}
}
else
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p PTR_rel_QGenericArgument : Object not created with new=true", p->ph ) );
p->ph = NULL;
}
}
void * hbqt_gcAllocate_QGenericArgument( void * pObj, bool bNew )
{
HBQT_GC_T * p = ( HBQT_GC_T * ) hb_gcAllocate( sizeof( HBQT_GC_T ), hbqt_gcFuncs() );
p->ph = ( QGenericArgument * ) pObj;
p->bNew = bNew;
p->func = hbqt_gcRelease_QGenericArgument;
p->type = HBQT_TYPE_QGenericArgument;
if( bNew )
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QGenericArgument", pObj ) );
}
else
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QGenericArgument", pObj ) );
}
return p;
}
HB_FUNC( QT_QGENERICARGUMENT )
{
QGenericArgument * pObj = NULL;
if( hb_pcount() == 1 && HB_ISCHAR( 1 ) )
{
pObj = new QGenericArgument( hb_parc( 1 ), 0 ) ;
}
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
{
pObj = new QGenericArgument( hb_parc( 1 ), hb_parptr( 2 ) ) ;
}
else
{
pObj = new QGenericArgument() ;
}
hb_retptrGC( hbqt_gcAllocate_QGenericArgument( ( void * ) pObj, true ) );
}
/*
* QGenericArgument ( const char * name = 0, const void * data = 0 )
*/
HB_FUNC( QT_QGENERICARGUMENT_QGENERICARGUMENT )
{
hb_retptrGC( hbqt_gcAllocate_QGenericArgument( new QGenericArgument( ( const char * ) hb_parc( 2 ), hbqt_par_void( 3 ) ), true ) );
}
/*
* void * data () const
*/
HB_FUNC( QT_QGENERICARGUMENT_DATA )
{
QGenericArgument * p = hbqt_par_QGenericArgument( 1 );
if( p )
{
( p )->data();
}
}
/*
* const char * name () const
*/
HB_FUNC( QT_QGENERICARGUMENT_NAME )
{
QGenericArgument * p = hbqt_par_QGenericArgument( 1 );
if( p )
{
hb_retc( ( p )->name() );
}
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -0,0 +1,192 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009-2010 Pritpal Bedi <bedipritpal@hotmail.com>
* www - http://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.
*
*/
/*----------------------------------------------------------------------*/
/* C R E D I T S */
/*----------------------------------------------------------------------*/
/*
* Marcos Antonio Gambeta
* for providing first ever prototype parsing methods. Though the current
* implementation is diametrically different then what he proposed, still
* current code shaped on those footsteps.
*
* Viktor Szakats
* for directing the project with futuristic vision;
* for designing and maintaining a complex build system for hbQT, hbIDE;
* for introducing many constructs on PRG and C++ levels;
* for streamlining signal/slots and events management classes;
*
* Istvan Bisz
* for introducing QPointer<> concept in the generator;
* for testing the library on numerous accounts;
* for showing a way how a GC pointer can be detached;
*
* Francesco Perillo
* for taking keen interest in hbQT development and peeking the code;
* for providing tips here and there to improve the code quality;
* for hitting bulls eye to describe why few objects need GC detachment;
*
* Carlos Bacco
* for implementing HBQT_TYPE_Q*Class enums;
* for peeking into the code and suggesting optimization points;
*
* Przemyslaw Czerpak
* for providing tips and trick to manipulate HVM internals to the best
* of its use and always showing a path when we get stuck;
* A true tradition of a MASTER...
*/
/*----------------------------------------------------------------------*/
#include "hbqtcore.h"
/*----------------------------------------------------------------------*/
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
/*
* Constructed[ 0/0 [ 0% ] ]
*
*/
#include <QtCore/QPointer>
#include <QtCore/QGenericReturnArgument>
/*
* QGenericArgument ( const char * name = 0, const void * data = 0 )
*
*/
typedef struct
{
QGenericReturnArgument * ph;
bool bNew;
PHBQT_GC_FUNC func;
int type;
} HBQT_GC_T_QGenericReturnArgument;
HBQT_GC_FUNC( hbqt_gcRelease_QGenericReturnArgument )
{
HBQT_GC_T * p = ( HBQT_GC_T * ) Cargo;
if( p && p->bNew )
{
if( p->ph )
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _rel_QGenericReturnArgument /.\\", p->ph ) );
delete ( ( QGenericReturnArgument * ) p->ph );
HB_TRACE( HB_TR_DEBUG, ( "ph=%p YES_rel_QGenericReturnArgument \\./", p->ph ) );
p->ph = NULL;
}
else
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p DEL_rel_QGenericReturnArgument : Object already deleted!", p->ph ) );
p->ph = NULL;
}
}
else
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p PTR_rel_QGenericReturnArgument : Object not created with new=true", p->ph ) );
p->ph = NULL;
}
}
void * hbqt_gcAllocate_QGenericReturnArgument( void * pObj, bool bNew )
{
HBQT_GC_T * p = ( HBQT_GC_T * ) hb_gcAllocate( sizeof( HBQT_GC_T ), hbqt_gcFuncs() );
p->ph = ( QGenericReturnArgument * ) pObj;
p->bNew = bNew;
p->func = hbqt_gcRelease_QGenericReturnArgument;
p->type = HBQT_TYPE_QGenericReturnArgument;
if( bNew )
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QGenericReturnArgument", pObj ) );
}
else
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QGenericReturnArgument", pObj ) );
}
return p;
}
HB_FUNC( QT_QGENERICRETURNARGUMENT )
{
QGenericReturnArgument * pObj = NULL;
if( hb_pcount() == 1 && HB_ISCHAR( 1 ) )
{
pObj = new QGenericReturnArgument( hb_parc( 1 ), 0 ) ;
}
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
{
pObj = new QGenericReturnArgument( hb_parc( 1 ), hb_parptr( 2 ) ) ;
}
else
{
pObj = new QGenericReturnArgument() ;
}
hb_retptrGC( hbqt_gcAllocate_QGenericReturnArgument( ( void * ) pObj, true ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -0,0 +1,186 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009-2010 Pritpal Bedi <bedipritpal@hotmail.com>
* www - http://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.
*
*/
/*----------------------------------------------------------------------*/
/* C R E D I T S */
/*----------------------------------------------------------------------*/
/*
* Marcos Antonio Gambeta
* for providing first ever prototype parsing methods. Though the current
* implementation is diametrically different then what he proposed, still
* current code shaped on those footsteps.
*
* Viktor Szakats
* for directing the project with futuristic vision;
* for designing and maintaining a complex build system for hbQT, hbIDE;
* for introducing many constructs on PRG and C++ levels;
* for streamlining signal/slots and events management classes;
*
* Istvan Bisz
* for introducing QPointer<> concept in the generator;
* for testing the library on numerous accounts;
* for showing a way how a GC pointer can be detached;
*
* Francesco Perillo
* for taking keen interest in hbQT development and peeking the code;
* for providing tips here and there to improve the code quality;
* for hitting bulls eye to describe why few objects need GC detachment;
*
* Carlos Bacco
* for implementing HBQT_TYPE_Q*Class enums;
* for peeking into the code and suggesting optimization points;
*
* Przemyslaw Czerpak
* for providing tips and trick to manipulate HVM internals to the best
* of its use and always showing a path when we get stuck;
* A true tradition of a MASTER...
*/
/*----------------------------------------------------------------------*/
#include "hbqtcore.h"
/*----------------------------------------------------------------------*/
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
/*
* Constructed[ 2/2 [ 100.00% ] ]
*
*/
#include <QtCore/QPointer>
#include <QtCore/QMetaClassInfo>
/*
*
*
*/
typedef struct
{
QMetaClassInfo * ph;
bool bNew;
PHBQT_GC_FUNC func;
int type;
} HBQT_GC_T_QMetaClassInfo;
HBQT_GC_FUNC( hbqt_gcRelease_QMetaClassInfo )
{
HB_SYMBOL_UNUSED( Cargo );
HBQT_GC_T * p = ( HBQT_GC_T * ) Cargo;
if( p && p->bNew )
{
p->ph = NULL;
}
}
void * hbqt_gcAllocate_QMetaClassInfo( void * pObj, bool bNew )
{
HBQT_GC_T * p = ( HBQT_GC_T * ) hb_gcAllocate( sizeof( HBQT_GC_T ), hbqt_gcFuncs() );
p->ph = ( QMetaClassInfo * ) pObj;
p->bNew = bNew;
p->func = hbqt_gcRelease_QMetaClassInfo;
p->type = HBQT_TYPE_QMetaClassInfo;
if( bNew )
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QMetaClassInfo", pObj ) );
}
else
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QMetaClassInfo", pObj ) );
}
return p;
}
HB_FUNC( QT_QMETACLASSINFO )
{
// hb_retptr( new QMetaClassInfo() );
}
/*
* const char * name () const
*/
HB_FUNC( QT_QMETACLASSINFO_NAME )
{
QMetaClassInfo * p = hbqt_par_QMetaClassInfo( 1 );
if( p )
{
hb_retc( ( p )->name() );
}
}
/*
* const char * value () const
*/
HB_FUNC( QT_QMETACLASSINFO_VALUE )
{
QMetaClassInfo * p = hbqt_par_QMetaClassInfo( 1 );
if( p )
{
hb_retc( ( p )->value() );
}
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -0,0 +1,294 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009-2010 Pritpal Bedi <bedipritpal@hotmail.com>
* www - http://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.
*
*/
/*----------------------------------------------------------------------*/
/* C R E D I T S */
/*----------------------------------------------------------------------*/
/*
* Marcos Antonio Gambeta
* for providing first ever prototype parsing methods. Though the current
* implementation is diametrically different then what he proposed, still
* current code shaped on those footsteps.
*
* Viktor Szakats
* for directing the project with futuristic vision;
* for designing and maintaining a complex build system for hbQT, hbIDE;
* for introducing many constructs on PRG and C++ levels;
* for streamlining signal/slots and events management classes;
*
* Istvan Bisz
* for introducing QPointer<> concept in the generator;
* for testing the library on numerous accounts;
* for showing a way how a GC pointer can be detached;
*
* Francesco Perillo
* for taking keen interest in hbQT development and peeking the code;
* for providing tips here and there to improve the code quality;
* for hitting bulls eye to describe why few objects need GC detachment;
*
* Carlos Bacco
* for implementing HBQT_TYPE_Q*Class enums;
* for peeking into the code and suggesting optimization points;
*
* Przemyslaw Czerpak
* for providing tips and trick to manipulate HVM internals to the best
* of its use and always showing a path when we get stuck;
* A true tradition of a MASTER...
*/
/*----------------------------------------------------------------------*/
#include "hbqtcore.h"
/*----------------------------------------------------------------------*/
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
/*
* Constructed[ 11/11 [ 100.00% ] ]
*
*/
#include <QtCore/QPointer>
#include <QtCore/QMetaEnum>
/*
*
*
*/
typedef struct
{
QMetaEnum * ph;
bool bNew;
PHBQT_GC_FUNC func;
int type;
} HBQT_GC_T_QMetaEnum;
HBQT_GC_FUNC( hbqt_gcRelease_QMetaEnum )
{
HB_SYMBOL_UNUSED( Cargo );
HBQT_GC_T * p = ( HBQT_GC_T * ) Cargo;
if( p && p->bNew )
{
p->ph = NULL;
}
}
void * hbqt_gcAllocate_QMetaEnum( void * pObj, bool bNew )
{
HBQT_GC_T * p = ( HBQT_GC_T * ) hb_gcAllocate( sizeof( HBQT_GC_T ), hbqt_gcFuncs() );
p->ph = ( QMetaEnum * ) pObj;
p->bNew = bNew;
p->func = hbqt_gcRelease_QMetaEnum;
p->type = HBQT_TYPE_QMetaEnum;
if( bNew )
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QMetaEnum", pObj ) );
}
else
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QMetaEnum", pObj ) );
}
return p;
}
HB_FUNC( QT_QMETAENUM )
{
// hb_retptr( new QMetaEnum() );
}
/*
* bool isFlag () const
*/
HB_FUNC( QT_QMETAENUM_ISFLAG )
{
QMetaEnum * p = hbqt_par_QMetaEnum( 1 );
if( p )
{
hb_retl( ( p )->isFlag() );
}
}
/*
* bool isValid () const
*/
HB_FUNC( QT_QMETAENUM_ISVALID )
{
QMetaEnum * p = hbqt_par_QMetaEnum( 1 );
if( p )
{
hb_retl( ( p )->isValid() );
}
}
/*
* const char * key ( int index ) const
*/
HB_FUNC( QT_QMETAENUM_KEY )
{
QMetaEnum * p = hbqt_par_QMetaEnum( 1 );
if( p )
{
hb_retc( ( p )->key( hb_parni( 2 ) ) );
}
}
/*
* int keyCount () const
*/
HB_FUNC( QT_QMETAENUM_KEYCOUNT )
{
QMetaEnum * p = hbqt_par_QMetaEnum( 1 );
if( p )
{
hb_retni( ( p )->keyCount() );
}
}
/*
* int keyToValue ( const char * key ) const
*/
HB_FUNC( QT_QMETAENUM_KEYTOVALUE )
{
QMetaEnum * p = hbqt_par_QMetaEnum( 1 );
if( p )
{
hb_retni( ( p )->keyToValue( ( const char * ) hb_parc( 2 ) ) );
}
}
/*
* int keysToValue ( const char * keys ) const
*/
HB_FUNC( QT_QMETAENUM_KEYSTOVALUE )
{
QMetaEnum * p = hbqt_par_QMetaEnum( 1 );
if( p )
{
hb_retni( ( p )->keysToValue( ( const char * ) hb_parc( 2 ) ) );
}
}
/*
* const char * name () const
*/
HB_FUNC( QT_QMETAENUM_NAME )
{
QMetaEnum * p = hbqt_par_QMetaEnum( 1 );
if( p )
{
hb_retc( ( p )->name() );
}
}
/*
* const char * scope () const
*/
HB_FUNC( QT_QMETAENUM_SCOPE )
{
QMetaEnum * p = hbqt_par_QMetaEnum( 1 );
if( p )
{
hb_retc( ( p )->scope() );
}
}
/*
* int value ( int index ) const
*/
HB_FUNC( QT_QMETAENUM_VALUE )
{
QMetaEnum * p = hbqt_par_QMetaEnum( 1 );
if( p )
{
hb_retni( ( p )->value( hb_parni( 2 ) ) );
}
}
/*
* const char * valueToKey ( int value ) const
*/
HB_FUNC( QT_QMETAENUM_VALUETOKEY )
{
QMetaEnum * p = hbqt_par_QMetaEnum( 1 );
if( p )
{
hb_retc( ( p )->valueToKey( hb_parni( 2 ) ) );
}
}
/*
* QByteArray valueToKeys ( int value ) const
*/
HB_FUNC( QT_QMETAENUM_VALUETOKEYS )
{
QMetaEnum * p = hbqt_par_QMetaEnum( 1 );
if( p )
{
hb_retptrGC( hbqt_gcAllocate_QByteArray( new QByteArray( ( p )->valueToKeys( hb_parni( 2 ) ) ), true ) );
}
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -0,0 +1,277 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009-2010 Pritpal Bedi <bedipritpal@hotmail.com>
* www - http://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.
*
*/
/*----------------------------------------------------------------------*/
/* C R E D I T S */
/*----------------------------------------------------------------------*/
/*
* Marcos Antonio Gambeta
* for providing first ever prototype parsing methods. Though the current
* implementation is diametrically different then what he proposed, still
* current code shaped on those footsteps.
*
* Viktor Szakats
* for directing the project with futuristic vision;
* for designing and maintaining a complex build system for hbQT, hbIDE;
* for introducing many constructs on PRG and C++ levels;
* for streamlining signal/slots and events management classes;
*
* Istvan Bisz
* for introducing QPointer<> concept in the generator;
* for testing the library on numerous accounts;
* for showing a way how a GC pointer can be detached;
*
* Francesco Perillo
* for taking keen interest in hbQT development and peeking the code;
* for providing tips here and there to improve the code quality;
* for hitting bulls eye to describe why few objects need GC detachment;
*
* Carlos Bacco
* for implementing HBQT_TYPE_Q*Class enums;
* for peeking into the code and suggesting optimization points;
*
* Przemyslaw Czerpak
* for providing tips and trick to manipulate HVM internals to the best
* of its use and always showing a path when we get stuck;
* A true tradition of a MASTER...
*/
/*----------------------------------------------------------------------*/
#include "hbqtcore.h"
/*----------------------------------------------------------------------*/
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
/*
* enum Access { Private, Protected, Public }
* enum MethodType { Method, Signal, Slot, Constructor }
*/
/*
* Constructed[ 7/7 [ 100.00% ] ]
*
*
* *** Commented out protostypes ***
*
* //bool invoke ( QObject * object, Qt::ConnectionType connectionType, QGenericReturnArgument returnValue, QGenericArgument val0 = QGenericArgument( 0 ), QGenericArgument val1 = QGenericArgument(), QGenericArgument val2 = QGenericArgument(), QGenericArgument val3 = QGenericArgument(), QGenericArgument val4 = QGenericArgument(), QGenericArgument val5 = QGenericArgument(), QGenericArgument val6 = QGenericArgument(), QGenericArgument val7 = QGenericArgument(), QGenericArgument val8 = QGenericArgument(), QGenericArgument val9 = QGenericArgument() ) const
* //bool invoke ( QObject * object, QGenericReturnArgument returnValue, QGenericArgument val0 = QGenericArgument( 0 ), QGenericArgument val1 = QGenericArgument(), QGenericArgument val2 = QGenericArgument(), QGenericArgument val3 = QGenericArgument(), QGenericArgument val4 = QGenericArgument(), QGenericArgument val5 = QGenericArgument(), QGenericArgument val6 = QGenericArgument(), QGenericArgument val7 = QGenericArgument(), QGenericArgument val8 = QGenericArgument(), QGenericArgument val9 = QGenericArgument() ) const
* //bool invoke ( QObject * object, Qt::ConnectionType connectionType, QGenericArgument val0 = QGenericArgument( 0 ), QGenericArgument val1 = QGenericArgument(), QGenericArgument val2 = QGenericArgument(), QGenericArgument val3 = QGenericArgument(), QGenericArgument val4 = QGenericArgument(), QGenericArgument val5 = QGenericArgument(), QGenericArgument val6 = QGenericArgument(), QGenericArgument val7 = QGenericArgument(), QGenericArgument val8 = QGenericArgument(), QGenericArgument val9 = QGenericArgument() ) const
* //bool invoke ( QObject * object, QGenericArgument val0 = QGenericArgument( 0 ), QGenericArgument val1 = QGenericArgument(), QGenericArgument val2 = QGenericArgument(), QGenericArgument val3 = QGenericArgument(), QGenericArgument val4 = QGenericArgument(), QGenericArgument val5 = QGenericArgument(), QGenericArgument val6 = QGenericArgument(), QGenericArgument val7 = QGenericArgument(), QGenericArgument val8 = QGenericArgument(), QGenericArgument val9 = QGenericArgument() ) const
*/
#include <QtCore/QPointer>
#include <QtCore/QMetaMethod>
/*
*
*
*/
typedef struct
{
QMetaMethod * ph;
bool bNew;
PHBQT_GC_FUNC func;
int type;
} HBQT_GC_T_QMetaMethod;
HBQT_GC_FUNC( hbqt_gcRelease_QMetaMethod )
{
HBQT_GC_T * p = ( HBQT_GC_T * ) Cargo;
if( p && p->bNew )
{
if( p->ph )
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _rel_QMetaMethod /.\\", p->ph ) );
delete ( ( QMetaMethod * ) p->ph );
HB_TRACE( HB_TR_DEBUG, ( "ph=%p YES_rel_QMetaMethod \\./", p->ph ) );
p->ph = NULL;
}
else
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p DEL_rel_QMetaMethod : Object already deleted!", p->ph ) );
p->ph = NULL;
}
}
else
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p PTR_rel_QMetaMethod : Object not created with new=true", p->ph ) );
p->ph = NULL;
}
}
void * hbqt_gcAllocate_QMetaMethod( void * pObj, bool bNew )
{
HBQT_GC_T * p = ( HBQT_GC_T * ) hb_gcAllocate( sizeof( HBQT_GC_T ), hbqt_gcFuncs() );
p->ph = ( QMetaMethod * ) pObj;
p->bNew = bNew;
p->func = hbqt_gcRelease_QMetaMethod;
p->type = HBQT_TYPE_QMetaMethod;
if( bNew )
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QMetaMethod", pObj ) );
}
else
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QMetaMethod", pObj ) );
}
return p;
}
HB_FUNC( QT_QMETAMETHOD )
{
QMetaMethod * pObj = NULL;
pObj = new QMetaMethod() ;
hb_retptrGC( hbqt_gcAllocate_QMetaMethod( ( void * ) pObj, true ) );
}
/*
* Access access () const
*/
HB_FUNC( QT_QMETAMETHOD_ACCESS )
{
QMetaMethod * p = hbqt_par_QMetaMethod( 1 );
if( p )
{
hb_retni( ( QMetaMethod::Access ) ( p )->access() );
}
}
/*
* MethodType methodType () const
*/
HB_FUNC( QT_QMETAMETHOD_METHODTYPE )
{
QMetaMethod * p = hbqt_par_QMetaMethod( 1 );
if( p )
{
hb_retni( ( QMetaMethod::MethodType ) ( p )->methodType() );
}
}
/*
* QList<QByteArray> parameterNames () const
*/
HB_FUNC( QT_QMETAMETHOD_PARAMETERNAMES )
{
QMetaMethod * p = hbqt_par_QMetaMethod( 1 );
if( p )
{
hb_retptrGC( hbqt_gcAllocate_QList( new QList<QByteArray>( ( p )->parameterNames() ), true ) );
}
}
/*
* QList<QByteArray> parameterTypes () const
*/
HB_FUNC( QT_QMETAMETHOD_PARAMETERTYPES )
{
QMetaMethod * p = hbqt_par_QMetaMethod( 1 );
if( p )
{
hb_retptrGC( hbqt_gcAllocate_QList( new QList<QByteArray>( ( p )->parameterTypes() ), true ) );
}
}
/*
* const char * signature () const
*/
HB_FUNC( QT_QMETAMETHOD_SIGNATURE )
{
QMetaMethod * p = hbqt_par_QMetaMethod( 1 );
if( p )
{
hb_retc( ( p )->signature() );
}
}
/*
* const char * tag () const
*/
HB_FUNC( QT_QMETAMETHOD_TAG )
{
QMetaMethod * p = hbqt_par_QMetaMethod( 1 );
if( p )
{
hb_retc( ( p )->tag() );
}
}
/*
* const char * typeName () const
*/
HB_FUNC( QT_QMETAMETHOD_TYPENAME )
{
QMetaMethod * p = hbqt_par_QMetaMethod( 1 );
if( p )
{
hb_retc( ( p )->typeName() );
}
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -0,0 +1,506 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009-2010 Pritpal Bedi <bedipritpal@hotmail.com>
* www - http://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.
*
*/
/*----------------------------------------------------------------------*/
/* C R E D I T S */
/*----------------------------------------------------------------------*/
/*
* Marcos Antonio Gambeta
* for providing first ever prototype parsing methods. Though the current
* implementation is diametrically different then what he proposed, still
* current code shaped on those footsteps.
*
* Viktor Szakats
* for directing the project with futuristic vision;
* for designing and maintaining a complex build system for hbQT, hbIDE;
* for introducing many constructs on PRG and C++ levels;
* for streamlining signal/slots and events management classes;
*
* Istvan Bisz
* for introducing QPointer<> concept in the generator;
* for testing the library on numerous accounts;
* for showing a way how a GC pointer can be detached;
*
* Francesco Perillo
* for taking keen interest in hbQT development and peeking the code;
* for providing tips here and there to improve the code quality;
* for hitting bulls eye to describe why few objects need GC detachment;
*
* Carlos Bacco
* for implementing HBQT_TYPE_Q*Class enums;
* for peeking into the code and suggesting optimization points;
*
* Przemyslaw Czerpak
* for providing tips and trick to manipulate HVM internals to the best
* of its use and always showing a path when we get stuck;
* A true tradition of a MASTER...
*/
/*----------------------------------------------------------------------*/
#include "hbqtcore.h"
/*----------------------------------------------------------------------*/
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
/*
* Constructed[ 28/28 [ 100.00% ] ]
*
*
* *** Commented out protostypes ***
*
* //QObject * newInstance ( QGenericArgument val0 = QGenericArgument( 0 ), QGenericArgument val1 = QGenericArgument(), QGenericArgument val2 = QGenericArgument(), QGenericArgument val3 = QGenericArgument(), QGenericArgument val4 = QGenericArgument(), QGenericArgument val5 = QGenericArgument(), QGenericArgument val6 = QGenericArgument(), QGenericArgument val7 = QGenericArgument(), QGenericArgument val8 = QGenericArgument(), QGenericArgument val9 = QGenericArgument() ) const
* //bool invokeMethod ( QObject * obj, const char * member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0 = QGenericArgument( 0 ), QGenericArgument val1 = QGenericArgument(), QGenericArgument val2 = QGenericArgument(), QGenericArgument val3 = QGenericArgument(), QGenericArgument val4 = QGenericArgument(), QGenericArgument val5 = QGenericArgument(), QGenericArgument val6 = QGenericArgument(), QGenericArgument val7 = QGenericArgument(), QGenericArgument val8 = QGenericArgument(), QGenericArgument val9 = QGenericArgument() )
* //bool invokeMethod ( QObject * obj, const char * member, QGenericReturnArgument ret, QGenericArgument val0 = QGenericArgument( 0 ), QGenericArgument val1 = QGenericArgument(), QGenericArgument val2 = QGenericArgument(), QGenericArgument val3 = QGenericArgument(), QGenericArgument val4 = QGenericArgument(), QGenericArgument val5 = QGenericArgument(), QGenericArgument val6 = QGenericArgument(), QGenericArgument val7 = QGenericArgument(), QGenericArgument val8 = QGenericArgument(), QGenericArgument val9 = QGenericArgument() )
* //bool invokeMethod ( QObject * obj, const char * member, Qt::ConnectionType type, QGenericArgument val0 = QGenericArgument( 0 ), QGenericArgument val1 = QGenericArgument(), QGenericArgument val2 = QGenericArgument(), QGenericArgument val3 = QGenericArgument(), QGenericArgument val4 = QGenericArgument(), QGenericArgument val5 = QGenericArgument(), QGenericArgument val6 = QGenericArgument(), QGenericArgument val7 = QGenericArgument(), QGenericArgument val8 = QGenericArgument(), QGenericArgument val9 = QGenericArgument() )
* //bool invokeMethod ( QObject * obj, const char * member, QGenericArgument val0 = QGenericArgument( 0 ), QGenericArgument val1 = QGenericArgument(), QGenericArgument val2 = QGenericArgument(), QGenericArgument val3 = QGenericArgument(), QGenericArgument val4 = QGenericArgument(), QGenericArgument val5 = QGenericArgument(), QGenericArgument val6 = QGenericArgument(), QGenericArgument val7 = QGenericArgument(), QGenericArgument val8 = QGenericArgument(), QGenericArgument val9 = QGenericArgument() )
*/
#include <QtCore/QPointer>
#include <QtCore/QMetaObject>
#include <QtCore/QMetaClassInfo>
/*
*
*
*/
typedef struct
{
QMetaObject * ph;
bool bNew;
PHBQT_GC_FUNC func;
int type;
} HBQT_GC_T_QMetaObject;
HBQT_GC_FUNC( hbqt_gcRelease_QMetaObject )
{
HB_SYMBOL_UNUSED( Cargo );
HBQT_GC_T * p = ( HBQT_GC_T * ) Cargo;
if( p && p->bNew )
{
p->ph = NULL;
}
}
void * hbqt_gcAllocate_QMetaObject( void * pObj, bool bNew )
{
HBQT_GC_T * p = ( HBQT_GC_T * ) hb_gcAllocate( sizeof( HBQT_GC_T ), hbqt_gcFuncs() );
p->ph = ( QMetaObject * ) pObj;
p->bNew = bNew;
p->func = hbqt_gcRelease_QMetaObject;
p->type = HBQT_TYPE_QMetaObject;
if( bNew )
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QMetaObject", pObj ) );
}
else
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QMetaObject", pObj ) );
}
return p;
}
HB_FUNC( QT_QMETAOBJECT )
{
// hb_retptr( new QMetaObject() );
}
/*
* QMetaClassInfo classInfo ( int index ) const
*/
HB_FUNC( QT_QMETAOBJECT_CLASSINFO )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retptrGC( hbqt_gcAllocate_QMetaClassInfo( new QMetaClassInfo( ( p )->classInfo( hb_parni( 2 ) ) ), true ) );
}
}
/*
* int classInfoCount () const
*/
HB_FUNC( QT_QMETAOBJECT_CLASSINFOCOUNT )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retni( ( p )->classInfoCount() );
}
}
/*
* int classInfoOffset () const
*/
HB_FUNC( QT_QMETAOBJECT_CLASSINFOOFFSET )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retni( ( p )->classInfoOffset() );
}
}
/*
* const char * className () const
*/
HB_FUNC( QT_QMETAOBJECT_CLASSNAME )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retc( ( p )->className() );
}
}
/*
* QMetaMethod constructor ( int index ) const
*/
HB_FUNC( QT_QMETAOBJECT_CONSTRUCTOR )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retptrGC( hbqt_gcAllocate_QMetaMethod( new QMetaMethod( ( p )->constructor( hb_parni( 2 ) ) ), true ) );
}
}
/*
* int constructorCount () const
*/
HB_FUNC( QT_QMETAOBJECT_CONSTRUCTORCOUNT )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retni( ( p )->constructorCount() );
}
}
/*
* QMetaEnum enumerator ( int index ) const
*/
HB_FUNC( QT_QMETAOBJECT_ENUMERATOR )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retptrGC( hbqt_gcAllocate_QMetaEnum( new QMetaEnum( ( p )->enumerator( hb_parni( 2 ) ) ), true ) );
}
}
/*
* int enumeratorCount () const
*/
HB_FUNC( QT_QMETAOBJECT_ENUMERATORCOUNT )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retni( ( p )->enumeratorCount() );
}
}
/*
* int enumeratorOffset () const
*/
HB_FUNC( QT_QMETAOBJECT_ENUMERATOROFFSET )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retni( ( p )->enumeratorOffset() );
}
}
/*
* int indexOfClassInfo ( const char * name ) const
*/
HB_FUNC( QT_QMETAOBJECT_INDEXOFCLASSINFO )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retni( ( p )->indexOfClassInfo( ( const char * ) hb_parc( 2 ) ) );
}
}
/*
* int indexOfConstructor ( const char * constructor ) const
*/
HB_FUNC( QT_QMETAOBJECT_INDEXOFCONSTRUCTOR )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retni( ( p )->indexOfConstructor( ( const char * ) hb_parc( 2 ) ) );
}
}
/*
* int indexOfEnumerator ( const char * name ) const
*/
HB_FUNC( QT_QMETAOBJECT_INDEXOFENUMERATOR )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retni( ( p )->indexOfEnumerator( ( const char * ) hb_parc( 2 ) ) );
}
}
/*
* int indexOfMethod ( const char * method ) const
*/
HB_FUNC( QT_QMETAOBJECT_INDEXOFMETHOD )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retni( ( p )->indexOfMethod( ( const char * ) hb_parc( 2 ) ) );
}
}
/*
* int indexOfProperty ( const char * name ) const
*/
HB_FUNC( QT_QMETAOBJECT_INDEXOFPROPERTY )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retni( ( p )->indexOfProperty( ( const char * ) hb_parc( 2 ) ) );
}
}
/*
* int indexOfSignal ( const char * signal ) const
*/
HB_FUNC( QT_QMETAOBJECT_INDEXOFSIGNAL )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retni( ( p )->indexOfSignal( ( const char * ) hb_parc( 2 ) ) );
}
}
/*
* int indexOfSlot ( const char * slot ) const
*/
HB_FUNC( QT_QMETAOBJECT_INDEXOFSLOT )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retni( ( p )->indexOfSlot( ( const char * ) hb_parc( 2 ) ) );
}
}
/*
* QMetaMethod method ( int index ) const
*/
HB_FUNC( QT_QMETAOBJECT_METHOD )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retptrGC( hbqt_gcAllocate_QMetaMethod( new QMetaMethod( ( p )->method( hb_parni( 2 ) ) ), true ) );
}
}
/*
* int methodCount () const
*/
HB_FUNC( QT_QMETAOBJECT_METHODCOUNT )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retni( ( p )->methodCount() );
}
}
/*
* int methodOffset () const
*/
HB_FUNC( QT_QMETAOBJECT_METHODOFFSET )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retni( ( p )->methodOffset() );
}
}
/*
* QMetaProperty property ( int index ) const
*/
HB_FUNC( QT_QMETAOBJECT_PROPERTY )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retptrGC( hbqt_gcAllocate_QMetaProperty( new QMetaProperty( ( p )->property( hb_parni( 2 ) ) ), true ) );
}
}
/*
* int propertyCount () const
*/
HB_FUNC( QT_QMETAOBJECT_PROPERTYCOUNT )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retni( ( p )->propertyCount() );
}
}
/*
* int propertyOffset () const
*/
HB_FUNC( QT_QMETAOBJECT_PROPERTYOFFSET )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retni( ( p )->propertyOffset() );
}
}
/*
* const QMetaObject * superClass () const
*/
HB_FUNC( QT_QMETAOBJECT_SUPERCLASS )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retptrGC( hbqt_gcAllocate_QMetaObject( new QMetaObject( *( ( p )->superClass() ) ), true ) );
}
}
/*
* QMetaProperty userProperty () const
*/
HB_FUNC( QT_QMETAOBJECT_USERPROPERTY )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retptrGC( hbqt_gcAllocate_QMetaProperty( new QMetaProperty( ( p )->userProperty() ), true ) );
}
}
/*
* bool checkConnectArgs ( const char * signal, const char * method )
*/
HB_FUNC( QT_QMETAOBJECT_CHECKCONNECTARGS )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retl( ( p )->checkConnectArgs( ( const char * ) hb_parc( 2 ), ( const char * ) hb_parc( 3 ) ) );
}
}
/*
* void connectSlotsByName ( QObject * object )
*/
HB_FUNC( QT_QMETAOBJECT_CONNECTSLOTSBYNAME )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
( p )->connectSlotsByName( hbqt_par_QObject( 2 ) );
}
}
/*
* QByteArray normalizedSignature ( const char * method )
*/
HB_FUNC( QT_QMETAOBJECT_NORMALIZEDSIGNATURE )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retptrGC( hbqt_gcAllocate_QByteArray( new QByteArray( ( p )->normalizedSignature( ( const char * ) hb_parc( 2 ) ) ), true ) );
}
}
/*
* QByteArray normalizedType ( const char * type )
*/
HB_FUNC( QT_QMETAOBJECT_NORMALIZEDTYPE )
{
QMetaObject * p = hbqt_par_QMetaObject( 1 );
if( p )
{
hb_retptrGC( hbqt_gcAllocate_QByteArray( new QByteArray( ( p )->normalizedType( ( const char * ) hb_parc( 2 ) ) ), true ) );
}
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -0,0 +1,414 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009-2010 Pritpal Bedi <bedipritpal@hotmail.com>
* www - http://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.
*
*/
/*----------------------------------------------------------------------*/
/* C R E D I T S */
/*----------------------------------------------------------------------*/
/*
* Marcos Antonio Gambeta
* for providing first ever prototype parsing methods. Though the current
* implementation is diametrically different then what he proposed, still
* current code shaped on those footsteps.
*
* Viktor Szakats
* for directing the project with futuristic vision;
* for designing and maintaining a complex build system for hbQT, hbIDE;
* for introducing many constructs on PRG and C++ levels;
* for streamlining signal/slots and events management classes;
*
* Istvan Bisz
* for introducing QPointer<> concept in the generator;
* for testing the library on numerous accounts;
* for showing a way how a GC pointer can be detached;
*
* Francesco Perillo
* for taking keen interest in hbQT development and peeking the code;
* for providing tips here and there to improve the code quality;
* for hitting bulls eye to describe why few objects need GC detachment;
*
* Carlos Bacco
* for implementing HBQT_TYPE_Q*Class enums;
* for peeking into the code and suggesting optimization points;
*
* Przemyslaw Czerpak
* for providing tips and trick to manipulate HVM internals to the best
* of its use and always showing a path when we get stuck;
* A true tradition of a MASTER...
*/
/*----------------------------------------------------------------------*/
#include "hbqtcore.h"
/*----------------------------------------------------------------------*/
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
/*
* Constructed[ 21/21 [ 100.00% ] ]
*
*/
#include <QtCore/QPointer>
#include <QtCore/QMetaProperty>
/*
*
*
*/
typedef struct
{
QMetaProperty * ph;
bool bNew;
PHBQT_GC_FUNC func;
int type;
} HBQT_GC_T_QMetaProperty;
HBQT_GC_FUNC( hbqt_gcRelease_QMetaProperty )
{
HB_SYMBOL_UNUSED( Cargo );
HBQT_GC_T * p = ( HBQT_GC_T * ) Cargo;
if( p && p->bNew )
{
p->ph = NULL;
}
}
void * hbqt_gcAllocate_QMetaProperty( void * pObj, bool bNew )
{
HBQT_GC_T * p = ( HBQT_GC_T * ) hb_gcAllocate( sizeof( HBQT_GC_T ), hbqt_gcFuncs() );
p->ph = ( QMetaProperty * ) pObj;
p->bNew = bNew;
p->func = hbqt_gcRelease_QMetaProperty;
p->type = HBQT_TYPE_QMetaProperty;
if( bNew )
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QMetaProperty", pObj ) );
}
else
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QMetaProperty", pObj ) );
}
return p;
}
HB_FUNC( QT_QMETAPROPERTY )
{
// hb_retptr( new QMetaProperty() );
}
/*
* QMetaEnum enumerator () const
*/
HB_FUNC( QT_QMETAPROPERTY_ENUMERATOR )
{
QMetaProperty * p = hbqt_par_QMetaProperty( 1 );
if( p )
{
hb_retptrGC( hbqt_gcAllocate_QMetaEnum( new QMetaEnum( ( p )->enumerator() ), true ) );
}
}
/*
* bool hasNotifySignal () const
*/
HB_FUNC( QT_QMETAPROPERTY_HASNOTIFYSIGNAL )
{
QMetaProperty * p = hbqt_par_QMetaProperty( 1 );
if( p )
{
hb_retl( ( p )->hasNotifySignal() );
}
}
/*
* bool isDesignable ( const QObject * object = 0 ) const
*/
HB_FUNC( QT_QMETAPROPERTY_ISDESIGNABLE )
{
QMetaProperty * p = hbqt_par_QMetaProperty( 1 );
if( p )
{
hb_retl( ( p )->isDesignable( hbqt_par_QObject( 2 ) ) );
}
}
/*
* bool isEnumType () const
*/
HB_FUNC( QT_QMETAPROPERTY_ISENUMTYPE )
{
QMetaProperty * p = hbqt_par_QMetaProperty( 1 );
if( p )
{
hb_retl( ( p )->isEnumType() );
}
}
/*
* bool isFlagType () const
*/
HB_FUNC( QT_QMETAPROPERTY_ISFLAGTYPE )
{
QMetaProperty * p = hbqt_par_QMetaProperty( 1 );
if( p )
{
hb_retl( ( p )->isFlagType() );
}
}
/*
* bool isReadable () const
*/
HB_FUNC( QT_QMETAPROPERTY_ISREADABLE )
{
QMetaProperty * p = hbqt_par_QMetaProperty( 1 );
if( p )
{
hb_retl( ( p )->isReadable() );
}
}
/*
* bool isResettable () const
*/
HB_FUNC( QT_QMETAPROPERTY_ISRESETTABLE )
{
QMetaProperty * p = hbqt_par_QMetaProperty( 1 );
if( p )
{
hb_retl( ( p )->isResettable() );
}
}
/*
* bool isScriptable ( const QObject * object = 0 ) const
*/
HB_FUNC( QT_QMETAPROPERTY_ISSCRIPTABLE )
{
QMetaProperty * p = hbqt_par_QMetaProperty( 1 );
if( p )
{
hb_retl( ( p )->isScriptable( hbqt_par_QObject( 2 ) ) );
}
}
/*
* bool isStored ( const QObject * object = 0 ) const
*/
HB_FUNC( QT_QMETAPROPERTY_ISSTORED )
{
QMetaProperty * p = hbqt_par_QMetaProperty( 1 );
if( p )
{
hb_retl( ( p )->isStored( hbqt_par_QObject( 2 ) ) );
}
}
/*
* bool isUser ( const QObject * object = 0 ) const
*/
HB_FUNC( QT_QMETAPROPERTY_ISUSER )
{
QMetaProperty * p = hbqt_par_QMetaProperty( 1 );
if( p )
{
hb_retl( ( p )->isUser( hbqt_par_QObject( 2 ) ) );
}
}
/*
* bool isValid () const
*/
HB_FUNC( QT_QMETAPROPERTY_ISVALID )
{
QMetaProperty * p = hbqt_par_QMetaProperty( 1 );
if( p )
{
hb_retl( ( p )->isValid() );
}
}
/*
* bool isWritable () const
*/
HB_FUNC( QT_QMETAPROPERTY_ISWRITABLE )
{
QMetaProperty * p = hbqt_par_QMetaProperty( 1 );
if( p )
{
hb_retl( ( p )->isWritable() );
}
}
/*
* const char * name () const
*/
HB_FUNC( QT_QMETAPROPERTY_NAME )
{
QMetaProperty * p = hbqt_par_QMetaProperty( 1 );
if( p )
{
hb_retc( ( p )->name() );
}
}
/*
* QMetaMethod notifySignal () const
*/
HB_FUNC( QT_QMETAPROPERTY_NOTIFYSIGNAL )
{
QMetaProperty * p = hbqt_par_QMetaProperty( 1 );
if( p )
{
hb_retptrGC( hbqt_gcAllocate_QMetaMethod( new QMetaMethod( ( p )->notifySignal() ), true ) );
}
}
/*
* int notifySignalIndex () const
*/
HB_FUNC( QT_QMETAPROPERTY_NOTIFYSIGNALINDEX )
{
QMetaProperty * p = hbqt_par_QMetaProperty( 1 );
if( p )
{
hb_retni( ( p )->notifySignalIndex() );
}
}
/*
* QVariant read ( const QObject * object ) const
*/
HB_FUNC( QT_QMETAPROPERTY_READ )
{
QMetaProperty * p = hbqt_par_QMetaProperty( 1 );
if( p )
{
hb_retptrGC( hbqt_gcAllocate_QVariant( new QVariant( ( p )->read( hbqt_par_QObject( 2 ) ) ), true ) );
}
}
/*
* bool reset ( QObject * object ) const
*/
HB_FUNC( QT_QMETAPROPERTY_RESET )
{
QMetaProperty * p = hbqt_par_QMetaProperty( 1 );
if( p )
{
hb_retl( ( p )->reset( hbqt_par_QObject( 2 ) ) );
}
}
/*
* QVariant::Type type () const
*/
HB_FUNC( QT_QMETAPROPERTY_TYPE )
{
QMetaProperty * p = hbqt_par_QMetaProperty( 1 );
if( p )
{
hb_retni( ( QVariant::Type ) ( p )->type() );
}
}
/*
* const char * typeName () const
*/
HB_FUNC( QT_QMETAPROPERTY_TYPENAME )
{
QMetaProperty * p = hbqt_par_QMetaProperty( 1 );
if( p )
{
hb_retc( ( p )->typeName() );
}
}
/*
* int userType () const
*/
HB_FUNC( QT_QMETAPROPERTY_USERTYPE )
{
QMetaProperty * p = hbqt_par_QMetaProperty( 1 );
if( p )
{
hb_retni( ( p )->userType() );
}
}
/*
* bool write ( QObject * object, const QVariant & value ) const
*/
HB_FUNC( QT_QMETAPROPERTY_WRITE )
{
QMetaProperty * p = hbqt_par_QMetaProperty( 1 );
if( p )
{
hb_retl( ( p )->write( hbqt_par_QObject( 2 ), *hbqt_par_QVariant( 3 ) ) );
}
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -0,0 +1,221 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009-2010 Pritpal Bedi <bedipritpal@hotmail.com>
* www - http://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.
*
*/
/*----------------------------------------------------------------------*/
/* C R E D I T S */
/*----------------------------------------------------------------------*/
/*
* Marcos Antonio Gambeta
* for providing first ever prototype parsing methods. Though the current
* implementation is diametrically different then what he proposed, still
* current code shaped on those footsteps.
*
* Viktor Szakats
* for directing the project with futuristic vision;
* for designing and maintaining a complex build system for hbQT, hbIDE;
* for introducing many constructs on PRG and C++ levels;
* for streamlining signal/slots and events management classes;
*
* Istvan Bisz
* for introducing QPointer<> concept in the generator;
* for testing the library on numerous accounts;
* for showing a way how a GC pointer can be detached;
*
* Francesco Perillo
* for taking keen interest in hbQT development and peeking the code;
* for providing tips here and there to improve the code quality;
* for hitting bulls eye to describe why few objects need GC detachment;
*
* Carlos Bacco
* for implementing HBQT_TYPE_Q*Class enums;
* for peeking into the code and suggesting optimization points;
*
* Przemyslaw Czerpak
* for providing tips and trick to manipulate HVM internals to the best
* of its use and always showing a path when we get stuck;
* A true tradition of a MASTER...
*/
/*----------------------------------------------------------------------*/
#include "hbqtcore.h"
/*----------------------------------------------------------------------*/
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
/*
* enum Type { Void, Bool, Int, UInt, ..., User }
*/
/*
* Constructed[ 4/4 [ 100.00% ] ]
*
*
* *** Commented out protostypes ***
*
* //void * construct ( int type, const void * copy = 0 )
* //void destroy ( int type, void * data )
* //bool load ( QDataStream & stream, int type, void * data )
* //bool save ( QDataStream & stream, int type, const void * data )
*/
#include <QtCore/QPointer>
#include <QtCore/QMetaType>
/*
*
*
*/
typedef struct
{
QMetaType * ph;
bool bNew;
PHBQT_GC_FUNC func;
int type;
} HBQT_GC_T_QMetaType;
HBQT_GC_FUNC( hbqt_gcRelease_QMetaType )
{
HB_SYMBOL_UNUSED( Cargo );
HBQT_GC_T * p = ( HBQT_GC_T * ) Cargo;
if( p && p->bNew )
{
p->ph = NULL;
}
}
void * hbqt_gcAllocate_QMetaType( void * pObj, bool bNew )
{
HBQT_GC_T * p = ( HBQT_GC_T * ) hb_gcAllocate( sizeof( HBQT_GC_T ), hbqt_gcFuncs() );
p->ph = ( QMetaType * ) pObj;
p->bNew = bNew;
p->func = hbqt_gcRelease_QMetaType;
p->type = HBQT_TYPE_QMetaType;
if( bNew )
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QMetaType", pObj ) );
}
else
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QMetaType", pObj ) );
}
return p;
}
HB_FUNC( QT_QMETATYPE )
{
// hb_retptr( new QMetaType() );
}
/*
* bool isRegistered ( int type )
*/
HB_FUNC( QT_QMETATYPE_ISREGISTERED )
{
QMetaType * p = hbqt_par_QMetaType( 1 );
if( p )
{
hb_retl( ( p )->isRegistered( hb_parni( 2 ) ) );
}
}
/*
* int type ( const char * typeName )
*/
HB_FUNC( QT_QMETATYPE_TYPE )
{
QMetaType * p = hbqt_par_QMetaType( 1 );
if( p )
{
hb_retni( ( p )->type( ( const char * ) hb_parc( 2 ) ) );
}
}
/*
* const char * typeName ( int type )
*/
HB_FUNC( QT_QMETATYPE_TYPENAME )
{
QMetaType * p = hbqt_par_QMetaType( 1 );
if( p )
{
hb_retc( ( p )->typeName( hb_parni( 2 ) ) );
}
}
/*
* void unregisterType ( const char * typeName )
*/
HB_FUNC( QT_QMETATYPE_UNREGISTERTYPE )
{
QMetaType * p = hbqt_par_QMetaType( 1 );
if( p )
{
( p )->unregisterType( ( const char * ) hb_parc( 2 ) );
}
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -103,7 +103,6 @@ CREATE CLASS HBQEvents INHERIT HbQtObjectHandler, HB_QObject FUNCTION HB_HBQEven
METHOD new( ... )
METHOD HBQEvents // ( ) -> oHBQEvents
METHOD hbConnect // ( xObj, nEvent, xBlock ) -> lBool
METHOD hbDisconnect // ( xObj, nEvent ) -> lBool
METHOD hbClear // ( ) -> lBool
@@ -120,19 +119,11 @@ METHOD HBQEvents:new( ... )
RETURN Self
METHOD HBQEvents:HBQEvents( ... )
SWITCH PCount()
CASE 0
RETURN HB_HBQEvents():from( Qt_HBQEvents_HBQEvents( ::pPtr, ... ) )
ENDSWITCH
RETURN hbqt_error()
METHOD HBQEvents:hbConnect( ... )
SWITCH PCount()
CASE 3
DO CASE
CASE ( hb_isBlock( hb_pvalue( 1 ) ) .OR. hb_isPointer( hb_pvalue( 1 ) ) ) .AND. hb_isNumeric( hb_pvalue( 2 ) ) .AND. ( hb_isBlock( hb_pvalue( 3 ) ) .OR. hb_isPointer( hb_pvalue( 3 ) ) )
CASE ( hb_pvalue( 1 ) != NIL ) .AND. hb_isNumeric( hb_pvalue( 2 ) ) .AND. ( hb_pvalue( 3 ) != NIL )
RETURN Qt_HBQEvents_hbConnect( ::pPtr, ... )
ENDCASE
EXIT
@@ -144,7 +135,7 @@ METHOD HBQEvents:hbDisconnect( ... )
SWITCH PCount()
CASE 2
DO CASE
CASE ( hb_isBlock( hb_pvalue( 1 ) ) .OR. hb_isPointer( hb_pvalue( 1 ) ) ) .AND. hb_isNumeric( hb_pvalue( 2 ) )
CASE ( hb_pvalue( 1 ) != NIL ) .AND. hb_isNumeric( hb_pvalue( 2 ) )
RETURN Qt_HBQEvents_hbDisconnect( ::pPtr, ... )
ENDCASE
EXIT

View File

@@ -103,7 +103,6 @@ CREATE CLASS HBQSlots INHERIT HbQtObjectHandler, HB_QObject FUNCTION HB_HBQSlots
METHOD new( ... )
METHOD HBQSlots // ( ) -> oHBQSlots
METHOD hbConnect // ( xPObj, cSlot, xBBlock ) -> lBool
METHOD hbDisconnect // ( xObj, cSlot ) -> lBool
METHOD hbIsConnected // ( xObj, cSlot ) -> lBool
@@ -121,19 +120,11 @@ METHOD HBQSlots:new( ... )
RETURN Self
METHOD HBQSlots:HBQSlots( ... )
SWITCH PCount()
CASE 0
RETURN HB_HBQSlots():from( Qt_HBQSlots_HBQSlots( ::pPtr, ... ) )
ENDSWITCH
RETURN hbqt_error()
METHOD HBQSlots:hbConnect( ... )
SWITCH PCount()
CASE 3
DO CASE
CASE ( hb_isBlock( hb_pvalue( 1 ) ) .OR. hb_isPointer( hb_pvalue( 1 ) ) ) .AND. hb_isChar( hb_pvalue( 2 ) ) .AND. ( hb_isBlock( hb_pvalue( 3 ) ) .OR. hb_isPointer( hb_pvalue( 3 ) ) )
CASE ( hb_pvalue( 1 ) != NIL ) .AND. hb_isChar( hb_pvalue( 2 ) ) .AND. ( hb_pvalue( 3 ) != NIL )
RETURN Qt_HBQSlots_hbConnect( ::pPtr, ... )
ENDCASE
EXIT
@@ -145,7 +136,7 @@ METHOD HBQSlots:hbDisconnect( ... )
SWITCH PCount()
CASE 2
DO CASE
CASE ( hb_isBlock( hb_pvalue( 1 ) ) .OR. hb_isPointer( hb_pvalue( 1 ) ) ) .AND. hb_isChar( hb_pvalue( 2 ) )
CASE ( hb_pvalue( 1 ) != NIL ) .AND. hb_isChar( hb_pvalue( 2 ) )
RETURN Qt_HBQSlots_hbDisconnect( ::pPtr, ... )
ENDCASE
EXIT
@@ -157,7 +148,7 @@ METHOD HBQSlots:hbIsConnected( ... )
SWITCH PCount()
CASE 2
DO CASE
CASE ( hb_isBlock( hb_pvalue( 1 ) ) .OR. hb_isPointer( hb_pvalue( 1 ) ) ) .AND. hb_isChar( hb_pvalue( 2 ) )
CASE ( hb_pvalue( 1 ) != NIL ) .AND. hb_isChar( hb_pvalue( 2 ) )
RETURN Qt_HBQSlots_hbIsConnected( ::pPtr, ... )
ENDCASE
EXIT

View File

@@ -103,14 +103,6 @@ CREATE CLASS HBQString INHERIT HbQtObjectHandler FUNCTION HB_HBQString
METHOD new( ... )
METHOD HBQString // ( ) -> oHBQString
METHOD HBQString_1 // ( oQChar, nSize ) -> oHBQString
METHOD HBQString_2 // ( oQChar ) -> oHBQString
METHOD HBQString_3 // ( nSize, oQChar ) -> oHBQString
METHOD HBQString_4 // ( oQLatin1String ) -> oHBQString
METHOD HBQString_5 // ( cOther ) -> oHBQString
METHOD HBQString_6 // ( cStr ) -> oHBQString
METHOD HBQString_7 // ( oQByteArray ) -> oHBQString
METHOD append // ( cStr ) -> cQString
METHOD append_1 // ( oQStringRef ) -> cQString
METHOD append_2 // ( oQLatin1String ) -> cQString
@@ -291,38 +283,6 @@ METHOD HBQString:new( ... )
RETURN Self
METHOD HBQString:HBQString( ... )
RETURN HB_HBQString():from( Qt_HBQString_HBQString( ::pPtr, ... ) )
METHOD HBQString:HBQString_1( ... )
RETURN HB_HBQString():from( Qt_HBQString_HBQString_1( ::pPtr, ... ) )
METHOD HBQString:HBQString_2( ... )
RETURN HB_HBQString():from( Qt_HBQString_HBQString_2( ::pPtr, ... ) )
METHOD HBQString:HBQString_3( ... )
RETURN HB_HBQString():from( Qt_HBQString_HBQString_3( ::pPtr, ... ) )
METHOD HBQString:HBQString_4( ... )
RETURN HB_HBQString():from( Qt_HBQString_HBQString_4( ::pPtr, ... ) )
METHOD HBQString:HBQString_5( ... )
RETURN HB_HBQString():from( Qt_HBQString_HBQString_5( ::pPtr, ... ) )
METHOD HBQString:HBQString_6( ... )
RETURN HB_HBQString():from( Qt_HBQString_HBQString_6( ::pPtr, ... ) )
METHOD HBQString:HBQString_7( ... )
RETURN HB_HBQString():from( Qt_HBQString_HBQString_7( ::pPtr, ... ) )
METHOD HBQString:append( ... )
RETURN Qt_HBQString_append( ::pPtr, ... )

View File

@@ -0,0 +1,156 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009-2010 Pritpal Bedi <bedipritpal@hotmail.com>
* www - http://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.
*
*/
/*----------------------------------------------------------------------*/
/* C R E D I T S */
/*----------------------------------------------------------------------*/
/*
* Marcos Antonio Gambeta
* for providing first ever prototype parsing methods. Though the current
* implementation is diametrically different then what he proposed, still
* current code shaped on those footsteps.
*
* Viktor Szakats
* for directing the project with futuristic vision;
* for designing and maintaining a complex build system for hbQT, hbIDE;
* for introducing many constructs on PRG and C++ levels;
* for streamlining signal/slots and events management classes;
*
* Istvan Bisz
* for introducing QPointer<> concept in the generator;
* for testing the library on numerous accounts;
* for showing a way how a GC pointer can be detached;
*
* Francesco Perillo
* for taking keen interest in hbQT development and peeking the code;
* for providing tips here and there to improve the code quality;
* for hitting bulls eye to describe why few objects need GC detachment;
*
* Carlos Bacco
* for implementing HBQT_TYPE_Q*Class enums;
* for peeking into the code and suggesting optimization points;
*
* Przemyslaw Czerpak
* for providing tips and trick to manipulate HVM internals to the best
* of its use and always showing a path when we get stuck;
* A true tradition of a MASTER...
*/
/*----------------------------------------------------------------------*/
#include "hbclass.ch"
FUNCTION QGenericArgument( ... )
RETURN HB_QGenericArgument():new( ... )
CREATE CLASS QGenericArgument INHERIT HbQtObjectHandler FUNCTION HB_QGenericArgument
METHOD new( ... )
METHOD QGenericArgument // ( cName, ovoid ) -> oQGenericArgument
METHOD data // ( ) -> NIL
METHOD name // ( ) -> cChar
ENDCLASS
METHOD QGenericArgument:new( ... )
LOCAL p
FOR EACH p IN { ... }
hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) )
NEXT
::pPtr := Qt_QGenericArgument( ... )
RETURN Self
METHOD QGenericArgument:QGenericArgument( ... )
SWITCH PCount()
CASE 2
DO CASE
CASE hb_isChar( hb_pvalue( 1 ) ) .AND. hb_isObject( hb_pvalue( 2 ) )
RETURN HB_QGenericArgument():from( Qt_QGenericArgument_QGenericArgument( ::pPtr, ... ) )
ENDCASE
EXIT
CASE 1
DO CASE
CASE hb_isChar( hb_pvalue( 1 ) )
RETURN HB_QGenericArgument():from( Qt_QGenericArgument_QGenericArgument( ::pPtr, ... ) )
ENDCASE
EXIT
CASE 0
RETURN HB_QGenericArgument():from( Qt_QGenericArgument_QGenericArgument( ::pPtr, ... ) )
ENDSWITCH
RETURN hbqt_error()
METHOD QGenericArgument:data( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QGenericArgument_data( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QGenericArgument:name( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QGenericArgument_name( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()

View File

@@ -0,0 +1,117 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009-2010 Pritpal Bedi <bedipritpal@hotmail.com>
* www - http://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.
*
*/
/*----------------------------------------------------------------------*/
/* C R E D I T S */
/*----------------------------------------------------------------------*/
/*
* Marcos Antonio Gambeta
* for providing first ever prototype parsing methods. Though the current
* implementation is diametrically different then what he proposed, still
* current code shaped on those footsteps.
*
* Viktor Szakats
* for directing the project with futuristic vision;
* for designing and maintaining a complex build system for hbQT, hbIDE;
* for introducing many constructs on PRG and C++ levels;
* for streamlining signal/slots and events management classes;
*
* Istvan Bisz
* for introducing QPointer<> concept in the generator;
* for testing the library on numerous accounts;
* for showing a way how a GC pointer can be detached;
*
* Francesco Perillo
* for taking keen interest in hbQT development and peeking the code;
* for providing tips here and there to improve the code quality;
* for hitting bulls eye to describe why few objects need GC detachment;
*
* Carlos Bacco
* for implementing HBQT_TYPE_Q*Class enums;
* for peeking into the code and suggesting optimization points;
*
* Przemyslaw Czerpak
* for providing tips and trick to manipulate HVM internals to the best
* of its use and always showing a path when we get stuck;
* A true tradition of a MASTER...
*/
/*----------------------------------------------------------------------*/
#include "hbclass.ch"
FUNCTION QGenericReturnArgument( ... )
RETURN HB_QGenericReturnArgument():new( ... )
CREATE CLASS QGenericReturnArgument INHERIT HbQtObjectHandler, HB_QGenericArgument FUNCTION HB_QGenericReturnArgument
METHOD new( ... )
ENDCLASS
METHOD QGenericReturnArgument:new( ... )
LOCAL p
FOR EACH p IN { ... }
hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) )
NEXT
::pPtr := Qt_QGenericReturnArgument( ... )
RETURN Self

View File

@@ -0,0 +1,135 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009-2010 Pritpal Bedi <bedipritpal@hotmail.com>
* www - http://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.
*
*/
/*----------------------------------------------------------------------*/
/* C R E D I T S */
/*----------------------------------------------------------------------*/
/*
* Marcos Antonio Gambeta
* for providing first ever prototype parsing methods. Though the current
* implementation is diametrically different then what he proposed, still
* current code shaped on those footsteps.
*
* Viktor Szakats
* for directing the project with futuristic vision;
* for designing and maintaining a complex build system for hbQT, hbIDE;
* for introducing many constructs on PRG and C++ levels;
* for streamlining signal/slots and events management classes;
*
* Istvan Bisz
* for introducing QPointer<> concept in the generator;
* for testing the library on numerous accounts;
* for showing a way how a GC pointer can be detached;
*
* Francesco Perillo
* for taking keen interest in hbQT development and peeking the code;
* for providing tips here and there to improve the code quality;
* for hitting bulls eye to describe why few objects need GC detachment;
*
* Carlos Bacco
* for implementing HBQT_TYPE_Q*Class enums;
* for peeking into the code and suggesting optimization points;
*
* Przemyslaw Czerpak
* for providing tips and trick to manipulate HVM internals to the best
* of its use and always showing a path when we get stuck;
* A true tradition of a MASTER...
*/
/*----------------------------------------------------------------------*/
#include "hbclass.ch"
FUNCTION QMetaClassInfo( ... )
RETURN HB_QMetaClassInfo():new( ... )
CREATE CLASS QMetaClassInfo INHERIT HbQtObjectHandler FUNCTION HB_QMetaClassInfo
METHOD new( ... )
METHOD name // ( ) -> cChar
METHOD value // ( ) -> cChar
ENDCLASS
METHOD QMetaClassInfo:new( ... )
LOCAL p
FOR EACH p IN { ... }
hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) )
NEXT
::pPtr := Qt_QMetaClassInfo( ... )
RETURN Self
METHOD QMetaClassInfo:name( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaClassInfo_name( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaClassInfo:value( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaClassInfo_value( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()

View File

@@ -0,0 +1,240 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009-2010 Pritpal Bedi <bedipritpal@hotmail.com>
* www - http://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.
*
*/
/*----------------------------------------------------------------------*/
/* C R E D I T S */
/*----------------------------------------------------------------------*/
/*
* Marcos Antonio Gambeta
* for providing first ever prototype parsing methods. Though the current
* implementation is diametrically different then what he proposed, still
* current code shaped on those footsteps.
*
* Viktor Szakats
* for directing the project with futuristic vision;
* for designing and maintaining a complex build system for hbQT, hbIDE;
* for introducing many constructs on PRG and C++ levels;
* for streamlining signal/slots and events management classes;
*
* Istvan Bisz
* for introducing QPointer<> concept in the generator;
* for testing the library on numerous accounts;
* for showing a way how a GC pointer can be detached;
*
* Francesco Perillo
* for taking keen interest in hbQT development and peeking the code;
* for providing tips here and there to improve the code quality;
* for hitting bulls eye to describe why few objects need GC detachment;
*
* Carlos Bacco
* for implementing HBQT_TYPE_Q*Class enums;
* for peeking into the code and suggesting optimization points;
*
* Przemyslaw Czerpak
* for providing tips and trick to manipulate HVM internals to the best
* of its use and always showing a path when we get stuck;
* A true tradition of a MASTER...
*/
/*----------------------------------------------------------------------*/
#include "hbclass.ch"
FUNCTION QMetaEnum( ... )
RETURN HB_QMetaEnum():new( ... )
CREATE CLASS QMetaEnum INHERIT HbQtObjectHandler FUNCTION HB_QMetaEnum
METHOD new( ... )
METHOD isFlag // ( ) -> lBool
METHOD isValid // ( ) -> lBool
METHOD key // ( nIndex ) -> cChar
METHOD keyCount // ( ) -> nInt
METHOD keyToValue // ( cKey ) -> nInt
METHOD keysToValue // ( cKeys ) -> nInt
METHOD name // ( ) -> cChar
METHOD scope // ( ) -> cChar
METHOD value // ( nIndex ) -> nInt
METHOD valueToKey // ( nValue ) -> cChar
METHOD valueToKeys // ( nValue ) -> oQByteArray
ENDCLASS
METHOD QMetaEnum:new( ... )
LOCAL p
FOR EACH p IN { ... }
hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) )
NEXT
::pPtr := Qt_QMetaEnum( ... )
RETURN Self
METHOD QMetaEnum:isFlag( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaEnum_isFlag( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaEnum:isValid( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaEnum_isValid( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaEnum:key( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isNumeric( hb_pvalue( 1 ) )
RETURN Qt_QMetaEnum_key( ::pPtr, ... )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaEnum:keyCount( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaEnum_keyCount( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaEnum:keyToValue( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isChar( hb_pvalue( 1 ) )
RETURN Qt_QMetaEnum_keyToValue( ::pPtr, ... )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaEnum:keysToValue( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isChar( hb_pvalue( 1 ) )
RETURN Qt_QMetaEnum_keysToValue( ::pPtr, ... )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaEnum:name( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaEnum_name( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaEnum:scope( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaEnum_scope( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaEnum:value( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isNumeric( hb_pvalue( 1 ) )
RETURN Qt_QMetaEnum_value( ::pPtr, ... )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaEnum:valueToKey( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isNumeric( hb_pvalue( 1 ) )
RETURN Qt_QMetaEnum_valueToKey( ::pPtr, ... )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaEnum:valueToKeys( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isNumeric( hb_pvalue( 1 ) )
RETURN HB_QByteArray():from( Qt_QMetaEnum_valueToKeys( ::pPtr, ... ) )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()

View File

@@ -0,0 +1,180 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009-2010 Pritpal Bedi <bedipritpal@hotmail.com>
* www - http://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.
*
*/
/*----------------------------------------------------------------------*/
/* C R E D I T S */
/*----------------------------------------------------------------------*/
/*
* Marcos Antonio Gambeta
* for providing first ever prototype parsing methods. Though the current
* implementation is diametrically different then what he proposed, still
* current code shaped on those footsteps.
*
* Viktor Szakats
* for directing the project with futuristic vision;
* for designing and maintaining a complex build system for hbQT, hbIDE;
* for introducing many constructs on PRG and C++ levels;
* for streamlining signal/slots and events management classes;
*
* Istvan Bisz
* for introducing QPointer<> concept in the generator;
* for testing the library on numerous accounts;
* for showing a way how a GC pointer can be detached;
*
* Francesco Perillo
* for taking keen interest in hbQT development and peeking the code;
* for providing tips here and there to improve the code quality;
* for hitting bulls eye to describe why few objects need GC detachment;
*
* Carlos Bacco
* for implementing HBQT_TYPE_Q*Class enums;
* for peeking into the code and suggesting optimization points;
*
* Przemyslaw Czerpak
* for providing tips and trick to manipulate HVM internals to the best
* of its use and always showing a path when we get stuck;
* A true tradition of a MASTER...
*/
/*----------------------------------------------------------------------*/
#include "hbclass.ch"
FUNCTION QMetaMethod( ... )
RETURN HB_QMetaMethod():new( ... )
CREATE CLASS QMetaMethod INHERIT HbQtObjectHandler FUNCTION HB_QMetaMethod
METHOD new( ... )
METHOD access // ( ) -> nAccess
METHOD methodType // ( ) -> nMethodType
METHOD parameterNames // ( ) -> oQList_QByteArray>
METHOD parameterTypes // ( ) -> oQList_QByteArray>
METHOD signature // ( ) -> cChar
METHOD tag // ( ) -> cChar
METHOD typeName // ( ) -> cChar
ENDCLASS
METHOD QMetaMethod:new( ... )
LOCAL p
FOR EACH p IN { ... }
hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) )
NEXT
::pPtr := Qt_QMetaMethod( ... )
RETURN Self
METHOD QMetaMethod:access( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaMethod_access( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaMethod:methodType( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaMethod_methodType( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaMethod:parameterNames( ... )
SWITCH PCount()
CASE 0
RETURN HB_QList():from( Qt_QMetaMethod_parameterNames( ::pPtr, ... ) )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaMethod:parameterTypes( ... )
SWITCH PCount()
CASE 0
RETURN HB_QList():from( Qt_QMetaMethod_parameterTypes( ::pPtr, ... ) )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaMethod:signature( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaMethod_signature( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaMethod:tag( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaMethod_tag( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaMethod:typeName( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaMethod_typeName( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()

View File

@@ -0,0 +1,433 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009-2010 Pritpal Bedi <bedipritpal@hotmail.com>
* www - http://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.
*
*/
/*----------------------------------------------------------------------*/
/* C R E D I T S */
/*----------------------------------------------------------------------*/
/*
* Marcos Antonio Gambeta
* for providing first ever prototype parsing methods. Though the current
* implementation is diametrically different then what he proposed, still
* current code shaped on those footsteps.
*
* Viktor Szakats
* for directing the project with futuristic vision;
* for designing and maintaining a complex build system for hbQT, hbIDE;
* for introducing many constructs on PRG and C++ levels;
* for streamlining signal/slots and events management classes;
*
* Istvan Bisz
* for introducing QPointer<> concept in the generator;
* for testing the library on numerous accounts;
* for showing a way how a GC pointer can be detached;
*
* Francesco Perillo
* for taking keen interest in hbQT development and peeking the code;
* for providing tips here and there to improve the code quality;
* for hitting bulls eye to describe why few objects need GC detachment;
*
* Carlos Bacco
* for implementing HBQT_TYPE_Q*Class enums;
* for peeking into the code and suggesting optimization points;
*
* Przemyslaw Czerpak
* for providing tips and trick to manipulate HVM internals to the best
* of its use and always showing a path when we get stuck;
* A true tradition of a MASTER...
*/
/*----------------------------------------------------------------------*/
#include "hbclass.ch"
FUNCTION QMetaObject( ... )
RETURN HB_QMetaObject():new( ... )
CREATE CLASS QMetaObject INHERIT HbQtObjectHandler FUNCTION HB_QMetaObject
METHOD new( ... )
METHOD classInfo // ( nIndex ) -> oQMetaClassInfo
METHOD classInfoCount // ( ) -> nInt
METHOD classInfoOffset // ( ) -> nInt
METHOD className // ( ) -> cChar
METHOD constructor // ( nIndex ) -> oQMetaMethod
METHOD constructorCount // ( ) -> nInt
METHOD enumerator // ( nIndex ) -> oQMetaEnum
METHOD enumeratorCount // ( ) -> nInt
METHOD enumeratorOffset // ( ) -> nInt
METHOD indexOfClassInfo // ( cName ) -> nInt
METHOD indexOfConstructor // ( cConstructor ) -> nInt
METHOD indexOfEnumerator // ( cName ) -> nInt
METHOD indexOfMethod // ( cMethod ) -> nInt
METHOD indexOfProperty // ( cName ) -> nInt
METHOD indexOfSignal // ( cSignal ) -> nInt
METHOD indexOfSlot // ( cSlot ) -> nInt
METHOD method // ( nIndex ) -> oQMetaMethod
METHOD methodCount // ( ) -> nInt
METHOD methodOffset // ( ) -> nInt
METHOD property // ( nIndex ) -> oQMetaProperty
METHOD propertyCount // ( ) -> nInt
METHOD propertyOffset // ( ) -> nInt
METHOD superClass // ( ) -> oQMetaObject
METHOD userProperty // ( ) -> oQMetaProperty
METHOD checkConnectArgs // ( cSignal, cMethod ) -> lBool
METHOD connectSlotsByName // ( oQObject ) -> NIL
METHOD normalizedSignature // ( cMethod ) -> oQByteArray
METHOD normalizedType // ( cType ) -> oQByteArray
ENDCLASS
METHOD QMetaObject:new( ... )
LOCAL p
FOR EACH p IN { ... }
hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) )
NEXT
::pPtr := Qt_QMetaObject( ... )
RETURN Self
METHOD QMetaObject:classInfo( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isNumeric( hb_pvalue( 1 ) )
RETURN HB_QMetaClassInfo():from( Qt_QMetaObject_classInfo( ::pPtr, ... ) )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:classInfoCount( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaObject_classInfoCount( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:classInfoOffset( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaObject_classInfoOffset( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:className( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaObject_className( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:constructor( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isNumeric( hb_pvalue( 1 ) )
RETURN HB_QMetaMethod():from( Qt_QMetaObject_constructor( ::pPtr, ... ) )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:constructorCount( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaObject_constructorCount( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:enumerator( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isNumeric( hb_pvalue( 1 ) )
RETURN HB_QMetaEnum():from( Qt_QMetaObject_enumerator( ::pPtr, ... ) )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:enumeratorCount( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaObject_enumeratorCount( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:enumeratorOffset( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaObject_enumeratorOffset( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:indexOfClassInfo( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isChar( hb_pvalue( 1 ) )
RETURN Qt_QMetaObject_indexOfClassInfo( ::pPtr, ... )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:indexOfConstructor( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isChar( hb_pvalue( 1 ) )
RETURN Qt_QMetaObject_indexOfConstructor( ::pPtr, ... )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:indexOfEnumerator( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isChar( hb_pvalue( 1 ) )
RETURN Qt_QMetaObject_indexOfEnumerator( ::pPtr, ... )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:indexOfMethod( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isChar( hb_pvalue( 1 ) )
RETURN Qt_QMetaObject_indexOfMethod( ::pPtr, ... )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:indexOfProperty( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isChar( hb_pvalue( 1 ) )
RETURN Qt_QMetaObject_indexOfProperty( ::pPtr, ... )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:indexOfSignal( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isChar( hb_pvalue( 1 ) )
RETURN Qt_QMetaObject_indexOfSignal( ::pPtr, ... )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:indexOfSlot( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isChar( hb_pvalue( 1 ) )
RETURN Qt_QMetaObject_indexOfSlot( ::pPtr, ... )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:method( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isNumeric( hb_pvalue( 1 ) )
RETURN HB_QMetaMethod():from( Qt_QMetaObject_method( ::pPtr, ... ) )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:methodCount( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaObject_methodCount( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:methodOffset( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaObject_methodOffset( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:property( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isNumeric( hb_pvalue( 1 ) )
RETURN HB_QMetaProperty():from( Qt_QMetaObject_property( ::pPtr, ... ) )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:propertyCount( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaObject_propertyCount( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:propertyOffset( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaObject_propertyOffset( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:superClass( ... )
SWITCH PCount()
CASE 0
RETURN HB_QMetaObject():from( Qt_QMetaObject_superClass( ::pPtr, ... ) )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:userProperty( ... )
SWITCH PCount()
CASE 0
RETURN HB_QMetaProperty():from( Qt_QMetaObject_userProperty( ::pPtr, ... ) )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:checkConnectArgs( ... )
SWITCH PCount()
CASE 2
DO CASE
CASE hb_isChar( hb_pvalue( 1 ) ) .AND. hb_isChar( hb_pvalue( 2 ) )
RETURN Qt_QMetaObject_checkConnectArgs( ::pPtr, ... )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:connectSlotsByName( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isObject( hb_pvalue( 1 ) )
RETURN Qt_QMetaObject_connectSlotsByName( ::pPtr, ... )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:normalizedSignature( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isChar( hb_pvalue( 1 ) )
RETURN HB_QByteArray():from( Qt_QMetaObject_normalizedSignature( ::pPtr, ... ) )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaObject:normalizedType( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isChar( hb_pvalue( 1 ) )
RETURN HB_QByteArray():from( Qt_QMetaObject_normalizedType( ::pPtr, ... ) )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()

View File

@@ -0,0 +1,342 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009-2010 Pritpal Bedi <bedipritpal@hotmail.com>
* www - http://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.
*
*/
/*----------------------------------------------------------------------*/
/* C R E D I T S */
/*----------------------------------------------------------------------*/
/*
* Marcos Antonio Gambeta
* for providing first ever prototype parsing methods. Though the current
* implementation is diametrically different then what he proposed, still
* current code shaped on those footsteps.
*
* Viktor Szakats
* for directing the project with futuristic vision;
* for designing and maintaining a complex build system for hbQT, hbIDE;
* for introducing many constructs on PRG and C++ levels;
* for streamlining signal/slots and events management classes;
*
* Istvan Bisz
* for introducing QPointer<> concept in the generator;
* for testing the library on numerous accounts;
* for showing a way how a GC pointer can be detached;
*
* Francesco Perillo
* for taking keen interest in hbQT development and peeking the code;
* for providing tips here and there to improve the code quality;
* for hitting bulls eye to describe why few objects need GC detachment;
*
* Carlos Bacco
* for implementing HBQT_TYPE_Q*Class enums;
* for peeking into the code and suggesting optimization points;
*
* Przemyslaw Czerpak
* for providing tips and trick to manipulate HVM internals to the best
* of its use and always showing a path when we get stuck;
* A true tradition of a MASTER...
*/
/*----------------------------------------------------------------------*/
#include "hbclass.ch"
FUNCTION QMetaProperty( ... )
RETURN HB_QMetaProperty():new( ... )
CREATE CLASS QMetaProperty INHERIT HbQtObjectHandler FUNCTION HB_QMetaProperty
METHOD new( ... )
METHOD enumerator // ( ) -> oQMetaEnum
METHOD hasNotifySignal // ( ) -> lBool
METHOD isDesignable // ( oQObject ) -> lBool
METHOD isEnumType // ( ) -> lBool
METHOD isFlagType // ( ) -> lBool
METHOD isReadable // ( ) -> lBool
METHOD isResettable // ( ) -> lBool
METHOD isScriptable // ( oQObject ) -> lBool
METHOD isStored // ( oQObject ) -> lBool
METHOD isUser // ( oQObject ) -> lBool
METHOD isValid // ( ) -> lBool
METHOD isWritable // ( ) -> lBool
METHOD name // ( ) -> cChar
METHOD notifySignal // ( ) -> oQMetaMethod
METHOD notifySignalIndex // ( ) -> nInt
METHOD read // ( oQObject ) -> oQVariant
METHOD reset // ( oQObject ) -> lBool
METHOD type // ( ) -> nQVariant_Type
METHOD typeName // ( ) -> cChar
METHOD userType // ( ) -> nInt
METHOD write // ( oQObject, oQVariant ) -> lBool
ENDCLASS
METHOD QMetaProperty:new( ... )
LOCAL p
FOR EACH p IN { ... }
hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) )
NEXT
::pPtr := Qt_QMetaProperty( ... )
RETURN Self
METHOD QMetaProperty:enumerator( ... )
SWITCH PCount()
CASE 0
RETURN HB_QMetaEnum():from( Qt_QMetaProperty_enumerator( ::pPtr, ... ) )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaProperty:hasNotifySignal( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaProperty_hasNotifySignal( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaProperty:isDesignable( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isObject( hb_pvalue( 1 ) )
RETURN Qt_QMetaProperty_isDesignable( ::pPtr, ... )
ENDCASE
EXIT
CASE 0
RETURN Qt_QMetaProperty_isDesignable( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaProperty:isEnumType( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaProperty_isEnumType( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaProperty:isFlagType( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaProperty_isFlagType( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaProperty:isReadable( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaProperty_isReadable( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaProperty:isResettable( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaProperty_isResettable( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaProperty:isScriptable( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isObject( hb_pvalue( 1 ) )
RETURN Qt_QMetaProperty_isScriptable( ::pPtr, ... )
ENDCASE
EXIT
CASE 0
RETURN Qt_QMetaProperty_isScriptable( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaProperty:isStored( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isObject( hb_pvalue( 1 ) )
RETURN Qt_QMetaProperty_isStored( ::pPtr, ... )
ENDCASE
EXIT
CASE 0
RETURN Qt_QMetaProperty_isStored( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaProperty:isUser( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isObject( hb_pvalue( 1 ) )
RETURN Qt_QMetaProperty_isUser( ::pPtr, ... )
ENDCASE
EXIT
CASE 0
RETURN Qt_QMetaProperty_isUser( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaProperty:isValid( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaProperty_isValid( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaProperty:isWritable( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaProperty_isWritable( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaProperty:name( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaProperty_name( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaProperty:notifySignal( ... )
SWITCH PCount()
CASE 0
RETURN HB_QMetaMethod():from( Qt_QMetaProperty_notifySignal( ::pPtr, ... ) )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaProperty:notifySignalIndex( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaProperty_notifySignalIndex( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaProperty:read( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isObject( hb_pvalue( 1 ) )
RETURN HB_QVariant():from( Qt_QMetaProperty_read( ::pPtr, ... ) )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaProperty:reset( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isObject( hb_pvalue( 1 ) )
RETURN Qt_QMetaProperty_reset( ::pPtr, ... )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaProperty:type( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaProperty_type( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaProperty:typeName( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaProperty_typeName( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaProperty:userType( ... )
SWITCH PCount()
CASE 0
RETURN Qt_QMetaProperty_userType( ::pPtr, ... )
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaProperty:write( ... )
SWITCH PCount()
CASE 2
DO CASE
CASE hb_isObject( hb_pvalue( 1 ) ) .AND. hb_isObject( hb_pvalue( 2 ) )
RETURN Qt_QMetaProperty_write( ::pPtr, ... )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()

View File

@@ -0,0 +1,169 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009-2010 Pritpal Bedi <bedipritpal@hotmail.com>
* www - http://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.
*
*/
/*----------------------------------------------------------------------*/
/* C R E D I T S */
/*----------------------------------------------------------------------*/
/*
* Marcos Antonio Gambeta
* for providing first ever prototype parsing methods. Though the current
* implementation is diametrically different then what he proposed, still
* current code shaped on those footsteps.
*
* Viktor Szakats
* for directing the project with futuristic vision;
* for designing and maintaining a complex build system for hbQT, hbIDE;
* for introducing many constructs on PRG and C++ levels;
* for streamlining signal/slots and events management classes;
*
* Istvan Bisz
* for introducing QPointer<> concept in the generator;
* for testing the library on numerous accounts;
* for showing a way how a GC pointer can be detached;
*
* Francesco Perillo
* for taking keen interest in hbQT development and peeking the code;
* for providing tips here and there to improve the code quality;
* for hitting bulls eye to describe why few objects need GC detachment;
*
* Carlos Bacco
* for implementing HBQT_TYPE_Q*Class enums;
* for peeking into the code and suggesting optimization points;
*
* Przemyslaw Czerpak
* for providing tips and trick to manipulate HVM internals to the best
* of its use and always showing a path when we get stuck;
* A true tradition of a MASTER...
*/
/*----------------------------------------------------------------------*/
#include "hbclass.ch"
FUNCTION QMetaType( ... )
RETURN HB_QMetaType():new( ... )
CREATE CLASS QMetaType INHERIT HbQtObjectHandler FUNCTION HB_QMetaType
METHOD new( ... )
METHOD isRegistered // ( nType ) -> lBool
METHOD type // ( cTypeName ) -> nInt
METHOD typeName // ( nType ) -> cChar
METHOD unregisterType // ( cTypeName ) -> NIL
ENDCLASS
METHOD QMetaType:new( ... )
LOCAL p
FOR EACH p IN { ... }
hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) )
NEXT
::pPtr := Qt_QMetaType( ... )
RETURN Self
METHOD QMetaType:isRegistered( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isNumeric( hb_pvalue( 1 ) )
RETURN Qt_QMetaType_isRegistered( ::pPtr, ... )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaType:type( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isChar( hb_pvalue( 1 ) )
RETURN Qt_QMetaType_type( ::pPtr, ... )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaType:typeName( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isNumeric( hb_pvalue( 1 ) )
RETURN Qt_QMetaType_typeName( ::pPtr, ... )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()
METHOD QMetaType:unregisterType( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE hb_isChar( hb_pvalue( 1 ) )
RETURN Qt_QMetaType_unregisterType( ::pPtr, ... )
ENDCASE
EXIT
ENDSWITCH
RETURN hbqt_error()

View File

@@ -103,13 +103,13 @@ static bool connect_signal( QString signal, QObject * object, HBQSlots * t_slots
/* QTreeWidget */
if( signal == ( QString ) "itemCollapsed(QTWItem)" ) return object->connect( object, SIGNAL( itemCollapsed( QTreeWidgetItem * ) ), t_slots, SLOT( itemCollapsed( QTreeWidgetItem * ) ), Qt::AutoConnection );
if( signal == ( QString ) "itemExpanded(QTWItem)" ) return object->connect( object, SIGNAL( itemExpanded( QTreeWidgetItem * ) ), t_slots, SLOT( itemExpanded( QTreeWidgetItem * ) ), Qt::AutoConnection );
if( signal == ( QString ) "currentItemChanged(QTWItem)" ) return object->connect( object, SIGNAL( currentItemChanged( QTreeWidgetItem *, QTreeWidgetItem * ) ), t_slots, SLOT( currentItemChanged( QTreeWidgetItem *, QTreeWidgetItem * ) ), Qt::AutoConnection );
if( signal == ( QString ) "itemActivated(QTWItem)" ) return object->connect( object, SIGNAL( itemActivated( QTreeWidgetItem *, int ) ), t_slots, SLOT( itemActivated( QTreeWidgetItem *, int ) ), Qt::AutoConnection );
if( signal == ( QString ) "itemChanged(QTWItem)" ) return object->connect( object, SIGNAL( itemChanged( QTreeWidgetItem *, int ) ), t_slots, SLOT( itemChanged( QTreeWidgetItem *, int ) ), Qt::AutoConnection );
if( signal == ( QString ) "itemClicked(QTWItem)" ) return object->connect( object, SIGNAL( itemClicked( QTreeWidgetItem *, int ) ), t_slots, SLOT( itemClicked( QTreeWidgetItem *, int ) ), Qt::AutoConnection );
if( signal == ( QString ) "itemDoubleClicked(QTWItem)" ) return object->connect( object, SIGNAL( itemDoubleClicked( QTreeWidgetItem *, int ) ), t_slots, SLOT( itemDoubleClicked( QTreeWidgetItem *, int ) ), Qt::AutoConnection );
if( signal == ( QString ) "itemEntered(QTWItem)" ) return object->connect( object, SIGNAL( itemEntered( QTreeWidgetItem *, int ) ), t_slots, SLOT( itemEntered( QTreeWidgetItem *, int ) ), Qt::AutoConnection );
if( signal == ( QString ) "itemPressed(QTWItem)" ) return object->connect( object, SIGNAL( itemPressed( QTreeWidgetItem *, int ) ), t_slots, SLOT( itemPressed( QTreeWidgetItem *, int ) ), Qt::AutoConnection );
if( signal == ( QString ) "currentItemChanged(QTWItem,QTWItem)" ) return object->connect( object, SIGNAL( currentItemChanged( QTreeWidgetItem *, QTreeWidgetItem * ) ), t_slots, SLOT( currentItemChanged( QTreeWidgetItem *, QTreeWidgetItem * ) ), Qt::AutoConnection );
if( signal == ( QString ) "itemActivated(QTWItem,int)" ) return object->connect( object, SIGNAL( itemActivated( QTreeWidgetItem *, int ) ), t_slots, SLOT( itemActivated( QTreeWidgetItem *, int ) ), Qt::AutoConnection );
if( signal == ( QString ) "itemChanged(QTWItem,int)" ) return object->connect( object, SIGNAL( itemChanged( QTreeWidgetItem *, int ) ), t_slots, SLOT( itemChanged( QTreeWidgetItem *, int ) ), Qt::AutoConnection );
if( signal == ( QString ) "itemClicked(QTWItem,int)" ) return object->connect( object, SIGNAL( itemClicked( QTreeWidgetItem *, int ) ), t_slots, SLOT( itemClicked( QTreeWidgetItem *, int ) ), Qt::AutoConnection );
if( signal == ( QString ) "itemDoubleClicked(QTWItem,int)" ) return object->connect( object, SIGNAL( itemDoubleClicked( QTreeWidgetItem *, int ) ), t_slots, SLOT( itemDoubleClicked( QTreeWidgetItem *, int ) ), Qt::AutoConnection );
if( signal == ( QString ) "itemEntered(QTWItem,int)" ) return object->connect( object, SIGNAL( itemEntered( QTreeWidgetItem *, int ) ), t_slots, SLOT( itemEntered( QTreeWidgetItem *, int ) ), Qt::AutoConnection );
if( signal == ( QString ) "itemPressed(QTWItem,int)" ) return object->connect( object, SIGNAL( itemPressed( QTreeWidgetItem *, int ) ), t_slots, SLOT( itemPressed( QTreeWidgetItem *, int ) ), Qt::AutoConnection );
if( signal == ( QString ) "itemSelectionChanged()" ) return object->connect( object, SIGNAL( itemSelectionChanged() ), t_slots, SLOT( itemSelectionChanged() ), Qt::AutoConnection );
/* QListWidget */
if( signal == ( QString ) "currentRowChanged(int)" ) return object->connect( object, SIGNAL( currentRowChanged( int ) ), t_slots, SLOT( currentRowChanged( int ) ), Qt::AutoConnection );
@@ -294,13 +294,13 @@ static bool disconnect_signal( QObject * object, const char * signal )
/* QTreeWidget */
if( signal == ( QString ) "itemExpanded(QTWItem)" ) return object->disconnect( SIGNAL( itemExpanded( QTreeWidgetItem * ) ) );
if( signal == ( QString ) "itemCollapsed(QTWItem)" ) return object->disconnect( SIGNAL( itemCollapsed( QTreeWidgetItem * ) ) );
if( signal == ( QString ) "currentItemChanged(QTWItem)" ) return object->disconnect( SIGNAL( currentItemChanged( QTreeWidgetItem *, QTreeWidgetItem * ) ) );
if( signal == ( QString ) "itemActivated(QTWItem)" ) return object->disconnect( SIGNAL( itemActivated( QTreeWidgetItem *, int ) ) );
if( signal == ( QString ) "itemChanged(QTWItem)" ) return object->disconnect( SIGNAL( itemChanged( QTreeWidgetItem *, int ) ) );
if( signal == ( QString ) "itemClicked(QTWItem)" ) return object->disconnect( SIGNAL( itemClicked( QTreeWidgetItem *, int ) ) );
if( signal == ( QString ) "itemDoubleClicked(QTWItem)" ) return object->disconnect( SIGNAL( itemDoubleClicked( QTreeWidgetItem *, int ) ) );
if( signal == ( QString ) "itemEntered(QTWItem)" ) return object->disconnect( SIGNAL( itemEntered( QTreeWidgetItem *, int ) ) );
if( signal == ( QString ) "itemPressed(QTWItem)" ) return object->disconnect( SIGNAL( itemPressed( QTreeWidgetItem *, int ) ) );
if( signal == ( QString ) "currentItemChanged(QTWItem,QTWItem)" ) return object->disconnect( SIGNAL( currentItemChanged( QTreeWidgetItem *, QTreeWidgetItem * ) ) );
if( signal == ( QString ) "itemActivated(QTWItem,int)" ) return object->disconnect( SIGNAL( itemActivated( QTreeWidgetItem *, int ) ) );
if( signal == ( QString ) "itemChanged(QTWItem,int)" ) return object->disconnect( SIGNAL( itemChanged( QTreeWidgetItem *, int ) ) );
if( signal == ( QString ) "itemClicked(QTWItem,int)" ) return object->disconnect( SIGNAL( itemClicked( QTreeWidgetItem *, int ) ) );
if( signal == ( QString ) "itemDoubleClicked(QTWItem,int)" ) return object->disconnect( SIGNAL( itemDoubleClicked( QTreeWidgetItem *, int ) ) );
if( signal == ( QString ) "itemEntered(QTWItem,int)" ) return object->disconnect( SIGNAL( itemEntered( QTreeWidgetItem *, int ) ) );
if( signal == ( QString ) "itemPressed(QTWItem,int)" ) return object->disconnect( SIGNAL( itemPressed( QTreeWidgetItem *, int ) ) );
if( signal == ( QString ) "itemSelectionChanged()" ) return object->disconnect( SIGNAL( itemSelectionChanged() ) );
/* QTableWidget */
if( signal == ( QString ) "cellActivated(int,in)" ) return object->disconnect( SIGNAL( cellActivated( int, int ) ) );
@@ -1008,16 +1008,16 @@ void HBQSlots::editingFinished()
void HBQSlots::selectionChanged() { hbqt_SlotsExec( this, qobject_cast<QObject *>( sender() ), "selectionChanged()" ); }
void HBQSlots::textChanged( const QString & text ) { hbqt_SlotsExecString( this, qobject_cast<QObject *>( sender() ), "textChanged(QString)", text ); }
void HBQSlots::textEdited( const QString & text ) { hbqt_SlotsExecString( this, qobject_cast<QObject *>( sender() ), "textEdited(QString)", text ); }
/* TreeViewobject */
void HBQSlots::currentItemChanged( QTreeWidgetItem * current, QTreeWidgetItem * previous ) { hbqt_SlotsExecPointerPointer( this, qobject_cast<QObject *>( sender() ), "currentItemChanged(QTWItem)", current, previous ); }
void HBQSlots::itemActivated( QTreeWidgetItem * item, int column ) { hbqt_SlotsExecPointerInt( this, qobject_cast<QObject *>( sender() ), "itemActivated(QTWItem)", item, column ); }
void HBQSlots::itemChanged( QTreeWidgetItem * item, int column ) { hbqt_SlotsExecPointerInt( this, qobject_cast<QObject *>( sender() ), "itemChanged(QTWItem)", item, column ); }
void HBQSlots::itemClicked( QTreeWidgetItem * item, int column ) { hbqt_SlotsExecPointerInt( this, qobject_cast<QObject *>( sender() ), "itemClicked(QTWItem)", item, column ); }
void HBQSlots::itemDoubleClicked( QTreeWidgetItem * item, int column ) { hbqt_SlotsExecPointerInt( this, qobject_cast<QObject *>( sender() ), "itemDoubleClicked(QTWItem)", item, column ); }
void HBQSlots::itemEntered( QTreeWidgetItem * item, int column ) { hbqt_SlotsExecPointerInt( this, qobject_cast<QObject *>( sender() ), "itemEntered(QTWItem)", item, column ); }
void HBQSlots::itemPressed( QTreeWidgetItem * item, int column ) { hbqt_SlotsExecPointerInt( this, qobject_cast<QObject *>( sender() ), "itemPressed(QTWItem)", item, column ); }
/* QTreeWidget */
void HBQSlots::itemExpanded( QTreeWidgetItem * item ) { hbqt_SlotsExecPointer( this, qobject_cast<QObject *>( sender() ), "itemExpanded(QTWItem)", item ); }
void HBQSlots::itemCollapsed( QTreeWidgetItem * item ) { hbqt_SlotsExecPointer( this, qobject_cast<QObject *>( sender() ), "itemCollapsed(QTWItem)", item ); }
void HBQSlots::currentItemChanged( QTreeWidgetItem * current, QTreeWidgetItem * previous ) { hbqt_SlotsExecPointerPointer( this, qobject_cast<QObject *>( sender() ), "currentItemChanged(QTWItem,QTWItem)", current, previous ); }
void HBQSlots::itemActivated( QTreeWidgetItem * item, int column ) { hbqt_SlotsExecPointerInt( this, qobject_cast<QObject *>( sender() ), "itemActivated(QTWItem,int)", item, column ); }
void HBQSlots::itemChanged( QTreeWidgetItem * item, int column ) { hbqt_SlotsExecPointerInt( this, qobject_cast<QObject *>( sender() ), "itemChanged(QTWItem,int)", item, column ); }
void HBQSlots::itemClicked( QTreeWidgetItem * item, int column ) { hbqt_SlotsExecPointerInt( this, qobject_cast<QObject *>( sender() ), "itemClicked(QTWItem,int)", item, column ); }
void HBQSlots::itemDoubleClicked( QTreeWidgetItem * item, int column ) { hbqt_SlotsExecPointerInt( this, qobject_cast<QObject *>( sender() ), "itemDoubleClicked(QTWItem,int)", item, column ); }
void HBQSlots::itemEntered( QTreeWidgetItem * item, int column ) { hbqt_SlotsExecPointerInt( this, qobject_cast<QObject *>( sender() ), "itemEntered(QTWItem,int)", item, column ); }
void HBQSlots::itemPressed( QTreeWidgetItem * item, int column ) { hbqt_SlotsExecPointerInt( this, qobject_cast<QObject *>( sender() ), "itemPressed(QTWItem,int)", item, column ); }
void HBQSlots::itemSelectionChanged() { hbqt_SlotsExec( this, qobject_cast<QObject *>( sender() ), "itemSelectionChanged()" ); }
/* QDialog (s)*/
void HBQSlots::currentFontChanged( const QFont & font ) { hbqt_SlotsExecFont( this, qobject_cast<QObject *>( sender() ), "currentFontChanged(QFont)", font ); }

View File

@@ -87,8 +87,6 @@ HB_FUNC( QT_HBQEVENTS )
</ENUMS>
<PROTOS>
HBQEvents()
bool hbConnect( PHB_ITEM obj, int event, PHB_ITEM block )
bool hbDisconnect( PHB_ITEM obj, int event )
bool hbClear()

View File

@@ -86,8 +86,6 @@ HB_FUNC( QT_HBQSLOTS )
</ENUMS>
<PROTOS>
HBQSlots()
bool hbConnect( PHB_ITEM pObj, const char * slot, PHB_ITEM bBlock )
bool hbDisconnect( PHB_ITEM obj, const char * slot )
bool hbIsConnected( PHB_ITEM obj, const char * slot )

View File

@@ -114,15 +114,6 @@ typedef iterator
</ENUMS>
<PROTOS>
HBQString ()
HBQString ( const QChar * unicode, int size )
HBQString ( QChar ch )
HBQString ( int size, QChar ch )
HBQString ( const QLatin1String & str )
HBQString ( const QString & other )
HBQString ( const char * str )
HBQString ( const QByteArray & ba )
QString & append ( const QString & str )
QString & append ( const QStringRef & reference )
QString & append ( const QLatin1String & str )

View File

@@ -85,8 +85,6 @@ HB_FUNC( QT_QABSTRACTEVENTDISPATCHER )
</ENUMS>
<PROTOS>
QAbstractEventDispatcher ( QObject * parent = 0 )
bool filterEvent ( void * message )
virtual void flush () = 0
virtual bool hasPendingEvents () = 0

View File

@@ -84,8 +84,6 @@ HB_FUNC( QT_QABSTRACTITEMMODEL )
</ENUMS>
<PROTOS>
//QAbstractItemModel ( QObject * parent = 0 )
virtual QModelIndex buddy ( const QModelIndex & index ) const
virtual bool canFetchMore ( const QModelIndex & parent ) const
virtual int columnCount ( const QModelIndex & parent = QModelIndex() ) const = 0

View File

@@ -26,16 +26,6 @@
* $RETURNS$
* An instance of the object of type QBrush
* $METHODS$
* :QBrush() -> oQBrush
* :QBrush( nStyle ) -> oQBrush
* :QBrush( oQColor, nStyle ) -> oQBrush
* :QBrush( nColor, nStyle ) -> oQBrush
* :QBrush( oQColor, oQPixmap ) -> oQBrush
* :QBrush( nColor, oQPixmap ) -> oQBrush
* :QBrush( oQPixmap ) -> oQBrush
* :QBrush( oQImage ) -> oQBrush
* :QBrush( oQBrush ) -> oQBrush
* :QBrush( oQGradient ) -> oQBrush
* :color() -> oQColor
* :gradient() -> oQGradient
* :isOpaque() -> lBool

View File

@@ -26,7 +26,6 @@
* $RETURNS$
* An instance of the object of type QWidget
* $METHODS$
* :QWidget( oQWidget, nF ) -> oQWidget
* :acceptDrops() -> lBool
* :actions() -> oQList_QAction
* :activateWindow() -> NIL

View File

@@ -110,8 +110,8 @@
/*
*
*
* HBQAbstractItemModel ( ( PHB_ITEM ) hb_param( 1, HB_IT_BLOCK ) )
* ~HBQAbstractItemModel ()
*/
typedef struct

View File

@@ -109,9 +109,9 @@
#include "hbqt_hbqgraphicsitem.h"
/*
* HBQGraphicsItem()
* HBQGraphicsItem( QGraphicsItem * parent )
* ~HBQGraphicsItem()
* HBQGraphicsItem ()
* HBQGraphicsItem ( QGraphicsItem * parent )
* ~HBQGraphicsItem ()
*/
typedef struct

View File

@@ -113,9 +113,9 @@
#include "hbqt_hbqgraphicsscene.h"
/*
* HBQGraphicsScene()
* HBQGraphicsScene( QObject * parent )
* ~HBQGraphicsScene()
* HBQGraphicsScene ()
* HBQGraphicsScene ( QObject * parent )
* ~HBQGraphicsScene ()
*/
typedef struct

View File

@@ -109,7 +109,7 @@
#include "hbqt_hbqsyntaxhighlighter.h"
/*
*
* HBQSyntaxHighlighter ( QTextDocument * textDocument )
*
*/

View File

@@ -110,7 +110,8 @@
/*
*
* HBQTableView ( QWidget * parent = 0 )
* ~HBQTableView ()
*
*/

View File

@@ -109,8 +109,8 @@
#include "hbqt_hbqsyntaxhighlighter.h"
/*
* HBQTextBlockUserData()
* ~HBQTextBlockUserData()
* HBQTextBlockUserData ()
* ~HBQTextBlockUserData ()
*/
typedef struct

View File

@@ -99,7 +99,7 @@
/*----------------------------------------------------------------------*/
/*
* Constructed[ 25/25 [ 100.00% ] ]
* Constructed[ 15/15 [ 100.00% ] ]
*
*/
@@ -264,86 +264,6 @@ HB_FUNC( QT_QBRUSH )
hb_retptrGC( hbqt_gcAllocate_QBrush( ( void * ) pObj, true ) );
}
/*
* QBrush ()
*/
HB_FUNC( QT_QBRUSH_QBRUSH )
{
hb_retptrGC( hbqt_gcAllocate_QBrush( new QBrush(), true ) );
}
/*
* QBrush ( Qt::BrushStyle style )
*/
HB_FUNC( QT_QBRUSH_QBRUSH_1 )
{
hb_retptrGC( hbqt_gcAllocate_QBrush( new QBrush( ( Qt::BrushStyle ) hb_parni( 2 ) ), true ) );
}
/*
* QBrush ( const QColor & color, Qt::BrushStyle style = Qt::SolidPattern )
*/
HB_FUNC( QT_QBRUSH_QBRUSH_2 )
{
hb_retptrGC( hbqt_gcAllocate_QBrush( new QBrush( *hbqt_par_QColor( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::BrushStyle ) hb_parni( 3 ) : ( Qt::BrushStyle ) Qt::SolidPattern ) ), true ) );
}
/*
* QBrush ( Qt::GlobalColor color, Qt::BrushStyle style = Qt::SolidPattern )
*/
HB_FUNC( QT_QBRUSH_QBRUSH_3 )
{
hb_retptrGC( hbqt_gcAllocate_QBrush( new QBrush( ( Qt::GlobalColor ) hb_parni( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::BrushStyle ) hb_parni( 3 ) : ( Qt::BrushStyle ) Qt::SolidPattern ) ), true ) );
}
/*
* QBrush ( const QColor & color, const QPixmap & pixmap )
*/
HB_FUNC( QT_QBRUSH_QBRUSH_4 )
{
hb_retptrGC( hbqt_gcAllocate_QBrush( new QBrush( *hbqt_par_QColor( 2 ), *hbqt_par_QPixmap( 3 ) ), true ) );
}
/*
* QBrush ( Qt::GlobalColor color, const QPixmap & pixmap )
*/
HB_FUNC( QT_QBRUSH_QBRUSH_5 )
{
hb_retptrGC( hbqt_gcAllocate_QBrush( new QBrush( ( Qt::GlobalColor ) hb_parni( 2 ), *hbqt_par_QPixmap( 3 ) ), true ) );
}
/*
* QBrush ( const QPixmap & pixmap )
*/
HB_FUNC( QT_QBRUSH_QBRUSH_6 )
{
hb_retptrGC( hbqt_gcAllocate_QBrush( new QBrush( *hbqt_par_QPixmap( 2 ) ), true ) );
}
/*
* QBrush ( const QImage & image )
*/
HB_FUNC( QT_QBRUSH_QBRUSH_7 )
{
hb_retptrGC( hbqt_gcAllocate_QBrush( new QBrush( *hbqt_par_QImage( 2 ) ), true ) );
}
/*
* QBrush ( const QBrush & other )
*/
HB_FUNC( QT_QBRUSH_QBRUSH_8 )
{
hb_retptrGC( hbqt_gcAllocate_QBrush( new QBrush( *hbqt_par_QBrush( 2 ) ), true ) );
}
/*
* QBrush ( const QGradient & gradient )
*/
HB_FUNC( QT_QBRUSH_QBRUSH_9 )
{
hb_retptrGC( hbqt_gcAllocate_QBrush( new QBrush( *hbqt_par_QGradient( 2 ) ), true ) );
}
/*
* const QColor & color () const
*/

View File

@@ -105,7 +105,7 @@
*/
/*
* Constructed[ 207/209 [ 99.04% ] ]
* Constructed[ 206/208 [ 99.04% ] ]
*
* *** Unconvered Prototypes ***
*
@@ -231,14 +231,6 @@ HB_FUNC( QT_QWIDGET )
hb_retptrGC( hbqt_gcAllocate_QWidget( ( void * ) pObj, true ) );
}
/*
* QWidget( QWidget * parent = 0, Qt::WindowFlags f = 0 )
*/
HB_FUNC( QT_QWIDGET_QWIDGET )
{
hb_retptrGC( hbqt_gcAllocate_QWidget( new QWidget( hbqt_par_QWidget( 2 ), ( Qt::WindowFlags ) hb_parni( 3 ) ), true ) );
}
/*
* bool acceptDrops () const
*/

View File

@@ -188,7 +188,7 @@ METHOD HBQGraphicsItem:hbSetBlock( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE ( hb_isBlock( hb_pvalue( 1 ) ) .OR. hb_isPointer( hb_pvalue( 1 ) ) )
CASE ( hb_pvalue( 1 ) != NIL )
RETURN Qt_HBQGraphicsItem_hbSetBlock( ::pPtr, ... )
ENDCASE
EXIT

View File

@@ -139,7 +139,7 @@ METHOD HBQGraphicsScene:hbSetBlock( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE ( hb_isBlock( hb_pvalue( 1 ) ) .OR. hb_isPointer( hb_pvalue( 1 ) ) )
CASE ( hb_pvalue( 1 ) != NIL )
RETURN Qt_HBQGraphicsScene_hbSetBlock( ::pPtr, ... )
ENDCASE
EXIT

View File

@@ -304,7 +304,7 @@ METHOD HBQPlainTextEdit:hbSetEventBlock( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE ( hb_isBlock( hb_pvalue( 1 ) ) .OR. hb_isPointer( hb_pvalue( 1 ) ) )
CASE ( hb_pvalue( 1 ) != NIL )
RETURN Qt_HBQPlainTextEdit_hbSetEventBlock( ::pPtr, ... )
ENDCASE
EXIT
@@ -596,7 +596,7 @@ METHOD HBQPlainTextEdit:hbSetSelectionInfo( ... )
SWITCH PCount()
CASE 1
DO CASE
CASE ( hb_isBlock( hb_pvalue( 1 ) ) .OR. hb_isPointer( hb_pvalue( 1 ) ) )
CASE ( hb_pvalue( 1 ) != NIL )
RETURN Qt_HBQPlainTextEdit_hbSetSelectionInfo( ::pPtr, ... )
ENDCASE
EXIT

View File

@@ -103,16 +103,6 @@ CREATE CLASS QBrush INHERIT HbQtObjectHandler FUNCTION HB_QBrush
METHOD new( ... )
METHOD QBrush // ( ) -> oQBrush
// ( nStyle ) -> oQBrush
// ( oQColor, nStyle ) -> oQBrush
// ( nColor, nStyle ) -> oQBrush
// ( oQColor, oQPixmap ) -> oQBrush
// ( nColor, oQPixmap ) -> oQBrush
// ( oQPixmap ) -> oQBrush
// ( oQImage ) -> oQBrush
// ( oQBrush ) -> oQBrush
// ( oQGradient ) -> oQBrush
METHOD color // ( ) -> oQColor
METHOD gradient // ( ) -> oQGradient
METHOD isOpaque // ( ) -> lBool
@@ -141,46 +131,6 @@ METHOD QBrush:new( ... )
RETURN Self
METHOD QBrush:QBrush( ... )
SWITCH PCount()
CASE 2
DO CASE
CASE hb_isNumeric( hb_pvalue( 1 ) ) .AND. hb_isNumeric( hb_pvalue( 2 ) )
RETURN HB_QBrush():from( Qt_QBrush_QBrush_3( ::pPtr, ... ) )
CASE hb_isNumeric( hb_pvalue( 1 ) ) .AND. hb_isObject( hb_pvalue( 2 ) )
RETURN HB_QBrush():from( Qt_QBrush_QBrush_5( ::pPtr, ... ) )
CASE hb_isObject( hb_pvalue( 1 ) ) .AND. hb_isNumeric( hb_pvalue( 2 ) )
RETURN HB_QBrush():from( Qt_QBrush_QBrush_2( ::pPtr, ... ) )
CASE hb_isObject( hb_pvalue( 1 ) ) .AND. hb_isObject( hb_pvalue( 2 ) )
RETURN HB_QBrush():from( Qt_QBrush_QBrush_4( ::pPtr, ... ) )
ENDCASE
EXIT
CASE 1
DO CASE
CASE hb_isNumeric( hb_pvalue( 1 ) )
RETURN HB_QBrush():from( Qt_QBrush_QBrush_3( ::pPtr, ... ) )
// RETURN HB_QBrush():from( Qt_QBrush_QBrush_1( ::pPtr, ... ) )
CASE hb_isObject( hb_pvalue( 1 ) )
SWITCH __objGetClsName( hb_pvalue( 1 ) )
CASE "QIMAGE"
RETURN HB_QBrush():from( Qt_QBrush_QBrush_7( ::pPtr, ... ) )
CASE "QPIXMAP"
RETURN HB_QBrush():from( Qt_QBrush_QBrush_6( ::pPtr, ... ) )
CASE "QBRUSH"
RETURN HB_QBrush():from( Qt_QBrush_QBrush_8( ::pPtr, ... ) )
CASE "QCOLOR"
RETURN HB_QBrush():from( Qt_QBrush_QBrush_2( ::pPtr, ... ) )
CASE "QGRADIENT"
RETURN HB_QBrush():from( Qt_QBrush_QBrush_9( ::pPtr, ... ) )
ENDSWITCH
ENDCASE
EXIT
CASE 0
RETURN HB_QBrush():from( Qt_QBrush_QBrush( ::pPtr, ... ) )
ENDSWITCH
RETURN hbqt_error()
METHOD QBrush:color( ... )
SWITCH PCount()
CASE 0

View File

@@ -103,7 +103,6 @@ CREATE CLASS QWidget INHERIT HbQtObjectHandler, HB_QObject, HB_QPaintDevice FUNC
METHOD new( ... )
METHOD QWidget // ( oQWidget, nF ) -> oQWidget
METHOD acceptDrops // ( ) -> lBool
METHOD actions // ( ) -> oQList_QAction
METHOD activateWindow // ( ) -> NIL
@@ -323,26 +322,6 @@ METHOD QWidget:new( ... )
RETURN Self
METHOD QWidget:QWidget( ... )
SWITCH PCount()
CASE 2
DO CASE
CASE hb_isObject( hb_pvalue( 1 ) ) .AND. hb_isNumeric( hb_pvalue( 2 ) )
RETURN HB_QWidget():from( Qt_QWidget_QWidget( ::pPtr, ... ) )
ENDCASE
EXIT
CASE 1
DO CASE
CASE hb_isObject( hb_pvalue( 1 ) )
RETURN HB_QWidget():from( Qt_QWidget_QWidget( ::pPtr, ... ) )
ENDCASE
EXIT
CASE 0
RETURN HB_QWidget():from( Qt_QWidget_QWidget( ::pPtr, ... ) )
ENDSWITCH
RETURN hbqt_error()
METHOD QWidget:acceptDrops( ... )
SWITCH PCount()
CASE 0

View File

@@ -73,8 +73,8 @@ New =
/*
*
*
* HBQAbstractItemModel ( ( PHB_ITEM ) hb_param( 1, HB_IT_BLOCK ) )
* ~HBQAbstractItemModel ()
*/
HB_FUNC( QT_HBQABSTRACTITEMMODEL )
{

View File

@@ -66,9 +66,9 @@ New =
#include "hbqt_hbqgraphicsitem.h"
/*
* HBQGraphicsItem()
* HBQGraphicsItem( QGraphicsItem * parent )
* ~HBQGraphicsItem()
* HBQGraphicsItem ()
* HBQGraphicsItem ( QGraphicsItem * parent )
* ~HBQGraphicsItem ()
*/
HB_FUNC( QT_HBQGRAPHICSITEM )
{

View File

@@ -66,9 +66,9 @@ New =
#include "hbqt_hbqgraphicsscene.h"
/*
* HBQGraphicsScene()
* HBQGraphicsScene( QObject * parent )
* ~HBQGraphicsScene()
* HBQGraphicsScene ()
* HBQGraphicsScene ( QObject * parent )
* ~HBQGraphicsScene ()
*/
HB_FUNC( QT_HBQGRAPHICSSCENE )
{

View File

@@ -72,7 +72,7 @@ New =
#include "hbqt_hbqsyntaxhighlighter.h"
/*
*
* HBQSyntaxHighlighter ( QTextDocument * textDocument )
*
*/
HB_FUNC( QT_HBQSYNTAXHIGHLIGHTER )

View File

@@ -73,7 +73,8 @@ New =
/*
*
* HBQTableView ( QWidget * parent = 0 )
* ~HBQTableView ()
*
*/
HB_FUNC( QT_HBQTABLEVIEW )

View File

@@ -72,8 +72,8 @@ New =
#include "hbqt_hbqsyntaxhighlighter.h"
/*
* HBQTextBlockUserData()
* ~HBQTextBlockUserData()
* HBQTextBlockUserData ()
* ~HBQTextBlockUserData ()
*/
HB_FUNC( QT_HBQTEXTBLOCKUSERDATA )
{

View File

@@ -178,17 +178,6 @@ HB_FUNC( QT_QBRUSH )
</CODE>
<PROTOS>
QBrush ()
QBrush ( Qt::BrushStyle style )
QBrush ( const QColor & color, Qt::BrushStyle style = Qt::SolidPattern )
QBrush ( Qt::GlobalColor color, Qt::BrushStyle style = Qt::SolidPattern )
QBrush ( const QColor & color, const QPixmap & pixmap )
QBrush ( Qt::GlobalColor color, const QPixmap & pixmap )
QBrush ( const QPixmap & pixmap )
QBrush ( const QImage & image )
QBrush ( const QBrush & other )
QBrush ( const QGradient & gradient )
const QColor & color () const
const QGradient * gradient () const
bool isOpaque () const

View File

@@ -90,8 +90,6 @@ enum PaintDeviceMetric { PdmWidth, PdmHeight, PdmWidthMM, PdmHeightMM, ..., PdmP
</ENUMS>
<PROTOS>
QWidget( QWidget * parent = 0, Qt::WindowFlags f = 0 )
bool acceptDrops () const
// QString accessibleDescription () const
// QString accessibleName () const

View File

@@ -494,6 +494,8 @@ CLASS HbQtSource
DATA cpp_ INIT {}
DATA cmntd_ INIT {}
DATA doc_ INIT {}
DATA constructors_ INIT {}
DATA nFuncs INIT 0
DATA nCnvrtd INIT 0
@@ -572,7 +574,7 @@ METHOD HbQtSource:new( oGen, cFileQth, cPathOut, cPathDoc, cProject )
IF trim( ::code_[ i ] ) == "}"
n1 := i
EXIT
endif
ENDIF
NEXT
::old_:={}
FOR i := 1 TO len( ::code_ )
@@ -582,6 +584,16 @@ METHOD HbQtSource:new( oGen, cFileQth, cPathOut, cPathDoc, cProject )
NEXT
::code_:= ::old_
/* Pullout constructor methods */
#if 0
tmp := ::cWidget + " ("
FOR EACH s IN ::code_
IF ( n := at( tmp, s ) ) > 0 .AND. ! ( "~" $ s )
aadd( ::constructors_, substr( s, n ) )
ENDIF
NEXT
#endif
/* Pull out Enumerators */
::enums_:= PullOutSection( @cQth, "ENUMS" )
::enum_:= {}
@@ -593,7 +605,10 @@ METHOD HbQtSource:new( oGen, cFileQth, cPathOut, cPathDoc, cProject )
NEXT
/* Pull out Prototypes */
::protos_ := PullOutSection( @cQth, "PROTOS" )
// ::protos_ := PullOutSection( @cQth, "PROTOS" )
tmp := PullOutSection( @cQth, "PROTOS" )
aeval( ::constructors_, {|e| aadd( ::protos_, e ) } )
aeval( tmp, {|e| aadd( ::protos_, e ) } )
/* Pull out Variables */
::varbls_ := PullOutSection( @cQth, "VARIABLES" )
@@ -1378,10 +1393,11 @@ STATIC FUNCTION hbide_methodInfo( oMtd )
STATIC FUNCTION hbide_paramCheckStr( cType, nArg )
SWITCH cType
CASE "PB"
// RETURN "( " + "hb_isBlock( hb_pvalue( " + hb_ntos( nArg ) + " ) )" + " .OR. " + "hb_isPointer( hb_pvalue( " + hb_ntos( nArg ) + " ) ) )"
RETURN "( " + " hb_pvalue( " + hb_ntos( nArg ) + " )" + " != NIL )"
CASE "P"
RETURN "hb_isPointer( hb_pvalue( " + hb_ntos( nArg ) + " ) )"
CASE "PB"
RETURN "( " + "hb_isBlock( hb_pvalue( " + hb_ntos( nArg ) + " ) )" + " .OR. " + "hb_isPointer( hb_pvalue( " + hb_ntos( nArg ) + " ) ) )"
CASE "O"
RETURN "hb_isObject( hb_pvalue( " + hb_ntos( nArg ) + " ) )"
CASE "CO"

View File

@@ -194,15 +194,15 @@ METHOD XbpTreeView:execSlot( cSlot, p )
ENDIF
DO CASE
CASE cSlot == "itemClicked(QTWItem)"
::itemMarked( oItem, {0,0,0,0} )
CASE cSlot == "itemCollapsed(QTWItem)"
::itemCollapsed( oItem, {0,0,0,0} )
CASE cSlot == "itemDoubleClicked(QTWItem)"
::itemSelected( oItem, {0,0,0,0} )
CASE cSlot == "itemExpanded(QTWItem)"
::itemExpanded( oItem, {0,0,0,0} )
CASE cSlot == "itemEntered(QTWItem)"
CASE cSlot == "itemClicked(QTWItem,int)"
::itemMarked( oItem, {0,0,0,0} )
CASE cSlot == "itemDoubleClicked(QTWItem,int)"
::itemSelected( oItem, {0,0,0,0} )
CASE cSlot == "itemEntered(QTWItem,int)"
::oWidget:setToolTip( iif( empty( oItem:tooltipText ), oItem:caption, oItem:tooltipText ) )
CASE cSlot == "customContextMenuRequested(QPoint)"
IF hb_isBlock( ::hb_contextMenu )
@@ -214,11 +214,13 @@ METHOD XbpTreeView:execSlot( cSlot, p )
ENDIF
ENDIF
ENDIF
CASE cSlot == "itemPressed(QTWItem)"
#if 0
CASE cSlot == "currentItemChanged(QTWItem,QTWItem)"
CASE cSlot == "itemPressed(QTWItem,int)"
CASE cSlot == "itemActivated(QTWItem,int)"
CASE cSlot == "itemChanged(QTWItem,int)"
CASE cSlot == "itemSelectionChanged()"
CASE cSlot == "currentItemChanged(QTWItem)"
CASE cSlot == "itemActivated(QTWItem)"
CASE cSlot == "itemChanged(QTWItem)"
#endif
ENDCASE
RETURN .f.
@@ -263,17 +265,17 @@ METHOD XbpTreeView:destroy()
METHOD XbpTreeView:connect()
* ::oWidget:connect( "currentItemChanged(QTWItem)" , {|p1| ::execSlot( "currentItemChanged(QTWItem)", p1 ) } )
* ::oWidget:connect( "itemActivated(QTWItem)" , {|p1| ::execSlot( "itemActivated(QTWItem)" , p1 ) } )
* ::oWidget:connect( "itemChanged(QTWItem)" , {|p1| ::execSlot( "itemChanged(QTWItem)" , p1 ) } )
::oWidget:connect( "itemClicked(QTWItem)" , {|p1| ::execSlot( "itemClicked(QTWItem)" , p1 ) } )
::oWidget:connect( "itemCollapsed(QTWItem)" , {|p1| ::execSlot( "itemCollapsed(QTWItem)" , p1 ) } )
::oWidget:connect( "itemDoubleClicked(QTWItem)" , {|p1| ::execSlot( "itemDoubleClicked(QTWItem)" , p1 ) } )
::oWidget:connect( "itemEntered(QTWItem)" , {|p1| ::execSlot( "itemEntered(QTWItem)" , p1 ) } )
::oWidget:connect( "itemExpanded(QTWItem)" , {|p1| ::execSlot( "itemExpanded(QTWItem)" , p1 ) } )
* ::oWidget:connect( "itemPressed(QTWItem)" , {|p1| ::execSlot( "itemPressed(QTWItem)" , p1 ) } )
* ::oWidget:connect( "itemSelectionChanged()" , {|p1| ::execSlot( "itemSelectionChanged()" , p1 ) } )
::oWidget:connect( "customContextMenuRequested(QPoint)", {|p1| ::execSlot( "customContextMenuRequested(QPoint)", p1 ) } )
::oWidget:connect( "itemCollapsed(QTWItem)" , {|p1 | ::execSlot( "itemCollapsed(QTWItem)" , p1 ) } )
::oWidget:connect( "itemExpanded(QTWItem)" , {|p1 | ::execSlot( "itemExpanded(QTWItem)" , p1 ) } )
* ::oWidget:connect( "currentItemChanged(QTWItem,QTWItem)" , {|p,p1| ::execSlot( "currentItemChanged(QTWItem,QTWItem)", p, p1 ) } )
* ::oWidget:connect( "itemActivated(QTWItem,int)" , {|p,p1| ::execSlot( "itemActivated(QTWItem,int)" , p, p1 ) } )
* ::oWidget:connect( "itemChanged(QTWItem,int)" , {|p,p1| ::execSlot( "itemChanged(QTWItem,int)" , p, p1 ) } )
::oWidget:connect( "itemClicked(QTWItem,int)" , {|p,p1| ::execSlot( "itemClicked(QTWItem,int)" , p, p1 ) } )
::oWidget:connect( "itemDoubleClicked(QTWItem,int)" , {|p,p1| ::execSlot( "itemDoubleClicked(QTWItem,int)" , p, p1 ) } )
::oWidget:connect( "itemEntered(QTWItem,int)" , {|p,p1| ::execSlot( "itemEntered(QTWItem,int)" , p, p1 ) } )
* ::oWidget:connect( "itemPressed(QTWItem,int)" , {|p,p1| ::execSlot( "itemPressed(QTWItem,int)" , p, p1 ) } )
* ::oWidget:connect( "itemSelectionChanged()" , {|p1 | ::execSlot( "itemSelectionChanged()" , p1 ) } )
::oWidget:connect( "customContextMenuRequested(QPoint)" , {|p1 | ::execSlot( "customContextMenuRequested(QPoint)", p1 ) } )
RETURN Self
@@ -281,17 +283,17 @@ METHOD XbpTreeView:connect()
METHOD XbpTreeView:disconnect()
* ::oWidget:disconnect( "currentItemChanged(QTWItem)" )
* ::oWidget:disconnect( "itemActivated(QTWItem)" )
* ::oWidget:disconnect( "itemChanged(QTWItem)" )
::oWidget:disconnect( "itemClicked(QTWItem)" )
::oWidget:disconnect( "itemCollapsed(QTWItem)" )
::oWidget:disconnect( "itemDoubleClicked(QTWItem)" )
::oWidget:disconnect( "itemEntered(QTWItem)" )
::oWidget:disconnect( "itemExpanded(QTWItem)" )
* ::oWidget:disconnect( "itemPressed(QTWItem)" )
* ::oWidget:disconnect( "itemSelectionChanged()" )
::oWidget:disconnect( "customContextMenuRequested(QPoint)" )
::oWidget:connect( "itemCollapsed(QTWItem)" )
::oWidget:connect( "itemExpanded(QTWItem)" )
* ::oWidget:connect( "currentItemChanged(QTWItem,QTWItem)" )
* ::oWidget:connect( "itemActivated(QTWItem,int)" )
* ::oWidget:connect( "itemChanged(QTWItem,int)" )
::oWidget:connect( "itemClicked(QTWItem,int)" )
::oWidget:connect( "itemDoubleClicked(QTWItem,int)" )
::oWidget:connect( "itemEntered(QTWItem,int)" )
* ::oWidget:connect( "itemPressed(QTWItem,int)" )
* ::oWidget:connect( "itemSelectionChanged()" )
::oWidget:connect( "customContextMenuRequested(QPoint)" )
RETURN Self