Files
harbour-core/harbour/contrib/hbqt/qtgui/qth/QTableView.qth
Pritpal Bedi 5614f62a18 2012-05-31 23:32 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtgui/qth/QApplication.qth
  * contrib/hbqt/qtgui/qth/QColorDialog.qth
  * contrib/hbqt/qtgui/qth/QDirModel.qth
  * contrib/hbqt/qtgui/qth/QHBoxLayout.qth
  * contrib/hbqt/qtgui/qth/QPageSetupDialog.qth
  * contrib/hbqt/qtgui/qth/QScrollBar.qth
  * contrib/hbqt/qtgui/qth/QTableView.qth
  * contrib/hbqt/qtgui/qth/QVBoxLayout.qth
  * contrib/hbqt/qtgui/qth/QWizard.qth
    ! Fixed: constructors which was basically wrong way to get a 
      class object. This became visible only when QPointer< QClass >
      guard is eliminated which was hiding this wrong way.

  * contrib/hbqt/hbmk2_qt.hb
  * contrib/hbqt/qtcore/hbqt.h
  + contrib/hbqt/qtcore/hbqt_bind.cpp
  + contrib/hbqt/qtcore/hbqt_obj.prg
  * contrib/hbqt/qtcore/hbqt_pointer.cpp
  * contrib/hbqt/qtcore/hbqtcore.hbm
  * contrib/hbqt/qtcore/hbqtcore.hbx
    + Implemented Przemek's draft concept with some changes.
      This can be invoked by uncommenting #define __HBQT_REVAMP__
      directive in hbqt.h and hbmk2_qt.hb and recompiling hbQT.

  ; NOTE: all demo tests in contrib/hbqt/tests/* are working ok with new 
          revamped engine, which, I hope will be matured with time, and 
          only if Przemek will revive his interest in this project.
          The demos are working ok with a GPF on exit. I did not 
          tried hard to track but hopefully will be a minor issue.
          This implementation is not taking use of QPointer<> guard
          and is operational on pure pointers, it has discovered
          a fundamental flaw in some of the .qth where constructors
          were not adhering to primary rules. It may take me a while 
          to visit all the classes and make the correction. Today's
          implementation has fixes for those classes which are used
          in demo programs.

          This commit became essential in the wake of divided thoughts 
          about having two implementations in parallel. This commit 
          shows the way that we do not need that, just few changes in 
          core engine will establish the solid foundation.
2012-06-01 07:04:17 +00:00

90 lines
2.2 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 = QAbstractItemView
New = pParent
</CLASS>
<SUBCLASS>
</SUBCLASS>
<CODE>
#include <QtGui/QTableView>
/*
* QTableView ( QWidget * parent = 0 )
* ~QTableView ()
*/
HB_FUNC( QT_QTABLEVIEW )
{
if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QWIDGET" ) )
{
__HB_RETPTRGC__( new QTableView( hbqt_par_QWidget( 1 ) ) );
}
else
{
__HB_RETPTRGC__( new QTableView() );
}
}
</CODE>
<PROTOS>
void clearSpans ()
int columnAt ( int x ) const
int columnSpan ( int row, int column ) const
int columnViewportPosition ( int column ) const
int columnWidth ( int column ) const
Qt::PenStyle gridStyle () const
QHeaderView * horizontalHeader () const
virtual QModelIndex indexAt ( const QPoint & pos ) const
bool isColumnHidden ( int column ) const
bool isCornerButtonEnabled () const
bool isRowHidden ( int row ) const
bool isSortingEnabled () const
int rowAt ( int y ) const
int rowHeight ( int row ) const
int rowSpan ( int row, int column ) const
int rowViewportPosition ( int row ) const
void setColumnHidden ( int column, bool hide )
void setColumnWidth ( int column, int width )
void setCornerButtonEnabled ( bool enable )
void setGridStyle ( Qt::PenStyle style )
void setHorizontalHeader ( QHeaderView * header )
void setRowHeight ( int row, int height )
void setRowHidden ( int row, bool hide )
void setSortingEnabled ( bool enable )
void setSpan ( int row, int column, int rowSpanCount, int columnSpanCount )
void setVerticalHeader ( QHeaderView * header )
void setWordWrap ( bool on )
bool showGrid () const
void sortByColumn ( int column, Qt::SortOrder order )
QHeaderView * verticalHeader () const
bool wordWrap () const
</PROTOS>
<SLOTS>
void hideColumn ( int column )
void hideRow ( int row )
void resizeColumnToContents ( int column )
void resizeColumnsToContents ()
void resizeRowToContents ( int row )
void resizeRowsToContents ()
void selectColumn ( int column )
void selectRow ( int row )
void setShowGrid ( bool show )
void showColumn ( int column )
void showRow ( int row )
</SLOTS>