465 lines
11 KiB
C++
465 lines
11 KiB
C++
/*
|
|
* $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 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 "hbapi.h"
|
|
#include "../hbqt.h"
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
#if QT_VERSION >= 0x040500
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
#include <QtCore/QPointer>
|
|
|
|
#include <QtGui/QTableView>
|
|
|
|
#include "../hbqt_slots.h"
|
|
|
|
/*
|
|
* QTableView ( QWidget * parent = 0 )
|
|
* ~QTableView ()
|
|
*/
|
|
|
|
HB_FUNC( QT_HBTABLEVIEW )
|
|
{
|
|
hb_retptr( new HbTableView( hbqt_par_QWidget( 1 ) ) );
|
|
}
|
|
|
|
HB_FUNC( QT_HBTABLEVIEW_NAVIGATE )
|
|
{
|
|
hb_retptr( new QModelIndex( hbqt_par_HbTableView( 1 )->navigate( hb_parni( 2 ) ) ) );
|
|
}
|
|
|
|
QT_G_FUNC( release_QTableView )
|
|
{
|
|
#if defined(__debug__)
|
|
hb_snprintf( str, sizeof(str), "release_QTableView" ); OutputDebugString( str );
|
|
#endif
|
|
void * ph = ( void * ) Cargo;
|
|
if( ph )
|
|
{
|
|
const QMetaObject * m = ( ( QObject * ) ph )->metaObject();
|
|
if( ( QString ) m->className() != ( QString ) "QObject" )
|
|
{
|
|
delete ( ( QTableView * ) ph );
|
|
ph = NULL;
|
|
}
|
|
else
|
|
{
|
|
#if defined(__debug__)
|
|
hb_snprintf( str, sizeof(str), " Object Name Missing: QTableView" ); OutputDebugString( str );
|
|
#endif
|
|
}
|
|
}
|
|
}
|
|
|
|
HB_FUNC( QT_QTABLEVIEW )
|
|
{
|
|
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
|
|
QPointer< QTableView > pObj = NULL;
|
|
|
|
pObj = ( QTableView* ) new QTableView( hbqt_par_QWidget( 1 ) ) ;
|
|
|
|
p->ph = pObj;
|
|
p->func = release_QTableView;
|
|
|
|
hb_retptrGC( p );
|
|
}
|
|
/*
|
|
* void clearSpans ()
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_CLEARSPANS )
|
|
{
|
|
hbqt_par_QTableView( 1 )->clearSpans();
|
|
}
|
|
|
|
/*
|
|
* int columnAt ( int x ) const
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_COLUMNAT )
|
|
{
|
|
hb_retni( hbqt_par_QTableView( 1 )->columnAt( hb_parni( 2 ) ) );
|
|
}
|
|
|
|
/*
|
|
* int columnSpan ( int row, int column ) const
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_COLUMNSPAN )
|
|
{
|
|
hb_retni( hbqt_par_QTableView( 1 )->columnSpan( hb_parni( 2 ), hb_parni( 3 ) ) );
|
|
}
|
|
|
|
/*
|
|
* int columnViewportPosition ( int column ) const
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_COLUMNVIEWPORTPOSITION )
|
|
{
|
|
hb_retni( hbqt_par_QTableView( 1 )->columnViewportPosition( hb_parni( 2 ) ) );
|
|
}
|
|
|
|
/*
|
|
* int columnWidth ( int column ) const
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_COLUMNWIDTH )
|
|
{
|
|
hb_retni( hbqt_par_QTableView( 1 )->columnWidth( hb_parni( 2 ) ) );
|
|
}
|
|
|
|
/*
|
|
* Qt::PenStyle gridStyle () const
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_GRIDSTYLE )
|
|
{
|
|
hb_retni( ( Qt::PenStyle ) hbqt_par_QTableView( 1 )->gridStyle() );
|
|
}
|
|
|
|
/*
|
|
* QHeaderView * horizontalHeader () const
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_HORIZONTALHEADER )
|
|
{
|
|
hb_retptr( ( QHeaderView* ) hbqt_par_QTableView( 1 )->horizontalHeader() );
|
|
}
|
|
|
|
/*
|
|
* virtual QModelIndex indexAt ( const QPoint & pos ) const
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_INDEXAT )
|
|
{
|
|
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QTableView( 1 )->indexAt( *hbqt_par_QPoint( 2 ) ) ), release_QModelIndex ) );
|
|
}
|
|
|
|
/*
|
|
* bool isColumnHidden ( int column ) const
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_ISCOLUMNHIDDEN )
|
|
{
|
|
hb_retl( hbqt_par_QTableView( 1 )->isColumnHidden( hb_parni( 2 ) ) );
|
|
}
|
|
|
|
/*
|
|
* bool isCornerButtonEnabled () const
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_ISCORNERBUTTONENABLED )
|
|
{
|
|
hb_retl( hbqt_par_QTableView( 1 )->isCornerButtonEnabled() );
|
|
}
|
|
|
|
/*
|
|
* bool isRowHidden ( int row ) const
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_ISROWHIDDEN )
|
|
{
|
|
hb_retl( hbqt_par_QTableView( 1 )->isRowHidden( hb_parni( 2 ) ) );
|
|
}
|
|
|
|
/*
|
|
* bool isSortingEnabled () const
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_ISSORTINGENABLED )
|
|
{
|
|
hb_retl( hbqt_par_QTableView( 1 )->isSortingEnabled() );
|
|
}
|
|
|
|
/*
|
|
* int rowAt ( int y ) const
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_ROWAT )
|
|
{
|
|
hb_retni( hbqt_par_QTableView( 1 )->rowAt( hb_parni( 2 ) ) );
|
|
}
|
|
|
|
/*
|
|
* int rowHeight ( int row ) const
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_ROWHEIGHT )
|
|
{
|
|
hb_retni( hbqt_par_QTableView( 1 )->rowHeight( hb_parni( 2 ) ) );
|
|
}
|
|
|
|
/*
|
|
* int rowSpan ( int row, int column ) const
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_ROWSPAN )
|
|
{
|
|
hb_retni( hbqt_par_QTableView( 1 )->rowSpan( hb_parni( 2 ), hb_parni( 3 ) ) );
|
|
}
|
|
|
|
/*
|
|
* int rowViewportPosition ( int row ) const
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_ROWVIEWPORTPOSITION )
|
|
{
|
|
hb_retni( hbqt_par_QTableView( 1 )->rowViewportPosition( hb_parni( 2 ) ) );
|
|
}
|
|
|
|
/*
|
|
* void setColumnHidden ( int column, bool hide )
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_SETCOLUMNHIDDEN )
|
|
{
|
|
hbqt_par_QTableView( 1 )->setColumnHidden( hb_parni( 2 ), hb_parl( 3 ) );
|
|
}
|
|
|
|
/*
|
|
* void setColumnWidth ( int column, int width )
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_SETCOLUMNWIDTH )
|
|
{
|
|
hbqt_par_QTableView( 1 )->setColumnWidth( hb_parni( 2 ), hb_parni( 3 ) );
|
|
}
|
|
|
|
/*
|
|
* void setCornerButtonEnabled ( bool enable )
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_SETCORNERBUTTONENABLED )
|
|
{
|
|
hbqt_par_QTableView( 1 )->setCornerButtonEnabled( hb_parl( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setGridStyle ( Qt::PenStyle style )
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_SETGRIDSTYLE )
|
|
{
|
|
hbqt_par_QTableView( 1 )->setGridStyle( ( Qt::PenStyle ) hb_parni( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setHorizontalHeader ( QHeaderView * header )
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_SETHORIZONTALHEADER )
|
|
{
|
|
hbqt_par_QTableView( 1 )->setHorizontalHeader( hbqt_par_QHeaderView( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setRowHeight ( int row, int height )
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_SETROWHEIGHT )
|
|
{
|
|
hbqt_par_QTableView( 1 )->setRowHeight( hb_parni( 2 ), hb_parni( 3 ) );
|
|
}
|
|
|
|
/*
|
|
* void setRowHidden ( int row, bool hide )
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_SETROWHIDDEN )
|
|
{
|
|
hbqt_par_QTableView( 1 )->setRowHidden( hb_parni( 2 ), hb_parl( 3 ) );
|
|
}
|
|
|
|
/*
|
|
* void setSortingEnabled ( bool enable )
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_SETSORTINGENABLED )
|
|
{
|
|
hbqt_par_QTableView( 1 )->setSortingEnabled( hb_parl( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setSpan ( int row, int column, int rowSpanCount, int columnSpanCount )
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_SETSPAN )
|
|
{
|
|
hbqt_par_QTableView( 1 )->setSpan( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ) );
|
|
}
|
|
|
|
/*
|
|
* void setVerticalHeader ( QHeaderView * header )
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_SETVERTICALHEADER )
|
|
{
|
|
hbqt_par_QTableView( 1 )->setVerticalHeader( hbqt_par_QHeaderView( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setWordWrap ( bool on )
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_SETWORDWRAP )
|
|
{
|
|
hbqt_par_QTableView( 1 )->setWordWrap( hb_parl( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* bool showGrid () const
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_SHOWGRID )
|
|
{
|
|
hb_retl( hbqt_par_QTableView( 1 )->showGrid() );
|
|
}
|
|
|
|
/*
|
|
* void sortByColumn ( int column, Qt::SortOrder order )
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_SORTBYCOLUMN )
|
|
{
|
|
hbqt_par_QTableView( 1 )->sortByColumn( hb_parni( 2 ), ( Qt::SortOrder ) hb_parni( 3 ) );
|
|
}
|
|
|
|
/*
|
|
* QHeaderView * verticalHeader () const
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_VERTICALHEADER )
|
|
{
|
|
hb_retptr( ( QHeaderView* ) hbqt_par_QTableView( 1 )->verticalHeader() );
|
|
}
|
|
|
|
/*
|
|
* bool wordWrap () const
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_WORDWRAP )
|
|
{
|
|
hb_retl( hbqt_par_QTableView( 1 )->wordWrap() );
|
|
}
|
|
|
|
/*
|
|
* void hideColumn ( int column )
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_HIDECOLUMN )
|
|
{
|
|
hbqt_par_QTableView( 1 )->hideColumn( hb_parni( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void hideRow ( int row )
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_HIDEROW )
|
|
{
|
|
hbqt_par_QTableView( 1 )->hideRow( hb_parni( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void resizeColumnToContents ( int column )
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_RESIZECOLUMNTOCONTENTS )
|
|
{
|
|
hbqt_par_QTableView( 1 )->resizeColumnToContents( hb_parni( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void resizeColumnsToContents ()
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_RESIZECOLUMNSTOCONTENTS )
|
|
{
|
|
hbqt_par_QTableView( 1 )->resizeColumnsToContents();
|
|
}
|
|
|
|
/*
|
|
* void resizeRowToContents ( int row )
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_RESIZEROWTOCONTENTS )
|
|
{
|
|
hbqt_par_QTableView( 1 )->resizeRowToContents( hb_parni( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void resizeRowsToContents ()
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_RESIZEROWSTOCONTENTS )
|
|
{
|
|
hbqt_par_QTableView( 1 )->resizeRowsToContents();
|
|
}
|
|
|
|
/*
|
|
* void selectColumn ( int column )
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_SELECTCOLUMN )
|
|
{
|
|
hbqt_par_QTableView( 1 )->selectColumn( hb_parni( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void selectRow ( int row )
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_SELECTROW )
|
|
{
|
|
hbqt_par_QTableView( 1 )->selectRow( hb_parni( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setShowGrid ( bool show )
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_SETSHOWGRID )
|
|
{
|
|
hbqt_par_QTableView( 1 )->setShowGrid( hb_parl( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void showColumn ( int column )
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_SHOWCOLUMN )
|
|
{
|
|
hbqt_par_QTableView( 1 )->showColumn( hb_parni( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void showRow ( int row )
|
|
*/
|
|
HB_FUNC( QT_QTABLEVIEW_SHOWROW )
|
|
{
|
|
hbqt_par_QTableView( 1 )->showRow( hb_parni( 2 ) );
|
|
}
|
|
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
#endif /* #if QT_VERSION >= 0x040500 */
|
|
/*----------------------------------------------------------------------*/
|