Files
harbour-core/harbour/contrib/hbqt/qtgui/QMessageBox.cpp
Pritpal Bedi 0a890614e5 2010-04-16 07:28 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/qtcore/*.cpp
  * contrib/hbqt/qtgui/*.cpp
  * contrib/hbqt/qtnetwork/*.cpp
    * Regenerated Code. Details in next commit.
2010-04-16 14:46:00 +00:00

703 lines
25 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-2010 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 "../hbqt.h"
/*----------------------------------------------------------------------*/
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
/*
* enum ButtonRole { InvalidRole, AcceptRole, RejectRole, DestructiveRole, ..., ResetRole }
* enum Icon { NoIcon, Question, Information, Warning, Critical }
* enum StandardButton { Ok, Open, Save, Cancel, ..., ButtonMask }
* flags StandardButtons
*/
/*
* Constructed[ 38/39 [ 97.44% ] ]
*
* *** Unconvered Prototypes ***
* -----------------------------
*
* QList<QAbstractButton *> buttons () const
*/
#include <QtCore/QPointer>
#include <QtGui/QMessageBox>
/*
* QMessageBox ( QWidget * parent = 0 )
* QMessageBox ( Icon icon, const QString & title, const QString & text, StandardButtons buttons = NoButton, QWidget * parent = 0, Qt::WindowFlags f = Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint )
* ~QMessageBox ()
*/
typedef struct
{
QPointer< QMessageBox > ph;
bool bNew;
QT_G_FUNC_PTR func;
} QGC_POINTER_QMessageBox;
QT_G_FUNC( hbqt_gcRelease_QMessageBox )
{
QMessageBox * ph = NULL ;
QGC_POINTER_QMessageBox * p = ( QGC_POINTER_QMessageBox * ) Cargo;
if( p && p->bNew && p->ph )
{
ph = p->ph;
if( ph )
{
const QMetaObject * m = ( ph )->metaObject();
if( ( QString ) m->className() != ( QString ) "QObject" )
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_QMessageBox /.\\ ", (void*) ph, (void*) p->ph ) );
delete ( p->ph );
HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_QMessageBox \\./ ", (void*) ph, (void*) p->ph ) );
p->ph = NULL;
}
else
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NO__rel_QMessageBox ", ph ) );
p->ph = NULL;
}
}
else
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p DEL_rel_QMessageBox : Object already deleted!", ph ) );
p->ph = NULL;
}
}
else
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p PTR_rel_QMessageBox : Object not created with new=true", ph ) );
p->ph = NULL;
}
}
void * hbqt_gcAllocate_QMessageBox( void * pObj, bool bNew )
{
QGC_POINTER_QMessageBox * p = ( QGC_POINTER_QMessageBox * ) hb_gcAllocate( sizeof( QGC_POINTER_QMessageBox ), hbqt_gcFuncs() );
new( & p->ph ) QPointer< QMessageBox >( ( QMessageBox * ) pObj );
p->bNew = bNew;
p->func = hbqt_gcRelease_QMessageBox;
if( bNew )
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QMessageBox under p->pq", pObj ) );
}
else
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QMessageBox", pObj ) );
}
return p;
}
HB_FUNC( QT_QMESSAGEBOX )
{
QMessageBox * pObj = NULL;
pObj = new QMessageBox() ;
hb_retptrGC( hbqt_gcAllocate_QMessageBox( ( void * ) pObj, true ) );
}
/*
* void addButton ( QAbstractButton * button, ButtonRole role )
*/
HB_FUNC( QT_QMESSAGEBOX_ADDBUTTON )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
( p )->addButton( hbqt_par_QAbstractButton( 2 ), ( QMessageBox::ButtonRole ) hb_parni( 3 ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_ADDBUTTON FP=( p )->addButton( hbqt_par_QAbstractButton( 2 ), ( QMessageBox::ButtonRole ) hb_parni( 3 ) ); p is NULL" ) );
}
}
/*
* QPushButton * addButton ( const QString & text, ButtonRole role )
*/
HB_FUNC( QT_QMESSAGEBOX_ADDBUTTON_1 )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
hb_retptrGC( hbqt_gcAllocate_QPushButton( ( p )->addButton( QMessageBox::tr( hb_parc( 2 ) ), ( QMessageBox::ButtonRole ) hb_parni( 3 ) ), false ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_ADDBUTTON_1 FP=hb_retptrGC( hbqt_gcAllocate_QPushButton( ( p )->addButton( QMessageBox::tr( hb_parc( 2 ) ), ( QMessageBox::ButtonRole ) hb_parni( 3 ) ), false ) ); p is NULL" ) );
}
}
/*
* QPushButton * addButton ( StandardButton button )
*/
HB_FUNC( QT_QMESSAGEBOX_ADDBUTTON_2 )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
hb_retptrGC( hbqt_gcAllocate_QPushButton( ( p )->addButton( ( QMessageBox::StandardButton ) hb_parni( 2 ) ), false ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_ADDBUTTON_2 FP=hb_retptrGC( hbqt_gcAllocate_QPushButton( ( p )->addButton( ( QMessageBox::StandardButton ) hb_parni( 2 ) ), false ) ); p is NULL" ) );
}
}
/*
* QAbstractButton * button ( StandardButton which ) const
*/
HB_FUNC( QT_QMESSAGEBOX_BUTTON )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
hb_retptrGC( hbqt_gcAllocate_QAbstractButton( ( p )->button( ( QMessageBox::StandardButton ) hb_parni( 2 ) ), false ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_BUTTON FP=hb_retptrGC( hbqt_gcAllocate_QAbstractButton( ( p )->button( ( QMessageBox::StandardButton ) hb_parni( 2 ) ), false ) ); p is NULL" ) );
}
}
/*
* ButtonRole buttonRole ( QAbstractButton * button ) const
*/
HB_FUNC( QT_QMESSAGEBOX_BUTTONROLE )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
hb_retni( ( QMessageBox::ButtonRole ) ( p )->buttonRole( hbqt_par_QAbstractButton( 2 ) ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_BUTTONROLE FP=hb_retni( ( QMessageBox::ButtonRole ) ( p )->buttonRole( hbqt_par_QAbstractButton( 2 ) ) ); p is NULL" ) );
}
}
/*
* QAbstractButton * clickedButton () const
*/
HB_FUNC( QT_QMESSAGEBOX_CLICKEDBUTTON )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
hb_retptrGC( hbqt_gcAllocate_QAbstractButton( ( p )->clickedButton(), false ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_CLICKEDBUTTON FP=hb_retptrGC( hbqt_gcAllocate_QAbstractButton( ( p )->clickedButton(), false ) ); p is NULL" ) );
}
}
/*
* QPushButton * defaultButton () const
*/
HB_FUNC( QT_QMESSAGEBOX_DEFAULTBUTTON )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
hb_retptrGC( hbqt_gcAllocate_QPushButton( ( p )->defaultButton(), false ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_DEFAULTBUTTON FP=hb_retptrGC( hbqt_gcAllocate_QPushButton( ( p )->defaultButton(), false ) ); p is NULL" ) );
}
}
/*
* QString detailedText () const
*/
HB_FUNC( QT_QMESSAGEBOX_DETAILEDTEXT )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
hb_retc( ( p )->detailedText().toAscii().data() );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_DETAILEDTEXT FP=hb_retc( ( p )->detailedText().toAscii().data() ); p is NULL" ) );
}
}
/*
* QAbstractButton * escapeButton () const
*/
HB_FUNC( QT_QMESSAGEBOX_ESCAPEBUTTON )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
hb_retptrGC( hbqt_gcAllocate_QAbstractButton( ( p )->escapeButton(), false ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_ESCAPEBUTTON FP=hb_retptrGC( hbqt_gcAllocate_QAbstractButton( ( p )->escapeButton(), false ) ); p is NULL" ) );
}
}
/*
* Icon icon () const
*/
HB_FUNC( QT_QMESSAGEBOX_ICON )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
hb_retni( ( QMessageBox::Icon ) ( p )->icon() );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_ICON FP=hb_retni( ( QMessageBox::Icon ) ( p )->icon() ); p is NULL" ) );
}
}
/*
* QPixmap iconPixmap () const
*/
HB_FUNC( QT_QMESSAGEBOX_ICONPIXMAP )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
hb_retptrGC( hbqt_gcAllocate_QPixmap( new QPixmap( ( p )->iconPixmap() ), true ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_ICONPIXMAP FP=hb_retptrGC( hbqt_gcAllocate_QPixmap( new QPixmap( ( p )->iconPixmap() ), true ) ); p is NULL" ) );
}
}
/*
* QString informativeText () const
*/
HB_FUNC( QT_QMESSAGEBOX_INFORMATIVETEXT )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
hb_retc( ( p )->informativeText().toAscii().data() );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_INFORMATIVETEXT FP=hb_retc( ( p )->informativeText().toAscii().data() ); p is NULL" ) );
}
}
/*
* void open ( QObject * receiver, const char * member )
*/
HB_FUNC( QT_QMESSAGEBOX_OPEN )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
( p )->open( hbqt_par_QObject( 2 ), hbqt_par_char( 3 ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_OPEN FP=( p )->open( hbqt_par_QObject( 2 ), hbqt_par_char( 3 ) ); p is NULL" ) );
}
}
/*
* void removeButton ( QAbstractButton * button )
*/
HB_FUNC( QT_QMESSAGEBOX_REMOVEBUTTON )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
( p )->removeButton( hbqt_par_QAbstractButton( 2 ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_REMOVEBUTTON FP=( p )->removeButton( hbqt_par_QAbstractButton( 2 ) ); p is NULL" ) );
}
}
/*
* void setDefaultButton ( QPushButton * button )
*/
HB_FUNC( QT_QMESSAGEBOX_SETDEFAULTBUTTON )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
( p )->setDefaultButton( hbqt_par_QPushButton( 2 ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_SETDEFAULTBUTTON FP=( p )->setDefaultButton( hbqt_par_QPushButton( 2 ) ); p is NULL" ) );
}
}
/*
* void setDefaultButton ( StandardButton button )
*/
HB_FUNC( QT_QMESSAGEBOX_SETDEFAULTBUTTON_1 )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
( p )->setDefaultButton( ( QMessageBox::StandardButton ) hb_parni( 2 ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_SETDEFAULTBUTTON_1 FP=( p )->setDefaultButton( ( QMessageBox::StandardButton ) hb_parni( 2 ) ); p is NULL" ) );
}
}
/*
* void setDetailedText ( const QString & text )
*/
HB_FUNC( QT_QMESSAGEBOX_SETDETAILEDTEXT )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
( p )->setDetailedText( QMessageBox::tr( hb_parc( 2 ) ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_SETDETAILEDTEXT FP=( p )->setDetailedText( QMessageBox::tr( hb_parc( 2 ) ) ); p is NULL" ) );
}
}
/*
* void setEscapeButton ( QAbstractButton * button )
*/
HB_FUNC( QT_QMESSAGEBOX_SETESCAPEBUTTON )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
( p )->setEscapeButton( hbqt_par_QAbstractButton( 2 ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_SETESCAPEBUTTON FP=( p )->setEscapeButton( hbqt_par_QAbstractButton( 2 ) ); p is NULL" ) );
}
}
/*
* void setEscapeButton ( StandardButton button )
*/
HB_FUNC( QT_QMESSAGEBOX_SETESCAPEBUTTON_1 )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
( p )->setEscapeButton( ( QMessageBox::StandardButton ) hb_parni( 2 ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_SETESCAPEBUTTON_1 FP=( p )->setEscapeButton( ( QMessageBox::StandardButton ) hb_parni( 2 ) ); p is NULL" ) );
}
}
/*
* void setIcon ( Icon )
*/
HB_FUNC( QT_QMESSAGEBOX_SETICON )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
( p )->setIcon( ( QMessageBox::Icon ) hb_parni( 2 ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_SETICON FP=( p )->setIcon( ( QMessageBox::Icon ) hb_parni( 2 ) ); p is NULL" ) );
}
}
/*
* void setIconPixmap ( const QPixmap & pixmap )
*/
HB_FUNC( QT_QMESSAGEBOX_SETICONPIXMAP )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
( p )->setIconPixmap( *hbqt_par_QPixmap( 2 ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_SETICONPIXMAP FP=( p )->setIconPixmap( *hbqt_par_QPixmap( 2 ) ); p is NULL" ) );
}
}
/*
* void setInformativeText ( const QString & text )
*/
HB_FUNC( QT_QMESSAGEBOX_SETINFORMATIVETEXT )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
( p )->setInformativeText( QMessageBox::tr( hb_parc( 2 ) ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_SETINFORMATIVETEXT FP=( p )->setInformativeText( QMessageBox::tr( hb_parc( 2 ) ) ); p is NULL" ) );
}
}
/*
* void setStandardButtons ( StandardButtons buttons )
*/
HB_FUNC( QT_QMESSAGEBOX_SETSTANDARDBUTTONS )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
( p )->setStandardButtons( ( QMessageBox::StandardButtons ) hb_parni( 2 ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_SETSTANDARDBUTTONS FP=( p )->setStandardButtons( ( QMessageBox::StandardButtons ) hb_parni( 2 ) ); p is NULL" ) );
}
}
/*
* void setText ( const QString & text )
*/
HB_FUNC( QT_QMESSAGEBOX_SETTEXT )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
( p )->setText( QMessageBox::tr( hb_parc( 2 ) ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_SETTEXT FP=( p )->setText( QMessageBox::tr( hb_parc( 2 ) ) ); p is NULL" ) );
}
}
/*
* void setTextFormat ( Qt::TextFormat format )
*/
HB_FUNC( QT_QMESSAGEBOX_SETTEXTFORMAT )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
( p )->setTextFormat( ( Qt::TextFormat ) hb_parni( 2 ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_SETTEXTFORMAT FP=( p )->setTextFormat( ( Qt::TextFormat ) hb_parni( 2 ) ); p is NULL" ) );
}
}
/*
* void setWindowModality ( Qt::WindowModality windowModality )
*/
HB_FUNC( QT_QMESSAGEBOX_SETWINDOWMODALITY )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
( p )->setWindowModality( ( Qt::WindowModality ) hb_parni( 2 ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_SETWINDOWMODALITY FP=( p )->setWindowModality( ( Qt::WindowModality ) hb_parni( 2 ) ); p is NULL" ) );
}
}
/*
* void setWindowTitle ( const QString & title )
*/
HB_FUNC( QT_QMESSAGEBOX_SETWINDOWTITLE )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
( p )->setWindowTitle( QMessageBox::tr( hb_parc( 2 ) ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_SETWINDOWTITLE FP=( p )->setWindowTitle( QMessageBox::tr( hb_parc( 2 ) ) ); p is NULL" ) );
}
}
/*
* StandardButton standardButton ( QAbstractButton * button ) const
*/
HB_FUNC( QT_QMESSAGEBOX_STANDARDBUTTON )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
hb_retni( ( QMessageBox::StandardButton ) ( p )->standardButton( hbqt_par_QAbstractButton( 2 ) ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_STANDARDBUTTON FP=hb_retni( ( QMessageBox::StandardButton ) ( p )->standardButton( hbqt_par_QAbstractButton( 2 ) ) ); p is NULL" ) );
}
}
/*
* StandardButtons standardButtons () const
*/
HB_FUNC( QT_QMESSAGEBOX_STANDARDBUTTONS )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
hb_retni( ( QMessageBox::StandardButtons ) ( p )->standardButtons() );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_STANDARDBUTTONS FP=hb_retni( ( QMessageBox::StandardButtons ) ( p )->standardButtons() ); p is NULL" ) );
}
}
/*
* QString text () const
*/
HB_FUNC( QT_QMESSAGEBOX_TEXT )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
hb_retc( ( p )->text().toAscii().data() );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_TEXT FP=hb_retc( ( p )->text().toAscii().data() ); p is NULL" ) );
}
}
/*
* Qt::TextFormat textFormat () const
*/
HB_FUNC( QT_QMESSAGEBOX_TEXTFORMAT )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
hb_retni( ( Qt::TextFormat ) ( p )->textFormat() );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_TEXTFORMAT FP=hb_retni( ( Qt::TextFormat ) ( p )->textFormat() ); p is NULL" ) );
}
}
/*
* void about ( QWidget * parent, const QString & title, const QString & text )
*/
HB_FUNC( QT_QMESSAGEBOX_ABOUT )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
( p )->about( hbqt_par_QWidget( 2 ), QMessageBox::tr( hb_parc( 3 ) ), QMessageBox::tr( hb_parc( 4 ) ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_ABOUT FP=( p )->about( hbqt_par_QWidget( 2 ), QMessageBox::tr( hb_parc( 3 ) ), QMessageBox::tr( hb_parc( 4 ) ) ); p is NULL" ) );
}
}
/*
* void aboutQt ( QWidget * parent, const QString & title = QString() )
*/
HB_FUNC( QT_QMESSAGEBOX_ABOUTQT )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
( p )->aboutQt( hbqt_par_QWidget( 2 ), QMessageBox::tr( hb_parc( 3 ) ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_ABOUTQT FP=( p )->aboutQt( hbqt_par_QWidget( 2 ), QMessageBox::tr( hb_parc( 3 ) ) ); p is NULL" ) );
}
}
/*
* StandardButton critical ( QWidget * parent, const QString & title, const QString & text, StandardButtons buttons = Ok, StandardButton defaultButton = NoButton )
*/
HB_FUNC( QT_QMESSAGEBOX_CRITICAL )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
hb_retni( ( QMessageBox::StandardButton ) ( p )->critical( hbqt_par_QWidget( 2 ), QMessageBox::tr( hb_parc( 3 ) ), QMessageBox::tr( hb_parc( 4 ) ), ( HB_ISNUM( 5 ) ? ( QMessageBox::StandardButtons ) hb_parni( 5 ) : ( QMessageBox::StandardButtons ) QMessageBox::Ok ), ( HB_ISNUM( 6 ) ? ( QMessageBox::StandardButton ) hb_parni( 6 ) : ( QMessageBox::StandardButton ) QMessageBox::NoButton ) ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_CRITICAL FP=hb_retni( ( QMessageBox::StandardButton ) ( p )->critical( hbqt_par_QWidget( 2 ), QMessageBox::tr( hb_parc( 3 ) ), QMessageBox::tr( hb_parc( 4 ) ), ( HB_ISNUM( 5 ) ? ( QMessageBox::StandardButtons ) hb_parni( 5 ) : ( QMessageBox::StandardButtons ) QMessageBox::Ok ), ( HB_ISNUM( 6 ) ? ( QMessageBox::StandardButton ) hb_parni( 6 ) : ( QMessageBox::StandardButton ) QMessageBox::NoButton ) ) ); p is NULL" ) );
}
}
/*
* StandardButton information ( QWidget * parent, const QString & title, const QString & text, StandardButtons buttons = Ok, StandardButton defaultButton = NoButton )
*/
HB_FUNC( QT_QMESSAGEBOX_INFORMATION )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
hb_retni( ( QMessageBox::StandardButton ) ( p )->information( hbqt_par_QWidget( 2 ), QMessageBox::tr( hb_parc( 3 ) ), QMessageBox::tr( hb_parc( 4 ) ), ( HB_ISNUM( 5 ) ? ( QMessageBox::StandardButtons ) hb_parni( 5 ) : ( QMessageBox::StandardButtons ) QMessageBox::Ok ), ( HB_ISNUM( 6 ) ? ( QMessageBox::StandardButton ) hb_parni( 6 ) : ( QMessageBox::StandardButton ) QMessageBox::NoButton ) ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_INFORMATION FP=hb_retni( ( QMessageBox::StandardButton ) ( p )->information( hbqt_par_QWidget( 2 ), QMessageBox::tr( hb_parc( 3 ) ), QMessageBox::tr( hb_parc( 4 ) ), ( HB_ISNUM( 5 ) ? ( QMessageBox::StandardButtons ) hb_parni( 5 ) : ( QMessageBox::StandardButtons ) QMessageBox::Ok ), ( HB_ISNUM( 6 ) ? ( QMessageBox::StandardButton ) hb_parni( 6 ) : ( QMessageBox::StandardButton ) QMessageBox::NoButton ) ) ); p is NULL" ) );
}
}
/*
* StandardButton question ( QWidget * parent, const QString & title, const QString & text, StandardButtons buttons = Ok, StandardButton defaultButton = NoButton )
*/
HB_FUNC( QT_QMESSAGEBOX_QUESTION )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
hb_retni( ( QMessageBox::StandardButton ) ( p )->question( hbqt_par_QWidget( 2 ), QMessageBox::tr( hb_parc( 3 ) ), QMessageBox::tr( hb_parc( 4 ) ), ( HB_ISNUM( 5 ) ? ( QMessageBox::StandardButtons ) hb_parni( 5 ) : ( QMessageBox::StandardButtons ) QMessageBox::Ok ), ( HB_ISNUM( 6 ) ? ( QMessageBox::StandardButton ) hb_parni( 6 ) : ( QMessageBox::StandardButton ) QMessageBox::NoButton ) ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_QUESTION FP=hb_retni( ( QMessageBox::StandardButton ) ( p )->question( hbqt_par_QWidget( 2 ), QMessageBox::tr( hb_parc( 3 ) ), QMessageBox::tr( hb_parc( 4 ) ), ( HB_ISNUM( 5 ) ? ( QMessageBox::StandardButtons ) hb_parni( 5 ) : ( QMessageBox::StandardButtons ) QMessageBox::Ok ), ( HB_ISNUM( 6 ) ? ( QMessageBox::StandardButton ) hb_parni( 6 ) : ( QMessageBox::StandardButton ) QMessageBox::NoButton ) ) ); p is NULL" ) );
}
}
/*
* StandardButton warning ( QWidget * parent, const QString & title, const QString & text, StandardButtons buttons = Ok, StandardButton defaultButton = NoButton )
*/
HB_FUNC( QT_QMESSAGEBOX_WARNING )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
hb_retni( ( QMessageBox::StandardButton ) ( p )->warning( hbqt_par_QWidget( 2 ), QMessageBox::tr( hb_parc( 3 ) ), QMessageBox::tr( hb_parc( 4 ) ), ( HB_ISNUM( 5 ) ? ( QMessageBox::StandardButtons ) hb_parni( 5 ) : ( QMessageBox::StandardButtons ) QMessageBox::Ok ), ( HB_ISNUM( 6 ) ? ( QMessageBox::StandardButton ) hb_parni( 6 ) : ( QMessageBox::StandardButton ) QMessageBox::NoButton ) ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_WARNING FP=hb_retni( ( QMessageBox::StandardButton ) ( p )->warning( hbqt_par_QWidget( 2 ), QMessageBox::tr( hb_parc( 3 ) ), QMessageBox::tr( hb_parc( 4 ) ), ( HB_ISNUM( 5 ) ? ( QMessageBox::StandardButtons ) hb_parni( 5 ) : ( QMessageBox::StandardButtons ) QMessageBox::Ok ), ( HB_ISNUM( 6 ) ? ( QMessageBox::StandardButton ) hb_parni( 6 ) : ( QMessageBox::StandardButton ) QMessageBox::NoButton ) ) ); p is NULL" ) );
}
}
/*
* int exec ()
*/
HB_FUNC( QT_QMESSAGEBOX_EXEC )
{
QMessageBox * p = hbqt_par_QMessageBox( 1 );
if( p )
hb_retni( ( p )->exec() );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QMESSAGEBOX_EXEC FP=hb_retni( ( p )->exec() ); p is NULL" ) );
}
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/