! Will update Changelog in one go.
This commit is contained in:
119
harbour/contrib/hbqt/qth/QAbstractEventDispatcher.qth
Normal file
119
harbour/contrib/hbqt/qth/QAbstractEventDispatcher.qth
Normal file
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
Inherits = QObject
|
||||
Type = Core
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QAbstractEventDispatcher>
|
||||
|
||||
|
||||
/*
|
||||
* 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() );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
|
||||
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<TimerInfo> 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 )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void aboutToBlock ()
|
||||
void awake ()
|
||||
</SIGNALS>
|
||||
|
||||
<VARIABLES>
|
||||
</VARIABLES>
|
||||
|
||||
|
||||
|
||||
103
harbour/contrib/hbqt/qth/QAbstractItemDelegate.qth
Normal file
103
harbour/contrib/hbqt/qth/QAbstractItemDelegate.qth
Normal file
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
Inherits = QObject
|
||||
Type = Core
|
||||
New =
|
||||
Destructor = no
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QAbstractItemDelegate>
|
||||
|
||||
|
||||
/* QAbstractItemDelegate ( QObject * parent = 0 )
|
||||
* virtual ~QAbstractItemDelegate ()
|
||||
*/
|
||||
HB_FUNC( QT_QABSTRACTITEMDELEGATE )
|
||||
{
|
||||
// hb_retptr( new QAbstractItemDelegate( 0 ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum EndEditHint { NoHint, EditNextItem, EditPreviousItem, SubmitModelCache, RevertModelCache }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
// bool helpEvent ( QHelpEvent * event, QAbstractItemView * view, const QStyleOptionViewItem & option, const QModelIndex & index )
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void closeEditor ( QWidget * editor, QAbstractItemDelegate::EndEditHint hint = NoHint )
|
||||
void commitData ( QWidget * editor )
|
||||
void sizeHintChanged ( const QModelIndex & index )
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ CREATE CLASS HbDbfModel INHERIT QAbstractItemModel
|
||||
#include <QStringList>
|
||||
#include <QtCore/QAbstractItemModel>
|
||||
|
||||
#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<int, QVariant> 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() )
|
||||
|
||||
96
harbour/contrib/hbqt/qth/QAbstractProxyModel.qth
Normal file
96
harbour/contrib/hbqt/qth/QAbstractProxyModel.qth
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
Inherits = QAbstractItemModel
|
||||
Type = Core
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QAbstractProxyModel>
|
||||
#include <QtGui/QItemSelection>
|
||||
|
||||
/* QAbstractProxyModel ( QObject * parent = 0 )
|
||||
* ~QAbstractProxyModel ()
|
||||
*/
|
||||
HB_FUNC( QT_QABSTRACTPROXYMODEL )
|
||||
{
|
||||
// hb_retptr( new QAbstractProxyModel() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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 )
|
||||
|
||||
106
harbour/contrib/hbqt/qth/QAbstractTextDocumentLayout.qth
Normal file
106
harbour/contrib/hbqt/qth/QAbstractTextDocumentLayout.qth
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
Inherits = QObject
|
||||
Type = Core
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QAbstractTextDocumentLayout>
|
||||
|
||||
|
||||
/* QAbstractTextDocumentLayout ( QTextDocument * document )
|
||||
*
|
||||
*/
|
||||
HB_FUNC( QT_QABSTRACTTEXTDOCUMENTLAYOUT )
|
||||
{
|
||||
// hb_retptr( new QAbstractTextDocumentLayout( hbqt_par_QTextDocument( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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 )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void documentSizeChanged ( const QSizeF & newSize )
|
||||
void pageCountChanged ( int newPages )
|
||||
void update ( const QRectF & rect = QRectF( 0., 0., 1000000000., 1000000000. ) )
|
||||
void updateBlock ( const QTextBlock & block )
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
108
harbour/contrib/hbqt/qth/QActionGroup.qth
Normal file
108
harbour/contrib/hbqt/qth/QActionGroup.qth
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
Inherits = QObject
|
||||
Type = Core
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QActionGroup>
|
||||
|
||||
|
||||
/* QActionGroup ( QObject * parent )
|
||||
* ~QActionGroup ()
|
||||
*/
|
||||
HB_FUNC( QT_QACTIONGROUP )
|
||||
{
|
||||
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
|
||||
{
|
||||
hb_retptr( new QActionGroup( hbqt_par_QObject( 1 ) ) );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
QList<QAction *> 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 )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
void setDisabled ( bool b )
|
||||
void setEnabled ( bool )
|
||||
void setExclusive ( bool )
|
||||
void setVisible ( bool )
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void hovered ( QAction * action )
|
||||
void triggered ( QAction * action )
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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 )
|
||||
|
||||
108
harbour/contrib/hbqt/qth/QBitArray.qth
Normal file
108
harbour/contrib/hbqt/qth/QBitArray.qth
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits =
|
||||
Type = Core
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QBitArray>
|
||||
|
||||
|
||||
/* QBitArray ()
|
||||
* QBitArray ( int size, bool value = false )
|
||||
* QBitArray ( const QBitArray & other )
|
||||
*/
|
||||
HB_FUNC( QT_QBITARRAY )
|
||||
{
|
||||
hb_retptr( new QBitArray() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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 )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
196
harbour/contrib/hbqt/qth/QByteArray.qth
Normal file
196
harbour/contrib/hbqt/qth/QByteArray.qth
Normal file
@@ -0,0 +1,196 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits =
|
||||
Type = Core
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QByteArray>
|
||||
|
||||
|
||||
/* 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() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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<QByteArray> 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 )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
127
harbour/contrib/hbqt/qth/QCompleter.qth
Normal file
127
harbour/contrib/hbqt/qth/QCompleter.qth
Normal file
@@ -0,0 +1,127 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
Inherits = QObject
|
||||
Type = Core
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QCompleter>
|
||||
#include <QtCore/QStringList>
|
||||
|
||||
/* 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() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum CompletionMode { PopupCompletion, InlineCompletion, UnfilteredPopupCompletion }
|
||||
enum ModelSorting { UnsortedModel, CaseSensitivelySortedModel, CaseInsensitivelySortedModel }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
void complete ( const QRect & rect = QRect() )
|
||||
void setCompletionPrefix ( const QString & prefix )
|
||||
void setWrapAround ( bool wrap )
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void activated ( const QString & text )
|
||||
void activated ( const QModelIndex & index )
|
||||
void highlighted ( const QString & text )
|
||||
void highlighted ( const QModelIndex & index )
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
100
harbour/contrib/hbqt/qth/QContextMenuEvent.qth
Normal file
100
harbour/contrib/hbqt/qth/QContextMenuEvent.qth
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits = QInputEvent
|
||||
Type = Core
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QContextMenuEvent>
|
||||
|
||||
|
||||
/* 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 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum Reason { Mouse, Keyboard, Other }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
const QPoint & globalPos () const
|
||||
int globalX () const
|
||||
int globalY () const
|
||||
const QPoint & pos () const
|
||||
Reason reason () const
|
||||
int x () const
|
||||
int y () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
113
harbour/contrib/hbqt/qth/QDataStream.qth
Normal file
113
harbour/contrib/hbqt/qth/QDataStream.qth
Normal file
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits =
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QDataStream>
|
||||
|
||||
|
||||
/* QDataStream ()
|
||||
* QDataStream ( QIODevice * d )
|
||||
* QDataStream ( QByteArray * a, QIODevice::OpenMode mode )
|
||||
* QDataStream ( const QByteArray & a )
|
||||
* virtual ~QDataStream ()
|
||||
*/
|
||||
HB_FUNC( QT_QDATASTREAM )
|
||||
{
|
||||
hb_retptr( new QDataStream() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
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 }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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 )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
112
harbour/contrib/hbqt/qth/QDate.qth
Normal file
112
harbour/contrib/hbqt/qth/QDate.qth
Normal file
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits =
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QDate>
|
||||
|
||||
|
||||
/* QDate ()
|
||||
* QDate ( int y, int m, int d )
|
||||
*/
|
||||
HB_FUNC( QT_QDATE )
|
||||
{
|
||||
hb_retptr( new QDate() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum MonthNameType { DateFormat, StandaloneFormat }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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 ()
|
||||
|
||||
@@ -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
|
||||
|
||||
143
harbour/contrib/hbqt/qth/QFile.qth
Normal file
143
harbour/contrib/hbqt/qth/QFile.qth
Normal file
@@ -0,0 +1,143 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject =
|
||||
Inherits = QIODevice
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QFile>
|
||||
|
||||
|
||||
/* 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 ) ) );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
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 }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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 )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
96
harbour/contrib/hbqt/qth/QFileIconProvider.qth
Normal file
96
harbour/contrib/hbqt/qth/QFileIconProvider.qth
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits =
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QFileIconProvider>
|
||||
|
||||
|
||||
/* QFileIconProvider ()
|
||||
* virtual ~QFileIconProvider ()
|
||||
*/
|
||||
HB_FUNC( QT_QFILEICONPROVIDER )
|
||||
{
|
||||
hb_retptr( new QFileIconProvider() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum IconType { Computer, Desktop, Trashcan, Network, ..., File }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
virtual QIcon icon ( IconType type ) const
|
||||
virtual QIcon icon ( const QFileInfo & info ) const
|
||||
virtual QString type ( const QFileInfo & info ) const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
143
harbour/contrib/hbqt/qth/QFileInfo.qth
Normal file
143
harbour/contrib/hbqt/qth/QFileInfo.qth
Normal file
@@ -0,0 +1,143 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits =
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QFileInfo>
|
||||
#include <QtCore/QDir>
|
||||
#include <QtCore/QDateTime>
|
||||
|
||||
|
||||
/* 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() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
flags PermissionSpec
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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 )
|
||||
|
||||
@@ -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
|
||||
</PROTOS>
|
||||
|
||||
|
||||
98
harbour/contrib/hbqt/qth/QHelpEvent.qth
Normal file
98
harbour/contrib/hbqt/qth/QHelpEvent.qth
Normal file
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits =
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QHelpEvent>
|
||||
|
||||
|
||||
/* QHelpEvent ( Type type, const QPoint & pos, const QPoint & globalPos )
|
||||
*
|
||||
*/
|
||||
HB_FUNC( QT_QHELPEVENT )
|
||||
{
|
||||
// hb_retptr( new QHelpEvent() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
const QPoint & globalPos () const
|
||||
int globalX () const
|
||||
int globalY () const
|
||||
const QPoint & pos () const
|
||||
int x () const
|
||||
int y () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
</PROTOS>
|
||||
@@ -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 )
|
||||
|
||||
99
harbour/contrib/hbqt/qth/QHttpRequestHeader.qth
Normal file
99
harbour/contrib/hbqt/qth/QHttpRequestHeader.qth
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits = QHttpHeader
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtNetwork/QHttpRequestHeader>
|
||||
|
||||
|
||||
/* 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() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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 )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
99
harbour/contrib/hbqt/qth/QHttpResponseHeader.qth
Normal file
99
harbour/contrib/hbqt/qth/QHttpResponseHeader.qth
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits = QHttpHeader
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtNetwork/QHttpResponseHeader>
|
||||
|
||||
|
||||
/* 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() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
106
harbour/contrib/hbqt/qth/QInputContext.qth
Normal file
106
harbour/contrib/hbqt/qth/QInputContext.qth
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject =
|
||||
Inherits = QObject
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QInputContext>
|
||||
#include <QtGui/QTextFormat>
|
||||
|
||||
/* QInputContext ( QObject * parent = 0 )
|
||||
* virtual ~QInputContext ()
|
||||
*/
|
||||
HB_FUNC( QT_QINPUTCONTEXT )
|
||||
{
|
||||
// hb_retptr( new QInputContext() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum StandardFormat { PreeditFormat, SelectionFormat }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
virtual QList<QAction *> 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 )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
100
harbour/contrib/hbqt/qth/QInputMethodEvent.qth
Normal file
100
harbour/contrib/hbqt/qth/QInputMethodEvent.qth
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits = QEvent
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QInputMethodEvent>
|
||||
|
||||
|
||||
/* QInputMethodEvent ()
|
||||
* QInputMethodEvent ( const QString & preeditText, const QList<Attribute> & attributes )
|
||||
* QInputMethodEvent ( const QInputMethodEvent & other )
|
||||
*/
|
||||
HB_FUNC( QT_QINPUTMETHODEVENT )
|
||||
{
|
||||
hb_retptr( new QInputMethodEvent() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum AttributeType { TextFormat, Cursor, Language, Ruby }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
const QList<Attribute> & 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 )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
98
harbour/contrib/hbqt/qth/QItemSelection.qth
Normal file
98
harbour/contrib/hbqt/qth/QItemSelection.qth
Normal file
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits = QList
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QItemSelection>
|
||||
|
||||
|
||||
/* QItemSelection ()
|
||||
* QItemSelection ( const QModelIndex & topLeft, const QModelIndex & bottomRight )
|
||||
*/
|
||||
HB_FUNC( QT_QITEMSELECTION )
|
||||
{
|
||||
hb_retptr( new QItemSelection() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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 )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
120
harbour/contrib/hbqt/qth/QItemSelectionModel.qth
Normal file
120
harbour/contrib/hbqt/qth/QItemSelectionModel.qth
Normal file
@@ -0,0 +1,120 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject =
|
||||
Inherits = QObject
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QItemSelectionModel>
|
||||
|
||||
|
||||
/* 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 ) ) );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum SelectionFlag { NoUpdate, Clear, Select, Deselect, ..., ClearAndSelect }
|
||||
flags SelectionFlags
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
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 )
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
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 )
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
97
harbour/contrib/hbqt/qth/QLibraryInfo.qth
Normal file
97
harbour/contrib/hbqt/qth/QLibraryInfo.qth
Normal file
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
Inherits =
|
||||
Type = Core
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QLibraryInfo>
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
HB_FUNC( QT_QLIBRARYINFO )
|
||||
{
|
||||
hb_retptr( ( QLibraryInfo* ) new QLibraryInfo() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum LibraryLocation { PrefixPath, DocumentationPath, HeadersPath, LibrariesPath, ..., DemosPath }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
QString buildKey ()
|
||||
QString licensedProducts ()
|
||||
QString licensee ()
|
||||
QString location ( LibraryLocation loc )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
<VARIABLES>
|
||||
</VARIABLES>
|
||||
|
||||
|
||||
|
||||
122
harbour/contrib/hbqt/qth/QLineF.qth
Normal file
122
harbour/contrib/hbqt/qth/QLineF.qth
Normal file
@@ -0,0 +1,122 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits =
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QLineF>
|
||||
|
||||
|
||||
/* 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() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum IntersectType { NoIntersection, UnboundedIntersection, BoundedIntersection }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
157
harbour/contrib/hbqt/qth/QLocale.qth
Normal file
157
harbour/contrib/hbqt/qth/QLocale.qth
Normal file
@@ -0,0 +1,157 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits =
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QLocale>
|
||||
#include <QtCore/QDate>
|
||||
|
||||
/* QLocale ()
|
||||
* QLocale ( const QString & name )
|
||||
* QLocale ( Language language, Country country = AnyCountry )
|
||||
* QLocale ( const QLocale & other )
|
||||
*/
|
||||
HB_FUNC( QT_QLOCALE )
|
||||
{
|
||||
hb_retptr( new QLocale() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
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
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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<Country> countriesForLanguage ( Language language )
|
||||
QString countryToString ( Country country )
|
||||
QString languageToString ( Language language )
|
||||
void setDefault ( const QLocale & locale )
|
||||
QLocale system ()
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
123
harbour/contrib/hbqt/qth/QMatrix.qth
Normal file
123
harbour/contrib/hbqt/qth/QMatrix.qth
Normal file
@@ -0,0 +1,123 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits =
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QMatrix>
|
||||
#include <QtGui/QPainterPath>
|
||||
|
||||
|
||||
/* 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() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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 )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
114
harbour/contrib/hbqt/qth/QMimeData.qth
Normal file
114
harbour/contrib/hbqt/qth/QMimeData.qth
Normal file
@@ -0,0 +1,114 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject =
|
||||
Inherits = QObject
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QMimeData>
|
||||
#include <QtCore/QStringList>
|
||||
|
||||
|
||||
/* QMimeData ()
|
||||
* ~QMimeData ()
|
||||
*/
|
||||
HB_FUNC( QT_QMIMEDATA )
|
||||
{
|
||||
hb_retptr( new QMimeData() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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<QUrl> & urls )
|
||||
QString text () const
|
||||
QList<QUrl> urls () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
133
harbour/contrib/hbqt/qth/QMovie.qth
Normal file
133
harbour/contrib/hbqt/qth/QMovie.qth
Normal file
@@ -0,0 +1,133 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject =
|
||||
Inherits = QObject
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QMovie>
|
||||
#include <QtGui/QColor>
|
||||
#include <QtGui/QPixmap>
|
||||
|
||||
|
||||
/* 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() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum CacheMode { CacheNone, CacheAll }
|
||||
enum MovieState { NotRunning, Paused, Running }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
bool jumpToNextFrame ()
|
||||
void setPaused ( bool paused )
|
||||
void setSpeed ( int percentSpeed )
|
||||
void start ()
|
||||
void stop ()
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
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 )
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
108
harbour/contrib/hbqt/qth/QNetworkRequest.qth
Normal file
108
harbour/contrib/hbqt/qth/QNetworkRequest.qth
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits =
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtNetwork/QNetworkRequest>
|
||||
|
||||
|
||||
/* QNetworkRequest ( const QUrl & url = QUrl() )
|
||||
* QNetworkRequest ( const QNetworkRequest & other )
|
||||
* ~QNetworkRequest ()
|
||||
*/
|
||||
HB_FUNC( QT_QNETWORKREQUEST )
|
||||
{
|
||||
hb_retptr( new QNetworkRequest() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum Attribute { HttpStatusCodeAttribute, HttpReasonPhraseAttribute, RedirectionTargetAttribute, ConnectionEncryptedAttribute, ..., UserMax }
|
||||
enum CacheLoadControl { AlwaysNetwork, PreferNetwork, PreferCache, AlwaysCache }
|
||||
enum KnownHeaders { ContentTypeHeader, ContentLengthHeader, LocationHeader, LastModifiedHeader, CookieHeader, SetCookieHeader }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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<QByteArray> 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
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ HB_FUNC( QT_QOBJECT )
|
||||
|
||||
<PROTOS>
|
||||
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 )
|
||||
|
||||
151
harbour/contrib/hbqt/qth/QPainterPath.qth
Normal file
151
harbour/contrib/hbqt/qth/QPainterPath.qth
Normal file
@@ -0,0 +1,151 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits =
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QPainterPath>
|
||||
|
||||
|
||||
/* QPainterPath ()
|
||||
* QPainterPath ( const QPointF & startPoint )
|
||||
* QPainterPath ( const QPainterPath & path )
|
||||
* ~QPainterPath ()
|
||||
*/
|
||||
HB_FUNC( QT_QPAINTERPATH )
|
||||
{
|
||||
hb_retptr( new QPainterPath() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum ElementType { MoveToElement, LineToElement, CurveToElement, CurveToDataElement }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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<QPolygonF> toFillPolygons ( const QTransform & matrix ) const
|
||||
QList<QPolygonF> toFillPolygons ( const QMatrix & matrix = QMatrix() ) const
|
||||
QPainterPath toReversed () const
|
||||
QList<QPolygonF> toSubpathPolygons ( const QTransform & matrix ) const
|
||||
QList<QPolygonF> toSubpathPolygons ( const QMatrix & matrix = QMatrix() ) const
|
||||
QPainterPath united ( const QPainterPath & p ) const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
111
harbour/contrib/hbqt/qth/QPolygon.qth
Normal file
111
harbour/contrib/hbqt/qth/QPolygon.qth
Normal file
@@ -0,0 +1,111 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits =
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QPolygon>
|
||||
|
||||
|
||||
/* QPolygon ()
|
||||
* QPolygon ( int size )
|
||||
* QPolygon ( const QPolygon & polygon )
|
||||
* QPolygon ( const QVector<QPoint> & points )
|
||||
* QPolygon ( const QRect & rectangle, bool closed = false )
|
||||
* ~QPolygon ()
|
||||
*/
|
||||
HB_FUNC( QT_QPOLYGON )
|
||||
{
|
||||
hb_retptr( new QPolygon() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
106
harbour/contrib/hbqt/qth/QPolygonF.qth
Normal file
106
harbour/contrib/hbqt/qth/QPolygonF.qth
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits =
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QPolygonF>
|
||||
|
||||
|
||||
/* QPolygonF ()
|
||||
* QPolygonF ( int size )
|
||||
* QPolygonF ( const QPolygonF & polygon )
|
||||
* QPolygonF ( const QVector<QPointF> & points )
|
||||
* QPolygonF ( const QRectF & rectangle )
|
||||
* QPolygonF ( const QPolygon & polygon )
|
||||
* ~QPolygonF ()
|
||||
*/
|
||||
HB_FUNC( QT_QPOLYGONF )
|
||||
{
|
||||
hb_retptr( new QPolygonF() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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 ()
|
||||
|
||||
115
harbour/contrib/hbqt/qth/QRegExp.qth
Normal file
115
harbour/contrib/hbqt/qth/QRegExp.qth
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits =
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QRegExp>
|
||||
#include <QtCore/QStringList>
|
||||
|
||||
/* 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() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum CaretMode { CaretAtZero, CaretAtOffset, CaretWontMatch }
|
||||
enum PatternSyntax { RegExp, RegExp2, Wildcard, FixedString }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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 )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
109
harbour/contrib/hbqt/qth/QSessionManager.qth
Normal file
109
harbour/contrib/hbqt/qth/QSessionManager.qth
Normal file
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject =
|
||||
Inherits = QObject
|
||||
Type = Core
|
||||
New =
|
||||
Destructor = no
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QSessionManager>
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
HB_FUNC( QT_QSESSIONMANAGER )
|
||||
{
|
||||
// hb_retptr( new () );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum RestartHint { RestartIfRunning, RestartAnyway, RestartImmediately, RestartNever }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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 )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
98
harbour/contrib/hbqt/qth/QSpacerItem.qth
Normal file
98
harbour/contrib/hbqt/qth/QSpacerItem.qth
Normal file
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits = QLayoutItem
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QSpacerItem>
|
||||
|
||||
|
||||
/* 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 ) ) );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
void changeSize ( int w, int h, QSizePolicy::Policy hPolicy = QSizePolicy::Minimum, QSizePolicy::Policy vPolicy = QSizePolicy::Minimum )
|
||||
virtual bool isEmpty () const
|
||||
virtual QSpacerItem * spacerItem ()
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -80,10 +80,10 @@ HB_FUNC( QT_QSTYLEDITEMDELEGATE )
|
||||
<PROTOS>
|
||||
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
|
||||
|
||||
@@ -71,7 +71,7 @@ CREATE CLASS HBTableView INHERIT QTableView
|
||||
<CODE>
|
||||
#include <QtGui/QTableView>
|
||||
|
||||
#include "hbqt_slots.h"
|
||||
#include "../hbqt_slots.h"
|
||||
|
||||
/*
|
||||
* QTableView ( QWidget * parent = 0 )
|
||||
|
||||
100
harbour/contrib/hbqt/qth/QTableWidgetSelectionRange.qth
Normal file
100
harbour/contrib/hbqt/qth/QTableWidgetSelectionRange.qth
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits =
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QTableWidgetSelectionRange>
|
||||
|
||||
|
||||
/* QTableWidgetSelectionRange ()
|
||||
* QTableWidgetSelectionRange ( int top, int left, int bottom, int right )
|
||||
* QTableWidgetSelectionRange ( const QTableWidgetSelectionRange & other )
|
||||
* ~QTableWidgetSelectionRange ()
|
||||
*/
|
||||
HB_FUNC( QT_QTABLEWIDGETSELECTIONRANGE )
|
||||
{
|
||||
hb_retptr( new QTableWidgetSelectionRange() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
int bottomRow () const
|
||||
int columnCount () const
|
||||
int leftColumn () const
|
||||
int rightColumn () const
|
||||
int rowCount () const
|
||||
int topRow () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
</PROTOS>
|
||||
|
||||
|
||||
@@ -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
|
||||
</PROTOS>
|
||||
|
||||
@@ -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 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
98
harbour/contrib/hbqt/qth/QTextListFormat.qth
Normal file
98
harbour/contrib/hbqt/qth/QTextListFormat.qth
Normal file
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits = QTextFormat
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QTextListFormat>
|
||||
|
||||
|
||||
/* QTextListFormat ()
|
||||
*
|
||||
*/
|
||||
HB_FUNC( QT_QTEXTLISTFORMAT )
|
||||
{
|
||||
hb_retptr( new QTextListFormat() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum Style { ListDisc, ListCircle, ListSquare, ListDecimal, ListLowerAlpha, ListUpperAlpha }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
int indent () const
|
||||
bool isValid () const
|
||||
void setIndent ( int indentation )
|
||||
void setStyle ( Style style )
|
||||
Style style () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
115
harbour/contrib/hbqt/qth/QTextOption.qth
Normal file
115
harbour/contrib/hbqt/qth/QTextOption.qth
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits =
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QTextOption>
|
||||
|
||||
|
||||
/* QTextOption ()
|
||||
* QTextOption ( Qt::Alignment alignment )
|
||||
* QTextOption ( const QTextOption & other )
|
||||
* ~QTextOption ()
|
||||
*/
|
||||
HB_FUNC( QT_QTEXTOPTION )
|
||||
{
|
||||
hb_retptr( new QTextOption() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
class Tab
|
||||
enum Flag { IncludeTrailingSpaces, ShowTabsAndSpaces, ShowLineAndParagraphSeparators, AddSpaceForLineAndParagraphSeparators, SuppressColors }
|
||||
flags Flags
|
||||
enum TabType { LeftTab, RightTab, CenterTab, DelimiterTab }
|
||||
enum WrapMode { NoWrap, WordWrap, ManualWrap, WrapAnywhere, WrapAtWordBoundaryOrAnywhere }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
Qt::Alignment alignment () const
|
||||
Flags flags () const
|
||||
void setAlignment ( Qt::Alignment alignment )
|
||||
void setFlags ( Flags flags )
|
||||
void setTabArray ( QList<qreal> tabStops )
|
||||
void setTabStop ( qreal tabStop )
|
||||
void setTabs ( QList<Tab> tabStops )
|
||||
void setTextDirection ( Qt::LayoutDirection direction )
|
||||
void setUseDesignMetrics ( bool enable )
|
||||
void setWrapMode ( WrapMode mode )
|
||||
QList<qreal> tabArray () const
|
||||
qreal tabStop () const
|
||||
QList<Tab> tabs () const
|
||||
Qt::LayoutDirection textDirection () const
|
||||
bool useDesignMetrics () const
|
||||
WrapMode wrapMode () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
104
harbour/contrib/hbqt/qth/QTextTableFormat.qth
Normal file
104
harbour/contrib/hbqt/qth/QTextTableFormat.qth
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits = QTextFrameFormat
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QTextTableFormat>
|
||||
|
||||
|
||||
/* QTextTableFormat ()
|
||||
*/
|
||||
HB_FUNC( QT_QTEXTTABLEFORMAT )
|
||||
{
|
||||
hb_retptr( new QTextTableFormat() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
Qt::Alignment alignment () const
|
||||
qreal cellPadding () const
|
||||
qreal cellSpacing () const
|
||||
void clearColumnWidthConstraints ()
|
||||
QVector<QTextLength> 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<QTextLength> & constraints )
|
||||
void setHeaderRowCount ( int count )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
112
harbour/contrib/hbqt/qth/QThread.qth
Normal file
112
harbour/contrib/hbqt/qth/QThread.qth
Normal file
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject =
|
||||
Inherits = QObject
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QThread>
|
||||
|
||||
|
||||
/* QThread ( QObject * parent = 0 )
|
||||
* ~QThread ()
|
||||
*/
|
||||
HB_FUNC( QT_QTHREAD )
|
||||
{
|
||||
hb_retptr( new QThread() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum Priority { IdlePriority, LowestPriority, LowPriority, NormalPriority, ..., InheritPriority }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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 ()
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
void quit ()
|
||||
void start ( Priority priority = InheritPriority )
|
||||
void terminate ()
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void finished ()
|
||||
void started ()
|
||||
void terminated ()
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
113
harbour/contrib/hbqt/qth/QTime.qth
Normal file
113
harbour/contrib/hbqt/qth/QTime.qth
Normal file
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits =
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QTime>
|
||||
|
||||
|
||||
/* QTime ()
|
||||
* QTime ( int h, int m, int s = 0, int ms = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QTIME )
|
||||
{
|
||||
hb_retptr( new QTime() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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 )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
145
harbour/contrib/hbqt/qth/QTransform.qth
Normal file
145
harbour/contrib/hbqt/qth/QTransform.qth
Normal file
@@ -0,0 +1,145 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits =
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QTransform>
|
||||
|
||||
|
||||
/* 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() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum TransformationType { TxNone, TxTranslate, TxScale, TxRotate, TxShear, TxProject }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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 )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
97
harbour/contrib/hbqt/qth/QTranslator.qth
Normal file
97
harbour/contrib/hbqt/qth/QTranslator.qth
Normal file
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject =
|
||||
Inherits = QObject
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QTranslator>
|
||||
|
||||
|
||||
/* QTranslator ( QObject * parent = 0 )
|
||||
* ~QTranslator ()
|
||||
*/
|
||||
HB_FUNC( QT_QTRANSLATOR )
|
||||
{
|
||||
hb_retptr( new QTranslator() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
97
harbour/contrib/hbqt/qth/QValidator.qth
Normal file
97
harbour/contrib/hbqt/qth/QValidator.qth
Normal file
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject =
|
||||
Inherits = QObject
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QValidator>
|
||||
|
||||
|
||||
/* QValidator ( QObject * parent )
|
||||
* ~QValidator ()
|
||||
*/
|
||||
HB_FUNC( QT_QVALIDATOR )
|
||||
{
|
||||
// hb_retptr( new QValidator() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum State { Invalid, Intermediate, Acceptable }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
// virtual void fixup ( QString & input ) const
|
||||
QLocale locale () const
|
||||
void setLocale ( const QLocale & locale )
|
||||
// virtual State validate ( QString & input, int & pos ) const = 0
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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 )
|
||||
|
||||
@@ -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
|
||||
|
||||
109
harbour/contrib/hbqt/qth/QWizardPage.qth
Normal file
109
harbour/contrib/hbqt/qth/QWizardPage.qth
Normal file
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject =
|
||||
Inherits = QWidget
|
||||
Type = Core
|
||||
New =
|
||||
Destructor =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QWizardPage>
|
||||
|
||||
|
||||
/* QWizardPage ( QWidget * parent = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QWIZARDPAGE )
|
||||
{
|
||||
hb_retptr( new QWizardPage() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
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 ()
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void completeChanged ()
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user