Files
harbour-core/harbour/contrib/hbqt/qtgui/qth/QHeaderView.qth
Pritpal Bedi aba6fd4905 2012-06-01 08:05 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtgui/qth/HBQTableView.qth
  * contrib/hbqt/qtgui/qth/QHeaderView.qth
  * contrib/hbqt/qtgui/qth/QListWidgetItem.qth
  * contrib/hbqt/qtgui/qth/QStatusBar.qth
  * contrib/hbqt/qtgui/qth/QTextDocument.qth
  * contrib/hbqt/qtgui/qth/QTreeWidgetItem.qth
    ! Fixed: constructors for few more classes. 
      Now contrib/hbxbp/demoxbp.prg shows up at least.
2012-06-01 15:08:44 +00:00

124 lines
3.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 = QAbstractItemView
New = pParent
</CLASS>
<CODE>
#include <QtGui/QHeaderView>
/*
* QHeaderView ( Qt::Orientation orientation, QWidget * parent = 0 )
* virtual ~QHeaderView ()
*/
HB_FUNC( QT_QHEADERVIEW )
{
if( hb_pcount() == 1 && HB_ISNUM( 1 ) )
{
__HB_RETPTRGC__( new QHeaderView( ( Qt::Orientation ) hb_parni( 1 ) ) );
}
else if( hb_pcount() == 2 && HB_ISNUM( 1 ) && hbqt_par_isDerivedFrom( 2, "QWIDGET" ) )
{
__HB_RETPTRGC__( new QHeaderView( ( Qt::Orientation ) hb_parni( 1 ), hbqt_par_QWidget( 2 ) ) );
}
else
{
hb_errRT_BASE( EG_ARG, 9999, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
}
}
</CODE>
<ENUMS>
enum ResizeMode { Interactive, Fixed, Stretch, ResizeToContents, Custom }
</ENUMS>
<PROTOS>
bool cascadingSectionResizes () const
int count () const
Qt::Alignment defaultAlignment () const
int defaultSectionSize () const
int hiddenSectionCount () const
void hideSection ( int logicalIndex )
bool highlightSections () const
bool isClickable () const
bool isMovable () const
bool isSectionHidden ( int logicalIndex ) const
bool isSortIndicatorShown () const
int length () const
int logicalIndex ( int visualIndex ) const
int logicalIndexAt ( int position ) const
int logicalIndexAt ( int x, int y ) const
int logicalIndexAt ( const QPoint & pos ) const
int minimumSectionSize () const
void moveSection ( int from, int to )
int offset () const
Qt::Orientation orientation () const
ResizeMode resizeMode ( int logicalIndex ) const
void resizeSection ( int logicalIndex, int size )
void resizeSections ( QHeaderView::ResizeMode mode )
bool restoreState ( const QByteArray & state )
QByteArray saveState () const
int sectionPosition ( int logicalIndex ) const
int sectionSize ( int logicalIndex ) const
int sectionSizeHint ( int logicalIndex ) const
int sectionViewportPosition ( int logicalIndex ) const
bool sectionsHidden () const
bool sectionsMoved () const
void setCascadingSectionResizes ( bool enable )
void setClickable ( bool clickable )
void setDefaultAlignment ( Qt::Alignment alignment )
void setDefaultSectionSize ( int size )
void setHighlightSections ( bool highlight )
void setMinimumSectionSize ( int size )
void setMovable ( bool movable )
void setResizeMode ( ResizeMode mode )
void setResizeMode ( int logicalIndex, ResizeMode mode )
void setSectionHidden ( int logicalIndex, bool hide )
void setSortIndicator ( int logicalIndex, Qt::SortOrder order )
void setSortIndicatorShown ( bool show )
void setStretchLastSection ( bool stretch )
void showSection ( int logicalIndex )
virtual QSize sizeHint () const
Qt::SortOrder sortIndicatorOrder () const
int sortIndicatorSection () const
bool stretchLastSection () const
int stretchSectionCount () const
void swapSections ( int first, int second )
int visualIndex ( int logicalIndex ) const
int visualIndexAt ( int position ) const
</PROTOS>
<SLOTS>
void headerDataChanged ( Qt::Orientation orientation, int logicalFirst, int logicalLast )
void setOffset ( int offset )
void setOffsetToLastSection ()
void setOffsetToSectionPosition ( int visualIndex )
</SLOTS>
<SIGNALS>
void geometriesChanged ()
void sectionAutoResize ( int logicalIndex, QHeaderView::ResizeMode mode )
void sectionClicked ( int logicalIndex )
void sectionCountChanged ( int oldCount, int newCount )
void sectionDoubleClicked ( int logicalIndex )
void sectionEntered ( int logicalIndex )
void sectionHandleDoubleClicked ( int logicalIndex )
void sectionMoved ( int logicalIndex, int oldVisualIndex, int newVisualIndex )
void sectionPressed ( int logicalIndex )
void sectionResized ( int logicalIndex, int oldSize, int newSize )
void sortIndicatorChanged ( int logicalIndex, Qt::SortOrder order )
</SIGNALS>