From d3f451e3409b80cd095d384fc23a65068e4a7258 Mon Sep 17 00:00:00 2001 From: Pritpal Bedi Date: Wed, 1 Apr 2009 01:48:31 +0000 Subject: [PATCH] 2009-03-31 18:41 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) + harbour/contrib/hbqt/qth/QAxBase.qth + harbour/contrib/hbqt/qth/QAxBindable.qth + harbour/contrib/hbqt/qth/QAxObject.qth + harbour/contrib/hbqt/qth/QAxWidget.qth + harbour/contrib/hbqt/qth/QDesktopWidget.qth + harbour/contrib/hbqt/qth/QDir.qth + harbour/contrib/hbqt/qth/QDockWidget.qth + harbour/contrib/hbqt/qth/QFontInfo.qth + harbour/contrib/hbqt/qth/QFtp.qth + harbour/contrib/hbqt/qth/QGridLayout.qth + harbour/contrib/hbqt/qth/QHeaderView.qth + harbour/contrib/hbqt/qth/QHttp.qth + harbour/contrib/hbqt/qth/QListWidget.qth + harbour/contrib/hbqt/qth/QListWidgetItem.qth + harbour/contrib/hbqt/qth/QSignalMapper.qth + harbour/contrib/hbqt/qth/QSplashScreen.qth + harbour/contrib/hbqt/qth/QTimer.qth + harbour/contrib/hbqt/qth/QUrl.qth + Added more source headers - RAW - not compiled. --- harbour/ChangeLog | 21 ++++ harbour/contrib/hbqt/qth/QAxBase.qth | 49 +++++++++ harbour/contrib/hbqt/qth/QAxBindable.qth | 34 +++++++ harbour/contrib/hbqt/qth/QAxObject.qth | 34 +++++++ harbour/contrib/hbqt/qth/QAxWidget.qth | 35 +++++++ harbour/contrib/hbqt/qth/QDesktopWidget.qth | 43 ++++++++ harbour/contrib/hbqt/qth/QDir.qth | 73 +++++++++++++ harbour/contrib/hbqt/qth/QDockWidget.qth | 47 +++++++++ harbour/contrib/hbqt/qth/QFontInfo.qth | 43 ++++++++ harbour/contrib/hbqt/qth/QFtp.qth | 62 +++++++++++ harbour/contrib/hbqt/qth/QGridLayout.qth | 60 +++++++++++ harbour/contrib/hbqt/qth/QHeaderView.qth | 90 ++++++++++++++++ harbour/contrib/hbqt/qth/QHttp.qth | 65 ++++++++++++ harbour/contrib/hbqt/qth/QListWidget.qth | 64 ++++++++++++ harbour/contrib/hbqt/qth/QListWidgetItem.qth | 72 +++++++++++++ harbour/contrib/hbqt/qth/QSignalMapper.qth | 43 ++++++++ harbour/contrib/hbqt/qth/QSplashScreen.qth | 38 +++++++ harbour/contrib/hbqt/qth/QTimer.qth | 41 ++++++++ harbour/contrib/hbqt/qth/QUrl.qth | 102 +++++++++++++++++++ 19 files changed, 1016 insertions(+) create mode 100644 harbour/contrib/hbqt/qth/QAxBase.qth create mode 100644 harbour/contrib/hbqt/qth/QAxBindable.qth create mode 100644 harbour/contrib/hbqt/qth/QAxObject.qth create mode 100644 harbour/contrib/hbqt/qth/QAxWidget.qth create mode 100644 harbour/contrib/hbqt/qth/QDesktopWidget.qth create mode 100644 harbour/contrib/hbqt/qth/QDir.qth create mode 100644 harbour/contrib/hbqt/qth/QDockWidget.qth create mode 100644 harbour/contrib/hbqt/qth/QFontInfo.qth create mode 100644 harbour/contrib/hbqt/qth/QFtp.qth create mode 100644 harbour/contrib/hbqt/qth/QGridLayout.qth create mode 100644 harbour/contrib/hbqt/qth/QHeaderView.qth create mode 100644 harbour/contrib/hbqt/qth/QHttp.qth create mode 100644 harbour/contrib/hbqt/qth/QListWidget.qth create mode 100644 harbour/contrib/hbqt/qth/QListWidgetItem.qth create mode 100644 harbour/contrib/hbqt/qth/QSignalMapper.qth create mode 100644 harbour/contrib/hbqt/qth/QSplashScreen.qth create mode 100644 harbour/contrib/hbqt/qth/QTimer.qth create mode 100644 harbour/contrib/hbqt/qth/QUrl.qth diff --git a/harbour/ChangeLog b/harbour/ChangeLog index f11b68b9c9..fa213a582d 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,27 @@ 2009-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org) */ +2009-03-31 18:41 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) + + harbour/contrib/hbqt/qth/QAxBase.qth + + harbour/contrib/hbqt/qth/QAxBindable.qth + + harbour/contrib/hbqt/qth/QAxObject.qth + + harbour/contrib/hbqt/qth/QAxWidget.qth + + harbour/contrib/hbqt/qth/QDesktopWidget.qth + + harbour/contrib/hbqt/qth/QDir.qth + + harbour/contrib/hbqt/qth/QDockWidget.qth + + harbour/contrib/hbqt/qth/QFontInfo.qth + + harbour/contrib/hbqt/qth/QFtp.qth + + harbour/contrib/hbqt/qth/QGridLayout.qth + + harbour/contrib/hbqt/qth/QHeaderView.qth + + harbour/contrib/hbqt/qth/QHttp.qth + + harbour/contrib/hbqt/qth/QListWidget.qth + + harbour/contrib/hbqt/qth/QListWidgetItem.qth + + harbour/contrib/hbqt/qth/QSignalMapper.qth + + harbour/contrib/hbqt/qth/QSplashScreen.qth + + harbour/contrib/hbqt/qth/QTimer.qth + + harbour/contrib/hbqt/qth/QUrl.qth + + Added more source headers - RAW - not compiled. + 2009-03-31 21:36 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * bin/postinst.bat ! Fixed regression causing shared hbrun/hbtest binaries to diff --git a/harbour/contrib/hbqt/qth/QAxBase.qth b/harbour/contrib/hbqt/qth/QAxBase.qth new file mode 100644 index 0000000000..460bb34951 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QAxBase.qth @@ -0,0 +1,49 @@ +; Header File to Generate Sources +; + + +New = pParent + + + +#include + + +/* + * QAxBase ( IUnknown * iface = 0 ) + * virtual ~QAxBase () + */ +HB_FUNC( QT_QAXBASE ) +{ + hb_retptr( new QAxBase( hbqt_par_IUnknown( 1 ) ) ); +} + + + +; ENUMS + + +; PROTOTYPES +QVariant asVariant () const +virtual void clear () +QString control () const +void disableClassInfo () +void disableEventSink () +void disableMetaObject () +QVariant dynamicCall ( const char * function, const QVariant & var1 = QVariant(), const QVariant & var2 = QVariant(), const QVariant & var3 = QVariant(), const QVariant & var4 = QVariant(), const QVariant & var5 = QVariant(), const QVariant & var6 = QVariant(), const QVariant & var7 = QVariant(), const QVariant & var8 = QVariant() ) +QVariant dynamicCall ( const char * function, QList & vars ) +QString generateDocumentation () +bool isNull () const +PropertyBag propertyBag () const +virtual bool propertyWritable ( const char * prop ) const +long queryInterface ( const QUuid & uuid, void ** iface ) const +QAxObject * querySubObject ( const char * name, const QVariant & var1 = QVariant(), const QVariant & var2 = QVariant(), const QVariant & var3 = QVariant(), const QVariant & var4 = QVariant(), const QVariant & var5 = QVariant(), const QVariant & var6 = QVariant(), const QVariant & var7 = QVariant(), const QVariant & var8 = QVariant() ) +QAxObject * querySubObject ( const char * name, QList & vars ) +bool setControl ( const QString & ) +void setPropertyBag ( const PropertyBag & bag ) +virtual void setPropertyWritable ( const char * prop, bool ok ) +QStringList verbs () const + +; SLOTS + + diff --git a/harbour/contrib/hbqt/qth/QAxBindable.qth b/harbour/contrib/hbqt/qth/QAxBindable.qth new file mode 100644 index 0000000000..04ea74b82a --- /dev/null +++ b/harbour/contrib/hbqt/qth/QAxBindable.qth @@ -0,0 +1,34 @@ +; Header File to Generate Sources +; + + +New = pParent + + + +#include + + +/* + * QAxBindable () + * virtual ~QAxBindable () + */ +HB_FUNC( QT_QAXBINDABLE ) +{ + hb_retptr( new QAxBindable() ); +} + + + +; ENUMS + + +; PROTOTYPES +virtual QAxAggregated * createAggregate () +virtual bool readData ( QIODevice * source, const QString & format ) +void reportError ( int code, const QString & src, const QString & desc, const QString & context = QString() ) +virtual bool writeData ( QIODevice * sink ) + +; SLOTS + + diff --git a/harbour/contrib/hbqt/qth/QAxObject.qth b/harbour/contrib/hbqt/qth/QAxObject.qth new file mode 100644 index 0000000000..662d9e54e8 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QAxObject.qth @@ -0,0 +1,34 @@ +; Header File to Generate Sources +; + + +Inherit = QObject, QAxBase +New = pParent + + + +#include + + +/* + * QAxObject ( QObject * parent = 0 ) + * QAxObject ( const QString & c, QObject * parent = 0 ) + * QAxObject ( IUnknown * iface, QObject * parent = 0 ) + * ~QAxObject () + */ +HB_FUNC( QT_QAXOBJECT ) +{ + hb_retptr( new QAxObject( hbqt_par_IUnknown( 1 ) ) ); +} + + + +; ENUMS + + +; PROTOTYPES +bool doVerb ( const QString & verb ) + +; SLOTS + + diff --git a/harbour/contrib/hbqt/qth/QAxWidget.qth b/harbour/contrib/hbqt/qth/QAxWidget.qth new file mode 100644 index 0000000000..cf746f088b --- /dev/null +++ b/harbour/contrib/hbqt/qth/QAxWidget.qth @@ -0,0 +1,35 @@ +; Header File to Generate Sources +; + + +Inherit = QWidget, QAxBase +New = pParent + + + +#include + + +/* + * QAxWidget ( QWidget * parent = 0, Qt::WindowFlags f = 0 ) + * QAxWidget ( const QString & c, QWidget * parent = 0, Qt::WindowFlags f = 0 ) + * QAxWidget ( IUnknown * iface, QWidget * parent = 0, Qt::WindowFlags f = 0 ) + * ~QAxWidget () + */ +HB_FUNC( QT_QAXWIDGET ) +{ + hb_retptr( new QAxWidget( hbqt_par_QWidget( 1 ), hb_parni( 2 ) ) ); +} + + + +; ENUMS + + +; PROTOTYPES +virtual QAxAggregated * createAggregate () +bool doVerb ( const QString & verb ) + +; SLOTS + + diff --git a/harbour/contrib/hbqt/qth/QDesktopWidget.qth b/harbour/contrib/hbqt/qth/QDesktopWidget.qth new file mode 100644 index 0000000000..30653657d7 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QDesktopWidget.qth @@ -0,0 +1,43 @@ +; Header File to Generate Sources +; + + +Inherit = QWidget +New = pParent + + + +#include + + +/* + * QDesktopWidget () + * ~QDesktopWidget () + */ +HB_FUNC( QT_QDESKTOPWIDGET ) +{ + hb_retptr( new QDesktopWidget() ); +} + + + +; ENUMS + + +; PROTOTYPES +const QRect availableGeometry ( int screen = -1 ) const +const QRect availableGeometry ( const QWidget * widget ) const +const QRect availableGeometry ( const QPoint & p ) const +bool isVirtualDesktop () const +int numScreens () const +int primaryScreen () const +QWidget * screen ( int screen = -1 ) +const QRect screenGeometry ( int screen = -1 ) const +const QRect screenGeometry ( const QWidget * widget ) const +const QRect screenGeometry ( const QPoint & p ) const +int screenNumber ( const QWidget * widget = 0 ) const +int screenNumber ( const QPoint & point ) const + +; SLOTS + + diff --git a/harbour/contrib/hbqt/qth/QDir.qth b/harbour/contrib/hbqt/qth/QDir.qth new file mode 100644 index 0000000000..bb1467350f --- /dev/null +++ b/harbour/contrib/hbqt/qth/QDir.qth @@ -0,0 +1,73 @@ +; Header File to Generate Sources +; + + +New = pParent + + + +#include + + +/* + * QDir ( const QDir & dir ) + * QDir ( const QString & path = QString() ) + * QDir ( const QString & path, const QString & nameFilter, SortFlags sort = SortFlags( Name | IgnoreCase ), Filters filters = AllEntries ) + * ~QDir () + */ +HB_FUNC( QT_QDIR ) +{ + hb_retptr( new QDir( hbqt_par_QString( 1 ) ) ); +} + + + +; ENUMS +enum Filter { Dirs, AllDirs, Files, Drives, ..., CaseSensitive } +typedef FilterSpec +flags Filters +enum SortFlag { Name, Time, Size, Type, ..., LocaleAware } +flags SortFlags + + +; PROTOTYPES +QString absoluteFilePath ( const QString & fileName ) const +QString absolutePath () const +QString canonicalPath () const +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 +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 +bool exists () const +QString filePath ( const QString & fileName ) const +Filters filter () const +bool isAbsolute () const +bool isReadable () const +bool isRelative () const +bool isRoot () const +bool makeAbsolute () +bool mkdir ( const QString & dirName ) const +bool mkpath ( const QString & dirPath ) const +QStringList nameFilters () const +QString path () const +void refresh () const +QString relativeFilePath ( const QString & fileName ) const +bool remove ( const QString & fileName ) +bool rename ( const QString & oldName, const QString & newName ) +bool rmdir ( const QString & dirName ) const +bool rmpath ( const QString & dirPath ) const +void setFilter ( Filters filters ) +void setNameFilters ( const QStringList & nameFilters ) +void setPath ( const QString & path ) +void setSorting ( SortFlags sort ) +SortFlags sorting () const + + +; SLOTS + + diff --git a/harbour/contrib/hbqt/qth/QDockWidget.qth b/harbour/contrib/hbqt/qth/QDockWidget.qth new file mode 100644 index 0000000000..96a1e04625 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QDockWidget.qth @@ -0,0 +1,47 @@ +; Header File to Generate Sources +; + + +Inherit = QWidget +New = pParent + + + +#include + + +/* + * QDockWidget ( const QString & title, QWidget * parent = 0, Qt::WindowFlags flags = 0 ) + * QDockWidget ( QWidget * parent = 0, Qt::WindowFlags flags = 0 ) + * ~QDockWidget () + */ +HB_FUNC( QT_QDOCKWIDGET ) +{ + hb_retptr( new QDockWidget( hbqt_par_QWidget( 1 ), hb_parni( 2 ) ) ); +} + + + +; ENUMS +enum DockWidgetFeature { DockWidgetClosable, DockWidgetMovable, DockWidgetFloatable, DockWidgetVerticalTitleBar, AllDockWidgetFeatures, NoDockWidgetFeatures } +flags DockWidgetFeatures + + +; PROTOTYPES +Qt::DockWidgetAreas allowedAreas () const +DockWidgetFeatures features () const +bool isAreaAllowed ( Qt::DockWidgetArea area ) const +bool isFloating () const +void setAllowedAreas ( Qt::DockWidgetAreas areas ) +void setFeatures ( DockWidgetFeatures features ) +void setFloating ( bool floating ) +void setTitleBarWidget ( QWidget * widget ) +void setWidget ( QWidget * widget ) +QWidget * titleBarWidget () const +QAction * toggleViewAction () const +QWidget * widget () const + + +; SLOTS + + diff --git a/harbour/contrib/hbqt/qth/QFontInfo.qth b/harbour/contrib/hbqt/qth/QFontInfo.qth new file mode 100644 index 0000000000..58c2ae14a9 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QFontInfo.qth @@ -0,0 +1,43 @@ +; Header File to Generate Sources +; + + +New = pParent + + + +#include + + +/* + * QFontInfo ( const QFont & font ) + * QFontInfo ( const QFontInfo & fi ) + * ~QFontInfo () + */ +HB_FUNC( QT_QFONTINFO ) +{ + hb_retptr( new QFontInfo( hbqt_par_QFont( 1 ) ) ); +} + + + +; ENUMS + + +; PROTOTYPES +bool bold () const +bool exactMatch () const +QString family () const +bool fixedPitch () const +bool italic () const +int pixelSize () const +int pointSize () const +qreal pointSizeF () const +bool rawMode () const +QFont::Style style () const +QFont::StyleHint styleHint () const +int weight () const + +; SLOTS + + diff --git a/harbour/contrib/hbqt/qth/QFtp.qth b/harbour/contrib/hbqt/qth/QFtp.qth new file mode 100644 index 0000000000..77d3fd1ab5 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QFtp.qth @@ -0,0 +1,62 @@ +; Header File to Generate Sources +; + + +Inherit = QObject +New = pParent + + + +#include + + +/* + * QFtp ( QObject * parent = 0 ) + * virtual ~QFtp () + */ +HB_FUNC( QT_QFTP ) +{ + hb_retptr( new QFtp( hbqt_par_QObject( 1 ) ) ); +} + + + +; ENUMS +enum Command { None, SetTransferMode, SetProxy, ConnectToHost, ..., RawCommand } +enum Error { NoError, HostNotFound, ConnectionRefused, NotConnected, UnknownError } +enum State { Unconnected, HostLookup, Connecting, Connected, LoggedIn, Closing } +enum TransferMode { Passive, Active } +enum TransferType { Binary, Ascii } + +; PROTOTYPES +qint64 bytesAvailable () const +int cd ( const QString & dir ) +void clearPendingCommands () +int close () +int connectToHost ( const QString & host, quint16 port = 21 ) +Command currentCommand () const +QIODevice * currentDevice () const +int currentId () const +Error error () const +QString errorString () const +int get ( const QString & file, QIODevice * dev = 0, TransferType type = Binary ) +bool hasPendingCommands () const +int list ( const QString & dir = QString() ) +int login ( const QString & user = QString(), const QString & password = QString() ) +int mkdir ( const QString & dir ) +int put ( QIODevice * dev, const QString & file, TransferType type = Binary ) +int put ( const QByteArray & data, const QString & file, TransferType type = Binary ) +int rawCommand ( const QString & command ) +qint64 read ( char * data, qint64 maxlen ) +QByteArray readAll () +int remove ( const QString & file ) +int rename ( const QString & oldname, const QString & newname ) +int rmdir ( const QString & dir ) +int setProxy ( const QString & host, quint16 port ) +int setTransferMode ( TransferMode mode ) +State state () const + +; SLOTS +void abort () + + diff --git a/harbour/contrib/hbqt/qth/QGridLayout.qth b/harbour/contrib/hbqt/qth/QGridLayout.qth new file mode 100644 index 0000000000..3cdfe1cea9 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QGridLayout.qth @@ -0,0 +1,60 @@ +; Header File to Generate Sources +; + + +Inherit = QLayout +New = pParent + + + +#include + + +/* + * QGridLayout ( QWidget * parent ) + * QGridLayout () + * ~QGridLayout () + */ +HB_FUNC( QT_QGRIDLAYOUT ) +{ + hb_retptr( new QGridLayout( hbqt_par_QWidget( 1 ) ) ); +} + + + +; ENUMS + + +; PROTOTYPES + +void addItem ( QLayoutItem * item, int row, int column, int rowSpan = 1, int columnSpan = 1, Qt::Alignment alignment = 0 ) +void addLayout ( QLayout * layout, int row, int column, Qt::Alignment alignment = 0 ) +void addLayout ( QLayout * layout, int row, int column, int rowSpan, int columnSpan, Qt::Alignment alignment = 0 ) +void addWidget ( QWidget * widget, int row, int column, Qt::Alignment alignment = 0 ) +void addWidget ( QWidget * widget, int fromRow, int fromColumn, int rowSpan, int columnSpan, Qt::Alignment alignment = 0 ) +QRect cellRect ( int row, int column ) const +int columnCount () const +int columnMinimumWidth ( int column ) const +int columnStretch ( int column ) const +void getItemPosition ( int index, int * row, int * column, int * rowSpan, int * columnSpan ) +int horizontalSpacing () const +QLayoutItem * itemAtPosition ( int row, int column ) const +Qt::Corner originCorner () const +int rowCount () const +int rowMinimumHeight ( int row ) const +int rowStretch ( int row ) const +void setColumnMinimumWidth ( int column, int minSize ) +void setColumnStretch ( int column, int stretch ) +void setHorizontalSpacing ( int spacing ) +void setOriginCorner ( Qt::Corner corner ) +void setRowMinimumHeight ( int row, int minSize ) +void setRowStretch ( int row, int stretch ) +void setSpacing ( int spacing ) +void setVerticalSpacing ( int spacing ) +int spacing () const +int verticalSpacing () const + + +; SLOTS + + diff --git a/harbour/contrib/hbqt/qth/QHeaderView.qth b/harbour/contrib/hbqt/qth/QHeaderView.qth new file mode 100644 index 0000000000..82f4b2bec3 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QHeaderView.qth @@ -0,0 +1,90 @@ +; Header File to Generate Sources +; + + +Inherit = QAbstractItemView +New = pParent + + + +#include + + +/* + * QHeaderView ( Qt::Orientation orientation, QWidget * parent = 0 ) + * virtual ~QHeaderView () + */ +HB_FUNC( QT_QHEADERVIEW ) +{ + hb_retptr( new QHeaderView( hbqt_par_QWidget( 1 ) ) ); +} + + + +; ENUMS +enum ResizeMode { Interactive, Fixed, Stretch, ResizeToContents, Custom } + + +; PROTOTYPES +bool cascadingSectionResizes () const +int count () const +Qt::Alignment defaultAlignment () const +int defaultSectionSize () const +int hiddenSectionCount () const +void hideSection ( int logicalIndex ) +bool highlightSections () const +bool isClickable () const +bool isMovable () const +bool isSectionHidden ( int logicalIndex ) const +bool isSortIndicatorShown () const +int length () const +int logicalIndex ( int visualIndex ) const +int logicalIndexAt ( int position ) const +int logicalIndexAt ( int x, int y ) const +int logicalIndexAt ( const QPoint & pos ) const +int minimumSectionSize () const +void moveSection ( int from, int to ) +int offset () const +Qt::Orientation orientation () const +ResizeMode resizeMode ( int logicalIndex ) const +void resizeSection ( int logicalIndex, int size ) +void resizeSections ( QHeaderView::ResizeMode mode ) +bool restoreState ( const QByteArray & state ) +QByteArray saveState () const +int sectionPosition ( int logicalIndex ) const +int sectionSize ( int logicalIndex ) const +int sectionSizeHint ( int logicalIndex ) const +int sectionViewportPosition ( int logicalIndex ) const +bool sectionsHidden () const +bool sectionsMoved () const +void setCascadingSectionResizes ( bool enable ) +void setClickable ( bool clickable ) +void setDefaultAlignment ( Qt::Alignment alignment ) +void setDefaultSectionSize ( int size ) +void setHighlightSections ( bool highlight ) +void setMinimumSectionSize ( int size ) +void setMovable ( bool movable ) +void setResizeMode ( ResizeMode mode ) +void setResizeMode ( int logicalIndex, ResizeMode mode ) +void setSectionHidden ( int logicalIndex, bool hide ) +void setSortIndicator ( int logicalIndex, Qt::SortOrder order ) +void setSortIndicatorShown ( bool show ) +void setStretchLastSection ( bool stretch ) +void showSection ( int logicalIndex ) +virtual QSize sizeHint () const +Qt::SortOrder sortIndicatorOrder () const +int sortIndicatorSection () const +bool stretchLastSection () const +int stretchSectionCount () const +void swapSections ( int first, int second ) +int visualIndex ( int logicalIndex ) const +int visualIndexAt ( int position ) const + + +; SLOTS + +void headerDataChanged ( Qt::Orientation orientation, int logicalFirst, int logicalLast ) +void setOffset ( int offset ) +void setOffsetToLastSection () +void setOffsetToSectionPosition ( int visualIndex ) + diff --git a/harbour/contrib/hbqt/qth/QHttp.qth b/harbour/contrib/hbqt/qth/QHttp.qth new file mode 100644 index 0000000000..fbe0b0557a --- /dev/null +++ b/harbour/contrib/hbqt/qth/QHttp.qth @@ -0,0 +1,65 @@ +; Header File to Generate Sources +; + + +Inherit = QObject +New = pParent + + + +#include + + +/* + * QHttp ( QObject * parent = 0 ) + * QHttp ( const QString & hostName, quint16 port = 80, QObject * parent = 0 ) + * QHttp ( const QString & hostName, ConnectionMode mode, quint16 port = 0, QObject * parent = 0 ) + * virtual ~QHttp () + */ +HB_FUNC( QT_QHTTP ) +{ + hb_retptr( new QHttp( hbqt_par_QObject( 1 ) ) ); +} + + + +; ENUMS +enum ConnectionMode { ConnectionModeHttp, ConnectionModeHttps } +enum Error { NoError, HostNotFound, ConnectionRefused, UnexpectedClose, ..., UnknownError } +enum State { Unconnected, HostLookup, Connecting, Sending, ..., Closing } + + +; PROTOTYPES +qint64 bytesAvailable () const +void clearPendingRequests () +int close () +QIODevice * currentDestinationDevice () const +int currentId () const +QHttpRequestHeader currentRequest () const +QIODevice * currentSourceDevice () const +Error error () const +QString errorString () const +int get ( const QString & path, QIODevice * to = 0 ) +bool hasPendingRequests () const +int head ( const QString & path ) +QHttpResponseHeader lastResponse () const +int post ( const QString & path, QIODevice * data, QIODevice * to = 0 ) +int post ( const QString & path, const QByteArray & data, QIODevice * to = 0 ) +qint64 read ( char * data, qint64 maxlen ) +QByteArray readAll () +int request ( const QHttpRequestHeader & header, QIODevice * data = 0, QIODevice * to = 0 ) +int request ( const QHttpRequestHeader & header, const QByteArray & data, QIODevice * to = 0 ) +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 setUser ( const QString & userName, const QString & password = QString() ) +State state () const + + +; SLOTS +void abort () +void ignoreSslErrors () + + diff --git a/harbour/contrib/hbqt/qth/QListWidget.qth b/harbour/contrib/hbqt/qth/QListWidget.qth new file mode 100644 index 0000000000..2470c743ee --- /dev/null +++ b/harbour/contrib/hbqt/qth/QListWidget.qth @@ -0,0 +1,64 @@ +; Header File to Generate Sources +; + + +Inherit = QListView +New = pParent + + + +#include + + +/* + * QListWidget ( QWidget * parent = 0 ) + * ~QListWidget () + */ +HB_FUNC( QT_QLISTWIDGET ) +{ + hb_retptr( new QListWidget( hbqt_par_QWidget( 1 ) ) ); +} + + + +; ENUMS + + +; PROTOTYPES +void addItem ( const QString & label ) +void addItem ( QListWidgetItem * item ) +void addItems ( const QStringList & labels ) +void closePersistentEditor ( QListWidgetItem * item ) +int count () const +QListWidgetItem * currentItem () const +int currentRow () const +void editItem ( QListWidgetItem * item ) +QList findItems ( const QString & text, Qt::MatchFlags flags ) const +void insertItem ( int row, QListWidgetItem * item ) +void insertItem ( int row, const QString & label ) +void insertItems ( int row, const QStringList & labels ) +bool isSortingEnabled () const +QListWidgetItem * item ( int row ) const +QListWidgetItem * itemAt ( const QPoint & p ) const +QListWidgetItem * itemAt ( int x, int y ) const +QWidget * itemWidget ( QListWidgetItem * item ) const +void openPersistentEditor ( QListWidgetItem * item ) +void removeItemWidget ( QListWidgetItem * item ) +int row ( const QListWidgetItem * item ) const +QList selectedItems () const +void setCurrentItem ( QListWidgetItem * item ) +void setCurrentItem ( QListWidgetItem * item, QItemSelectionModel::SelectionFlags command ) +void setCurrentRow ( int row ) +void setCurrentRow ( int row, QItemSelectionModel::SelectionFlags command ) +void setItemWidget ( QListWidgetItem * item, QWidget * widget ) +void setSortingEnabled ( bool enable ) +void sortItems ( Qt::SortOrder order = Qt::AscendingOrder ) +QListWidgetItem * takeItem ( int row ) +QRect visualItemRect ( const QListWidgetItem * item ) const + + +; SLOTS +void clear () +void scrollToItem ( const QListWidgetItem * item, QAbstractItemView::ScrollHint hint = EnsureVisible ) + + diff --git a/harbour/contrib/hbqt/qth/QListWidgetItem.qth b/harbour/contrib/hbqt/qth/QListWidgetItem.qth new file mode 100644 index 0000000000..df0e5c7b02 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QListWidgetItem.qth @@ -0,0 +1,72 @@ +; Header File to Generate Sources +; + + +Inherit = QWidget +New = pParent + + + +#include + + +/* + * QListWidgetItem ( QListWidget * parent = 0, int type = Type ) + * QListWidgetItem ( const QString & text, QListWidget * parent = 0, int type = Type ) + * QListWidgetItem ( const QIcon & icon, const QString & text, QListWidget * parent = 0, int type = Type ) + * QListWidgetItem ( const QListWidgetItem & other ) + * virtual ~QListWidgetItem () + */ +HB_FUNC( QT_QLISTWIDGETITEM ) +{ + hb_retptr( new QListWidgetItem( hbqt_par_QWidget( 1 ), hb_parni( 2 ) ) ); +} + + + +; ENUMS +enum ItemType { Type, UserType } + +; PROTOTYPES +QBrush background () const +Qt::CheckState checkState () const +virtual QListWidgetItem * clone () const +virtual QVariant data ( int role ) const +Qt::ItemFlags flags () const +QFont font () const +QBrush foreground () const +QIcon icon () const +bool isHidden () const +bool isSelected () const +QListWidget * listWidget () const +virtual void read ( QDataStream & in ) +void setBackground ( const QBrush & brush ) +void setCheckState ( Qt::CheckState state ) +virtual void setData ( int role, const QVariant & value ) +void setFlags ( Qt::ItemFlags flags ) +void setFont ( const QFont & font ) +void setForeground ( const QBrush & brush ) +void setHidden ( bool hide ) +void setIcon ( const QIcon & icon ) +void setSelected ( bool select ) +void setSizeHint ( const QSize & size ) +void setStatusTip ( const QString & statusTip ) +void setText ( const QString & text ) +void setTextAlignment ( int alignment ) +void setToolTip ( const QString & toolTip ) +void setWhatsThis ( const QString & whatsThis ) +QSize sizeHint () const +QString statusTip () const +QString text () const +int textAlignment () const +QString toolTip () const +int type () const +QString whatsThis () const +virtual void write ( QDataStream & out ) const +virtual bool operator< ( const QListWidgetItem & other ) const +QListWidgetItem & operator= ( const QListWidgetItem & other ) + + +; SLOTS + + diff --git a/harbour/contrib/hbqt/qth/QSignalMapper.qth b/harbour/contrib/hbqt/qth/QSignalMapper.qth new file mode 100644 index 0000000000..0e09140880 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QSignalMapper.qth @@ -0,0 +1,43 @@ +; Header File to Generate Sources +; + + +Inherit = QObject +New = pParent + + + +#include + + +/* + * QSignalMapper ( QObject * parent = 0 ) + * ~QSignalMapper () + */ +HB_FUNC( QT_QSIGNALMAPPER ) +{ + hb_retptr( new Q( hbqt_par_QObject( 1 ) ) ); +} + + + +; ENUMS + + +; PROTOTYPES +QObject * mapping ( int id ) const +QObject * mapping ( const QString & id ) const +QObject * mapping ( QWidget * widget ) const +QObject * mapping ( QObject * object ) const +void removeMappings ( QObject * sender ) +void setMapping ( QObject * sender, int id ) +void setMapping ( QObject * sender, const QString & text ) +void setMapping ( QObject * sender, QWidget * widget ) +void setMapping ( QObject * sender, QObject * object ) + + +; SLOTS +void map () +void map ( QObject * sender ) + + diff --git a/harbour/contrib/hbqt/qth/QSplashScreen.qth b/harbour/contrib/hbqt/qth/QSplashScreen.qth new file mode 100644 index 0000000000..35f4e0e430 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QSplashScreen.qth @@ -0,0 +1,38 @@ +; Header File to Generate Sources +; + + +Inherit = QWidget +New = pParent + + + +#include + + +/* + * QSplashScreen ( const QPixmap & pixmap = QPixmap(), Qt::WindowFlags f = 0 ) + * QSplashScreen ( QWidget * parent, const QPixmap & pixmap = QPixmap(), Qt::WindowFlags f = 0 ) + * virtual ~QSplashScreen () + */ +HB_FUNC( QT_QSPLASHSCREEN ) +{ + hb_retptr( new QSplashScreen( hbqt_par_QWidget( 1 ) ) ); +} + + + +; ENUMS + + +; PROTOTYPES +void finish ( QWidget * mainWin ) +const QPixmap pixmap () const +void repaint () +void setPixmap ( const QPixmap & pixmap ) + +; SLOTS +void clearMessage () +void showMessage ( const QString & message, int alignment = Qt::AlignLeft, const QColor & color = Qt::black ) + + diff --git a/harbour/contrib/hbqt/qth/QTimer.qth b/harbour/contrib/hbqt/qth/QTimer.qth new file mode 100644 index 0000000000..aa674904d2 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QTimer.qth @@ -0,0 +1,41 @@ +; Header File to Generate Sources +; + + +Inherit = QObject +New = pParent + + + +#include + + +/* + * QTimer ( QObject * parent = 0 ) + * ~QTimer () + */ +HB_FUNC( QT_QTIMER ) +{ + hb_retptr( new QTimer( hbqt_par_QObject( 1 ) ) ); +} + + + +; ENUMS + + +; PROTOTYPES + +int interval () const +bool isActive () const +bool isSingleShot () const +void setInterval ( int msec ) +void setSingleShot ( bool singleShot ) +int timerId () const + +; SLOTS +void start () +void stop () +void start ( int msec ) + + diff --git a/harbour/contrib/hbqt/qth/QUrl.qth b/harbour/contrib/hbqt/qth/QUrl.qth new file mode 100644 index 0000000000..208bd34daf --- /dev/null +++ b/harbour/contrib/hbqt/qth/QUrl.qth @@ -0,0 +1,102 @@ +; Header File to Generate Sources +; + + +Inherit = QWidget +New = pParent + + + +#include + + +/* + * QUrl () + * QUrl ( const QString & url ) + * QUrl ( const QUrl & other ) + * QUrl ( const QString & url, ParsingMode parsingMode ) + * ~QUrl () + */ +HB_FUNC( QT_QURL ) +{ + hb_retptr( new QUrl( hbqt_par_QString( 1 ) ) ); +} + + + +; ENUMS +enum FormattingOption { None, RemoveScheme, RemovePassword, RemoveUserInfo, ..., StripTrailingSlash } +flags FormattingOptions +enum ParsingMode { TolerantMode, StrictMode } + +; PROTOTYPES +void addEncodedQueryItem ( const QByteArray & key, const QByteArray & value ) +void addQueryItem ( const QString & key, const QString & value ) +QList allEncodedQueryItemValues ( const QByteArray & key ) const +QStringList allQueryItemValues ( const QString & key ) const +QString authority () const +void clear () +QByteArray encodedFragment () const +QByteArray encodedHost () const +QByteArray encodedPassword () const +QByteArray encodedPath () const +QByteArray encodedQuery () const +QByteArray encodedQueryItemValue ( const QByteArray & key ) const +QList > encodedQueryItems () const +QByteArray encodedUserName () const +QString errorString () const +QString fragment () const +bool hasEncodedQueryItem ( const QByteArray & key ) const +bool hasFragment () const +bool hasQuery () const +bool hasQueryItem ( const QString & key ) const +QString host () const +bool isEmpty () const +bool isParentOf ( const QUrl & childUrl ) const +bool isRelative () const +bool isValid () const +QString password () const +QString path () const +int port () const +int port ( int defaultPort ) const +QString queryItemValue ( const QString & key ) const +QList > queryItems () const +char queryPairDelimiter () const +char queryValueDelimiter () const +void removeAllEncodedQueryItems ( const QByteArray & key ) +void removeAllQueryItems ( const QString & key ) +void removeEncodedQueryItem ( const QByteArray & key ) +void removeQueryItem ( const QString & key ) +QUrl resolved ( const QUrl & relative ) const +QString scheme () const +void setAuthority ( const QString & authority ) +void setEncodedFragment ( const QByteArray & fragment ) +void setEncodedHost ( const QByteArray & host ) +void setEncodedPassword ( const QByteArray & password ) +void setEncodedPath ( const QByteArray & path ) +void setEncodedQuery ( const QByteArray & query ) +void setEncodedQueryItems ( const QList > & query ) +void setEncodedUrl ( const QByteArray & encodedUrl ) +void setEncodedUrl ( const QByteArray & encodedUrl, ParsingMode parsingMode ) +void setEncodedUserName ( const QByteArray & userName ) +void setFragment ( const QString & fragment ) +void setHost ( const QString & host ) +void setPassword ( const QString & password ) +void setPath ( const QString & path ) +void setPort ( int port ) +void setQueryDelimiters ( char valueDelimiter, char pairDelimiter ) +void setQueryItems ( const QList > & query ) +void setScheme ( const QString & scheme ) +void setUrl ( const QString & url ) +void setUrl ( const QString & url, ParsingMode parsingMode ) +void setUserInfo ( const QString & userInfo ) +void setUserName ( const QString & userName ) +QByteArray toEncoded ( FormattingOptions options = None ) const +QString toLocalFile () const +QString toString ( FormattingOptions options = None ) const +QString userInfo () const +QString userName () const + +; SLOTS + +