2010-09-07 21:00 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)

+ contrib/hbqt/qtgui/qth/QPrinterInfo.qth
    + Added: new class.

  + contrib/hbqt/qtgui/doc/en/class_qprinterinfo.txt
  + contrib/hbqt/qtgui/g/QPrinterInfo.cpp
  + contrib/hbqt/qtgui/g/TQPrinterInfo.prg
    + Auto-generated.

  * contrib/hbqt/qtgui/g/filelist.hbm
  * contrib/hbqt/qtgui/g/hbqtgui.h
  * contrib/hbqt/utils/qtgui.qtp
    + Added: QPrinterInfo() class.
This commit is contained in:
Pritpal Bedi
2010-09-08 04:03:54 +00:00
parent 55fbb9d988
commit c5d84a756f
8 changed files with 643 additions and 108 deletions

View File

@@ -16,6 +16,20 @@
The license applies to all entries newer than 2009-04-28.
*/
2010-09-07 21:00 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
+ contrib/hbqt/qtgui/qth/QPrinterInfo.qth
+ Added: new class.
+ contrib/hbqt/qtgui/doc/en/class_qprinterinfo.txt
+ contrib/hbqt/qtgui/g/QPrinterInfo.cpp
+ contrib/hbqt/qtgui/g/TQPrinterInfo.prg
+ Auto-generated.
* contrib/hbqt/qtgui/g/filelist.hbm
* contrib/hbqt/qtgui/g/hbqtgui.h
* contrib/hbqt/utils/qtgui.qtp
+ Added: QPrinterInfo() class.
2010-09-07 19:22 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/hbqreportsmanager.prg
+ Print Preview synchronized. Now many facts are under control.

View File

@@ -0,0 +1,55 @@
/*
* $Id$
*/
/* $DOC$
* $TEMPLATE$
* Class
* $NAME$
* QPrinterInfo()
* $CATEGORY$
* Harbour Bindings for Qt
* $SUBCATEGORY$
* GUI
* $EXTERNALLINK$
* http://doc.trolltech.com/4.5/qprinterinfo.html
* $ONELINER$
* Creates a new QPrinterInfo object.
* $INHERITS$
*
* $SYNTAX$
* QPrinterInfo():new( ... )
* QPrinterInfo():from( pPtr_OR_oObj_of_type_QPrinterInfo )
* QPrinterInfo():configure( pPtr_OR_oObj_of_type_QPrinterInfo )
* $ARGUMENTS$
*
* $RETURNS$
* An instance of the object of type QPrinterInfo
* $METHODS$
* :isDefault() -> lBool
* :isNull() -> lBool
* :printerName() -> cQString
* :availablePrinters() -> pQList<QPrinterInfo>
*
* $DESCRIPTION$
*
* $EXAMPLES$
*
* $TESTS$
*
* $STATUS$
* R
* $COMPLIANCE$
* Not Clipper compatible
* $PLATFORMS$
* Windows, Linux, Mac OS X, OS/2
* $VERSION$
* 4.5 or upper
* $FILES$
* Harbour source: contrib/hbqt/qtgui/TQPrinterInfo.prg
* C++ wrappers : contrib/hbqt/qtgui/QPrinterInfo.cpp
* Library : hbqtgui
* $SEEALSO$
*
* $END$
*/

View File

