From 9b6e0fe4a0e170d1d2b3cb4db2dfdeb5ae69d62c Mon Sep 17 00:00:00 2001 From: Pritpal Bedi Date: Mon, 15 Jun 2009 22:13:51 +0000 Subject: [PATCH] 2009-06-15 15:09 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) * harbour/contrib/hbqt/generator/hbqtgen.prg ! Stipped off code to generate in-build sources. Now following files resides in the SVN permanently: hbqt.h hbqt_slots.h hbqt_slots.cpp hbqt_base.cpp moc_slots.cpp * harbour/contrib/hbqt/hbqt_slots.h * harbour/contrib/hbqt/moc_slots.cpp ! Cleanups. --- harbour/ChangeLog | 14 + harbour/contrib/hbqt/generator/hbqtgen.prg | 2204 -------------------- harbour/contrib/hbqt/hbqt_slots.h | 48 +- harbour/contrib/hbqt/moc_slots.cpp | 7 +- 4 files changed, 19 insertions(+), 2254 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index aab34b4166..018525af1f 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,20 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-06-15 15:09 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) + * harbour/contrib/hbqt/generator/hbqtgen.prg + ! Stipped off code to generate in-build sources. Now + following files resides in the SVN permanently: + hbqt.h + hbqt_slots.h + hbqt_slots.cpp + hbqt_base.cpp + moc_slots.cpp + + * harbour/contrib/hbqt/hbqt_slots.h + * harbour/contrib/hbqt/moc_slots.cpp + ! Cleanups. + 2009-06-15 23:04 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * utils/hbmk2/hbmk2.prg * examples/uhttpd2/socket.c diff --git a/harbour/contrib/hbqt/generator/hbqtgen.prg b/harbour/contrib/hbqt/generator/hbqtgen.prg index d4ae6998f4..64c4d4b579 100644 --- a/harbour/contrib/hbqt/generator/hbqtgen.prg +++ b/harbour/contrib/hbqt/generator/hbqtgen.prg @@ -105,9 +105,6 @@ FUNCTION Main( ... ) CASE cParam == '-c' - CASE lower( cParam ) == '-inbuilds' - lBuilds :=.t. - CASE cLParam == '-help' DispHelp() RETURN nil @@ -115,11 +112,6 @@ FUNCTION Main( ... ) ENDCASE NEXT - IF lBuilds - Build_InBuilds( cPathOut ) - RETURN nil - ENDIF - IF empty( aPrjFiles ) .and. hb_fileExists( "qt45.qtp" ) aadd( aPrjFiles, "qt45.qtp" ) ENDIF @@ -248,29 +240,14 @@ STATIC FUNCTION ManageProject( cProFile, cPathIn, cPathOut, cPathDoc ) ENDIF NEXT - Build_Inbuilds( cPOut ) IF !empty( cpp_ ) Build_Makefile( cpp_, prg_, cPOut ) ENDIF - Build_Demo( cPOut ) RETURN NIL /*----------------------------------------------------------------------*/ -STATIC FUNCTION Build_InBuilds( cPOut ) - - Build_HBQT_H( cPOut ) - Build_HBQT_SLOTS_H( cPOut ) - Build_HBQT_BASE_CPP( cPOut ) - Build_HBQT_UTILS_CPP( cPOut ) - Build_HBQT_SLOTS_CPP( cPOut ) - Build_MOC_SLOTS_CPP( cPOut ) - - RETURN nil - -/*----------------------------------------------------------------------*/ - STATIC FUNCTION PullOutSection( cQth, cSec ) LOCAL cTxt, n, nn, cTknB, cTknE LOCAL a_:={} @@ -1296,7 +1273,6 @@ STATIC FUNCTION Build_MakeFile( cpp_, prg_, cPathOut ) aadd( txt_, chr( 9 ) + 'hbqt_' + lower( s ) + '.cpp \' ) NEXT aadd( txt_, chr( 9 ) + 'moc_slots.cpp \' ) - aadd( txt_, " " ) aadd( txt_, " " ) aadd( txt_, "C_HEADERS=\ " ) @@ -1320,2183 +1296,3 @@ STATIC FUNCTION Build_MakeFile( cpp_, prg_, cPathOut ) /*----------------------------------------------------------------------*/ -STATIC FUNCTION Build_HBQT_H( cPathOut ) - LOCAL cFile := cPathOut + s_PathSep + 'hbqt.h' - LOCAL txt_:={} - - BuildHeader( @txt_, 2 ) - - aadd( txt_, " " ) - aadd( txt_, "#ifndef __HBQT_H " ) - aadd( txt_, "#define __HBQT_H " ) - aadd( txt_, " " ) - aadd( txt_, "#include " ) - aadd( txt_, " " ) - aadd( txt_, "#include " ) - aadd( txt_, "#include " ) - aadd( txt_, "#include " ) - aadd( txt_, "#include " ) - aadd( txt_, " " ) - aadd( txt_, "#if QT_VERSION >= 0x040500 " ) - aadd( txt_, " " ) - aadd( txt_, " " ) - aadd( txt_, "#define hbqt_par_QAbstractButton( n ) ( ( QAbstractButton* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QAbstractItemView( n ) ( ( QAbstractItemView* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QAbstractItemModel( n ) ( ( QAbstractItemModel* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QAbstractItemDelegate( n ) ( ( QAbstractItemDelegate* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QAbstractPrintDialog( n ) ( ( QAbstractPrintDialog* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QAbstractProxyModel( n ) ( ( QAbstractProxyModel* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QAbstractScrollArea( n ) ( ( QAbstractScrollArea* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QAbstractSlider( n ) ( ( QAbstractSlider* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QAbstractSpinBox( n ) ( ( QAbstractSpinBox* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QAction( n ) ( ( QAction* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QActionGroup( n ) ( ( QActionGroup* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QApplication( n ) ( ( QApplication* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QBoxLayout( n ) ( ( QBoxLayout* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QBrush( n ) ( ( QBrush* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QCalendarWidget( n ) ( ( QCalendarWidget* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QCheckBox( n ) ( ( QCheckBox* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QColor( n ) ( ( QColor* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QColorDialog( n ) ( ( QColorDialog* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QComboBox( n ) ( ( QComboBox* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QCommandLinkButton( n ) ( ( QCommandLinkButton* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QCompleter( n ) ( ( QCompleter* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QCoreApplication( n ) ( ( QCoreApplication* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QDateTimeEdit( n ) ( ( QDateTimeEdit* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QDial( n ) ( ( QDial* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QDialog( n ) ( ( QDialog* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QDockWidget( n ) ( ( QDockWidget* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QDoubleSpinBox( n ) ( ( QDoubleSpinBox* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QEvent( n ) ( ( QEvent* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QFileDialog( n ) ( ( QFileDialog* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QFileIconProvider( n ) ( ( QFileIconProvider* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QFocusFrame( n ) ( ( QFocusFrame* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QFont( n ) ( ( QFont* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QFontComboBox( n ) ( ( QFontComboBox* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QFontDialog( n ) ( ( QFontDialog* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QFormLayout( n ) ( ( QFormLayout* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QFrame( n ) ( ( QFrame* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QGroupBox( n ) ( ( QGroupBox* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QHeaderView( n ) ( ( QHeaderView* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QInputContext( n ) ( ( QInputContext* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QInputDialog( n ) ( ( QInputDialog* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QItemSelectionModel( n ) ( ( QItemSelectionModel* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QLabel( n ) ( ( QLabel* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QLayout( n ) ( ( QLayout* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QLayoutItem( n ) ( ( QLayoutItem* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QLCDNumber( n ) ( ( QLCDNumber* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QLine( n ) ( ( QLine* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QLineEdit( n ) ( ( QLineEdit* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QLineF( n ) ( ( QLineF* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QListView( n ) ( ( QListView* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QLocale( n ) ( ( QLocale* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QMainWindow( n ) ( ( QMainWindow* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QMenu( n ) ( ( QMenu* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QMenuBar( n ) ( ( QMenuBar* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QMessageBox( n ) ( ( QMessageBox* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QMovie( n ) ( ( QMovie* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QObject( n ) ( ( QObject* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QPageSetupDialog( n ) ( ( QPageSetupDialog* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QPainter( n ) ( ( QPainter* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QPaintDevice( n ) ( ( QPaintDevice* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QPen( n ) ( ( QPen* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QPoint( n ) ( ( QPoint* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QPointF( n ) ( ( QPointF* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QPrintDialog( n ) ( ( QPrintDialog* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QPrintPreviewDialog( n ) ( ( QPrintPreviewDialog* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QPrinter( n ) ( ( QPrinter* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QProgressBar( n ) ( ( QProgressBar* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QProgressDialog( n ) ( ( QProgressDialog* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QPushButton( n ) ( ( QPushButton* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QRect( n ) ( ( QRect* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QRectF( n ) ( ( QRectF* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QScrollArea( n ) ( ( QScrollArea* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QScrollBar( n ) ( ( QScrollBar* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QSpacerItem( n ) ( ( QSpacerItem* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QSpinBox( n ) ( ( QSpinBox* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QSplitter( n ) ( ( QSplitter* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStatusBar( n ) ( ( QStatusBar* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStyle( n ) ( ( QStyle* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QSlider( n ) ( ( QSlider* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTabBar( n ) ( ( QTabBar* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTableView( n ) ( ( QTableView* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTableWidget( n ) ( ( QTableWidget* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTableWidgetItem( n ) ( ( QTableWidgetItem* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTabWidget( n ) ( ( QTabWidget* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextEdit( n ) ( ( QTextEdit* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextDocument( n ) ( ( QTextDocument* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QThread( n ) ( ( QThread* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QToolBar( n ) ( ( QToolBar* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QToolBox( n ) ( ( QToolBox* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QToolButton( n ) ( ( QToolButton* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTreeView( n ) ( ( QTreeView* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTreeWidget( n ) ( ( QTreeWidget* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTreeWidgetItem( n ) ( ( QTreeWidgetItem* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QValidator( n ) ( ( QValidator* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QWebView( n ) ( ( QWebView* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QWidget( n ) ( ( QWidget* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QWindowSurface( n ) ( ( QWindowSurface* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QWizard( n ) ( ( QWizard* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QWizardPage( n ) ( ( QWizardPage* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QWSEvent( n ) ( ( QWSEvent* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QWebPage( n ) ( ( QWebPage* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QNetworkAccessManager( n ) ( ( QNetworkAccessManager* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QWebPluginFactory( n ) ( ( QWebPluginFactory* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QContextMenuEvent( n ) ( ( QContextMenuEvent* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QDesktopWidget( n ) ( ( QDesktopWidget* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QFontInfo( n ) ( ( QFontInfo* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QDir( n ) ( ( QDir* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QDockWidget( n ) ( ( QDockWidget* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QGridLayout( n ) ( ( QGridLayout* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QHeaderView( n ) ( ( QHeaderView* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QListWidget( n ) ( ( QListWidget* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QListWidgetItem( n ) ( ( QListWidgetItem* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTimer( n ) ( ( QTimer* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QUrl( n ) ( ( QUrl* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QWebPage( n ) ( ( QWebPage* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QNetworkAccessManager( n ) ( ( QNetworkAccessManager* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QWebPluginFactory( n ) ( ( QWebPluginFactory* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QContextMenuEvent( n ) ( ( QContextMenuEvent* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QAxBase( n ) ( ( QAxBase* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_IUnknown( n ) ( ( IUnknown* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QSignalMapper( n ) ( ( QSignalMapper* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QSplashScreen( n ) ( ( QSplashScreen* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QHttp( n ) ( ( QHttp* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QFtp( n ) ( ( QFtp* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QIODevice( n ) ( ( QIODevice* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTcpSocket( n ) ( ( QTcpSocket* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QPainterPath( n ) ( ( QPainterPath* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTransform( n ) ( ( QTransform* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QMatrix( n ) ( ( QMatrix* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextOption( n ) ( ( QTextOption* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QPicture( n ) ( ( QPicture* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QPixmap( n ) ( ( QPixmap* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QRegion( n ) ( ( QRegion* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QPolygon( n ) ( ( QPolygon* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QPolygonF( n ) ( ( QPolygonF* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QVector( n ) ( ( QVector* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QImage( n ) ( ( QImage* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QKeySequence( n ) ( ( QKeySequence* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QSize( n ) ( ( QSize* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QSizeF( n ) ( ( QSizeF* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QModelIndex( n ) ( ( QModelIndex* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QVariant( n ) ( ( QVariant* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QSessionManager( n ) ( ( QSessionManager* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QDate( n ) ( ( QDate* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTime( n ) ( ( QTime* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QDateTime( n ) ( ( QDateTime* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextCharFormat( n ) ( ( QTextCharFormat* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStringList( n ) ( ( QStringList* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QErrorMessage( n ) ( ( QErrorMessage* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QByteArray( n ) ( ( QByteArray* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QDataStream( n ) ( ( QDataStream* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextCursor( n ) ( ( QTextCursor* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QPalette( n ) ( ( QPalette* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QCursor( n ) ( ( QCursor* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QNetworkRequest( n ) ( ( QNetworkRequest* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTableWidgetSelectionRange( n ) ( ( QTableWidgetSelectionRange* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QWSEvent( n ) ( ( QWSEvent* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QHttpRequestHeader( n ) ( ( QHttpRequestHeader* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QNetworkProxy( n ) ( ( QNetworkProxy* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QBitmap( n ) ( ( QBitmap* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextStream( n ) ( ( QTextStream* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextCodec( n ) ( ( QTextCodec* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QEventLoop( n ) ( ( QEventLoop* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QPaintEvent( n ) ( ( QPaintEvent* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QInputEvent( n ) ( ( QInputEvent* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QIcon( n ) ( ( QIcon* ) hb_parc( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStyleOption( n ) ( ( QStyleOption* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStyleOptionComplex( n ) ( ( QStyleOptionComplex* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QFontMetrics( n ) ( ( QFontMetrics* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStyleHintReturn( n ) ( ( QStyleHintReturn* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QClipboard( n ) ( ( QClipboard* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QMimeData( n ) ( ( QMimeData* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextBlock( n ) ( ( QTextBlock* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextBlockUserData( n ) ( ( QTextBlockUserData* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextBrowser( n ) ( ( QTextBrowser* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextFormat( n ) ( ( QTextFormat* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextBlockFormat( n ) ( ( QTextBlockFormat* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextBlockGroup( n ) ( ( QTextBlockGroup* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextBoundaryFinder( n ) ( ( QTextBoundaryFinder* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextListFormat( n ) ( ( QTextListFormat* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextFrameFormat( n ) ( ( QTextFrameFormat* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextImageFormat( n ) ( ( QTextImageFormat* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextTableFormat( n ) ( ( QTextTableFormat* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextDocumentFragment( n ) ( ( QTextDocumentFragment* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextDecoder( n ) ( ( QTextDecoder* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextDecument( n ) ( ( QTextDocument* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextDocumentWriter( n ) ( ( QTextDocumentWriter* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextCursor( n ) ( ( QTextCursor* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QRegExp( n ) ( ( QRegExp* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QAbstractTextDocumentLayout( n ) ( ( QAbstractTextDocumentLayout* ) hb_parptr( n ) )" ) - aadd( txt_, "#define hbqt_par_QTextCodec( n ) ( ( QTextCodec* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextEncoder( n ) ( ( QTextEncoder* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextFragment( n ) ( ( QTextFragment* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextFrame( n ) ( ( QTextFrame* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextFrameFormat( n ) ( ( QTextFrameFormat* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextImageFormat( n ) ( ( QTextImageFormat* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextLength( n ) ( ( QTextLength* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextEngine( n ) ( ( QTextEngine* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextItem( n ) ( ( QTextItem* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextInlineObject( n ) ( ( QTextInlineObject* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextLayout( n ) ( ( QTextLayout* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextLength( n ) ( ( QTextLength* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextLine( n ) ( ( QTextLine* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QGradient( n ) ( ( QGradient* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QLinearGradient( n ) ( ( QLinearGradient* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QRadialGradient( n ) ( ( QRadialGradient* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QConicalGradient( n ) ( ( QConicalGradient* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QGradientStops( n ) ( ( QGradientStops* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QImageReader( n ) ( ( QImageReader* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QImageWriter( n ) ( ( QImageWriter* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QResource( n ) ( ( QResource* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QSizePolicy( n ) ( ( QSizePolicy* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QSound( n ) ( ( QSound* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStandardItem( n ) ( ( QStandardItem* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStandardItemModel( n ) ( ( QStandardItemModel* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QItemEditorFactory( n ) ( ( QItemEditorFactory* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStyledItemDelegate( n ) ( ( QStyledItemDelegate* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStyleOptionViewItem( n ) ( ( QStyleOptionViewItem* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStyleOptionButton( n ) ( ( QStyleOptionButton* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStyleOptionComboBox( n ) ( ( QStyleOptionComboBox* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStyleOptionDockWidget( n ) ( ( QStyleOptionDockWidget* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStyleOptionFocusRect( n ) ( ( QStyleOptionFocusRect* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStyleOptionFrame( n ) ( ( QStyleOptionFrame* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStyleOptionGroupBox( n ) ( ( QStyleOptionGroupBox* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStyleOptionHeader( n ) ( ( QStyleOptionHeader* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStyleOptionMenuItem( n ) ( ( QStyleOptionMenuItem* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStyleOptionProgressBar( n )( ( QStyleOptionProgressBar* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStyleOptionSizeGrip( n ) ( ( QStyleOptionSizeGrip* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStyleOptionSlider( n ) ( ( QStyleOptionSlider* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStyleOptionSpinBox( n ) ( ( QStyleOptionSpinBox* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStyleOptionTab( n ) ( ( QStyleOptionTab* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStyleOptionTabBarBase( n ) ( ( QStyleOptionTabBarBase* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStyleOptionTabWidgetFrame( n ) ( ( QStyleOptionTabWidgetFrame* ) hb_parptr( n ) )" ) - aadd( txt_, "#define hbqt_par_QStyleOptionTitleBar( n ) ( ( QStyleOptionTitleBar* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStyleOptionToolBar( n ) ( ( QStyleOptionToolBar* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStyleOptionToolBox( n ) ( ( QStyleOptionToolBox* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStyleOptionToolButton( n ) ( ( QStyleOptionToolButton* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStyleOptionViewItem( n ) ( ( QStyleOptionViewItem* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStylePainter( n ) ( ( QStylePainter* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QTextObject( n ) ( ( QTextObject* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QModelIndexList( n ) ( ( QModelIndexList* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QDirModel( n ) ( ( QDirModel* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QList( n ) ( ( QList* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QStringListModel( n ) ( ( QStringListModel* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QAbstractListModel( n ) ( ( QAbstractListModel* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QAbstractTableModel( n ) ( ( QAbstractTableModel* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QFileSystemModel( n ) ( ( QFileSystemModel* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QKeyEvent( n ) ( ( QKeyEvent* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QMouseEvent( n ) ( ( QMouseEvent* ) hb_parptr( n ) ) " ) - aadd( txt_, "#define hbqt_par_QKeySequence( n ) ( ( QKeySequence* ) hb_parptr( n ) ) " ) - aadd( txt_, " " ) - aadd( txt_, "#define hbqt_par_QString( n ) ( ( QString ) hb_parc( n ) ) " ) - aadd( txt_, "#define hbqt_par_QRgb( n ) ( hb_parnint( n ) ) " ) - aadd( txt_, "#define hbqt_par_Bool( n ) ( hb_parl( n ) ) " ) - aadd( txt_, "#define hbqt_par_char( n ) ( hb_parc( n ) ) " ) - aadd( txt_, " " ) - aadd( txt_, "#define hbqt_ret_QWidget( p ) ( hb_retptr( ( QWidget* ) p ) ) " ) - aadd( txt_, "#define hbqt_ret_QAbstractItemDelegate( p ) ( hb_retptr( ( QAbstractItemDelegate* ) p ) ) " ) - aadd( txt_, "#define hbqt_ret_QAbstractItemModel( p ) ( hb_retptr( ( QAbstractItemModel* ) p ) ) " ) - aadd( txt_, "#define hbqt_ret_QPrinter( p ) ( hb_retptr( ( QPrinter* ) p ) ) " ) - aadd( txt_, " " ) - aadd( txt_, "#include " ) - aadd( txt_, " " ) - aadd( txt_, "void hbqt_ret_QRect( QRect ); " ) - aadd( txt_, "void hbqt_ret_QSize( QSize ); " ) - aadd( txt_, "void hbqt_ret_QPoint( QPoint ); " ) - aadd( txt_, " " ) - aadd( txt_, "QRect hbqt_const_QRect( int ); " ) - aadd( txt_, "QSize hbqt_const_QSize( int ); " ) - aadd( txt_, "QPoint hbqt_const_QPoint( int ); " ) - aadd( txt_, " " ) - aadd( txt_, "void hbqt_ret_QRectF( QRectF ); " ) - aadd( txt_, "void hbqt_ret_QSizeF( QSizeF ); " ) - aadd( txt_, "void hbqt_ret_QPointF( QPointF ); " ) - aadd( txt_, " " ) - aadd( txt_, "QRectF hbqt_const_QRectF( int ); " ) - aadd( txt_, "QSizeF hbqt_const_QSizeF( int ); " ) - aadd( txt_, "QPointF hbqt_const_QPointF( int ); " ) - aadd( txt_, " " ) - aadd( txt_, "#endif " ) - aadd( txt_, " " ) - aadd( txt_, "#endif /* __HBQT_H */ " ) - aadd( txt_, " " ) - - RETURN CreateTarget( cFile, txt_ ) - -/*----------------------------------------------------------------------*/ - -STATIC FUNCTION Build_HBQT_UTILS_CPP( cPathOut ) - LOCAL cFile := cPathOut + s_PathSep + 'hbqt_utils.cpp' - LOCAL txt_:={} - - BuildHeader( @txt_, 2 ) - - aadd( txt_, '#include "hbapi.h" ' ) - aadd( txt_, '#include "hbapiitm.h" ' ) - aadd( txt_, ' ' ) - aadd( txt_, '#include "hbqt.h" ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/' ) - aadd( txt_, '#if QT_VERSION >= 0x040500 ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/' ) - aadd( txt_, ' ' ) - aadd( txt_, '#include ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void hbqt_ret_QRect( QRect qrc ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' PHB_ITEM info = hb_itemArrayNew( 4 ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' hb_arraySetNI( info, 1, qrc.x() ); ' ) - aadd( txt_, ' hb_arraySetNI( info, 2, qrc.y() ); ' ) - aadd( txt_, ' hb_arraySetNI( info, 3, qrc.x()+qrc.width() ); ' ) - aadd( txt_, ' hb_arraySetNI( info, 4, qrc.y()+qrc.height() ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' hb_itemReturnRelease( info ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/' ) - aadd( txt_, ' ' ) - aadd( txt_, 'QRect hbqt_const_QRect( int i ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' QRect qrc; ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' qrc.setX( hb_parni( i,1 ) ); ' ) - aadd( txt_, ' qrc.setY( hb_parni( i,2 ) ); ' ) - aadd( txt_, ' qrc.setWidth( hb_parni( i,3 ) - hb_parni( i,1 ) + 1 ); ' ) - aadd( txt_, ' qrc.setHeight( hb_parni( i,4 ) - hb_parni( i,2 ) + 1 ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' return qrc; ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void hbqt_ret_QSize( QSize qsz ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' PHB_ITEM info = hb_itemArrayNew( 2 ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' hb_arraySetNI( info, 1, qsz.width() ); ' ) - aadd( txt_, ' hb_arraySetNI( info, 2, qsz.height() ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' hb_itemReturnRelease( info ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/' ) - aadd( txt_, ' ' ) - aadd( txt_, 'QSize hbqt_const_QSize( int i ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' QSize qsz; ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' qsz.setWidth( hb_parni( i,1 ) ); ' ) - aadd( txt_, ' qsz.setHeight( hb_parni( i,2 ) ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' return qsz; ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void hbqt_ret_QPoint( QPoint qpt ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' PHB_ITEM info = hb_itemArrayNew( 2 ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' hb_arraySetNI( info, 1, qpt.x() ); ' ) - aadd( txt_, ' hb_arraySetNI( info, 2, qpt.y() ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' hb_itemReturnRelease( info ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/' ) - aadd( txt_, ' ' ) - aadd( txt_, 'QPoint hbqt_const_QPoint( int i ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' QPoint qpt; ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' qpt.setX( hb_parni( i,1 ) ); ' ) - aadd( txt_, ' qpt.setY( hb_parni( i,2 ) ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' return qpt; ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void hbqt_ret_QRectF( QRectF qrc ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' PHB_ITEM info = hb_itemArrayNew( 4 ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' hb_arraySetND( info, 1, qrc.x() ); ' ) - aadd( txt_, ' hb_arraySetND( info, 2, qrc.y() ); ' ) - aadd( txt_, ' hb_arraySetND( info, 3, qrc.x()+qrc.width() ); ' ) - aadd( txt_, ' hb_arraySetND( info, 4, qrc.y()+qrc.height() ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' hb_itemReturnRelease( info ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/' ) - aadd( txt_, ' ' ) - aadd( txt_, 'QRectF hbqt_const_QRectF( int i ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' QRectF qrc; ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' qrc.setX( hb_parnd( i,1 ) ); ' ) - aadd( txt_, ' qrc.setY( hb_parnd( i,2 ) ); ' ) - aadd( txt_, ' qrc.setWidth( hb_parnd( i,3 ) - hb_parnd( i,1 ) + 1 ); ' ) - aadd( txt_, ' qrc.setHeight( hb_parnd( i,4 ) - hb_parnd( i,2 ) + 1 ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' return qrc; ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void hbqt_ret_QSizeF( QSizeF qsz ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' PHB_ITEM info = hb_itemArrayNew( 2 ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' hb_arraySetND( info, 1, qsz.width() ); ' ) - aadd( txt_, ' hb_arraySetND( info, 2, qsz.height() ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' hb_itemReturnRelease( info ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/' ) - aadd( txt_, ' ' ) - aadd( txt_, 'QSizeF hbqt_const_QSizeF( int i ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' QSizeF qsz; ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' qsz.setWidth( hb_parnd( i,1 ) ); ' ) - aadd( txt_, ' qsz.setHeight( hb_parnd( i,2 ) ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' return qsz; ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void hbqt_ret_QPointF( QPointF qpt ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' PHB_ITEM info = hb_itemArrayNew( 2 ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' hb_arraySetND( info, 1, qpt.x() ); ' ) - aadd( txt_, ' hb_arraySetND( info, 2, qpt.y() ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' hb_itemReturnRelease( info ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/' ) - aadd( txt_, ' ' ) - aadd( txt_, 'QPointF hbqt_const_QPointF( int i ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' QPointF qpt; ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' qpt.setX( hb_parnd( i,1 ) ); ' ) - aadd( txt_, ' qpt.setY( hb_parnd( i,2 ) ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' return qpt; ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/' ) - aadd( txt_, '#endif /* #if QT_VERSION >= 0x040500 */ ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/' ) - aadd( txt_, ' ' ) - - RETURN CreateTarget( cFile, txt_ ) - -/*----------------------------------------------------------------------*/ - -STATIC FUNCTION Build_HBQT_BASE_CPP( cPathOut ) - LOCAL cFile := cPathOut + s_PathSep + 'hbqt_base.cpp' - LOCAL txt_:={} - - BuildHeader( @txt_, 2 ) - - aadd( txt_, '#include "hbapi.h" ' ) - aadd( txt_, ' ' ) - aadd( txt_, '#include "hbqt.h" ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'HB_FUNC( QT_VERSION ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' hb_retnint( QT_VERSION ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'HB_FUNC( QT_VERSION_STR ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' hb_retc_const( QT_VERSION_STR ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - - RETURN CreateTarget( cFile, txt_ ) - -/*----------------------------------------------------------------------*/ - -STATIC FUNCTION Build_HBQT_SLOTS_H( cPathOut ) - LOCAL cFile := cPathOut + s_PathSep + 'hbqt_slots.h' - LOCAL txt_:={} - - BuildHeader( @txt_, 2 ) - - aadd( txt_, ' ' ) - aadd( txt_, '#ifndef SLOTS_H ' ) - aadd( txt_, ' ' ) - aadd( txt_, '#define SLOTS_H ' ) - aadd( txt_, ' ' ) - aadd( txt_, '#include ' ) - aadd( txt_, '#include ' ) - aadd( txt_, '#include ' ) - aadd( txt_, '#include ' ) - aadd( txt_, '#include ' ) - aadd( txt_, '#include ' ) - aadd( txt_, '#include ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' ' ) - aadd( txt_, '#include "hbapi.h" ' ) - aadd( txt_, '#include "hbapiitm.h" ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'class Slots: public QObject ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' Q_OBJECT ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'public: ' ) - aadd( txt_, ' Slots( QObject *parent = 0 ); ' ) - aadd( txt_, ' ~Slots(); ' ) - aadd( txt_, ' QList list1; ' ) - aadd( txt_, ' QList list5; ' ) - aadd( txt_, ' QList list2; ' ) - aadd( txt_, ' QList list3; ' ) - aadd( txt_, ' QList list4; ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'public slots: ' ) - aadd( txt_, ' void clicked(); ' ) - aadd( txt_, ' void triggered(); ' ) - aadd( txt_, ' void triggered( bool checked ); ' ) - aadd( txt_, ' void hovered(); ' ) - aadd( txt_, ' void stateChanged( int state ); ' ) - aadd( txt_, ' void pressed(); ' ) - aadd( txt_, ' void released(); ' ) - aadd( txt_, ' void activated( int index ); ' ) - aadd( txt_, ' void currentIndexChanged( int index ); ' ) - aadd( txt_, ' void highlighted( int index ); ' ) - aadd( txt_, ' void returnPressed(); ' ) - aadd( txt_, ' void clicked( const QModelIndex & index ); ' ) - aadd( txt_, ' void doubleClicked( const QModelIndex & index ); ' ) - aadd( txt_, ' void entered( const QModelIndex & index ); ' ) - aadd( txt_, ' void viewportEntered(); ' ) - aadd( txt_, ' bool event( QEvent * event ); ' ) - aadd( txt_, ' void keyPressEvent( QKeyEvent * event ); ' ) - aadd( txt_, ' void mouseMoveEvent( QMouseEvent * event ); ' ) - aadd( txt_, ' void hovered( QAction * action ); ' ) - aadd( txt_, ' void currentChanged( int index ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, '#if 0 ' ) - aadd( txt_, ' void accessibleEvent(); ' ) - aadd( txt_, ' void actionEvent(); ' ) - aadd( txt_, ' void childEvent(); ' ) - aadd( txt_, ' void closeEvent(); ' ) - aadd( txt_, ' void customEvent(); ' ) - aadd( txt_, ' void dragLeaveEvent(); ' ) - aadd( txt_, ' void dropEvent(); ' ) - aadd( txt_, ' void dynamicPropertyChangeEvent(); ' ) - aadd( txt_, ' void fileOpenEvent(); ' ) - aadd( txt_, ' void focusEvent(); ' ) - aadd( txt_, ' void graphicsSceneEvent(); ' ) - aadd( txt_, ' void helpEvent(); ' ) - aadd( txt_, ' void hideEvent(); ' ) - aadd( txt_, ' void hoverEvent(); ' ) - aadd( txt_, ' void iconDragEvent(); ' ) - aadd( txt_, ' void inputEvent(); ' ) - aadd( txt_, ' void inputMethodEvent(); ' ) - aadd( txt_, ' void moveEvent(); ' ) - aadd( txt_, ' void paintEvent(); ' ) - aadd( txt_, ' void resizeEvent(); ' ) - aadd( txt_, ' void shortcutEvent(); ' ) - aadd( txt_, ' void showEvent(); ' ) - aadd( txt_, ' void statusTipEvent(); ' ) - aadd( txt_, ' void timerEvent(); ' ) - aadd( txt_, ' void whatsThisClickedEvent(); ' ) - aadd( txt_, ' void windowStateChangeEvent(); ' ) - aadd( txt_, '#endif ' ) - aadd( txt_, '}; ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'class MyDrawingArea : public QWidget ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' Q_OBJECT ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'public: ' ) - aadd( txt_, ' MyDrawingArea( QWidget *parent = 0 ); ' ) - aadd( txt_, ' virtual ~MyDrawingArea( void ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' #if 0 ' ) - aadd( txt_, 'protected slots: ' ) - aadd( txt_, ' void keyReleaseEvent( QKeyEvent * event ); ' ) - aadd( txt_, ' void mousePressEvent( QMouseEvent * event ); ' ) - aadd( txt_, ' void mouseReleaseEvent( QMouseEvent * event ); ' ) - aadd( txt_, ' void mouseDoubleClickEvent( QMouseEvent * event );' ) - aadd( txt_, ' void paintEvent( QPaintEvent * event ); ' ) - aadd( txt_, ' void resizeEvent( QResizeEvent * event ); ' ) - aadd( txt_, ' void wheelEvent( QWheelEvent * event ); ' ) - aadd( txt_, ' void timerEvent( QTimerEvent * event ); ' ) - aadd( txt_, ' void focusInEvent( QFocusEvent * event ); ' ) - aadd( txt_, ' void focusOutEvent( QFocusEvent * event ); ' ) - aadd( txt_, ' void moveEvent( QMoveEvent * event ); ' ) - aadd( txt_, ' bool event( QEvent * event ); ' ) - aadd( txt_, ' #endif ' ) - aadd( txt_, ' void keyPressEvent( QKeyEvent * event ); ' ) - aadd( txt_, ' void mouseMoveEvent( QMouseEvent * event ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'signals: ' ) - aadd( txt_, ' void sg_mouseMoveEvent( QMouseEvent * event ); ' ) - aadd( txt_, ' void sg_keyPressEvent( QKeyEvent * event ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, '}; ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'class MyMainWindow : public QMainWindow ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' Q_OBJECT ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'public: ' ) - aadd( txt_, ' MyMainWindow(); ' ) - aadd( txt_, ' virtual ~MyMainWindow(); ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'public: ' ) - aadd( txt_, ' void closeEvent( QCloseEvent *event ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, '}; ' ) - aadd( txt_, ' ' ) - aadd( txt_, '#endif ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' ' ) - - RETURN CreateTarget( cFile, txt_ ) - -/*----------------------------------------------------------------------*/ - -STATIC FUNCTION Build_HBQT_SLOTS_CPP( cPathOut ) - LOCAL cFile := cPathOut + s_PathSep + 'hbqt_slots.cpp' - LOCAL txt_:={} - - BuildHeader( @txt_, 2 ) - - aadd( txt_, ' ' ) - aadd( txt_, '#include "hbapi.h" ' ) - aadd( txt_, '#include "hbvm.h" ' ) - aadd( txt_, '#include "hbapiitm.h" ' ) - aadd( txt_, ' ' ) - aadd( txt_, '#include "hbqt.h" ' ) - aadd( txt_, ' ' ) - aadd( txt_, '#if QT_VERSION >= 0x040500 ' ) - aadd( txt_, ' ' ) - aadd( txt_, '#include "hbqt_slots.h" ' ) - aadd( txt_, ' ' ) - aadd( txt_, '#include ' ) - aadd( txt_, '#include ' ) - aadd( txt_, '#include ' ) - aadd( txt_, '#include ' ) - aadd( txt_, '#include ' ) - aadd( txt_, ' ' ) - aadd( txt_, '#define HBQT_EVT_CLICKED 1 ' ) - aadd( txt_, '#define HBQT_EVT_TRIGGERED 2 ' ) - aadd( txt_, '#define HBQT_EVT_TRIGGERED_BOOL 3 ' ) - aadd( txt_, '#define HBQT_EVT_HOVERED 4 ' ) - aadd( txt_, '#define HBQT_EVT_STATECHANGED 5 ' ) - aadd( txt_, '#define HBQT_EVT_PRESSED 6 ' ) - aadd( txt_, '#define HBQT_EVT_RELEASED 7 ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'static Slots *s = NULL; ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'static void SlotsExec( QWidget* widget, QString event, PHB_ITEM pItem ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' for( int i = 0; i < s->list1.size(); ++i ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' if( ( QWidget* ) s->list1.at( i ) == widget ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' if( ( ( QString ) s->list2.at( i ) == event ) && ( ( bool ) s->list4.at( i ) == true ) ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' PHB_ITEM pWidget = hb_itemPutPtr( NULL, ( QWidget* ) widget ); ' ) - aadd( txt_, ' hb_vmEvalBlockV( ( PHB_ITEM ) s->list3.at( i ), 1, pWidget ); ' ) - aadd( txt_, ' hb_itemRelease( pWidget ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' if( pItem != NULL ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' hb_itemRelease( pItem ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'static void SlotsExecAction( QAction* widget, QString event, PHB_ITEM pItem ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' for( int i = 0; i < s->list1.size(); ++i ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' if( ( QAction* ) s->list5.at( i ) == widget ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' if( ( ( QString ) s->list2.at( i ) == event ) && ( ( bool ) s->list4.at( i ) == true ) ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' PHB_ITEM pWidget = hb_itemPutPtr( NULL, ( QAction* ) widget ); ' ) - aadd( txt_, ' hb_vmEvalBlockV( ( PHB_ITEM ) s->list3.at( i ), 1, pWidget ); ' ) - aadd( txt_, ' hb_itemRelease( pWidget ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' if( pItem != NULL ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' hb_itemRelease( pItem ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'static void SlotsExecInt( QWidget* widget, QString event, PHB_ITEM pItem, int iValue ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' for( int i = 0; i < s->list1.size(); ++i ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' if( ( QWidget* ) s->list1.at( i ) == widget ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' if( ( ( QString ) s->list2.at( i ) == event ) && ( ( bool ) s->list4.at( i ) == true ) ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' PHB_ITEM pWidget = hb_itemPutPtr( NULL, ( QWidget* ) widget ); ' ) - aadd( txt_, ' PHB_ITEM pState = hb_itemPutNI( NULL, iValue ); ' ) - aadd( txt_, ' hb_vmEvalBlockV( ( PHB_ITEM ) s->list3.at( i ), 2, pWidget, pState ); ' ) - aadd( txt_, ' hb_itemRelease( pWidget ); ' ) - aadd( txt_, ' hb_itemRelease( pState ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' if( pItem != NULL ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' hb_itemRelease( pItem ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'static void SlotsExecModel( QWidget* widget, QString event, PHB_ITEM pItem, const QModelIndex & index ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' for( int i = 0; i < s->list1.size(); ++i ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' if( ( QWidget* ) s->list1.at( i ) == widget ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' if( ( ( QString ) s->list2.at( i ) == event ) && ( ( bool ) s->list4.at( i ) == true ) ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' PHB_ITEM pWidget = hb_itemPutPtr( NULL, ( QWidget* ) widget ); ' ) - aadd( txt_, ' PHB_ITEM pState = hb_itemPutPtr( NULL, ( QModelIndex * ) new QModelIndex( index ) ); ' ) - aadd( txt_, ' hb_vmEvalBlockV( ( PHB_ITEM ) s->list3.at( i ), 2, pWidget, pState ); ' ) - aadd( txt_, ' hb_itemRelease( pWidget ); ' ) - aadd( txt_, ' hb_itemRelease( pState ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' if( pItem != NULL ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' hb_itemRelease( pItem ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'Slots::Slots( QObject* parent ) : QObject( parent ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'Slots::~Slots() ' ) - aadd( txt_, '{ ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'bool Slots::event( QEvent * event ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' bool bAccepted = true; ' ) - aadd( txt_, ' QObject *widget = qobject_cast( sender() ); ' ) - aadd( txt_, ' for( int i = 0; i < list1.size(); ++i ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' if( ( QObject* ) list1.at( i ) == ( QObject* ) widget ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' if( ( ( QString ) list2.at( i ) == ( QString ) "event()" ) && ( ( bool ) list4.at( i ) == true ) ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' PHB_ITEM pWidget = hb_itemPutPtr( NULL, ( QWidget * ) widget ); ' ) - aadd( txt_, ' PHB_ITEM pEvent = hb_itemPutPtr( NULL, event ); ' ) - aadd( txt_, ' bAccepted = hb_vmEvalBlockV( ( PHB_ITEM ) list3.at( i ), 2, pWidget, pEvent ); ' ) - aadd( txt_, ' hb_itemRelease( pWidget ); ' ) - aadd( txt_, ' hb_itemRelease( pEvent ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' return bAccepted; ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void Slots::keyPressEvent( QKeyEvent * event ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' QObject *widget = qobject_cast( sender() ); ' ) - aadd( txt_, ' for( int i = 0; i < list1.size(); ++i ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' if( ( QObject* ) list1.at( i ) == ( QObject* ) widget ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' if( ( ( QString ) list2.at( i ) == ( QString ) "keyPressEvent()" ) && ( ( bool ) list4.at( i ) == true ) ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' PHB_ITEM pWidget = hb_itemPutPtr( NULL, ( QWidget * ) widget ); ' ) - aadd( txt_, ' PHB_ITEM pEvent = hb_itemPutPtr( NULL, event ); ' ) - aadd( txt_, ' hb_vmEvalBlockV( ( PHB_ITEM ) list3.at( i ), 2, pWidget, pEvent ); ' ) - aadd( txt_, ' hb_itemRelease( pWidget ); ' ) - aadd( txt_, ' hb_itemRelease( pEvent ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' } ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void Slots::mouseMoveEvent( QMouseEvent * event ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' QObject *widget = qobject_cast( sender() ); ' ) - aadd( txt_, ' for( int i = 0; i < list1.size(); ++i ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' if( ( QObject* ) list1.at( i ) == ( QObject* ) widget ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' if( ( ( QString ) list2.at( i ) == ( QString ) "mouseMoveEvent()" ) && ( ( bool ) list4.at( i ) == true ) ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' PHB_ITEM pWidget = hb_itemPutPtr( NULL, ( QWidget * ) widget ); ' ) - aadd( txt_, ' PHB_ITEM pEvent = hb_itemPutPtr( NULL, event ); ' ) - aadd( txt_, ' hb_vmEvalBlockV( ( PHB_ITEM ) list3.at( i ), 2, pWidget, pEvent ); ' ) - aadd( txt_, ' hb_itemRelease( pWidget ); ' ) - aadd( txt_, ' hb_itemRelease( pEvent ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' } ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void Slots::hovered( QAction * action ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' QObject *widget = qobject_cast( sender() ); ' ) - aadd( txt_, ' for( int i = 0; i < list1.size(); ++i ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' if( ( QObject* ) list1.at( i ) == ( QObject* ) widget ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' if( ( ( QString ) list2.at( i ) == ( QString ) "hovered(action)" ) && ( ( bool ) list4.at( i ) == true ) ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' PHB_ITEM pWidget = hb_itemPutPtr( NULL, ( QWidget * ) widget ); ' ) - aadd( txt_, ' PHB_ITEM pEvent = hb_itemPutPtr( NULL, action ); ' ) - aadd( txt_, ' hb_vmEvalBlockV( ( PHB_ITEM ) list3.at( i ), 2, pWidget, pEvent ); ' ) - aadd( txt_, ' hb_itemRelease( pWidget ); ' ) - aadd( txt_, ' hb_itemRelease( pEvent ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' } ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void Slots::clicked() ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' QWidget *widget = qobject_cast( sender() ); ' ) - aadd( txt_, ' SlotsExec( widget, ( QString ) "clicked()", NULL ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void Slots::returnPressed() ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' QWidget *widget = qobject_cast( sender() ); ' ) - aadd( txt_, ' SlotsExec( widget, ( QString ) "returnPressed()", NULL ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void Slots::viewportEntered() ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' QWidget *widget = qobject_cast( sender() ); ' ) - aadd( txt_, ' SlotsExec( widget, ( QString ) "viewportEntered()", NULL ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void Slots::pressed() ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' QWidget *widget = qobject_cast( sender() ); ' ) - aadd( txt_, ' SlotsExec( widget, ( QString ) "pressed()", NULL ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void Slots::released() ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' QWidget *widget = qobject_cast( sender() ); ' ) - aadd( txt_, ' SlotsExec( widget, ( QString ) "released()", NULL ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void Slots::hovered() ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' //QWidget *widget = qobject_cast( sender() ); ' ) - aadd( txt_, ' QAction *widget = qobject_cast( sender() ); ' ) - aadd( txt_, ' if( widget ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' SlotsExecAction( widget, ( QString ) "hovered()", NULL ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void Slots::triggered() ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' QWidget *widget = qobject_cast( sender() ); ' ) - aadd( txt_, ' SlotsExec( widget, ( QString ) "triggered()", NULL ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void Slots::triggered( bool checked ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' QObject *widget = qobject_cast( sender() ); ' ) - aadd( txt_, ' for( int i = 0; i < list1.size(); ++i ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' if( ( QObject* ) list1.at( i ) == ( QObject* ) widget ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' if( ( ( QString ) list2.at( i ) == ( QString ) "triggered(bool)" ) && ( ( bool ) list4.at( i ) == true ) ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' PHB_ITEM pWidget = hb_itemPutPtr( NULL, ( QObject * ) widget ); ' ) - aadd( txt_, ' PHB_ITEM pChecked = hb_itemPutL( NULL, checked ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' hb_vmEvalBlockV( ( PHB_ITEM ) list3.at( i ), 2, pWidget, pChecked ); ' ) - aadd( txt_, ' hb_itemRelease( pWidget ); ' ) - aadd( txt_, ' hb_itemRelease( pChecked ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' } ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void Slots::stateChanged( int state ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' QWidget *widget = qobject_cast( sender() ); ' ) - aadd( txt_, ' SlotsExecInt( widget, ( QString ) "stateChanged(int)", NULL, state ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void Slots::activated( int index ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' QWidget *widget = qobject_cast( sender() ); ' ) - aadd( txt_, ' SlotsExecInt( widget, ( QString ) "activated(int)", NULL, index ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void Slots::currentIndexChanged( int index ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' QWidget *widget = qobject_cast( sender() ); ' ) - aadd( txt_, ' SlotsExecInt( widget, ( QString ) "currentIndexChanged(int)", NULL, index ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void Slots::currentChanged( int index ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' QWidget *widget = qobject_cast( sender() ); ' ) - aadd( txt_, ' SlotsExecInt( widget, ( QString ) "currentChanged(int)", NULL, index ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void Slots::highlighted( int index ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' QWidget *widget = qobject_cast( sender() ); ' ) - aadd( txt_, ' SlotsExecInt( widget, ( QString ) "highlighted(int)", NULL, index ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void Slots::clicked( const QModelIndex & index ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' QWidget * widget = qobject_cast( sender() ); ' ) - aadd( txt_, ' SlotsExecModel( widget, ( QString ) "clicked(QModelIndex)", NULL, index ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, 'void Slots::doubleClicked( const QModelIndex & index ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' QWidget * widget = qobject_cast( sender() ); ' ) - aadd( txt_, ' SlotsExecModel( widget, ( QString ) "doubleClicked(QModelIndex)", NULL, index ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, 'void Slots::entered( const QModelIndex & index ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' QWidget * widget = qobject_cast( sender() ); ' ) - aadd( txt_, ' SlotsExecModel( widget, ( QString ) "entered(QModelIndex)", NULL, index ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/* ' ) - aadd( txt_, ' * harbour function to connect signals with slots ' ) - aadd( txt_, ' */ ' ) - aadd( txt_, 'HB_FUNC( QT_CONNECT_SIGNAL ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' QWidget * widget = ( QWidget* ) hb_parptr( 1 ); /* get sender */ ' ) - aadd( txt_, ' QString signal = hb_parc( 2 ); /* get signal */ ' ) - aadd( txt_, ' PHB_ITEM codeblock = hb_itemNew( hb_param( 3, HB_IT_BLOCK | HB_IT_BYREF ) ); /* get codeblock */ ' ) - aadd( txt_, ' bool ret = false; /* return value */ ' ) - aadd( txt_, ' bool bAct = false; ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' /* create object s, if not created yet */ ' ) - aadd( txt_, ' if( s == NULL ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' s = new Slots(); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' /* connect signal with slot ' ) - aadd( txt_, ' * if the list become to long, more classes can be created ' ) - aadd( txt_, ' * TODO: parameter Qt::AutoConnection ' ) - aadd( txt_, ' */ ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' /* Events with no parameters */ ' ) - aadd( txt_, ' if( signal == ( QString ) "clicked()" ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' ret = widget->connect( widget, SIGNAL( clicked() ) , s, SLOT( clicked() ) , Qt::AutoConnection ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' if( signal == ( QString ) "returnPressed()" ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' ret = widget->connect( widget, SIGNAL( returnPressed() ) , s, SLOT( returnPressed() ) , Qt::AutoConnection ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' if( signal == ( QString ) "triggered()" ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' ret = widget->connect( widget, SIGNAL( triggered() ) , s, SLOT( triggered() ) , Qt::AutoConnection ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' if( signal == ( QString ) "hovered()" ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' ret = widget->connect( widget, SIGNAL( hovered() ) , s, SLOT( hovered() ) , Qt::AutoConnection ); ' ) - aadd( txt_, ' bAct = true; ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' if( signal == ( QString ) "viewportEntered()" ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' ret = widget->connect( widget, SIGNAL( viewportEntered() ) , s, SLOT( viewportEntered() ) , Qt::AutoConnection ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' if( signal == ( QString ) "pressed()" ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' ret = widget->connect( widget, SIGNAL( pressed() ) , s, SLOT( pressed() ) , Qt::AutoConnection ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' if( signal == ( QString ) "released()" ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' ret = widget->connect( widget, SIGNAL( released() ) , ' ) - aadd( txt_, ' s, SLOT( released() ), Qt::AutoConnection ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' /* Events with int parameter */ ' ) - aadd( txt_, ' if( signal == ( QString ) "stateChanged(int)" ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' ret = widget->connect( widget, SIGNAL( stateChanged( int ) ), ' ) - aadd( txt_, ' s, SLOT( stateChanged( int ) ), Qt::AutoConnection ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' if( signal == ( QString ) "activated(int)" ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' ret = widget->connect( widget, SIGNAL( activated( int ) ), ' ) - aadd( txt_, ' s, SLOT( activated( int ) ) , Qt::AutoConnection ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' if( signal == ( QString ) "currentIndexChanged(int)" ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' ret = widget->connect( widget, SIGNAL( currentIndexChanged( int ) ), ' ) - aadd( txt_, ' s, SLOT( currentIndexChanged( int ) ), Qt::AutoConnection ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' if( signal == ( QString ) "highlighted(int)" ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' ret = widget->connect( widget, SIGNAL( highlighted( int ) ) , ' ) - aadd( txt_, ' s, SLOT( highlighted( int ) ) , Qt::AutoConnection ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' /* Events with bool parameter */ ' ) - aadd( txt_, ' if( signal == ( QString ) "triggered(bool)" ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' ret = widget->connect( widget, SIGNAL( triggered( bool ) ), ' ) - aadd( txt_, ' s, SLOT( triggered( bool ) ) , Qt::AutoConnection ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' /* Events with miscellaneous parameters */ ' ) - aadd( txt_, ' if( signal == ( QString ) "clicked(QModelIndex)" ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' ret = widget->connect( widget, SIGNAL( clicked( const QModelIndex & ) ), ' ) - aadd( txt_, ' s, SLOT( clicked( const QModelIndex & ) ), Qt::AutoConnection ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' if( signal == ( QString ) "doubleClicked(QModelIndex)" ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' ret = widget->connect( widget, SIGNAL( doubleClicked( const QModelIndex & ) ), ' ) - aadd( txt_, ' s, SLOT( doubleClicked( const QModelIndex & ) ), Qt::AutoConnection ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' if( signal == ( QString ) "entered(QModelIndex)" ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' ret = widget->connect( widget, SIGNAL( entered( const QModelIndex & ) ), ' ) - aadd( txt_, ' s, SLOT( entered( const QModelIndex & ) ), Qt::AutoConnection ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' if( signal == ( QString ) "event()" ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' ret = widget->connect( widget, SIGNAL( event( QEvent * ) ), ' ) - aadd( txt_, ' s, SLOT( event( QEvent * ) ) , Qt::AutoConnection ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' if( signal == ( QString ) "keyPressEvent()" ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' ret = widget->connect( widget, SIGNAL( sg_keyPressEvent( QKeyEvent * ) ), ' ) - aadd( txt_, ' s, SLOT( keyPressEvent( QKeyEvent * ) ), Qt::AutoConnection ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' if( signal == ( QString ) "mouseMoveEvent()" ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' ret = widget->connect( widget, SIGNAL( sg_mouseMoveEvent( QMouseEvent * ) ), ' ) - aadd( txt_, ' s, SLOT( mouseMoveEvent( QMouseEvent * ) ), Qt::AutoConnection ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' if( signal == ( QString ) "hovered(action)" ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' ret = widget->connect( widget, SIGNAL( hovered( QAction * ) ), ' ) - aadd( txt_, ' s, SLOT( hovered( QAction * ) ), Qt::AutoConnection ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' if( signal == ( QString ) "currentChanged(int)" ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' ret = widget->connect( widget, SIGNAL( currentChanged( int ) ), ' ) - aadd( txt_, ' s, SLOT( currentChanged( int ) ), Qt::AutoConnection ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' /* return connect result */ ' ) - aadd( txt_, ' hb_retl( ret ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' /* if connected: store widget, signal, codeblock and flag ' ) - aadd( txt_, ' * TODO: locate a inactive entry and use it ' ) - aadd( txt_, ' */ ' ) - aadd( txt_, ' if( ret == true ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' if( bAct ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' s->list5 << ( QAction* ) hb_parptr( 1 ); ' ) - aadd( txt_, ' s->list1 << NULL; ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' else ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' s->list5 << NULL; ' ) - aadd( txt_, ' s->list1 << widget; ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' s->list2 << signal; ' ) - aadd( txt_, ' s->list3 << codeblock; ' ) - aadd( txt_, ' s->list4 << true; ' ) - aadd( txt_, ' } ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/* ' ) - aadd( txt_, ' * harbour function to disconnect signals ' ) - aadd( txt_, ' */ ' ) - aadd( txt_, 'HB_FUNC( QT_DISCONNECT_SIGNAL ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' /* TODO */ ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/* ' ) - aadd( txt_, ' * harbour function to release all codeblocks storeds ' ) - aadd( txt_, ' */ ' ) - aadd( txt_, '#if 0 ' ) - aadd( txt_, 'HB_FUNC( RELEASE_CODEBLOCKS ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' if( s ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' for( int i = 0; i < s->list1.size(); ++i ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' if( ( bool ) s->list4.at( i ) == true ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' hb_itemRelease( ( PHB_ITEM ) s->list3.at( i ) ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' } ' ) - aadd( txt_, '} ' ) - aadd( txt_, '#endif ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/* ' ) - aadd( txt_, ' * C function to release all codeblocks storeds ' ) - aadd( txt_, ' * called at end of the program ' ) - aadd( txt_, ' * see qapplication.cpp ' ) - aadd( txt_, ' */ ' ) - aadd( txt_, 'void release_codeblocks( void ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' if( s ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' for( int i = 0; i < s->list1.size(); ++i ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' if( ( bool ) s->list4.at( i ) == true ) ' ) - aadd( txt_, ' { ' ) - aadd( txt_, ' hb_itemRelease( ( PHB_ITEM ) s->list3.at( i ) ); ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' } ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'MyMainWindow::MyMainWindow() ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' Qt::WindowFlags flags = Qt::WindowCloseButtonHint | Qt::WindowMaximizeButtonHint | ' ) - aadd( txt_, ' Qt::WindowMinimizeButtonHint | Qt::WindowSystemMenuHint | ' ) - aadd( txt_, ' Qt::CustomizeWindowHint | Qt::WindowTitleHint | ' ) - aadd( txt_, ' Qt::Window ; ' ) - aadd( txt_, ' setWindowFlags( flags ); ' ) - aadd( txt_, ' setFocusPolicy( Qt::StrongFocus ); ' ) - aadd( txt_, ' setAttribute( Qt::WA_DeleteOnClose ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'MyMainWindow::~MyMainWindow( void ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void MyMainWindow::closeEvent( QCloseEvent *event ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' event->accept(); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'MyDrawingArea::MyDrawingArea(QWidget *parent) ' ) - aadd( txt_, ' : QWidget(parent) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' setAttribute( Qt::WA_StaticContents ); ' ) - aadd( txt_, ' setAttribute( Qt::WA_PaintOnScreen ); ' ) - aadd( txt_, ' setAttribute( Qt::WA_DeleteOnClose ); ' ) - aadd( txt_, ' setAttribute( Qt::WA_WindowPropagation ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' setFocusPolicy( Qt::StrongFocus ); ' ) - aadd( txt_, ' setMouseTracking( true ); ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' setAttribute( Qt::WA_InputMethodEnabled, true ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'MyDrawingArea::~MyDrawingArea( void ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, '} ' ) - aadd( txt_, 'void MyDrawingArea::mouseMoveEvent( QMouseEvent * event ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' emit sg_mouseMoveEvent( event ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, 'void MyDrawingArea::keyPressEvent( QKeyEvent * event ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' emit sg_keyPressEvent( event ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'HB_FUNC( QT_MYMAINWINDOW ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' hb_retptr( ( MyMainWindow * ) new MyMainWindow() ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'HB_FUNC( QT_MYDRAWINGAREA ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' hb_retptr( ( MyDrawingArea * ) new MyDrawingArea() ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) - aadd( txt_, '#endif ' ) - aadd( txt_, ' ' ) - - RETURN CreateTarget( cFile, txt_ ) - -/*----------------------------------------------------------------------*/ - -STATIC FUNCTION Build_MOC_SLOTS_CPP( cPathOut ) - LOCAL cFile := cPathOut + s_PathSep + 'moc_slots.cpp' - LOCAL txt_:={} - - /* ...........................................................................................................' */ - - aadd( txt_, '/**************************************************************************** ' ) - aadd( txt_, '** Meta object code from reading C++ file [hbqt_slots.h] ' ) - aadd( txt_, '** ' ) - aadd( txt_, '** Created: Mon Jun 15 00:25:52 2009 ' ) - aadd( txt_, '** by: The Qt Meta Object Compiler version 61 (Qt 4.5.0) ' ) - aadd( txt_, '** ' ) - aadd( txt_, '** WARNING! All changes made in this file will be lost! ' ) - aadd( txt_, '*****************************************************************************/ ' ) - aadd( txt_, ' ' ) - aadd( txt_, '#include "hbqt_slots.h" ' ) - aadd( txt_, '#if !defined(Q_MOC_OUTPUT_REVISION) ' ) - aadd( txt_, '#error "The header file [hbqt_slots.h] doesnot include ." ' ) - aadd( txt_, '#elif Q_MOC_OUTPUT_REVISION != 61 ' ) - aadd( txt_, '#error "This file was generated using the moc from 4.5.0. It" ' ) - aadd( txt_, '#error "cannot be used with the include files from this version of Qt." ' ) - aadd( txt_, '#error "(The moc has changed too much.)" ' ) - aadd( txt_, '#endif ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'QT_BEGIN_MOC_NAMESPACE ' ) - aadd( txt_, 'static const uint qt_meta_data_Slots[] = { ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' // content: ' ) - aadd( txt_, ' 2, // revision ' ) - aadd( txt_, ' 0, // classname ' ) - aadd( txt_, ' 0, 0, // classinfo ' ) - aadd( txt_, ' 20, 12, // methods ' ) - aadd( txt_, ' 0, 0, // properties ' ) - aadd( txt_, ' 0, 0, // enums/sets ' ) - aadd( txt_, ' 0, 0, // constructors ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' // slots: signature, parameters, type, tag, flags ' ) - aadd( txt_, ' 7, 6, 6, 6, 0x0a, ' ) - aadd( txt_, ' 17, 6, 6, 6, 0x0a, ' ) - aadd( txt_, ' 37, 29, 6, 6, 0x0a, ' ) - aadd( txt_, ' 53, 6, 6, 6, 0x0a, ' ) - aadd( txt_, ' 69, 63, 6, 6, 0x0a, ' ) - aadd( txt_, ' 87, 6, 6, 6, 0x0a, ' ) - aadd( txt_, ' 97, 6, 6, 6, 0x0a, ' ) - aadd( txt_, ' 114, 108, 6, 6, 0x0a, ' ) - aadd( txt_, ' 129, 108, 6, 6, 0x0a, ' ) - aadd( txt_, ' 154, 108, 6, 6, 0x0a, ' ) - aadd( txt_, ' 171, 6, 6, 6, 0x0a, ' ) - aadd( txt_, ' 187, 108, 6, 6, 0x0a, ' ) - aadd( txt_, ' 208, 108, 6, 6, 0x0a, ' ) - aadd( txt_, ' 235, 108, 6, 6, 0x0a, ' ) - aadd( txt_, ' 256, 6, 6, 6, 0x0a, ' ) - aadd( txt_, ' 285, 279, 274, 6, 0x0a, ' ) - aadd( txt_, ' 300, 279, 6, 6, 0x0a, ' ) - aadd( txt_, ' 326, 279, 6, 6, 0x0a, ' ) - aadd( txt_, ' 362, 355, 6, 6, 0x0a, ' ) - aadd( txt_, ' 380, 108, 6, 6, 0x0a, ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' 0 // eod ' ) - aadd( txt_, '}; ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'static const char qt_meta_stringdata_Slots[] = { ' ) - aadd( txt_, ' "Slots\0\0clicked()\0triggered()\0checked\0" ' ) - aadd( txt_, ' "triggered(bool)\0hovered()\0state\0" ' ) - aadd( txt_, ' "stateChanged(int)\0pressed()\0released()\0" ' ) - aadd( txt_, ' "index\0activated(int)\0currentIndexChanged(int)\0" ' ) - aadd( txt_, ' "highlighted(int)\0returnPressed()\0" ' ) - aadd( txt_, ' "clicked(QModelIndex)\0doubleClicked(QModelIndex)\0" ' ) - aadd( txt_, ' "entered(QModelIndex)\0viewportEntered()\0" ' ) - aadd( txt_, ' "bool\0event\0event(QEvent*)\0" ' ) - aadd( txt_, ' "keyPressEvent(QKeyEvent*)\0" ' ) - aadd( txt_, ' "mouseMoveEvent(QMouseEvent*)\0action\0" ' ) - aadd( txt_, ' "hovered(QAction*)\0currentChanged(int)\0" ' ) - aadd( txt_, '}; ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'const QMetaObject Slots::staticMetaObject = { ' ) - aadd( txt_, ' { &QObject::staticMetaObject, qt_meta_stringdata_Slots, ' ) - aadd( txt_, ' qt_meta_data_Slots, 0 } ' ) - aadd( txt_, '}; ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'const QMetaObject *Slots::metaObject() const ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' return &staticMetaObject; ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void *Slots::qt_metacast(const char *_clname) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' if (!_clname) return 0; ' ) - aadd( txt_, ' if (!strcmp(_clname, qt_meta_stringdata_Slots)) ' ) - aadd( txt_, ' return static_cast(const_cast< Slots*>(this)); ' ) - aadd( txt_, ' return QObject::qt_metacast(_clname); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'int Slots::qt_metacall(QMetaObject::Call _c, int _id, void **_a) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' _id = QObject::qt_metacall(_c, _id, _a); ' ) - aadd( txt_, ' if (_id < 0) ' ) - aadd( txt_, ' return _id; ' ) - aadd( txt_, ' if (_c == QMetaObject::InvokeMetaMethod) { ' ) - aadd( txt_, ' switch (_id) { ' ) - aadd( txt_, ' case 0: clicked(); break; ' ) - aadd( txt_, ' case 1: triggered(); break; ' ) - aadd( txt_, ' case 2: triggered((*reinterpret_cast< bool(*)>(_a[1]))); break; ' ) - aadd( txt_, ' case 3: hovered(); break; ' ) - aadd( txt_, ' case 4: stateChanged((*reinterpret_cast< int(*)>(_a[1]))); break; ' ) - aadd( txt_, ' case 5: pressed(); break; ' ) - aadd( txt_, ' case 6: released(); break; ' ) - aadd( txt_, ' case 7: activated((*reinterpret_cast< int(*)>(_a[1]))); break; ' ) - aadd( txt_, ' case 8: currentIndexChanged((*reinterpret_cast< int(*)>(_a[1]))); break; ' ) - aadd( txt_, ' case 9: highlighted((*reinterpret_cast< int(*)>(_a[1]))); break; ' ) - aadd( txt_, ' case 10: returnPressed(); break; ' ) - aadd( txt_, ' case 11: clicked((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break; ' ) - aadd( txt_, ' case 12: doubleClicked((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break; ' ) - aadd( txt_, ' case 13: entered((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break; ' ) - aadd( txt_, ' case 14: viewportEntered(); break; ' ) - aadd( txt_, ' case 15: { bool _r = event((*reinterpret_cast< QEvent*(*)>(_a[1]))); ' ) - aadd( txt_, ' if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break; ' ) - aadd( txt_, ' case 16: keyPressEvent((*reinterpret_cast< QKeyEvent*(*)>(_a[1]))); break; ' ) - aadd( txt_, ' case 17: mouseMoveEvent((*reinterpret_cast< QMouseEvent*(*)>(_a[1]))); break; ' ) - aadd( txt_, ' case 18: hovered((*reinterpret_cast< QAction*(*)>(_a[1]))); break; ' ) - aadd( txt_, ' case 19: currentChanged((*reinterpret_cast< int(*)>(_a[1]))); break; ' ) - aadd( txt_, ' default: ; ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' _id -= 20; ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' return _id; ' ) - aadd( txt_, '} ' ) - aadd( txt_, 'static const uint qt_meta_data_MyDrawingArea[] = { ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' // content: ' ) - aadd( txt_, ' 2, // revision ' ) - aadd( txt_, ' 0, // classname ' ) - aadd( txt_, ' 0, 0, // classinfo ' ) - aadd( txt_, ' 2, 12, // methods ' ) - aadd( txt_, ' 0, 0, // properties ' ) - aadd( txt_, ' 0, 0, // enums/sets ' ) - aadd( txt_, ' 0, 0, // constructors ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' // signals: signature, parameters, type, tag, flags ' ) - aadd( txt_, ' 21, 15, 14, 14, 0x05, ' ) - aadd( txt_, ' 53, 15, 14, 14, 0x05, ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' 0 // eod ' ) - aadd( txt_, '}; ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'static const char qt_meta_stringdata_MyDrawingArea[] = { ' ) - aadd( txt_, ' "MyDrawingArea\0\0event\0" ' ) - aadd( txt_, ' "sg_mouseMoveEvent(QMouseEvent*)\0" ' ) - aadd( txt_, ' "sg_keyPressEvent(QKeyEvent*)\0" ' ) - aadd( txt_, '}; ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'const QMetaObject MyDrawingArea::staticMetaObject = { ' ) - aadd( txt_, ' { &QWidget::staticMetaObject, qt_meta_stringdata_MyDrawingArea, ' ) - aadd( txt_, ' qt_meta_data_MyDrawingArea, 0 } ' ) - aadd( txt_, '}; ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'const QMetaObject *MyDrawingArea::metaObject() const ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' return &staticMetaObject; ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void *MyDrawingArea::qt_metacast(const char *_clname) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' if (!_clname) return 0; ' ) - aadd( txt_, ' if (!strcmp(_clname, qt_meta_stringdata_MyDrawingArea)) ' ) - aadd( txt_, ' return static_cast(const_cast< MyDrawingArea*>(this)); ' ) - aadd( txt_, ' return QWidget::qt_metacast(_clname); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'int MyDrawingArea::qt_metacall(QMetaObject::Call _c, int _id, void **_a) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' _id = QWidget::qt_metacall(_c, _id, _a); ' ) - aadd( txt_, ' if (_id < 0) ' ) - aadd( txt_, ' return _id; ' ) - aadd( txt_, ' if (_c == QMetaObject::InvokeMetaMethod) { ' ) - aadd( txt_, ' switch (_id) { ' ) - aadd( txt_, ' case 0: sg_mouseMoveEvent((*reinterpret_cast< QMouseEvent*(*)>(_a[1]))); break; ' ) - aadd( txt_, ' case 1: sg_keyPressEvent((*reinterpret_cast< QKeyEvent*(*)>(_a[1]))); break; ' ) - aadd( txt_, ' default: ; ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' _id -= 2; ' ) - aadd( txt_, ' } ' ) - aadd( txt_, ' return _id; ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, '// SIGNAL 0 ' ) - aadd( txt_, 'void MyDrawingArea::sg_mouseMoveEvent(QMouseEvent * _t1) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; ' ) - aadd( txt_, ' QMetaObject::activate(this, &staticMetaObject, 0, _a); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, '// SIGNAL 1 ' ) - aadd( txt_, 'void MyDrawingArea::sg_keyPressEvent(QKeyEvent * _t1) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; ' ) - aadd( txt_, ' QMetaObject::activate(this, &staticMetaObject, 1, _a); ' ) - aadd( txt_, '} ' ) - aadd( txt_, 'static const uint qt_meta_data_MyMainWindow[] = { ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' // content: ' ) - aadd( txt_, ' 2, // revision ' ) - aadd( txt_, ' 0, // classname ' ) - aadd( txt_, ' 0, 0, // classinfo ' ) - aadd( txt_, ' 0, 0, // methods ' ) - aadd( txt_, ' 0, 0, // properties ' ) - aadd( txt_, ' 0, 0, // enums/sets ' ) - aadd( txt_, ' 0, 0, // constructors ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' 0 // eod ' ) - aadd( txt_, '}; ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'static const char qt_meta_stringdata_MyMainWindow[] = { ' ) - aadd( txt_, ' "MyMainWindow\0" ' ) - aadd( txt_, '}; ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'const QMetaObject MyMainWindow::staticMetaObject = { ' ) - aadd( txt_, ' { &QMainWindow::staticMetaObject, qt_meta_stringdata_MyMainWindow, ' ) - aadd( txt_, ' qt_meta_data_MyMainWindow, 0 } ' ) - aadd( txt_, '}; ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'const QMetaObject *MyMainWindow::metaObject() const ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' return &staticMetaObject; ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'void *MyMainWindow::qt_metacast(const char *_clname) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' if (!_clname) return 0; ' ) - aadd( txt_, ' if (!strcmp(_clname, qt_meta_stringdata_MyMainWindow)) ' ) - aadd( txt_, ' return static_cast(const_cast< MyMainWindow*>(this)); ' ) - aadd( txt_, ' return QMainWindow::qt_metacast(_clname); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'int MyMainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' _id = QMainWindow::qt_metacall(_c, _id, _a); ' ) - aadd( txt_, ' if (_id < 0) ' ) - aadd( txt_, ' return _id; ' ) - aadd( txt_, ' return _id; ' ) - aadd( txt_, '} ' ) - aadd( txt_, 'QT_END_MOC_NAMESPACE ' ) - aadd( txt_, ' ' ) - - RETURN CreateTarget( cFile, txt_ ) - -/*----------------------------------------------------------------------*/ - -STATIC FUNCTION Build_Demo() - LOCAL cFile := '..' + s_PathSep + 'tests' + s_PathSep + 'demoqt.prg' - LOCAL txt_:= {} - - BuildHeader( @txt_, 2 ) - - /* .............................................................................................................................................. */ - - aadd( txt_, '#define QT_PTROF( oObj ) ( oObj:pPtr ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, '#define QT_EVE_TRIGGERED "triggered()" ' ) - aadd( txt_, '#define QT_EVE_TRIGGERED_B "triggered(bool)" ' ) - aadd( txt_, '#define QT_EVE_HOVERED "hovered()" ' ) - aadd( txt_, '#define QT_EVE_CLICKED "clicked()" ' ) - aadd( txt_, '#define QT_EVE_STATECHANGED_I "stateChanged(int)" ' ) - aadd( txt_, '#define QT_EVE_PRESSED "pressed()" ' ) - aadd( txt_, '#define QT_EVE_RELEASED "released()" ' ) - aadd( txt_, '#define QT_EVE_ACTIVATED_I "activated(int)" ' ) - aadd( txt_, '#define QT_EVE_CURRENTINDEXCHANGED_I "currentIndexChanged(int)" ' ) - aadd( txt_, '#define QT_EVE_HIGHLIGHTED_I "highlighted(int)" ' ) - aadd( txt_, '#define QT_EVE_RETURNPRESSED "returnPressed()" ' ) - aadd( txt_, '#define QT_EVE_CLICKED_M "clicked(QModelIndex)" ' ) - aadd( txt_, '#define QT_EVE_VIEWPORTENTERED "viewportEntered()" ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) - aadd( txt_, '/* ' ) - aadd( txt_, ' * A NOTE ' ) - aadd( txt_, ' * ' ) - aadd( txt_, ' * This demo is built on auto generated classes by the engine. No attemp ' ) - aadd( txt_, ' * is exercised to refine the way the code must be written. At this moment ' ) - aadd( txt_, ' * my emphasis is on testing phase of QT wrapper functions and classes ' ) - aadd( txt_, ' * generated thereof. In near future the actual implementation will be ' ) - aadd( txt_, ' * based on the Xbase++ XBPParts compatible framework. You just are ' ) - aadd( txt_, ' * encouraged to sense the power of QT through this expression. ' ) - aadd( txt_, ' * ' ) - aadd( txt_, ' * Pritpal Bedi ' ) - aadd( txt_, ' */ ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'INIT PROCEDURE Qt_Start() ' ) - aadd( txt_, ' qt_qapplication() ' ) - aadd( txt_, ' /*qt_qapplication_setstyle( QT_PTROF( QWindowsXPStyle():new() ) )*/ ' ) - aadd( txt_, ' RETURN ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'EXIT PROCEDURE Qt_End() ' ) - aadd( txt_, ' qt_qapplication_exec() ' ) - aadd( txt_, ' RETURN ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'PROCEDURE Main() ' ) - aadd( txt_, ' Local oLabel, oBtn, oDA, oTabBar ' ) - aadd( txt_, ' Local oWnd, oSize ' ) - aadd( txt_, ' Local oMenuBar, pIcon ' ) - aadd( txt_, ' Local oMenuA, pAction ' ) - aadd( txt_, ' LOCAL oPS, oPPrv, oMB, oWZ, oCD, oWP, oSBar, oStyle ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oWnd := QMainWindow():new() ' ) - aadd( txt_, ' oWnd:setMouseTracking( .t. ) ' ) - aadd( txt_, ' oWnd:setWindowTitle( "Testing - QMainWindow, QMenu, QMenuBar and QAction " ) ' ) - aadd( txt_, ' oWnd:setWindowIcon( "test" ) ' ) - aadd( txt_, ' pIcon := oWnd:windowIcon() ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' /* The method 2 */ ' ) - aadd( txt_, ' oWnd:resize( 900, 500 ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oDA := QWidget():new( oWnd ) ' ) - aadd( txt_, ' oWnd:setCentralWidget( QT_PTROF( oDA ) ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' Build_MenuBar( oWnd ) ' ) - aadd( txt_, ' Build_ToolBar( oWnd ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oSBar := QStatusBar():new( QT_PTROF( oWnd ) ) ' ) - aadd( txt_, ' oWnd:setStatusBar( QT_PTROF( oSBar ) ) ' ) - aadd( txt_, ' oSBar:showMessage( "Harbour-QT Statusbar Ready!" ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oStyle := QWindowsXPStyle() ' ) - aadd( txt_, ' oStyle:standardIcon( 2 ) ' ) - aadd( txt_, ' oWnd:setStyle( QT_PTROF( oStyle ) ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' Build_Label( oDA, { 30,190 }, { 300, 30 } ) ' ) - aadd( txt_, ' Build_PushButton( oDA, { 30,240 }, { 100,50 } ) ' ) - aadd( txt_, ' Build_Grid( oDA, { 30, 30 }, { 450,150 } ) ' ) - aadd( txt_, ' Build_Tabs( oDA, { 510, 5 }, { 360, 400 } ) ' ) - aadd( txt_, ' Build_ProgressBar( oDA, { 30,300 }, { 200,30 } ) ' ) - aadd( txt_, ' Build_ListBox( oDA, { 310,240 }, { 150, 100 } ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oWnd:Show() ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' RETURN ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'STATIC FUNCTION Build_MenuBar( oWnd ) ' ) - aadd( txt_, ' LOCAL oMenuBar, oMenu ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oMenuBar := QMenuBar():new( QT_PTROF( oWnd ) ) ' ) - aadd( txt_, ' oMenuBar:resize( oWnd:width(), 25 ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oMenu := QMenu():new( QT_PTROF( oMenuBar ) ) ' ) - aadd( txt_, ' oMenu:setTitle( "&File" ) ' ) - aadd( txt_, ' Qt_Connect_Signal( oMenu:addAction_1( "new.png" , "&New" ), QT_EVE_TRIGGERED_B, {|w,l| FileDialog( "New" , w, l ) } ) ' ) - aadd( txt_, ' Qt_Connect_Signal( oMenu:addAction_1( "open.png", "&Open" ), QT_EVE_TRIGGERED_B, {|w,l| FileDialog( "Open", w, l ) } ) ' ) - aadd( txt_, ' oMenu:addSeparator() ' ) - aadd( txt_, ' Qt_Connect_Signal( oMenu:addAction_1( "save.png", "&Save" ), QT_EVE_TRIGGERED_B, {|w,l| FileDialog( "Save", w, l ) } ) ' ) - aadd( txt_, ' oMenu:addSeparator() ' ) - aadd( txt_, ' Qt_Connect_Signal( oMenu:addAction( "E&xit" ), QT_EVE_TRIGGERED_B, {|w,l| MsgInfo( "Exit ?" ) } ) ' ) - aadd( txt_, ' oMenuBar:addMenu( QT_PTROF( oMenu ) ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oMenu := QMenu():new( QT_PTROF( oMenuBar ) ) ' ) - aadd( txt_, ' oMenu:setTitle( "&Dialogs" ) ' ) - aadd( txt_, ' Qt_Connect_Signal( oMenu:addAction( "&Colors" ), QT_EVE_TRIGGERED_B, {|w,l| Dialogs( "Colors" , w, l ) } ) ' ) - aadd( txt_, ' Qt_Connect_Signal( oMenu:addAction( "&Fonts" ), QT_EVE_TRIGGERED_B, {|w,l| Dialogs( "Fonts" , w, l ) } ) ' ) - aadd( txt_, ' oMenu:addSeparator() ' ) - aadd( txt_, ' Qt_Connect_Signal( oMenu:addAction( "&PageSetup" ), QT_EVE_TRIGGERED_B, {|w,l| Dialogs( "PageSetup", w, l ) } ) ' ) - aadd( txt_, ' Qt_Connect_Signal( oMenu:addAction( "P&review" ), QT_EVE_TRIGGERED_B, {|w,l| Dialogs( "Preview" , w, l ) } ) ' ) - aadd( txt_, ' oMenu:addSeparator() ' ) - aadd( txt_, ' Qt_Connect_Signal( oMenu:addAction( "&Wizard" ), QT_EVE_TRIGGERED_B, {|w,l| Dialogs( "Wizard" , w, l ) } ) ' ) - aadd( txt_, ' Qt_Connect_Signal( oMenu:addAction( "W&ebPage" ), QT_EVE_TRIGGERED_B, {|w,l| Dialogs( "WebPage" , w, l ) } ) ' ) - aadd( txt_, ' oMenuBar:addMenu( QT_PTROF( oMenu ) ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oWnd:setMenuBar( QT_PTROF( oMenuBar ) ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' RETURN nil ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'STATIC FUNCTION Build_ToolBar( oWnd ) ' ) - aadd( txt_, ' LOCAL oTB, oAct ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' /* Create a Toolbar Object */ ' ) - aadd( txt_, ' oTB := QToolBar():new( QT_PTROF( oWnd ) ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' /* Create an action */ ' ) - aadd( txt_, ' oAct := QAction():new( QT_PTROF( oWnd ) ) ' ) - aadd( txt_, ' oAct:setText( "&New" ) ' ) - aadd( txt_, ' oAct:setIcon( "new.png" ) ' ) - aadd( txt_, ' oAct:setToolTip( "A New File" ) ' ) - aadd( txt_, ' /* Attach codeblock to be triggered */ ' ) - aadd( txt_, ' Qt_Connect_Signal( QT_PTROF( oAct ), QT_EVE_TRIGGERED_B, {|w,l| FileDialog( "New" , w, l ) } ) ' ) - aadd( txt_, ' /* Attach Action with Toolbar */ ' ) - aadd( txt_, ' oTB:addAction( QT_PTROF( oAct ) ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' /* Create another action */ ' ) - aadd( txt_, ' oAct := QAction():new( QT_PTROF( oWnd ) ) ' ) - aadd( txt_, ' oAct:setText( "&Open" ) ' ) - aadd( txt_, ' oAct:setIcon( "open.png" ) ' ) - aadd( txt_, ' oAct:setToolTip( "Select a file to be opened!" ) ' ) - aadd( txt_, ' /* Attach codeblock to be triggered */ ' ) - aadd( txt_, ' Qt_Connect_Signal( QT_PTROF( oAct ), QT_EVE_TRIGGERED_B, {|w,l| FileDialog( "Open" , w, l ) } ) ' ) - aadd( txt_, ' /* Attach Action with Toolbar */ ' ) - aadd( txt_, ' oTB:addAction( QT_PTROF( oAct ) ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oTB:addSeparator() ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' /* Create another action */ ' ) - aadd( txt_, ' oAct := QAction():new( QT_PTROF( oWnd ) ) ' ) - aadd( txt_, ' oAct:setText( "&Save" ) ' ) - aadd( txt_, ' oAct:setIcon( "save.png" ) ' ) - aadd( txt_, ' oAct:setToolTip( "Save this file!" ) ' ) - aadd( txt_, ' /* Attach codeblock to be triggered */ ' ) - aadd( txt_, ' Qt_Connect_Signal( QT_PTROF( oAct ), QT_EVE_TRIGGERED_B, {|w,l| FileDialog( "Save" , w, l ) } ) ' ) - aadd( txt_, ' /* Attach Action with Toolbar */ ' ) - aadd( txt_, ' oTB:addAction( QT_PTROF( oAct ) ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' /* Add this toolbar with main window */ ' ) - aadd( txt_, ' oWnd:addToolBar_1( QT_PTROF( oTB ) ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' /////////////////////////////////////////////////////////// ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' /* Build another toolbar - we will have two toolbats now */ ' ) - aadd( txt_, ' oTB := QToolBar():new( QT_PTROF( oWnd ) ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oAct := QAction():new( QT_PTROF( oWnd ) ) ' ) - aadd( txt_, ' oAct:setText( "&Colors" ) ' ) - aadd( txt_, ' oAct:setToolTip( "Colors Dialog" ) ' ) - aadd( txt_, ' Qt_Connect_Signal( QT_PTROF( oAct ), QT_EVE_TRIGGERED_B, {|w,l| Dialogs( "Colors", w, l ) } ) ' ) - aadd( txt_, ' oTB:addAction( QT_PTROF( oAct ) ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oAct := QAction():new( QT_PTROF( oWnd ) ) ' ) - aadd( txt_, ' oAct:setText( "&Fonts" ) ' ) - aadd( txt_, ' oAct:setToolTip( "Fonts Dialog" ) ' ) - aadd( txt_, ' Qt_Connect_Signal( QT_PTROF( oAct ), QT_EVE_TRIGGERED_B, {|w,l| Dialogs( "Fonts", w, l ) } ) ' ) - aadd( txt_, ' oTB:addAction( QT_PTROF( oAct ) ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oTB:addSeparator() ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oAct := QAction():new( QT_PTROF( oWnd ) ) ' ) - aadd( txt_, ' oAct:setText( "&PgSetup" ) ' ) - aadd( txt_, ' oAct:setToolTip( "Page Setup Dialog" ) ' ) - aadd( txt_, ' Qt_Connect_Signal( QT_PTROF( oAct ), QT_EVE_TRIGGERED_B, {|w,l| Dialogs( "PageSetup", w, l ) } ) ' ) - aadd( txt_, ' oTB:addAction( QT_PTROF( oAct ) ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oAct := QAction():new( QT_PTROF( oWnd ) ) ' ) - aadd( txt_, ' oAct:setText( "&Preview" ) ' ) - aadd( txt_, ' oAct:setToolTip( "Page Preview Dialog" ) ' ) - aadd( txt_, ' Qt_Connect_Signal( QT_PTROF( oAct ), QT_EVE_TRIGGERED_B, {|w,l| Dialogs( "Preview", w, l ) } ) ' ) - aadd( txt_, ' oTB:addAction( QT_PTROF( oAct ) ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oTB:addSeparator() ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oAct := QAction():new( QT_PTROF( oWnd ) ) ' ) - aadd( txt_, ' oAct:setText( "&Webpage" ) ' ) - aadd( txt_, ' oAct:setToolTip( "Web Browser Dialog" ) ' ) - aadd( txt_, ' Qt_Connect_Signal( QT_PTROF( oAct ), QT_EVE_TRIGGERED_B, {|w,l| Dialogs( "WebPage", w, l ) } ) ' ) - aadd( txt_, ' oTB:addAction( QT_PTROF( oAct ) ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oAct := QAction():new( QT_PTROF( oWnd ) ) ' ) - aadd( txt_, ' oAct:setText( "&Wizard" ) ' ) - aadd( txt_, ' oAct:setToolTip( "Generic Wizard Dialog" ) ' ) - aadd( txt_, ' Qt_Connect_Signal( QT_PTROF( oAct ), QT_EVE_TRIGGERED_B, {|w,l| Dialogs( "Wizard", w, l ) } ) ' ) - aadd( txt_, ' oTB:addAction( QT_PTROF( oAct ) ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' /* Add this toolbar with main window */ ' ) - aadd( txt_, ' oWnd:addToolBar_1( QT_PTROF( oTB ) ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' RETURN nil ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'STATIC FUNCTION Build_PushButton( oWnd, aPos, aSize ) ' ) - aadd( txt_, ' LOCAL oBtn ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oBtn := QPushButton():new( QT_PTROF( oWnd ) ) ' ) - aadd( txt_, ' oBtn:setText( "Push Button" ) ' ) - aadd( txt_, ' oBtn:move( aPos[ 1 ],aPos[ 2 ] ) ' ) - aadd( txt_, ' oBtn:resize( aSize[ 1 ],aSize[ 2 ] ) ' ) - aadd( txt_, ' oBtn:show() ' ) - aadd( txt_, ' Qt_Connect_Signal( QT_PTROF( oBtn ), QT_EVE_CLICKED, {|| MsgInfo( "Push Button Pressed" ) } ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' RETURN nil ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'STATIC FUNCTION Build_Grid( oWnd, aPos, aSize ) ' ) - aadd( txt_, ' LOCAL oGrid, oBrushBackItem0x0, oBrushForeItem0x0, oGridItem0x0 ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oGrid := QTableWidget():new( QT_PTROF( oWnd ) ) ' ) - aadd( txt_, ' oGrid:setRowCount( 2 ) ' ) - aadd( txt_, ' oGrid:setColumnCount( 4 ) ' ) - aadd( txt_, ' // ' ) - aadd( txt_, ' oBrushBackItem0x0 := QBrush():new() ' ) - aadd( txt_, ' oBrushBackItem0x0:setStyle( 1 ) // Solid Color ' ) - aadd( txt_, ' oBrushBackItem0x0:setColor_1( 10 ) // http://doc.qtsoftware.com/4.5/qt.html#GlobalColor-enum ' ) - aadd( txt_, ' // ' ) - aadd( txt_, ' oBrushForeItem0x0 := QBrush():new() ' ) - aadd( txt_, ' oBrushForeItem0x0:setColor_1( 7 ) ' ) - aadd( txt_, ' // ' ) - aadd( txt_, ' oGridItem0x0 := QTableWidgetItem():new() ' ) - aadd( txt_, ' oGridItem0x0:setBackground( QT_PTROF( oBrushBackItem0x0 ) ) ' ) - aadd( txt_, ' oGridItem0x0:setForeground( QT_PTROF( oBrushForeItem0x0 ) ) ' ) - aadd( txt_, ' oGridItem0x0:setText( "Item 0x0" ) ' ) - aadd( txt_, ' // ' ) - aadd( txt_, ' oGrid:setItem( 0, 0, QT_PTROF( oGridItem0x0 ) ) ' ) - aadd( txt_, ' // ' ) - aadd( txt_, ' oGrid:Move( aPos[ 1 ], aPos[ 2 ] ) ' ) - aadd( txt_, ' oGrid:ReSize( aSize[ 1 ], aSize[ 2 ] ) ' ) - aadd( txt_, ' // ' ) - aadd( txt_, ' oGrid:Show() ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' RETURN nil ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'STATIC FUNCTION Build_Tabs( oWnd, aPos, aSize ) ' ) - aadd( txt_, ' LOCAL oTabWidget, oTab1, oTab2, oTab3 ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oTabWidget := QTabWidget():new( QT_PTROF( oWnd ) ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oTab1 := QWidget():new( QT_PTROF( oTabWidget ) ) ' ) - aadd( txt_, ' oTab2 := QWidget():new( QT_PTROF( oTabWidget ) ) ' ) - aadd( txt_, ' oTab3 := QWidget():new( QT_PTROF( oTabWidget ) ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oTabWidget:addTab( QT_PTROF( oTab1 ), "Folders" ) ' ) - aadd( txt_, ' oTabWidget:addTab( QT_PTROF( oTab2 ), "Controls" ) ' ) - aadd( txt_, ' oTabWidget:addTab( QT_PTROF( oTab3 ), "TextBox" ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oTabWidget:Move( aPos[ 1 ], aPos[ 2 ] ) ' ) - aadd( txt_, ' oTabWidget:ReSize( aSize[ 1 ], aSize[ 2 ] ) ' ) - aadd( txt_, ' oTabWidget:show() ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' Build_Treeview( oTab1 ) ' ) - aadd( txt_, ' Build_Controls( oTab2 ) ' ) - aadd( txt_, ' Build_TextBox( oTab3 ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' RETURN { oTab1, oTab2, oTab3 } ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'STATIC FUNCTION Build_TreeView( oWnd ) ' ) - aadd( txt_, ' LOCAL oTV, oDirModel ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oTV := QTreeView():new( QT_PTROF( oWnd ) ) ' ) - aadd( txt_, ' oTV:setMouseTracking( .t. ) ' ) - aadd( txt_, ' Qt_Connect_Signal( QT_PTROF( oTV ), QT_EVE_HOVERED, {|o,i| uiDebug( "oTV:hovered" ) } ) ' ) - aadd( txt_, ' oDirModel := QDirModel():new( QT_PTROF( oTV ) ) ' ) - aadd( txt_, ' oTV:setModel( QT_PTROF( oDirModel ) ) ' ) - aadd( txt_, ' oTV:move( 5, 7 ) ' ) - aadd( txt_, ' oTV:resize( 345, 365 ) ' ) - aadd( txt_, ' OTV:show() ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' RETURN nil ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'STATIC FUNCTION Build_ListBox( oWnd, aPos, aSize ) ' ) - aadd( txt_, ' LOCAL oListBox, oStrList, oStrModel, oAct ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oListBox := QListView():New( QT_PTROF( oWnd ) ) ' ) - aadd( txt_, ' oListBox:setMouseTracking( .t. ) ' ) - aadd( txt_, ' Qt_Connect_Signal( QT_PTROF( oListBox ), QT_EVE_HOVERED, {|o,i| uiDebug( "oListBox:hovered" ) } ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oStrList := QStringList():new( QT_PTROF( oListBox ) ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oStrList:append( "India" ) ' ) - aadd( txt_, ' oStrList:append( "United States" ) ' ) - aadd( txt_, ' oStrList:append( "England" ) ' ) - aadd( txt_, ' oStrList:append( "Japan" ) ' ) - aadd( txt_, ' oStrList:append( "Hungary" ) ' ) - aadd( txt_, ' oStrList:append( "Argentina" ) ' ) - aadd( txt_, ' oStrList:append( "China" ) ' ) - aadd( txt_, ' oStrList:sort() ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oStrModel := QStringListModel():new( QT_PTROF( oListBox ) ) ' ) - aadd( txt_, ' oStrModel:setStringList( QT_PTROF( oStrList ) ) ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oListBox:setModel( QT_PTROF( oStrModel ) ) ' ) - aadd( txt_, ' oListBox:Move( aPos[ 1 ], aPos[ 2 ] ) ' ) - aadd( txt_, ' oListBox:ReSize( aSize[ 1 ], aSize[ 2 ] ) ' ) - aadd( txt_, ' oListBox:Show() ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' RETURN nil ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'STATIC FUNCTION Build_TextBox( oWnd ) ' ) - aadd( txt_, ' LOCAL oTextBox ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oTextBox := QTextEdit():new( QT_PTROF( oWnd ) ) ' ) - aadd( txt_, ' oTextBox:Move( 5, 7 ) ' ) - aadd( txt_, ' oTextBox:Resize( 345,365 ) ' ) - aadd( txt_, ' oTextBox:setAcceptRichText( .t. ) ' ) - aadd( txt_, ' oTextBox:setPlainText( "This is Harbour QT implementation" ) ' ) - aadd( txt_, ' oTextBox:Show() ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' RETURN nil ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'STATIC FUNCTION Build_Controls( oWnd ) ' ) - aadd( txt_, ' LOCAL oEdit, oCheckBox, oComboBox, oSpinBox, oRadioButton, oVariant ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oEdit := QLineEdit():new( QT_PTROF( oWnd ) ) ' ) - aadd( txt_, ' Qt_Connect_Signal( QT_PTROF( oEdit ), QT_EVE_RETURNPRESSED, {|o,i| MsgInfo( oEdit:text() ) } ) ' ) - aadd( txt_, ' oEdit:move( 5, 10 ) ' ) - aadd( txt_, ' oEdit:resize( 345, 30 ) ' ) - aadd( txt_, ' oEdit:setMaxLength( 40 ) ' ) - aadd( txt_, ' oEdit:setText( "TextBox Testing Max Length = 40" ) ' ) - aadd( txt_, ' oEdit:setAlignment( 1 ) // 1: Left 2: Right 4: center 8: use all textbox length ' ) - aadd( txt_, ' oEdit:show() ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oComboBox := QComboBox():New( QT_PTROF( oWnd ) ) ' ) - aadd( txt_, ' oComboBox:addItem( "First" ) ' ) - aadd( txt_, ' oComboBox:addItem( "Second" ) ' ) - aadd( txt_, ' oComboBox:addItem( "Third" ) ' ) - aadd( txt_, ' Qt_Connect_Signal( QT_PTROF( oComboBox ), QT_EVE_HIGHLIGHTED_I , {|o,i| uiDebug( oComboBox:itemText( i ) ) } ) ' ) - aadd( txt_, ' Qt_Connect_Signal( QT_PTROF( oComboBox ), QT_EVE_CURRENTINDEXCHANGED_I, {|o,i| MsgInfo( oComboBox:itemText( i ) ) } ) ' ) - aadd( txt_, ' oComboBox:move( 5, 60 ) ' ) - aadd( txt_, ' oComboBox:resize( 345, 30 ) ' ) - aadd( txt_, ' oComboBox:show() ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oCheckBox := QCheckBox():New( QT_PTROF( oWnd ) ) ' ) - aadd( txt_, ' Qt_Connect_Signal( QT_PTROF( oCheckBox ), QT_EVE_STATECHANGED_I, {|o,i| MsgInfo( IF( i == 0,"Uncheckd","Checked" ) ) } ) ' ) - aadd( txt_, ' oCheckBox:setText( "Testing CheckBox HbQt" ) ' ) - aadd( txt_, ' oCheckBox:move( 5, 110 ) ' ) - aadd( txt_, ' oCheckBox:resize( 345, 30 ) ' ) - aadd( txt_, ' oCheckBox:show() ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oSpinBox := QSpinBox():New( QT_PTROF( oWnd ) ) ' ) - aadd( txt_, ' oSpinBox:Move( 5, 160 ) ' ) - aadd( txt_, ' oSpinBox:ReSize( 345, 30 ) ' ) - aadd( txt_, ' oSpinBox:Show() ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oRadioButton := QRadioButton():New( QT_PTROF( oWnd ) ) ' ) - aadd( txt_, ' Qt_Connect_Signal( QT_PTROF( oRadioButton ), QT_EVE_CLICKED, {|o,i| MsgInfo( "Checked" ) } ) ' ) - aadd( txt_, ' oRadioButton:Move( 5, 210 ) ' ) - aadd( txt_, ' oRadioButton:ReSize( 345, 30 ) ' ) - aadd( txt_, ' oRadioButton:Show() ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' RETURN nil ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'STATIC FUNCTION Build_ProgressBar( oWnd, aPos, aSize ) ' ) - aadd( txt_, ' LOCAL oProgressBar ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oProgressBar := QProgressBar():New( QT_PTROF( oWnd ) ) ' ) - aadd( txt_, ' oProgressBar:SetRange( 1, 1500 ) ' ) - aadd( txt_, ' oProgressBar:Setvalue( 500 ) ' ) - aadd( txt_, ' oProgressBar:Move( aPos[ 1 ], aPos[ 2 ] ) ' ) - aadd( txt_, ' oProgressBar:ReSize( aSize[ 1 ], aSize[ 2 ] ) ' ) - aadd( txt_, ' oProgressBar:Show() ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' RETURN nil ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'STATIC FUNCTION Build_Label( oWnd, aPos, aSize ) ' ) - aadd( txt_, ' LOCAL oLabel ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oLabel := QLabel():New( QT_PTROF( oWnd ) ) ' ) - aadd( txt_, ' oLabel:SetTextFormat( 1 ) // 0 text plain 1 RichText ' ) - aadd( txt_, ' oLabel:SetText( [This is a Label in Harbour QT] ) ' ) - aadd( txt_, ' oLabel:Move( aPos[ 1 ], aPos[ 2 ] ) ' ) - aadd( txt_, ' oLabel:ReSize( aSize[ 1 ], aSize[ 2 ] ) ' ) - aadd( txt_, ' oLabel:Show() ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' RETURN nil ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'STATIC FUNCTION MsgInfo( cMsg ) ' ) - aadd( txt_, ' LOCAL oMB ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oMB := QMessageBox():new() ' ) - aadd( txt_, ' oMB:setInformativeText( cMsg ) ' ) - aadd( txt_, ' oMB:setWindowTitle( "Harbour-QT" ) ' ) - aadd( txt_, ' oMB:show() ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' RETURN nil ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'STATIC FUNCTION FileDialog( cType, w, l ) ' ) - aadd( txt_, ' LOCAL oFD := QFileDialog():new() ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oFD:setWindowTitle( "Select a File" ) ' ) - aadd( txt_, ' oFD:show() ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' RETURN nil ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'STATIC FUNCTION Dialogs( cType, w, l ) ' ) - aadd( txt_, ' LOCAL oDlg, oUrl ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' DO CASE ' ) - aadd( txt_, ' CASE cType == "PageSetup" ' ) - aadd( txt_, ' oDlg := QPageSetupDialog():new() ' ) - aadd( txt_, ' oDlg:setWindowTitle( "Harbour-QT PageSetup Dialog" ) ' ) - aadd( txt_, ' oDlg:show() ' ) - aadd( txt_, ' CASE cType == "Preview" ' ) - aadd( txt_, ' oDlg := QPrintPreviewDialog():new() ' ) - aadd( txt_, ' oDlg:setWindowTitle( "Harbour-QT Preview Dialog" ) ' ) - aadd( txt_, ' oDlg:show() ' ) - aadd( txt_, ' CASE cType == "Wizard" ' ) - aadd( txt_, ' oDlg := QWizard():new() ' ) - aadd( txt_, ' oDlg:setWindowTitle( "Harbour-QT Wizard to Show Slides etc." ) ' ) - aadd( txt_, ' oDlg:show() ' ) - aadd( txt_, ' CASE cType == "Colors" ' ) - aadd( txt_, ' oDlg := QColorDialog():new() ' ) - aadd( txt_, ' oDlg:setWindowTitle( "Harbour-QT Color Selection Dialog" ) ' ) - aadd( txt_, ' oDlg:show() ' ) - aadd( txt_, ' CASE cType == "WebPage" ' ) - aadd( txt_, ' oDlg := QWebView():new() ' ) - aadd( txt_, ' oUrl := QUrl():new() ' ) - aadd( txt_, ' oUrl:setUrl( "http://www.harbour.vouch.info" ) ' ) - aadd( txt_, ' QT_QWebView_SetUrl( QT_PTROF( oDlg ), QT_PTROF( oUrl ) ) ' ) - aadd( txt_, ' oDlg:setWindowTitle( "Harbour-QT Web Page Navigator" ) ' ) - aadd( txt_, ' oDlg:show() ' ) - aadd( txt_, ' CASE cType == "Fonts" ' ) - aadd( txt_, ' oDlg := QFontDialog():new() ' ) - aadd( txt_, ' oDlg:setWindowTitle( "Harbour-QT Font Selector" ) ' ) - aadd( txt_, ' oDlg:show() ' ) - aadd( txt_, ' ENDCASE ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' RETURN nil ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) - aadd( txt_, ' ' ) - aadd( txt_, '#ifdef __PLATFORM__WINDOWS ' ) - aadd( txt_, 'PROCEDURE hb_GtSys() ' ) - aadd( txt_, ' HB_GT_GUI_DEFAULT() ' ) - aadd( txt_, ' RETURN ' ) - aadd( txt_, '#endif ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) - aadd( txt_, '/* ' ) - aadd( txt_, ' * Just to Link Every New Widget ' ) - aadd( txt_, ' */ ' ) - aadd( txt_, 'STATIC FUNCTION Dummies() ' ) - aadd( txt_, ' LOCAL oSome ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' oSome := QAbstractButton():new() ' ) - aadd( txt_, ' oSome := QAbstractItemView():new() ' ) - aadd( txt_, ' oSome := QAbstractPrintDialog():new() ' ) - aadd( txt_, ' oSome := QAbstractScrollArea():new() ' ) - aadd( txt_, ' oSome := QAbstractSlider():new() ' ) - aadd( txt_, ' oSome := QAbstractSpinBox():new() ' ) - aadd( txt_, ' oSome := QAction():new() ' ) - aadd( txt_, ' //oSome := QApplication():new() ' ) - aadd( txt_, ' oSome := QBitmap():new() ' ) - aadd( txt_, ' oSome := QBoxLayout():new() ' ) - aadd( txt_, ' oSome := QBrush():new() ' ) - aadd( txt_, ' oSome := QCalendarWidget():new() ' ) - aadd( txt_, ' oSome := QCheckBox():new() ' ) - aadd( txt_, ' oSome := QClipboard():new() ' ) - aadd( txt_, ' oSome := QColor():new() ' ) - aadd( txt_, ' oSome := QColorDialog():new() ' ) - aadd( txt_, ' oSome := QComboBox():new() ' ) - aadd( txt_, ' oSome := QCommandLinkButton():new() ' ) - aadd( txt_, ' oSome := QCommonStyle():new() ' ) - aadd( txt_, ' oSome := QConicalGradient():new() ' ) - aadd( txt_, ' //oSome := QCoreApplication():new() ' ) - aadd( txt_, ' oSome := QDateEdit():new() ' ) - aadd( txt_, ' oSome := QDateTimeEdit():new() ' ) - aadd( txt_, ' oSome := QDesktopWidget():new() ' ) - aadd( txt_, ' oSome := QDial():new() ' ) - aadd( txt_, ' oSome := QDialog():new() ' ) - aadd( txt_, ' oSome := QDir():new() ' ) - aadd( txt_, ' oSome := QDockWidget():new() ' ) - aadd( txt_, ' oSome := QDoubleSpinBox():new() ' ) - aadd( txt_, ' oSome := QErrorMessage():new() ' ) - aadd( txt_, ' oSome := QEvent():new() ' ) - aadd( txt_, ' oSome := QEventLoop():new() ' ) - aadd( txt_, ' oSome := QFileDialog():new() ' ) - aadd( txt_, ' oSome := QFocusFrame():new() ' ) - aadd( txt_, ' oSome := QFont():new() ' ) - aadd( txt_, ' oSome := QFontComboBox():new() ' ) - aadd( txt_, ' oSome := QFontDialog():new() ' ) - aadd( txt_, ' oSome := QFontInfo():new() ' ) - aadd( txt_, ' oSome := QFormLayout():new() ' ) - aadd( txt_, ' oSome := QFrame():new() ' ) - aadd( txt_, ' oSome := QFtp():new() ' ) - aadd( txt_, ' oSome := QGradient():new() ' ) - aadd( txt_, ' oSome := QGridLayout():new() ' ) - aadd( txt_, ' oSome := QGroupBox():new() ' ) - aadd( txt_, ' oSome := QHBoxLayout():new() ' ) - aadd( txt_, ' oSome := QHeaderView():new() ' ) - aadd( txt_, ' oSome := QHttp():new() ' ) - aadd( txt_, ' oSome := QIcon():new() ' ) - aadd( txt_, ' oSome := QImage():new() ' ) - aadd( txt_, ' oSome := QImageReader():new() ' ) - aadd( txt_, ' oSome := QImageWriter():new() ' ) - aadd( txt_, ' oSome := QInputDialog():new() ' ) - aadd( txt_, ' oSome := QInputEvent():new() ' ) - aadd( txt_, ' oSome := QLabel():new() ' ) - aadd( txt_, ' oSome := QLayout():new() ' ) - aadd( txt_, ' oSome := QLayoutItem():new() ' ) - aadd( txt_, ' oSome := QLCDNumber():new() ' ) - aadd( txt_, ' oSome := QLine():new() ' ) - aadd( txt_, ' oSome := QLinearGradient():new() ' ) - aadd( txt_, ' oSome := QLineEdit():new() ' ) - aadd( txt_, ' oSome := QListView():new() ' ) - aadd( txt_, ' oSome := QListWidget():new() ' ) - aadd( txt_, ' oSome := QListWidgetItem():new() ' ) - aadd( txt_, ' oSome := QMainWindow():new() ' ) - aadd( txt_, ' oSome := QMenu():new() ' ) - aadd( txt_, ' oSome := QMenuBar():new() ' ) - aadd( txt_, ' oSome := QMessageBox():new() ' ) - aadd( txt_, ' oSome := QObject():new() ' ) - aadd( txt_, ' oSome := QPaintDevice():new() ' ) - aadd( txt_, ' oSome := QPageSetupDialog():new() ' ) - aadd( txt_, ' oSome := QPainter():new() ' ) - aadd( txt_, ' oSome := QPaintEvent():new() ' ) - aadd( txt_, ' oSome := QPalette():new() ' ) - aadd( txt_, ' oSome := QPen():new() ' ) - aadd( txt_, ' oSome := QPicture():new() ' ) - aadd( txt_, ' oSome := QPixmap():new() ' ) - aadd( txt_, ' oSome := QPoint():new() ' ) - aadd( txt_, ' oSome := QPointF():new() ' ) - aadd( txt_, ' oSome := QPrintDialog():new() ' ) - aadd( txt_, ' oSome := QPrintPreviewDialog():new() ' ) - aadd( txt_, ' oSome := QProgressBar():new() ' ) - aadd( txt_, ' oSome := QProgressDialog():new() ' ) - aadd( txt_, ' oSome := QPushButton():new() ' ) - aadd( txt_, ' oSome := QRadialGradient():new() ' ) - aadd( txt_, ' oSome := QRect():new() ' ) - aadd( txt_, ' oSome := QRectF():new() ' ) - aadd( txt_, ' oSome := QRadioButton():new() ' ) - aadd( txt_, ' oSome := QRegion():new() ' ) - aadd( txt_, ' oSome := QResource():new() ' ) - aadd( txt_, ' oSome := QScrollArea():new() ' ) - aadd( txt_, ' oSome := QScrollBar():new() ' ) - aadd( txt_, ' oSome := QSignalMapper():new() ' ) - aadd( txt_, ' oSome := QSize():new() ' ) - aadd( txt_, ' oSome := QSizeF():new() ' ) - aadd( txt_, ' oSome := QSizeGrip():new() ' ) - aadd( txt_, ' oSome := QSizePolicy():new() ' ) - aadd( txt_, ' oSome := QSlider():new() ' ) - aadd( txt_, ' oSome := QSound():new() ' ) - aadd( txt_, ' oSome := QSpinBox():new() ' ) - aadd( txt_, ' oSome := QSplashScreen():new() ' ) - aadd( txt_, ' oSome := QSplitter():new() ' ) - aadd( txt_, ' oSome := QStandardItem():new() ' ) - aadd( txt_, ' oSome := QStandardItemModel():new() ' ) - aadd( txt_, ' oSome := QStatusBar():new() ' ) - aadd( txt_, ' oSome := QStyle():new() ' ) - aadd( txt_, ' oSome := QStyledItemDelegate():new() ' ) - aadd( txt_, ' oSome := QStyleHintReturn():new() ' ) - aadd( txt_, ' oSome := QStyleHintReturnMask():new() ' ) - aadd( txt_, ' oSome := QStyleHintReturnVariant():new() ' ) - aadd( txt_, ' oSome := QStyleOption():new() ' ) - aadd( txt_, ' oSome := QStyleOptionButton():new() ' ) - aadd( txt_, ' oSome := QStyleOptionComboBox():new() ' ) - aadd( txt_, ' oSome := QStyleOptionComplex():new() ' ) - aadd( txt_, ' oSome := QStyleOptionDockWidget():new() ' ) - aadd( txt_, ' oSome := QStyleOptionFocusRect():new() ' ) - aadd( txt_, ' oSome := QStyleOptionFrame():new() ' ) - aadd( txt_, ' oSome := QStyleOptionGroupBox():new() ' ) - aadd( txt_, ' oSome := QStyleOptionHeader():new() ' ) - aadd( txt_, ' oSome := QStyleOptionMenuItem():new() ' ) - aadd( txt_, ' oSome := QStyleOptionProgressBar():new() ' ) - aadd( txt_, ' oSome := QStyleOptionSizeGrip():new() ' ) - aadd( txt_, ' oSome := QStyleOptionSlider():new() ' ) - aadd( txt_, ' oSome := QStyleOptionSpinBox():new() ' ) - aadd( txt_, ' oSome := QStyleOptionTab():new() ' ) - aadd( txt_, ' oSome := QStyleOptionTabBarBase():new() ' ) - aadd( txt_, ' oSome := QStyleOptionTabWidgetFrame():new() ' ) - aadd( txt_, ' oSome := QStyleOptionTitleBar():new() ' ) - aadd( txt_, ' oSome := QStyleOptionToolBar():new() ' ) - aadd( txt_, ' oSome := QStyleOptionToolBox():new() ' ) - aadd( txt_, ' oSome := QStyleOptionToolButton():new() ' ) - aadd( txt_, ' oSome := QStyleOptionViewItem():new() ' ) - aadd( txt_, ' oSome := QStylePainter():new() ' ) - aadd( txt_, ' oSome := QTabBar():new() ' ) - aadd( txt_, ' oSome := QTableView():new() ' ) - aadd( txt_, ' oSome := QTableWidget():new() ' ) - aadd( txt_, ' oSome := QTableWidgetItem():new() ' ) - aadd( txt_, ' oSome := QTabWidget():new() ' ) - aadd( txt_, ' oSome := QTextBlock():new() ' ) - aadd( txt_, ' oSome := QTextBlockFormat():new() ' ) - aadd( txt_, ' oSome := QTextBlockGroup():new() ' ) - aadd( txt_, ' oSome := QTextBrowser():new() ' ) - aadd( txt_, ' oSome := QTextBoundaryFinder():new() ' ) - aadd( txt_, ' oSome := QTextCharFormat():new() ' ) - aadd( txt_, ' oSome := QTextCodec():new() ' ) - aadd( txt_, ' oSome := QTextCursor():new() ' ) - aadd( txt_, ' oSome := QTextDecoder():new() ' ) - aadd( txt_, ' oSome := QTextDocument():new() ' ) - aadd( txt_, ' oSome := QTextDocumentFragment():new() ' ) - aadd( txt_, ' oSome := QTextDocumentWriter():new() ' ) - aadd( txt_, ' oSome := QTextEdit():new() ' ) - aadd( txt_, ' oSome := QTextEncoder():new() ' ) - aadd( txt_, ' oSome := QTextFormat():new() ' ) - aadd( txt_, ' oSome := QTextFragment():new() ' ) - aadd( txt_, ' oSome := QTextFrame():new() ' ) - aadd( txt_, ' oSome := QTextFrameFormat():new() ' ) - aadd( txt_, ' oSome := QTextImageFormat():new() ' ) - aadd( txt_, ' oSome := QTextInlineObject():new() ' ) - aadd( txt_, ' oSome := QTextItem():new() ' ) - aadd( txt_, ' oSome := QTextLayout():new() ' ) - aadd( txt_, ' oSome := QTextLength():new() ' ) - aadd( txt_, ' oSome := QTextLine():new() ' ) - aadd( txt_, ' oSome := QTextObject():new() ' ) - aadd( txt_, ' oSome := QTextStream():new() ' ) - aadd( txt_, ' oSome := QTimeEdit():new() ' ) - aadd( txt_, ' oSome := QTimer():new() ' ) - aadd( txt_, ' oSome := QToolBar():new() ' ) - aadd( txt_, ' oSome := QToolBox():new() ' ) - aadd( txt_, ' oSome := QToolButton():new() ' ) - aadd( txt_, ' oSome := QTreeView():new() ' ) - aadd( txt_, ' oSome := QTreeWidget():new() ' ) - aadd( txt_, ' oSome := QTreeWidgetItem():new() ' ) - aadd( txt_, ' oSome := QUrl():new() ' ) - aadd( txt_, ' oSome := QVariant():new() ' ) - aadd( txt_, ' oSome := QVBoxLayout():new() ' ) - aadd( txt_, ' oSome := QWebPage():new() ' ) - aadd( txt_, ' oSome := QWidget():new() ' ) - aadd( txt_, ' oSome := QWebView():new() ' ) - aadd( txt_, ' oSome := QWindowsStyle():new() ' ) - aadd( txt_, ' oSome := QWindowsXPStyle():new() ' ) - aadd( txt_, ' oSome := QWizard():new() ' ) - aadd( txt_, ' ' ) - aadd( txt_, ' RETURN nil ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) - aadd( txt_, ' ' ) - aadd( txt_, '#PRAGMA BEGINDUMP ' ) - aadd( txt_, ' ' ) - aadd( txt_, '#include ' ) - aadd( txt_, '#include "hbapi.h" ' ) - aadd( txt_, ' ' ) - aadd( txt_, 'HB_FUNC( UIDEBUG ) ' ) - aadd( txt_, '{ ' ) - aadd( txt_, ' OutputDebugString( hb_parc( 1 ) ); ' ) - aadd( txt_, '} ' ) - aadd( txt_, ' ' ) - aadd( txt_, '#PRAGMA ENDDUMP ' ) - aadd( txt_, ' ' ) - aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) - aadd( txt_, ' ' ) - - /* .............................................................................................................................................. */ - - RETURN CreateTarget( cFile, txt_ ) - -/*----------------------------------------------------------------------*/ - diff --git a/harbour/contrib/hbqt/hbqt_slots.h b/harbour/contrib/hbqt/hbqt_slots.h index b900416c2e..c72d6aa757 100644 --- a/harbour/contrib/hbqt/hbqt_slots.h +++ b/harbour/contrib/hbqt/hbqt_slots.h @@ -78,9 +78,9 @@ public: ~Slots(); QList list1; QList list5; - QList list2; + QList list2; QList list3; - QList list4; + QList list4; public slots: void clicked(); @@ -103,35 +103,6 @@ public slots: void mouseMoveEvent( QMouseEvent * event ); void hovered( QAction * action ); void currentChanged( int index ); - -#if 0 - void accessibleEvent(); - void actionEvent(); - void childEvent(); - void closeEvent(); - void customEvent(); - void dragLeaveEvent(); - void dropEvent(); - void dynamicPropertyChangeEvent(); - void fileOpenEvent(); - void focusEvent(); - void graphicsSceneEvent(); - void helpEvent(); - void hideEvent(); - void hoverEvent(); - void iconDragEvent(); - void inputEvent(); - void inputMethodEvent(); - void moveEvent(); - void paintEvent(); - void resizeEvent(); - void shortcutEvent(); - void showEvent(); - void statusTipEvent(); - void timerEvent(); - void whatsThisClickedEvent(); - void windowStateChangeEvent(); -#endif }; @@ -143,21 +114,6 @@ public: MyDrawingArea( QWidget *parent = 0 ); virtual ~MyDrawingArea( void ); - #if 0 -protected slots: - void keyReleaseEvent( QKeyEvent * event ); - void mousePressEvent( QMouseEvent * event ); - void mouseReleaseEvent( QMouseEvent * event ); - void mouseDoubleClickEvent( QMouseEvent * event ); - void paintEvent( QPaintEvent * event ); - void resizeEvent( QResizeEvent * event ); - void wheelEvent( QWheelEvent * event ); - void timerEvent( QTimerEvent * event ); - void focusInEvent( QFocusEvent * event ); - void focusOutEvent( QFocusEvent * event ); - void moveEvent( QMoveEvent * event ); - bool event( QEvent * event ); - #endif void keyPressEvent( QKeyEvent * event ); void mouseMoveEvent( QMouseEvent * event ); diff --git a/harbour/contrib/hbqt/moc_slots.cpp b/harbour/contrib/hbqt/moc_slots.cpp index 6c075d865a..7172ac11a9 100644 --- a/harbour/contrib/hbqt/moc_slots.cpp +++ b/harbour/contrib/hbqt/moc_slots.cpp @@ -1,7 +1,7 @@ /**************************************************************************** -** Meta object code from reading C++ file [hbqt_slots.h] +** Meta object code from reading C++ file 'hbqt_slots.h' ** -** Created: Mon Jun 15 00:25:52 2009 +** Created: Mon Jun 15 13:08:25 2009 ** by: The Qt Meta Object Compiler version 61 (Qt 4.5.0) ** ** WARNING! All changes made in this file will be lost! @@ -9,7 +9,7 @@ #include "hbqt_slots.h" #if !defined(Q_MOC_OUTPUT_REVISION) -#error "The header file [hbqt_slots.h] doesnot include ." +#error "The header file 'hbqt_slots.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 61 #error "This file was generated using the moc from 4.5.0. It" #error "cannot be used with the include files from this version of Qt." @@ -234,4 +234,3 @@ int MyMainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) return _id; } QT_END_MOC_NAMESPACE -