2011-06-03 13:11 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)

* contrib/hbqt/qtgui/hbqtgui.hbx
  * contrib/hbqt/qtgui/qth/filelist.hbm
  * contrib/hbqt/qtgui/qth/QDialogButtonBox.qth
    + Added: QDialogButtonBox() class.
This commit is contained in:
Pritpal Bedi
2011-06-03 20:14:06 +00:00
parent 2c62a976c6
commit 883cb6c047
4 changed files with 143 additions and 0 deletions

View File

@@ -16,6 +16,12 @@
The license applies to all entries newer than 2009-04-28.
*/
2011-06-03 13:11 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtgui/hbqtgui.hbx
* contrib/hbqt/qtgui/qth/filelist.hbm
* contrib/hbqt/qtgui/qth/QDialogButtonBox.qth
+ Added: QDialogButtonBox() class.
2011-06-03 17:19 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/rddads/tests/datad.prg
! fixed 'field -> id' index expr which wasn't recognized by ADS

View File

@@ -80,6 +80,7 @@ DYNAMIC HB_QDESKTOPSERVICES
DYNAMIC HB_QDESKTOPWIDGET
DYNAMIC HB_QDIAL
DYNAMIC HB_QDIALOG
DYNAMIC HB_QDIALOGBUTTONBOX
DYNAMIC HB_QDIRMODEL
DYNAMIC HB_QDOCKWIDGET
DYNAMIC HB_QDOUBLESPINBOX
@@ -339,6 +340,7 @@ DYNAMIC QDESKTOPSERVICES
DYNAMIC QDESKTOPWIDGET
DYNAMIC QDIAL
DYNAMIC QDIALOG
DYNAMIC QDIALOGBUTTONBOX
DYNAMIC QDIRMODEL
DYNAMIC QDOCKWIDGET
DYNAMIC QDOUBLESPINBOX

View File

@@ -0,0 +1,134 @@
/*
* $Id$
*/
/*
* Harbour Project source code:
* QT Source Generator for Harbour
*
* Copyright 2009-2011 Pritpal Bedi <bedipritpal@hotmail.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.
*
*/
/*----------------------------------------------------------------------*/
;
; Header File to Generate QT Wrapper Sources
;
<CLASS>
QObject =
Inherit = QWidget
Type =
New =
</CLASS>
<CODE>
#include <QtGui/QDialogButtonBox>
/*
* QDialogButtonBox ( QWidget * parent = 0 )
* QDialogButtonBox ( Qt::Orientation orientation, QWidget * parent = 0 )
* QDialogButtonBox ( StandardButtons buttons, Qt::Orientation orientation = Qt::Horizontal, QWidget * parent = 0 )
* ~QDialogButtonBox ()
*/
HB_FUNC( QT_QDIALOGBUTTONBOX )
{
if( hb_pcount() == 1 && HB_ISOBJECT( 1 ) )
{
__HB_RETPTRGC__( new QDialogButtonBox( hbqt_par_QWidget( 1 ) ) );
}
else if( hb_pcount() >= 2 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) )
{
__HB_RETPTRGC__( new QDialogButtonBox( ( QDialogButtonBox::StandardButtons ) hb_parni( 1 ), ( Qt::Orientation ) hb_parni( 2 ), HB_ISOBJECT( 3 ) ? hbqt_par_QWidget( 3 ) : 0 ) );
}
else if( hb_pcount() >= 1 && HB_ISNUM( 1 ) )
{
__HB_RETPTRGC__( new QDialogButtonBox( ( Qt::Orientation ) hb_parni( 1 ), HB_ISOBJECT( 2 ) ? hbqt_par_QWidget( 2 ) : 0 ) );
}
else
{
__HB_RETPTRGC__( new QDialogButtonBox() );
}
}
</CODE>
<ENUMS>
enum ButtonLayout { WinLayout, MacLayout, KdeLayout, GnomeLayout }
enum ButtonRole { InvalidRole, AcceptRole, RejectRole, DestructiveRole, ..., ResetRole }
enum StandardButton { Ok, Open, Save, Cancel, ..., NoButton }
flags StandardButtons
</ENUMS>
<PROTOS>
void addButton ( QAbstractButton * button, ButtonRole role )
QPushButton * addButton ( const QString & text, ButtonRole role )
QPushButton * addButton ( StandardButton button )
QPushButton * button ( StandardButton which ) const
ButtonRole buttonRole ( QAbstractButton * button ) const
QList<QAbstractButton *> buttons () const
bool centerButtons () const
void clear ()
Qt::Orientation orientation () const
void removeButton ( QAbstractButton * button )
void setCenterButtons ( bool center )
void setOrientation ( Qt::Orientation orientation )
void setStandardButtons ( StandardButtons buttons )
StandardButton standardButton ( QAbstractButton * button ) const
StandardButtons standardButtons () const
</PROTOS>
<SLOTS>
</SLOTS>
<SIGNALS>
void accepted ()
void clicked ( QAbstractButton * button )
void helpRequested ()
void rejected ()
</SIGNALS>
<VARIABLES>
</VARIABLES>

View File

@@ -51,6 +51,7 @@ QDesktopServices.qth
QDesktopWidget.qth
QDial.qth
QDialog.qth
QDialogButtonBox.qth
QDirModel.qth
QDockWidget.qth
QDoubleSpinBox.qth