Files
harbour-core/harbour/contrib/hbqt/qtgui/qth/QBoxLayout.qth
Pritpal Bedi 20fb885d09 2012-07-02 02:14 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtgui/qth/QBoxLayout.qth
  * contrib/hbqt/qtgui/qth/QComboBox.qth
  * contrib/hbqt/qtgui/qth/QDirModel.qth
  * contrib/hbqt/qtgui/qth/QDockWidget.qth
  * contrib/hbqt/qtgui/qth/QDrag.qth
  * contrib/hbqt/qtgui/qth/QGraphicsScene.qth
  * contrib/hbqt/qtgui/qth/QGridLayout.qth
  * contrib/hbqt/qtgui/qth/QLayout.qth
  * contrib/hbqt/qtgui/qth/QMainWindow.qth
  * contrib/hbqt/qtgui/qth/QMenu.qth
  * contrib/hbqt/qtgui/qth/QMenuBar.qth
  * contrib/hbqt/qtgui/qth/QScrollArea.qth
  * contrib/hbqt/qtgui/qth/QStandardItemModel.qth
  * contrib/hbqt/qtgui/qth/QStatusBar.qth
  * contrib/hbqt/qtgui/qth/QTabWidget.qth
  * contrib/hbqt/qtgui/qth/QToolBar.qth
  * contrib/hbqt/qtgui/qth/QTreeWidgetItem.qth
  * contrib/hbqt/qtgui/qth/QWidget.qth
    % Replaced: [*D=n*] => [*X=n*] except for 
        QTreeWidget/QListWidget/QTableWidget as per the change 
        in core engine where deletion of a Qt object is entirely
        thought of on new grounds.

  * contrib/hbqt/tests/demoqt.prg
    ! Optimizations and removal of redundant code.

  * contrib/hbqt/qtcore/hbqt.h
  * contrib/hbqt/qtcore/hbqt_bind.cpp
  * contrib/hbqt/qtcore/hbqt_destroyer.cpp
  * contrib/hbqt/qtcore/hbqt_destroyer.h
    + Overhauled: the Qt object destruction protocol.
       This commit is the result of two weeks intensive debugging
       spree. This commits now handles MT applications better 
       then before. This commit also covers the mem leaks evident 
       for certain widgets.

    WARNING: regression is possible, please report.
2012-07-02 09:34:50 +00:00

70 lines
1.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 = QLayout
New = nDirection, pParent
</CLASS>
<CODE>
#include <QtGui/QBoxLayout>
/*
* QBoxLayout ( Direction dir, QWidget * parent = 0 )
* ~QBoxLayout ()
*/
HB_FUNC( QT_QBOXLAYOUT )
{
if( hb_pcount() == 1 && HB_ISNUM( 1 ) )
{
__HB_RETPTRGC__( new QBoxLayout( ( QBoxLayout::Direction ) hb_parni( 1 ) ) );
}
else if( hb_pcount() == 2 && HB_ISNUM( 1 ) && hbqt_par_isDerivedFrom( 2, "QWIDGET" ) )
{
__HB_RETPTRGC__( new QBoxLayout( ( QBoxLayout::Direction ) 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 Direction { LeftToRight, RightToLeft, TopToBottom, BottomToTop }
</ENUMS>
<PROTOS>
void addLayout ( QLayout * layout, int stretch = 0 ) [*X=1*]
void addSpacerItem ( QSpacerItem * spacerItem ) [*X=1*]
void addSpacing ( int size )
void addStretch ( int stretch = 0 )
void addStrut ( int size )
void addWidget ( QWidget * widget, int stretch = 0, Qt::Alignment alignment = 0 ) [*X=1*]
Direction direction () const
void insertLayout ( int index, QLayout * layout, int stretch = 0 )
void insertSpacerItem ( int index, QSpacerItem * spacerItem )
void insertSpacing ( int index, int size )
void insertStretch ( int index, int stretch = 0 )
void insertWidget ( int index, QWidget * widget, int stretch = 0, Qt::Alignment alignment = 0 )
virtual void invalidate ()
void setDirection ( Direction direction )
void setSpacing ( int spacing )
void setStretch ( int index, int stretch )
bool setStretchFactor ( QWidget * widget, int stretch )
bool setStretchFactor ( QLayout * layout, int stretch )
int spacing () const
int stretch ( int index ) const
</PROTOS>