Files
harbour-core/harbour/contrib/hbqt/qtgui/qth/QFileSystemModel.qth
Pritpal Bedi b90666e364 2012-06-12 16:22 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/gtqtc/gtqtc.cpp
  
  * contrib/hbqt/hbmk2_qt.hb
  
  * contrib/hbqt/qtcore/hbqt.h
  * contrib/hbqt/qtcore/hbqt_bind.cpp
  * contrib/hbqt/qtcore/hbqt_hbqevents.cpp
  * contrib/hbqt/qtcore/hbqt_hbqslots.cpp
  * contrib/hbqt/qtcore/hbqt_init.cpp
  * contrib/hbqt/qtcore/hbqt_misc.prg
  * contrib/hbqt/qtcore/hbqt_pointer.cpp
  
  * contrib/hbqt/qtcore/qth/HBQEvents.qth
  * contrib/hbqt/qtcore/qth/HBQSlots.qth
  * contrib/hbqt/qtcore/qth/QLibraryInfo.qth
  * contrib/hbqt/qtcore/qth/QMimeData.qth
  
  * contrib/hbqt/qtgui/hbqt_hbqabstractitemmodel.cpp
  * contrib/hbqt/qtgui/hbqt_hbqgraphicsitem.cpp
  * contrib/hbqt/qtgui/hbqt_hbqgraphicsscene.cpp
  * contrib/hbqt/qtgui/hbqt_hbqplaintextedit.cpp
  * contrib/hbqt/qtgui/hbqt_hbqtableview.cpp
  * contrib/hbqt/qtgui/hbqt_init.cpp
  
  * contrib/hbqt/qtgui/qth/HBQAbstractItemModel.qth
  * contrib/hbqt/qtgui/qth/HBQGraphicsItem.qth
  * contrib/hbqt/qtgui/qth/HBQGraphicsScene.qth
  * contrib/hbqt/qtgui/qth/HBQPlainTextEdit.qth
  * contrib/hbqt/qtgui/qth/HBQTableView.qth
  * contrib/hbqt/qtgui/qth/QApplication.qth
  * contrib/hbqt/qtgui/qth/QClipboard.qth
  * contrib/hbqt/qtgui/qth/QDirModel.qth
  * contrib/hbqt/qtgui/qth/QDropEvent.qth
  * contrib/hbqt/qtgui/qth/QFileSystemModel.qth
  * contrib/hbqt/qtgui/qth/QGraphicsSceneDragDropEvent.qth
  
  * contrib/hbqt/qtnetwork/hbqt_init.cpp
  
  * contrib/hbqt/tests/draggable.prg
  
  * contrib/hbxbp/xbpbrowse.prg

  * contrib/hbide/ideedit.prg
  * contrib/hbide/idefindreplace.prg
    
    + Implemented: Revamped HBQT. 
        The complete code base has been cleaned as per new API
        and there is no leftover is kept inside the sources.
        All demos and hbIDE seems TO be working fine with few 
        exceptions here and there, but usually all seems fine.
        The only issue left, so far I can assess is that no object 
        is subject to destrution if a connect is issued onto that.
        And I have no idea how TO handle this situation. It is the 
        programmers responsibility to disconnect whenever an object 
        is supposed to go out of scope.
        
        TODO: still debug tracelog entries ( under HB_TR_DEBUG ) are 
              retained in hbqt_bind.c which are schduled TO be 
              removed once code base stabilizes enough.
2012-06-12 23:45:33 +00:00

98 lines
2.9 KiB
Plaintext

/*
* $Id$
*/
/*
* Harbour Qt wrapper generator control file
*
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
* www - http://www.harbour-project.org
*
* See COPYING for licensing terms.
*/
<CLASS>
Inherit = QAbstractItemModel
Type = Core
New =
</CLASS>
<CODE>
#include <QtGui/QFileSystemModel>
#include <QtCore/QDateTime>
/*
* QFileSystemModel ( QObject * parent = 0 )
* ~QFileSystemModel ()
*/
HB_FUNC( QT_QFILESYSTEMMODEL )
{
if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QOBJECT" ) )
{
__HB_RETPTRGC__( new QFileSystemModel( hbqt_par_QObject( 1 ) ) );
}
else
{
__HB_RETPTRGC__( new QFileSystemModel() );
}
}
</CODE>
<ENUMS>
enum Roles { FileIconRole, FilePathRole, FileNameRole, FilePermissions }
</ENUMS>
<PROTOS>
virtual bool dropMimeData ( const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent )
QIcon fileIcon ( const QModelIndex & index ) const
QFileInfo fileInfo ( const QModelIndex & index ) const
QString fileName ( const QModelIndex & index ) const
QString filePath ( const QModelIndex & index ) const
QDir::Filters filter () const
// QFileIconProvider * iconProvider () const
QModelIndex index ( const QString & path, int column = 0 ) const
bool isDir ( const QModelIndex & index ) const
bool isReadOnly () const
QDateTime lastModified ( const QModelIndex & index ) const
virtual QMimeData * mimeData ( const QModelIndexList & indexes ) const{
QFileSystemModel * p = ( QFileSystemModel * ) hbqt_par_ptr( 0 );
if( p )
{
hb_itemReturnRelease( hbqt_bindGetHbObject( NULL, ( void* ) p->mimeData( *hbqt_par_QModelIndexList( 1 ) ), "HB_QMIMEDATA", NULL, HBQT_BIT_NONE ) );
}
}
virtual QStringList mimeTypes () const
QModelIndex mkdir ( const QModelIndex & parent, const QString & name )
QVariant myComputer ( int role = Qt::DisplayRole ) const
bool nameFilterDisables () const
QStringList nameFilters () const
QFile::Permissions permissions ( const QModelIndex & index ) const
bool remove ( const QModelIndex & index ) const
bool resolveSymlinks () const
bool rmdir ( const QModelIndex & index ) const
QDir rootDirectory () const
QString rootPath () const
void setFilter ( QDir::Filters filters )
// void setIconProvider ( QFileIconProvider * provider )
void setNameFilterDisables ( bool enable )
void setNameFilters ( const QStringList & filters )
void setReadOnly ( bool enable )
void setResolveSymlinks ( bool enable )
QModelIndex setRootPath ( const QString & newPath )
qint64 size ( const QModelIndex & index ) const
QString type ( const QModelIndex & index ) const
</PROTOS>
<SLOTS>
</SLOTS>
<SIGNALS>
void fileRenamed ( const QString & path, const QString & oldName, const QString & newName )
void rootPathChanged ( const QString & newPath )
void directoryLoaded ( const QString & path ) [*V=0x040700*]
</SIGNALS>
<VARIABLES>
</VARIABLES>