@@ -0,0 +1,237 @@
/*
* $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://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 "hbqtcore.h"
#include "hbqtgui.h"
/*----------------------------------------------------------------------*/
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
/*
* Constructed[ 5/6 [ 83.33% ] ]
*
* *** Unconvered Prototypes ***
* -----------------------------
*
* QList<QPrinter::PaperSize> supportedPaperSizes () const
*/
#include <QtCore/QPointer>
#include <QtGui/QPrinterInfo>
/*
* QPrinterInfo ()
* QPrinterInfo ( const QPrinterInfo & src )
* QPrinterInfo ( const QPrinter & printer )
* ~QPrinterInfo ()
*/
typedef struct
{
QPrinterInfo * ph;
bool bNew;
PHBQT_GC_FUNC func;
int type;
} HBQT_GC_T_QPrinterInfo;
HBQT_GC_FUNC( hbqt_gcRelease_QPrinterInfo )
{
HBQT_GC_T * p = ( HBQT_GC_T * ) Cargo;
if( p && p->bNew )
{
if( p->ph )
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _rel_QPrinterInfo /.\\", p->ph ) );
delete ( ( QPrinterInfo * ) p->ph );
HB_TRACE( HB_TR_DEBUG, ( "ph=%p YES_rel_QPrinterInfo \\./", p->ph ) );
p->ph = NULL;
}
else
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p DEL_rel_QPrinterInfo : Object already deleted!", p->ph ) );
p->ph = NULL;
}
}
else
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p PTR_rel_QPrinterInfo : Object not created with new=true", p->ph ) );
p->ph = NULL;
}
}
void * hbqt_gcAllocate_QPrinterInfo( void * pObj, bool bNew )
{
HBQT_GC_T * p = ( HBQT_GC_T * ) hb_gcAllocate( sizeof( HBQT_GC_T ), hbqt_gcFuncs() );
p->ph = ( QPrinterInfo * ) pObj;
p->bNew = bNew;
p->func = hbqt_gcRelease_QPrinterInfo;
p->type = HBQT_TYPE_QPrinterInfo;
if( bNew )
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QPrinterInfo", pObj ) );
}
else
{
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QPrinterInfo", pObj ) );
}
return p;
}
HB_FUNC( QT_QPRINTERINFO )
{
QPrinterInfo * pObj = NULL;
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
pObj = new QPrinterInfo( *hbqt_par_QPrinterInfo( 1 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
{
pObj = new QPrinterInfo( *hbqt_par_QPrinter( 2 ) ) ;
}
else
{
pObj = new QPrinterInfo() ;
}
hb_retptrGC( hbqt_gcAllocate_QPrinterInfo( ( void * ) pObj, true ) );
}
/*
* bool isDefault () const
*/
HB_FUNC( QT_QPRINTERINFO_ISDEFAULT )
{
QPrinterInfo * p = hbqt_par_QPrinterInfo( 1 );
if( p )
hb_retl( ( p )->isDefault() );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QPRINTERINFO_ISDEFAULT FP=hb_retl( ( p )->isDefault() ); p is NULL" ) );
}
}
/*
* bool isNull () const
*/
HB_FUNC( QT_QPRINTERINFO_ISNULL )
{
QPrinterInfo * p = hbqt_par_QPrinterInfo( 1 );
if( p )
hb_retl( ( p )->isNull() );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QPRINTERINFO_ISNULL FP=hb_retl( ( p )->isNull() ); p is NULL" ) );
}
}
/*
* QString printerName () const
*/
HB_FUNC( QT_QPRINTERINFO_PRINTERNAME )
{
QPrinterInfo * p = hbqt_par_QPrinterInfo( 1 );
if( p )
hb_retc( ( p )->printerName().toAscii().data() );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QPRINTERINFO_PRINTERNAME FP=hb_retc( ( p )->printerName().toAscii().data() ); p is NULL" ) );
}
}
/*
* QList<QPrinterInfo> availablePrinters ()
*/
HB_FUNC( QT_QPRINTERINFO_AVAILABLEPRINTERS )
{
QPrinterInfo * p = hbqt_par_QPrinterInfo( 1 );
if( p )
hb_retptrGC( hbqt_gcAllocate_QList( new QList<QPrinterInfo>( ( p )->availablePrinters() ), true ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QPRINTERINFO_AVAILABLEPRINTERS FP=hb_retptrGC( hbqt_gcAllocate_QList( new QList<QPrinterInfo>( ( p )->availablePrinters() ), true ) ); p is NULL" ) );
}
}
/*
* QPrinterInfo defaultPrinter ()
*/
HB_FUNC( QT_QPRINTERINFO_DEFAULTPRINTER )
{
QPrinterInfo * p = hbqt_par_QPrinterInfo( 1 );
if( p )
hb_retptrGC( hbqt_gcAllocate_QPrinterInfo( new QPrinterInfo( ( p )->defaultPrinter() ), true ) );
else
{
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QPRINTERINFO_DEFAULTPRINTER FP=hb_retptrGC( hbqt_gcAllocate_QPrinterInfo( new QPrinterInfo( ( p )->defaultPrinter() ), true ) ); p is NULL" ) );
}
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -0,0 +1,106 @@
/*
* $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://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 "hbclass.ch"
CREATE CLASS QPrinterInfo INHERIT HbQtObjectHandler
METHOD new( ... )
METHOD isDefault()
METHOD isNull()
METHOD printerName()
METHOD availablePrinters()
METHOD defaultPrinter()
ENDCLASS
METHOD QPrinterInfo:new( ... )
LOCAL p
FOR EACH p IN { ... }
hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) )
NEXT
::pPtr := Qt_QPrinterInfo( ... )
RETURN Self
METHOD QPrinterInfo:isDefault()
RETURN Qt_QPrinterInfo_isDefault( ::pPtr )
METHOD QPrinterInfo:isNull()
RETURN Qt_QPrinterInfo_isNull( ::pPtr )
METHOD QPrinterInfo:printerName()
RETURN Qt_QPrinterInfo_printerName( ::pPtr )
METHOD QPrinterInfo:availablePrinters()
RETURN Qt_QPrinterInfo_availablePrinters( ::pPtr )
METHOD QPrinterInfo:defaultPrinter()
RETURN Qt_QPrinterInfo_defaultPrinter( ::pPtr )

View File

@@ -160,6 +160,7 @@ QPolygonF.cpp
QPrintDialog.cpp
QPrintEngine.cpp
QPrinter.cpp
QPrinterInfo.cpp
QPrintPreviewDialog.cpp
QProgressBar.cpp
QProgressDialog.cpp
@@ -420,6 +421,7 @@ TQPolygonF.prg
TQPrintDialog.prg
TQPrintEngine.prg
TQPrinter.prg
TQPrinterInfo.prg
TQPrintPreviewDialog.prg
TQProgressBar.prg
TQProgressDialog.prg

View File

@@ -166,6 +166,7 @@ extern HB_EXPORT HBQT_GC_FUNC( hbqt_gcRelease_QPolygonF );
extern HB_EXPORT HBQT_GC_FUNC( hbqt_gcRelease_QPrintDialog );
extern HB_EXPORT HBQT_GC_FUNC( hbqt_gcRelease_QPrintEngine );
extern HB_EXPORT HBQT_GC_FUNC( hbqt_gcRelease_QPrinter );
extern HB_EXPORT HBQT_GC_FUNC( hbqt_gcRelease_QPrinterInfo );
extern HB_EXPORT HBQT_GC_FUNC( hbqt_gcRelease_QPrintPreviewDialog );
extern HB_EXPORT HBQT_GC_FUNC( hbqt_gcRelease_QProgressBar );
extern HB_EXPORT HBQT_GC_FUNC( hbqt_gcRelease_QProgressDialog );
@@ -426,6 +427,7 @@ extern HB_EXPORT void * hbqt_gcAllocate_QPolygonF( void * pObj, bool bNew );
extern HB_EXPORT void * hbqt_gcAllocate_QPrintDialog( void * pObj, bool bNew );
extern HB_EXPORT void * hbqt_gcAllocate_QPrintEngine( void * pObj, bool bNew );
extern HB_EXPORT void * hbqt_gcAllocate_QPrinter( void * pObj, bool bNew );
extern HB_EXPORT void * hbqt_gcAllocate_QPrinterInfo( void * pObj, bool bNew );
extern HB_EXPORT void * hbqt_gcAllocate_QPrintPreviewDialog( void * pObj, bool bNew );
extern HB_EXPORT void * hbqt_gcAllocate_QProgressBar( void * pObj, bool bNew );
extern HB_EXPORT void * hbqt_gcAllocate_QProgressDialog( void * pObj, bool bNew );
@@ -688,6 +690,7 @@ HB_EXTERN_END
#define hbqt_par_QPrintDialog( n ) ( ( QPrintDialog * ) hbqt_gcpointer( n ) )
#define hbqt_par_QPrintEngine( n ) ( ( QPrintEngine * ) hbqt_gcpointer( n ) )
#define hbqt_par_QPrinter( n ) ( ( QPrinter * ) hbqt_gcpointer( n ) )
#define hbqt_par_QPrinterInfo( n ) ( ( QPrinterInfo * ) hbqt_gcpointer( n ) )
#define hbqt_par_QPrintPreviewDialog( n ) ( ( QPrintPreviewDialog * ) hbqt_gcpointer( n ) )
#define hbqt_par_QProgressBar( n ) ( ( QProgressBar * ) hbqt_gcpointer( n ) )
#define hbqt_par_QProgressDialog( n ) ( ( QProgressDialog * ) hbqt_gcpointer( n ) )
@@ -950,113 +953,114 @@ HB_EXTERN_END
#define HBQT_TYPE_QPrintDialog ( HBQT_TYPE_QTGUI_BASE + 149 )
#define HBQT_TYPE_QPrintEngine ( HBQT_TYPE_QTGUI_BASE + 150 )
#define HBQT_TYPE_QPrinter ( HBQT_TYPE_QTGUI_BASE + 151 )
#define HBQT_TYPE_QPrintPreviewDialog ( HBQT_TYPE_QTGUI_BASE + 152 )
#define HBQT_TYPE_QProgressBar ( HBQT_TYPE_QTGUI_BASE + 153 )
#define HBQT_TYPE_QProgressDialog ( HBQT_TYPE_QTGUI_BASE + 154 )
#define HBQT_TYPE_QPushButton ( HBQT_TYPE_QTGUI_BASE + 155 )
#define HBQT_TYPE_QRadialGradient ( HBQT_TYPE_QTGUI_BASE + 156 )
#define HBQT_TYPE_QRadioButton ( HBQT_TYPE_QTGUI_BASE + 157 )
#define HBQT_TYPE_QRegExpValidator ( HBQT_TYPE_QTGUI_BASE + 158 )
#define HBQT_TYPE_QRegion ( HBQT_TYPE_QTGUI_BASE + 159 )
#define HBQT_TYPE_QResizeEvent ( HBQT_TYPE_QTGUI_BASE + 160 )
#define HBQT_TYPE_QScrollArea ( HBQT_TYPE_QTGUI_BASE + 161 )
#define HBQT_TYPE_QScrollBar ( HBQT_TYPE_QTGUI_BASE + 162 )
#define HBQT_TYPE_QSessionManager ( HBQT_TYPE_QTGUI_BASE + 163 )
#define HBQT_TYPE_QShowEvent ( HBQT_TYPE_QTGUI_BASE + 164 )
#define HBQT_TYPE_QSizeGrip ( HBQT_TYPE_QTGUI_BASE + 165 )
#define HBQT_TYPE_QSizePolicy ( HBQT_TYPE_QTGUI_BASE + 166 )
#define HBQT_TYPE_QSlider ( HBQT_TYPE_QTGUI_BASE + 167 )
#define HBQT_TYPE_QSound ( HBQT_TYPE_QTGUI_BASE + 168 )
#define HBQT_TYPE_QSpacerItem ( HBQT_TYPE_QTGUI_BASE + 169 )
#define HBQT_TYPE_QSpinBox ( HBQT_TYPE_QTGUI_BASE + 170 )
#define HBQT_TYPE_QSplashScreen ( HBQT_TYPE_QTGUI_BASE + 171 )
#define HBQT_TYPE_QSplitter ( HBQT_TYPE_QTGUI_BASE + 172 )
#define HBQT_TYPE_QStackedWidget ( HBQT_TYPE_QTGUI_BASE + 173 )
#define HBQT_TYPE_QStandardItem ( HBQT_TYPE_QTGUI_BASE + 174 )
#define HBQT_TYPE_QStandardItemModel ( HBQT_TYPE_QTGUI_BASE + 175 )
#define HBQT_TYPE_QStatusBar ( HBQT_TYPE_QTGUI_BASE + 176 )
#define HBQT_TYPE_QStringListModel ( HBQT_TYPE_QTGUI_BASE + 177 )
#define HBQT_TYPE_QStyle ( HBQT_TYPE_QTGUI_BASE + 178 )
#define HBQT_TYPE_QStyledItemDelegate ( HBQT_TYPE_QTGUI_BASE + 179 )
#define HBQT_TYPE_QStyleFactory ( HBQT_TYPE_QTGUI_BASE + 180 )
#define HBQT_TYPE_QStyleHintReturn ( HBQT_TYPE_QTGUI_BASE + 181 )
#define HBQT_TYPE_QStyleHintReturnMask ( HBQT_TYPE_QTGUI_BASE + 182 )
#define HBQT_TYPE_QStyleHintReturnVariant ( HBQT_TYPE_QTGUI_BASE + 183 )
#define HBQT_TYPE_QStyleOption ( HBQT_TYPE_QTGUI_BASE + 184 )
#define HBQT_TYPE_QStyleOptionButton ( HBQT_TYPE_QTGUI_BASE + 185 )
#define HBQT_TYPE_QStyleOptionComboBox ( HBQT_TYPE_QTGUI_BASE + 186 )
#define HBQT_TYPE_QStyleOptionComplex ( HBQT_TYPE_QTGUI_BASE + 187 )
#define HBQT_TYPE_QStyleOptionDockWidget ( HBQT_TYPE_QTGUI_BASE + 188 )
#define HBQT_TYPE_QStyleOptionFocusRect ( HBQT_TYPE_QTGUI_BASE + 189 )
#define HBQT_TYPE_QStyleOptionFrame ( HBQT_TYPE_QTGUI_BASE + 190 )
#define HBQT_TYPE_QStyleOptionGraphicsItem ( HBQT_TYPE_QTGUI_BASE + 191 )
#define HBQT_TYPE_QStyleOptionGroupBox ( HBQT_TYPE_QTGUI_BASE + 192 )
#define HBQT_TYPE_QStyleOptionHeader ( HBQT_TYPE_QTGUI_BASE + 193 )
#define HBQT_TYPE_QStyleOptionMenuItem ( HBQT_TYPE_QTGUI_BASE + 194 )
#define HBQT_TYPE_QStyleOptionProgressBar ( HBQT_TYPE_QTGUI_BASE + 195 )
#define HBQT_TYPE_QStyleOptionSizeGrip ( HBQT_TYPE_QTGUI_BASE + 196 )
#define HBQT_TYPE_QStyleOptionSlider ( HBQT_TYPE_QTGUI_BASE + 197 )
#define HBQT_TYPE_QStyleOptionSpinBox ( HBQT_TYPE_QTGUI_BASE + 198 )
#define HBQT_TYPE_QStyleOptionTab ( HBQT_TYPE_QTGUI_BASE + 199 )
#define HBQT_TYPE_QStyleOptionTabBarBase ( HBQT_TYPE_QTGUI_BASE + 200 )
#define HBQT_TYPE_QStyleOptionTabWidgetFrame ( HBQT_TYPE_QTGUI_BASE + 201 )
#define HBQT_TYPE_QStyleOptionTitleBar ( HBQT_TYPE_QTGUI_BASE + 202 )
#define HBQT_TYPE_QStyleOptionToolBar ( HBQT_TYPE_QTGUI_BASE + 203 )
#define HBQT_TYPE_QStyleOptionToolBox ( HBQT_TYPE_QTGUI_BASE + 204 )
#define HBQT_TYPE_QStyleOptionToolButton ( HBQT_TYPE_QTGUI_BASE + 205 )
#define HBQT_TYPE_QStyleOptionViewItem ( HBQT_TYPE_QTGUI_BASE + 206 )
#define HBQT_TYPE_QStylePainter ( HBQT_TYPE_QTGUI_BASE + 207 )
#define HBQT_TYPE_QSyntaxHighlighter ( HBQT_TYPE_QTGUI_BASE + 208 )
#define HBQT_TYPE_QSystemTrayIcon ( HBQT_TYPE_QTGUI_BASE + 209 )
#define HBQT_TYPE_QTabBar ( HBQT_TYPE_QTGUI_BASE + 210 )
#define HBQT_TYPE_QTableView ( HBQT_TYPE_QTGUI_BASE + 211 )
#define HBQT_TYPE_QTableWidget ( HBQT_TYPE_QTGUI_BASE + 212 )
#define HBQT_TYPE_QTableWidgetItem ( HBQT_TYPE_QTGUI_BASE + 213 )
#define HBQT_TYPE_QTableWidgetSelectionRange ( HBQT_TYPE_QTGUI_BASE + 214 )
#define HBQT_TYPE_QTabWidget ( HBQT_TYPE_QTGUI_BASE + 215 )
#define HBQT_TYPE_QTextBlock ( HBQT_TYPE_QTGUI_BASE + 216 )
#define HBQT_TYPE_QTextBlockFormat ( HBQT_TYPE_QTGUI_BASE + 217 )
#define HBQT_TYPE_QTextBlockGroup ( HBQT_TYPE_QTGUI_BASE + 218 )
#define HBQT_TYPE_QTextBrowser ( HBQT_TYPE_QTGUI_BASE + 219 )
#define HBQT_TYPE_QTextCharFormat ( HBQT_TYPE_QTGUI_BASE + 220 )
#define HBQT_TYPE_QTextCursor ( HBQT_TYPE_QTGUI_BASE + 221 )
#define HBQT_TYPE_QTextDocument ( HBQT_TYPE_QTGUI_BASE + 222 )
#define HBQT_TYPE_QTextDocumentFragment ( HBQT_TYPE_QTGUI_BASE + 223 )
#define HBQT_TYPE_QTextDocumentWriter ( HBQT_TYPE_QTGUI_BASE + 224 )
#define HBQT_TYPE_QTextEdit ( HBQT_TYPE_QTGUI_BASE + 225 )
#define HBQT_TYPE_QTextFormat ( HBQT_TYPE_QTGUI_BASE + 226 )
#define HBQT_TYPE_QTextFragment ( HBQT_TYPE_QTGUI_BASE + 227 )
#define HBQT_TYPE_QTextFrame ( HBQT_TYPE_QTGUI_BASE + 228 )
#define HBQT_TYPE_QTextFrameFormat ( HBQT_TYPE_QTGUI_BASE + 229 )
#define HBQT_TYPE_QTextImageFormat ( HBQT_TYPE_QTGUI_BASE + 230 )
#define HBQT_TYPE_QTextInlineObject ( HBQT_TYPE_QTGUI_BASE + 231 )
#define HBQT_TYPE_QTextItem ( HBQT_TYPE_QTGUI_BASE + 232 )
#define HBQT_TYPE_QTextLayout ( HBQT_TYPE_QTGUI_BASE + 233 )
#define HBQT_TYPE_QTextLength ( HBQT_TYPE_QTGUI_BASE + 234 )
#define HBQT_TYPE_QTextLine ( HBQT_TYPE_QTGUI_BASE + 235 )
#define HBQT_TYPE_QTextList ( HBQT_TYPE_QTGUI_BASE + 236 )
#define HBQT_TYPE_QTextListFormat ( HBQT_TYPE_QTGUI_BASE + 237 )
#define HBQT_TYPE_QTextObject ( HBQT_TYPE_QTGUI_BASE + 238 )
#define HBQT_TYPE_QTextOption ( HBQT_TYPE_QTGUI_BASE + 239 )
#define HBQT_TYPE_QTextTableFormat ( HBQT_TYPE_QTGUI_BASE + 240 )
#define HBQT_TYPE_QTimeEdit ( HBQT_TYPE_QTGUI_BASE + 241 )
#define HBQT_TYPE_QToolBar ( HBQT_TYPE_QTGUI_BASE + 242 )
#define HBQT_TYPE_QToolBox ( HBQT_TYPE_QTGUI_BASE + 243 )
#define HBQT_TYPE_QToolButton ( HBQT_TYPE_QTGUI_BASE + 244 )
#define HBQT_TYPE_QTransform ( HBQT_TYPE_QTGUI_BASE + 245 )
#define HBQT_TYPE_QTreeView ( HBQT_TYPE_QTGUI_BASE + 246 )
#define HBQT_TYPE_QTreeWidget ( HBQT_TYPE_QTGUI_BASE + 247 )
#define HBQT_TYPE_QTreeWidgetItem ( HBQT_TYPE_QTGUI_BASE + 248 )
#define HBQT_TYPE_QValidator ( HBQT_TYPE_QTGUI_BASE + 249 )
#define HBQT_TYPE_QVBoxLayout ( HBQT_TYPE_QTGUI_BASE + 250 )
#define HBQT_TYPE_QWheelEvent ( HBQT_TYPE_QTGUI_BASE + 251 )
#define HBQT_TYPE_QWidget ( HBQT_TYPE_QTGUI_BASE + 252 )
#define HBQT_TYPE_QWidgetAction ( HBQT_TYPE_QTGUI_BASE + 253 )
#define HBQT_TYPE_QWidgetItem ( HBQT_TYPE_QTGUI_BASE + 254 )
#define HBQT_TYPE_QWindowsStyle ( HBQT_TYPE_QTGUI_BASE + 255 )
#define HBQT_TYPE_QWindowStateChangeEvent ( HBQT_TYPE_QTGUI_BASE + 256 )
#define HBQT_TYPE_QWizard ( HBQT_TYPE_QTGUI_BASE + 257 )
#define HBQT_TYPE_QWizardPage ( HBQT_TYPE_QTGUI_BASE + 258 )
#define HBQT_TYPE_QUiLoader ( HBQT_TYPE_QTGUI_BASE + 259 )
#define HBQT_TYPE_QPrinterInfo ( HBQT_TYPE_QTGUI_BASE + 152 )
#define HBQT_TYPE_QPrintPreviewDialog ( HBQT_TYPE_QTGUI_BASE + 153 )
#define HBQT_TYPE_QProgressBar ( HBQT_TYPE_QTGUI_BASE + 154 )
#define HBQT_TYPE_QProgressDialog ( HBQT_TYPE_QTGUI_BASE + 155 )
#define HBQT_TYPE_QPushButton ( HBQT_TYPE_QTGUI_BASE + 156 )
#define HBQT_TYPE_QRadialGradient ( HBQT_TYPE_QTGUI_BASE + 157 )
#define HBQT_TYPE_QRadioButton ( HBQT_TYPE_QTGUI_BASE + 158 )
#define HBQT_TYPE_QRegExpValidator ( HBQT_TYPE_QTGUI_BASE + 159 )
#define HBQT_TYPE_QRegion ( HBQT_TYPE_QTGUI_BASE + 160 )
#define HBQT_TYPE_QResizeEvent ( HBQT_TYPE_QTGUI_BASE + 161 )
#define HBQT_TYPE_QScrollArea ( HBQT_TYPE_QTGUI_BASE + 162 )
#define HBQT_TYPE_QScrollBar ( HBQT_TYPE_QTGUI_BASE + 163 )
#define HBQT_TYPE_QSessionManager ( HBQT_TYPE_QTGUI_BASE + 164 )
#define HBQT_TYPE_QShowEvent ( HBQT_TYPE_QTGUI_BASE + 165 )
#define HBQT_TYPE_QSizeGrip ( HBQT_TYPE_QTGUI_BASE + 166 )
#define HBQT_TYPE_QSizePolicy ( HBQT_TYPE_QTGUI_BASE + 167 )
#define HBQT_TYPE_QSlider ( HBQT_TYPE_QTGUI_BASE + 168 )
#define HBQT_TYPE_QSound ( HBQT_TYPE_QTGUI_BASE + 169 )
#define HBQT_TYPE_QSpacerItem ( HBQT_TYPE_QTGUI_BASE + 170 )
#define HBQT_TYPE_QSpinBox ( HBQT_TYPE_QTGUI_BASE + 171 )
#define HBQT_TYPE_QSplashScreen ( HBQT_TYPE_QTGUI_BASE + 172 )
#define HBQT_TYPE_QSplitter ( HBQT_TYPE_QTGUI_BASE + 173 )
#define HBQT_TYPE_QStackedWidget ( HBQT_TYPE_QTGUI_BASE + 174 )
#define HBQT_TYPE_QStandardItem ( HBQT_TYPE_QTGUI_BASE + 175 )
#define HBQT_TYPE_QStandardItemModel ( HBQT_TYPE_QTGUI_BASE + 176 )
#define HBQT_TYPE_QStatusBar ( HBQT_TYPE_QTGUI_BASE + 177 )
#define HBQT_TYPE_QStringListModel ( HBQT_TYPE_QTGUI_BASE + 178 )
#define HBQT_TYPE_QStyle ( HBQT_TYPE_QTGUI_BASE + 179 )
#define HBQT_TYPE_QStyledItemDelegate ( HBQT_TYPE_QTGUI_BASE + 180 )
#define HBQT_TYPE_QStyleFactory ( HBQT_TYPE_QTGUI_BASE + 181 )
#define HBQT_TYPE_QStyleHintReturn ( HBQT_TYPE_QTGUI_BASE + 182 )
#define HBQT_TYPE_QStyleHintReturnMask ( HBQT_TYPE_QTGUI_BASE + 183 )
#define HBQT_TYPE_QStyleHintReturnVariant ( HBQT_TYPE_QTGUI_BASE + 184 )
#define HBQT_TYPE_QStyleOption ( HBQT_TYPE_QTGUI_BASE + 185 )
#define HBQT_TYPE_QStyleOptionButton ( HBQT_TYPE_QTGUI_BASE + 186 )
#define HBQT_TYPE_QStyleOptionComboBox ( HBQT_TYPE_QTGUI_BASE + 187 )
#define HBQT_TYPE_QStyleOptionComplex ( HBQT_TYPE_QTGUI_BASE + 188 )
#define HBQT_TYPE_QStyleOptionDockWidget ( HBQT_TYPE_QTGUI_BASE + 189 )
#define HBQT_TYPE_QStyleOptionFocusRect ( HBQT_TYPE_QTGUI_BASE + 190 )
#define HBQT_TYPE_QStyleOptionFrame ( HBQT_TYPE_QTGUI_BASE + 191 )
#define HBQT_TYPE_QStyleOptionGraphicsItem ( HBQT_TYPE_QTGUI_BASE + 192 )
#define HBQT_TYPE_QStyleOptionGroupBox ( HBQT_TYPE_QTGUI_BASE + 193 )
#define HBQT_TYPE_QStyleOptionHeader ( HBQT_TYPE_QTGUI_BASE + 194 )
#define HBQT_TYPE_QStyleOptionMenuItem ( HBQT_TYPE_QTGUI_BASE + 195 )
#define HBQT_TYPE_QStyleOptionProgressBar ( HBQT_TYPE_QTGUI_BASE + 196 )
#define HBQT_TYPE_QStyleOptionSizeGrip ( HBQT_TYPE_QTGUI_BASE + 197 )
#define HBQT_TYPE_QStyleOptionSlider ( HBQT_TYPE_QTGUI_BASE + 198 )
#define HBQT_TYPE_QStyleOptionSpinBox ( HBQT_TYPE_QTGUI_BASE + 199 )
#define HBQT_TYPE_QStyleOptionTab ( HBQT_TYPE_QTGUI_BASE + 200 )
#define HBQT_TYPE_QStyleOptionTabBarBase ( HBQT_TYPE_QTGUI_BASE + 201 )
#define HBQT_TYPE_QStyleOptionTabWidgetFrame ( HBQT_TYPE_QTGUI_BASE + 202 )
#define HBQT_TYPE_QStyleOptionTitleBar ( HBQT_TYPE_QTGUI_BASE + 203 )
#define HBQT_TYPE_QStyleOptionToolBar ( HBQT_TYPE_QTGUI_BASE + 204 )
#define HBQT_TYPE_QStyleOptionToolBox ( HBQT_TYPE_QTGUI_BASE + 205 )
#define HBQT_TYPE_QStyleOptionToolButton ( HBQT_TYPE_QTGUI_BASE + 206 )
#define HBQT_TYPE_QStyleOptionViewItem ( HBQT_TYPE_QTGUI_BASE + 207 )
#define HBQT_TYPE_QStylePainter ( HBQT_TYPE_QTGUI_BASE + 208 )
#define HBQT_TYPE_QSyntaxHighlighter ( HBQT_TYPE_QTGUI_BASE + 209 )
#define HBQT_TYPE_QSystemTrayIcon ( HBQT_TYPE_QTGUI_BASE + 210 )
#define HBQT_TYPE_QTabBar ( HBQT_TYPE_QTGUI_BASE + 211 )
#define HBQT_TYPE_QTableView ( HBQT_TYPE_QTGUI_BASE + 212 )
#define HBQT_TYPE_QTableWidget ( HBQT_TYPE_QTGUI_BASE + 213 )
#define HBQT_TYPE_QTableWidgetItem ( HBQT_TYPE_QTGUI_BASE + 214 )
#define HBQT_TYPE_QTableWidgetSelectionRange ( HBQT_TYPE_QTGUI_BASE + 215 )
#define HBQT_TYPE_QTabWidget ( HBQT_TYPE_QTGUI_BASE + 216 )
#define HBQT_TYPE_QTextBlock ( HBQT_TYPE_QTGUI_BASE + 217 )
#define HBQT_TYPE_QTextBlockFormat ( HBQT_TYPE_QTGUI_BASE + 218 )
#define HBQT_TYPE_QTextBlockGroup ( HBQT_TYPE_QTGUI_BASE + 219 )
#define HBQT_TYPE_QTextBrowser ( HBQT_TYPE_QTGUI_BASE + 220 )
#define HBQT_TYPE_QTextCharFormat ( HBQT_TYPE_QTGUI_BASE + 221 )
#define HBQT_TYPE_QTextCursor ( HBQT_TYPE_QTGUI_BASE + 222 )
#define HBQT_TYPE_QTextDocument ( HBQT_TYPE_QTGUI_BASE + 223 )
#define HBQT_TYPE_QTextDocumentFragment ( HBQT_TYPE_QTGUI_BASE + 224 )
#define HBQT_TYPE_QTextDocumentWriter ( HBQT_TYPE_QTGUI_BASE + 225 )
#define HBQT_TYPE_QTextEdit ( HBQT_TYPE_QTGUI_BASE + 226 )
#define HBQT_TYPE_QTextFormat ( HBQT_TYPE_QTGUI_BASE + 227 )
#define HBQT_TYPE_QTextFragment ( HBQT_TYPE_QTGUI_BASE + 228 )
#define HBQT_TYPE_QTextFrame ( HBQT_TYPE_QTGUI_BASE + 229 )
#define HBQT_TYPE_QTextFrameFormat ( HBQT_TYPE_QTGUI_BASE + 230 )
#define HBQT_TYPE_QTextImageFormat ( HBQT_TYPE_QTGUI_BASE + 231 )
#define HBQT_TYPE_QTextInlineObject ( HBQT_TYPE_QTGUI_BASE + 232 )
#define HBQT_TYPE_QTextItem ( HBQT_TYPE_QTGUI_BASE + 233 )
#define HBQT_TYPE_QTextLayout ( HBQT_TYPE_QTGUI_BASE + 234 )
#define HBQT_TYPE_QTextLength ( HBQT_TYPE_QTGUI_BASE + 235 )
#define HBQT_TYPE_QTextLine ( HBQT_TYPE_QTGUI_BASE + 236 )
#define HBQT_TYPE_QTextList ( HBQT_TYPE_QTGUI_BASE + 237 )
#define HBQT_TYPE_QTextListFormat ( HBQT_TYPE_QTGUI_BASE + 238 )
#define HBQT_TYPE_QTextObject ( HBQT_TYPE_QTGUI_BASE + 239 )
#define HBQT_TYPE_QTextOption ( HBQT_TYPE_QTGUI_BASE + 240 )
#define HBQT_TYPE_QTextTableFormat ( HBQT_TYPE_QTGUI_BASE + 241 )
#define HBQT_TYPE_QTimeEdit ( HBQT_TYPE_QTGUI_BASE + 242 )
#define HBQT_TYPE_QToolBar ( HBQT_TYPE_QTGUI_BASE + 243 )
#define HBQT_TYPE_QToolBox ( HBQT_TYPE_QTGUI_BASE + 244 )
#define HBQT_TYPE_QToolButton ( HBQT_TYPE_QTGUI_BASE + 245 )
#define HBQT_TYPE_QTransform ( HBQT_TYPE_QTGUI_BASE + 246 )
#define HBQT_TYPE_QTreeView ( HBQT_TYPE_QTGUI_BASE + 247 )
#define HBQT_TYPE_QTreeWidget ( HBQT_TYPE_QTGUI_BASE + 248 )
#define HBQT_TYPE_QTreeWidgetItem ( HBQT_TYPE_QTGUI_BASE + 249 )
#define HBQT_TYPE_QValidator ( HBQT_TYPE_QTGUI_BASE + 250 )
#define HBQT_TYPE_QVBoxLayout ( HBQT_TYPE_QTGUI_BASE + 251 )
#define HBQT_TYPE_QWheelEvent ( HBQT_TYPE_QTGUI_BASE + 252 )
#define HBQT_TYPE_QWidget ( HBQT_TYPE_QTGUI_BASE + 253 )
#define HBQT_TYPE_QWidgetAction ( HBQT_TYPE_QTGUI_BASE + 254 )
#define HBQT_TYPE_QWidgetItem ( HBQT_TYPE_QTGUI_BASE + 255 )
#define HBQT_TYPE_QWindowsStyle ( HBQT_TYPE_QTGUI_BASE + 256 )
#define HBQT_TYPE_QWindowStateChangeEvent ( HBQT_TYPE_QTGUI_BASE + 257 )
#define HBQT_TYPE_QWizard ( HBQT_TYPE_QTGUI_BASE + 258 )
#define HBQT_TYPE_QWizardPage ( HBQT_TYPE_QTGUI_BASE + 259 )
#define HBQT_TYPE_QUiLoader ( HBQT_TYPE_QTGUI_BASE + 260 )
#endif /* __HBQTGUI_H */

View File

@@ -0,0 +1,116 @@
/*
* $Id$
*/
/*
* Harbour Project source code:
* QT Source Generator for Harbour
*
* Copyright 2010 Pritpal Bedi <pritpal@vouchcac.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 = no
Inherits =
Type =
New =
</CLASS>
<CODE>
#include <QtGui/QPrinterInfo>
/*
* QPrinterInfo ()
* QPrinterInfo ( const QPrinterInfo & src )
* QPrinterInfo ( const QPrinter & printer )
* ~QPrinterInfo ()
*/
HB_FUNC( QT_QPRINTERINFO )
{
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
hb_retptr( new QPrinterInfo( *hbqt_par_QPrinterInfo( 1 ) ) );
}
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
{
hb_retptr( new QPrinterInfo( *hbqt_par_QPrinter( 2 ) ) );
}
else
{
hb_retptr( new QPrinterInfo() );
}
}
</CODE>
<ENUMS>
</ENUMS>
<PROTOS>
bool isDefault () const
bool isNull () const
QString printerName () const
QList<QPrinter::PaperSize> supportedPaperSizes () const
QList<QPrinterInfo> availablePrinters ()
QPrinterInfo defaultPrinter ()
</PROTOS>
<SLOTS>
</SLOTS>
<SIGNALS>
</SIGNALS>
<VARIABLES>
</VARIABLES>

View File

@@ -160,6 +160,7 @@ QPolygonF.qth
QPrintDialog.qth
QPrintEngine.qth
QPrinter.qth
QPrinterInfo.qth
QPrintPreviewDialog.qth
QProgressBar.qth
QProgressDialog.qth