Files
harbour-core/harbour/contrib/hbqt/qtgui/TQFileDialog.prg
Pritpal Bedi 665579dcda 2010-01-16 22:29 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* 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.
2010-01-17 07:11:24 +00:00

307 lines
8.8 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 QFileDialog INHERIT HbQtObjectHandler, QDialog
METHOD new( ... )
METHOD acceptMode()
METHOD confirmOverwrite()
METHOD defaultSuffix()
METHOD directory()
METHOD fileMode()
METHOD filter()
METHOD history()
METHOD iconProvider()
METHOD isNameFilterDetailsVisible()
METHOD isReadOnly()
METHOD itemDelegate()
METHOD labelText( nLabel )
METHOD nameFilters()
METHOD options()
METHOD proxyModel()
METHOD resolveSymlinks()
METHOD restoreState( pState )
METHOD saveState()
METHOD selectFile( cFilename )
METHOD selectNameFilter( cFilter )
METHOD selectedFiles()
METHOD selectedNameFilter()
METHOD setAcceptMode( nMode )
METHOD setConfirmOverwrite( lEnabled )
METHOD setDefaultSuffix( cSuffix )
METHOD setDirectory( cDirectory )
METHOD setDirectory_1( pDirectory )
METHOD setFileMode( nMode )
METHOD setFilter( nFilters )
METHOD setHistory( pPaths )
METHOD setIconProvider( pProvider )
METHOD setItemDelegate( pDelegate )
METHOD setLabelText( nLabel, cText )
METHOD setNameFilter( cFilter )
METHOD setNameFilterDetailsVisible( lEnabled )
METHOD setNameFilters( pFilters )
METHOD setOption( nOption, lOn )
METHOD setOptions( nOptions )
METHOD setProxyModel( pProxyModel )
METHOD setReadOnly( lEnabled )
METHOD setResolveSymlinks( lEnabled )
METHOD setViewMode( nMode )
METHOD testOption( nOption )
METHOD viewMode()
METHOD getExistingDirectory( pParent, cCaption, cDir, nOptions )
ENDCLASS
METHOD QFileDialog:new( ... )
LOCAL p
FOR EACH p IN { ... }
hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) )
NEXT
::pPtr := Qt_QFileDialog( ... )
RETURN Self
METHOD QFileDialog:acceptMode()
RETURN Qt_QFileDialog_acceptMode( ::pPtr )
METHOD QFileDialog:confirmOverwrite()
RETURN Qt_QFileDialog_confirmOverwrite( ::pPtr )
METHOD QFileDialog:defaultSuffix()
RETURN Qt_QFileDialog_defaultSuffix( ::pPtr )
METHOD QFileDialog:directory()
RETURN Qt_QFileDialog_directory( ::pPtr )
METHOD QFileDialog:fileMode()
RETURN Qt_QFileDialog_fileMode( ::pPtr )
METHOD QFileDialog:filter()
RETURN Qt_QFileDialog_filter( ::pPtr )
METHOD QFileDialog:history()
RETURN Qt_QFileDialog_history( ::pPtr )
METHOD QFileDialog:iconProvider()
RETURN Qt_QFileDialog_iconProvider( ::pPtr )
METHOD QFileDialog:isNameFilterDetailsVisible()
RETURN Qt_QFileDialog_isNameFilterDetailsVisible( ::pPtr )
METHOD QFileDialog:isReadOnly()
RETURN Qt_QFileDialog_isReadOnly( ::pPtr )
METHOD QFileDialog:itemDelegate()
RETURN Qt_QFileDialog_itemDelegate( ::pPtr )
METHOD QFileDialog:labelText( nLabel )
RETURN Qt_QFileDialog_labelText( ::pPtr, nLabel )
METHOD QFileDialog:nameFilters()
RETURN Qt_QFileDialog_nameFilters( ::pPtr )
METHOD QFileDialog:options()
RETURN Qt_QFileDialog_options( ::pPtr )
METHOD QFileDialog:proxyModel()
RETURN Qt_QFileDialog_proxyModel( ::pPtr )
METHOD QFileDialog:resolveSymlinks()
RETURN Qt_QFileDialog_resolveSymlinks( ::pPtr )
METHOD QFileDialog:restoreState( pState )
RETURN Qt_QFileDialog_restoreState( ::pPtr, hbqt_ptr( pState ) )
METHOD QFileDialog:saveState()
RETURN Qt_QFileDialog_saveState( ::pPtr )
METHOD QFileDialog:selectFile( cFilename )
RETURN Qt_QFileDialog_selectFile( ::pPtr, cFilename )
METHOD QFileDialog:selectNameFilter( cFilter )
RETURN Qt_QFileDialog_selectNameFilter( ::pPtr, cFilter )
METHOD QFileDialog:selectedFiles()
RETURN Qt_QFileDialog_selectedFiles( ::pPtr )
METHOD QFileDialog:selectedNameFilter()
RETURN Qt_QFileDialog_selectedNameFilter( ::pPtr )
METHOD QFileDialog:setAcceptMode( nMode )
RETURN Qt_QFileDialog_setAcceptMode( ::pPtr, nMode )
METHOD QFileDialog:setConfirmOverwrite( lEnabled )
RETURN Qt_QFileDialog_setConfirmOverwrite( ::pPtr, lEnabled )
METHOD QFileDialog:setDefaultSuffix( cSuffix )
RETURN Qt_QFileDialog_setDefaultSuffix( ::pPtr, cSuffix )
METHOD QFileDialog:setDirectory( cDirectory )
RETURN Qt_QFileDialog_setDirectory( ::pPtr, cDirectory )
METHOD QFileDialog:setDirectory_1( pDirectory )
RETURN Qt_QFileDialog_setDirectory_1( ::pPtr, hbqt_ptr( pDirectory ) )
METHOD QFileDialog:setFileMode( nMode )
RETURN Qt_QFileDialog_setFileMode( ::pPtr, nMode )
METHOD QFileDialog:setFilter( nFilters )
RETURN Qt_QFileDialog_setFilter( ::pPtr, nFilters )
METHOD QFileDialog:setHistory( pPaths )
RETURN Qt_QFileDialog_setHistory( ::pPtr, hbqt_ptr( pPaths ) )
METHOD QFileDialog:setIconProvider( pProvider )
RETURN Qt_QFileDialog_setIconProvider( ::pPtr, hbqt_ptr( pProvider ) )
METHOD QFileDialog:setItemDelegate( pDelegate )
RETURN Qt_QFileDialog_setItemDelegate( ::pPtr, hbqt_ptr( pDelegate ) )
METHOD QFileDialog:setLabelText( nLabel, cText )
RETURN Qt_QFileDialog_setLabelText( ::pPtr, nLabel, cText )
METHOD QFileDialog:setNameFilter( cFilter )
RETURN Qt_QFileDialog_setNameFilter( ::pPtr, cFilter )
METHOD QFileDialog:setNameFilterDetailsVisible( lEnabled )
RETURN Qt_QFileDialog_setNameFilterDetailsVisible( ::pPtr, lEnabled )
METHOD QFileDialog:setNameFilters( pFilters )
RETURN Qt_QFileDialog_setNameFilters( ::pPtr, hbqt_ptr( pFilters ) )
METHOD QFileDialog:setOption( nOption, lOn )
RETURN Qt_QFileDialog_setOption( ::pPtr, nOption, lOn )
METHOD QFileDialog:setOptions( nOptions )
RETURN Qt_QFileDialog_setOptions( ::pPtr, nOptions )
METHOD QFileDialog:setProxyModel( pProxyModel )
RETURN Qt_QFileDialog_setProxyModel( ::pPtr, hbqt_ptr( pProxyModel ) )
METHOD QFileDialog:setReadOnly( lEnabled )
RETURN Qt_QFileDialog_setReadOnly( ::pPtr, lEnabled )
METHOD QFileDialog:setResolveSymlinks( lEnabled )
RETURN Qt_QFileDialog_setResolveSymlinks( ::pPtr, lEnabled )
METHOD QFileDialog:setViewMode( nMode )
RETURN Qt_QFileDialog_setViewMode( ::pPtr, nMode )
METHOD QFileDialog:testOption( nOption )
RETURN Qt_QFileDialog_testOption( ::pPtr, nOption )
METHOD QFileDialog:viewMode()
RETURN Qt_QFileDialog_viewMode( ::pPtr )
METHOD QFileDialog:getExistingDirectory( pParent, cCaption, cDir, nOptions )
RETURN Qt_QFileDialog_getExistingDirectory( ::pPtr, hbqt_ptr( pParent ), cCaption, cDir, nOptions )