* contrib/hbqt/generator/hbqtgen.prg
* contrib/hbqt/generator/qt45.qtp
* contrib/hbqt/hbqt.h
* contrib/hbqt/hbqt_base.cpp
* contrib/hbqt/hbqt_garbage.h
* contrib/hbqt/hbqt_hbdbfmodel.cpp
* contrib/hbqt/hbqt_hbevents.cpp
* contrib/hbqt/hbqt_hbqmainwindow.cpp
* contrib/hbqt/hbqt_hbqsyntaxhighlighter.cpp
* contrib/hbqt/hbqt_hbqsyntaxhighlighter.h
* contrib/hbqt/hbqt_hbqtableview.cpp
* contrib/hbqt/hbqt_hbslots.cpp
+ contrib/hbqt/qth/HBQTextBlockUserData.qth
* contrib/hbqt/qth/QAbstractTextDocumentLayout.qth
* contrib/hbqt/qth/QApplication.qth
* contrib/hbqt/qth/QClipboard.qth
* contrib/hbqt/qth/QComboBox.qth
* contrib/hbqt/qth/QCursor.qth
* contrib/hbqt/qth/QDragEnterEvent.qth
* contrib/hbqt/qth/QDragLeaveEvent.qth
* contrib/hbqt/qth/QDropEvent.qth
* contrib/hbqt/qth/QFocusEvent.qth
* contrib/hbqt/qth/QGradient.qth
* contrib/hbqt/qth/QKeyEvent.qth
* contrib/hbqt/qth/QLabel.qth
* contrib/hbqt/qth/QLayoutItem.qth
* contrib/hbqt/qth/QLineEdit.qth
* contrib/hbqt/qth/QMoveEvent.qth
* contrib/hbqt/qth/QPaintDevice.qth
+ contrib/hbqt/qth/QPaintEngine.qth
* contrib/hbqt/qth/QPrintEngine.qth
* contrib/hbqt/qth/QResizeEvent.qth
* contrib/hbqt/qth/QSplitter.qth
* contrib/hbqt/qth/QStandardItemModel.qth
* contrib/hbqt/qth/QStyleHintReturn.qth
* contrib/hbqt/qth/QStyleHintReturnMask.qth
* contrib/hbqt/qth/QStyleHintReturnVariant.qth
* contrib/hbqt/qth/QTextBlock.qth
* contrib/hbqt/qth/QTextCursor.qth
+ contrib/hbqt/qth/QTextList.qth
* contrib/hbqt/qth/QWheelEvent.qth
* contrib/hbqt/qth/QWidget.qth
* contrib/hbqt/tests/demoqt.prg
* contrib/hbxbp/tests/demoxbp.prg
* contrib/hbxbp/xbpgeneric.prg
* contrib/hbxbp/xbpmenubar.prg
* contrib/hbqt/qtcore/*.cpp
* contrib/hbqt/qtgui/*.cpp
* contrib/hbqt/qtnetwork/*.cpp
! This commit change some rules to parse .qth files to
prepare the wrappers to be encapsulated in hb_retptrGC
envelop. It also attempts to pin-point the spots where
mem-leak could occur. Only very few calls are left to
plain hb_retptr() which eventually will be handled
the other way.
Only delete ( Q* ) p; is retained. Other two methods are
eliminated. Demos are updated to respect it.
demoQT and demoXBP now consume very less memory when new
dialogs are opened. It means memory management has
improved with this commit. Anyhow still I can see
memory growing specially in browser navigation. As I
remember sometime in past I could manage the sonstant memory,
but now I do not remember at what stage we were on Qt.
Though all the three variants, demoQT, demoXBP, hbIDE are
working properly, still there could be regression, please test.
317 lines
9.3 KiB
Plaintext
317 lines
9.3 KiB
Plaintext
/*
|
|
* $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 <pritpal@vouchcac.com>
|
|
*
|
|
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot com>
|
|
* www - http://www.harbour-project.org
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
* any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this software; see the file COPYING. If not, write to
|
|
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
|
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
|
*
|
|
* As a special exception, the Harbour Project gives permission for
|
|
* additional uses of the text contained in its release of Harbour.
|
|
*
|
|
* The exception is that, if you link the Harbour libraries with other
|
|
* files to produce an executable, this does not by itself cause the
|
|
* resulting executable to be covered by the GNU General Public License.
|
|
* Your use of that executable is in no way restricted on account of
|
|
* linking the Harbour library code into it.
|
|
*
|
|
* This exception does not however invalidate any other reasons why
|
|
* the executable file might be covered by the GNU General Public License.
|
|
*
|
|
* This exception applies only to the code released by the Harbour
|
|
* Project under the name Harbour. If you copy code from other
|
|
* Harbour Project or Free Software Foundation releases into a copy of
|
|
* Harbour, as the General Public License permits, the exception does
|
|
* not apply to the code that you add in this way. To avoid misleading
|
|
* anyone as to the status of such modified files, you must delete
|
|
* this exception notice from them.
|
|
*
|
|
* If you write modifications of your own for Harbour, it is your choice
|
|
* whether to permit this exception to apply to your modifications.
|
|
* If you do not wish that, delete this exception notice.
|
|
*
|
|
*/
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
|
|
#include "hbclass.ch"
|
|
|
|
|
|
CREATE CLASS QTextCharFormat INHERIT HbQtObjectHandler, QTextFormat
|
|
|
|
METHOD new( ... )
|
|
|
|
METHOD anchorHref()
|
|
METHOD anchorNames()
|
|
METHOD font()
|
|
METHOD fontCapitalization()
|
|
METHOD fontFamily()
|
|
METHOD fontFixedPitch()
|
|
METHOD fontItalic()
|
|
METHOD fontKerning()
|
|
METHOD fontLetterSpacing()
|
|
METHOD fontOverline()
|
|
METHOD fontPointSize()
|
|
METHOD fontStrikeOut()
|
|
METHOD fontStyleHint()
|
|
METHOD fontStyleStrategy()
|
|
METHOD fontUnderline()
|
|
METHOD fontWeight()
|
|
METHOD fontWordSpacing()
|
|
METHOD isAnchor()
|
|
METHOD isValid()
|
|
METHOD setAnchor( lAnchor )
|
|
METHOD setAnchorHref( cValue )
|
|
METHOD setAnchorNames( pNames )
|
|
METHOD setFont( pFont )
|
|
METHOD setFontCapitalization( nCapitalization )
|
|
METHOD setFontFamily( cFamily )
|
|
METHOD setFontFixedPitch( lFixedPitch )
|
|
METHOD setFontItalic( lItalic )
|
|
METHOD setFontKerning( lEnable )
|
|
METHOD setFontLetterSpacing( nSpacing )
|
|
METHOD setFontOverline( lOverline )
|
|
METHOD setFontPointSize( nSize )
|
|
METHOD setFontStrikeOut( lStrikeOut )
|
|
METHOD setFontStyleHint( nHint, nStrategy )
|
|
METHOD setFontStyleStrategy( nStrategy )
|
|
METHOD setFontUnderline( lUnderline )
|
|
METHOD setFontWeight( nWeight )
|
|
METHOD setFontWordSpacing( nSpacing )
|
|
METHOD setTextOutline( pPen )
|
|
METHOD setToolTip( cText )
|
|
METHOD setUnderlineColor( pColor )
|
|
METHOD setUnderlineStyle( nStyle )
|
|
METHOD setVerticalAlignment( nAlignment )
|
|
METHOD textOutline()
|
|
METHOD toolTip()
|
|
METHOD underlineColor()
|
|
METHOD underlineStyle()
|
|
METHOD verticalAlignment()
|
|
|
|
ENDCLASS
|
|
|
|
|
|
METHOD QTextCharFormat:new( ... )
|
|
LOCAL p
|
|
FOR EACH p IN { ... }
|
|
hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) )
|
|
NEXT
|
|
::pPtr := Qt_QTextCharFormat( ... )
|
|
RETURN Self
|
|
|
|
|
|
METHOD QTextCharFormat:anchorHref()
|
|
RETURN Qt_QTextCharFormat_anchorHref( ::pPtr )
|
|
|
|
|
|
METHOD QTextCharFormat:anchorNames()
|
|
RETURN Qt_QTextCharFormat_anchorNames( ::pPtr )
|
|
|
|
|
|
METHOD QTextCharFormat:font()
|
|
RETURN Qt_QTextCharFormat_font( ::pPtr )
|
|
|
|
|
|
METHOD QTextCharFormat:fontCapitalization()
|
|
RETURN Qt_QTextCharFormat_fontCapitalization( ::pPtr )
|
|
|
|
|
|
METHOD QTextCharFormat:fontFamily()
|
|
RETURN Qt_QTextCharFormat_fontFamily( ::pPtr )
|
|
|
|
|
|
METHOD QTextCharFormat:fontFixedPitch()
|
|
RETURN Qt_QTextCharFormat_fontFixedPitch( ::pPtr )
|
|
|
|
|
|
METHOD QTextCharFormat:fontItalic()
|
|
RETURN Qt_QTextCharFormat_fontItalic( ::pPtr )
|
|
|
|
|
|
METHOD QTextCharFormat:fontKerning()
|
|
RETURN Qt_QTextCharFormat_fontKerning( ::pPtr )
|
|
|
|
|
|
METHOD QTextCharFormat:fontLetterSpacing()
|
|
RETURN Qt_QTextCharFormat_fontLetterSpacing( ::pPtr )
|
|
|
|
|
|
METHOD QTextCharFormat:fontOverline()
|
|
RETURN Qt_QTextCharFormat_fontOverline( ::pPtr )
|
|
|
|
|
|
METHOD QTextCharFormat:fontPointSize()
|
|
RETURN Qt_QTextCharFormat_fontPointSize( ::pPtr )
|
|
|
|
|
|
METHOD QTextCharFormat:fontStrikeOut()
|
|
RETURN Qt_QTextCharFormat_fontStrikeOut( ::pPtr )
|
|
|
|
|
|
METHOD QTextCharFormat:fontStyleHint()
|
|
RETURN Qt_QTextCharFormat_fontStyleHint( ::pPtr )
|
|
|
|
|
|
METHOD QTextCharFormat:fontStyleStrategy()
|
|
RETURN Qt_QTextCharFormat_fontStyleStrategy( ::pPtr )
|
|
|
|
|
|
METHOD QTextCharFormat:fontUnderline()
|
|
RETURN Qt_QTextCharFormat_fontUnderline( ::pPtr )
|
|
|
|
|
|
METHOD QTextCharFormat:fontWeight()
|
|
RETURN Qt_QTextCharFormat_fontWeight( ::pPtr )
|
|
|
|
|
|
METHOD QTextCharFormat:fontWordSpacing()
|
|
RETURN Qt_QTextCharFormat_fontWordSpacing( ::pPtr )
|
|
|
|
|
|
METHOD QTextCharFormat:isAnchor()
|
|
RETURN Qt_QTextCharFormat_isAnchor( ::pPtr )
|
|
|
|
|
|
METHOD QTextCharFormat:isValid()
|
|
RETURN Qt_QTextCharFormat_isValid( ::pPtr )
|
|
|
|
|
|
METHOD QTextCharFormat:setAnchor( lAnchor )
|
|
RETURN Qt_QTextCharFormat_setAnchor( ::pPtr, lAnchor )
|
|
|
|
|
|
METHOD QTextCharFormat:setAnchorHref( cValue )
|
|
RETURN Qt_QTextCharFormat_setAnchorHref( ::pPtr, cValue )
|
|
|
|
|
|
METHOD QTextCharFormat:setAnchorNames( pNames )
|
|
RETURN Qt_QTextCharFormat_setAnchorNames( ::pPtr, hbqt_ptr( pNames ) )
|
|
|
|
|
|
METHOD QTextCharFormat:setFont( pFont )
|
|
RETURN Qt_QTextCharFormat_setFont( ::pPtr, hbqt_ptr( pFont ) )
|
|
|
|
|
|
METHOD QTextCharFormat:setFontCapitalization( nCapitalization )
|
|
RETURN Qt_QTextCharFormat_setFontCapitalization( ::pPtr, nCapitalization )
|
|
|
|
|
|
METHOD QTextCharFormat:setFontFamily( cFamily )
|
|
RETURN Qt_QTextCharFormat_setFontFamily( ::pPtr, cFamily )
|
|
|
|
|
|
METHOD QTextCharFormat:setFontFixedPitch( lFixedPitch )
|
|
RETURN Qt_QTextCharFormat_setFontFixedPitch( ::pPtr, lFixedPitch )
|
|
|
|
|
|
METHOD QTextCharFormat:setFontItalic( lItalic )
|
|
RETURN Qt_QTextCharFormat_setFontItalic( ::pPtr, lItalic )
|
|
|
|
|
|
METHOD QTextCharFormat:setFontKerning( lEnable )
|
|
RETURN Qt_QTextCharFormat_setFontKerning( ::pPtr, lEnable )
|
|
|
|
|
|
METHOD QTextCharFormat:setFontLetterSpacing( nSpacing )
|
|
RETURN Qt_QTextCharFormat_setFontLetterSpacing( ::pPtr, nSpacing )
|
|
|
|
|
|
METHOD QTextCharFormat:setFontOverline( lOverline )
|
|
RETURN Qt_QTextCharFormat_setFontOverline( ::pPtr, lOverline )
|
|
|
|
|
|
METHOD QTextCharFormat:setFontPointSize( nSize )
|
|
RETURN Qt_QTextCharFormat_setFontPointSize( ::pPtr, nSize )
|
|
|
|
|
|
METHOD QTextCharFormat:setFontStrikeOut( lStrikeOut )
|
|
RETURN Qt_QTextCharFormat_setFontStrikeOut( ::pPtr, lStrikeOut )
|
|
|
|
|
|
METHOD QTextCharFormat:setFontStyleHint( nHint, nStrategy )
|
|
RETURN Qt_QTextCharFormat_setFontStyleHint( ::pPtr, nHint, nStrategy )
|
|
|
|
|
|
METHOD QTextCharFormat:setFontStyleStrategy( nStrategy )
|
|
RETURN Qt_QTextCharFormat_setFontStyleStrategy( ::pPtr, nStrategy )
|
|
|
|
|
|
METHOD QTextCharFormat:setFontUnderline( lUnderline )
|
|
RETURN Qt_QTextCharFormat_setFontUnderline( ::pPtr, lUnderline )
|
|
|
|
|
|
METHOD QTextCharFormat:setFontWeight( nWeight )
|
|
RETURN Qt_QTextCharFormat_setFontWeight( ::pPtr, nWeight )
|
|
|
|
|
|
METHOD QTextCharFormat:setFontWordSpacing( nSpacing )
|
|
RETURN Qt_QTextCharFormat_setFontWordSpacing( ::pPtr, nSpacing )
|
|
|
|
|
|
METHOD QTextCharFormat:setTextOutline( pPen )
|
|
RETURN Qt_QTextCharFormat_setTextOutline( ::pPtr, hbqt_ptr( pPen ) )
|
|
|
|
|
|
METHOD QTextCharFormat:setToolTip( cText )
|
|
RETURN Qt_QTextCharFormat_setToolTip( ::pPtr, cText )
|
|
|
|
|
|
METHOD QTextCharFormat:setUnderlineColor( pColor )
|
|
RETURN Qt_QTextCharFormat_setUnderlineColor( ::pPtr, hbqt_ptr( pColor ) )
|
|
|
|
|
|
METHOD QTextCharFormat:setUnderlineStyle( nStyle )
|
|
RETURN Qt_QTextCharFormat_setUnderlineStyle( ::pPtr, nStyle )
|
|
|
|
|
|
METHOD QTextCharFormat:setVerticalAlignment( nAlignment )
|
|
RETURN Qt_QTextCharFormat_setVerticalAlignment( ::pPtr, nAlignment )
|
|
|
|
|
|
METHOD QTextCharFormat:textOutline()
|
|
RETURN Qt_QTextCharFormat_textOutline( ::pPtr )
|
|
|
|
|
|
METHOD QTextCharFormat:toolTip()
|
|
RETURN Qt_QTextCharFormat_toolTip( ::pPtr )
|
|
|
|
|
|
METHOD QTextCharFormat:underlineColor()
|
|
RETURN Qt_QTextCharFormat_underlineColor( ::pPtr )
|
|
|
|
|
|
METHOD QTextCharFormat:underlineStyle()
|
|
RETURN Qt_QTextCharFormat_underlineStyle( ::pPtr )
|
|
|
|
|
|
METHOD QTextCharFormat:verticalAlignment()
|
|
RETURN Qt_QTextCharFormat_verticalAlignment( ::pPtr )
|
|
|