* 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.
372 lines
10 KiB
Plaintext
372 lines
10 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 QTextCursor INHERIT HbQtObjectHandler
|
|
|
|
METHOD new( ... )
|
|
|
|
METHOD anchor()
|
|
METHOD atBlockEnd()
|
|
METHOD atBlockStart()
|
|
METHOD atEnd()
|
|
METHOD atStart()
|
|
METHOD beginEditBlock()
|
|
METHOD block()
|
|
METHOD blockCharFormat()
|
|
METHOD blockFormat()
|
|
METHOD blockNumber()
|
|
METHOD charFormat()
|
|
METHOD clearSelection()
|
|
METHOD columnNumber()
|
|
METHOD createList( pFormat )
|
|
METHOD createList_1( nStyle )
|
|
METHOD currentFrame()
|
|
METHOD currentList()
|
|
METHOD deleteChar()
|
|
METHOD deletePreviousChar()
|
|
METHOD document()
|
|
METHOD endEditBlock()
|
|
METHOD hasComplexSelection()
|
|
METHOD hasSelection()
|
|
METHOD insertBlock()
|
|
METHOD insertBlock_1( pFormat )
|
|
METHOD insertBlock_2( pFormat, pCharFormat )
|
|
METHOD insertFragment( pFragment )
|
|
METHOD insertFrame( pFormat )
|
|
METHOD insertHtml( cHtml )
|
|
METHOD insertImage( cName )
|
|
METHOD insertImage_1( pFormat )
|
|
METHOD insertImage_2( pFormat, nAlignment )
|
|
METHOD insertImage_3( pImage, cName )
|
|
METHOD insertList( pFormat )
|
|
METHOD insertList_1( nStyle )
|
|
METHOD insertText( cText )
|
|
METHOD insertText_1( cText, pFormat )
|
|
METHOD isCopyOf( pOther )
|
|
METHOD isNull()
|
|
METHOD joinPreviousEditBlock()
|
|
METHOD mergeBlockCharFormat( pModifier )
|
|
METHOD mergeBlockFormat( pModifier )
|
|
METHOD mergeCharFormat( pModifier )
|
|
METHOD movePosition( nOperation, nMode, nN )
|
|
METHOD position()
|
|
METHOD removeSelectedText()
|
|
METHOD select( nSelection )
|
|
METHOD selectedTableCells( nFirstRow, nNumRows, nFirstColumn, nNumColumns )
|
|
METHOD selectedText()
|
|
METHOD selection()
|
|
METHOD selectionEnd()
|
|
METHOD selectionStart()
|
|
METHOD setBlockCharFormat( pFormat )
|
|
METHOD setBlockFormat( pFormat )
|
|
METHOD setCharFormat( pFormat )
|
|
METHOD setPosition( nPos, nM )
|
|
METHOD setVisualNavigation( lB )
|
|
METHOD visualNavigation()
|
|
|
|
ENDCLASS
|
|
|
|
|
|
METHOD QTextCursor:new( ... )
|
|
LOCAL p
|
|
FOR EACH p IN { ... }
|
|
hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) )
|
|
NEXT
|
|
::pPtr := Qt_QTextCursor( ... )
|
|
RETURN Self
|
|
|
|
|
|
METHOD QTextCursor:anchor()
|
|
RETURN Qt_QTextCursor_anchor( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:atBlockEnd()
|
|
RETURN Qt_QTextCursor_atBlockEnd( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:atBlockStart()
|
|
RETURN Qt_QTextCursor_atBlockStart( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:atEnd()
|
|
RETURN Qt_QTextCursor_atEnd( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:atStart()
|
|
RETURN Qt_QTextCursor_atStart( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:beginEditBlock()
|
|
RETURN Qt_QTextCursor_beginEditBlock( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:block()
|
|
RETURN Qt_QTextCursor_block( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:blockCharFormat()
|
|
RETURN Qt_QTextCursor_blockCharFormat( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:blockFormat()
|
|
RETURN Qt_QTextCursor_blockFormat( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:blockNumber()
|
|
RETURN Qt_QTextCursor_blockNumber( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:charFormat()
|
|
RETURN Qt_QTextCursor_charFormat( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:clearSelection()
|
|
RETURN Qt_QTextCursor_clearSelection( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:columnNumber()
|
|
RETURN Qt_QTextCursor_columnNumber( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:createList( pFormat )
|
|
RETURN Qt_QTextCursor_createList( ::pPtr, hbqt_ptr( pFormat ) )
|
|
|
|
|
|
METHOD QTextCursor:createList_1( nStyle )
|
|
RETURN Qt_QTextCursor_createList_1( ::pPtr, nStyle )
|
|
|
|
|
|
METHOD QTextCursor:currentFrame()
|
|
RETURN Qt_QTextCursor_currentFrame( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:currentList()
|
|
RETURN Qt_QTextCursor_currentList( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:deleteChar()
|
|
RETURN Qt_QTextCursor_deleteChar( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:deletePreviousChar()
|
|
RETURN Qt_QTextCursor_deletePreviousChar( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:document()
|
|
RETURN Qt_QTextCursor_document( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:endEditBlock()
|
|
RETURN Qt_QTextCursor_endEditBlock( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:hasComplexSelection()
|
|
RETURN Qt_QTextCursor_hasComplexSelection( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:hasSelection()
|
|
RETURN Qt_QTextCursor_hasSelection( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:insertBlock()
|
|
RETURN Qt_QTextCursor_insertBlock( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:insertBlock_1( pFormat )
|
|
RETURN Qt_QTextCursor_insertBlock_1( ::pPtr, hbqt_ptr( pFormat ) )
|
|
|
|
|
|
METHOD QTextCursor:insertBlock_2( pFormat, pCharFormat )
|
|
RETURN Qt_QTextCursor_insertBlock_2( ::pPtr, hbqt_ptr( pFormat ), hbqt_ptr( pCharFormat ) )
|
|
|
|
|
|
METHOD QTextCursor:insertFragment( pFragment )
|
|
RETURN Qt_QTextCursor_insertFragment( ::pPtr, hbqt_ptr( pFragment ) )
|
|
|
|
|
|
METHOD QTextCursor:insertFrame( pFormat )
|
|
RETURN Qt_QTextCursor_insertFrame( ::pPtr, hbqt_ptr( pFormat ) )
|
|
|
|
|
|
METHOD QTextCursor:insertHtml( cHtml )
|
|
RETURN Qt_QTextCursor_insertHtml( ::pPtr, cHtml )
|
|
|
|
|
|
METHOD QTextCursor:insertImage( cName )
|
|
RETURN Qt_QTextCursor_insertImage( ::pPtr, cName )
|
|
|
|
|
|
METHOD QTextCursor:insertImage_1( pFormat )
|
|
RETURN Qt_QTextCursor_insertImage_1( ::pPtr, hbqt_ptr( pFormat ) )
|
|
|
|
|
|
METHOD QTextCursor:insertImage_2( pFormat, nAlignment )
|
|
RETURN Qt_QTextCursor_insertImage_2( ::pPtr, hbqt_ptr( pFormat ), nAlignment )
|
|
|
|
|
|
METHOD QTextCursor:insertImage_3( pImage, cName )
|
|
RETURN Qt_QTextCursor_insertImage_3( ::pPtr, hbqt_ptr( pImage ), cName )
|
|
|
|
|
|
METHOD QTextCursor:insertList( pFormat )
|
|
RETURN Qt_QTextCursor_insertList( ::pPtr, hbqt_ptr( pFormat ) )
|
|
|
|
|
|
METHOD QTextCursor:insertList_1( nStyle )
|
|
RETURN Qt_QTextCursor_insertList_1( ::pPtr, nStyle )
|
|
|
|
|
|
METHOD QTextCursor:insertText( cText )
|
|
RETURN Qt_QTextCursor_insertText( ::pPtr, cText )
|
|
|
|
|
|
METHOD QTextCursor:insertText_1( cText, pFormat )
|
|
RETURN Qt_QTextCursor_insertText_1( ::pPtr, cText, hbqt_ptr( pFormat ) )
|
|
|
|
|
|
METHOD QTextCursor:isCopyOf( pOther )
|
|
RETURN Qt_QTextCursor_isCopyOf( ::pPtr, hbqt_ptr( pOther ) )
|
|
|
|
|
|
METHOD QTextCursor:isNull()
|
|
RETURN Qt_QTextCursor_isNull( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:joinPreviousEditBlock()
|
|
RETURN Qt_QTextCursor_joinPreviousEditBlock( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:mergeBlockCharFormat( pModifier )
|
|
RETURN Qt_QTextCursor_mergeBlockCharFormat( ::pPtr, hbqt_ptr( pModifier ) )
|
|
|
|
|
|
METHOD QTextCursor:mergeBlockFormat( pModifier )
|
|
RETURN Qt_QTextCursor_mergeBlockFormat( ::pPtr, hbqt_ptr( pModifier ) )
|
|
|
|
|
|
METHOD QTextCursor:mergeCharFormat( pModifier )
|
|
RETURN Qt_QTextCursor_mergeCharFormat( ::pPtr, hbqt_ptr( pModifier ) )
|
|
|
|
|
|
METHOD QTextCursor:movePosition( nOperation, nMode, nN )
|
|
RETURN Qt_QTextCursor_movePosition( ::pPtr, nOperation, nMode, nN )
|
|
|
|
|
|
METHOD QTextCursor:position()
|
|
RETURN Qt_QTextCursor_position( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:removeSelectedText()
|
|
RETURN Qt_QTextCursor_removeSelectedText( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:select( nSelection )
|
|
RETURN Qt_QTextCursor_select( ::pPtr, nSelection )
|
|
|
|
|
|
METHOD QTextCursor:selectedTableCells( nFirstRow, nNumRows, nFirstColumn, nNumColumns )
|
|
RETURN Qt_QTextCursor_selectedTableCells( ::pPtr, nFirstRow, nNumRows, nFirstColumn, nNumColumns )
|
|
|
|
|
|
METHOD QTextCursor:selectedText()
|
|
RETURN Qt_QTextCursor_selectedText( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:selection()
|
|
RETURN Qt_QTextCursor_selection( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:selectionEnd()
|
|
RETURN Qt_QTextCursor_selectionEnd( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:selectionStart()
|
|
RETURN Qt_QTextCursor_selectionStart( ::pPtr )
|
|
|
|
|
|
METHOD QTextCursor:setBlockCharFormat( pFormat )
|
|
RETURN Qt_QTextCursor_setBlockCharFormat( ::pPtr, hbqt_ptr( pFormat ) )
|
|
|
|
|
|
METHOD QTextCursor:setBlockFormat( pFormat )
|
|
RETURN Qt_QTextCursor_setBlockFormat( ::pPtr, hbqt_ptr( pFormat ) )
|
|
|
|
|
|
METHOD QTextCursor:setCharFormat( pFormat )
|
|
RETURN Qt_QTextCursor_setCharFormat( ::pPtr, hbqt_ptr( pFormat ) )
|
|
|
|
|
|
METHOD QTextCursor:setPosition( nPos, nM )
|
|
RETURN Qt_QTextCursor_setPosition( ::pPtr, nPos, nM )
|
|
|
|
|
|
METHOD QTextCursor:setVisualNavigation( lB )
|
|
RETURN Qt_QTextCursor_setVisualNavigation( ::pPtr, lB )
|
|
|
|
|
|
METHOD QTextCursor:visualNavigation()
|
|
RETURN Qt_QTextCursor_visualNavigation( ::pPtr )
|
|
|