nuke whole qth tree
This commit is contained in:
@@ -1,98 +0,0 @@
|
||||
/*
|
||||
* $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 = QAbstractItemModel
|
||||
Type =
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<SUBCLASS>
|
||||
</SUBCLASS>
|
||||
|
||||
<DOC>
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QAbstractItemModel>
|
||||
#include "../hbqt_hbdbfmodel.h"
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
*/
|
||||
HB_FUNC( QT_HBDBFMODEL )
|
||||
{
|
||||
hb_retptr( new HBDbfModel( ( PHB_ITEM ) hb_param( 1, HB_IT_BLOCK ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
void hbSetRowColumns( int rows, int cols )
|
||||
void reset()
|
||||
QModelIndex index( int row, int column, const QModelIndex & parent = QModelIndex() ) const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
@@ -1,99 +0,0 @@
|
||||
/*
|
||||
* $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 =
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<SUBCLASS>
|
||||
</SUBCLASS>
|
||||
|
||||
<DOC>
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QObject>
|
||||
#include "../hbqt_hbevents.h"
|
||||
|
||||
|
||||
/*
|
||||
* HBEvents()
|
||||
* ~HBEvents()
|
||||
*
|
||||
*/
|
||||
HB_FUNC( QT_HBEVENTS )
|
||||
{
|
||||
hb_retptr( new HBEvents() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
bool hbConnect( PHB_ITEM obj, int event, PHB_ITEM block )
|
||||
bool hbDisconnect( PHB_ITEM obj, int event )
|
||||
bool hbClear()
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* $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 = QMainWindow
|
||||
Type =
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<SUBCLASS>
|
||||
</SUBCLASS>
|
||||
|
||||
<DOC>
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QMainWindow>
|
||||
#include "../hbqt_hbqmainwindow.h"
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
*/
|
||||
HB_FUNC( QT_HBQMAINWINDOW )
|
||||
{
|
||||
hb_retptr( new HBQMainWindow( hb_itemNew( hb_param( 1, HB_IT_BLOCK ) ), hb_parni( 2 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
@@ -1,154 +0,0 @@
|
||||
/*
|
||||
* $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 = QPlainTextEdit
|
||||
Type =
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<DOC>
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QPlainTextEdit>
|
||||
|
||||
#include "../hbqt_hbqplaintextedit.h"
|
||||
|
||||
/*
|
||||
* HBQPlainTextEdit ( QWidget * parent = 0 )
|
||||
* HBQPlainTextEdit ( const QString & text, QWidget * parent = 0 )
|
||||
* virtual ~HBQPlainTextEdit ()
|
||||
*/
|
||||
HB_FUNC( QT_HBQPLAINTEXTEDIT )
|
||||
{
|
||||
if( hb_pcount() == 1 && HB_ISCHAR( 1 ) )
|
||||
{
|
||||
hb_retptr( new HBQPlainTextEdit() );
|
||||
}
|
||||
else if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
|
||||
{
|
||||
hb_retptr( new HBQPlainTextEdit( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( new HBQPlainTextEdit() );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
int hbGetIndex( const QTextCursor & crQTextCursor)
|
||||
int hbGetLine( const QTextCursor & crQTextCursor)
|
||||
int hbLineNumberAreaWidth()
|
||||
int hbGetSpaces()
|
||||
void hbSetSpaces(int newSpaces)
|
||||
void hbBookmarks(int block)
|
||||
void hbNextBookmark(int block)
|
||||
void hbPrevBookmark(int block)
|
||||
void hbGotoBookmark(int block)
|
||||
void hbNumberBlockVisible(bool b)
|
||||
bool hbNumberBlockVisible()
|
||||
void hbHighlightCurrentLine(bool b)
|
||||
bool hbHighlightCurrentLine()
|
||||
void hbSetEventBlock( PHB_ITEM block )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
void hbUpdateLineNumberAreaWidth( int newBlockCount )
|
||||
void hbCaseUpper()
|
||||
void hbCaseLower()
|
||||
void hbEscapeQuotes()
|
||||
void hbEscapeDQuotes()
|
||||
void hbUnescapeQuotes()
|
||||
void hbUnescapeDQuotes()
|
||||
void hbConvertQuotes()
|
||||
void hbConvertDQuotes()
|
||||
void hbBlockComment()
|
||||
void hbStreamComment()
|
||||
void hbDuplicateLine()
|
||||
void hbReplaceSelection( const QString & txt )
|
||||
void hbBlockIndent( int steps )
|
||||
void hbDeleteLine()
|
||||
void hbMoveLine( int iDirection )
|
||||
QString hbGetSelectedText()
|
||||
QString hbTextUnderCursor()
|
||||
void hbShowPrototype( const QString & tip )
|
||||
void hbSetCompleter( QCompleter * completer )
|
||||
void hbSetCurrentLineColor( const QColor & color )
|
||||
void hbSetLineAreaBkColor( const QColor & color )
|
||||
void hbRefresh()
|
||||
void hbCut( int key )
|
||||
void hbCopy()
|
||||
void hbPaste()
|
||||
void hbSetSelectionMode( int mode, bool on )
|
||||
void hbGetSelectionInfo()
|
||||
void hbSetSelectionInfo( PHB_ITEM selectionInfo )
|
||||
void hbSetSelectionColor( const QColor & color )
|
||||
void hbSetMatchBraces( bool all )
|
||||
void hbGetViewportInfo()
|
||||
void hbApplyKey( int key, Qt::KeyboardModifiers modifiers = 0, const QString & txt )
|
||||
void hbHighlightArea( int top, int left, int bottom, int right, int mode )
|
||||
void hbTogglePersistentSelection()
|
||||
void hbHorzRulerVisible( bool visible )
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
@@ -1,113 +0,0 @@
|
||||
/*
|
||||
* $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 = QSyntaxHighlighter
|
||||
Type =
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<SUBCLASS>
|
||||
</SUBCLASS>
|
||||
|
||||
<DOC>
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QSyntaxHighlighter>
|
||||
#include "../hbqt_hbqsyntaxhighlighter.h"
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
*/
|
||||
HB_FUNC( QT_HBQSYNTAXHIGHLIGHTER )
|
||||
{
|
||||
hb_retptr( new HBQSyntaxHighlighter( hbqt_par_QTextDocument( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
|
||||
void hbSetMultiLineCommentFormat( const QTextCharFormat & format )
|
||||
void hbSetSingleLineCommentFormat( const QTextCharFormat & format )
|
||||
void hbSetRule( QString name, QString pattern, QTextCharFormat & format )
|
||||
void hbSetFormat( QString name, const QTextCharFormat & format )
|
||||
void hbSetFormatColumnSelection( int start, int count, const QColor & color )
|
||||
|
||||
# QTextBlock currentBlock () const
|
||||
# int currentBlockState () const
|
||||
# QTextBlockUserData * currentBlockUserData () const
|
||||
# QTextCharFormat format ( int position ) const
|
||||
# virtual void highlightBlock ( const QString & text ) = 0
|
||||
# int previousBlockState () const
|
||||
# void setCurrentBlockState ( int newState )
|
||||
# void setCurrentBlockUserData ( QTextBlockUserData * data )
|
||||
# void setFormat ( int start, int count, const QTextCharFormat & format )
|
||||
# void setFormat ( int start, int count, const QColor & color )
|
||||
# void setFormat ( int start, int count, const QFont & font )
|
||||
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
@@ -1,114 +0,0 @@
|
||||
/*
|
||||
* $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 = QSyntaxHighlighter
|
||||
Type =
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<SUBCLASS>
|
||||
</SUBCLASS>
|
||||
|
||||
<DOC>
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QSyntaxHighlighter>
|
||||
#include "../hbqt_hbqsyntaxhighlighter.h"
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
*/
|
||||
HB_FUNC( QT_HBQSYNTAXHIGHLIGHTER )
|
||||
{
|
||||
hb_retptr( new HBQSyntaxHighlighter( hbqt_par_QTextDocument( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
|
||||
void hbSetMultiLineCommentFormat( const QTextCharFormat & format )
|
||||
void hbSetSingleLineCommentFormat( const QTextCharFormat & format )
|
||||
void hbSetRule( QString name, QString pattern, QTextCharFormat & format )
|
||||
void hbSetFormat( QString name, const QTextCharFormat & format )
|
||||
void hbSetFormatColumnSelection( int start, int count, const QColor & color )
|
||||
void hbSetRuleWithRegExp( QString name, const QRegExp & reg, const QTextCharFormat & format )
|
||||
|
||||
# QTextBlock currentBlock () const
|
||||
# int currentBlockState () const
|
||||
# QTextBlockUserData * currentBlockUserData () const
|
||||
# QTextCharFormat format ( int position ) const
|
||||
# virtual void highlightBlock ( const QString & text ) = 0
|
||||
# int previousBlockState () const
|
||||
# void setCurrentBlockState ( int newState )
|
||||
# void setCurrentBlockUserData ( QTextBlockUserData * data )
|
||||
# void setFormat ( int start, int count, const QTextCharFormat & format )
|
||||
# void setFormat ( int start, int count, const QColor & color )
|
||||
# void setFormat ( int start, int count, const QFont & font )
|
||||
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* $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 = QTableView
|
||||
Type =
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<SUBCLASS>
|
||||
</SUBCLASS>
|
||||
|
||||
<DOC>
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QTableView>
|
||||
#include "../hbqt_hbqtableview.h"
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
*/
|
||||
HB_FUNC( QT_HBQTABLEVIEW )
|
||||
{
|
||||
hb_retptr( new HBQTableView( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
@@ -1,96 +0,0 @@
|
||||
/*
|
||||
* $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 =
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<SUBCLASS>
|
||||
</SUBCLASS>
|
||||
|
||||
<DOC>
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QTextBlockUserData>
|
||||
#include "../hbqt_hbqsyntaxhighlighter.h"
|
||||
|
||||
/*
|
||||
* HBQTextBlockUserData()
|
||||
* ~HBQTextBlockUserData()
|
||||
*/
|
||||
HB_FUNC( QT_HBQTEXTBLOCKUSERDATA )
|
||||
{
|
||||
hb_retptr( new HBQTextBlockUserData() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
int hbSetState( int state )
|
||||
int hbState()
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
@@ -1,99 +0,0 @@
|
||||
/*
|
||||
* $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 =
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<SUBCLASS>
|
||||
</SUBCLASS>
|
||||
|
||||
<DOC>
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QObject>
|
||||
#include "../hbqt_hbslots.h"
|
||||
|
||||
|
||||
/*
|
||||
* HBSlots()
|
||||
* ~HBSlots()
|
||||
*/
|
||||
HB_FUNC( QT_HBSLOTS )
|
||||
{
|
||||
hb_retptr( new HBSlots() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
bool hbConnect( PHB_ITEM pObj, const char * slot, PHB_ITEM bBlock )
|
||||
bool hbDisconnect( PHB_ITEM obj, const char * slot )
|
||||
bool hbIsConnected( PHB_ITEM obj, const char * slot )
|
||||
bool hbClear()
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
@@ -1,119 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QWidget
|
||||
New = pParent
|
||||
</CLASS>
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QAbstractButton>
|
||||
|
||||
|
||||
/*
|
||||
* QAbstractButton ( QWidget * parent = 0 )
|
||||
* ~QAbstractButton ()
|
||||
*/
|
||||
HB_FUNC( QT_QABSTRACTBUTTON )
|
||||
{
|
||||
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
bool autoExclusive () const
|
||||
bool autoRepeat () const
|
||||
int autoRepeatDelay () const
|
||||
int autoRepeatInterval () const
|
||||
QButtonGroup * group () const
|
||||
QIcon icon () const
|
||||
QSize iconSize () const
|
||||
bool isCheckable () const
|
||||
bool isChecked () const
|
||||
bool isDown () const
|
||||
void setAutoExclusive ( bool )
|
||||
void setAutoRepeat ( bool )
|
||||
void setAutoRepeatDelay ( int )
|
||||
void setAutoRepeatInterval ( int )
|
||||
void setCheckable ( bool )
|
||||
void setDown ( bool )
|
||||
void setIcon ( const QIcon & icon )
|
||||
void setShortcut ( const QKeySequence & key )
|
||||
void setText ( const QString & text )
|
||||
QKeySequence shortcut () const
|
||||
QString text () const
|
||||
</PROTOS>
|
||||
|
||||
|
||||
<SLOTS>
|
||||
void animateClick ( int msec = 100 )
|
||||
void click ()
|
||||
void setChecked ( bool )
|
||||
void setIconSize ( const QSize & size )
|
||||
void toggle ()
|
||||
</SLOTS>
|
||||
|
||||
|
||||
<SIGNALS>
|
||||
void clicked ( bool checked = false )
|
||||
void pressed ()
|
||||
void released ()
|
||||
void toggled ( bool checked )
|
||||
</SIGNALS>
|
||||
@@ -1,119 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
|
||||
|
||||
|
||||
@@ -1,103 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,146 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
|
||||
<SUBCLASS>
|
||||
</SUBCLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QSize>
|
||||
#include <QtCore/QStringList>
|
||||
#include <QtCore/QAbstractItemModel>
|
||||
|
||||
|
||||
/*
|
||||
* QAbstractItemModel ( QObject * parent = 0 )
|
||||
* virtual ~QAbstractItemModel ()
|
||||
*/
|
||||
|
||||
HB_FUNC( QT_QABSTRACTITEMMODEL )
|
||||
{
|
||||
}
|
||||
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
virtual QModelIndex buddy ( const QModelIndex & index ) const
|
||||
virtual bool canFetchMore ( const QModelIndex & parent ) const
|
||||
virtual int columnCount ( const QModelIndex & parent = QModelIndex() ) const = 0
|
||||
virtual QVariant data ( const QModelIndex & index, int role = Qt::DisplayRole ) const = 0
|
||||
virtual bool dropMimeData ( const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent )
|
||||
virtual void fetchMore ( const QModelIndex & parent )
|
||||
virtual Qt::ItemFlags flags ( const QModelIndex & index ) const
|
||||
virtual bool hasChildren ( const QModelIndex & parent = QModelIndex() ) const
|
||||
bool hasIndex ( int row, int column, const QModelIndex & parent = QModelIndex() ) const
|
||||
virtual QVariant headerData ( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const
|
||||
virtual QModelIndex index ( int row, int column, const QModelIndex & parent = QModelIndex() ) const = 0
|
||||
bool insertColumn ( int column, const QModelIndex & parent = QModelIndex() )
|
||||
virtual bool insertColumns ( int column, int count, const QModelIndex & parent = QModelIndex() )
|
||||
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 QStringList mimeTypes () const
|
||||
virtual QModelIndex parent ( const QModelIndex & index ) const = 0
|
||||
bool removeColumn ( int column, const QModelIndex & parent = QModelIndex() )
|
||||
virtual bool removeColumns ( int column, int count, const QModelIndex & parent = QModelIndex() )
|
||||
bool removeRow ( int row, const QModelIndex & parent = QModelIndex() )
|
||||
virtual bool removeRows ( int row, int count, const QModelIndex & parent = QModelIndex() )
|
||||
virtual int rowCount ( const QModelIndex & parent = QModelIndex() ) const = 0
|
||||
virtual bool setData ( const QModelIndex & index, const QVariant & value, int role = Qt::EditRole )
|
||||
virtual bool setHeaderData ( int section, Qt::Orientation orientation, const QVariant & value, int role = Qt::EditRole )
|
||||
virtual bool setItemData ( const QModelIndex & index, const QMap<int, QVariant> & roles )
|
||||
void setSupportedDragActions ( Qt::DropActions actions )
|
||||
QModelIndex sibling ( int row, int column, const QModelIndex & index ) const
|
||||
virtual void sort ( int column, Qt::SortOrder order = Qt::AscendingOrder )
|
||||
virtual QSize span ( const QModelIndex & index ) const
|
||||
Qt::DropActions supportedDragActions () const
|
||||
virtual Qt::DropActions supportedDropActions () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
virtual void revert ()
|
||||
virtual bool submit ()
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void columnsAboutToBeInserted ( const QModelIndex & parent, int start, int end )
|
||||
void columnsAboutToBeRemoved ( const QModelIndex & parent, int start, int end )
|
||||
void columnsInserted ( const QModelIndex & parent, int start, int end )
|
||||
void columnsRemoved ( const QModelIndex & parent, int start, int end )
|
||||
void dataChanged ( const QModelIndex & topLeft, const QModelIndex & bottomRight )
|
||||
void headerDataChanged ( Qt::Orientation orientation, int first, int last )
|
||||
void layoutAboutToBeChanged ()
|
||||
void layoutChanged ()
|
||||
void modelAboutToBeReset ()
|
||||
void modelReset ()
|
||||
void rowsAboutToBeInserted ( const QModelIndex & parent, int start, int end )
|
||||
void rowsAboutToBeRemoved ( const QModelIndex & parent, int start, int end )
|
||||
void rowsInserted ( const QModelIndex & parent, int start, int end )
|
||||
void rowsRemoved ( const QModelIndex & parent, int start, int end )
|
||||
</SIGNALS>
|
||||
|
||||
<VARIABLES>
|
||||
</VARIABLES>
|
||||
@@ -1,165 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QAbstractScrollArea
|
||||
New = pParent
|
||||
</CLASS>
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QAbstractItemView>
|
||||
|
||||
|
||||
/*
|
||||
* QAbstractItemView ( QWidget * parent = 0 )
|
||||
* ~QAbstractItemView ()
|
||||
*/
|
||||
HB_FUNC( QT_QABSTRACTITEMVIEW )
|
||||
{
|
||||
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
flags EditTriggers
|
||||
enum DragDropMode { NoDragDrop, DragOnly, DropOnly, DragDrop, InternalMove }
|
||||
enum EditTrigger { NoEditTriggers, CurrentChanged, DoubleClicked, SelectedClicked, ..., AllEditTriggers }
|
||||
enum ScrollHint { EnsureVisible, PositionAtTop, PositionAtBottom, PositionAtCenter }
|
||||
enum ScrollMode { ScrollPerItem, ScrollPerPixel }
|
||||
enum SelectionBehavior { SelectItems, SelectRows, SelectColumns }
|
||||
enum SelectionMode { SingleSelection, ContiguousSelection, ExtendedSelection, MultiSelection, NoSelection }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
bool alternatingRowColors () const
|
||||
int autoScrollMargin () const
|
||||
void closePersistentEditor ( const QModelIndex & index )
|
||||
QModelIndex currentIndex () const
|
||||
DragDropMode dragDropMode () const
|
||||
bool dragDropOverwriteMode () const
|
||||
bool dragEnabled () const
|
||||
EditTriggers editTriggers () const
|
||||
bool hasAutoScroll () const
|
||||
ScrollMode horizontalScrollMode () const
|
||||
QSize iconSize () const
|
||||
virtual QModelIndex indexAt ( const QPoint & point ) const = 0
|
||||
QWidget * indexWidget ( const QModelIndex & index ) const
|
||||
QAbstractItemDelegate * itemDelegate () const
|
||||
QAbstractItemDelegate * itemDelegate ( const QModelIndex & index ) const
|
||||
QAbstractItemDelegate * itemDelegateForColumn ( int column ) const
|
||||
QAbstractItemDelegate * itemDelegateForRow ( int row ) const
|
||||
virtual void keyboardSearch ( const QString & search )
|
||||
QAbstractItemModel * model () const
|
||||
void openPersistentEditor ( const QModelIndex & index )
|
||||
QModelIndex rootIndex () const
|
||||
virtual void scrollTo ( const QModelIndex & index, ScrollHint hint = EnsureVisible ) = 0
|
||||
QAbstractItemView::SelectionBehavior selectionBehavior () const
|
||||
QAbstractItemView::SelectionMode selectionMode () const
|
||||
QItemSelectionModel * selectionModel () const
|
||||
void setAlternatingRowColors ( bool enable )
|
||||
void setAutoScroll ( bool enable )
|
||||
void setAutoScrollMargin ( int margin )
|
||||
void setDragDropMode ( DragDropMode behavior )
|
||||
void setDragDropOverwriteMode ( bool overwrite )
|
||||
void setDragEnabled ( bool enable )
|
||||
void setDropIndicatorShown ( bool enable )
|
||||
void setEditTriggers ( EditTriggers triggers )
|
||||
void setHorizontalScrollMode ( ScrollMode mode )
|
||||
void setIconSize ( const QSize & size )
|
||||
void setIndexWidget ( const QModelIndex & index, QWidget * widget )
|
||||
void setItemDelegate ( QAbstractItemDelegate * delegate )
|
||||
void setItemDelegateForColumn ( int column, QAbstractItemDelegate * delegate )
|
||||
void setItemDelegateForRow ( int row, QAbstractItemDelegate * delegate )
|
||||
virtual void setModel ( QAbstractItemModel * model )
|
||||
void setSelectionBehavior ( QAbstractItemView::SelectionBehavior behavior )
|
||||
void setSelectionMode ( QAbstractItemView::SelectionMode mode )
|
||||
virtual void setSelectionModel ( QItemSelectionModel * selectionModel )
|
||||
void setTabKeyNavigation ( bool enable )
|
||||
void setTextElideMode ( Qt::TextElideMode mode )
|
||||
void setVerticalScrollMode ( ScrollMode mode )
|
||||
bool showDropIndicator () const
|
||||
virtual int sizeHintForColumn ( int column ) const
|
||||
QSize sizeHintForIndex ( const QModelIndex & index ) const
|
||||
virtual int sizeHintForRow ( int row ) const
|
||||
bool tabKeyNavigation () const
|
||||
Qt::TextElideMode textElideMode () const
|
||||
ScrollMode verticalScrollMode () const
|
||||
virtual QRect visualRect ( const QModelIndex & index ) const = 0
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
void clearSelection ()
|
||||
void edit ( const QModelIndex & index )
|
||||
virtual void reset ()
|
||||
void scrollToBottom ()
|
||||
void scrollToTop ()
|
||||
virtual void selectAll ()
|
||||
void setCurrentIndex ( const QModelIndex & index )
|
||||
virtual void setRootIndex ( const QModelIndex & index )
|
||||
void update ( const QModelIndex & index )
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void activated ( const QModelIndex & index )
|
||||
void clicked ( const QModelIndex & index )
|
||||
void doubleClicked ( const QModelIndex & index )
|
||||
void entered ( const QModelIndex & index )
|
||||
void pressed ( const QModelIndex & index )
|
||||
void viewportEntered ()
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
@@ -1,94 +0,0 @@
|
||||
/*
|
||||
* $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 <QtCore/QAbstractListModel>
|
||||
|
||||
|
||||
/*
|
||||
* QAbstractListModel ( QObject * parent = 0 )
|
||||
* ~QAbstractListModel ()
|
||||
*/
|
||||
HB_FUNC( QT_QABSTRACTLISTMODEL )
|
||||
{
|
||||
//hb_retptr( ( QAbstractListModel* ) new QAbstractListModel() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
virtual QModelIndex index ( int row, int column = 0, const QModelIndex & parent = QModelIndex() ) const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
<VARIABLES>
|
||||
</VARIABLES>
|
||||
|
||||
|
||||
|
||||
@@ -1,104 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QDialog
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QAbstractPrintDialog>
|
||||
|
||||
|
||||
/*
|
||||
* QAbstractPrintDialog ( QPrinter * printer, QWidget * parent = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QABSTRACTPRINTDIALOG )
|
||||
{
|
||||
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
<ENUMS>
|
||||
enum PrintDialogOption { None, PrintToFile, PrintSelection, PrintPageRange, ..., PrintShowPageSize }
|
||||
enum PrintRange { AllPages, Selection, PageRange }
|
||||
flags PrintDialogOptions
|
||||
</ENUMS>
|
||||
|
||||
|
||||
<PROTOS>
|
||||
virtual int exec () = 0
|
||||
int fromPage () const
|
||||
int maxPage () const
|
||||
int minPage () const
|
||||
PrintRange printRange () const
|
||||
QPrinter * printer () const
|
||||
void setFromTo ( int from, int to )
|
||||
void setMinMax ( int min, int max )
|
||||
void setOptionTabs ( const QList<QWidget *> & tabs )
|
||||
void setPrintRange ( PrintRange range )
|
||||
int toPage () const
|
||||
</PROTOS>
|
||||
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
@@ -1,96 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,103 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QFrame
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QAbstractScrollArea>
|
||||
|
||||
|
||||
/*
|
||||
* QAbstractScrollArea ( QWidget * parent = 0 )
|
||||
* ~QAbstractScrollArea ()
|
||||
*/
|
||||
HB_FUNC( QT_QABSTRACTSCROLLAREA )
|
||||
{
|
||||
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
void addScrollBarWidget ( QWidget * widget, Qt::Alignment alignment )
|
||||
QWidget * cornerWidget () const
|
||||
QScrollBar * horizontalScrollBar () const
|
||||
Qt::ScrollBarPolicy horizontalScrollBarPolicy () const
|
||||
QSize maximumViewportSize () const
|
||||
// QWidgetList scrollBarWidgets ( Qt::Alignment alignment )
|
||||
void setCornerWidget ( QWidget * widget )
|
||||
void setHorizontalScrollBar ( QScrollBar * scrollBar )
|
||||
void setHorizontalScrollBarPolicy ( Qt::ScrollBarPolicy )
|
||||
void setVerticalScrollBar ( QScrollBar * scrollBar )
|
||||
void setVerticalScrollBarPolicy ( Qt::ScrollBarPolicy )
|
||||
void setViewport ( QWidget * widget )
|
||||
QScrollBar * verticalScrollBar () const
|
||||
Qt::ScrollBarPolicy verticalScrollBarPolicy () const
|
||||
QWidget * viewport () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
@@ -1,121 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QWidget
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QAbstractSlider>
|
||||
|
||||
|
||||
/*
|
||||
* QAbstractSlider ( QWidget * parent = 0 )
|
||||
* ~QAbstractSlider ()
|
||||
*/
|
||||
HB_FUNC( QT_QABSTRACTSLIDER )
|
||||
{
|
||||
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum SliderAction { SliderNoAction, SliderSingleStepAdd, SliderSingleStepSub, SliderPageStepAdd, ..., SliderMove }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
bool hasTracking () const
|
||||
bool invertedAppearance () const
|
||||
bool invertedControls () const
|
||||
bool isSliderDown () const
|
||||
int maximum () const
|
||||
int minimum () const
|
||||
Qt::Orientation orientation () const
|
||||
int pageStep () const
|
||||
void setInvertedAppearance ( bool )
|
||||
void setInvertedControls ( bool )
|
||||
void setMaximum ( int )
|
||||
void setMinimum ( int )
|
||||
void setPageStep ( int )
|
||||
void setRange ( int min, int max )
|
||||
void setSingleStep ( int )
|
||||
void setSliderDown ( bool )
|
||||
void setSliderPosition ( int )
|
||||
void setTracking ( bool enable )
|
||||
int singleStep () const
|
||||
int sliderPosition () const
|
||||
void triggerAction ( SliderAction action )
|
||||
int value () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
void setOrientation ( Qt::Orientation )
|
||||
void setValue ( int )
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void actionTriggered ( int action )
|
||||
void rangeChanged ( int min, int max )
|
||||
void sliderMoved ( int value )
|
||||
void sliderPressed ()
|
||||
void sliderReleased ()
|
||||
void valueChanged ( int value )
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
@@ -1,121 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QWidget
|
||||
New = pParent
|
||||
</CLASS>
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QAbstractSpinBox>
|
||||
|
||||
|
||||
/*
|
||||
* QAbstractSpinBox ( QWidget * parent = 0 )
|
||||
* ~QAbstractSpinBox ()
|
||||
*/
|
||||
HB_FUNC( QT_QABSTRACTSPINBOX )
|
||||
{
|
||||
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum ButtonSymbols { UpDownArrows, PlusMinus, NoButtons }
|
||||
enum CorrectionMode { CorrectToPreviousValue, CorrectToNearestValue }
|
||||
flags StepEnabled
|
||||
enum StepEnabledFlag { StepNone, StepUpEnabled, StepDownEnabled }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
Qt::Alignment alignment () const
|
||||
ButtonSymbols buttonSymbols () const
|
||||
CorrectionMode correctionMode () const
|
||||
// virtual void fixup ( QString & input ) const
|
||||
bool hasAcceptableInput () const
|
||||
bool hasFrame () const
|
||||
void interpretText ()
|
||||
bool isAccelerated () const
|
||||
bool isReadOnly () const
|
||||
bool keyboardTracking () const
|
||||
void setAccelerated ( bool on )
|
||||
void setAlignment ( Qt::Alignment flag )
|
||||
void setButtonSymbols ( ButtonSymbols bs )
|
||||
void setCorrectionMode ( CorrectionMode cm )
|
||||
void setFrame ( bool )
|
||||
void setKeyboardTracking ( bool kt )
|
||||
void setReadOnly ( bool r )
|
||||
void setSpecialValueText ( const QString & txt )
|
||||
void setWrapping ( bool w )
|
||||
QString specialValueText () const
|
||||
virtual void stepBy ( int steps )
|
||||
QString text () const
|
||||
// virtual QValidator::State validate ( QString & input, int & pos ) const
|
||||
bool wrapping () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
virtual void clear ()
|
||||
void selectAll ()
|
||||
void stepDown ()
|
||||
void stepUp ()
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void editingFinished ()
|
||||
</SIGNALS>
|
||||
|
||||
@@ -1,94 +0,0 @@
|
||||
/*
|
||||
* $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 <QtCore/QAbstractTableModel>
|
||||
|
||||
|
||||
/*
|
||||
* QAbstractTableModel ( QObject * parent = 0 )
|
||||
* ~QAbstractTableModel ()
|
||||
*/
|
||||
HB_FUNC( QT_QABSTRACTTABLEMODEL )
|
||||
{
|
||||
// hb_retptr( ( QAbstractTableModel * ) new QAbstractTableModel() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
virtual QModelIndex index ( int row, int column, const QModelIndex & parent = QModelIndex() ) const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
<VARIABLES>
|
||||
</VARIABLES>
|
||||
|
||||
|
||||
|
||||
@@ -1,106 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,155 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
|
||||
Inherit = QObject
|
||||
New = pParent
|
||||
Calls = QT_QAction
|
||||
|
||||
</CLASS>
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QAction>
|
||||
|
||||
|
||||
/*
|
||||
* QAction ( QObject * parent )
|
||||
* QAction ( const QString & text, QObject * parent )
|
||||
* QAction ( const QIcon & icon, const QString & text, QObject * parent )
|
||||
* ~QAction ()
|
||||
*/
|
||||
HB_FUNC( QT_QACTION )
|
||||
{
|
||||
if( HB_ISPOINTER( 1 ) )
|
||||
hb_retptr( new QAction( hbqt_par_QObject( 1 ) ) );
|
||||
else if( HB_ISPOINTER( 2 ) )
|
||||
hb_retptr( new QAction( hbqt_par_QString( 1 ), hbqt_par_QObject( 2 ) ) );
|
||||
else if( HB_ISPOINTER( 3 ) )
|
||||
hb_retptr( new QAction( *hbqt_par_QIcon( 1 ), hbqt_par_QString( 2 ), hbqt_par_QObject( 3 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum ActionEvent { Trigger, Hover }
|
||||
enum MenuRole { NoRole, TextHeuristicRole, ApplicationSpecificRole, AboutQtRole, ..., QuitRole }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
QActionGroup * actionGroup () const
|
||||
void activate ( ActionEvent event )
|
||||
QList<QGraphicsWidget *> associatedGraphicsWidgets () const
|
||||
QList<QWidget *> associatedWidgets () const
|
||||
bool autoRepeat () const
|
||||
QVariant data () const
|
||||
QFont font () const
|
||||
QIcon icon () const
|
||||
QString iconText () const
|
||||
bool isCheckable () const
|
||||
bool isChecked () const
|
||||
bool isEnabled () const
|
||||
bool isIconVisibleInMenu () const
|
||||
bool isSeparator () const
|
||||
bool isVisible () const
|
||||
QMenu * menu () const
|
||||
MenuRole menuRole () const
|
||||
QWidget * parentWidget () const
|
||||
void setActionGroup ( QActionGroup * group )
|
||||
void setAutoRepeat ( bool )
|
||||
void setCheckable ( bool )
|
||||
void setData ( const QVariant & userData )
|
||||
void setFont ( const QFont & font )
|
||||
void setIcon ( const QIcon & icon )
|
||||
void setIconText ( const QString & text )
|
||||
void setIconVisibleInMenu ( bool visible )
|
||||
void setMenu ( QMenu * menu )
|
||||
void setMenuRole ( MenuRole menuRole )
|
||||
void setSeparator ( bool b )
|
||||
void setShortcut ( const QKeySequence & shortcut )
|
||||
void setShortcutContext ( Qt::ShortcutContext context )
|
||||
void setShortcuts ( const QList<QKeySequence> & shortcuts )
|
||||
void setShortcuts ( QKeySequence::StandardKey key )
|
||||
void setStatusTip ( const QString & statusTip )
|
||||
void setText ( const QString & text )
|
||||
void setToolTip ( const QString & tip )
|
||||
void setWhatsThis ( const QString & what )
|
||||
QKeySequence shortcut () const
|
||||
Qt::ShortcutContext shortcutContext () const
|
||||
QList<QKeySequence> shortcuts () const
|
||||
bool showStatusText ( QWidget * widget = 0 )
|
||||
QString statusTip () const
|
||||
QString text () const
|
||||
QString toolTip () const
|
||||
QString whatsThis () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
void hover ()
|
||||
void setChecked ( bool )
|
||||
void setDisabled ( bool b )
|
||||
void setEnabled ( bool )
|
||||
void setVisible ( bool )
|
||||
void toggle ()
|
||||
void trigger ()
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void changed ()
|
||||
void hovered ()
|
||||
void toggled ( bool checked )
|
||||
void triggered ( bool checked = false )
|
||||
</SIGNALS>
|
||||
@@ -1,108 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,286 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QCoreApplication
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
|
||||
<CODE>
|
||||
#include "hbapi.h"
|
||||
#include "hbinit.h"
|
||||
#include "hbdefs.h"
|
||||
#include "hbapifs.h"
|
||||
#include "hbapiitm.h"
|
||||
#include "hbstack.h"
|
||||
#include "hbvm.h"
|
||||
#include "hbdate.h"
|
||||
#include "hbapierr.h"
|
||||
|
||||
#include <QtGui/QFont>
|
||||
#include <QtGui/QFontMetrics>
|
||||
#include <QtGui/QImage>
|
||||
#include <QtGui/QPalette>
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtCore/QLocale>
|
||||
#include <QtCore/QTextCodec>
|
||||
#include <QtGui/QIcon>
|
||||
|
||||
static QApplication * s_app = NULL;
|
||||
|
||||
static int s_argc;
|
||||
static char ** s_argv;
|
||||
|
||||
HB_FUNC( HB_QT ) {;}
|
||||
|
||||
/*
|
||||
* QApplication ( int & argc, char ** argv )
|
||||
* QApplication ( int & argc, char ** argv, bool GUIenabled )
|
||||
* QApplication ( int & argc, char ** argv, Type type )
|
||||
* QApplication ( Display * display, Qt::HANDLE visual = 0, Qt::HANDLE colormap = 0 )
|
||||
* QApplication ( Display * display, int & argc, char ** argv, Qt::HANDLE visual = 0, Qt::HANDLE colormap = 0 )
|
||||
* virtual ~QApplication ()
|
||||
*/
|
||||
|
||||
HB_FUNC( QT_QAPPLICATION )
|
||||
{
|
||||
//hb_retptr( ( QApplication * ) s_app );
|
||||
hb_retptr ( s_app );
|
||||
}
|
||||
|
||||
static void hbqt_Exit( void * cargo )
|
||||
{
|
||||
HB_SYMBOL_UNUSED( cargo );
|
||||
|
||||
//s_app->quit();
|
||||
//s_app = NULL;
|
||||
}
|
||||
|
||||
static void hbqt_Init( void * cargo )
|
||||
{
|
||||
HB_SYMBOL_UNUSED( cargo );
|
||||
|
||||
QTextCodec *codec = QTextCodec::codecForLocale();
|
||||
QTextCodec::setCodecForTr( codec );
|
||||
QTextCodec::setCodecForCStrings( codec );
|
||||
|
||||
s_argc = hb_cmdargARGC();
|
||||
s_argv = hb_cmdargARGV();
|
||||
|
||||
s_app = new QApplication( s_argc, s_argv );
|
||||
|
||||
if( ! s_app )
|
||||
hb_errInternal( 11001, "hbqt_Init(): QT Initilization Error.", NULL, NULL );
|
||||
|
||||
hb_cmdargInit( s_argc, s_argv );
|
||||
}
|
||||
|
||||
HB_CALL_ON_STARTUP_BEGIN( _hb_hbqt_init_ )
|
||||
hb_vmAtInit( hbqt_Init, NULL );
|
||||
hb_vmAtExit( hbqt_Exit, NULL );
|
||||
HB_CALL_ON_STARTUP_END( _hb_hbqt_init_ )
|
||||
|
||||
#if defined( HB_PRAGMA_STARTUP )
|
||||
#pragma startup _hb_hbqt_init_
|
||||
#elif defined( HB_DATASEG_STARTUP )
|
||||
#define HB_DATASEG_BODY HB_DATASEG_FUNC( _hb_hbqt_init_ )
|
||||
#include "hbiniseg.h"
|
||||
#endif
|
||||
|
||||
HB_FUNC( QT_QAPPLICATION_EXECUTE )
|
||||
{
|
||||
hb_retni( s_app->exec() );
|
||||
}
|
||||
|
||||
HB_FUNC( QT_QAPPLICATION_QUIT )
|
||||
{
|
||||
s_app->quit();
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum ColorSpec { NormalColor, CustomColor, ManyColor }
|
||||
enum Type { Tty, GuiClient, GuiServer }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
virtual void commitData ( QSessionManager & manager )
|
||||
#
|
||||
# Disabled because OS2 does not like it
|
||||
// QInputContext * inputContext () const
|
||||
#
|
||||
bool isSessionRestored () const
|
||||
#
|
||||
# not-found
|
||||
// virtual bool macEventFilter ( EventHandlerCallRef, EventRef )
|
||||
// virtual bool qwsEventFilter ( QWSEvent * )
|
||||
// int qwsProcessEvent ( QWSEvent * )
|
||||
// void qwsSetCustomColors ( QRgb * colortable, int start, int numColors )
|
||||
#
|
||||
virtual void saveState ( QSessionManager & manager )
|
||||
QString sessionId () const
|
||||
QString sessionKey () const
|
||||
#
|
||||
// void setInputContext ( QInputContext * inputContext )
|
||||
#
|
||||
QString styleSheet () const
|
||||
|
||||
QWidget * activeModalWidget ()
|
||||
QWidget * activePopupWidget ()
|
||||
QWidget * activeWindow ()
|
||||
void alert ( QWidget * widget, int msec = 0 )
|
||||
// QWidgetList allWidgets ()
|
||||
void beep ()
|
||||
void changeOverrideCursor ( const QCursor & cursor )
|
||||
QClipboard * clipboard ()
|
||||
int colorSpec ()
|
||||
int cursorFlashTime ()
|
||||
QDesktopWidget * desktop ()
|
||||
bool desktopSettingsAware ()
|
||||
int doubleClickInterval ()
|
||||
int exec ()
|
||||
QWidget * focusWidget ()
|
||||
QFont font ()
|
||||
QFont font ( const QWidget * widget )
|
||||
QFont font ( const char * className )
|
||||
QFontMetrics fontMetrics ()
|
||||
QSize globalStrut ()
|
||||
bool isEffectEnabled ( Qt::UIEffect effect )
|
||||
bool isLeftToRight ()
|
||||
bool isRightToLeft ()
|
||||
Qt::LayoutDirection keyboardInputDirection ()
|
||||
int keyboardInputInterval ()
|
||||
QLocale keyboardInputLocale ()
|
||||
Qt::KeyboardModifiers keyboardModifiers ()
|
||||
//bool keypadNavigationEnabled ()
|
||||
Qt::LayoutDirection layoutDirection ()
|
||||
Qt::MouseButtons mouseButtons ()
|
||||
QCursor * overrideCursor ()
|
||||
QPalette palette ()
|
||||
QPalette palette ( const QWidget * widget )
|
||||
QPalette palette ( const char * className )
|
||||
bool quitOnLastWindowClosed ()
|
||||
//QDecoration & qwsDecoration ()
|
||||
//void qwsSetDecoration ( QDecoration * )
|
||||
//QDecoration * qwsSetDecoration ( const QString & decoration )
|
||||
void restoreOverrideCursor ()
|
||||
void setActiveWindow ( QWidget * active )
|
||||
void setColorSpec ( int spec )
|
||||
void setCursorFlashTime ( int )
|
||||
void setDesktopSettingsAware ( bool on )
|
||||
void setDoubleClickInterval ( int )
|
||||
void setEffectEnabled ( Qt::UIEffect effect, bool enable = true )
|
||||
void setFont ( const QFont & font, const char * className = 0 )
|
||||
void setGlobalStrut ( const QSize & )
|
||||
void setGraphicsSystem ( const QString & system )
|
||||
void setKeyboardInputInterval ( int )
|
||||
//void setKeypadNavigationEnabled ( bool enable )
|
||||
void setLayoutDirection ( Qt::LayoutDirection direction )
|
||||
void setOverrideCursor ( const QCursor & cursor )
|
||||
void setPalette ( const QPalette & palette, const char * className = 0 )
|
||||
void setQuitOnLastWindowClosed ( bool quit )
|
||||
void setStartDragDistance ( int l )
|
||||
void setStartDragTime ( int ms )
|
||||
void setStyle ( QStyle * style )
|
||||
QStyle * setStyle ( const QString & style )
|
||||
void setWheelScrollLines ( int )
|
||||
void setWindowIcon ( const QIcon & icon )
|
||||
int startDragDistance ()
|
||||
int startDragTime ()
|
||||
QStyle * style ()
|
||||
void syncX ()
|
||||
QWidget * topLevelAt ( const QPoint & point )
|
||||
QWidget * topLevelAt ( int x, int y )
|
||||
// QWidgetList topLevelWidgets ()
|
||||
Type type ()
|
||||
int wheelScrollLines ()
|
||||
QWidget * widgetAt ( const QPoint & point )
|
||||
QWidget * widgetAt ( int x, int y )
|
||||
QIcon windowIcon ()
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
void aboutQt ()
|
||||
//int autoMaximizeThreshold () const
|
||||
//bool autoSipEnabled () const
|
||||
void closeAllWindows ()
|
||||
//void setAutoMaximizeThreshold ( const int threshold )
|
||||
//void setAutoSipEnabled ( const bool enabled )
|
||||
void setStyleSheet ( const QString & sheet )
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void commitDataRequest ( QSessionManager & manager )
|
||||
void focusChanged ( QWidget * old, QWidget * now )
|
||||
void fontDatabaseChanged ()
|
||||
void lastWindowClosed ()
|
||||
void saveStateRequest ( QSessionManager & manager )
|
||||
</SIGNALS>
|
||||
|
||||
/*
|
||||
//hbqt_par_QApplication( 1 )->commitData( ( ( QSessionManager ) hbqt_par_QSessionManager( 2 ) ) );
|
||||
//C:\harbour\contrib\hbqt\gensource\hbqt_qapplication.cpp:189: error: invalid use of undefined type `struct QSessionManager'
|
||||
|
||||
//hbqt_par_QApplication( 1 )->commitData( ( ( QSessionManager& ) hbqt_par_QSessionManager( 2 ) ) );
|
||||
//error: invalid use of undefined type `struct QSessionManager'
|
||||
|
||||
//hbqt_par_QApplication( 1 )->commitData( ( ( QSessionManager* ) hbqt_par_QSessionManager( 2 ) ) );
|
||||
//error: no matching function for call to `QApplication::commitData(QSessionManager*)'
|
||||
//note: candidates are: virtual void QApplication::commitData(QSessionManager&)
|
||||
|
||||
hbqt_par_QApplication( 1 )->commitData( *hbqt_par_QSessionManager( 2 ) );
|
||||
|
||||
*/
|
||||
@@ -1,110 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
New = pParent
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <ActiveQt/QAxBase>
|
||||
|
||||
|
||||
/*
|
||||
* QAxBase ( IUnknown * iface = 0 )
|
||||
* virtual ~QAxBase ()
|
||||
*/
|
||||
HB_FUNC( QT_QAXBASE )
|
||||
{
|
||||
hb_retptr( new QAxBase( hbqt_par_IUnknown( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
QVariant asVariant () const
|
||||
virtual void clear ()
|
||||
QString control () const
|
||||
void disableClassInfo ()
|
||||
void disableEventSink ()
|
||||
void disableMetaObject ()
|
||||
QVariant dynamicCall ( const char * function, const QVariant & var1 = QVariant(), const QVariant & var2 = QVariant(), const QVariant & var3 = QVariant(), const QVariant & var4 = QVariant(), const QVariant & var5 = QVariant(), const QVariant & var6 = QVariant(), const QVariant & var7 = QVariant(), const QVariant & var8 = QVariant() )
|
||||
QVariant dynamicCall ( const char * function, QList<QVariant> & vars )
|
||||
QString generateDocumentation ()
|
||||
bool isNull () const
|
||||
PropertyBag propertyBag () const
|
||||
virtual bool propertyWritable ( const char * prop ) const
|
||||
long queryInterface ( const QUuid & uuid, void ** iface ) const
|
||||
QAxObject * querySubObject ( const char * name, const QVariant & var1 = QVariant(), const QVariant & var2 = QVariant(), const QVariant & var3 = QVariant(), const QVariant & var4 = QVariant(), const QVariant & var5 = QVariant(), const QVariant & var6 = QVariant(), const QVariant & var7 = QVariant(), const QVariant & var8 = QVariant() )
|
||||
QAxObject * querySubObject ( const char * name, QList<QVariant> & vars )
|
||||
bool setControl ( const QString & )
|
||||
void setPropertyBag ( const PropertyBag & bag )
|
||||
virtual void setPropertyWritable ( const char * prop, bool ok )
|
||||
QStringList verbs () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void exception ( int code, const QString & source, const QString & desc, const QString & help )
|
||||
void propertyChanged ( const QString & name )
|
||||
void signal ( const QString & name, int argc, void * argv )
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
@@ -1,91 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
New = pParent
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <ActiveQt/QAxBindable>
|
||||
|
||||
|
||||
/*
|
||||
* QAxBindable ()
|
||||
* virtual ~QAxBindable ()
|
||||
*/
|
||||
HB_FUNC( QT_QAXBINDABLE )
|
||||
{
|
||||
hb_retptr( new QAxBindable() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
virtual QAxAggregated * createAggregate ()
|
||||
virtual bool readData ( QIODevice * source, const QString & format )
|
||||
void reportError ( int code, const QString & src, const QString & desc, const QString & context = QString() )
|
||||
virtual bool writeData ( QIODevice * sink )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
@@ -1,83 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QObject, QAxBase
|
||||
New = pParent
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <ActiveQt/QAxObject>
|
||||
|
||||
|
||||
/*
|
||||
* QAxObject ( QObject * parent = 0 )
|
||||
* QAxObject ( const QString & c, QObject * parent = 0 )
|
||||
* QAxObject ( IUnknown * iface, QObject * parent = 0 )
|
||||
* ~QAxObject ()
|
||||
*/
|
||||
HB_FUNC( QT_QAXOBJECT )
|
||||
{
|
||||
hb_retptr( new QAxObject( hbqt_par_IUnknown( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<PROTOS>
|
||||
bool doVerb ( const QString & verb )
|
||||
</PROTOS>
|
||||
|
||||
|
||||
|
||||
@@ -1,83 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QWidget, QAxBase
|
||||
New = pParent
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <ActiveQt/QAxWidget>
|
||||
|
||||
|
||||
/*
|
||||
* QAxWidget ( QWidget * parent = 0, Qt::WindowFlags f = 0 )
|
||||
* QAxWidget ( const QString & c, QWidget * parent = 0, Qt::WindowFlags f = 0 )
|
||||
* QAxWidget ( IUnknown * iface, QWidget * parent = 0, Qt::WindowFlags f = 0 )
|
||||
* ~QAxWidget ()
|
||||
*/
|
||||
HB_FUNC( QT_QAXWIDGET )
|
||||
{
|
||||
hb_retptr( new QAxWidget( hbqt_par_QWidget( 1 ), hb_parni( 2 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<PROTOS>
|
||||
virtual QAxAggregated * createAggregate ()
|
||||
bool doVerb ( const QString & verb )
|
||||
</PROTOS>
|
||||
|
||||
|
||||
@@ -1,108 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,145 +0,0 @@
|
||||
/*
|
||||
* $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 = QPixmap
|
||||
Type = PlainObject
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<DOC>
|
||||
oBitmap := QBitmap():new()
|
||||
oBitmap := QBitmap():new( pBitmap_other )
|
||||
oBitmap := QBitmap():new( nWidth, nHeight )
|
||||
oBitmap := QBitmap():new( "QPixmap", pQPixmap )
|
||||
oBitmap := QBitmap():new( "QSize" , pQSize )
|
||||
oBitmap := QBitmap():new( cImageFilename, [ cFormat ] )
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QBitmap>
|
||||
|
||||
|
||||
/*
|
||||
* QBitmap ()
|
||||
* QBitmap ( const QPixmap & pixmap )
|
||||
* QBitmap ( int width, int height )
|
||||
* QBitmap ( const QSize & size )
|
||||
* QBitmap ( const QString & fileName, const char * format = 0 )
|
||||
* ~QBitmap ()
|
||||
*/
|
||||
HB_FUNC( QT_QBITMAP )
|
||||
{
|
||||
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QBitmap* ) new QBitmap( *hbqt_par_QBitmap( 1 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 1 && HB_ISCHAR( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QBitmap* ) new QBitmap( hbqt_par_QString( 1 ), ( const char * ) 0 ) );
|
||||
}
|
||||
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISCHAR( 2 ) )
|
||||
{
|
||||
hb_retptr( ( QBitmap* ) new QBitmap( hbqt_par_QString( 1 ), hb_parc( 2 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 2 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) )
|
||||
{
|
||||
hb_retptr( ( QBitmap* ) new QBitmap( hb_parni( 1 ), hb_parni( 2 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
|
||||
{
|
||||
if( ( QString ) "QPixmap" == hbqt_par_QString( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QBitmap* ) new QBitmap( *hbqt_par_QPixmap( 2 ) ) );
|
||||
}
|
||||
else if( ( QString ) "QSize" == hbqt_par_QString( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QBitmap* ) new QBitmap( *hbqt_par_QSize( 2 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( ( QBitmap* ) new QBitmap() );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( ( QBitmap* ) new QBitmap() );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
void clear ()
|
||||
QBitmap transformed ( const QTransform & matrix ) const
|
||||
QBitmap transformed ( const QMatrix & matrix ) const
|
||||
|
||||
//QBitmap fromData ( const QSize & size, const uchar * bits, QImage::Format monoFormat = QImage::Format_MonoLSB )
|
||||
QBitmap fromImage ( const QImage & image, Qt::ImageConversionFlags flags = Qt::AutoColor )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,131 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QLayout
|
||||
New = nDirection, pParent
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QBoxLayout>
|
||||
|
||||
|
||||
/*
|
||||
* QBoxLayout ( Direction dir, QWidget * parent = 0 )
|
||||
* ~QBoxLayout ()
|
||||
*/
|
||||
HB_FUNC( QT_QBOXLAYOUT )
|
||||
{
|
||||
hb_retptr( ( QBoxLayout* ) new QBoxLayout( ( QBoxLayout::Direction ) hb_parni( 1 ), hbqt_par_QWidget( 2 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum Direction { LeftToRight, RightToLeft, TopToBottom, BottomToTop }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
void addLayout ( QLayout * layout, int stretch = 0 ){
|
||||
QGC_POINTER * p = ( QGC_POINTER * ) hb_parptrGC( hbqt_gcFuncs(), 1 );
|
||||
QGC_POINTER * q = ( QGC_POINTER * ) hb_parptrGC( hbqt_gcFuncs(), 2 );
|
||||
HB_TRACE( HB_TR_DEBUG, ( "Entering function QT_QBOXLAYOUT_ADDLAYOUT()" ) );
|
||||
if( p && p->ph && q && q->ph )
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "QT_QBOXLAYOUT_ADDLAYOUT() Qt object: %p is attached to: %p", p->ph, q->ph ) );
|
||||
q->bNew = HB_FALSE;
|
||||
hbqt_par_QBoxLayout( 1 )->addLayout( hbqt_par_QLayout( 2 ), hb_parni( 3 ) );
|
||||
}
|
||||
}
|
||||
void addSpacerItem ( QSpacerItem * spacerItem ){
|
||||
QGC_POINTER * p = ( QGC_POINTER * ) hb_parptrGC( hbqt_gcFuncs(), 1 );
|
||||
QGC_POINTER * q = ( QGC_POINTER * ) hb_parptrGC( hbqt_gcFuncs(), 2 );
|
||||
HB_TRACE( HB_TR_DEBUG, ( "Entering function QT_QBOXLAYOUT_ADDSPACERITEM()" ) );
|
||||
if( p && p->ph && q && q->ph )
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "QT_QBOXLAYOUT_ADDSPACERITEM() Qt object: %p is attached to: %p", p->ph, q->ph ) );
|
||||
q->bNew = HB_FALSE;
|
||||
hbqt_par_QBoxLayout( 1 )->addSpacerItem( hbqt_par_QSpacerItem( 2 ) );
|
||||
}
|
||||
}
|
||||
void addSpacing ( int size )
|
||||
void addStretch ( int stretch = 0 )
|
||||
void addStrut ( int size )
|
||||
void addWidget ( QWidget * widget, int stretch = 0, Qt::Alignment alignment = 0 ){
|
||||
QGC_POINTER * p = ( QGC_POINTER * ) hb_parptrGC( hbqt_gcFuncs(), 1 );
|
||||
QGC_POINTER * q = ( QGC_POINTER * ) hb_parptrGC( hbqt_gcFuncs(), 2 );
|
||||
HB_TRACE( HB_TR_DEBUG, ( "Entering function QT_QBOXLAYOUT_ADDWIDGET()" ) );
|
||||
if( p && p->ph && q && q->ph )
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "QT_QBOXLAYOUT_ADDWIDGET() Qt object: %p is attached to: %p", p->ph, q->ph ) );
|
||||
q->bNew = HB_FALSE;
|
||||
hbqt_par_QBoxLayout( 1 )->addWidget( hbqt_par_QWidget( 2 ), hb_parni( 3 ), ( Qt::Alignment ) hb_parni( 4 ) );
|
||||
}
|
||||
}
|
||||
Direction direction () const
|
||||
void insertLayout ( int index, QLayout * layout, int stretch = 0 )
|
||||
void insertSpacerItem ( int index, QSpacerItem * spacerItem )
|
||||
void insertSpacing ( int index, int size )
|
||||
void insertStretch ( int index, int stretch = 0 )
|
||||
void insertWidget ( int index, QWidget * widget, int stretch = 0, Qt::Alignment alignment = 0 )
|
||||
virtual void invalidate ()
|
||||
void setDirection ( Direction direction )
|
||||
void setSpacing ( int spacing )
|
||||
void setStretch ( int index, int stretch )
|
||||
bool setStretchFactor ( QWidget * widget, int stretch )
|
||||
bool setStretchFactor ( QLayout * layout, int stretch )
|
||||
int spacing () const
|
||||
int stretch ( int index ) const
|
||||
</PROTOS>
|
||||
@@ -1,170 +0,0 @@
|
||||
/*
|
||||
* $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 = PlainObject
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<DOC>
|
||||
oBrush := QBrush():new()
|
||||
oBrush := QBrush():new( pQBrush )
|
||||
oBrush := QBrush():new( nQt_GlobalColor )
|
||||
oBrush := QBrush():new( nQt_GlobalColor, nQt_BrushStyle )
|
||||
oBrush := QBrush():new( pQColor, nQt_BrushStyle )
|
||||
oBrush := QBrush():new( pQColor, pQPixmap )
|
||||
oBrush := QBrush():new( nQt_GlobalColor, pQPixmap )
|
||||
oBrush := QBrush():new( "QPixmap" , pQPixmap )
|
||||
oBrush := QBrush():new( "QImage" , pQImage )
|
||||
oBrush := QBrush():new( "QGradient", pQGradient )
|
||||
oBrush := QBrush():new( "QColor" , pQColor, [ nQt_BrushStyle = Qt_SolidPattern ] )
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QBrush>
|
||||
|
||||
|
||||
/*
|
||||
* QBrush ()
|
||||
* QBrush ( Qt::BrushStyle style )
|
||||
* QBrush ( const QColor & color, Qt::BrushStyle style = Qt::SolidPattern )
|
||||
* QBrush ( Qt::GlobalColor color, Qt::BrushStyle style = Qt::SolidPattern )
|
||||
* QBrush ( const QColor & color, const QPixmap & pixmap )
|
||||
* QBrush ( Qt::GlobalColor color, const QPixmap & pixmap )
|
||||
* QBrush ( const QPixmap & pixmap )
|
||||
* QBrush ( const QImage & image )
|
||||
* QBrush ( const QBrush & other )
|
||||
* QBrush ( const QGradient & gradient )
|
||||
* ~QBrush ()
|
||||
*/
|
||||
HB_FUNC( QT_QBRUSH )
|
||||
{
|
||||
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QBrush* ) new QBrush( *hbqt_par_QBrush( 1 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 1 && HB_ISNUM( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QBrush* ) new QBrush( ( Qt::GlobalColor ) hb_parni( 1 ), Qt::SolidPattern ) );
|
||||
}
|
||||
else if( hb_pcount() == 2 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) )
|
||||
{
|
||||
hb_retptr( ( QBrush* ) new QBrush( ( Qt::GlobalColor ) hb_parni( 1 ), ( Qt::BrushStyle ) hb_parni( 2 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISNUM( 2 ) )
|
||||
{
|
||||
hb_retptr( ( QBrush* ) new QBrush( *hbqt_par_QColor( 1 ), ( Qt::BrushStyle ) hb_parni( 2 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISPOINTER( 2 ) )
|
||||
{
|
||||
hb_retptr( ( QBrush* ) new QBrush( *hbqt_par_QColor( 1 ), *hbqt_par_QPixmap( 2 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 2 && HB_ISNUM( 1 ) && HB_ISPOINTER( 2 ) )
|
||||
{
|
||||
hb_retptr( ( QBrush* ) new QBrush( ( Qt::GlobalColor ) hb_parni( 1 ), *hbqt_par_QPixmap( 2 ) ) );
|
||||
}
|
||||
else if( hb_pcount() >= 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
|
||||
{
|
||||
QString objName = hbqt_par_QString( 1 );
|
||||
|
||||
if( objName == ( QString ) "QPixmap" )
|
||||
{
|
||||
hb_retptr( ( QBrush* ) new QBrush( *hbqt_par_QPixmap( 2 ) ) );
|
||||
}
|
||||
else if( objName == ( QString ) "QImage" )
|
||||
{
|
||||
hb_retptr( ( QBrush* ) new QBrush( *hbqt_par_QImage( 2 ) ) );
|
||||
}
|
||||
else if( objName == ( QString ) "QGradient" )
|
||||
{
|
||||
hb_retptr( ( QBrush* ) new QBrush( *hbqt_par_QGradient( 2 ) ) );
|
||||
}
|
||||
else if( objName == ( QString ) "QColor" )
|
||||
{
|
||||
hb_retptr( ( QBrush* ) new QBrush( *hbqt_par_QColor( 2 ), HB_ISNUM( 3 ) ? ( Qt::BrushStyle ) hb_parni( 3 ) : Qt::SolidPattern ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( ( QBrush* ) new QBrush() );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( ( QBrush* ) new QBrush() );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<PROTOS>
|
||||
const QColor & color () const
|
||||
//const QGradient * gradient () const
|
||||
bool isOpaque () const
|
||||
const QMatrix & matrix () const
|
||||
void setColor ( const QColor & color )
|
||||
void setColor ( Qt::GlobalColor color )
|
||||
void setMatrix ( const QMatrix & matrix )
|
||||
void setStyle ( Qt::BrushStyle style )
|
||||
void setTexture ( const QPixmap & pixmap )
|
||||
void setTextureImage ( const QImage & image )
|
||||
void setTransform ( const QTransform & matrix )
|
||||
Qt::BrushStyle style () const
|
||||
QPixmap texture () const
|
||||
QImage textureImage () const
|
||||
QTransform transform () const
|
||||
</PROTOS>
|
||||
|
||||
@@ -1,101 +0,0 @@
|
||||
/*
|
||||
* $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 =
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<SUBCLASS>
|
||||
</SUBCLASS>
|
||||
|
||||
<DOC>
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QBuffer>
|
||||
|
||||
|
||||
/*
|
||||
* QBuffer ( QObject * parent = 0 )
|
||||
* QBuffer ( QByteArray * byteArray, QObject * parent = 0 )
|
||||
* ~QBuffer ()
|
||||
*/
|
||||
HB_FUNC( QT_QBUFFER )
|
||||
{
|
||||
hb_retptr( new QBuffer() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
QByteArray & buffer ()
|
||||
const QByteArray & buffer () const
|
||||
const QByteArray & data () const
|
||||
void setBuffer ( QByteArray * byteArray )
|
||||
void setData ( const char * data, int size )
|
||||
void setData ( const QByteArray & data )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
@@ -1,117 +0,0 @@
|
||||
/*
|
||||
* $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/QButtonGroup>
|
||||
|
||||
|
||||
/*
|
||||
* QButtonGroup ( QObject * parent = 0 )
|
||||
* ~QButtonGroup ()
|
||||
*/
|
||||
HB_FUNC( QT_QBUTTONGROUP )
|
||||
{
|
||||
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QButtonGroup* ) new QButtonGroup( hbqt_par_QObject( 1 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( ( QButtonGroup* ) new QButtonGroup() );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
void addButton ( QAbstractButton * button )
|
||||
void addButton ( QAbstractButton * button, int id )
|
||||
QAbstractButton * button ( int id ) const
|
||||
QList<QAbstractButton *> buttons () const
|
||||
QAbstractButton * checkedButton () const
|
||||
int checkedId () const
|
||||
bool exclusive () const
|
||||
int id ( QAbstractButton * button ) const
|
||||
void removeButton ( QAbstractButton * button )
|
||||
void setExclusive ( bool )
|
||||
void setId ( QAbstractButton * button, int id )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void buttonClicked ( QAbstractButton * button )
|
||||
void buttonClicked ( int id )
|
||||
void buttonPressed ( QAbstractButton * button )
|
||||
void buttonPressed ( int id )
|
||||
void buttonReleased ( QAbstractButton * button )
|
||||
void buttonReleased ( int id )
|
||||
</SIGNALS>
|
||||
|
||||
<VARIABLES>
|
||||
</VARIABLES>
|
||||
|
||||
|
||||
|
||||
@@ -1,196 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,136 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
|
||||
Inherit = QWidget
|
||||
New = pParent
|
||||
Calls = QT_QCalendarWidget
|
||||
|
||||
</CLASS>
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QCalendarWidget>
|
||||
#include <QtGui/QTextCharFormat>
|
||||
|
||||
/*
|
||||
* QCalendarWidget ( QWidget * parent = 0 )
|
||||
* ~QCalendarWidget ()
|
||||
*/
|
||||
HB_FUNC( QT_QCALENDARWIDGET )
|
||||
{
|
||||
hb_retptr( ( QCalendarWidget* ) new QCalendarWidget( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum HorizontalHeaderFormat { SingleLetterDayNames, ShortDayNames, LongDayNames, NoHorizontalHeader }
|
||||
enum SelectionMode { NoSelection, SingleSelection }
|
||||
enum VerticalHeaderFormat { ISOWeekNumbers, NoVerticalHeader }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
int dateEditAcceptDelay () const
|
||||
QMap<QDate, QTextCharFormat> dateTextFormat () const
|
||||
QTextCharFormat dateTextFormat ( const QDate & date ) const
|
||||
Qt::DayOfWeek firstDayOfWeek () const
|
||||
QTextCharFormat headerTextFormat () const
|
||||
HorizontalHeaderFormat horizontalHeaderFormat () const
|
||||
bool isDateEditEnabled () const
|
||||
bool isGridVisible () const
|
||||
bool isNavigationBarVisible () const
|
||||
QDate maximumDate () const
|
||||
QDate minimumDate () const
|
||||
int monthShown () const
|
||||
QDate selectedDate () const
|
||||
SelectionMode selectionMode () const
|
||||
void setDateEditAcceptDelay ( int delay )
|
||||
void setDateEditEnabled ( bool enable )
|
||||
void setDateTextFormat ( const QDate & date, const QTextCharFormat & format )
|
||||
void setFirstDayOfWeek ( Qt::DayOfWeek dayOfWeek )
|
||||
void setHeaderTextFormat ( const QTextCharFormat & format )
|
||||
void setHorizontalHeaderFormat ( HorizontalHeaderFormat format )
|
||||
void setMaximumDate ( const QDate & date )
|
||||
void setMinimumDate ( const QDate & date )
|
||||
void setSelectionMode ( SelectionMode mode )
|
||||
void setVerticalHeaderFormat ( VerticalHeaderFormat format )
|
||||
void setWeekdayTextFormat ( Qt::DayOfWeek dayOfWeek, const QTextCharFormat & format )
|
||||
VerticalHeaderFormat verticalHeaderFormat () const
|
||||
QTextCharFormat weekdayTextFormat ( Qt::DayOfWeek dayOfWeek ) const
|
||||
int yearShown () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
void setCurrentPage ( int year, int month )
|
||||
void setDateRange ( const QDate & min, const QDate & max )
|
||||
void setGridVisible ( bool show )
|
||||
void setNavigationBarVisible ( bool visible )
|
||||
void setSelectedDate ( const QDate & date )
|
||||
void showNextMonth ()
|
||||
void showNextYear ()
|
||||
void showPreviousMonth ()
|
||||
void showPreviousYear ()
|
||||
void showSelectedDate ()
|
||||
void showToday ()
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void activated ( const QDate & date )
|
||||
void clicked ( const QDate & date )
|
||||
void currentPageChanged ( int year, int month )
|
||||
void selectionChanged ()
|
||||
</SIGNALS>
|
||||
@@ -1,145 +0,0 @@
|
||||
/*
|
||||
* $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 =
|
||||
New =
|
||||
Destructor = no
|
||||
</CLASS>
|
||||
|
||||
<SUBCLASS>
|
||||
</SUBCLASS>
|
||||
|
||||
<DOC>
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QChar>
|
||||
|
||||
|
||||
/*
|
||||
* QChar ()
|
||||
* QChar ( char ch )
|
||||
* QChar ( uchar ch )
|
||||
* QChar ( QLatin1Char ch )
|
||||
* QChar ( uchar cell, uchar row )
|
||||
* QChar ( ushort code )
|
||||
* QChar ( short code )
|
||||
* QChar ( uint code )
|
||||
* QChar ( int code )
|
||||
* QChar ( SpecialCharacter ch )
|
||||
*/
|
||||
HB_FUNC( QT_QCHAR )
|
||||
{
|
||||
hb_retptr( new QChar() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum Category { Mark_NonSpacing, Mark_SpacingCombining, Mark_Enclosing, Number_DecimalDigit, ..., NoCategory }
|
||||
enum Decomposition { NoDecomposition, Canonical, Circle, Compat, ..., Wide }
|
||||
enum Direction { DirAL, DirAN, DirB, DirBN, ..., DirWS }
|
||||
enum Joining { Center, Dual, OtherJoining, Right }
|
||||
enum SpecialCharacter { Null, Nbsp, ReplacementCharacter, ObjectReplacementCharacter, ..., LineSeparator }
|
||||
enum UnicodeVersion { Unicode_1_1, Unicode_2_0, Unicode_2_1_2, Unicode_3_0, ..., Unicode_Unassigned }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
Category category () const
|
||||
uchar cell () const
|
||||
unsigned char combiningClass () const
|
||||
QString decomposition () const
|
||||
Decomposition decompositionTag () const
|
||||
int digitValue () const
|
||||
Direction direction () const
|
||||
bool hasMirrored () const
|
||||
bool isDigit () const
|
||||
bool isHighSurrogate () const
|
||||
bool isLetter () const
|
||||
bool isLetterOrNumber () const
|
||||
bool isLowSurrogate () const
|
||||
bool isLower () const
|
||||
bool isMark () const
|
||||
bool isNull () const
|
||||
bool isNumber () const
|
||||
bool isPrint () const
|
||||
bool isPunct () const
|
||||
bool isSpace () const
|
||||
bool isSymbol () const
|
||||
bool isTitleCase () const
|
||||
bool isUpper () const
|
||||
Joining joining () const
|
||||
QChar mirroredChar () const
|
||||
uchar row () const
|
||||
char toAscii () const
|
||||
QChar toCaseFolded () const
|
||||
char toLatin1 () const
|
||||
QChar toLower () const
|
||||
QChar toTitleCase () const
|
||||
QChar toUpper () const
|
||||
ushort & unicode ()
|
||||
ushort unicode () const
|
||||
UnicodeVersion unicodeVersion () const
|
||||
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
@@ -1,96 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
|
||||
Inherit = QAbstractButton
|
||||
New = pParent
|
||||
Calls = QT_QCheckBox
|
||||
|
||||
</CLASS>
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QCheckBox>
|
||||
|
||||
|
||||
/*
|
||||
* QCheckBox ( QWidget * parent = 0 )
|
||||
* QCheckBox ( const QString & text, QWidget * parent = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QCHECKBOX )
|
||||
{
|
||||
if( hb_pcount() >= 1 && HB_ISCHAR( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QCheckBox* ) new QCheckBox( hbqt_par_QString( 1 ), hbqt_par_QWidget( 2 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( ( QCheckBox* ) new QCheckBox( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<PROTOS>
|
||||
Qt::CheckState checkState () const
|
||||
bool isTristate () const
|
||||
void setCheckState ( Qt::CheckState state )
|
||||
void setTristate ( bool y = true )
|
||||
</PROTOS>
|
||||
|
||||
<SIGNALS>
|
||||
void stateChanged ( int state )
|
||||
</SIGNALS>
|
||||
@@ -1,112 +0,0 @@
|
||||
/*
|
||||
* $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/QPalette>
|
||||
#include <QtGui/QClipboard>
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtCore/QMimeData>
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
*/
|
||||
HB_FUNC( QT_QCLIPBOARD )
|
||||
{
|
||||
hb_retptr( ( QClipboard* ) QApplication::clipboard() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum Mode { Clipboard, Selection, FindBuffer }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
void clear ( Mode mode = Clipboard )
|
||||
QImage image ( Mode mode = Clipboard ) const
|
||||
//const QMimeData * mimeData ( Mode mode = Clipboard ) const
|
||||
bool ownsClipboard () const
|
||||
bool ownsFindBuffer () const
|
||||
bool ownsSelection () const
|
||||
QPixmap pixmap ( Mode mode = Clipboard ) const
|
||||
void setImage ( const QImage & image, Mode mode = Clipboard )
|
||||
void setMimeData ( QMimeData * src, Mode mode = Clipboard )
|
||||
void setPixmap ( const QPixmap & pixmap, Mode mode = Clipboard )
|
||||
void setText ( const QString & text, Mode mode = Clipboard )
|
||||
bool supportsFindBuffer () const
|
||||
bool supportsSelection () const
|
||||
QString text ( Mode mode = Clipboard ) const
|
||||
#
|
||||
// QString text ( QString & subtype, Mode mode = Clipboard ) const
|
||||
#
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void changed ( QClipboard::Mode mode )
|
||||
void dataChanged ()
|
||||
void findBufferChanged ()
|
||||
void selectionChanged ()
|
||||
</SIGNALS>
|
||||
@@ -1,207 +0,0 @@
|
||||
/*
|
||||
* $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 = PlainObject
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<DOC>
|
||||
oColor := QColor():new() // You will supply other parameter later
|
||||
oColor := QColor():new( nQt_Color ) // R: hbqt.ch
|
||||
oColor := QColor():new( nRGB ) // ( nR + ( nG * 256 ) + ( nB * 256 * 256 ) )
|
||||
oColor := QColor():new( cColorName ) // #RRGGBB
|
||||
oColor := QColor():new( pQColor ) // Pointer to previously obtained QColor
|
||||
oColor := QColor():new( nR, nG, nB ) // Red Green Blue values
|
||||
oColor := QColor():new( nR, nG, nB, nAlpha ) // Red Green Blue values with Alpha Channel
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QColor>
|
||||
|
||||
/*
|
||||
QColor ()
|
||||
QColor ( int r, int g, int b, int a = 255 )
|
||||
QColor ( QRgb color )
|
||||
QColor ( Qt::GlobalColor color )
|
||||
QColor ( const QString & name )
|
||||
QColor ( const char * name )
|
||||
QColor ( const QColor & color )
|
||||
~QColor ()
|
||||
*/
|
||||
HB_FUNC( QT_QCOLOR )
|
||||
{
|
||||
if( hb_pcount() >= 1 )
|
||||
{
|
||||
if( hb_pcount() == 1 && HB_ISNUM( 1 ) && hb_parni( 1 ) < 25 )
|
||||
{
|
||||
hb_retptr( ( QColor* ) new QColor( ( Qt::GlobalColor ) hb_parni( 1 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 1 && HB_ISNUM( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QColor* ) new QColor( ( QRgb ) hb_parni( 1 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 1 && HB_ISCHAR( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QColor* ) new QColor( hbqt_par_QString( 1 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QColor* ) new QColor( *hbqt_par_QColor( 1 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 3 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) )
|
||||
{
|
||||
hb_retptr( ( QColor* ) new QColor( hb_parni( 1 ), hb_parni( 2 ), hb_parni( 3 ), ( int ) 255 ) );
|
||||
}
|
||||
else if( hb_pcount() == 4 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) && HB_ISNUM( 4 ) )
|
||||
{
|
||||
hb_retptr( ( QColor* ) new QColor( hb_parni( 1 ), hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( ( QColor* ) new QColor() );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( ( QColor* ) new QColor() );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum Spec { Rgb, Hsv, Cmyk, Invalid }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
int alpha () const
|
||||
qreal alphaF () const
|
||||
int black () const
|
||||
qreal blackF () const
|
||||
int blue () const
|
||||
qreal blueF () const
|
||||
QColor convertTo ( Spec colorSpec ) const
|
||||
int cyan () const
|
||||
qreal cyanF () const
|
||||
QColor darker ( int factor = 200 ) const
|
||||
void getCmyk ( int * c, int * m, int * y, int * k, int * a = 0 )
|
||||
void getCmykF ( qreal * c, qreal * m, qreal * y, qreal * k, qreal * a = 0 )
|
||||
void getHsv ( int * h, int * s, int * v, int * a = 0 ) const
|
||||
void getHsvF ( qreal * h, qreal * s, qreal * v, qreal * a = 0 ) const
|
||||
void getRgb ( int * r, int * g, int * b, int * a = 0 ) const
|
||||
void getRgbF ( qreal * r, qreal * g, qreal * b, qreal * a = 0 ) const
|
||||
int green () const
|
||||
qreal greenF () const
|
||||
int hue () const
|
||||
qreal hueF () const
|
||||
bool isValid () const
|
||||
QColor lighter ( int factor = 150 ) const
|
||||
int magenta () const
|
||||
qreal magentaF () const
|
||||
QString name () const
|
||||
int red () const
|
||||
qreal redF () const
|
||||
QRgb rgb () const
|
||||
QRgb rgba () const
|
||||
int saturation () const
|
||||
qreal saturationF () const
|
||||
void setAlpha ( int alpha )
|
||||
void setAlphaF ( qreal alpha )
|
||||
void setBlue ( int blue )
|
||||
void setBlueF ( qreal blue )
|
||||
void setCmyk ( int c, int m, int y, int k, int a = 255 )
|
||||
void setCmykF ( qreal c, qreal m, qreal y, qreal k, qreal a = 1.0 )
|
||||
void setGreen ( int green )
|
||||
void setGreenF ( qreal green )
|
||||
void setHsv ( int h, int s, int v, int a = 255 )
|
||||
void setHsvF ( qreal h, qreal s, qreal v, qreal a = 1.0 )
|
||||
void setNamedColor ( const QString & name )
|
||||
void setRed ( int red )
|
||||
void setRedF ( qreal red )
|
||||
|
||||
# functions below are swapped as we are used to pass RGB() as composite color
|
||||
#
|
||||
void setRgb ( QRgb rgb )
|
||||
void setRgb ( int r, int g, int b, int a = 255 )
|
||||
void setRgba ( QRgb rgba )
|
||||
void setRgbF ( qreal r, qreal g, qreal b, qreal a = 1.0 )
|
||||
#
|
||||
|
||||
Spec spec () const
|
||||
QColor toCmyk () const
|
||||
QColor toHsv () const
|
||||
QColor toRgb () const
|
||||
int value () const
|
||||
qreal valueF () const
|
||||
int yellow () const
|
||||
qreal yellowF () const
|
||||
|
||||
|
||||
//bool allowX11ColorNames ()
|
||||
QStringList colorNames ()
|
||||
QColor fromCmyk ( int c, int m, int y, int k, int a = 255 )
|
||||
QColor fromCmykF ( qreal c, qreal m, qreal y, qreal k, qreal a = 1.0 )
|
||||
QColor fromHsv ( int h, int s, int v, int a = 255 )
|
||||
QColor fromHsvF ( qreal h, qreal s, qreal v, qreal a = 1.0 )
|
||||
QColor fromRgb ( QRgb rgb )
|
||||
QColor fromRgb ( int r, int g, int b, int a = 255 )
|
||||
QColor fromRgbF ( qreal r, qreal g, qreal b, qreal a = 1.0 )
|
||||
QColor fromRgba ( QRgb rgba )
|
||||
//void setAllowX11ColorNames ( bool enabled )
|
||||
</PROTOS>
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
|
||||
Inherit = QDialog
|
||||
New = pParent
|
||||
Calls = QT_QColorDialog
|
||||
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QColorDialog>
|
||||
|
||||
/*
|
||||
* QColorDialog ( QWidget * parent = 0 )
|
||||
* QColorDialog ( const QColor & initial, QWidget * parent = 0 )
|
||||
* ~QColorDialog ()
|
||||
*/
|
||||
HB_FUNC( QT_QCOLORDIALOG )
|
||||
{
|
||||
if( hb_pcount() >= 1 && HB_ISNUM( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QColorDialog* ) new QColorDialog( hb_parni( 1 ), hbqt_par_QWidget( 2 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( ( QColorDialog* ) new QColorDialog( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum ColorDialogOption { ShowAlphaChannel, NoButtons, DontUseNativeDialog }
|
||||
flags ColorDialogOptions
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
QColor currentColor () const
|
||||
void open ()
|
||||
//void open ( QObject * receiver, const char * member )
|
||||
ColorDialogOptions options () const
|
||||
QColor selectedColor () const
|
||||
void setCurrentColor ( const QColor & color )
|
||||
void setOption ( ColorDialogOption option, bool on = true )
|
||||
void setOptions ( ColorDialogOptions options )
|
||||
virtual void setVisible ( bool visible )
|
||||
bool testOption ( ColorDialogOption option ) const
|
||||
|
||||
|
||||
QRgb customColor ( int index )
|
||||
int customCount ()
|
||||
QColor getColor ( const QColor & initial, QWidget * parent, const QString & title, ColorDialogOptions options = 0 )
|
||||
QColor getColor ( const QColor & initial = Qt::white, QWidget * parent = 0 )
|
||||
void setCustomColor ( int index, QRgb color )
|
||||
void setStandardColor ( int index, QRgb color )
|
||||
</PROTOS>
|
||||
|
||||
<SIGNALS>
|
||||
void colorSelected ( const QColor & color )
|
||||
void currentColorChanged ( const QColor & color )
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
@@ -1,158 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
|
||||
Inherit = QWidget
|
||||
New = pParent
|
||||
Calls = QT_QComboBox
|
||||
|
||||
</CLASS>
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QComboBox>
|
||||
|
||||
|
||||
/*
|
||||
* QComboBox ( QWidget * parent = 0 )
|
||||
* ~QComboBox ()
|
||||
*/
|
||||
HB_FUNC( QT_QCOMBOBOX )
|
||||
{
|
||||
hb_retptr( ( QComboBox* ) new QComboBox( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum InsertPolicy { NoInsert, InsertAtTop, InsertAtCurrent, InsertAtBottom, ..., InsertAlphabetically }
|
||||
enum SizeAdjustPolicy { AdjustToContents, AdjustToContentsOnFirstShow, AdjustToMinimumContentsLength, AdjustToMinimumContentsLengthWithIcon }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
void addItem ( const QString & text, const QVariant & userData = QVariant() )
|
||||
void addItem ( const QIcon & icon, const QString & text, const QVariant & userData = QVariant() )
|
||||
void addItems ( const QStringList & texts )
|
||||
QCompleter * completer () const
|
||||
int count () const
|
||||
int currentIndex () const
|
||||
QString currentText () const
|
||||
bool duplicatesEnabled () const
|
||||
int findData ( const QVariant & data, int role = Qt::UserRole, Qt::MatchFlags flags = Qt::MatchExactly | Qt::MatchCaseSensitive ) const
|
||||
int findText ( const QString & text, Qt::MatchFlags flags = Qt::MatchExactly | Qt::MatchCaseSensitive ) const
|
||||
bool hasFrame () const
|
||||
virtual void hidePopup ()
|
||||
QSize iconSize () const
|
||||
void insertItem ( int index, const QString & text, const QVariant & userData = QVariant() )
|
||||
void insertItem ( int index, const QIcon & icon, const QString & text, const QVariant & userData = QVariant() )
|
||||
void insertItems ( int index, const QStringList & list )
|
||||
InsertPolicy insertPolicy () const
|
||||
void insertSeparator ( int index )
|
||||
bool isEditable () const
|
||||
QVariant itemData ( int index, int role = Qt::UserRole ) const
|
||||
QAbstractItemDelegate * itemDelegate () const
|
||||
QIcon itemIcon ( int index ) const
|
||||
QString itemText ( int index ) const
|
||||
QLineEdit * lineEdit () const
|
||||
int maxCount () const
|
||||
int maxVisibleItems () const
|
||||
int minimumContentsLength () const
|
||||
QAbstractItemModel * model () const
|
||||
int modelColumn () const
|
||||
void removeItem ( int index )
|
||||
QModelIndex rootModelIndex () const
|
||||
void setCompleter ( QCompleter * completer )
|
||||
void setDuplicatesEnabled ( bool enable )
|
||||
void setEditable ( bool editable )
|
||||
void setFrame ( bool )
|
||||
void setIconSize ( const QSize & size )
|
||||
void setInsertPolicy ( InsertPolicy policy )
|
||||
void setItemData ( int index, const QVariant & value, int role = Qt::UserRole )
|
||||
void setItemDelegate ( QAbstractItemDelegate * delegate )
|
||||
void setItemIcon ( int index, const QIcon & icon )
|
||||
void setItemText ( int index, const QString & text )
|
||||
void setLineEdit ( QLineEdit * edit )
|
||||
void setMaxCount ( int max )
|
||||
void setMaxVisibleItems ( int maxItems )
|
||||
void setMinimumContentsLength ( int characters )
|
||||
void setModel ( QAbstractItemModel * model )
|
||||
void setModelColumn ( int visibleColumn )
|
||||
void setRootModelIndex ( const QModelIndex & index )
|
||||
void setSizeAdjustPolicy ( SizeAdjustPolicy policy )
|
||||
void setValidator ( const QValidator * validator )
|
||||
void setView ( QAbstractItemView * itemView )
|
||||
virtual void showPopup ()
|
||||
SizeAdjustPolicy sizeAdjustPolicy () const
|
||||
virtual const QValidator * validator () const
|
||||
QAbstractItemView * view () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
void clear ()
|
||||
void clearEditText ()
|
||||
void setCurrentIndex ( int index )
|
||||
void setEditText ( const QString & text )
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void activated ( int index )
|
||||
void activated ( const QString & text )
|
||||
void currentIndexChanged ( int index )
|
||||
void currentIndexChanged ( const QString & text )
|
||||
void editTextChanged ( const QString & text )
|
||||
void highlighted ( int index )
|
||||
void highlighted ( const QString & text )
|
||||
</SIGNALS>
|
||||
@@ -1,85 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
|
||||
Inherit = QPushButton
|
||||
New = pParent
|
||||
Calls = QT_QCommandLinkButton
|
||||
|
||||
</CLASS>
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QCommandLinkButton>
|
||||
|
||||
|
||||
/*
|
||||
* QCommandLinkButton ( QWidget * parent = 0 )
|
||||
* QCommandLinkButton ( const QString & text, QWidget * parent = 0 )
|
||||
* QCommandLinkButton ( const QString & text, const QString & description, QWidget * parent = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QCOMMANDLINKBUTTON )
|
||||
{
|
||||
hb_retptr( ( QCommandLinkButton* ) new QCommandLinkButton( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<PROTOS>
|
||||
QString description () const
|
||||
void setDescription ( const QString & description )
|
||||
</PROTOS>
|
||||
|
||||
@@ -1,90 +0,0 @@
|
||||
/*
|
||||
* $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 = QStyle
|
||||
Type = Core
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QCommonStyle>
|
||||
|
||||
|
||||
/*
|
||||
* QCommonStyle ()
|
||||
*/
|
||||
HB_FUNC( QT_QCOMMONSTYLE )
|
||||
{
|
||||
hb_retptr( ( QCommonStyle* ) new QCommonStyle() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,127 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,97 +0,0 @@
|
||||
/*
|
||||
* $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 = QGradient
|
||||
Type = Core
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QConicalGradient>
|
||||
|
||||
|
||||
/*
|
||||
* QConicalGradient ()
|
||||
* QConicalGradient ( const QPointF & center, qreal angle )
|
||||
* QConicalGradient ( qreal cx, qreal cy, qreal angle )
|
||||
*/
|
||||
HB_FUNC( QT_QCONICALGRADIENT )
|
||||
{
|
||||
hb_retptr( ( QConicalGradient* ) new QConicalGradient() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum CoordinateMode { LogicalMode, StretchToDeviceMode, ObjectBoundingMode }
|
||||
enum Spread { PadSpread, RepeatSpread, ReflectSpread }
|
||||
enum Type { LinearGradient, RadialGradient, ConicalGradient, NoGradient }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
qreal angle () const
|
||||
QPointF center () const
|
||||
void setAngle ( qreal angle )
|
||||
void setCenter ( const QPointF & center )
|
||||
void setCenter ( qreal x, qreal y )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
@@ -1,100 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,135 +0,0 @@
|
||||
/*
|
||||
* $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/QStringList>
|
||||
#include <QtCore/QCoreApplication>
|
||||
|
||||
|
||||
/*
|
||||
* QCoreApplication ( int & argc, char ** argv )
|
||||
* ~QCoreApplication ()
|
||||
*/
|
||||
HB_FUNC( QT_QCOREAPPLICATION )
|
||||
{
|
||||
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum Encoding { CodecForTr, UnicodeUTF8, DefaultCodec }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
// bool filterEvent ( void * message, long * result )
|
||||
virtual bool notify ( QObject * receiver, QEvent * event )
|
||||
// EventFilter setEventFilter ( EventFilter filter )
|
||||
// virtual bool winEventFilter ( MSG * msg, long * result )
|
||||
|
||||
void addLibraryPath ( const QString & path )
|
||||
QString applicationDirPath ()
|
||||
QString applicationFilePath ()
|
||||
QString applicationName ()
|
||||
qint64 applicationPid ()
|
||||
QString applicationVersion ()
|
||||
QStringList arguments ()
|
||||
bool closingDown ()
|
||||
int exec ()
|
||||
void exit ( int returnCode = 0 )
|
||||
void flush ()
|
||||
bool hasPendingEvents ()
|
||||
void installTranslator ( QTranslator * translationFile )
|
||||
QCoreApplication * instance ()
|
||||
QStringList libraryPaths ()
|
||||
QString organizationDomain ()
|
||||
QString organizationName ()
|
||||
void postEvent ( QObject * receiver, QEvent * event )
|
||||
void postEvent ( QObject * receiver, QEvent * event, int priority )
|
||||
void processEvents ( QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents )
|
||||
void processEvents ( QEventLoop::ProcessEventsFlags flags, int maxtime )
|
||||
void removeLibraryPath ( const QString & path )
|
||||
void removePostedEvents ( QObject * receiver )
|
||||
void removePostedEvents ( QObject * receiver, int eventType )
|
||||
void removeTranslator ( QTranslator * translationFile )
|
||||
bool sendEvent ( QObject * receiver, QEvent * event )
|
||||
void sendPostedEvents ( QObject * receiver, int event_type )
|
||||
void sendPostedEvents ()
|
||||
void setApplicationName ( const QString & application )
|
||||
void setApplicationVersion ( const QString & version )
|
||||
void setAttribute ( Qt::ApplicationAttribute attribute, bool on = true )
|
||||
void setLibraryPaths ( const QStringList & paths )
|
||||
void setOrganizationDomain ( const QString & orgDomain )
|
||||
void setOrganizationName ( const QString & orgName )
|
||||
bool startingUp ()
|
||||
bool testAttribute ( Qt::ApplicationAttribute attribute )
|
||||
QString translate ( const char * context, const char * sourceText, const char * disambiguation, Encoding encoding, int n )
|
||||
QString translate ( const char * context, const char * sourceText, const char * disambiguation = 0, Encoding encoding = CodecForTr )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
void quit ()
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void aboutToQuit ()
|
||||
</SIGNALS>
|
||||
@@ -1,145 +0,0 @@
|
||||
/*
|
||||
* $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 = PlainObject
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<DOC>
|
||||
oCursor := QCursor():new()
|
||||
oCursor := QCursor():new( pQCursor )
|
||||
oCursor := QCursor():new( nQt_CursorShape )
|
||||
oCursor := QCursor():new( "QPixmap", pQPixmap, [ nHotX = -1 ] , [ nHotY = -1 ] )
|
||||
oCursor := QCursor():new( pQBitmap, pQBitmapAsMask, [ nHotX = -1 ], [ nHotY = -1 ] )
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QPixmap>
|
||||
#include <QtGui/QCursor>
|
||||
#include <QtGui/QBitmap>
|
||||
|
||||
/*
|
||||
* QCursor ()
|
||||
* QCursor ( Qt::CursorShape shape )
|
||||
* QCursor ( const QBitmap & bitmap, const QBitmap & mask, int hotX = -1, int hotY = -1 )
|
||||
* QCursor ( const QPixmap & pixmap, int hotX = -1, int hotY = -1 )
|
||||
* QCursor ( const QCursor & c )
|
||||
* QCursor ( HCURSOR cursor )
|
||||
* QCursor ( Qt::HANDLE handle )
|
||||
* ~QCursor ()
|
||||
*/
|
||||
HB_FUNC( QT_QCURSOR )
|
||||
{
|
||||
if( hb_pcount() == 1 && HB_ISNUM( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QCursor* ) new QCursor( ( Qt::CursorShape ) hb_parni( 1 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QCursor* ) new QCursor( *hbqt_par_QCursor( 1 ) ) );
|
||||
}
|
||||
else if( hb_pcount() >= 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
|
||||
{
|
||||
QString objName = hbqt_par_QString( 1 );
|
||||
|
||||
if( objName == ( QString ) "QPixmap" )
|
||||
{
|
||||
hb_retptr( ( QCursor* ) new QCursor( *hbqt_par_QPixmap( 2 ), HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1, HB_ISNUM( 4 ) ? hb_parni( 4 ) : -1 ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( ( QCursor* ) new QCursor() );
|
||||
}
|
||||
}
|
||||
else if( hb_pcount() >= 2 && HB_ISPOINTER( 1 ) && HB_ISPOINTER( 2 ) )
|
||||
{
|
||||
hb_retptr( ( QCursor* ) new QCursor( *hbqt_par_QBitmap( 1 ), *hbqt_par_QBitmap( 2 ), HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1, HB_ISNUM( 4 ) ? hb_parni( 4 ) : -1 ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( ( QCursor* ) new QCursor() );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
const QBitmap * bitmap () const
|
||||
// HCURSOR_or_HANDLE handle () const
|
||||
QPoint hotSpot () const
|
||||
const QBitmap * mask () const
|
||||
QPixmap pixmap () const
|
||||
void setShape ( Qt::CursorShape shape )
|
||||
Qt::CursorShape shape () const
|
||||
|
||||
QPoint pos ()
|
||||
void setPos ( int x, int y )
|
||||
void setPos ( const QPoint & p )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
<VARIABLES>
|
||||
</VARIABLES>
|
||||
@@ -1,113 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,112 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,78 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QDateTimeEdit
|
||||
New = pParent
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QDateEdit>
|
||||
|
||||
|
||||
/*
|
||||
* QDateEdit ( QWidget * parent = 0 )
|
||||
* QDateEdit ( const QDate & date, QWidget * parent = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QDATEEDIT )
|
||||
{
|
||||
hb_retptr( ( QDateEdit* ) new QDateEdit( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,125 +0,0 @@
|
||||
/*
|
||||
* $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/QDateTime>
|
||||
|
||||
|
||||
/*
|
||||
* QDateTime ()
|
||||
* QDateTime ( const QDate & date )
|
||||
* QDateTime ( const QDate & date, const QTime & time, Qt::TimeSpec spec = Qt::LocalTime )
|
||||
* QDateTime ( const QDateTime & other )
|
||||
* ~QDateTime ()
|
||||
*/
|
||||
HB_FUNC( QT_QDATETIME )
|
||||
{
|
||||
hb_retptr( ( QDateTime* ) new QDateTime() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
QDateTime addDays ( int ndays ) const
|
||||
QDateTime addMSecs ( qint64 msecs ) const
|
||||
QDateTime addMonths ( int nmonths ) const
|
||||
QDateTime addSecs ( int s ) const
|
||||
QDateTime addYears ( int nyears ) const
|
||||
QDate date () const
|
||||
int daysTo ( const QDateTime & other ) const
|
||||
bool isNull () const
|
||||
bool isValid () const
|
||||
int secsTo ( const QDateTime & other ) const
|
||||
void setDate ( const QDate & date )
|
||||
void setTime ( const QTime & time )
|
||||
void setTimeSpec ( Qt::TimeSpec spec )
|
||||
void setTime_t ( uint seconds )
|
||||
QTime time () const
|
||||
Qt::TimeSpec timeSpec () const
|
||||
QDateTime toLocalTime () const
|
||||
QString toString ( const QString & format ) const
|
||||
QString toString ( Qt::DateFormat format = Qt::TextDate ) const
|
||||
QDateTime toTimeSpec ( Qt::TimeSpec specification ) const
|
||||
uint toTime_t () const
|
||||
QDateTime toUTC () const
|
||||
|
||||
|
||||
QDateTime currentDateTime ()
|
||||
QDateTime fromString ( const QString & string, Qt::DateFormat format = Qt::TextDate )
|
||||
QDateTime fromString ( const QString & string, const QString & format )
|
||||
QDateTime fromTime_t ( uint seconds )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
<VARIABLES>
|
||||
</VARIABLES>
|
||||
|
||||
|
||||
|
||||
@@ -1,137 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QAbstractSpinBox
|
||||
New = pParent
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QDateTimeEdit>
|
||||
|
||||
|
||||
/*
|
||||
* QDateTimeEdit ( QWidget * parent = 0 )
|
||||
* QDateTimeEdit ( const QDateTime & datetime, QWidget * parent = 0 )
|
||||
* QDateTimeEdit ( const QDate & date, QWidget * parent = 0 )
|
||||
* QDateTimeEdit ( const QTime & time, QWidget * parent = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QDATETIMEEDIT )
|
||||
{
|
||||
hb_retptr( ( QDateTimeEdit* ) new QDateTimeEdit( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum Section { NoSection, AmPmSection, MSecSection, SecondSection, ..., YearSection }
|
||||
flags Sections
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
bool calendarPopup () const
|
||||
QCalendarWidget * calendarWidget () const
|
||||
void clearMaximumDate ()
|
||||
void clearMaximumDateTime ()
|
||||
void clearMaximumTime ()
|
||||
void clearMinimumDate ()
|
||||
void clearMinimumDateTime ()
|
||||
void clearMinimumTime ()
|
||||
Section currentSection () const
|
||||
int currentSectionIndex () const
|
||||
QDate date () const
|
||||
QDateTime dateTime () const
|
||||
QString displayFormat () const
|
||||
Sections displayedSections () const
|
||||
QDate maximumDate () const
|
||||
QDateTime maximumDateTime () const
|
||||
QTime maximumTime () const
|
||||
QDate minimumDate () const
|
||||
QDateTime minimumDateTime () const
|
||||
QTime minimumTime () const
|
||||
Section sectionAt ( int index ) const
|
||||
int sectionCount () const
|
||||
QString sectionText ( Section section ) const
|
||||
void setCalendarPopup ( bool enable )
|
||||
void setCalendarWidget ( QCalendarWidget * calendarWidget )
|
||||
void setCurrentSection ( Section section )
|
||||
void setCurrentSectionIndex ( int index )
|
||||
void setDateRange ( const QDate & min, const QDate & max )
|
||||
void setDateTimeRange ( const QDateTime & min, const QDateTime & max )
|
||||
void setDisplayFormat ( const QString & format )
|
||||
void setMaximumDate ( const QDate & max )
|
||||
void setMaximumDateTime ( const QDateTime & dt )
|
||||
void setMaximumTime ( const QTime & max )
|
||||
void setMinimumDate ( const QDate & min )
|
||||
void setMinimumDateTime ( const QDateTime & dt )
|
||||
void setMinimumTime ( const QTime & min )
|
||||
void setSelectedSection ( Section section )
|
||||
void setTimeRange ( const QTime & min, const QTime & max )
|
||||
void setTimeSpec ( Qt::TimeSpec spec )
|
||||
QTime time () const
|
||||
Qt::TimeSpec timeSpec () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
void setDate ( const QDate & date )
|
||||
void setDateTime ( const QDateTime & dateTime )
|
||||
void setTime ( const QTime & time )
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void dateChanged ( const QDate & date )
|
||||
void dateTimeChanged ( const QDateTime & datetime )
|
||||
void timeChanged ( const QTime & time )
|
||||
</SIGNALS>
|
||||
@@ -1,97 +0,0 @@
|
||||
/*
|
||||
* $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
|
||||
;
|
||||
|
||||
; Header File to Generate Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
Inherit = QWidget
|
||||
New = pParent
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QDesktopWidget>
|
||||
|
||||
|
||||
/*
|
||||
* QDesktopWidget ()
|
||||
* ~QDesktopWidget ()
|
||||
*/
|
||||
HB_FUNC( QT_QDESKTOPWIDGET )
|
||||
{
|
||||
hb_retptr( new QDesktopWidget() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<PROTOS>
|
||||
const QRect availableGeometry ( int screen = -1 ) const
|
||||
const QRect availableGeometry ( const QWidget * widget ) const
|
||||
const QRect availableGeometry ( const QPoint & p ) const
|
||||
bool isVirtualDesktop () const
|
||||
int numScreens () const
|
||||
int primaryScreen () const
|
||||
QWidget * screen ( int screen = -1 )
|
||||
const QRect screenGeometry ( int screen = -1 ) const
|
||||
const QRect screenGeometry ( const QWidget * widget ) const
|
||||
const QRect screenGeometry ( const QPoint & p ) const
|
||||
int screenNumber ( const QWidget * widget = 0 ) const
|
||||
int screenNumber ( const QPoint & point ) const
|
||||
</PROTOS>
|
||||
|
||||
<SIGNALS>
|
||||
void resized ( int screen )
|
||||
void workAreaResized ( int screen )
|
||||
</SIGNALS>
|
||||
@@ -1,87 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QAbstractSlider
|
||||
New = pParent
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QDial>
|
||||
|
||||
|
||||
/*
|
||||
* QDial ( QWidget * parent = 0 )
|
||||
* ~QDial ()
|
||||
*/
|
||||
HB_FUNC( QT_QDIAL )
|
||||
{
|
||||
hb_retptr( ( QDial* ) new QDial( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<PROTOS>
|
||||
int notchSize () const
|
||||
qreal notchTarget () const
|
||||
bool notchesVisible () const
|
||||
void setNotchTarget ( double target )
|
||||
bool wrapping () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
void setNotchesVisible ( bool visible )
|
||||
void setWrapping ( bool on )
|
||||
</SLOTS>
|
||||
@@ -1,101 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QWidget
|
||||
New = pParent, nFlags
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QDialog>
|
||||
|
||||
|
||||
/*
|
||||
* QDialog ( QWidget * parent = 0, Qt::WindowFlags f = 0 )
|
||||
* ~QDialog ()
|
||||
*/
|
||||
HB_FUNC( QT_QDIALOG )
|
||||
{
|
||||
hb_retptr( new QDialog( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum DialogCode { Accepted, Rejected }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
bool isSizeGripEnabled () const
|
||||
int result () const
|
||||
void setModal ( bool modal )
|
||||
void setResult ( int i )
|
||||
void setSizeGripEnabled ( bool )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
virtual void accept ()
|
||||
virtual void done ( int r )
|
||||
int exec ()
|
||||
void open ()
|
||||
virtual void reject ()
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void accepted ()
|
||||
void finished ( int result )
|
||||
void rejected ()
|
||||
</SIGNALS>
|
||||
@@ -1,151 +0,0 @@
|
||||
/*
|
||||
* $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
|
||||
;
|
||||
|
||||
; Header File to Generate Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
New = pParent
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QDir>
|
||||
|
||||
|
||||
/*
|
||||
* QDir ( const QDir & dir )
|
||||
* QDir ( const QString & path = QString() )
|
||||
* QDir ( const QString & path, const QString & nameFilter, SortFlags sort = SortFlags( Name | IgnoreCase ), Filters filters = AllEntries )
|
||||
* ~QDir ()
|
||||
*/
|
||||
HB_FUNC( QT_QDIR )
|
||||
{
|
||||
hb_retptr( new QDir( hbqt_par_QString( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
<ENUMS>
|
||||
enum Filter { Dirs, AllDirs, Files, Drives, ..., CaseSensitive }
|
||||
enum SortFlag { Name, Time, Size, Type, ..., LocaleAware }
|
||||
flags Filters
|
||||
flags SortFlags
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
QString absoluteFilePath ( const QString & fileName ) const
|
||||
QString absolutePath () const
|
||||
QString canonicalPath () const
|
||||
bool cd ( const QString & dirName )
|
||||
bool cdUp ()
|
||||
uint count () const
|
||||
QString dirName () const
|
||||
// QFileInfoList entryInfoList ( const QStringList & nameFilters, Filters filters = NoFilter, SortFlags sort = NoSort ) const
|
||||
// QFileInfoList entryInfoList ( Filters filters = NoFilter, SortFlags sort = NoSort ) const
|
||||
QStringList entryList ( const QStringList & nameFilters, Filters filters = NoFilter, SortFlags sort = NoSort ) const
|
||||
QStringList entryList ( Filters filters = NoFilter, SortFlags sort = NoSort ) const
|
||||
bool exists ( const QString & name ) const
|
||||
bool exists () const
|
||||
QString filePath ( const QString & fileName ) const
|
||||
Filters filter () const
|
||||
bool isAbsolute () const
|
||||
bool isReadable () const
|
||||
bool isRelative () const
|
||||
bool isRoot () const
|
||||
bool makeAbsolute ()
|
||||
bool mkdir ( const QString & dirName ) const
|
||||
bool mkpath ( const QString & dirPath ) const
|
||||
QStringList nameFilters () const
|
||||
QString path () const
|
||||
void refresh () const
|
||||
QString relativeFilePath ( const QString & fileName ) const
|
||||
bool remove ( const QString & fileName )
|
||||
bool rename ( const QString & oldName, const QString & newName )
|
||||
bool rmdir ( const QString & dirName ) const
|
||||
bool rmpath ( const QString & dirPath ) const
|
||||
void setFilter ( Filters filters )
|
||||
void setNameFilters ( const QStringList & nameFilters )
|
||||
void setPath ( const QString & path )
|
||||
void setSorting ( SortFlags sort )
|
||||
SortFlags sorting () const
|
||||
|
||||
|
||||
void addSearchPath ( const QString & prefix, const QString & path )
|
||||
QString cleanPath ( const QString & path )
|
||||
QDir current ()
|
||||
QString currentPath ()
|
||||
// QFileInfoList drives ()
|
||||
QString fromNativeSeparators ( const QString & pathName )
|
||||
QDir home ()
|
||||
QString homePath ()
|
||||
bool isAbsolutePath ( const QString & path )
|
||||
bool isRelativePath ( const QString & path )
|
||||
bool match ( const QString & filter, const QString & fileName )
|
||||
bool match ( const QStringList & filters, const QString & fileName )
|
||||
QDir root ()
|
||||
QString rootPath ()
|
||||
QStringList searchPaths ( const QString & prefix )
|
||||
QChar separator ()
|
||||
bool setCurrent ( const QString & path )
|
||||
void setSearchPaths ( const QString & prefix, const QStringList & searchPaths )
|
||||
QDir temp ()
|
||||
QString tempPath ()
|
||||
QString toNativeSeparators ( const QString & pathName )
|
||||
</PROTOS>
|
||||
|
||||
|
||||
|
||||
@@ -1,133 +0,0 @@
|
||||
/*
|
||||
* $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/QDirModel>
|
||||
|
||||
|
||||
/*
|
||||
* QDirModel ( const QStringList & nameFilters, QDir::Filters filters, QDir::SortFlags sort, QObject * parent = 0 )
|
||||
* QDirModel ( QObject * parent = 0 )
|
||||
* ~QDirModel ()
|
||||
*/
|
||||
HB_FUNC( QT_QDIRMODEL )
|
||||
{
|
||||
hb_retptr( ( QDirModel* ) new QDirModel( hbqt_par_QObject( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum Roles { FileIconRole, FilePathRole, FileNameRole }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
virtual int columnCount ( const QModelIndex & parent = QModelIndex() ) const
|
||||
virtual QVariant data ( const QModelIndex & index, int role = Qt::DisplayRole ) const
|
||||
virtual bool dropMimeData ( const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent )
|
||||
QIcon fileIcon ( const QModelIndex & index ) const
|
||||
QFileInfo fileInfo ( const QModelIndex & index ) const
|
||||
QString fileName ( const QModelIndex & index ) const
|
||||
QString filePath ( const QModelIndex & index ) const
|
||||
QDir::Filters filter () const
|
||||
virtual Qt::ItemFlags flags ( const QModelIndex & index ) const
|
||||
virtual bool hasChildren ( const QModelIndex & parent = QModelIndex() ) const
|
||||
virtual QVariant headerData ( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const
|
||||
QFileIconProvider * iconProvider () const
|
||||
virtual QModelIndex index ( int row, int column, const QModelIndex & parent = QModelIndex() ) const
|
||||
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 QStringList mimeTypes () const
|
||||
QModelIndex mkdir ( const QModelIndex & parent, const QString & name )
|
||||
QStringList nameFilters () const
|
||||
virtual QModelIndex parent ( const QModelIndex & child ) const
|
||||
bool remove ( const QModelIndex & index )
|
||||
bool resolveSymlinks () const
|
||||
bool rmdir ( const QModelIndex & index )
|
||||
virtual int rowCount ( const QModelIndex & parent = QModelIndex() ) const
|
||||
virtual bool setData ( const QModelIndex & index, const QVariant & value, int role = Qt::EditRole )
|
||||
void setFilter ( QDir::Filters filters )
|
||||
void setIconProvider ( QFileIconProvider * provider )
|
||||
void setLazyChildCount ( bool enable )
|
||||
void setNameFilters ( const QStringList & filters )
|
||||
void setReadOnly ( bool enable )
|
||||
void setResolveSymlinks ( bool enable )
|
||||
void setSorting ( QDir::SortFlags sort )
|
||||
virtual void sort ( int column, Qt::SortOrder order = Qt::AscendingOrder )
|
||||
QDir::SortFlags sorting () const
|
||||
virtual Qt::DropActions supportedDropActions () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
void refresh ( const QModelIndex & parent = QModelIndex() )
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
<VARIABLES>
|
||||
</VARIABLES>
|
||||
|
||||
|
||||
|
||||
@@ -1,103 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QWidget
|
||||
New = pParent
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QDockWidget>
|
||||
|
||||
|
||||
/*
|
||||
* QDockWidget ( const QString & title, QWidget * parent = 0, Qt::WindowFlags flags = 0 )
|
||||
* QDockWidget ( QWidget * parent = 0, Qt::WindowFlags flags = 0 )
|
||||
* ~QDockWidget ()
|
||||
*/
|
||||
HB_FUNC( QT_QDOCKWIDGET )
|
||||
{
|
||||
hb_retptr( new QDockWidget( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum DockWidgetFeature { DockWidgetClosable, DockWidgetMovable, DockWidgetFloatable, DockWidgetVerticalTitleBar, AllDockWidgetFeatures, NoDockWidgetFeatures }
|
||||
flags DockWidgetFeatures
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
Qt::DockWidgetAreas allowedAreas () const
|
||||
DockWidgetFeatures features () const
|
||||
bool isAreaAllowed ( Qt::DockWidgetArea area ) const
|
||||
bool isFloating () const
|
||||
void setAllowedAreas ( Qt::DockWidgetAreas areas )
|
||||
void setFeatures ( DockWidgetFeatures features )
|
||||
void setFloating ( bool floating )
|
||||
void setTitleBarWidget ( QWidget * widget )
|
||||
void setWidget ( QWidget * widget )
|
||||
QWidget * titleBarWidget () const
|
||||
QAction * toggleViewAction () const
|
||||
QWidget * widget () const
|
||||
</PROTOS>
|
||||
|
||||
<SIGNALS>
|
||||
void allowedAreasChanged ( Qt::DockWidgetAreas allowedAreas )
|
||||
void dockLocationChanged ( Qt::DockWidgetArea area )
|
||||
void featuresChanged ( QDockWidget::DockWidgetFeatures features )
|
||||
void topLevelChanged ( bool topLevel )
|
||||
void visibilityChanged ( bool visible )
|
||||
</SIGNALS>
|
||||
@@ -1,102 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QAbstractSpinBox
|
||||
New = pParent
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QDoubleSpinBox>
|
||||
|
||||
|
||||
/*
|
||||
* QDoubleSpinBox ( QWidget * parent = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QDOUBLESPINBOX )
|
||||
{
|
||||
hb_retptr( ( QDoubleSpinBox* ) new QDoubleSpinBox( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<PROTOS>
|
||||
QString cleanText () const
|
||||
int decimals () const
|
||||
double maximum () const
|
||||
double minimum () const
|
||||
QString prefix () const
|
||||
void setDecimals ( int prec )
|
||||
void setMaximum ( double max )
|
||||
void setMinimum ( double min )
|
||||
void setPrefix ( const QString & prefix )
|
||||
void setRange ( double minimum, double maximum )
|
||||
void setSingleStep ( double val )
|
||||
void setSuffix ( const QString & suffix )
|
||||
double singleStep () const
|
||||
QString suffix () const
|
||||
virtual QString textFromValue ( double value ) const
|
||||
double value () const
|
||||
virtual double valueFromText ( const QString & text ) const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
void setValue ( double val )
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void valueChanged ( double d )
|
||||
void valueChanged ( const QString & text )
|
||||
</SIGNALS>
|
||||
@@ -1,93 +0,0 @@
|
||||
/*
|
||||
* $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 = QDragMoveEvent
|
||||
Type = Core
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QDragEnterEvent>
|
||||
|
||||
|
||||
/*
|
||||
* QDragEnterEvent ( const QPoint & point, Qt::DropActions actions, const QMimeData * data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers )
|
||||
*/
|
||||
HB_FUNC( QT_QDRAGENTEREVENT )
|
||||
{
|
||||
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
<VARIABLES>
|
||||
</VARIABLES>
|
||||
|
||||
|
||||
|
||||
@@ -1,93 +0,0 @@
|
||||
/*
|
||||
* $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 =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QDragLeaveEvent>
|
||||
|
||||
|
||||
/*
|
||||
* QDragLeaveEvent ()
|
||||
*/
|
||||
HB_FUNC( QT_QDRAGLEAVEEVENT )
|
||||
{
|
||||
// hb_retptr( ( * ) new () );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
<VARIABLES>
|
||||
</VARIABLES>
|
||||
|
||||
|
||||
|
||||
@@ -1,99 +0,0 @@
|
||||
/*
|
||||
* $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 = QDropEvent
|
||||
Type = Core
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QDragMoveEvent>
|
||||
|
||||
|
||||
/*
|
||||
* QDragMoveEvent ( const QPoint & pos, Qt::DropActions actions, const QMimeData * data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Type type = DragMove )
|
||||
* ~QDragMoveEvent ()
|
||||
*/
|
||||
HB_FUNC( QT_QDRAGMOVEEVENT )
|
||||
{
|
||||
// hb_retptr( ( * ) new () );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
void accept ( const QRect & rectangle )
|
||||
void accept ()
|
||||
QRect answerRect () const
|
||||
void ignore ( const QRect & rectangle )
|
||||
void ignore ()
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
<VARIABLES>
|
||||
</VARIABLES>
|
||||
|
||||
|
||||
|
||||
@@ -1,110 +0,0 @@
|
||||
/*
|
||||
* $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 =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QDropEvent>
|
||||
|
||||
|
||||
/*
|
||||
* QDropEvent ( const QPoint & pos, Qt::DropActions actions, const QMimeData * data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Type type = Drop )
|
||||
*/
|
||||
HB_FUNC( QT_QDROPEVENT )
|
||||
{
|
||||
// hb_retptr( ( QDropEvent* ) new QDropEvent() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
void acceptProposedAction ()
|
||||
Qt::DropAction dropAction () const
|
||||
Qt::KeyboardModifiers keyboardModifiers () const
|
||||
|
||||
# This function is OK if called as line below, but do not found a way
|
||||
# how to construct dynamically - no separate keyword ???
|
||||
#
|
||||
//const QMimeData * mimeData () const
|
||||
//hb_retptrGC( hbqt_gcAllocate_QMimeData( ( void* ) hbqt_par_QDropEvent( 1 )->mimeData(), false ) );
|
||||
#
|
||||
#
|
||||
Qt::MouseButtons mouseButtons () const
|
||||
const QPoint & pos () const
|
||||
Qt::DropActions possibleActions () const
|
||||
Qt::DropAction proposedAction () const
|
||||
void setDropAction ( Qt::DropAction action )
|
||||
QWidget * source () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
<VARIABLES>
|
||||
</VARIABLES>
|
||||
|
||||
|
||||
|
||||
@@ -1,80 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QDialog
|
||||
New = pParent
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QErrorMessage>
|
||||
|
||||
|
||||
/*
|
||||
* QErrorMessage ( QWidget * parent = 0 )
|
||||
* ~QErrorMessage ()
|
||||
*/
|
||||
HB_FUNC( QT_QERRORMESSAGE )
|
||||
{
|
||||
hb_retptr( ( QErrorMessage* ) new QErrorMessage( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<SLOTS>
|
||||
void showMessage ( const QString & message )
|
||||
void showMessage ( const QString & message, const QString & type )
|
||||
</SLOTS>
|
||||
|
||||
@@ -1,100 +0,0 @@
|
||||
/*
|
||||
* $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
|
||||
Type = Core
|
||||
New = nType
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QEvent>
|
||||
|
||||
|
||||
/*
|
||||
* QEvent ( Type type )
|
||||
* virtual ~QEvent ()
|
||||
*/
|
||||
HB_FUNC( QT_QEVENT )
|
||||
{
|
||||
hb_retptr( ( QEvent* ) new QEvent( ( QEvent::Type ) hb_parni( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum Type { None, AccessibilityDescription, AccessibilityHelp, AccessibilityPrepare, ..., MaxUser }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
void accept ()
|
||||
void ignore ()
|
||||
bool isAccepted () const
|
||||
void setAccepted ( bool accepted )
|
||||
bool spontaneous () const
|
||||
Type type () const
|
||||
|
||||
int registerEventType ( int hint = -1 )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,99 +0,0 @@
|
||||
/*
|
||||
* $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 = pObject
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QEventLoop>
|
||||
#include <QtCore/QEvent>
|
||||
|
||||
/*
|
||||
* QEventLoop ( QObject * parent = 0 )
|
||||
* ~QEventLoop ()
|
||||
*/
|
||||
HB_FUNC( QT_QEVENTLOOP )
|
||||
{
|
||||
hb_retptr( new QEventLoop( hbqt_par_QObject( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum ProcessEventsFlag { AllEvents, ExcludeUserInputEvents, ExcludeSocketNotifiers, WaitForMoreEvents, DeferredDeletion }
|
||||
flags ProcessEventsFlags
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
int exec ( ProcessEventsFlags flags = AllEvents )
|
||||
void exit ( int returnCode = 0 )
|
||||
bool isRunning () const
|
||||
bool processEvents ( ProcessEventsFlags flags = AllEvents )
|
||||
void processEvents ( ProcessEventsFlags flags, int maxTime )
|
||||
void wakeUp ()
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,143 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,164 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QDialog
|
||||
New = pParent, nFlags
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QFileDialog>
|
||||
|
||||
|
||||
/*
|
||||
* QFileDialog ( QWidget * parent, Qt::WindowFlags flags )
|
||||
* QFileDialog ( QWidget * parent = 0, const QString & caption = QString(), const QString & directory = QString(), const QString & filter = QString() )
|
||||
* ~QFileDialog ()
|
||||
*/
|
||||
HB_FUNC( QT_QFILEDIALOG )
|
||||
{
|
||||
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
|
||||
{
|
||||
hb_retptr( new QFileDialog( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) 0 ) );
|
||||
}
|
||||
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISNUM( 2 ) )
|
||||
{
|
||||
hb_retptr( new QFileDialog( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( new QFileDialog() );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum AcceptMode { AcceptOpen, AcceptSave }
|
||||
enum DialogLabel { LookIn, FileName, FileType, Accept, Reject }
|
||||
enum FileMode { AnyFile, ExistingFile, Directory, ExistingFiles, DirectoryOnly }
|
||||
enum Option { ShowDirsOnly, DontResolveSymlinks, DontConfirmOverwrite, DontUseNativeDialog, ..., DontUseSheet }
|
||||
flags Options
|
||||
enum ViewMode { Detail, List }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
AcceptMode acceptMode () const
|
||||
bool confirmOverwrite () const
|
||||
QString defaultSuffix () const
|
||||
QDir directory () const
|
||||
FileMode fileMode () const
|
||||
QDir::Filters filter () const
|
||||
QStringList history () const
|
||||
QFileIconProvider * iconProvider () const
|
||||
bool isNameFilterDetailsVisible () const
|
||||
bool isReadOnly () const
|
||||
QAbstractItemDelegate * itemDelegate () const
|
||||
QString labelText ( DialogLabel label ) const
|
||||
QStringList nameFilters () const
|
||||
#
|
||||
# Just too difficult to handle automatically
|
||||
#
|
||||
// void open ( QObject * receiver, const char * member )
|
||||
#
|
||||
Options options () const
|
||||
QAbstractProxyModel * proxyModel () const
|
||||
bool resolveSymlinks () const
|
||||
bool restoreState ( const QByteArray & state )
|
||||
QByteArray saveState () const
|
||||
void selectFile ( const QString & filename )
|
||||
void selectNameFilter ( const QString & filter )
|
||||
QStringList selectedFiles () const
|
||||
QString selectedNameFilter () const
|
||||
void setAcceptMode ( AcceptMode mode )
|
||||
void setConfirmOverwrite ( bool enabled )
|
||||
void setDefaultSuffix ( const QString & suffix )
|
||||
void setDirectory ( const QString & directory )
|
||||
void setDirectory ( const QDir & directory )
|
||||
void setFileMode ( FileMode mode )
|
||||
void setFilter ( QDir::Filters filters )
|
||||
void setHistory ( const QStringList & paths )
|
||||
void setIconProvider ( QFileIconProvider * provider )
|
||||
void setItemDelegate ( QAbstractItemDelegate * delegate )
|
||||
void setLabelText ( DialogLabel label, const QString & text )
|
||||
void setNameFilter ( const QString & filter )
|
||||
void setNameFilterDetailsVisible ( bool enabled )
|
||||
void setNameFilters ( const QStringList & filters )
|
||||
void setOption ( Option option, bool on = true )
|
||||
void setOptions ( Options options )
|
||||
void setProxyModel ( QAbstractProxyModel * proxyModel )
|
||||
void setReadOnly ( bool enabled )
|
||||
void setResolveSymlinks ( bool enabled )
|
||||
void setSidebarUrls ( const QList<QUrl> & urls )
|
||||
void setViewMode ( ViewMode mode )
|
||||
QList<QUrl> sidebarUrls () const
|
||||
bool testOption ( Option option ) const
|
||||
ViewMode viewMode () const
|
||||
|
||||
|
||||
QString getExistingDirectory ( QWidget * parent = 0, const QString & caption = QString(), const QString & dir = QString(), Options options = ShowDirsOnly )
|
||||
//QString getOpenFileName ( QWidget * parent = 0, const QString & caption = QString(), const QString & dir = QString(), const QString & filter = QString(), QString * selectedFilter = 0, Options options = 0 )
|
||||
//QStringList getOpenFileNames ( QWidget * parent = 0, const QString & caption = QString(), const QString & dir = QString(), const QString & filter = QString(), QString * selectedFilter = 0, Options options = 0 )
|
||||
//QString getSaveFileName ( QWidget * parent = 0, const QString & caption = QString(), const QString & dir = QString(), const QString & filter = QString(), QString * selectedFilter = 0, Options options = 0 )
|
||||
</PROTOS>
|
||||
|
||||
<SIGNALS>
|
||||
void currentChanged ( const QString & path )
|
||||
void directoryEntered ( const QString & directory )
|
||||
void fileSelected ( const QString & file )
|
||||
void filesSelected ( const QStringList & selected )
|
||||
void filterSelected ( const QString & filter )
|
||||
</SIGNALS>
|
||||
|
||||
@@ -1,96 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,143 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,128 +0,0 @@
|
||||
/*
|
||||
* $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/QFileSystemModel>
|
||||
#include <QtCore/QDateTime>
|
||||
|
||||
/*
|
||||
* QFileSystemModel ( QObject * parent = 0 )
|
||||
* ~QFileSystemModel ()
|
||||
*/
|
||||
HB_FUNC( QT_QFILESYSTEMMODEL )
|
||||
{
|
||||
hb_retptr( ( QFileSystemModel * ) new QFileSystemModel() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum Roles { FileIconRole, FilePathRole, FileNameRole, FilePermissions }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
virtual bool dropMimeData ( const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent )
|
||||
QIcon fileIcon ( const QModelIndex & index ) const
|
||||
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
|
||||
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 QStringList mimeTypes () const
|
||||
QModelIndex mkdir ( const QModelIndex & parent, const QString & name )
|
||||
QVariant myComputer ( int role = Qt::DisplayRole ) const
|
||||
bool nameFilterDisables () const
|
||||
QStringList nameFilters () const
|
||||
QFile::Permissions permissions ( const QModelIndex & index ) const
|
||||
bool remove ( const QModelIndex & index ) const
|
||||
bool resolveSymlinks () const
|
||||
bool rmdir ( const QModelIndex & index ) const
|
||||
QDir rootDirectory () const
|
||||
QString rootPath () const
|
||||
void setFilter ( QDir::Filters filters )
|
||||
// void setIconProvider ( QFileIconProvider * provider )
|
||||
void setNameFilterDisables ( bool enable )
|
||||
void setNameFilters ( const QStringList & filters )
|
||||
void setReadOnly ( bool enable )
|
||||
void setResolveSymlinks ( bool enable )
|
||||
QModelIndex setRootPath ( const QString & newPath )
|
||||
qint64 size ( const QModelIndex & index ) const
|
||||
QString type ( const QModelIndex & index ) const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void fileRenamed ( const QString & path, const QString & oldName, const QString & newName )
|
||||
void rootPathChanged ( const QString & newPath )
|
||||
</SIGNALS>
|
||||
|
||||
<VARIABLES>
|
||||
</VARIABLES>
|
||||
|
||||
|
||||
|
||||
@@ -1,96 +0,0 @@
|
||||
/*
|
||||
* $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 =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QFocusEvent>
|
||||
|
||||
|
||||
/*
|
||||
* QFocusEvent ( Type type, Qt::FocusReason reason = Qt::OtherFocusReason )
|
||||
*/
|
||||
HB_FUNC( QT_QFOCUSEVENT )
|
||||
{
|
||||
// hb_retptr( ( QFocusEvent* ) new QFocusEvent() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
bool gotFocus () const
|
||||
bool lostFocus () const
|
||||
Qt::FocusReason reason () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
<VARIABLES>
|
||||
</VARIABLES>
|
||||
|
||||
|
||||
|
||||
@@ -1,81 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QWidget
|
||||
New = pParent
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QFocusFrame>
|
||||
|
||||
|
||||
/*
|
||||
* QFocusFrame ( QWidget * parent = 0 )
|
||||
* ~QFocusFrame ()
|
||||
*/
|
||||
HB_FUNC( QT_QFOCUSFRAME )
|
||||
{
|
||||
hb_retptr( ( QFocusFrame* ) new QFocusFrame( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<PROTOS>
|
||||
void setWidget ( QWidget * widget )
|
||||
QWidget * widget () const
|
||||
</PROTOS>
|
||||
|
||||
|
||||
@@ -1,205 +0,0 @@
|
||||
/*
|
||||
* $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
|
||||
New =
|
||||
Type = PlainObject
|
||||
</CLASS>
|
||||
|
||||
<DOC>
|
||||
oFont := QFont():new()
|
||||
oFont := QFont():new( cFontName )
|
||||
oFont := QFont():new( cFontName, nPointSize )
|
||||
oFont := QFont():new( cFontName, nPointSize, nWeight )
|
||||
oFont := QFont():new( cFontName, nPointSize, nWeight, lItalic )
|
||||
oFont := QFont():new( pFont )
|
||||
oFont := QFont():new( pFont, pPaintDevice )
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QStringList>
|
||||
#include <QtGui/QFont>
|
||||
|
||||
/*
|
||||
* QFont ()
|
||||
* QFont ( const QString & family, int pointSize = -1, int weight = -1, bool italic = false )
|
||||
* QFont ( const QFont & font, QPaintDevice * pd )
|
||||
* QFont ( const QFont & font )
|
||||
* ~QFont ()
|
||||
*/
|
||||
HB_FUNC( QT_QFONT )
|
||||
{
|
||||
if( hb_pcount() == 1 && HB_ISCHAR( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QFont* ) new QFont( hbqt_par_QString( 1 ), -1, -1, false ) );
|
||||
}
|
||||
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISNUM( 2 ) )
|
||||
{
|
||||
hb_retptr( ( QFont* ) new QFont( hbqt_par_QString( 1 ), hb_parni( 2 ), -1, false ) );
|
||||
}
|
||||
else if( hb_pcount() == 3 && HB_ISCHAR( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) )
|
||||
{
|
||||
hb_retptr( ( QFont* ) new QFont( hbqt_par_QString( 1 ), hb_parni( 2 ), hb_parni( 3 ), false ) );
|
||||
}
|
||||
else if( hb_pcount() == 4 && HB_ISCHAR( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) && HB_ISLOG( 4 ) )
|
||||
{
|
||||
hb_retptr( ( QFont* ) new QFont( hbqt_par_QString( 1 ), hb_parni( 2 ), hb_parni( 3 ), hb_parl( 4 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QFont* ) new QFont( *hbqt_par_QFont( 1 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISPOINTER( 2 ) )
|
||||
{
|
||||
hb_retptr( ( QFont* ) new QFont( *hbqt_par_QFont( 1 ), hbqt_par_QPaintDevice( 2 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( ( QFont* ) new QFont() );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum Capitalization { MixedCase, AllUppercase, AllLowercase, SmallCaps, Capitalize }
|
||||
enum SpacingType { PercentageSpacing, AbsoluteSpacing }
|
||||
enum Stretch { UltraCondensed, ExtraCondensed, Condensed, SemiCondensed, ..., UltraExpanded }
|
||||
enum Style { StyleNormal, StyleItalic, StyleOblique }
|
||||
enum StyleHint { AnyStyle, SansSerif, Helvetica, Serif, ..., System }
|
||||
enum StyleStrategy { PreferDefault, PreferBitmap, PreferDevice, PreferOutline, ..., PreferQuality }
|
||||
enum Weight { Light, Normal, DemiBold, Bold, Black }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
bool bold () const
|
||||
Capitalization capitalization () const
|
||||
QString defaultFamily () const
|
||||
bool exactMatch () const
|
||||
QString family () const
|
||||
bool fixedPitch () const
|
||||
#
|
||||
# member not found
|
||||
#
|
||||
// FT_Face freetypeFace () const
|
||||
#
|
||||
bool fromString ( const QString & descrip )
|
||||
#
|
||||
# Not portable
|
||||
// HFONT handle () const
|
||||
#
|
||||
# member not found
|
||||
// bool isCopyOf ( const QFont & f ) const
|
||||
bool italic () const
|
||||
bool kerning () const
|
||||
QString key () const
|
||||
QString lastResortFamily () const
|
||||
QString lastResortFont () const
|
||||
qreal letterSpacing () const
|
||||
SpacingType letterSpacingType () const
|
||||
#
|
||||
# member not found
|
||||
// quint32 macFontID () const
|
||||
bool overline () const
|
||||
int pixelSize () const
|
||||
int pointSize () const
|
||||
qreal pointSizeF () const
|
||||
bool rawMode () const
|
||||
QString rawName () const
|
||||
#
|
||||
# error: invalid conversion from `QFont*' to `uint'
|
||||
# initializing argument 1 of `void QFont::resolve(uint)'
|
||||
// QFont resolve ( const QFont & other ) const
|
||||
void setBold ( bool enable )
|
||||
void setCapitalization ( Capitalization caps )
|
||||
void setFamily ( const QString & family )
|
||||
void setFixedPitch ( bool enable )
|
||||
void setItalic ( bool enable )
|
||||
void setKerning ( bool enable )
|
||||
void setLetterSpacing ( SpacingType type, qreal spacing )
|
||||
void setOverline ( bool enable )
|
||||
void setPixelSize ( int pixelSize )
|
||||
void setPointSize ( int pointSize )
|
||||
void setPointSizeF ( qreal pointSize )
|
||||
void setRawMode ( bool enable )
|
||||
void setRawName ( const QString & name )
|
||||
void setStretch ( int factor )
|
||||
void setStrikeOut ( bool enable )
|
||||
void setStyle ( Style style )
|
||||
void setStyleHint ( StyleHint hint, StyleStrategy strategy = PreferDefault )
|
||||
void setStyleStrategy ( StyleStrategy s )
|
||||
void setUnderline ( bool enable )
|
||||
void setWeight ( int weight )
|
||||
void setWordSpacing ( qreal spacing )
|
||||
int stretch () const
|
||||
bool strikeOut () const
|
||||
Style style () const
|
||||
StyleHint styleHint () const
|
||||
StyleStrategy styleStrategy () const
|
||||
QString toString () const
|
||||
bool underline () const
|
||||
int weight () const
|
||||
qreal wordSpacing () const
|
||||
|
||||
|
||||
void cleanup ()
|
||||
void initialize ()
|
||||
void insertSubstitution ( const QString & familyName, const QString & substituteName )
|
||||
void insertSubstitutions ( const QString & familyName, const QStringList & substituteNames )
|
||||
void removeSubstitution ( const QString & familyName )
|
||||
QString substitute ( const QString & familyName )
|
||||
QStringList substitutes ( const QString & familyName )
|
||||
QStringList substitutions ()
|
||||
</PROTOS>
|
||||
@@ -1,96 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QComboBox
|
||||
New = pParent
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QFontComboBox>
|
||||
|
||||
|
||||
/*
|
||||
* QFontComboBox ( QWidget * parent = 0 )
|
||||
* ~QFontComboBox ()
|
||||
*/
|
||||
HB_FUNC( QT_QFONTCOMBOBOX )
|
||||
{
|
||||
hb_retptr( ( QFontComboBox * ) new QFontComboBox( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum FontFilter { AllFonts, ScalableFonts, NonScalableFonts, MonospacedFonts, ProportionalFonts }
|
||||
flags FontFilters
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
QFont currentFont () const
|
||||
FontFilters fontFilters () const
|
||||
void setFontFilters ( FontFilters filters )
|
||||
void setWritingSystem ( QFontDatabase::WritingSystem script )
|
||||
QFontDatabase::WritingSystem writingSystem () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
void setCurrentFont ( const QFont & font )
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void currentFontChanged ( const QFont & font )
|
||||
</SIGNALS>
|
||||
|
||||
@@ -1,119 +0,0 @@
|
||||
/*
|
||||
* $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/QStringList>
|
||||
#include <QtGui/QFontDatabase>
|
||||
|
||||
|
||||
/*
|
||||
* QFontDatabase ()
|
||||
*/
|
||||
HB_FUNC( QT_QFONTDATABASE )
|
||||
{
|
||||
hb_retptr( new QFontDatabase() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum WritingSystem { Any, Latin, Greek, Cyrillic, ..., Runic }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
bool bold ( const QString & family, const QString & style ) const
|
||||
QStringList families ( WritingSystem writingSystem = Any ) const
|
||||
QFont font ( const QString & family, const QString & style, int pointSize ) const
|
||||
bool isBitmapScalable ( const QString & family, const QString & style = QString() ) const
|
||||
bool isFixedPitch ( const QString & family, const QString & style = QString() ) const
|
||||
bool isScalable ( const QString & family, const QString & style = QString() ) const
|
||||
bool isSmoothlyScalable ( const QString & family, const QString & style = QString() ) const
|
||||
bool italic ( const QString & family, const QString & style ) const
|
||||
QList<int> pointSizes ( const QString & family, const QString & style = QString() )
|
||||
QList<int> smoothSizes ( const QString & family, const QString & style )
|
||||
QString styleString ( const QFont & font )
|
||||
QString styleString ( const QFontInfo & fontInfo )
|
||||
QStringList styles ( const QString & family ) const
|
||||
int weight ( const QString & family, const QString & style ) const
|
||||
QList<WritingSystem> writingSystems () const
|
||||
QList<WritingSystem> writingSystems ( const QString & family ) const
|
||||
|
||||
|
||||
int addApplicationFont ( const QString & fileName )
|
||||
int addApplicationFontFromData ( const QByteArray & fontData )
|
||||
QStringList applicationFontFamilies ( int id )
|
||||
bool removeAllApplicationFonts ()
|
||||
bool removeApplicationFont ( int id )
|
||||
QList<int> standardSizes ()
|
||||
bool supportsThreadedFontRendering ()
|
||||
QString writingSystemName ( WritingSystem writingSystem )
|
||||
QString writingSystemSample ( WritingSystem writingSystem )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
<VARIABLES>
|
||||
</VARIABLES>
|
||||
@@ -1,120 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QDialog
|
||||
New = pParent
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QFontDialog>
|
||||
|
||||
|
||||
/*
|
||||
* QFontDialog ( QWidget * parent = 0 )
|
||||
* QFontDialog ( const QFont & initial, QWidget * parent = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QFONTDIALOG )
|
||||
{
|
||||
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
|
||||
{
|
||||
hb_retptr( new QFontDialog( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISPOINTER( 2 ) )
|
||||
{
|
||||
hb_retptr( new QFontDialog( *hbqt_par_QFont( 1 ), hbqt_par_QWidget( 2 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( new QFontDialog( 0 ) );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum FontDialogOption { NoButtons, DontUseNativeDialog }
|
||||
flags FontDialogOptions
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
QFont currentFont () const
|
||||
#
|
||||
# Way too complex, to be shifted to CODE section
|
||||
#
|
||||
// void open ( QObject * receiver, const char * member )
|
||||
FontDialogOptions options () const
|
||||
QFont selectedFont () const
|
||||
void setCurrentFont ( const QFont & font )
|
||||
void setOption ( FontDialogOption option, bool on = true )
|
||||
void setOptions ( FontDialogOptions options )
|
||||
bool testOption ( FontDialogOption option ) const
|
||||
|
||||
QFont getFont ( bool * ok, const QFont & initial, QWidget * parent, const QString & title, FontDialogOptions options )
|
||||
QFont getFont ( bool * ok, const QFont & initial, QWidget * parent, const char * name )
|
||||
// QFont getFont ( bool * ok, QWidget * parent, const char * name )
|
||||
QFont getFont ( bool * ok, const QFont & initial, QWidget * parent, const QString & title )
|
||||
QFont getFont ( bool * ok, const QFont & initial, QWidget * parent = 0 )
|
||||
QFont getFont ( bool * ok, QWidget * parent = 0 )
|
||||
</PROTOS>
|
||||
|
||||
<SIGNALS>
|
||||
void currentFontChanged ( const QFont & font )
|
||||
void fontSelected ( const QFont & font )
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,99 +0,0 @@
|
||||
/*
|
||||
* $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
|
||||
New = pParent
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QFontInfo>
|
||||
|
||||
|
||||
/*
|
||||
* QFontInfo ( const QFont & font )
|
||||
* QFontInfo ( const QFontInfo & fi )
|
||||
* ~QFontInfo ()
|
||||
*/
|
||||
HB_FUNC( QT_QFONTINFO )
|
||||
{
|
||||
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
|
||||
{
|
||||
hb_retptr( new QFontInfo( *hbqt_par_QFontInfo( 1 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
|
||||
{
|
||||
hb_retptr( new QFontInfo( *hbqt_par_QFont( 2 ) ) );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<PROTOS>
|
||||
bool bold () const
|
||||
bool exactMatch () const
|
||||
QString family () const
|
||||
bool fixedPitch () const
|
||||
bool italic () const
|
||||
int pixelSize () const
|
||||
int pointSize () const
|
||||
qreal pointSizeF () const
|
||||
bool rawMode () const
|
||||
QFont::Style style () const
|
||||
QFont::StyleHint styleHint () const
|
||||
int weight () const
|
||||
</PROTOS>
|
||||
|
||||
|
||||
@@ -1,142 +0,0 @@
|
||||
/*
|
||||
* $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 = PlainObject
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<DOC>
|
||||
oFontMetrics := QFontMetrics():new( pQFontMetrics )
|
||||
oFontMetrics := QFontMetrics():new( "QFont", pQFont )
|
||||
oFontMetrics := QFontMetrics():new( pQFont, pQPaintDevice )
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QFontMetrics>
|
||||
|
||||
|
||||
/*
|
||||
* QFontMetrics ( const QFont & font )
|
||||
* QFontMetrics ( const QFont & font, QPaintDevice * paintdevice )
|
||||
* QFontMetrics ( const QFontMetrics & fm )
|
||||
* ~QFontMetrics ()
|
||||
*/
|
||||
HB_FUNC( QT_QFONTMETRICS )
|
||||
{
|
||||
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
|
||||
{
|
||||
hb_retptr( new QFontMetrics( *hbqt_par_QFontMetrics( 1 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
|
||||
{
|
||||
if( hbqt_par_QString( 1 ) == ( QString ) "QFont" )
|
||||
{
|
||||
hb_retptr( new QFontMetrics( *hbqt_par_QFont( 2 ) ) );
|
||||
}
|
||||
}
|
||||
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISPOINTER( 2 ) )
|
||||
{
|
||||
hb_retptr( new QFontMetrics( *hbqt_par_QFont( 1 ), hbqt_par_QPaintDevice( 2 ) ) );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
int ascent () const
|
||||
int averageCharWidth () const
|
||||
QRect boundingRect ( QChar ch ) const
|
||||
QRect boundingRect ( const QString & text ) const
|
||||
QRect boundingRect ( int x, int y, int width, int height, int flags, const QString & text, int tabStops = 0, int * tabArray = 0 ) const
|
||||
QRect boundingRect ( const QRect & rect, int flags, const QString & text, int tabStops = 0, int * tabArray = 0 ) const
|
||||
int descent () const
|
||||
QString elidedText ( const QString & text, Qt::TextElideMode mode, int width, int flags = 0 ) const
|
||||
int height () const
|
||||
bool inFont ( QChar ch ) const
|
||||
int leading () const
|
||||
int leftBearing ( QChar ch ) const
|
||||
int lineSpacing () const
|
||||
int lineWidth () const
|
||||
int maxWidth () const
|
||||
int minLeftBearing () const
|
||||
int minRightBearing () const
|
||||
int overlinePos () const
|
||||
int rightBearing ( QChar ch ) const
|
||||
QSize size ( int flags, const QString & text, int tabStops = 0, int * tabArray = 0 ) const
|
||||
int strikeOutPos () const
|
||||
QRect tightBoundingRect ( const QString & text ) const
|
||||
int underlinePos () const
|
||||
int width ( const QString & text, int len = -1 ) const
|
||||
int width ( QChar ch ) const
|
||||
int xHeight () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
<VARIABLES>
|
||||
</VARIABLES>
|
||||
|
||||
|
||||
|
||||
@@ -1,147 +0,0 @@
|
||||
/*
|
||||
* $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 = PlainObject
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<DOC>
|
||||
oFontMetricsF := QFontMetricsF():new( pQFontMetricsF )
|
||||
oFontMetricsF := QFontMetricsF():new( "QFontMetrics", pQFontMetrics )
|
||||
oFontMetricsF := QFontMetricsF():new( "QFont", pQFont )
|
||||
oFontMetricsF := QFontMetricsF():new( pQFont, pQPaintDevice )
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QFontMetricsF>
|
||||
|
||||
|
||||
/*
|
||||
* QFontMetricsF ( const QFont & font )
|
||||
* QFontMetricsF ( const QFont & font, QPaintDevice * paintdevice )
|
||||
* QFontMetricsF ( const QFontMetrics & fontMetrics )
|
||||
* QFontMetricsF ( const QFontMetricsF & fm )
|
||||
* ~QFontMetricsF ()
|
||||
*/
|
||||
HB_FUNC( QT_QFONTMETRICSF )
|
||||
{
|
||||
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QFontMetricsF* ) new QFontMetricsF( *hbqt_par_QFontMetricsF( 1 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
|
||||
{
|
||||
if( hbqt_par_QString( 1 ) == ( QString ) "QFont" )
|
||||
{
|
||||
hb_retptr( ( QFontMetricsF* ) new QFontMetricsF( *hbqt_par_QFont( 2 ) ) );
|
||||
}
|
||||
else if( hbqt_par_QString( 1 ) == ( QString ) "QFontMetrics" )
|
||||
{
|
||||
hb_retptr( ( QFontMetricsF* ) new QFontMetricsF( *hbqt_par_QFontMetrics( 2 ) ) );
|
||||
}
|
||||
}
|
||||
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISPOINTER( 2 ) )
|
||||
{
|
||||
hb_retptr( ( QFontMetricsF* ) new QFontMetricsF( *hbqt_par_QFont( 1 ), hbqt_par_QPaintDevice( 2 ) ) );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
qreal ascent () const
|
||||
qreal averageCharWidth () const
|
||||
QRectF boundingRect ( const QString & text ) const
|
||||
QRectF boundingRect ( QChar ch ) const
|
||||
QRectF boundingRect ( const QRectF & rect, int flags, const QString & text, int tabStops = 0, int * tabArray = 0 ) const
|
||||
qreal descent () const
|
||||
QString elidedText ( const QString & text, Qt::TextElideMode mode, qreal width, int flags = 0 ) const
|
||||
qreal height () const
|
||||
bool inFont ( QChar ch ) const
|
||||
qreal leading () const
|
||||
qreal leftBearing ( QChar ch ) const
|
||||
qreal lineSpacing () const
|
||||
qreal lineWidth () const
|
||||
qreal maxWidth () const
|
||||
qreal minLeftBearing () const
|
||||
qreal minRightBearing () const
|
||||
qreal overlinePos () const
|
||||
qreal rightBearing ( QChar ch ) const
|
||||
QSizeF size ( int flags, const QString & text, int tabStops = 0, int * tabArray = 0 ) const
|
||||
qreal strikeOutPos () const
|
||||
QRectF tightBoundingRect ( const QString & text ) const
|
||||
qreal underlinePos () const
|
||||
qreal width ( const QString & text ) const
|
||||
qreal width ( QChar ch ) const
|
||||
qreal xHeight () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
<VARIABLES>
|
||||
</VARIABLES>
|
||||
|
||||
|
||||
|
||||
@@ -1,120 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QLayout
|
||||
New = pParent
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QFormLayout>
|
||||
|
||||
|
||||
/*
|
||||
* QFormLayout ( QWidget * parent = 0 )
|
||||
* ~QFormLayout ()
|
||||
*/
|
||||
HB_FUNC( QT_QFORMLAYOUT )
|
||||
{
|
||||
hb_retptr( ( QFormLayout * ) new QFormLayout( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum FieldGrowthPolicy { FieldsStayAtSizeHint, ExpandingFieldsGrow, AllNonFixedFieldsGrow }
|
||||
enum ItemRole { LabelRole, FieldRole, SpanningRole }
|
||||
enum RowWrapPolicy { DontWrapRows, WrapLongRows, WrapAllRows }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
void addRow ( QWidget * label, QWidget * field )
|
||||
void addRow ( QWidget * label, QLayout * field )
|
||||
void addRow ( QWidget * widget )
|
||||
void addRow ( const QString & labelText, QWidget * field )
|
||||
void addRow ( const QString & labelText, QLayout * field )
|
||||
void addRow ( QLayout * layout )
|
||||
FieldGrowthPolicy fieldGrowthPolicy () const
|
||||
Qt::Alignment formAlignment () const
|
||||
void getItemPosition ( int index, int * rowPtr, ItemRole * rolePtr ) const
|
||||
void getLayoutPosition ( QLayout * layout, int * rowPtr, ItemRole * rolePtr ) const
|
||||
void getWidgetPosition ( QWidget * widget, int * rowPtr, ItemRole * rolePtr ) const
|
||||
int horizontalSpacing () const
|
||||
void insertRow ( int row, QWidget * label, QWidget * field )
|
||||
void insertRow ( int row, QWidget * label, QLayout * field )
|
||||
void insertRow ( int row, QWidget * widget )
|
||||
void insertRow ( int row, const QString & labelText, QWidget * field )
|
||||
void insertRow ( int row, const QString & labelText, QLayout * field )
|
||||
void insertRow ( int row, QLayout * layout )
|
||||
QLayoutItem * itemAt ( int row, ItemRole role ) const
|
||||
Qt::Alignment labelAlignment () const
|
||||
QWidget * labelForField ( QWidget * field ) const
|
||||
QWidget * labelForField ( QLayout * field ) const
|
||||
int rowCount () const
|
||||
RowWrapPolicy rowWrapPolicy () const
|
||||
void setFieldGrowthPolicy ( FieldGrowthPolicy policy )
|
||||
void setFormAlignment ( Qt::Alignment alignment )
|
||||
void setHorizontalSpacing ( int spacing )
|
||||
void setItem ( int row, ItemRole role, QLayoutItem * item )
|
||||
void setLabelAlignment ( Qt::Alignment alignment )
|
||||
void setLayout ( int row, ItemRole role, QLayout * layout )
|
||||
void setRowWrapPolicy ( RowWrapPolicy policy )
|
||||
void setSpacing ( int spacing )
|
||||
void setVerticalSpacing ( int spacing )
|
||||
void setWidget ( int row, ItemRole role, QWidget * widget )
|
||||
int spacing () const
|
||||
int verticalSpacing () const
|
||||
</PROTOS>
|
||||
|
||||
@@ -1,97 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QWidget
|
||||
New = pParent, nFlags
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QFrame>
|
||||
|
||||
|
||||
/*
|
||||
* QFrame ( QWidget * parent = 0, Qt::WindowFlags f = 0 )
|
||||
* ~QFrame ()
|
||||
*/
|
||||
HB_FUNC( QT_QFRAME )
|
||||
{
|
||||
hb_retptr( new QFrame( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum Shadow { Plain, Raised, Sunken }
|
||||
enum Shape { NoFrame, Box, Panel, StyledPanel, ..., WinPanel }
|
||||
enum StyleMask { Shadow_Mask, Shape_Mask }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
QRect frameRect () const
|
||||
Shadow frameShadow () const
|
||||
Shape frameShape () const
|
||||
int frameStyle () const
|
||||
int frameWidth () const
|
||||
int lineWidth () const
|
||||
int midLineWidth () const
|
||||
void setFrameRect ( const QRect & )
|
||||
void setFrameShadow ( Shadow )
|
||||
void setFrameShape ( Shape )
|
||||
void setFrameStyle ( int style )
|
||||
void setLineWidth ( int )
|
||||
void setMidLineWidth ( int )
|
||||
</PROTOS>
|
||||
|
||||
@@ -1,146 +0,0 @@
|
||||
/*
|
||||
* $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
|
||||
;
|
||||
|
||||
; Header File to Generate Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
Inherit = QObject
|
||||
New = pParent
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtNetwork/QFtp>
|
||||
|
||||
|
||||
/*
|
||||
* QFtp ( QObject * parent = 0 )
|
||||
* virtual ~QFtp ()
|
||||
*/
|
||||
HB_FUNC( QT_QFTP )
|
||||
{
|
||||
hb_retptr( new QFtp( hbqt_par_QObject( 1 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* qint64 read ( char * data, qint64 maxlen )
|
||||
*/
|
||||
HB_FUNC( QT_QFTP_READ )
|
||||
{
|
||||
char * iData = ( char * ) hb_xgrab( hb_parnint( 3 ) + 1 );
|
||||
qint64 iRead;
|
||||
|
||||
iRead = hbqt_par_QFtp( 1 )->read( iData, hb_parnint( 3 ) );
|
||||
|
||||
hb_retnint( iRead );
|
||||
if( ! hb_storclen_buffer( iData, iRead, 2 ) )
|
||||
hb_xfree( iData );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum Command { None, SetTransferMode, SetProxy, ConnectToHost, ..., RawCommand }
|
||||
enum Error { NoError, HostNotFound, ConnectionRefused, NotConnected, UnknownError }
|
||||
enum State { Unconnected, HostLookup, Connecting, Connected, LoggedIn, Closing }
|
||||
enum TransferMode { Passive, Active }
|
||||
enum TransferType { Binary, Ascii }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
qint64 bytesAvailable () const
|
||||
int cd ( const QString & dir )
|
||||
void clearPendingCommands ()
|
||||
int close ()
|
||||
int connectToHost ( const QString & host, quint16 port = 21 )
|
||||
Command currentCommand () const
|
||||
QIODevice * currentDevice () const
|
||||
int currentId () const
|
||||
Error error () const
|
||||
QString errorString () const
|
||||
int get ( const QString & file, QIODevice * dev = 0, TransferType type = Binary )
|
||||
bool hasPendingCommands () const
|
||||
int list ( const QString & dir = QString() )
|
||||
int login ( const QString & user = QString(), const QString & password = QString() )
|
||||
int mkdir ( const QString & dir )
|
||||
int put ( QIODevice * dev, const QString & file, TransferType type = Binary )
|
||||
int put ( const QByteArray & data, const QString & file, TransferType type = Binary )
|
||||
int rawCommand ( const QString & command )
|
||||
# Never uncomment it : See above
|
||||
// qint64 read ( char * data, qint64 maxlen )
|
||||
#
|
||||
QByteArray readAll ()
|
||||
int remove ( const QString & file )
|
||||
int rename ( const QString & oldname, const QString & newname )
|
||||
int rmdir ( const QString & dir )
|
||||
int setProxy ( const QString & host, quint16 port )
|
||||
int setTransferMode ( TransferMode mode )
|
||||
State state () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
void abort ()
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void commandFinished ( int id, bool error )
|
||||
void commandStarted ( int id )
|
||||
void dataTransferProgress ( qint64 done, qint64 total )
|
||||
void done ( bool error )
|
||||
void listInfo ( const QUrlInfo & i )
|
||||
void rawCommandReply ( int replyCode, const QString & detail )
|
||||
void readyRead ()
|
||||
void stateChanged ( int state )
|
||||
</SIGNALS>
|
||||
@@ -1,102 +0,0 @@
|
||||
/*
|
||||
* $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 <QtGui/QGradient>
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
HB_FUNC( QT_QGRADIENT )
|
||||
{
|
||||
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum CoordinateMode { LogicalMode, StretchToDeviceMode, ObjectBoundingMode }
|
||||
enum Spread { PadSpread, RepeatSpread, ReflectSpread }
|
||||
enum Type { LinearGradient, RadialGradient, ConicalGradient, NoGradient }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
CoordinateMode coordinateMode () const
|
||||
void setColorAt ( qreal position, const QColor & color )
|
||||
void setCoordinateMode ( CoordinateMode mode )
|
||||
void setSpread ( Spread method )
|
||||
// void setStops ( const QGradientStops & stopPoints )
|
||||
Spread spread () const
|
||||
// QGradientStops stops () const
|
||||
Type type () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,154 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QLayout
|
||||
New = pParent
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QGridLayout>
|
||||
|
||||
|
||||
/*
|
||||
* QGridLayout ( QWidget * parent )
|
||||
* QGridLayout ()
|
||||
* ~QGridLayout ()
|
||||
*/
|
||||
HB_FUNC( QT_QGRIDLAYOUT )
|
||||
{
|
||||
hb_retptr( new QGridLayout( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<PROTOS>
|
||||
void addItem ( QLayoutItem * item, int row, int column, int rowSpan = 1, int columnSpan = 1, Qt::Alignment alignment = 0 ){
|
||||
QGC_POINTER * p = ( QGC_POINTER * ) hb_parptrGC( hbqt_gcFuncs(), 1 );
|
||||
QGC_POINTER * q = ( QGC_POINTER * ) hb_parptrGC( hbqt_gcFuncs(), 2 );
|
||||
HB_TRACE( HB_TR_DEBUG, ( "Entering function QT_QGRIDLAYOUT_ADDITEM()" ) );
|
||||
if( p && p->ph && q && q->ph )
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "QT_QGRIDLAYOUT_ADDITEM() Qt object: %p is attached to: %p", p->ph, q->ph ) );
|
||||
q->bNew = HB_FALSE;
|
||||
hbqt_par_QGridLayout( 1 )->addItem( hbqt_par_QLayoutItem( 2 ), hb_parni( 3 ), hb_parni( 4 ), ( HB_ISNUM( 5 ) ? hb_parni( 5 ) : 1 ), ( HB_ISNUM( 6 ) ? hb_parni( 6 ) : 1 ), ( Qt::Alignment ) hb_parni( 7 ) );
|
||||
}
|
||||
}
|
||||
void addLayout ( QLayout * layout, int row, int column, Qt::Alignment alignment = 0 ){
|
||||
QGC_POINTER * p = ( QGC_POINTER * ) hb_parptrGC( hbqt_gcFuncs(), 1 );
|
||||
QGC_POINTER * q = ( QGC_POINTER * ) hb_parptrGC( hbqt_gcFuncs(), 2 );
|
||||
HB_TRACE( HB_TR_DEBUG, ( "Entering function QT_QGRIDLAYOUT_ADDLAYOUT()" ) );
|
||||
if( p && p->ph && q && q->ph )
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "QT_QGRIDLAYOUT_ADDLAYOUT() Qt object: %p is attached to: %p", p->ph, q->ph ) );
|
||||
q->bNew = HB_FALSE;
|
||||
hbqt_par_QGridLayout( 1 )->addLayout( hbqt_par_QLayout( 2 ), hb_parni( 3 ), hb_parni( 4 ), ( Qt::Alignment ) hb_parni( 5 ) );
|
||||
}
|
||||
}
|
||||
void addLayout ( QLayout * layout, int row, int column, int rowSpan, int columnSpan, Qt::Alignment alignment = 0 ){
|
||||
QGC_POINTER * p = ( QGC_POINTER * ) hb_parptrGC( hbqt_gcFuncs(), 1 );
|
||||
QGC_POINTER * q = ( QGC_POINTER * ) hb_parptrGC( hbqt_gcFuncs(), 2 );
|
||||
HB_TRACE( HB_TR_DEBUG, ( "Entering function QT_QGRIDLAYOUT_ADDLAYOUT_1()" ) );
|
||||
if( p && p->ph && q && q->ph )
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "QT_QGRIDLAYOUT_ADDLAYOUT_1() Qt object: %p is attached to: %p", p->ph, q->ph ) );
|
||||
q->bNew = HB_FALSE;
|
||||
hbqt_par_QGridLayout( 1 )->addLayout( hbqt_par_QLayout( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), hb_parni( 6 ), ( Qt::Alignment ) hb_parni( 7 ) );
|
||||
}
|
||||
}
|
||||
void addWidget ( QWidget * widget, int row, int column, Qt::Alignment alignment = 0 ){
|
||||
QGC_POINTER * p = ( QGC_POINTER * ) hb_parptrGC( hbqt_gcFuncs(), 1 );
|
||||
QGC_POINTER * q = ( QGC_POINTER * ) hb_parptrGC( hbqt_gcFuncs(), 2 );
|
||||
HB_TRACE( HB_TR_DEBUG, ( "Entering function QT_GRIDQLAYOUT_ADDWIDGET()" ) );
|
||||
if( p && p->ph && q && q->ph )
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "QT_QGRIDLAYOUT_ADDWIDGET() Qt object: %p is attached to: %p", p->ph, q->ph ) );
|
||||
q->bNew = HB_FALSE;
|
||||
hbqt_par_QGridLayout( 1 )->addWidget( hbqt_par_QWidget( 2 ), hb_parni( 3 ), hb_parni( 4 ), ( Qt::Alignment ) hb_parni( 5 ) );
|
||||
}
|
||||
}
|
||||
void addWidget ( QWidget * widget, int fromRow, int fromColumn, int rowSpan, int columnSpan, Qt::Alignment alignment = 0 ){
|
||||
QGC_POINTER * p = ( QGC_POINTER * ) hb_parptrGC( hbqt_gcFuncs(), 1 );
|
||||
QGC_POINTER * q = ( QGC_POINTER * ) hb_parptrGC( hbqt_gcFuncs(), 2 );
|
||||
HB_TRACE( HB_TR_DEBUG, ( "Entering function QT_GRIDQLAYOUT_ADDWIDGET_1()" ) );
|
||||
if( p && p->ph && q && q->ph )
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "QT_QGRIDLAYOUT_ADDWIDGET_1() Qt object: %p is attached to: %p", p->ph, q->ph ) );
|
||||
q->bNew = HB_FALSE;
|
||||
hbqt_par_QGridLayout( 1 )->addWidget( hbqt_par_QWidget( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), hb_parni( 6 ), ( Qt::Alignment ) hb_parni( 7 ) );
|
||||
}
|
||||
}
|
||||
QRect cellRect ( int row, int column ) const
|
||||
int columnCount () const
|
||||
int columnMinimumWidth ( int column ) const
|
||||
int columnStretch ( int column ) const
|
||||
void getItemPosition ( int index, int * row, int * column, int * rowSpan, int * columnSpan )
|
||||
int horizontalSpacing () const
|
||||
QLayoutItem * itemAtPosition ( int row, int column ) const
|
||||
Qt::Corner originCorner () const
|
||||
int rowCount () const
|
||||
int rowMinimumHeight ( int row ) const
|
||||
int rowStretch ( int row ) const
|
||||
void setColumnMinimumWidth ( int column, int minSize )
|
||||
void setColumnStretch ( int column, int stretch )
|
||||
void setHorizontalSpacing ( int spacing )
|
||||
void setOriginCorner ( Qt::Corner corner )
|
||||
void setRowMinimumHeight ( int row, int minSize )
|
||||
void setRowStretch ( int row, int stretch )
|
||||
void setSpacing ( int spacing )
|
||||
void setVerticalSpacing ( int spacing )
|
||||
int spacing () const
|
||||
int verticalSpacing () const
|
||||
</PROTOS>
|
||||
@@ -1,99 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QWidget
|
||||
New = pParent
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QGroupBox>
|
||||
|
||||
|
||||
/*
|
||||
* QGroupBox ( QWidget * parent = 0 )
|
||||
* QGroupBox ( const QString & title, QWidget * parent = 0 )
|
||||
* ~QGroupBox ()
|
||||
*/
|
||||
HB_FUNC( QT_QGROUPBOX )
|
||||
{
|
||||
hb_retptr( ( QGroupBox * ) new QGroupBox( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<PROTOS>
|
||||
Qt::Alignment alignment () const
|
||||
bool isCheckable () const
|
||||
bool isChecked () const
|
||||
bool isFlat () const
|
||||
void setAlignment ( int alignment )
|
||||
void setCheckable ( bool checkable )
|
||||
void setFlat ( bool flat )
|
||||
void setTitle ( const QString & title )
|
||||
QString title () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
void setChecked ( bool checked )
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void clicked ( bool checked = false )
|
||||
void toggled ( bool on )
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
@@ -1,78 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QBoxLayout
|
||||
New = pParent
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QHBoxLayout>
|
||||
|
||||
|
||||
/*
|
||||
* QHBoxLayout ()
|
||||
* QHBoxLayout ( QWidget * parent )
|
||||
* ~QHBoxLayout ()
|
||||
*/
|
||||
HB_FUNC( QT_QHBOXLAYOUT )
|
||||
{
|
||||
hb_retptr( ( QHBoxLayout * ) new QHBoxLayout( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
|
||||
@@ -1,156 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
Inherit = QAbstractItemView
|
||||
New = pParent
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QHeaderView>
|
||||
|
||||
|
||||
/*
|
||||
* QHeaderView ( Qt::Orientation orientation, QWidget * parent = 0 )
|
||||
* virtual ~QHeaderView ()
|
||||
*/
|
||||
HB_FUNC( QT_QHEADERVIEW )
|
||||
{
|
||||
hb_retptr( new QHeaderView( ( Qt::Orientation ) hb_parni( 1 ), hbqt_par_QWidget( 2 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum ResizeMode { Interactive, Fixed, Stretch, ResizeToContents, Custom }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
bool cascadingSectionResizes () const
|
||||
int count () const
|
||||
Qt::Alignment defaultAlignment () const
|
||||
int defaultSectionSize () const
|
||||
int hiddenSectionCount () const
|
||||
void hideSection ( int logicalIndex )
|
||||
bool highlightSections () const
|
||||
bool isClickable () const
|
||||
bool isMovable () const
|
||||
bool isSectionHidden ( int logicalIndex ) const
|
||||
bool isSortIndicatorShown () const
|
||||
int length () const
|
||||
int logicalIndex ( int visualIndex ) const
|
||||
int logicalIndexAt ( int position ) const
|
||||
int logicalIndexAt ( int x, int y ) const
|
||||
int logicalIndexAt ( const QPoint & pos ) const
|
||||
int minimumSectionSize () const
|
||||
void moveSection ( int from, int to )
|
||||
int offset () const
|
||||
Qt::Orientation orientation () const
|
||||
ResizeMode resizeMode ( int logicalIndex ) const
|
||||
void resizeSection ( int logicalIndex, int size )
|
||||
void resizeSections ( QHeaderView::ResizeMode mode )
|
||||
bool restoreState ( const QByteArray & state )
|
||||
QByteArray saveState () const
|
||||
int sectionPosition ( int logicalIndex ) const
|
||||
int sectionSize ( int logicalIndex ) const
|
||||
int sectionSizeHint ( int logicalIndex ) const
|
||||
int sectionViewportPosition ( int logicalIndex ) const
|
||||
bool sectionsHidden () const
|
||||
bool sectionsMoved () const
|
||||
void setCascadingSectionResizes ( bool enable )
|
||||
void setClickable ( bool clickable )
|
||||
void setDefaultAlignment ( Qt::Alignment alignment )
|
||||
void setDefaultSectionSize ( int size )
|
||||
void setHighlightSections ( bool highlight )
|
||||
void setMinimumSectionSize ( int size )
|
||||
void setMovable ( bool movable )
|
||||
void setResizeMode ( ResizeMode mode )
|
||||
void setResizeMode ( int logicalIndex, ResizeMode mode )
|
||||
void setSectionHidden ( int logicalIndex, bool hide )
|
||||
void setSortIndicator ( int logicalIndex, Qt::SortOrder order )
|
||||
void setSortIndicatorShown ( bool show )
|
||||
void setStretchLastSection ( bool stretch )
|
||||
void showSection ( int logicalIndex )
|
||||
virtual QSize sizeHint () const
|
||||
Qt::SortOrder sortIndicatorOrder () const
|
||||
int sortIndicatorSection () const
|
||||
bool stretchLastSection () const
|
||||
int stretchSectionCount () const
|
||||
void swapSections ( int first, int second )
|
||||
int visualIndex ( int logicalIndex ) const
|
||||
int visualIndexAt ( int position ) const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
void headerDataChanged ( Qt::Orientation orientation, int logicalFirst, int logicalLast )
|
||||
void setOffset ( int offset )
|
||||
void setOffsetToLastSection ()
|
||||
void setOffsetToSectionPosition ( int visualIndex )
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void geometriesChanged ()
|
||||
void sectionAutoResize ( int logicalIndex, QHeaderView::ResizeMode mode )
|
||||
void sectionClicked ( int logicalIndex )
|
||||
void sectionCountChanged ( int oldCount, int newCount )
|
||||
void sectionDoubleClicked ( int logicalIndex )
|
||||
void sectionEntered ( int logicalIndex )
|
||||
void sectionHandleDoubleClicked ( int logicalIndex )
|
||||
void sectionMoved ( int logicalIndex, int oldVisualIndex, int newVisualIndex )
|
||||
void sectionPressed ( int logicalIndex )
|
||||
void sectionResized ( int logicalIndex, int oldSize, int newSize )
|
||||
void sortIndicatorChanged ( int logicalIndex, Qt::SortOrder order )
|
||||
</SIGNALS>
|
||||
|
||||
@@ -1,98 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,93 +0,0 @@
|
||||
/*
|
||||
* $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 =
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QHideEvent>
|
||||
|
||||
|
||||
/*
|
||||
* QHideEvent ()
|
||||
*/
|
||||
HB_FUNC( QT_QHIDEEVENT )
|
||||
{
|
||||
// hb_retptr( new QHideEvent() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
<VARIABLES>
|
||||
</VARIABLES>
|
||||
|
||||
|
||||
|
||||
@@ -1,152 +0,0 @@
|
||||
/*
|
||||
* $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
|
||||
;
|
||||
|
||||
; Header File to Generate Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
Inherit = QObject
|
||||
New = pParent
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtNetwork/QHttp>
|
||||
|
||||
|
||||
/*
|
||||
* QHttp ( QObject * parent = 0 )
|
||||
* QHttp ( const QString & hostName, quint16 port = 80, QObject * parent = 0 )
|
||||
* QHttp ( const QString & hostName, ConnectionMode mode, quint16 port = 0, QObject * parent = 0 )
|
||||
* virtual ~QHttp ()
|
||||
*/
|
||||
HB_FUNC( QT_QHTTP )
|
||||
{
|
||||
hb_retptr( new QHttp( hbqt_par_QObject( 1 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* qint64 read ( char * data, qint64 maxlen )
|
||||
*/
|
||||
HB_FUNC( QT_QHTTP_READ )
|
||||
{
|
||||
char * iData = ( char * ) hb_xgrab( hb_parnint( 3 ) + 1 );
|
||||
qint64 iRead;
|
||||
|
||||
iRead = hbqt_par_QHttp( 1 )->read( iData, hb_parnint( 3 ) );
|
||||
|
||||
hb_retnint( iRead );
|
||||
if( ! hb_storclen_buffer( iData, iRead, 2 ) )
|
||||
hb_xfree( iData );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum ConnectionMode { ConnectionModeHttp, ConnectionModeHttps }
|
||||
enum Error { NoError, HostNotFound, ConnectionRefused, UnexpectedClose, ..., UnknownError }
|
||||
enum State { Unconnected, HostLookup, Connecting, Sending, ..., Closing }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
qint64 bytesAvailable () const
|
||||
void clearPendingRequests ()
|
||||
int close ()
|
||||
QIODevice * currentDestinationDevice () const
|
||||
int currentId () const
|
||||
QHttpRequestHeader currentRequest () const
|
||||
QIODevice * currentSourceDevice () const
|
||||
Error error () const
|
||||
QString errorString () const
|
||||
int get ( const QString & path, QIODevice * to = 0 )
|
||||
bool hasPendingRequests () const
|
||||
int head ( const QString & path )
|
||||
QHttpResponseHeader lastResponse () const
|
||||
int post ( const QString & path, QIODevice * data, QIODevice * to = 0 )
|
||||
int post ( const QString & path, const QByteArray & data, QIODevice * to = 0 )
|
||||
#
|
||||
# NEVER UNCOMMENT IT
|
||||
// qint64 read ( char * data, qint64 maxlen )
|
||||
#
|
||||
#
|
||||
QByteArray readAll ()
|
||||
int request ( const QHttpRequestHeader & header, QIODevice * data = 0, QIODevice * to = 0 )
|
||||
int request ( const QHttpRequestHeader & header, const QByteArray & data, QIODevice * to = 0 )
|
||||
int setHost ( const QString & hostName, quint16 port = 80 )
|
||||
int setHost ( const QString & hostName, ConnectionMode mode, quint16 port = 0 )
|
||||
int setProxy ( const QString & host, int port, const QString & username = QString(), const QString & password = QString() )
|
||||
// int setProxy ( const QNetworkProxy & proxy )
|
||||
// int setSocket ( QTcpSocket * socket )
|
||||
int setUser ( const QString & userName, const QString & password = QString() )
|
||||
State state () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
void abort ()
|
||||
//void ignoreSslErrors ()
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void authenticationRequired ( const QString & hostname, quint16 port, QAuthenticator * authenticator )
|
||||
void dataReadProgress ( int done, int total )
|
||||
void dataSendProgress ( int done, int total )
|
||||
void done ( bool error )
|
||||
// void proxyAuthenticationRequired ( const QNetworkProxy & proxy, QAuthenticator * authenticator )
|
||||
void readyRead ( const QHttpResponseHeader & resp )
|
||||
void requestFinished ( int id, bool error )
|
||||
void requestStarted ( int id )
|
||||
void responseHeaderReceived ( const QHttpResponseHeader & resp )
|
||||
void sslErrors ( const QList<QSslError> & errors )
|
||||
void stateChanged ( int state )
|
||||
</SIGNALS>
|
||||
@@ -1,114 +0,0 @@
|
||||
/*
|
||||
* $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 = no
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
#include <QtNetwork/QHttpHeader>
|
||||
|
||||
|
||||
/*
|
||||
* QHttpHeader ()
|
||||
* QHttpHeader ( const QHttpHeader & header )
|
||||
* QHttpHeader ( const QString & str )
|
||||
* virtual ~QHttpHeader ()
|
||||
*/
|
||||
HB_FUNC( QT_QHTTPHEADER )
|
||||
{
|
||||
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
void addValue ( const QString & key, const QString & value )
|
||||
QStringList allValues ( const QString & key ) const
|
||||
uint contentLength () const
|
||||
QString contentType () const
|
||||
bool hasContentLength () const
|
||||
bool hasContentType () const
|
||||
bool hasKey ( const QString & key ) const
|
||||
bool isValid () const
|
||||
QStringList keys () const
|
||||
virtual int majorVersion () const = 0
|
||||
virtual int minorVersion () const = 0
|
||||
void removeAllValues ( const QString & key )
|
||||
void removeValue ( const QString & key )
|
||||
void setContentLength ( int len )
|
||||
void setContentType ( const QString & type )
|
||||
void setValue ( const QString & key, const QString & value )
|
||||
void setValues ( const QList<QPair<QString, QString> > & values )
|
||||
virtual QString toString () const
|
||||
QString value ( const QString & key ) const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,99 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,99 +0,0 @@
|
||||
/*
|
||||
* $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>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,136 +0,0 @@
|
||||
/*
|
||||
* $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/QIODevice>
|
||||
|
||||
|
||||
/*
|
||||
* QIODevice ()
|
||||
* QIODevice ( QObject * parent )
|
||||
* virtual ~QIODevice ()
|
||||
*/
|
||||
HB_FUNC( QT_QIODEVICE )
|
||||
{
|
||||
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
|
||||
{
|
||||
// hb_retptr( new QIODevice( hbqt_par_QObject( 1 ) ) );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
flags OpenMode
|
||||
enum OpenModeFlag { NotOpen, ReadOnly, WriteOnly, ReadWrite, ..., Unbuffered }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
virtual bool atEnd () const
|
||||
virtual qint64 bytesAvailable () const
|
||||
virtual qint64 bytesToWrite () const
|
||||
virtual bool canReadLine () const
|
||||
virtual void close ()
|
||||
QString errorString () const
|
||||
bool getChar ( char * c )
|
||||
bool isOpen () const
|
||||
bool isReadable () const
|
||||
virtual bool isSequential () const
|
||||
bool isTextModeEnabled () const
|
||||
bool isWritable () const
|
||||
virtual bool open ( OpenMode mode )
|
||||
OpenMode openMode () const
|
||||
qint64 peek ( char * data, qint64 maxSize )
|
||||
QByteArray peek ( qint64 maxSize )
|
||||
virtual qint64 pos () const
|
||||
bool putChar ( char c )
|
||||
qint64 read ( char * data, qint64 maxSize )
|
||||
QByteArray read ( qint64 maxSize )
|
||||
QByteArray readAll ()
|
||||
qint64 readLine ( char * data, qint64 maxSize )
|
||||
QByteArray readLine ( qint64 maxSize = 0 )
|
||||
virtual bool reset ()
|
||||
virtual bool seek ( qint64 pos )
|
||||
void setTextModeEnabled ( bool enabled )
|
||||
virtual qint64 size () const
|
||||
void ungetChar ( char c )
|
||||
virtual bool waitForBytesWritten ( int msecs )
|
||||
virtual bool waitForReadyRead ( int msecs )
|
||||
qint64 write ( const char * data, qint64 maxSize )
|
||||
qint64 write ( const char * data )
|
||||
qint64 write ( const QByteArray & byteArray )
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void aboutToClose ()
|
||||
void bytesWritten ( qint64 bytes )
|
||||
void readChannelFinished ()
|
||||
void readyRead ()
|
||||
</SIGNALS>
|
||||
|
||||
<VARIABLES>
|
||||
</VARIABLES>
|
||||
|
||||
|
||||
|
||||
@@ -1,126 +0,0 @@
|
||||
/*
|
||||
* $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
|
||||
Type = PlainObject
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<DOC>
|
||||
oIcon := QIcon():new()
|
||||
oIcon := QIcon():new( cFileName )
|
||||
oIcon := QIcon():new( pQPixmap )
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QIcon>
|
||||
|
||||
|
||||
/*
|
||||
* QIcon ()
|
||||
* QIcon ( const QPixmap & pixmap )
|
||||
* QIcon ( const QIcon & other )
|
||||
* QIcon ( const QString & fileName )
|
||||
* QIcon ( QIconEngine * engine )
|
||||
* QIcon ( QIconEngineV2 * engine )
|
||||
* ~QIcon ()
|
||||
*/
|
||||
HB_FUNC( QT_QICON )
|
||||
{
|
||||
if( hb_pcount() == 1 && HB_ISCHAR( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QIcon* ) new QIcon( hbqt_par_QString( 1 ) ) );
|
||||
}
|
||||
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QIcon* ) new QIcon( *hbqt_par_QPixmap( 1 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( ( QIcon* ) new QIcon() );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum Mode { Normal, Disabled, Active, Selected }
|
||||
enum State { Off, On }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
QSize actualSize ( const QSize & size, Mode mode = Normal, State state = Off ) const
|
||||
void addFile ( const QString & fileName, const QSize & size = QSize(), Mode mode = Normal, State state = Off )
|
||||
void addPixmap ( const QPixmap & pixmap, Mode mode = Normal, State state = Off )
|
||||
QList<QSize> availableSizes ( Mode mode = Normal, State state = Off ) const
|
||||
qint64 cacheKey () const
|
||||
bool isNull () const
|
||||
void paint ( QPainter * painter, const QRect & rect, Qt::Alignment alignment = Qt::AlignCenter, Mode mode = Normal, State state = Off ) const
|
||||
void paint ( QPainter * painter, int x, int y, int w, int h, Qt::Alignment alignment = Qt::AlignCenter, Mode mode = Normal, State state = Off ) const
|
||||
QPixmap pixmap ( const QSize & size, Mode mode = Normal, State state = Off ) const
|
||||
QPixmap pixmap ( int w, int h, Mode mode = Normal, State state = Off ) const
|
||||
QPixmap pixmap ( int extent, Mode mode = Normal, State state = Off ) const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,209 +0,0 @@
|
||||
|
||||
/*
|
||||
* $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 = PlainObject
|
||||
New =
|
||||
</CLASS>
|
||||
|
||||
<DOC>
|
||||
oImage := QImage():new()
|
||||
oImage := QImage():new( pQSize, cFormat )
|
||||
oImage := QImage():new( iWidth, iHeight, cFormat )
|
||||
oImage := QImage():new( @cData, iWidth, iHeight, cFormat )
|
||||
oImage := QImage():new( cData , iWidth, iHeight, cFormat )
|
||||
oImage := QImage():new( @cData, iWidth, iHeight, iBytesPerLine, cFormat )
|
||||
oImage := QImage():new( cData , iWidth, iHeight, iBytesPerLine, cFormat )
|
||||
oImage := QImage():new( cFileName [, cFormat ] )
|
||||
oImage := QImage():new( pQImage )
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QStringList>
|
||||
#include <QtGui/QImage>
|
||||
|
||||
|
||||
/*
|
||||
* QImage ()
|
||||
* QImage ( const QSize & size, Format format )
|
||||
* QImage ( int width, int height, Format format )
|
||||
* QImage ( uchar * data, int width, int height, Format format )
|
||||
* QImage ( const uchar * data, int width, int height, Format format )
|
||||
* QImage ( uchar * data, int width, int height, int bytesPerLine, Format format )
|
||||
* QImage ( const uchar * data, int width, int height, int bytesPerLine, Format format )
|
||||
* QImage ( const char * const[] xpm )
|
||||
* QImage ( const QString & fileName, const char * format = 0 )
|
||||
* QImage ( const char * fileName, const char * format = 0 )
|
||||
* QImage ( const QImage & image )
|
||||
* ~QImage ()
|
||||
*/
|
||||
HB_FUNC( QT_QIMAGE )
|
||||
{
|
||||
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QImage* ) new QImage( *hbqt_par_QImage( 1 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 1 && HB_ISCHAR( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QImage* ) new QImage( hbqt_par_QString( 1 ), ( const char * ) 0 ) );
|
||||
}
|
||||
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISCHAR( 2 ) )
|
||||
{
|
||||
hb_retptr( ( QImage* ) new QImage( hbqt_par_QString( 1 ), ( const char * ) hb_parcx( 2 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISNUM( 2 ) )
|
||||
{
|
||||
hb_retptr( ( QImage* ) new QImage( *hbqt_par_QSize( 1 ), ( QImage::Format ) hb_parni( 2 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 3 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) )
|
||||
{
|
||||
hb_retptr( ( QImage* ) new QImage( hb_parni( 1 ), hb_parni( 2 ), ( QImage::Format ) hb_parni( 3 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 4 && HB_ISCHAR( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) && HB_ISNUM( 4 ) )
|
||||
{
|
||||
hb_retptr( ( QImage* ) new QImage( ( const uchar * ) hb_parc( 1 ), hb_parni( 2 ), hb_parni( 3 ), ( QImage::Format ) hb_parni( 4 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 5 && HB_ISCHAR( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) && HB_ISNUM( 4 ) && HB_ISNUM( 5 ) )
|
||||
{
|
||||
hb_retptr( ( QImage* ) new QImage( ( const uchar * ) hb_parc( 1 ), hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), ( QImage::Format ) hb_parni( 5 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( ( QImage* ) new QImage() );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum Format { Format_Invalid, Format_Mono, Format_MonoLSB, Format_Indexed8, ..., Format_ARGB4444_Premultiplied }
|
||||
enum InvertMode { InvertRgb, InvertRgba }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
bool allGray () const
|
||||
QImage alphaChannel () const
|
||||
uchar * bits ()
|
||||
const uchar * bits () const
|
||||
int bytesPerLine () const
|
||||
qint64 cacheKey () const
|
||||
QRgb color ( int i ) const
|
||||
QVector<QRgb> colorTable () const
|
||||
QImage convertToFormat ( Format format, Qt::ImageConversionFlags flags = Qt::AutoColor ) const
|
||||
QImage convertToFormat ( Format format, const QVector<QRgb> & colorTable, Qt::ImageConversionFlags flags = Qt::AutoColor ) const
|
||||
QImage copy ( const QRect & rectangle = QRect() ) const
|
||||
QImage copy ( int x, int y, int width, int height ) const
|
||||
QImage createAlphaMask ( Qt::ImageConversionFlags flags = Qt::AutoColor ) const
|
||||
QImage createHeuristicMask ( bool clipTight = true ) const
|
||||
QImage createMaskFromColor ( QRgb color, Qt::MaskMode mode = Qt::MaskInColor ) const
|
||||
int depth () const
|
||||
int dotsPerMeterX () const
|
||||
int dotsPerMeterY () const
|
||||
void fill ( uint pixelValue )
|
||||
Format format () const
|
||||
bool hasAlphaChannel () const
|
||||
int height () const
|
||||
void invertPixels ( InvertMode mode = InvertRgb )
|
||||
bool isGrayscale () const
|
||||
bool isNull () const
|
||||
bool load ( const QString & fileName, const char * format = 0 )
|
||||
bool load ( QIODevice * device, const char * format )
|
||||
// bool loadFromData ( const uchar * data, int len, const char * format = 0 )
|
||||
bool loadFromData ( const QByteArray & data, const char * format = 0 )
|
||||
QImage mirrored ( bool horizontal = false, bool vertical = true ) const
|
||||
int numBytes () const
|
||||
int numColors () const
|
||||
QPoint offset () const
|
||||
QRgb pixel ( const QPoint & position ) const
|
||||
QRgb pixel ( int x, int y ) const
|
||||
int pixelIndex ( const QPoint & position ) const
|
||||
int pixelIndex ( int x, int y ) const
|
||||
QRect rect () const
|
||||
QImage rgbSwapped () const
|
||||
bool save ( const QString & fileName, const char * format = 0, int quality = -1 ) const
|
||||
bool save ( QIODevice * device, const char * format = 0, int quality = -1 ) const
|
||||
QImage scaled ( const QSize & size, Qt::AspectRatioMode aspectRatioMode = Qt::IgnoreAspectRatio, Qt::TransformationMode transformMode = Qt::FastTransformation ) const
|
||||
QImage scaled ( int width, int height, Qt::AspectRatioMode aspectRatioMode = Qt::IgnoreAspectRatio, Qt::TransformationMode transformMode = Qt::FastTransformation ) const
|
||||
QImage scaledToHeight ( int height, Qt::TransformationMode mode = Qt::FastTransformation ) const
|
||||
QImage scaledToWidth ( int width, Qt::TransformationMode mode = Qt::FastTransformation ) const
|
||||
uchar * scanLine ( int i )
|
||||
const uchar * scanLine ( int i ) const
|
||||
void setColor ( int index, QRgb colorValue )
|
||||
void setColorTable ( const QVector<QRgb> colors )
|
||||
void setDotsPerMeterX ( int x )
|
||||
void setDotsPerMeterY ( int y )
|
||||
void setNumColors ( int numColors )
|
||||
void setOffset ( const QPoint & offset )
|
||||
void setPixel ( const QPoint & position, uint index_or_rgb )
|
||||
void setPixel ( int x, int y, uint index_or_rgb )
|
||||
void setText ( const QString & key, const QString & text )
|
||||
QSize size () const
|
||||
QString text ( const QString & key = QString() ) const
|
||||
QStringList textKeys () const
|
||||
QImage transformed ( const QMatrix & matrix, Qt::TransformationMode mode = Qt::FastTransformation ) const
|
||||
QImage transformed ( const QTransform & matrix, Qt::TransformationMode mode = Qt::FastTransformation ) const
|
||||
bool valid ( const QPoint & pos ) const
|
||||
bool valid ( int x, int y ) const
|
||||
int width () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user