From 5d5d1e23ecafcd55715f0e20f75c92fa75534a8b Mon Sep 17 00:00:00 2001 From: Pritpal Bedi Date: Thu, 22 Oct 2009 16:35:00 +0000 Subject: [PATCH] ! Will update Changelog in one go. --- .../hbqt/qth/QAbstractEventDispatcher.qth | 119 +++++++++++ .../hbqt/qth/QAbstractItemDelegate.qth | 103 +++++++++ .../contrib/hbqt/qth/QAbstractItemModel.qth | 4 +- .../contrib/hbqt/qth/QAbstractProxyModel.qth | 96 +++++++++ .../contrib/hbqt/qth/QAbstractScrollArea.qth | 2 +- .../hbqt/qth/QAbstractTextDocumentLayout.qth | 106 ++++++++++ harbour/contrib/hbqt/qth/QActionGroup.qth | 108 ++++++++++ harbour/contrib/hbqt/qth/QApplication.qth | 4 +- harbour/contrib/hbqt/qth/QBitArray.qth | 108 ++++++++++ harbour/contrib/hbqt/qth/QByteArray.qth | 196 ++++++++++++++++++ harbour/contrib/hbqt/qth/QCompleter.qth | 127 ++++++++++++ .../contrib/hbqt/qth/QContextMenuEvent.qth | 100 +++++++++ harbour/contrib/hbqt/qth/QDataStream.qth | 113 ++++++++++ harbour/contrib/hbqt/qth/QDate.qth | 112 ++++++++++ harbour/contrib/hbqt/qth/QDir.qth | 6 +- harbour/contrib/hbqt/qth/QDirModel.qth | 2 +- harbour/contrib/hbqt/qth/QFile.qth | 143 +++++++++++++ .../contrib/hbqt/qth/QFileIconProvider.qth | 96 +++++++++ harbour/contrib/hbqt/qth/QFileInfo.qth | 143 +++++++++++++ harbour/contrib/hbqt/qth/QFileSystemModel.qth | 6 +- harbour/contrib/hbqt/qth/QGradient.qth | 4 +- harbour/contrib/hbqt/qth/QHelpEvent.qth | 98 +++++++++ harbour/contrib/hbqt/qth/QHttp.qth | 6 +- .../contrib/hbqt/qth/QHttpRequestHeader.qth | 99 +++++++++ .../contrib/hbqt/qth/QHttpResponseHeader.qth | 99 +++++++++ harbour/contrib/hbqt/qth/QInputContext.qth | 106 ++++++++++ .../contrib/hbqt/qth/QInputMethodEvent.qth | 100 +++++++++ harbour/contrib/hbqt/qth/QItemSelection.qth | 98 +++++++++ .../contrib/hbqt/qth/QItemSelectionModel.qth | 120 +++++++++++ harbour/contrib/hbqt/qth/QLibraryInfo.qth | 97 +++++++++ harbour/contrib/hbqt/qth/QLineF.qth | 122 +++++++++++ harbour/contrib/hbqt/qth/QLocale.qth | 157 ++++++++++++++ harbour/contrib/hbqt/qth/QMatrix.qth | 123 +++++++++++ harbour/contrib/hbqt/qth/QMimeData.qth | 114 ++++++++++ harbour/contrib/hbqt/qth/QMovie.qth | 133 ++++++++++++ harbour/contrib/hbqt/qth/QNetworkRequest.qth | 108 ++++++++++ harbour/contrib/hbqt/qth/QObject.qth | 2 +- harbour/contrib/hbqt/qth/QPainterPath.qth | 151 ++++++++++++++ harbour/contrib/hbqt/qth/QPolygon.qth | 111 ++++++++++ harbour/contrib/hbqt/qth/QPolygonF.qth | 106 ++++++++++ harbour/contrib/hbqt/qth/QProcess.qth | 2 +- harbour/contrib/hbqt/qth/QRegExp.qth | 115 ++++++++++ harbour/contrib/hbqt/qth/QSessionManager.qth | 109 ++++++++++ harbour/contrib/hbqt/qth/QSpacerItem.qth | 98 +++++++++ .../contrib/hbqt/qth/QStyledItemDelegate.qth | 4 +- harbour/contrib/hbqt/qth/QTableView.qth | 2 +- .../hbqt/qth/QTableWidgetSelectionRange.qth | 100 +++++++++ harbour/contrib/hbqt/qth/QTextBlock.qth | 4 +- harbour/contrib/hbqt/qth/QTextFormat.qth | 2 +- .../contrib/hbqt/qth/QTextInlineObject.qth | 2 +- harbour/contrib/hbqt/qth/QTextListFormat.qth | 98 +++++++++ harbour/contrib/hbqt/qth/QTextOption.qth | 115 ++++++++++ harbour/contrib/hbqt/qth/QTextTableFormat.qth | 104 ++++++++++ harbour/contrib/hbqt/qth/QThread.qth | 112 ++++++++++ harbour/contrib/hbqt/qth/QTime.qth | 113 ++++++++++ harbour/contrib/hbqt/qth/QTransform.qth | 145 +++++++++++++ harbour/contrib/hbqt/qth/QTranslator.qth | 97 +++++++++ harbour/contrib/hbqt/qth/QValidator.qth | 97 +++++++++ harbour/contrib/hbqt/qth/QWebPage.qth | 4 +- harbour/contrib/hbqt/qth/QWidget.qth | 4 +- harbour/contrib/hbqt/qth/QWizardPage.qth | 109 ++++++++++ 61 files changed, 5054 insertions(+), 30 deletions(-) create mode 100644 harbour/contrib/hbqt/qth/QAbstractEventDispatcher.qth create mode 100644 harbour/contrib/hbqt/qth/QAbstractItemDelegate.qth create mode 100644 harbour/contrib/hbqt/qth/QAbstractProxyModel.qth create mode 100644 harbour/contrib/hbqt/qth/QAbstractTextDocumentLayout.qth create mode 100644 harbour/contrib/hbqt/qth/QActionGroup.qth create mode 100644 harbour/contrib/hbqt/qth/QBitArray.qth create mode 100644 harbour/contrib/hbqt/qth/QByteArray.qth create mode 100644 harbour/contrib/hbqt/qth/QCompleter.qth create mode 100644 harbour/contrib/hbqt/qth/QContextMenuEvent.qth create mode 100644 harbour/contrib/hbqt/qth/QDataStream.qth create mode 100644 harbour/contrib/hbqt/qth/QDate.qth create mode 100644 harbour/contrib/hbqt/qth/QFile.qth create mode 100644 harbour/contrib/hbqt/qth/QFileIconProvider.qth create mode 100644 harbour/contrib/hbqt/qth/QFileInfo.qth create mode 100644 harbour/contrib/hbqt/qth/QHelpEvent.qth create mode 100644 harbour/contrib/hbqt/qth/QHttpRequestHeader.qth create mode 100644 harbour/contrib/hbqt/qth/QHttpResponseHeader.qth create mode 100644 harbour/contrib/hbqt/qth/QInputContext.qth create mode 100644 harbour/contrib/hbqt/qth/QInputMethodEvent.qth create mode 100644 harbour/contrib/hbqt/qth/QItemSelection.qth create mode 100644 harbour/contrib/hbqt/qth/QItemSelectionModel.qth create mode 100644 harbour/contrib/hbqt/qth/QLibraryInfo.qth create mode 100644 harbour/contrib/hbqt/qth/QLineF.qth create mode 100644 harbour/contrib/hbqt/qth/QLocale.qth create mode 100644 harbour/contrib/hbqt/qth/QMatrix.qth create mode 100644 harbour/contrib/hbqt/qth/QMimeData.qth create mode 100644 harbour/contrib/hbqt/qth/QMovie.qth create mode 100644 harbour/contrib/hbqt/qth/QNetworkRequest.qth create mode 100644 harbour/contrib/hbqt/qth/QPainterPath.qth create mode 100644 harbour/contrib/hbqt/qth/QPolygon.qth create mode 100644 harbour/contrib/hbqt/qth/QPolygonF.qth create mode 100644 harbour/contrib/hbqt/qth/QRegExp.qth create mode 100644 harbour/contrib/hbqt/qth/QSessionManager.qth create mode 100644 harbour/contrib/hbqt/qth/QSpacerItem.qth create mode 100644 harbour/contrib/hbqt/qth/QTableWidgetSelectionRange.qth create mode 100644 harbour/contrib/hbqt/qth/QTextListFormat.qth create mode 100644 harbour/contrib/hbqt/qth/QTextOption.qth create mode 100644 harbour/contrib/hbqt/qth/QTextTableFormat.qth create mode 100644 harbour/contrib/hbqt/qth/QThread.qth create mode 100644 harbour/contrib/hbqt/qth/QTime.qth create mode 100644 harbour/contrib/hbqt/qth/QTransform.qth create mode 100644 harbour/contrib/hbqt/qth/QTranslator.qth create mode 100644 harbour/contrib/hbqt/qth/QValidator.qth create mode 100644 harbour/contrib/hbqt/qth/QWizardPage.qth diff --git a/harbour/contrib/hbqt/qth/QAbstractEventDispatcher.qth b/harbour/contrib/hbqt/qth/QAbstractEventDispatcher.qth new file mode 100644 index 0000000000..54f97251a8 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QAbstractEventDispatcher.qth @@ -0,0 +1,119 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +Inherits = QObject +Type = Core +New = + + + +#include + + +/* + * QAbstractEventDispatcher ( QObject * parent = 0 ) + * ~QAbstractEventDispatcher () + */ +HB_FUNC( QT_QABSTRACTEVENTDISPATCHER ) +{ + if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) + { + hb_retptr( ( QAbstractEventDispatcher* ) new QAbstractEventDispatcher( hbqt_par_QObject( 1 ) ) ); + } + else + { + hb_retptr( ( QAbstractEventDispatcher* ) new QAbstractEventDispatcher() ); + } +} + + + + + + + +bool filterEvent ( void * message ) +virtual void flush () = 0 +virtual bool hasPendingEvents () = 0 +virtual void interrupt () = 0 +virtual bool processEvents ( QEventLoop::ProcessEventsFlags flags ) = 0 +virtual void registerSocketNotifier ( QSocketNotifier * notifier ) = 0 +int registerTimer ( int interval, QObject * object ) +virtual void registerTimer ( int timerId, int interval, QObject * object ) = 0 +virtual QList registeredTimers ( QObject * object ) const = 0 +EventFilter setEventFilter ( EventFilter filter ) +virtual void unregisterSocketNotifier ( QSocketNotifier * notifier ) = 0 +virtual bool unregisterTimer ( int timerId ) = 0 +virtual bool unregisterTimers ( QObject * object ) = 0 +virtual void wakeUp () = 0 + +QAbstractEventDispatcher * instance ( QThread * thread = 0 ) + + + + + + +void aboutToBlock () +void awake () + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QAbstractItemDelegate.qth b/harbour/contrib/hbqt/qth/QAbstractItemDelegate.qth new file mode 100644 index 0000000000..42ae16e556 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QAbstractItemDelegate.qth @@ -0,0 +1,103 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +Inherits = QObject +Type = Core +New = +Destructor = no + + + +#include + + +/* QAbstractItemDelegate ( QObject * parent = 0 ) + * virtual ~QAbstractItemDelegate () + */ +HB_FUNC( QT_QABSTRACTITEMDELEGATE ) +{ + // hb_retptr( new QAbstractItemDelegate( 0 ) ); +} + + + +enum EndEditHint { NoHint, EditNextItem, EditPreviousItem, SubmitModelCache, RevertModelCache } + + + +virtual QWidget * createEditor ( QWidget * parent, const QStyleOptionViewItem & option, const QModelIndex & index ) const +virtual bool editorEvent ( QEvent * event, QAbstractItemModel * model, const QStyleOptionViewItem & option, const QModelIndex & index ) +virtual void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const = 0 +virtual void setEditorData ( QWidget * editor, const QModelIndex & index ) const +virtual void setModelData ( QWidget * editor, QAbstractItemModel * model, const QModelIndex & index ) const +virtual QSize sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index ) const = 0 +virtual void updateEditorGeometry ( QWidget * editor, const QStyleOptionViewItem & option, const QModelIndex & index ) const + + + +// bool helpEvent ( QHelpEvent * event, QAbstractItemView * view, const QStyleOptionViewItem & option, const QModelIndex & index ) + + + +void closeEditor ( QWidget * editor, QAbstractItemDelegate::EndEditHint hint = NoHint ) +void commitData ( QWidget * editor ) +void sizeHintChanged ( const QModelIndex & index ) + + + + + diff --git a/harbour/contrib/hbqt/qth/QAbstractItemModel.qth b/harbour/contrib/hbqt/qth/QAbstractItemModel.qth index 8ac92cf82f..5c96dbe766 100644 --- a/harbour/contrib/hbqt/qth/QAbstractItemModel.qth +++ b/harbour/contrib/hbqt/qth/QAbstractItemModel.qth @@ -76,7 +76,7 @@ CREATE CLASS HbDbfModel INHERIT QAbstractItemModel #include #include -#include "hbqt_slots.h" +#include "../hbqt_slots.h" /* * QAbstractItemModel ( QObject * parent = 0 ) @@ -130,7 +130,7 @@ bool insertRow ( int row, const QModelIndex & parent = QModelIndex() ) virtual bool insertRows ( int row, int count, const QModelIndex & parent = QModelIndex() ) virtual QMap itemData ( const QModelIndex & index ) const // virtual QModelIndexList match ( const QModelIndex & start, int role, const QVariant & value, int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags( Qt::MatchStartsWith | Qt::MatchWrap ) ) const -virtual QMimeData * mimeData ( const QModelIndexList & indexes ) const +// virtual QMimeData * mimeData ( const QModelIndexList & indexes ) const virtual QStringList mimeTypes () const virtual QModelIndex parent ( const QModelIndex & index ) const = 0 bool removeColumn ( int column, const QModelIndex & parent = QModelIndex() ) diff --git a/harbour/contrib/hbqt/qth/QAbstractProxyModel.qth b/harbour/contrib/hbqt/qth/QAbstractProxyModel.qth new file mode 100644 index 0000000000..92a68f9122 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QAbstractProxyModel.qth @@ -0,0 +1,96 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +Inherits = QAbstractItemModel +Type = Core +New = + + + +#include +#include + +/* QAbstractProxyModel ( QObject * parent = 0 ) + * ~QAbstractProxyModel () + */ +HB_FUNC( QT_QABSTRACTPROXYMODEL ) +{ + // hb_retptr( new QAbstractProxyModel() ); +} + + + + + + +virtual QModelIndex mapFromSource ( const QModelIndex & sourceIndex ) const = 0 +virtual QItemSelection mapSelectionFromSource ( const QItemSelection & sourceSelection ) const +virtual QItemSelection mapSelectionToSource ( const QItemSelection & proxySelection ) const +virtual QModelIndex mapToSource ( const QModelIndex & proxyIndex ) const = 0 +virtual void setSourceModel ( QAbstractItemModel * sourceModel ) +QAbstractItemModel * sourceModel () const + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QAbstractScrollArea.qth b/harbour/contrib/hbqt/qth/QAbstractScrollArea.qth index 2a75e5d5ad..82b026cbdb 100644 --- a/harbour/contrib/hbqt/qth/QAbstractScrollArea.qth +++ b/harbour/contrib/hbqt/qth/QAbstractScrollArea.qth @@ -83,7 +83,7 @@ QWidget * cornerWidget () const QScrollBar * horizontalScrollBar () const Qt::ScrollBarPolicy horizontalScrollBarPolicy () const QSize maximumViewportSize () const -QWidgetList scrollBarWidgets ( Qt::Alignment alignment ) +// QWidgetList scrollBarWidgets ( Qt::Alignment alignment ) void setCornerWidget ( QWidget * widget ) void setHorizontalScrollBar ( QScrollBar * scrollBar ) void setHorizontalScrollBarPolicy ( Qt::ScrollBarPolicy ) diff --git a/harbour/contrib/hbqt/qth/QAbstractTextDocumentLayout.qth b/harbour/contrib/hbqt/qth/QAbstractTextDocumentLayout.qth new file mode 100644 index 0000000000..baa48d6eab --- /dev/null +++ b/harbour/contrib/hbqt/qth/QAbstractTextDocumentLayout.qth @@ -0,0 +1,106 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +Inherits = QObject +Type = Core +New = + + + +#include + + +/* QAbstractTextDocumentLayout ( QTextDocument * document ) + * + */ +HB_FUNC( QT_QABSTRACTTEXTDOCUMENTLAYOUT ) +{ + // hb_retptr( new QAbstractTextDocumentLayout( hbqt_par_QTextDocument( 1 ) ) ); +} + + + + + + +QString anchorAt ( const QPointF & position ) const +virtual QRectF blockBoundingRect ( const QTextBlock & block ) const = 0 +QTextDocument * document () const +virtual QSizeF documentSize () const = 0 +//virtual void draw ( QPainter * painter, const PaintContext & context ) = 0 +virtual QRectF frameBoundingRect ( QTextFrame * frame ) const = 0 +QTextObjectInterface * handlerForObject ( int objectType ) const +virtual int hitTest ( const QPointF & point, Qt::HitTestAccuracy accuracy ) const = 0 +virtual int pageCount () const = 0 +QPaintDevice * paintDevice () const +void registerHandler ( int objectType, QObject * component ) +void setPaintDevice ( QPaintDevice * device ) + + + + + + +void documentSizeChanged ( const QSizeF & newSize ) +void pageCountChanged ( int newPages ) +void update ( const QRectF & rect = QRectF( 0., 0., 1000000000., 1000000000. ) ) +void updateBlock ( const QTextBlock & block ) + + + + + diff --git a/harbour/contrib/hbqt/qth/QActionGroup.qth b/harbour/contrib/hbqt/qth/QActionGroup.qth new file mode 100644 index 0000000000..e4df05f850 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QActionGroup.qth @@ -0,0 +1,108 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +Inherits = QObject +Type = Core +New = + + + +#include + + +/* QActionGroup ( QObject * parent ) + * ~QActionGroup () + */ +HB_FUNC( QT_QACTIONGROUP ) +{ + if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) + { + hb_retptr( new QActionGroup( hbqt_par_QObject( 1 ) ) ); + } +} + + + + + + +QList actions () const +QAction * addAction ( QAction * action ) +QAction * addAction ( const QString & text ) +QAction * addAction ( const QIcon & icon, const QString & text ) +QAction * checkedAction () const +bool isEnabled () const +bool isExclusive () const +bool isVisible () const +void removeAction ( QAction * action ) + + + +void setDisabled ( bool b ) +void setEnabled ( bool ) +void setExclusive ( bool ) +void setVisible ( bool ) + + + +void hovered ( QAction * action ) +void triggered ( QAction * action ) + + + + + diff --git a/harbour/contrib/hbqt/qth/QApplication.qth b/harbour/contrib/hbqt/qth/QApplication.qth index 3620eb4a56..24ea23634b 100644 --- a/harbour/contrib/hbqt/qth/QApplication.qth +++ b/harbour/contrib/hbqt/qth/QApplication.qth @@ -179,7 +179,7 @@ QWidget * activeModalWidget () QWidget * activePopupWidget () QWidget * activeWindow () void alert ( QWidget * widget, int msec = 0 ) -QWidgetList allWidgets () +// QWidgetList allWidgets () void beep () void changeOverrideCursor ( const QCursor & cursor ) QClipboard * clipboard () @@ -241,7 +241,7 @@ QStyle * style () void syncX () QWidget * topLevelAt ( const QPoint & point ) QWidget * topLevelAt ( int x, int y ) -QWidgetList topLevelWidgets () +// QWidgetList topLevelWidgets () Type type () int wheelScrollLines () QWidget * widgetAt ( const QPoint & point ) diff --git a/harbour/contrib/hbqt/qth/QBitArray.qth b/harbour/contrib/hbqt/qth/QBitArray.qth new file mode 100644 index 0000000000..f7461efd92 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QBitArray.qth @@ -0,0 +1,108 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = +Type = Core +New = + + + +#include + + +/* QBitArray () + * QBitArray ( int size, bool value = false ) + * QBitArray ( const QBitArray & other ) + */ +HB_FUNC( QT_QBITARRAY ) +{ + hb_retptr( new QBitArray() ); +} + + + + + + +bool at ( int i ) const +void clear () +void clearBit ( int i ) +int count () const +int count ( bool on ) const +bool fill ( bool value, int size = -1 ) +void fill ( bool value, int begin, int end ) +bool isEmpty () const +bool isNull () const +void resize ( int size ) +void setBit ( int i ) +void setBit ( int i, bool value ) +int size () const +bool testBit ( int i ) const +bool toggleBit ( int i ) +void truncate ( int pos ) + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QByteArray.qth b/harbour/contrib/hbqt/qth/QByteArray.qth new file mode 100644 index 0000000000..8cfed0dfb0 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QByteArray.qth @@ -0,0 +1,196 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = +Type = Core +New = + + + +#include + + +/* QByteArray () + * QByteArray ( const char * str ) + * QByteArray ( const char * data, int size ) + * QByteArray ( int size, char ch ) + * QByteArray ( const QByteArray & other ) + * ~QByteArray () + */ +HB_FUNC( QT_QBYTEARRAY ) +{ + hb_retptr( new QByteArray() ); +} + + + + + + +QByteArray & append ( const QByteArray & ba ) +QByteArray & append ( const QString & str ) +QByteArray & append ( const char * str ) +QByteArray & append ( const char * str, int len ) +QByteArray & append ( char ch ) +char at ( int i ) const +int capacity () const +void chop ( int n ) +void clear () +const char * constData () const +// bool contains ( const QByteArray & ba ) const +// bool contains ( const char * str ) const +// bool contains ( char ch ) const +int count ( const QByteArray & ba ) const +int count ( const char * str ) const +int count ( char ch ) const +int count () const +char * data () +const char * data () const +bool endsWith ( const QByteArray & ba ) const +bool endsWith ( const char * str ) const +bool endsWith ( char ch ) const +QByteArray & fill ( char ch, int size = -1 ) +int indexOf ( const QByteArray & ba, int from = 0 ) const +int indexOf ( const QString & str, int from = 0 ) const +int indexOf ( const char * str, int from = 0 ) const +int indexOf ( char ch, int from = 0 ) const +QByteArray & insert ( int i, const QByteArray & ba ) +QByteArray & insert ( int i, const QString & str ) +QByteArray & insert ( int i, const char * str ) +QByteArray & insert ( int i, char ch ) +bool isEmpty () const +bool isNull () const +int lastIndexOf ( const QByteArray & ba, int from = -1 ) const +int lastIndexOf ( const QString & str, int from = -1 ) const +int lastIndexOf ( const char * str, int from = -1 ) const +int lastIndexOf ( char ch, int from = -1 ) const +QByteArray left ( int len ) const +QByteArray leftJustified ( int width, char fill = ' ', bool truncate = false ) const +int length () const +QByteArray mid ( int pos, int len = -1 ) const +QByteArray & prepend ( const QByteArray & ba ) +QByteArray & prepend ( const char * str ) +QByteArray & prepend ( char ch ) +void push_back ( const QByteArray & other ) +void push_back ( const char * str ) +void push_back ( char ch ) +void push_front ( const QByteArray & other ) +void push_front ( const char * str ) +void push_front ( char ch ) +QByteArray & remove ( int pos, int len ) +QByteArray repeated ( int times ) const +QByteArray & replace ( int pos, int len, const QByteArray & after ) +QByteArray & replace ( int pos, int len, const char * after ) +QByteArray & replace ( const QByteArray & before, const QByteArray & after ) +QByteArray & replace ( const char * before, const QByteArray & after ) +QByteArray & replace ( const char * before, int bsize, const char * after, int asize ) +QByteArray & replace ( const QByteArray & before, const char * after ) +QByteArray & replace ( const QString & before, const QByteArray & after ) +QByteArray & replace ( const QString & before, const char * after ) +QByteArray & replace ( const char * before, const char * after ) +QByteArray & replace ( char before, const QByteArray & after ) +QByteArray & replace ( char before, const QString & after ) +QByteArray & replace ( char before, const char * after ) +QByteArray & replace ( char before, char after ) +void reserve ( int size ) +void resize ( int size ) +QByteArray right ( int len ) const +QByteArray rightJustified ( int width, char fill = ' ', bool truncate = false ) const +QByteArray & setNum ( int n, int base = 10 ) +QByteArray & setNum ( uint n, int base = 10 ) +QByteArray & setNum ( short n, int base = 10 ) +QByteArray & setNum ( ushort n, int base = 10 ) +QByteArray & setNum ( qlonglong n, int base = 10 ) +QByteArray & setNum ( qulonglong n, int base = 10 ) +QByteArray & setNum ( double n, char f = 'g', int prec = 6 ) +QByteArray & setNum ( float n, char f = 'g', int prec = 6 ) +QByteArray simplified () const +int size () const +QList split ( char sep ) const +void squeeze () +bool startsWith ( const QByteArray & ba ) const +bool startsWith ( const char * str ) const +bool startsWith ( char ch ) const +QByteArray toBase64 () const +double toDouble ( bool * ok = 0 ) const +float toFloat ( bool * ok = 0 ) const +QByteArray toHex () const +int toInt ( bool * ok = 0, int base = 10 ) const +long toLong ( bool * ok = 0, int base = 10 ) const +qlonglong toLongLong ( bool * ok = 0, int base = 10 ) const +QByteArray toLower () const +QByteArray toPercentEncoding ( const QByteArray & exclude = QByteArray(), const QByteArray & include = QByteArray(), char percent = '%' ) const +short toShort ( bool * ok = 0, int base = 10 ) const +uint toUInt ( bool * ok = 0, int base = 10 ) const +ulong toULong ( bool * ok = 0, int base = 10 ) const +qulonglong toULongLong ( bool * ok = 0, int base = 10 ) const +ushort toUShort ( bool * ok = 0, int base = 10 ) const +QByteArray toUpper () const +QByteArray trimmed () const +void truncate ( int pos ) + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QCompleter.qth b/harbour/contrib/hbqt/qth/QCompleter.qth new file mode 100644 index 0000000000..d70ab99d32 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QCompleter.qth @@ -0,0 +1,127 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +Inherits = QObject +Type = Core +New = + + + +#include +#include + +/* QCompleter ( QObject * parent = 0 ) + * QCompleter ( QAbstractItemModel * model, QObject * parent = 0 ) + * QCompleter ( const QStringList & list, QObject * parent = 0 ) + * ~QCompleter () + */ +HB_FUNC( QT_QCOMPLETER ) +{ + hb_retptr( new QCompleter() ); +} + + + +enum CompletionMode { PopupCompletion, InlineCompletion, UnfilteredPopupCompletion } +enum ModelSorting { UnsortedModel, CaseSensitivelySortedModel, CaseInsensitivelySortedModel } + + + +Qt::CaseSensitivity caseSensitivity () const +int completionColumn () const +int completionCount () const +CompletionMode completionMode () const +QAbstractItemModel * completionModel () const +QString completionPrefix () const +int completionRole () const +QString currentCompletion () const +QModelIndex currentIndex () const +int currentRow () const +QAbstractItemModel * model () const +ModelSorting modelSorting () const +virtual QString pathFromIndex ( const QModelIndex & index ) const +QAbstractItemView * popup () const +void setCaseSensitivity ( Qt::CaseSensitivity caseSensitivity ) +void setCompletionColumn ( int column ) +void setCompletionMode ( CompletionMode mode ) +void setCompletionRole ( int role ) +bool setCurrentRow ( int row ) +void setModel ( QAbstractItemModel * model ) +void setModelSorting ( ModelSorting sorting ) +void setPopup ( QAbstractItemView * popup ) +void setWidget ( QWidget * widget ) +virtual QStringList splitPath ( const QString & path ) const +QWidget * widget () const +bool wrapAround () const + + + +void complete ( const QRect & rect = QRect() ) +void setCompletionPrefix ( const QString & prefix ) +void setWrapAround ( bool wrap ) + + + +void activated ( const QString & text ) +void activated ( const QModelIndex & index ) +void highlighted ( const QString & text ) +void highlighted ( const QModelIndex & index ) + + + + + diff --git a/harbour/contrib/hbqt/qth/QContextMenuEvent.qth b/harbour/contrib/hbqt/qth/QContextMenuEvent.qth new file mode 100644 index 0000000000..b9f360d2d3 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QContextMenuEvent.qth @@ -0,0 +1,100 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = QInputEvent +Type = Core +New = + + + +#include + + +/* QContextMenuEvent ( Reason reason, const QPoint & pos, const QPoint & globalPos, Qt::KeyboardModifiers modifiers ) + * QContextMenuEvent ( Reason reason, const QPoint & pos, const QPoint & globalPos ) + * QContextMenuEvent ( Reason reason, const QPoint & pos ) + */ +HB_FUNC( QT_QCONTEXTMENUEVENT ) +{ + hb_retptr( new QContextMenuEvent( ( QContextMenuEvent::Reason ) hb_parni( 1 ), *hbqt_par_QPoint( 2 ) ) ); +} + + + +enum Reason { Mouse, Keyboard, Other } + + + +const QPoint & globalPos () const +int globalX () const +int globalY () const +const QPoint & pos () const +Reason reason () const +int x () const +int y () const + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QDataStream.qth b/harbour/contrib/hbqt/qth/QDataStream.qth new file mode 100644 index 0000000000..bdb21acbfe --- /dev/null +++ b/harbour/contrib/hbqt/qth/QDataStream.qth @@ -0,0 +1,113 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = +Type = Core +New = +Destructor = + + + +#include + + +/* QDataStream () + * QDataStream ( QIODevice * d ) + * QDataStream ( QByteArray * a, QIODevice::OpenMode mode ) + * QDataStream ( const QByteArray & a ) + * virtual ~QDataStream () + */ +HB_FUNC( QT_QDATASTREAM ) +{ + hb_retptr( new QDataStream() ); +} + + + +enum ByteOrder { BigEndian, LittleEndian } +enum Status { Ok, ReadPastEnd, ReadCorruptData } +enum Version { Qt_1_0, Qt_2_0, Qt_2_1, Qt_3_0, ..., Qt_4_5 } + + + +bool atEnd () const +ByteOrder byteOrder () const +QIODevice * device () const +//QDataStream & readBytes ( char *& s, uint & l ) +int readRawData ( char * s, int len ) +void resetStatus () +void setByteOrder ( ByteOrder bo ) +void setDevice ( QIODevice * d ) +void setStatus ( Status status ) +void setVersion ( int v ) +int skipRawData ( int len ) +Status status () const +int version () const +//QDataStream & writeBytes ( const char * s, uint len ) +int writeRawData ( const char * s, int len ) + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QDate.qth b/harbour/contrib/hbqt/qth/QDate.qth new file mode 100644 index 0000000000..49392ac56a --- /dev/null +++ b/harbour/contrib/hbqt/qth/QDate.qth @@ -0,0 +1,112 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = +Type = Core +New = +Destructor = + + + +#include + + +/* QDate () + * QDate ( int y, int m, int d ) + */ +HB_FUNC( QT_QDATE ) +{ + hb_retptr( new QDate() ); +} + + + +enum MonthNameType { DateFormat, StandaloneFormat } + + + +QDate addDays ( int ndays ) const +QDate addMonths ( int nmonths ) const +QDate addYears ( int nyears ) const +int day () const +int dayOfWeek () const +int dayOfYear () const +int daysInMonth () const +int daysInYear () const +int daysTo ( const QDate & d ) const +void getDate ( int * year, int * month, int * day ) +bool isNull () const +bool isValid () const +int month () const +bool setDate ( int year, int month, int day ) +int toJulianDay () const +QString toString ( const QString & format ) const +QString toString ( Qt::DateFormat format = Qt::TextDate ) const +int weekNumber ( int * yearNumber = 0 ) const +int year () const + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QDir.qth b/harbour/contrib/hbqt/qth/QDir.qth index 984e71360e..6a17197e0d 100644 --- a/harbour/contrib/hbqt/qth/QDir.qth +++ b/harbour/contrib/hbqt/qth/QDir.qth @@ -94,8 +94,8 @@ bool cd ( const QString & dirName ) bool cdUp () uint count () const QString dirName () const -QFileInfoList entryInfoList ( const QStringList & nameFilters, Filters filters = NoFilter, SortFlags sort = NoSort ) const -QFileInfoList entryInfoList ( Filters filters = NoFilter, SortFlags sort = NoSort ) const +// QFileInfoList entryInfoList ( const QStringList & nameFilters, Filters filters = NoFilter, SortFlags sort = NoSort ) const +// QFileInfoList entryInfoList ( Filters filters = NoFilter, SortFlags sort = NoSort ) const QStringList entryList ( const QStringList & nameFilters, Filters filters = NoFilter, SortFlags sort = NoSort ) const QStringList entryList ( Filters filters = NoFilter, SortFlags sort = NoSort ) const bool exists ( const QString & name ) const @@ -128,7 +128,7 @@ void addSearchPath ( const QString & prefix, const QString & path ) QString cleanPath ( const QString & path ) QDir current () QString currentPath () -QFileInfoList drives () +// QFileInfoList drives () QString fromNativeSeparators ( const QString & pathName ) QDir home () QString homePath () diff --git a/harbour/contrib/hbqt/qth/QDirModel.qth b/harbour/contrib/hbqt/qth/QDirModel.qth index 485f7b19c8..f4a0f94156 100644 --- a/harbour/contrib/hbqt/qth/QDirModel.qth +++ b/harbour/contrib/hbqt/qth/QDirModel.qth @@ -97,7 +97,7 @@ QModelIndex index ( const QString & path, int column = 0 ) const bool isDir ( const QModelIndex & index ) const bool isReadOnly () const bool lazyChildCount () const -virtual QMimeData * mimeData ( const QModelIndexList & indexes ) const +// virtual QMimeData * mimeData ( const QModelIndexList & indexes ) const virtual QStringList mimeTypes () const QModelIndex mkdir ( const QModelIndex & parent, const QString & name ) QStringList nameFilters () const diff --git a/harbour/contrib/hbqt/qth/QFile.qth b/harbour/contrib/hbqt/qth/QFile.qth new file mode 100644 index 0000000000..1888d4f757 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QFile.qth @@ -0,0 +1,143 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = +Inherits = QIODevice +Type = Core +New = +Destructor = + + + +#include + + +/* QFile ( const QString & name ) + * QFile ( QObject * parent ) + * QFile ( const QString & name, QObject * parent ) + * ~QFile () + */ +HB_FUNC( QT_QFILE ) +{ + if( hb_pcount() == 1 && HB_ISCHAR( 1 ) ) + { + hb_retptr( new QFile( hbqt_par_QString( 1 ) ) ); + } +} + + + +enum FileError { NoError, ReadError, WriteError, FatalError, ..., CopyError } +enum MemoryMapFlags { NoOptions } +enum Permission { ReadOwner, WriteOwner, ExeOwner, ReadUser, ..., ExeOther } +flags Permissions + +flags OpenMode +enum OpenModeFlag { NotOpen, ReadOnly, WriteOnly, ReadWrite, ..., Unbuffered } + + + +virtual bool atEnd () const +virtual void close () +bool copy ( const QString & newName ) +FileError error () const +bool exists () const +QString fileName () const +bool flush () +int handle () const +virtual bool isSequential () const +bool link ( const QString & linkName ) +uchar * map ( qint64 offset, qint64 size, MemoryMapFlags flags = NoOptions ) +virtual bool open ( OpenMode mode ) +// bool open ( FILE * fh, OpenMode mode ) +bool open ( int fd, OpenMode mode ) +Permissions permissions () const +bool remove () +bool rename ( const QString & newName ) +bool resize ( qint64 sz ) +void setFileName ( const QString & name ) +bool setPermissions ( Permissions permissions ) +virtual qint64 size () const +QString symLinkTarget () const +// bool unmap ( uchar * address ) +void unsetError () + +bool copy ( const QString & fileName, const QString & newName ) +QString decodeName ( const QByteArray & localFileName ) +QString decodeName ( const char * localFileName ) +QByteArray encodeName ( const QString & fileName ) +bool exists ( const QString & fileName ) +bool link ( const QString & fileName, const QString & linkName ) +Permissions permissions ( const QString & fileName ) +bool remove ( const QString & fileName ) +bool rename ( const QString & oldName, const QString & newName ) +bool resize ( const QString & fileName, qint64 sz ) +// void setDecodingFunction ( DecoderFn function ) +// void setEncodingFunction ( EncoderFn function ) +bool setPermissions ( const QString & fileName, Permissions permissions ) +QString symLinkTarget ( const QString & fileName ) + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QFileIconProvider.qth b/harbour/contrib/hbqt/qth/QFileIconProvider.qth new file mode 100644 index 0000000000..ac98aea7e9 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QFileIconProvider.qth @@ -0,0 +1,96 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = +Type = Core +New = +Destructor = + + + +#include + + +/* QFileIconProvider () + * virtual ~QFileIconProvider () + */ +HB_FUNC( QT_QFILEICONPROVIDER ) +{ + hb_retptr( new QFileIconProvider() ); +} + + + +enum IconType { Computer, Desktop, Trashcan, Network, ..., File } + + + +virtual QIcon icon ( IconType type ) const +virtual QIcon icon ( const QFileInfo & info ) const +virtual QString type ( const QFileInfo & info ) const + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QFileInfo.qth b/harbour/contrib/hbqt/qth/QFileInfo.qth new file mode 100644 index 0000000000..40cc9a8ffe --- /dev/null +++ b/harbour/contrib/hbqt/qth/QFileInfo.qth @@ -0,0 +1,143 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = +Type = Core +New = +Destructor = + + + +#include +#include +#include + + +/* QFileInfo () + * QFileInfo ( const QString & file ) + * QFileInfo ( const QFile & file ) + * QFileInfo ( const QDir & dir, const QString & file ) + * QFileInfo ( const QFileInfo & fileinfo ) + * ~QFileInfo () + */ +HB_FUNC( QT_QFILEINFO ) +{ + hb_retptr( new QFileInfo() ); +} + + + +flags PermissionSpec + + + +QDir absoluteDir () const +QString absoluteFilePath () const +QString absolutePath () const +QString baseName () const +QString bundleName () const +bool caching () const +QString canonicalFilePath () const +QString canonicalPath () const +QString completeBaseName () const +QString completeSuffix () const +QDateTime created () const +QDir dir () const +bool exists () const +QString fileName () const +QString filePath () const +QString group () const +uint groupId () const +bool isAbsolute () const +bool isBundle () const +bool isDir () const +bool isExecutable () const +bool isFile () const +bool isHidden () const +bool isReadable () const +bool isRelative () const +bool isRoot () const +bool isSymLink () const +bool isWritable () const +QDateTime lastModified () const +QDateTime lastRead () const +bool makeAbsolute () +QString owner () const +uint ownerId () const +QString path () const +bool permission ( QFile::Permissions permissions ) const +QFile::Permissions permissions () const +void refresh () +void setCaching ( bool enable ) +void setFile ( const QString & file ) +void setFile ( const QFile & file ) +void setFile ( const QDir & dir, const QString & file ) +qint64 size () const +QString suffix () const +QString symLinkTarget () const + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QFileSystemModel.qth b/harbour/contrib/hbqt/qth/QFileSystemModel.qth index f3f7597315..e87104ffcf 100644 --- a/harbour/contrib/hbqt/qth/QFileSystemModel.qth +++ b/harbour/contrib/hbqt/qth/QFileSystemModel.qth @@ -85,12 +85,12 @@ QFileInfo fileInfo ( const QModelIndex & index ) const QString fileName ( const QModelIndex & index ) const QString filePath ( const QModelIndex & index ) const QDir::Filters filter () const -QFileIconProvider * iconProvider () const +// QFileIconProvider * iconProvider () const QModelIndex index ( const QString & path, int column = 0 ) const bool isDir ( const QModelIndex & index ) const bool isReadOnly () const QDateTime lastModified ( const QModelIndex & index ) const -virtual QMimeData * mimeData ( const QModelIndexList & indexes ) const +// virtual QMimeData * mimeData ( const QModelIndexList & indexes ) const virtual QStringList mimeTypes () const QModelIndex mkdir ( const QModelIndex & parent, const QString & name ) QVariant myComputer ( int role = Qt::DisplayRole ) const @@ -103,7 +103,7 @@ bool rmdir ( const QModelIndex & index ) const QDir rootDirectory () const QString rootPath () const void setFilter ( QDir::Filters filters ) -void setIconProvider ( QFileIconProvider * provider ) +// void setIconProvider ( QFileIconProvider * provider ) void setNameFilterDisables ( bool enable ) void setNameFilters ( const QStringList & filters ) void setReadOnly ( bool enable ) diff --git a/harbour/contrib/hbqt/qth/QGradient.qth b/harbour/contrib/hbqt/qth/QGradient.qth index f111fdc5c3..590f9c4106 100644 --- a/harbour/contrib/hbqt/qth/QGradient.qth +++ b/harbour/contrib/hbqt/qth/QGradient.qth @@ -84,9 +84,9 @@ CoordinateMode coordinateMode () const void setColorAt ( qreal position, const QColor & color ) void setCoordinateMode ( CoordinateMode mode ) void setSpread ( Spread method ) -void setStops ( const QGradientStops & stopPoints ) +// void setStops ( const QGradientStops & stopPoints ) Spread spread () const -QGradientStops stops () const +// QGradientStops stops () const Type type () const diff --git a/harbour/contrib/hbqt/qth/QHelpEvent.qth b/harbour/contrib/hbqt/qth/QHelpEvent.qth new file mode 100644 index 0000000000..5044fee730 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QHelpEvent.qth @@ -0,0 +1,98 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = +Type = Core +New = +Destructor = + + + +#include + + +/* QHelpEvent ( Type type, const QPoint & pos, const QPoint & globalPos ) + * + */ +HB_FUNC( QT_QHELPEVENT ) +{ + // hb_retptr( new QHelpEvent() ); +} + + + + + + +const QPoint & globalPos () const +int globalX () const +int globalY () const +const QPoint & pos () const +int x () const +int y () const + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QHttp.qth b/harbour/contrib/hbqt/qth/QHttp.qth index 52f927a601..5d7114f3b9 100644 --- a/harbour/contrib/hbqt/qth/QHttp.qth +++ b/harbour/contrib/hbqt/qth/QHttp.qth @@ -126,8 +126,8 @@ int request ( const QHttpRequestHeader & header, const QByteArray & data, QIODev int setHost ( const QString & hostName, quint16 port = 80 ) int setHost ( const QString & hostName, ConnectionMode mode, quint16 port = 0 ) int setProxy ( const QString & host, int port, const QString & username = QString(), const QString & password = QString() ) -int setProxy ( const QNetworkProxy & proxy ) -int setSocket ( QTcpSocket * socket ) +// int setProxy ( const QNetworkProxy & proxy ) +// int setSocket ( QTcpSocket * socket ) int setUser ( const QString & userName, const QString & password = QString() ) State state () const @@ -142,7 +142,7 @@ void authenticationRequired ( const QString & hostname, quint16 port, QAuthentic void dataReadProgress ( int done, int total ) void dataSendProgress ( int done, int total ) void done ( bool error ) -void proxyAuthenticationRequired ( const QNetworkProxy & proxy, QAuthenticator * authenticator ) +// void proxyAuthenticationRequired ( const QNetworkProxy & proxy, QAuthenticator * authenticator ) void readyRead ( const QHttpResponseHeader & resp ) void requestFinished ( int id, bool error ) void requestStarted ( int id ) diff --git a/harbour/contrib/hbqt/qth/QHttpRequestHeader.qth b/harbour/contrib/hbqt/qth/QHttpRequestHeader.qth new file mode 100644 index 0000000000..0472cfe099 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QHttpRequestHeader.qth @@ -0,0 +1,99 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = QHttpHeader +Type = Core +New = +Destructor = + + + +#include + + +/* QHttpRequestHeader () + * QHttpRequestHeader ( const QString & method, const QString & path, int majorVer = 1, int minorVer = 1 ) + * QHttpRequestHeader ( const QHttpRequestHeader & header ) + * QHttpRequestHeader ( const QString & str ) + */ +HB_FUNC( QT_QHTTPREQUESTHEADER ) +{ + hb_retptr( new QHttpRequestHeader() ); +} + + + + + + +virtual int majorVersion () const +QString method () const +virtual int minorVersion () const +QString path () const +void setRequest ( const QString & method, const QString & path, int majorVer = 1, int minorVer = 1 ) + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QHttpResponseHeader.qth b/harbour/contrib/hbqt/qth/QHttpResponseHeader.qth new file mode 100644 index 0000000000..f778558233 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QHttpResponseHeader.qth @@ -0,0 +1,99 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = QHttpHeader +Type = Core +New = +Destructor = + + + +#include + + +/* QHttpResponseHeader () + * QHttpResponseHeader ( const QHttpResponseHeader & header ) + * QHttpResponseHeader ( const QString & str ) + * QHttpResponseHeader ( int code, const QString & text = QString(), int majorVer = 1, int minorVer = 1 ) + */ +HB_FUNC( QT_QHTTPRESPONSEHEADER ) +{ + hb_retptr( new QHttpResponseHeader() ); +} + + + + + + +virtual int majorVersion () const +virtual int minorVersion () const +QString reasonPhrase () const +void setStatusLine ( int code, const QString & text = QString(), int majorVer = 1, int minorVer = 1 ) +int statusCode () const + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QInputContext.qth b/harbour/contrib/hbqt/qth/QInputContext.qth new file mode 100644 index 0000000000..ec1d5e9fd0 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QInputContext.qth @@ -0,0 +1,106 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = +Inherits = QObject +Type = Core +New = +Destructor = + + + +#include +#include + +/* QInputContext ( QObject * parent = 0 ) + * virtual ~QInputContext () + */ +HB_FUNC( QT_QINPUTCONTEXT ) +{ + // hb_retptr( new QInputContext() ); +} + + + +enum StandardFormat { PreeditFormat, SelectionFormat } + + + +virtual QList actions () +virtual bool filterEvent ( const QEvent * event ) +virtual QFont font () const +virtual QString identifierName () = 0 +virtual bool isComposing () const = 0 +virtual QString language () = 0 +virtual void mouseHandler ( int x, QMouseEvent * event ) +virtual void reset () = 0 +void sendEvent ( const QInputMethodEvent & event ) +QTextFormat standardFormat ( StandardFormat s ) const +virtual void update () +virtual void widgetDestroyed ( QWidget * widget ) +// virtual bool x11FilterEvent ( QWidget * keywidget, XEvent * event ) + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QInputMethodEvent.qth b/harbour/contrib/hbqt/qth/QInputMethodEvent.qth new file mode 100644 index 0000000000..8f3b52282b --- /dev/null +++ b/harbour/contrib/hbqt/qth/QInputMethodEvent.qth @@ -0,0 +1,100 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = QEvent +Type = Core +New = +Destructor = + + + +#include + + +/* QInputMethodEvent () + * QInputMethodEvent ( const QString & preeditText, const QList & attributes ) + * QInputMethodEvent ( const QInputMethodEvent & other ) + */ +HB_FUNC( QT_QINPUTMETHODEVENT ) +{ + hb_retptr( new QInputMethodEvent() ); +} + + + +enum AttributeType { TextFormat, Cursor, Language, Ruby } + + + +const QList & attributes () const +const QString & commitString () const +const QString & preeditString () const +int replacementLength () const +int replacementStart () const +void setCommitString ( const QString & commitString, int replaceFrom = 0, int replaceLength = 0 ) + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QItemSelection.qth b/harbour/contrib/hbqt/qth/QItemSelection.qth new file mode 100644 index 0000000000..b1be5017bd --- /dev/null +++ b/harbour/contrib/hbqt/qth/QItemSelection.qth @@ -0,0 +1,98 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = QList +Type = Core +New = +Destructor = + + + +#include + + +/* QItemSelection () + * QItemSelection ( const QModelIndex & topLeft, const QModelIndex & bottomRight ) + */ +HB_FUNC( QT_QITEMSELECTION ) +{ + hb_retptr( new QItemSelection() ); +} + + + + + + +bool contains ( const QModelIndex & index ) const +// QModelIndexList indexes () const +void merge ( const QItemSelection & other, QItemSelectionModel::SelectionFlags command ) +void select ( const QModelIndex & topLeft, const QModelIndex & bottomRight ) + +// void split ( const QItemSelectionRange & range, const QItemSelectionRange & other, QItemSelection * result ) + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QItemSelectionModel.qth b/harbour/contrib/hbqt/qth/QItemSelectionModel.qth new file mode 100644 index 0000000000..2720fcbd4c --- /dev/null +++ b/harbour/contrib/hbqt/qth/QItemSelectionModel.qth @@ -0,0 +1,120 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = +Inherits = QObject +Type = Core +New = +Destructor = + + + +#include + + +/* QItemSelectionModel ( QAbstractItemModel * model ) + * QItemSelectionModel ( QAbstractItemModel * model, QObject * parent ) + * virtual ~QItemSelectionModel () + */ +HB_FUNC( QT_QITEMSELECTIONMODEL ) +{ + if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) + { + hb_retptr( new QItemSelectionModel( hbqt_par_QAbstractItemModel( 1 ) ) ); + } +} + + + +enum SelectionFlag { NoUpdate, Clear, Select, Deselect, ..., ClearAndSelect } +flags SelectionFlags + + + +bool columnIntersectsSelection ( int column, const QModelIndex & parent ) const +QModelIndex currentIndex () const +bool hasSelection () const +bool isColumnSelected ( int column, const QModelIndex & parent ) const +bool isRowSelected ( int row, const QModelIndex & parent ) const +bool isSelected ( const QModelIndex & index ) const +const QAbstractItemModel * model () const +bool rowIntersectsSelection ( int row, const QModelIndex & parent ) const +// QModelIndexList selectedColumns ( int row = 0 ) const +// QModelIndexList selectedIndexes () const +// QModelIndexList selectedRows ( int column = 0 ) const +const QItemSelection selection () const + + + +virtual void clear () +void clearSelection () +virtual void reset () +virtual void select ( const QModelIndex & index, QItemSelectionModel::SelectionFlags command ) +virtual void select ( const QItemSelection & selection, QItemSelectionModel::SelectionFlags command ) +void setCurrentIndex ( const QModelIndex & index, QItemSelectionModel::SelectionFlags command ) + + + +void currentChanged ( const QModelIndex & current, const QModelIndex & previous ) +void currentColumnChanged ( const QModelIndex & current, const QModelIndex & previous ) +void currentRowChanged ( const QModelIndex & current, const QModelIndex & previous ) +void selectionChanged ( const QItemSelection & selected, const QItemSelection & deselected ) + + + + + diff --git a/harbour/contrib/hbqt/qth/QLibraryInfo.qth b/harbour/contrib/hbqt/qth/QLibraryInfo.qth new file mode 100644 index 0000000000..f87f44cff0 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QLibraryInfo.qth @@ -0,0 +1,97 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +Inherits = +Type = Core +New = + + + +#include + + +/* + * + */ +HB_FUNC( QT_QLIBRARYINFO ) +{ + hb_retptr( ( QLibraryInfo* ) new QLibraryInfo() ); +} + + + +enum LibraryLocation { PrefixPath, DocumentationPath, HeadersPath, LibrariesPath, ..., DemosPath } + + + +QString buildKey () +QString licensedProducts () +QString licensee () +QString location ( LibraryLocation loc ) + + + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QLineF.qth b/harbour/contrib/hbqt/qth/QLineF.qth new file mode 100644 index 0000000000..af2e53e77d --- /dev/null +++ b/harbour/contrib/hbqt/qth/QLineF.qth @@ -0,0 +1,122 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = +Type = Core +New = +Destructor = + + + +#include + + +/* QLineF () + * QLineF ( const QPointF & p1, const QPointF & p2 ) + * QLineF ( qreal x1, qreal y1, qreal x2, qreal y2 ) + * QLineF ( const QLine & line ) + */ +HB_FUNC( QT_QLINEF ) +{ + hb_retptr( new QLineF() ); +} + + + +enum IntersectType { NoIntersection, UnboundedIntersection, BoundedIntersection } + + + +QPointF p1 () const +QPointF p2 () const +qreal x1 () const +qreal x2 () const +qreal y1 () const +qreal y2 () const +qreal angle () const +qreal angleTo ( const QLineF & line ) const +qreal dx () const +qreal dy () const +IntersectType intersect ( const QLineF & line, QPointF * intersectionPoint ) const +bool isNull () const +qreal length () const +QLineF normalVector () const +QPointF pointAt ( qreal t ) const +void setP1 ( const QPointF & p1 ) +void setP2 ( const QPointF & p2 ) +void setAngle ( qreal angle ) +void setLength ( qreal length ) +void setLine ( qreal x1, qreal y1, qreal x2, qreal y2 ) +void setPoints ( const QPointF & p1, const QPointF & p2 ) +QLine toLine () const +void translate ( const QPointF & offset ) +void translate ( qreal dx, qreal dy ) +QLineF translated ( const QPointF & offset ) const +QLineF translated ( qreal dx, qreal dy ) const +QLineF unitVector () const + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QLocale.qth b/harbour/contrib/hbqt/qth/QLocale.qth new file mode 100644 index 0000000000..1c5f8db436 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QLocale.qth @@ -0,0 +1,157 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = +Type = Core +New = +Destructor = + + + +#include +#include + +/* QLocale () + * QLocale ( const QString & name ) + * QLocale ( Language language, Country country = AnyCountry ) + * QLocale ( const QLocale & other ) + */ +HB_FUNC( QT_QLOCALE ) +{ + hb_retptr( new QLocale() ); +} + + + +enum Country { AnyCountry, Afghanistan, Albania, Algeria, ..., Zimbabwe } +enum FormatType { LongFormat, ShortFormat, NarrowFormat } +enum Language { C, Abkhazian, Afan, Afar, ..., Chewa } +enum MeasurementSystem { MetricSystem, ImperialSystem } +enum NumberOption { OmitGroupSeparator, RejectGroupSeparator } +flags NumberOptions + + + +QString amText () const +Country country () const +QString dateFormat ( FormatType format = LongFormat ) const +QString dateTimeFormat ( FormatType format = LongFormat ) const +QString dayName ( int day, FormatType type = LongFormat ) const +// QChar decimalPoint () const +// QChar exponential () const +// QChar groupSeparator () const +Language language () const +MeasurementSystem measurementSystem () const +QString monthName ( int month, FormatType type = LongFormat ) const +QString name () const +// QChar negativeSign () const +NumberOptions numberOptions () const +// QChar percent () const +QString pmText () const +// QChar positiveSign () const +void setNumberOptions ( NumberOptions options ) +QString standaloneDayName ( int day, FormatType type = LongFormat ) const +QString standaloneMonthName ( int month, FormatType type = LongFormat ) const +QString timeFormat ( FormatType format = LongFormat ) const +QDate toDate ( const QString & string, FormatType format = LongFormat ) const +QDate toDate ( const QString & string, const QString & format ) const +QDateTime toDateTime ( const QString & string, FormatType format = LongFormat ) const +QDateTime toDateTime ( const QString & string, const QString & format ) const +double toDouble ( const QString & s, bool * ok = 0 ) const +float toFloat ( const QString & s, bool * ok = 0 ) const +int toInt ( const QString & s, bool * ok = 0, int base = 0 ) const +qlonglong toLongLong ( const QString & s, bool * ok = 0, int base = 0 ) const +short toShort ( const QString & s, bool * ok = 0, int base = 0 ) const +QString toString ( qlonglong i ) const +QString toString ( const QDate & date, const QString & format ) const +QString toString ( const QDate & date, FormatType format = LongFormat ) const +QString toString ( const QTime & time, const QString & format ) const +QString toString ( const QTime & time, FormatType format = LongFormat ) const +QString toString ( const QDateTime & dateTime, FormatType format = LongFormat ) const +QString toString ( const QDateTime & dateTime, const QString & format ) const +QString toString ( qulonglong i ) const +QString toString ( double i, char f = 'g', int prec = 6 ) const +QString toString ( short i ) const +QString toString ( ushort i ) const +QString toString ( int i ) const +QString toString ( uint i ) const +QString toString ( float i, char f = 'g', int prec = 6 ) const +QTime toTime ( const QString & string, FormatType format = LongFormat ) const +QTime toTime ( const QString & string, const QString & format ) const +uint toUInt ( const QString & s, bool * ok = 0, int base = 0 ) const +qlonglong toULongLong ( const QString & s, bool * ok = 0, int base = 0 ) const +ushort toUShort ( const QString & s, bool * ok = 0, int base = 0 ) const +// QChar zeroDigit () const + +QLocale c () +QList countriesForLanguage ( Language language ) +QString countryToString ( Country country ) +QString languageToString ( Language language ) +void setDefault ( const QLocale & locale ) +QLocale system () + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QMatrix.qth b/harbour/contrib/hbqt/qth/QMatrix.qth new file mode 100644 index 0000000000..78ae525b0c --- /dev/null +++ b/harbour/contrib/hbqt/qth/QMatrix.qth @@ -0,0 +1,123 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = +Type = Core +New = +Destructor = + + + +#include +#include + + +/* QMatrix () + * QMatrix ( qreal m11, qreal m12, qreal m21, qreal m22, qreal dx, qreal dy ) + * QMatrix ( const QMatrix & matrix ) + */ +HB_FUNC( QT_QMATRIX ) +{ + hb_retptr( new QMatrix() ); +} + + + + + + +qreal m11 () const +qreal m12 () const +qreal m21 () const +qreal m22 () const +qreal det () const +qreal dx () const +qreal dy () const +QMatrix inverted ( bool * invertible = 0 ) const +bool isIdentity () const +bool isInvertible () const +void map ( qreal x, qreal y, qreal * tx, qreal * ty ) const +void map ( int x, int y, int * tx, int * ty ) const +QPointF map ( const QPointF & point ) const +QPoint map ( const QPoint & point ) const +QLineF map ( const QLineF & line ) const +QLine map ( const QLine & line ) const +QPolygonF map ( const QPolygonF & polygon ) const +QPolygon map ( const QPolygon & polygon ) const +QRegion map ( const QRegion & region ) const +QPainterPath map ( const QPainterPath & path ) const +QRectF mapRect ( const QRectF & rectangle ) const +QRect mapRect ( const QRect & rectangle ) const +QPolygon mapToPolygon ( const QRect & rectangle ) const +void reset () +QMatrix & rotate ( qreal degrees ) +QMatrix & scale ( qreal sx, qreal sy ) +void setMatrix ( qreal m11, qreal m12, qreal m21, qreal m22, qreal dx, qreal dy ) +QMatrix & shear ( qreal sh, qreal sv ) +QMatrix & translate ( qreal dx, qreal dy ) + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QMimeData.qth b/harbour/contrib/hbqt/qth/QMimeData.qth new file mode 100644 index 0000000000..fa47bb8504 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QMimeData.qth @@ -0,0 +1,114 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = +Inherits = QObject +Type = Core +New = +Destructor = + + + +#include +#include + + +/* QMimeData () + * ~QMimeData () + */ +HB_FUNC( QT_QMIMEDATA ) +{ + hb_retptr( new QMimeData() ); +} + + + + + + +void clear () +QVariant colorData () const +QByteArray data ( const QString & mimeType ) const +virtual QStringList formats () const +bool hasColor () const +virtual bool hasFormat ( const QString & mimeType ) const +bool hasHtml () const +bool hasImage () const +bool hasText () const +bool hasUrls () const +QString html () const +QVariant imageData () const +void removeFormat ( const QString & mimeType ) +void setColorData ( const QVariant & color ) +void setData ( const QString & mimeType, const QByteArray & data ) +void setHtml ( const QString & html ) +void setImageData ( const QVariant & image ) +void setText ( const QString & text ) +void setUrls ( const QList & urls ) +QString text () const +QList urls () const + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QMovie.qth b/harbour/contrib/hbqt/qth/QMovie.qth new file mode 100644 index 0000000000..8fad5601b4 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QMovie.qth @@ -0,0 +1,133 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = +Inherits = QObject +Type = Core +New = +Destructor = + + + +#include +#include +#include + + +/* QMovie ( QObject * parent = 0 ) + * QMovie ( QIODevice * device, const QByteArray & format = QByteArray(), QObject * parent = 0 ) + * QMovie ( const QString & fileName, const QByteArray & format = QByteArray(), QObject * parent = 0 ) + * ~QMovie () + */ +HB_FUNC( QT_QMOVIE ) +{ + hb_retptr( new QMovie() ); +} + + + +enum CacheMode { CacheNone, CacheAll } +enum MovieState { NotRunning, Paused, Running } + + + +QColor backgroundColor () const +CacheMode cacheMode () const +int currentFrameNumber () const +QImage currentImage () const +QPixmap currentPixmap () const +QIODevice * device () const +QString fileName () const +QByteArray format () const +int frameCount () const +QRect frameRect () const +bool isValid () const +bool jumpToFrame ( int frameNumber ) +int loopCount () const +int nextFrameDelay () const +QSize scaledSize () +void setBackgroundColor ( const QColor & color ) +void setCacheMode ( CacheMode mode ) +void setDevice ( QIODevice * device ) +void setFileName ( const QString & fileName ) +void setFormat ( const QByteArray & format ) +void setScaledSize ( const QSize & size ) +int speed () const +MovieState state () const + + + +bool jumpToNextFrame () +void setPaused ( bool paused ) +void setSpeed ( int percentSpeed ) +void start () +void stop () + + + +void error ( QImageReader::ImageReaderError error ) +void finished () +void frameChanged ( int frameNumber ) +void resized ( const QSize & size ) +void started () +void stateChanged ( QMovie::MovieState state ) +void updated ( const QRect & rect ) + + + + + diff --git a/harbour/contrib/hbqt/qth/QNetworkRequest.qth b/harbour/contrib/hbqt/qth/QNetworkRequest.qth new file mode 100644 index 0000000000..8a90cf7a3f --- /dev/null +++ b/harbour/contrib/hbqt/qth/QNetworkRequest.qth @@ -0,0 +1,108 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = +Type = Core +New = +Destructor = + + + +#include + + +/* QNetworkRequest ( const QUrl & url = QUrl() ) + * QNetworkRequest ( const QNetworkRequest & other ) + * ~QNetworkRequest () + */ +HB_FUNC( QT_QNETWORKREQUEST ) +{ + hb_retptr( new QNetworkRequest() ); +} + + + +enum Attribute { HttpStatusCodeAttribute, HttpReasonPhraseAttribute, RedirectionTargetAttribute, ConnectionEncryptedAttribute, ..., UserMax } +enum CacheLoadControl { AlwaysNetwork, PreferNetwork, PreferCache, AlwaysCache } +enum KnownHeaders { ContentTypeHeader, ContentLengthHeader, LocationHeader, LastModifiedHeader, CookieHeader, SetCookieHeader } + + + +QVariant attribute ( Attribute code, const QVariant & defaultValue = QVariant() ) const +bool hasRawHeader ( const QByteArray & headerName ) const +QVariant header ( KnownHeaders header ) const +QByteArray rawHeader ( const QByteArray & headerName ) const +QList rawHeaderList () const +void setAttribute ( Attribute code, const QVariant & value ) +void setHeader ( KnownHeaders header, const QVariant & value ) +void setRawHeader ( const QByteArray & headerName, const QByteArray & headerValue ) +// void setSslConfiguration ( const QSslConfiguration & config ) +void setUrl ( const QUrl & url ) +// QSslConfiguration sslConfiguration () const +QUrl url () const + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QObject.qth b/harbour/contrib/hbqt/qth/QObject.qth index 9edff8a6a9..478c4322e2 100644 --- a/harbour/contrib/hbqt/qth/QObject.qth +++ b/harbour/contrib/hbqt/qth/QObject.qth @@ -76,7 +76,7 @@ HB_FUNC( QT_QOBJECT ) bool blockSignals ( bool block ) -const QObjectList & children () const +// const QObjectList & children () const bool connect ( const QObject * sender, const char * signal, const char * method, Qt::ConnectionType type = Qt::AutoConnection ) const bool disconnect ( const char * signal = 0, const QObject * receiver = 0, const char * method = 0 ) bool disconnect ( const QObject * receiver, const char * method = 0 ) diff --git a/harbour/contrib/hbqt/qth/QPainterPath.qth b/harbour/contrib/hbqt/qth/QPainterPath.qth new file mode 100644 index 0000000000..8f97b2b3cd --- /dev/null +++ b/harbour/contrib/hbqt/qth/QPainterPath.qth @@ -0,0 +1,151 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = +Type = Core +New = +Destructor = + + + +#include + + +/* QPainterPath () + * QPainterPath ( const QPointF & startPoint ) + * QPainterPath ( const QPainterPath & path ) + * ~QPainterPath () + */ +HB_FUNC( QT_QPAINTERPATH ) +{ + hb_retptr( new QPainterPath() ); +} + + + +enum ElementType { MoveToElement, LineToElement, CurveToElement, CurveToDataElement } + + + +void addEllipse ( const QRectF & boundingRectangle ) +void addEllipse ( qreal x, qreal y, qreal width, qreal height ) +void addEllipse ( const QPointF & center, qreal rx, qreal ry ) +void addPath ( const QPainterPath & path ) +void addPolygon ( const QPolygonF & polygon ) +void addRect ( const QRectF & rectangle ) +void addRect ( qreal x, qreal y, qreal width, qreal height ) +void addRegion ( const QRegion & region ) +void addRoundedRect ( const QRectF & rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode = Qt::AbsoluteSize ) +void addRoundedRect ( qreal x, qreal y, qreal w, qreal h, qreal xRadius, qreal yRadius, Qt::SizeMode mode = Qt::AbsoluteSize ) +void addText ( const QPointF & point, const QFont & font, const QString & text ) +void addText ( qreal x, qreal y, const QFont & font, const QString & text ) +qreal angleAtPercent ( qreal t ) const +void arcMoveTo ( const QRectF & rectangle, qreal angle ) +void arcMoveTo ( qreal x, qreal y, qreal width, qreal height, qreal angle ) +void arcTo ( const QRectF & rectangle, qreal startAngle, qreal sweepLength ) +void arcTo ( qreal x, qreal y, qreal width, qreal height, qreal startAngle, qreal sweepLength ) +QRectF boundingRect () const +void closeSubpath () +void connectPath ( const QPainterPath & path ) +bool contains ( const QPointF & point ) const +bool contains ( const QRectF & rectangle ) const +bool contains ( const QPainterPath & p ) const +QRectF controlPointRect () const +void cubicTo ( const QPointF & c1, const QPointF & c2, const QPointF & endPoint ) +void cubicTo ( qreal c1X, qreal c1Y, qreal c2X, qreal c2Y, qreal endPointX, qreal endPointY ) +QPointF currentPosition () const +// const QPainterPath::Element & elementAt ( int index ) const +int elementCount () const +Qt::FillRule fillRule () const +QPainterPath intersected ( const QPainterPath & p ) const +bool intersects ( const QRectF & rectangle ) const +bool intersects ( const QPainterPath & p ) const +bool isEmpty () const +qreal length () const +void lineTo ( const QPointF & endPoint ) +void lineTo ( qreal x, qreal y ) +void moveTo ( const QPointF & point ) +void moveTo ( qreal x, qreal y ) +qreal percentAtLength ( qreal len ) const +QPointF pointAtPercent ( qreal t ) const +void quadTo ( const QPointF & c, const QPointF & endPoint ) +void quadTo ( qreal cx, qreal cy, qreal endPointX, qreal endPointY ) +void setElementPositionAt ( int index, qreal x, qreal y ) +void setFillRule ( Qt::FillRule fillRule ) +QPainterPath simplified () const +qreal slopeAtPercent ( qreal t ) const +QPainterPath subtracted ( const QPainterPath & p ) const +QPolygonF toFillPolygon ( const QTransform & matrix ) const +QPolygonF toFillPolygon ( const QMatrix & matrix = QMatrix() ) const +QList toFillPolygons ( const QTransform & matrix ) const +QList toFillPolygons ( const QMatrix & matrix = QMatrix() ) const +QPainterPath toReversed () const +QList toSubpathPolygons ( const QTransform & matrix ) const +QList toSubpathPolygons ( const QMatrix & matrix = QMatrix() ) const +QPainterPath united ( const QPainterPath & p ) const + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QPolygon.qth b/harbour/contrib/hbqt/qth/QPolygon.qth new file mode 100644 index 0000000000..d5d0e9a235 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QPolygon.qth @@ -0,0 +1,111 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = +Type = Core +New = +Destructor = + + + +#include + + +/* QPolygon () + * QPolygon ( int size ) + * QPolygon ( const QPolygon & polygon ) + * QPolygon ( const QVector & points ) + * QPolygon ( const QRect & rectangle, bool closed = false ) + * ~QPolygon () + */ +HB_FUNC( QT_QPOLYGON ) +{ + hb_retptr( new QPolygon() ); +} + + + + + + +QRect boundingRect () const +bool containsPoint ( const QPoint & point, Qt::FillRule fillRule ) const +QPolygon intersected ( const QPolygon & r ) const +void point ( int index, int * x, int * y ) const +QPoint point ( int index ) const +// void putPoints ( int index, int nPoints, int firstx, int firsty, ... ) +void putPoints ( int index, int nPoints, const QPolygon & fromPolygon, int fromIndex = 0 ) +void setPoint ( int index, int x, int y ) +void setPoint ( int index, const QPoint & point ) +void setPoints ( int nPoints, const int * points ) +// void setPoints ( int nPoints, int firstx, int firsty, ... ) +QPolygon subtracted ( const QPolygon & r ) const +void translate ( int dx, int dy ) +void translate ( const QPoint & offset ) +QPolygon united ( const QPolygon & r ) const + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QPolygonF.qth b/harbour/contrib/hbqt/qth/QPolygonF.qth new file mode 100644 index 0000000000..95936ff933 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QPolygonF.qth @@ -0,0 +1,106 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = +Type = Core +New = +Destructor = + + + +#include + + +/* QPolygonF () + * QPolygonF ( int size ) + * QPolygonF ( const QPolygonF & polygon ) + * QPolygonF ( const QVector & points ) + * QPolygonF ( const QRectF & rectangle ) + * QPolygonF ( const QPolygon & polygon ) + * ~QPolygonF () + */ +HB_FUNC( QT_QPOLYGONF ) +{ + hb_retptr( new QPolygonF() ); +} + + + + + + +QRectF boundingRect () const +bool containsPoint ( const QPointF & point, Qt::FillRule fillRule ) const +QPolygonF intersected ( const QPolygonF & r ) const +bool isClosed () const +QPolygonF subtracted ( const QPolygonF & r ) const +QPolygon toPolygon () const +void translate ( const QPointF & offset ) +void translate ( qreal dx, qreal dy ) +QPolygonF united ( const QPolygonF & r ) const + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QProcess.qth b/harbour/contrib/hbqt/qth/QProcess.qth index 5a073b7674..915f7b7648 100644 --- a/harbour/contrib/hbqt/qth/QProcess.qth +++ b/harbour/contrib/hbqt/qth/QProcess.qth @@ -101,7 +101,7 @@ QStringList environment () const QProcess::ProcessError error () const int exitCode () const QProcess::ExitStatus exitStatus () const -Q_PID pid () const +// Q_PID pid () const ProcessChannelMode processChannelMode () const QByteArray readAllStandardError () QByteArray readAllStandardOutput () diff --git a/harbour/contrib/hbqt/qth/QRegExp.qth b/harbour/contrib/hbqt/qth/QRegExp.qth new file mode 100644 index 0000000000..729a1ff7ba --- /dev/null +++ b/harbour/contrib/hbqt/qth/QRegExp.qth @@ -0,0 +1,115 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = +Type = Core +New = +Destructor = + + + +#include +#include + +/* QRegExp () + * QRegExp ( const QString & pattern, Qt::CaseSensitivity cs = Qt::CaseSensitive, PatternSyntax syntax = RegExp ) + * QRegExp ( const QRegExp & rx ) + * ~QRegExp () + */ +HB_FUNC( QT_QREGEXP ) +{ + hb_retptr( new QRegExp() ); +} + + + +enum CaretMode { CaretAtZero, CaretAtOffset, CaretWontMatch } +enum PatternSyntax { RegExp, RegExp2, Wildcard, FixedString } + + + +QString cap ( int nth = 0 ) const +QStringList capturedTexts () const +Qt::CaseSensitivity caseSensitivity () const +QString errorString () const +bool exactMatch ( const QString & str ) const +int indexIn ( const QString & str, int offset = 0, CaretMode caretMode = CaretAtZero ) const +bool isEmpty () const +bool isMinimal () const +bool isValid () const +int lastIndexIn ( const QString & str, int offset = -1, CaretMode caretMode = CaretAtZero ) const +int matchedLength () const +int numCaptures () const +QString pattern () const +PatternSyntax patternSyntax () const +int pos ( int nth = 0 ) const +void setCaseSensitivity ( Qt::CaseSensitivity cs ) +void setMinimal ( bool minimal ) +void setPattern ( const QString & pattern ) +void setPatternSyntax ( PatternSyntax syntax ) + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QSessionManager.qth b/harbour/contrib/hbqt/qth/QSessionManager.qth new file mode 100644 index 0000000000..7d6a6e9641 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QSessionManager.qth @@ -0,0 +1,109 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = +Inherits = QObject +Type = Core +New = +Destructor = no + + + +#include + + +/* + * + */ +HB_FUNC( QT_QSESSIONMANAGER ) +{ + // hb_retptr( new () ); +} + + + +enum RestartHint { RestartIfRunning, RestartAnyway, RestartImmediately, RestartNever } + + + +bool allowsErrorInteraction () +bool allowsInteraction () +void cancel () +QStringList discardCommand () const +bool isPhase2 () const +void release () +void requestPhase2 () +QStringList restartCommand () const +RestartHint restartHint () const +QString sessionId () const +QString sessionKey () const +void setDiscardCommand ( const QStringList & list ) +void setManagerProperty ( const QString & name, const QStringList & value ) +void setManagerProperty ( const QString & name, const QString & value ) +void setRestartCommand ( const QStringList & command ) +void setRestartHint ( RestartHint hint ) + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QSpacerItem.qth b/harbour/contrib/hbqt/qth/QSpacerItem.qth new file mode 100644 index 0000000000..777efecbfe --- /dev/null +++ b/harbour/contrib/hbqt/qth/QSpacerItem.qth @@ -0,0 +1,98 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = QLayoutItem +Type = Core +New = +Destructor = + + + +#include + + +/* QSpacerItem ( int w, int h, QSizePolicy::Policy hPolicy = QSizePolicy::Minimum, QSizePolicy::Policy vPolicy = QSizePolicy::Minimum ) + * + */ +HB_FUNC( QT_QSPACERITEM ) +{ + if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) + { + hb_retptr( new QSpacerItem( *hbqt_par_QSpacerItem( 1 ) ) ); + } +} + + + + + + +void changeSize ( int w, int h, QSizePolicy::Policy hPolicy = QSizePolicy::Minimum, QSizePolicy::Policy vPolicy = QSizePolicy::Minimum ) +virtual bool isEmpty () const +virtual QSpacerItem * spacerItem () + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QStyledItemDelegate.qth b/harbour/contrib/hbqt/qth/QStyledItemDelegate.qth index 93c82be51a..46fbf83b82 100644 --- a/harbour/contrib/hbqt/qth/QStyledItemDelegate.qth +++ b/harbour/contrib/hbqt/qth/QStyledItemDelegate.qth @@ -80,10 +80,10 @@ HB_FUNC( QT_QSTYLEDITEMDELEGATE ) virtual QWidget * createEditor ( QWidget * parent, const QStyleOptionViewItem & option, const QModelIndex & index ) const virtual QString displayText ( const QVariant & value, const QLocale & locale ) const -QItemEditorFactory * itemEditorFactory () const +// QItemEditorFactory * itemEditorFactory () const virtual void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const virtual void setEditorData ( QWidget * editor, const QModelIndex & index ) const -void setItemEditorFactory ( QItemEditorFactory * factory ) +// void setItemEditorFactory ( QItemEditorFactory * factory ) virtual void setModelData ( QWidget * editor, QAbstractItemModel * model, const QModelIndex & index ) const virtual QSize sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index ) const virtual void updateEditorGeometry ( QWidget * editor, const QStyleOptionViewItem & option, const QModelIndex & index ) const diff --git a/harbour/contrib/hbqt/qth/QTableView.qth b/harbour/contrib/hbqt/qth/QTableView.qth index 750b6c2162..c0d7949790 100644 --- a/harbour/contrib/hbqt/qth/QTableView.qth +++ b/harbour/contrib/hbqt/qth/QTableView.qth @@ -71,7 +71,7 @@ CREATE CLASS HBTableView INHERIT QTableView #include -#include "hbqt_slots.h" +#include "../hbqt_slots.h" /* * QTableView ( QWidget * parent = 0 ) diff --git a/harbour/contrib/hbqt/qth/QTableWidgetSelectionRange.qth b/harbour/contrib/hbqt/qth/QTableWidgetSelectionRange.qth new file mode 100644 index 0000000000..848bb1c0fd --- /dev/null +++ b/harbour/contrib/hbqt/qth/QTableWidgetSelectionRange.qth @@ -0,0 +1,100 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = +Type = Core +New = +Destructor = + + + +#include + + +/* QTableWidgetSelectionRange () + * QTableWidgetSelectionRange ( int top, int left, int bottom, int right ) + * QTableWidgetSelectionRange ( const QTableWidgetSelectionRange & other ) + * ~QTableWidgetSelectionRange () + */ +HB_FUNC( QT_QTABLEWIDGETSELECTIONRANGE ) +{ + hb_retptr( new QTableWidgetSelectionRange() ); +} + + + + + + +int bottomRow () const +int columnCount () const +int leftColumn () const +int rightColumn () const +int rowCount () const +int topRow () const + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QTextBlock.qth b/harbour/contrib/hbqt/qth/QTextBlock.qth index ea4dc91e8a..fed4e0b1bc 100644 --- a/harbour/contrib/hbqt/qth/QTextBlock.qth +++ b/harbour/contrib/hbqt/qth/QTextBlock.qth @@ -107,12 +107,12 @@ QTextBlock previous () const int revision () const void setLineCount ( int count ) void setRevision ( int rev ) -void setUserData ( QTextBlockUserData * data ) +// void setUserData ( QTextBlockUserData * data ) void setUserState ( int state ) void setVisible ( bool visible ) QString text () const QTextList * textList () const -QTextBlockUserData * userData () const +// QTextBlockUserData * userData () const int userState () const diff --git a/harbour/contrib/hbqt/qth/QTextFormat.qth b/harbour/contrib/hbqt/qth/QTextFormat.qth index f8e591fd00..8ab5d2fba4 100644 --- a/harbour/contrib/hbqt/qth/QTextFormat.qth +++ b/harbour/contrib/hbqt/qth/QTextFormat.qth @@ -128,7 +128,7 @@ QTextCharFormat toCharFormat () const QTextFrameFormat toFrameFormat () const QTextImageFormat toImageFormat () const QTextListFormat toListFormat () const -QTextTableCellFormat toTableCellFormat () const +// QTextTableCellFormat toTableCellFormat () const QTextTableFormat toTableFormat () const int type () const diff --git a/harbour/contrib/hbqt/qth/QTextInlineObject.qth b/harbour/contrib/hbqt/qth/QTextInlineObject.qth index 60a0eb48ff..55aa365d33 100644 --- a/harbour/contrib/hbqt/qth/QTextInlineObject.qth +++ b/harbour/contrib/hbqt/qth/QTextInlineObject.qth @@ -71,7 +71,7 @@ New = iInt, pEngine */ HB_FUNC( QT_QTEXTINLINEOBJECT ) { - hb_retptr( ( QTextInlineObject* ) new QTextInlineObject( hb_parni( 1 ), hbqt_par_QTextEngine( 2 ) ) ); + // hb_retptr( new QTextInlineObject( hb_parni( 1 ), hbqt_par_QTextEngine( 2 ) ) ); } diff --git a/harbour/contrib/hbqt/qth/QTextListFormat.qth b/harbour/contrib/hbqt/qth/QTextListFormat.qth new file mode 100644 index 0000000000..3d4e8be7a8 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QTextListFormat.qth @@ -0,0 +1,98 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = QTextFormat +Type = Core +New = +Destructor = + + + +#include + + +/* QTextListFormat () + * + */ +HB_FUNC( QT_QTEXTLISTFORMAT ) +{ + hb_retptr( new QTextListFormat() ); +} + + + +enum Style { ListDisc, ListCircle, ListSquare, ListDecimal, ListLowerAlpha, ListUpperAlpha } + + + +int indent () const +bool isValid () const +void setIndent ( int indentation ) +void setStyle ( Style style ) +Style style () const + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QTextOption.qth b/harbour/contrib/hbqt/qth/QTextOption.qth new file mode 100644 index 0000000000..4a28714309 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QTextOption.qth @@ -0,0 +1,115 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = +Type = Core +New = +Destructor = + + + +#include + + +/* QTextOption () + * QTextOption ( Qt::Alignment alignment ) + * QTextOption ( const QTextOption & other ) + * ~QTextOption () + */ +HB_FUNC( QT_QTEXTOPTION ) +{ + hb_retptr( new QTextOption() ); +} + + + +class Tab +enum Flag { IncludeTrailingSpaces, ShowTabsAndSpaces, ShowLineAndParagraphSeparators, AddSpaceForLineAndParagraphSeparators, SuppressColors } +flags Flags +enum TabType { LeftTab, RightTab, CenterTab, DelimiterTab } +enum WrapMode { NoWrap, WordWrap, ManualWrap, WrapAnywhere, WrapAtWordBoundaryOrAnywhere } + + + +Qt::Alignment alignment () const +Flags flags () const +void setAlignment ( Qt::Alignment alignment ) +void setFlags ( Flags flags ) +void setTabArray ( QList tabStops ) +void setTabStop ( qreal tabStop ) +void setTabs ( QList tabStops ) +void setTextDirection ( Qt::LayoutDirection direction ) +void setUseDesignMetrics ( bool enable ) +void setWrapMode ( WrapMode mode ) +QList tabArray () const +qreal tabStop () const +QList tabs () const +Qt::LayoutDirection textDirection () const +bool useDesignMetrics () const +WrapMode wrapMode () const + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QTextTableFormat.qth b/harbour/contrib/hbqt/qth/QTextTableFormat.qth new file mode 100644 index 0000000000..d36d399164 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QTextTableFormat.qth @@ -0,0 +1,104 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = QTextFrameFormat +Type = Core +New = +Destructor = + + + +#include + + +/* QTextTableFormat () + */ +HB_FUNC( QT_QTEXTTABLEFORMAT ) +{ + hb_retptr( new QTextTableFormat() ); +} + + + + + + +Qt::Alignment alignment () const +qreal cellPadding () const +qreal cellSpacing () const +void clearColumnWidthConstraints () +QVector columnWidthConstraints () const +int columns () const +int headerRowCount () const +bool isValid () const +void setAlignment ( Qt::Alignment alignment ) +void setCellPadding ( qreal padding ) +void setCellSpacing ( qreal spacing ) +void setColumnWidthConstraints ( const QVector & constraints ) +void setHeaderRowCount ( int count ) + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QThread.qth b/harbour/contrib/hbqt/qth/QThread.qth new file mode 100644 index 0000000000..f589a2ccdf --- /dev/null +++ b/harbour/contrib/hbqt/qth/QThread.qth @@ -0,0 +1,112 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = +Inherits = QObject +Type = Core +New = +Destructor = + + + +#include + + +/* QThread ( QObject * parent = 0 ) + * ~QThread () + */ +HB_FUNC( QT_QTHREAD ) +{ + hb_retptr( new QThread() ); +} + + + +enum Priority { IdlePriority, LowestPriority, LowPriority, NormalPriority, ..., InheritPriority } + + + +void exit ( int returnCode = 0 ) +bool isFinished () const +bool isRunning () const +Priority priority () const +void setPriority ( Priority priority ) +void setStackSize ( uint stackSize ) +uint stackSize () const +bool wait ( unsigned long time = ULONG_MAX ) + +QThread * currentThread () +// Qt::HANDLE currentThreadId () +int idealThreadCount () +void yieldCurrentThread () + + + +void quit () +void start ( Priority priority = InheritPriority ) +void terminate () + + + +void finished () +void started () +void terminated () + + + + + diff --git a/harbour/contrib/hbqt/qth/QTime.qth b/harbour/contrib/hbqt/qth/QTime.qth new file mode 100644 index 0000000000..8651f0422a --- /dev/null +++ b/harbour/contrib/hbqt/qth/QTime.qth @@ -0,0 +1,113 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = +Type = Core +New = +Destructor = + + + +#include + + +/* QTime () + * QTime ( int h, int m, int s = 0, int ms = 0 ) + */ +HB_FUNC( QT_QTIME ) +{ + hb_retptr( new QTime() ); +} + + + + + + +QTime addMSecs ( int ms ) const +QTime addSecs ( int s ) const +int elapsed () const +int hour () const +bool isNull () const +bool isValid () const +int minute () const +int msec () const +int msecsTo ( const QTime & t ) const +int restart () +int second () const +int secsTo ( const QTime & t ) const +bool setHMS ( int h, int m, int s, int ms = 0 ) +void start () +QString toString ( const QString & format ) const +QString toString ( Qt::DateFormat format = Qt::TextDate ) const + +QTime currentTime () +QTime fromString ( const QString & string, Qt::DateFormat format = Qt::TextDate ) +QTime fromString ( const QString & string, const QString & format ) +bool isValid ( int h, int m, int s, int ms = 0 ) + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QTransform.qth b/harbour/contrib/hbqt/qth/QTransform.qth new file mode 100644 index 0000000000..3adeb482e3 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QTransform.qth @@ -0,0 +1,145 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = +Type = Core +New = +Destructor = + + + +#include + + +/* QTransform () + * QTransform ( qreal m11, qreal m12, qreal m13, qreal m21, qreal m22, qreal m23, qreal m31, qreal m32, qreal m33 = 1.0 ) + * QTransform ( qreal m11, qreal m12, qreal m21, qreal m22, qreal dx, qreal dy ) + * QTransform ( const QMatrix & matrix ) + */ +HB_FUNC( QT_QTRANSFORM ) +{ + hb_retptr( new QTransform() ); +} + + + +enum TransformationType { TxNone, TxTranslate, TxScale, TxRotate, TxShear, TxProject } + + + +qreal m11 () const +qreal m12 () const +qreal m13 () const +qreal m21 () const +qreal m22 () const +qreal m23 () const +qreal m31 () const +qreal m32 () const +qreal m33 () const +QTransform adjoint () const +qreal det () const +qreal determinant () const +qreal dx () const +qreal dy () const +QTransform inverted ( bool * invertible = 0 ) const +bool isAffine () const +bool isIdentity () const +bool isInvertible () const +bool isRotating () const +bool isScaling () const +bool isTranslating () const +void map ( qreal x, qreal y, qreal * tx, qreal * ty ) const +QPointF map ( const QPointF & p ) const +QPoint map ( const QPoint & point ) const +QLine map ( const QLine & l ) const +QLineF map ( const QLineF & line ) const +QPolygonF map ( const QPolygonF & polygon ) const +QPolygon map ( const QPolygon & polygon ) const +QRegion map ( const QRegion & region ) const +QPainterPath map ( const QPainterPath & path ) const +void map ( int x, int y, int * tx, int * ty ) const +QRectF mapRect ( const QRectF & rectangle ) const +QRect mapRect ( const QRect & rectangle ) const +QPolygon mapToPolygon ( const QRect & rectangle ) const +void reset () +QTransform & rotate ( qreal angle, Qt::Axis axis = Qt::ZAxis ) +QTransform & rotateRadians ( qreal angle, Qt::Axis axis = Qt::ZAxis ) +QTransform & scale ( qreal sx, qreal sy ) +void setMatrix ( qreal m11, qreal m12, qreal m13, qreal m21, qreal m22, qreal m23, qreal m31, qreal m32, qreal m33 ) +QTransform & shear ( qreal sh, qreal sv ) +const QMatrix & toAffine () const +QTransform & translate ( qreal dx, qreal dy ) +QTransform transposed () const +TransformationType type () const + +QTransform fromScale ( qreal sx, qreal sy ) +QTransform fromTranslate ( qreal dx, qreal dy ) +bool quadToQuad ( const QPolygonF & one, const QPolygonF & two, QTransform & trans ) +bool quadToSquare ( const QPolygonF & quad, QTransform & trans ) +bool squareToQuad ( const QPolygonF & quad, QTransform & trans ) + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QTranslator.qth b/harbour/contrib/hbqt/qth/QTranslator.qth new file mode 100644 index 0000000000..31069b853b --- /dev/null +++ b/harbour/contrib/hbqt/qth/QTranslator.qth @@ -0,0 +1,97 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = +Inherits = QObject +Type = Core +New = +Destructor = + + + +#include + + +/* QTranslator ( QObject * parent = 0 ) + * ~QTranslator () + */ +HB_FUNC( QT_QTRANSLATOR ) +{ + hb_retptr( new QTranslator() ); +} + + + + + + +virtual bool isEmpty () const +bool load ( const QString & filename, const QString & directory = QString(), const QString & search_delimiters = QString(), const QString & suffix = QString() ) +// bool load ( const uchar * data, int len ) +virtual QString translate ( const char * context, const char * sourceText, const char * disambiguation = 0 ) const +QString translate ( const char * context, const char * sourceText, const char * disambiguation, int n ) const + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QValidator.qth b/harbour/contrib/hbqt/qth/QValidator.qth new file mode 100644 index 0000000000..891c47a18b --- /dev/null +++ b/harbour/contrib/hbqt/qth/QValidator.qth @@ -0,0 +1,97 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = +Inherits = QObject +Type = Core +New = +Destructor = + + + +#include + + +/* QValidator ( QObject * parent ) + * ~QValidator () + */ +HB_FUNC( QT_QVALIDATOR ) +{ + // hb_retptr( new QValidator() ); +} + + + +enum State { Invalid, Intermediate, Acceptable } + + + +// virtual void fixup ( QString & input ) const +QLocale locale () const +void setLocale ( const QLocale & locale ) +// virtual State validate ( QString & input, int & pos ) const = 0 + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QWebPage.qth b/harbour/contrib/hbqt/qth/QWebPage.qth index 2543c5f4a7..eb02c9ec15 100644 --- a/harbour/contrib/hbqt/qth/QWebPage.qth +++ b/harbour/contrib/hbqt/qth/QWebPage.qth @@ -99,14 +99,14 @@ bool isContentEditable () const bool isModified () const LinkDelegationPolicy linkDelegationPolicy () const QWebFrame * mainFrame () const -QNetworkAccessManager * networkAccessManager () const +// QNetworkAccessManager * networkAccessManager () const QPalette palette () const QWebPluginFactory * pluginFactory () const QString selectedText () const void setContentEditable ( bool editable ) void setForwardUnsupportedContent ( bool forward ) void setLinkDelegationPolicy ( LinkDelegationPolicy policy ) -void setNetworkAccessManager ( QNetworkAccessManager * manager ) +// void setNetworkAccessManager ( QNetworkAccessManager * manager ) void setPalette ( const QPalette & palette ) void setPluginFactory ( QWebPluginFactory * factory ) void setView ( QWidget * view ) diff --git a/harbour/contrib/hbqt/qth/QWidget.qth b/harbour/contrib/hbqt/qth/QWidget.qth index b13e458f5d..18fa2a3b81 100644 --- a/harbour/contrib/hbqt/qth/QWidget.qth +++ b/harbour/contrib/hbqt/qth/QWidget.qth @@ -274,7 +274,7 @@ void setWindowModality ( Qt::WindowModality windowModality ) void setWindowOpacity ( qreal level ) void setWindowRole ( const QString & role ) void setWindowState ( Qt::WindowStates windowState ) -void setWindowSurface ( QWindowSurface * surface ) +// void setWindowSurface ( QWindowSurface * surface ) QSize size () const virtual QSize sizeHint () const QSize sizeIncrement () const @@ -307,7 +307,7 @@ Qt::WindowModality windowModality () const qreal windowOpacity () const QString windowRole () const Qt::WindowStates windowState () const -QWindowSurface * windowSurface () const (preliminary) +// QWindowSurface * windowSurface () const (preliminary) QString windowTitle () const Qt::WindowType windowType () const int x () const diff --git a/harbour/contrib/hbqt/qth/QWizardPage.qth b/harbour/contrib/hbqt/qth/QWizardPage.qth new file mode 100644 index 0000000000..cad7412310 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QWizardPage.qth @@ -0,0 +1,109 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = +Inherits = QWidget +Type = Core +New = +Destructor = + + + +#include + + +/* QWizardPage ( QWidget * parent = 0 ) + */ +HB_FUNC( QT_QWIZARDPAGE ) +{ + hb_retptr( new QWizardPage() ); +} + + + + + + +QString buttonText ( QWizard::WizardButton which ) const +virtual void cleanupPage () +virtual void initializePage () +bool isCommitPage () const +virtual bool isComplete () const +bool isFinalPage () const +virtual int nextId () const +QPixmap pixmap ( QWizard::WizardPixmap which ) const +void setButtonText ( QWizard::WizardButton which, const QString & text ) +void setCommitPage ( bool commitPage ) +void setFinalPage ( bool finalPage ) +void setPixmap ( QWizard::WizardPixmap which, const QPixmap & pixmap ) +void setSubTitle ( const QString & subTitle ) +void setTitle ( const QString & title ) +QString subTitle () const +QString title () const +virtual bool validatePage () + + + + + + +void completeChanged () + + + + +