2010-05-26 18:53 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/generator/hbqtgen.prg
+ Tweaked to operate on local folder and definitions there.
+ contrib/hbqt/hbqscintilla
+ contrib/hbqt/hbqscintilla/doc
+ contrib/hbqt/hbqscintilla/doc/en
+ contrib/hbqt/hbqscintilla/qth
+ contrib/hbqt/hbqscintilla/qth/HBQsciScintilla.qth
+ contrib/hbqt/hbqscintilla/qth/QsciAbstractAPIs.qth
+ contrib/hbqt/hbqscintilla/qth/QsciAPIs.qth
+ contrib/hbqt/hbqscintilla/qth/QsciCommand.qth
+ contrib/hbqt/hbqscintilla/qth/QsciCommandSet.qth
+ contrib/hbqt/hbqscintilla/qth/QsciDocument.qth
+ contrib/hbqt/hbqscintilla/qth/QsciLexer.qth
+ contrib/hbqt/hbqscintilla/qth/QsciLexerCPP.qth
+ contrib/hbqt/hbqscintilla/qth/QsciLexerFlagship.qth
+ contrib/hbqt/hbqscintilla/qth/QsciScintilla.qth
+ contrib/hbqt/hbqscintilla/qth/QsciStyle.qth
+ contrib/hbqt/hbqscintilla/qth/QsciStyledText.qth
+ contrib/hbqt/hbqscintilla/doc/en/class_*.txt
+ Auto generated
+ contrib/hbqt/hbqscintilla/Qsci*.cpp
+ Auto generated.
+ contrib/hbqt/hbqscintilla/THBQsci*.prg
+ Auto generated.
+ contrib/hbqt/hbqscintilla/hbqt_garbage.h
+ Auto generated.
+ contrib/hbqt/hbqscintilla/hbqscintilla.ch
+ Constants for PRG code.
+ contrib/hbqt/hbqscintilla/hbqscintilla.hbp
+ To build hbqscintilla.a/lib
+ contrib/hbqt/hbqscintilla/hbqscintilla.qtp
+ .qth info file.
+ contrib/hbqt/hbqscintilla/hbqt_hbqsciscintilla.cpp
+ contrib/hbqt/hbqscintilla/hbqt_hbqsciscintilla.h
+ contrib/hbqt/hbqt.h
+ Added: constants hbqt_par_Qsci*
; TODO make them local.
+ Initial upload of wrappers for QScintilla.
To generate the sources auto you need to stay in hbqt/hbqscintilla
and issue ../generator/hbqtgen.
HB_WITH_QSCINTILLA and HB_WITH_QT need be properly defined.
I am still finding where to host modified QScintilla, any tips ?
This commit is contained in:
@@ -17,6 +17,63 @@
|
||||
past entries belonging to author(s): Viktor Szakats.
|
||||
*/
|
||||
|
||||
2010-05-26 18:53 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
|
||||
* contrib/hbqt/generator/hbqtgen.prg
|
||||
+ Tweaked to operate on local folder and definitions there.
|
||||
|
||||
+ contrib/hbqt/hbqscintilla
|
||||
+ contrib/hbqt/hbqscintilla/doc
|
||||
+ contrib/hbqt/hbqscintilla/doc/en
|
||||
+ contrib/hbqt/hbqscintilla/qth
|
||||
|
||||
+ contrib/hbqt/hbqscintilla/qth/HBQsciScintilla.qth
|
||||
+ contrib/hbqt/hbqscintilla/qth/QsciAbstractAPIs.qth
|
||||
+ contrib/hbqt/hbqscintilla/qth/QsciAPIs.qth
|
||||
+ contrib/hbqt/hbqscintilla/qth/QsciCommand.qth
|
||||
+ contrib/hbqt/hbqscintilla/qth/QsciCommandSet.qth
|
||||
+ contrib/hbqt/hbqscintilla/qth/QsciDocument.qth
|
||||
+ contrib/hbqt/hbqscintilla/qth/QsciLexer.qth
|
||||
+ contrib/hbqt/hbqscintilla/qth/QsciLexerCPP.qth
|
||||
+ contrib/hbqt/hbqscintilla/qth/QsciLexerFlagship.qth
|
||||
+ contrib/hbqt/hbqscintilla/qth/QsciScintilla.qth
|
||||
+ contrib/hbqt/hbqscintilla/qth/QsciStyle.qth
|
||||
+ contrib/hbqt/hbqscintilla/qth/QsciStyledText.qth
|
||||
|
||||
+ contrib/hbqt/hbqscintilla/doc/en/class_*.txt
|
||||
+ Auto generated
|
||||
|
||||
+ contrib/hbqt/hbqscintilla/Qsci*.cpp
|
||||
+ Auto generated.
|
||||
|
||||
+ contrib/hbqt/hbqscintilla/THBQsci*.prg
|
||||
+ Auto generated.
|
||||
|
||||
+ contrib/hbqt/hbqscintilla/hbqt_garbage.h
|
||||
+ Auto generated.
|
||||
|
||||
+ contrib/hbqt/hbqscintilla/hbqscintilla.ch
|
||||
+ Constants for PRG code.
|
||||
|
||||
+ contrib/hbqt/hbqscintilla/hbqscintilla.hbp
|
||||
+ To build hbqscintilla.a/lib
|
||||
|
||||
+ contrib/hbqt/hbqscintilla/hbqscintilla.qtp
|
||||
+ .qth info file.
|
||||
|
||||
+ contrib/hbqt/hbqscintilla/hbqt_hbqsciscintilla.cpp
|
||||
+ contrib/hbqt/hbqscintilla/hbqt_hbqsciscintilla.h
|
||||
|
||||
+ contrib/hbqt/hbqt.h
|
||||
+ Added: constants hbqt_par_Qsci*
|
||||
; TODO make them local.
|
||||
|
||||
+ Initial upload of wrappers for QScintilla.
|
||||
To generate the sources auto you need to stay in hbqt/hbqscintilla
|
||||
and issue ../generator/hbqtgen.
|
||||
|
||||
HB_WITH_QSCINTILLA and HB_WITH_QT need be properly defined.
|
||||
I am still finding where to host modified QScintilla, any tips ?
|
||||
|
||||
2010-05-27 00:15 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
|
||||
* utils/hbmk2/examples/contribf.hbc
|
||||
* contrib/Makefile
|
||||
|
||||
@@ -78,7 +78,7 @@ STATIC s_trMode := "HB_TR_DEBUG"
|
||||
FUNCTION Main( ... )
|
||||
LOCAL aParam, cLParam
|
||||
LOCAL cParam, cPathOut, cPathIn, cProFile, cPathDoc
|
||||
LOCAL x, cPath, cFile, cExt, cTrMode
|
||||
LOCAL x, cPath, cFile, cExt, cTrMode, a_
|
||||
LOCAL aPrjFiles := {}
|
||||
LOCAL aProFiles := {}
|
||||
|
||||
@@ -106,7 +106,7 @@ FUNCTION Main( ... )
|
||||
IF empty( cExt ) .or. lower( cExt ) != 'qtp'
|
||||
cExt := 'qtp'
|
||||
ENDIF
|
||||
x := cPath + s_PathSep + cFile + '.' + cExt
|
||||
x := iif( empty( cPath ), "", cPath + s_PathSep )+ cFile + "." + cExt
|
||||
aadd( aPrjFiles, x )
|
||||
|
||||
CASE right( cLParam,4 ) == '.qtp'
|
||||
@@ -137,6 +137,13 @@ FUNCTION Main( ... )
|
||||
aadd( aPrjFiles, "qt45.qtp" )
|
||||
ENDIF
|
||||
|
||||
IF empty( aPrjFiles )
|
||||
|
||||
FOR EACH a_ IN directory( "*.qtp" )
|
||||
aadd( aPrjFiles, a_[ 1 ] )
|
||||
NEXT
|
||||
ENDIF
|
||||
|
||||
IF empty( aPrjFiles ) .and. empty( aProFiles )
|
||||
DispHelp()
|
||||
RETURN nil
|
||||
@@ -176,11 +183,12 @@ FUNCTION Main( ... )
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
STATIC FUNCTION ManageProject( cProFile, cPathIn, cPathOut, cPathDoc )
|
||||
LOCAL cFile, cPath, cExt, cPrj, cTkn, cVal
|
||||
LOCAL cFile, cPrj, cTkn, cVal // cPath, cExt,
|
||||
LOCAL cPIn, cPOut, cPDoc
|
||||
LOCAL n, nn
|
||||
LOCAL prj_, cpp_, prg_, a_
|
||||
|
||||
#if 0
|
||||
hb_fNameSplit( cProFile, @cPath, @cFile, @cExt )
|
||||
|
||||
IF empty( cPath )
|
||||
@@ -188,7 +196,9 @@ STATIC FUNCTION ManageProject( cProFile, cPathIn, cPathOut, cPathDoc )
|
||||
ELSE
|
||||
cFile := cProFile
|
||||
ENDIF
|
||||
IF !file( cFile )
|
||||
#endif
|
||||
cFile := cProFile
|
||||
IF ! hb_fileExists( cFile )
|
||||
RETURN nil
|
||||
ENDIF
|
||||
|
||||
@@ -235,7 +245,7 @@ STATIC FUNCTION ManageProject( cProFile, cPathIn, cPathOut, cPathDoc )
|
||||
cTkn := alltrim( substr( cPrj,1,n-1 ) )
|
||||
cVal := alltrim( substr( cPrj,n+1 ) )
|
||||
|
||||
IF !empty( cVal )
|
||||
//IF !empty( cVal )
|
||||
DO CASE
|
||||
CASE cTkn == '-I'
|
||||
cPIn := cVal
|
||||
@@ -247,7 +257,7 @@ STATIC FUNCTION ManageProject( cProFile, cPathIn, cPathOut, cPathDoc )
|
||||
cPDoc := cVal
|
||||
|
||||
ENDCASE
|
||||
ENDIF
|
||||
//ENDIF
|
||||
|
||||
ELSEIF lower( right( cPrj,4 ) ) == '.qth'
|
||||
a_:= GenSource( cPrj, cPIn, cPOut, cPDoc )
|
||||
@@ -330,7 +340,7 @@ STATIC FUNCTION GenSource( cProFile, cPathIn, cPathOut, cPathDoc )
|
||||
ELSE
|
||||
cFile := cProFile
|
||||
ENDIF
|
||||
IF !file( cFile )
|
||||
IF ! hb_fileExists( cFile )
|
||||
OutStd( "Cannot find: " + cFile + s_NewLine )
|
||||
RETURN { nil }
|
||||
ENDIF
|
||||
@@ -735,7 +745,7 @@ STATIC FUNCTION GenSource( cProFile, cPathIn, cPathOut, cPathDoc )
|
||||
|
||||
/* Build Class PRG Source */
|
||||
/* Distribute in specific lib subfolder */
|
||||
cFileCpp := GetSourcePathByLib( cWidget, cPathOut, '.cpp' )
|
||||
cFileCpp := GetSourcePathByLib( cWidget, cPathOut, '.cpp', NIL, cls_ )
|
||||
CreateTarget( cFileCpp, cpp_ )
|
||||
|
||||
/* Build CLASS */
|
||||
@@ -754,21 +764,25 @@ STATIC FUNCTION GenSource( cProFile, cPathIn, cPathOut, cPathDoc )
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
FUNCTION GetSourcePathByLib( cWidget, cPathOut, cExt, cPre )
|
||||
LOCAL cFileOut
|
||||
FUNCTION GetSourcePathByLib( cWidget, cPathOut, cExt, cPre, cls_ )
|
||||
LOCAL cFileOut, n
|
||||
|
||||
DEFAULT cPre TO ""
|
||||
|
||||
IF ascan( aGui, cWidget ) > 0
|
||||
cFileOut := cPathOut + s_PathSep + "qtgui" + s_pathSep + cPre + cWidget + cExt
|
||||
ELSEIF ascan( aCore, cWidget ) > 0
|
||||
cFileOut := cPathOut + s_PathSep + "qtcore" + s_pathSep + cPre + cWidget + cExt
|
||||
ELSEIF ascan( aWebkit, cWidget ) > 0
|
||||
cFileOut := cPathOut + s_PathSep + "qtwebkit" + s_pathSep + cPre + cWidget + cExt
|
||||
ELSEIF ascan( aNetwork, cWidget ) > 0
|
||||
cFileOut := cPathOut + s_PathSep + "qtnetwork" + s_pathSep + cPre + cWidget + cExt
|
||||
IF ( n := ascan( cls_, {|e_| lower( e_[ 1 ] ) == "folder" .AND. !empty( e_[ 2 ] ) } ) ) > 0
|
||||
cFileOut := iif( empty( cPathOut ), "", cPathOut + s_PathSep + cls_[ n,2 ] + s_pathSep ) + cPre + cWidget + cExt
|
||||
ELSE
|
||||
cFileOut := cPathOut + s_PathSep + cPre + cWidget + cExt
|
||||
IF ascan( aGui, cWidget ) > 0
|
||||
cFileOut := cPathOut + s_PathSep + "qtgui" + s_pathSep + cPre + cWidget + cExt
|
||||
ELSEIF ascan( aCore, cWidget ) > 0
|
||||
cFileOut := cPathOut + s_PathSep + "qtcore" + s_pathSep + cPre + cWidget + cExt
|
||||
ELSEIF ascan( aWebkit, cWidget ) > 0
|
||||
cFileOut := cPathOut + s_PathSep + "qtwebkit" + s_pathSep + cPre + cWidget + cExt
|
||||
ELSEIF ascan( aNetwork, cWidget ) > 0
|
||||
cFileOut := cPathOut + s_PathSep + "qtnetwork" + s_pathSep + cPre + cWidget + cExt
|
||||
ELSE
|
||||
cFileOut := cPathOut + s_PathSep + cPre + cWidget + cExt
|
||||
ENDIF
|
||||
ENDIF
|
||||
|
||||
RETURN cFileOut
|
||||
@@ -797,9 +811,9 @@ STATIC FUNCTION ParseProto( cProto, cWidget, txt_, doc_, aEnum, func_, lList, fB
|
||||
LOCAL cPre, cPar, cRet, cFun, cParas, cDocs, cCmd, cPas, s, ss, cFirstParamCast
|
||||
LOCAL cWdg, cCmn, cPrgRet, cHBFunc, cHBIdx, cDocNM
|
||||
LOCAL lSuccess, FP
|
||||
LOCAL cInt := 'int,qint16,quint16,short,ushort'
|
||||
LOCAL cInt := 'int,qint16,quint16,short,ushort,unsigned'
|
||||
LOCAL cIntLong := 'qint32,quint32,QRgb'
|
||||
LOCAL cIntLongLong := 'qint64,quint64,qlonglong,qulonglong'
|
||||
LOCAL cIntLongLong := 'qint64,quint64,qlonglong,qulonglong,ulong'
|
||||
|
||||
cParas := ''
|
||||
cDocs := ''
|
||||
@@ -1685,7 +1699,7 @@ STATIC FUNCTION Build_Class( cWidget, cls_, doc_, cPathOut, subCls_ )
|
||||
ENDIF
|
||||
|
||||
/* Generate .prg */
|
||||
cFile := GetSourcePathByLib( cWidget, cPathOut, '.prg', 'T' )
|
||||
cFile := GetSourcePathByLib( cWidget, cPathOut, '.prg', 'T', cls_ )
|
||||
CreateTarget( cFile, txt_ )
|
||||
|
||||
RETURN nil
|
||||
@@ -1801,7 +1815,7 @@ STATIC FUNCTION Build_Document( cWidget, cls_, doc_, cPathDoc, subCls_, docum_ )
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
STATIC FUNCTION Build_GarbageFile( cpp_, cPathOut )
|
||||
LOCAL cFile := cPathOut + s_PathSep + "hbqt_garbage.h"
|
||||
LOCAL cFile := iif( empty( cPathOut ), "", cPathOut + s_PathSep ) + "hbqt_garbage.h"
|
||||
LOCAL txt_ := {}
|
||||
LOCAL s
|
||||
|
||||
@@ -1851,10 +1865,18 @@ STATIC FUNCTION Build_MakeFile( cpp_, prg_, cPathOut )
|
||||
aadd( hdr_, "" )
|
||||
|
||||
/* Sub Libraries */
|
||||
aadd( aSubs, { "qtwebkit" , aWebkit } )
|
||||
aadd( aSubs, { "qtnetwork", aNetwork } )
|
||||
aadd( aSubs, { "qtgui" , aGui } )
|
||||
aadd( aSubs, { "qtcore" , aCore } )
|
||||
IF !empty( aWebkit )
|
||||
aadd( aSubs, { "qtwebkit" , aWebkit } )
|
||||
ENDIF
|
||||
IF !empty( aNetwork )
|
||||
aadd( aSubs, { "qtnetwork", aNetwork } )
|
||||
ENDIF
|
||||
IF !empty( aGui )
|
||||
aadd( aSubs, { "qtgui" , aGui } )
|
||||
ENDIF
|
||||
IF !empty( aCore )
|
||||
aadd( aSubs, { "qtcore" , aCore } )
|
||||
ENDIF
|
||||
//
|
||||
FOR i := 1 TO len( aSubs )
|
||||
txt_:= {}
|
||||
@@ -1875,7 +1897,7 @@ STATIC FUNCTION Build_MakeFile( cpp_, prg_, cPathOut )
|
||||
aadd( txt_, "# Don't delete this comment, it's here to ensure empty" )
|
||||
aadd( txt_, "# line above is kept intact." )
|
||||
//
|
||||
cFile := cPathOut + s_PathSep + aSubs[ i, 1 ] + s_PathSep + "filelist.mk"
|
||||
cFile := iif( empty( cPathOut ), "", cPathOut + s_PathSep + aSubs[ i, 1 ] + s_PathSep ) + "filelist.mk"
|
||||
CreateTarget( cFile, txt_ )
|
||||
NEXT
|
||||
|
||||
|
||||
154
harbour/contrib/hbqt/hbqscintilla/HBQsciScintilla.cpp
Normal file
154
harbour/contrib/hbqt/hbqscintilla/HBQsciScintilla.cpp
Normal file
@@ -0,0 +1,154 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/* WARNING: Automatically generated source file. DO NOT EDIT! */
|
||||
/* Instead, edit corresponding .qth file, */
|
||||
/* or the generator tool itself, and run regenarate. */
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT wrapper main header
|
||||
*
|
||||
* Copyright 2009-2010 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
*
|
||||
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include "../hbqt.h"
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#if QT_VERSION >= 0x040500
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include <QtCore/QPointer>
|
||||
|
||||
|
||||
#include "hbqt_hbqsciscintilla.h"
|
||||
#include "hbqt_garbage.h"
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
|
||||
typedef struct
|
||||
{
|
||||
QPointer< HBQsciScintilla > ph;
|
||||
bool bNew;
|
||||
QT_G_FUNC_PTR func;
|
||||
} QGC_POINTER_HBQsciScintilla;
|
||||
|
||||
QT_G_FUNC( hbqt_gcRelease_HBQsciScintilla )
|
||||
{
|
||||
HBQsciScintilla * ph = NULL ;
|
||||
QGC_POINTER_HBQsciScintilla * p = ( QGC_POINTER_HBQsciScintilla * ) Cargo;
|
||||
|
||||
if( p && p->bNew && p->ph )
|
||||
{
|
||||
ph = p->ph;
|
||||
if( ph )
|
||||
{
|
||||
const QMetaObject * m = ( ph )->metaObject();
|
||||
if( ( QString ) m->className() != ( QString ) "QObject" )
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_HBQsciScintilla /.\\ ", (void*) ph, (void*) p->ph ) );
|
||||
delete ( p->ph );
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_HBQsciScintilla \\./ ", (void*) ph, (void*) p->ph ) );
|
||||
p->ph = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NO__rel_HBQsciScintilla ", ph ) );
|
||||
p->ph = NULL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p DEL_rel_HBQsciScintilla : Object already deleted!", ph ) );
|
||||
p->ph = NULL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p PTR_rel_HBQsciScintilla : Object not created with new=true", ph ) );
|
||||
p->ph = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void * hbqt_gcAllocate_HBQsciScintilla( void * pObj, bool bNew )
|
||||
{
|
||||
QGC_POINTER_HBQsciScintilla * p = ( QGC_POINTER_HBQsciScintilla * ) hb_gcAllocate( sizeof( QGC_POINTER_HBQsciScintilla ), hbqt_gcFuncs() );
|
||||
|
||||
new( & p->ph ) QPointer< HBQsciScintilla >( ( HBQsciScintilla * ) pObj );
|
||||
p->bNew = bNew;
|
||||
p->func = hbqt_gcRelease_HBQsciScintilla;
|
||||
|
||||
if( bNew )
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_HBQsciScintilla under p->pq", pObj ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_HBQsciScintilla", pObj ) );
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
HB_FUNC( QT_HBQSCISCINTILLA )
|
||||
{
|
||||
HBQsciScintilla * pObj = NULL;
|
||||
|
||||
pObj = new HBQsciScintilla( hbqt_par_QWidget( 1 ) ) ;
|
||||
|
||||
hb_retptrGC( hbqt_gcAllocate_HBQsciScintilla( ( void * ) pObj, true ) );
|
||||
}
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#endif /* #if QT_VERSION >= 0x040500 */
|
||||
/*----------------------------------------------------------------------*/
|
||||
360
harbour/contrib/hbqt/hbqscintilla/QsciAPIs.cpp
Normal file
360
harbour/contrib/hbqt/hbqscintilla/QsciAPIs.cpp
Normal file
@@ -0,0 +1,360 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/* WARNING: Automatically generated source file. DO NOT EDIT! */
|
||||
/* Instead, edit corresponding .qth file, */
|
||||
/* or the generator tool itself, and run regenarate. */
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT wrapper main header
|
||||
*
|
||||
* Copyright 2009-2010 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
*
|
||||
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include "../hbqt.h"
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#if QT_VERSION >= 0x040500
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
* Constructed[ 14/15 [ 93.33% ] ]
|
||||
*
|
||||
* *** Unconvered Prototypes ***
|
||||
* -----------------------------
|
||||
*
|
||||
* virtual QStringList callTips (const QStringList &context, int commas, QsciScintilla::CallTipsStyle style, QList< int > &shifts)
|
||||
*/
|
||||
|
||||
#include <QtCore/QPointer>
|
||||
|
||||
#include <qsciapis.h>
|
||||
#include "hbqt_garbage.h"
|
||||
|
||||
|
||||
/*
|
||||
* QsciAPIs (QsciLexer *lexer)
|
||||
* virtual ~QsciAPIs ()
|
||||
*
|
||||
*/
|
||||
|
||||
typedef struct
|
||||
{
|
||||
QPointer< QsciAPIs > ph;
|
||||
bool bNew;
|
||||
QT_G_FUNC_PTR func;
|
||||
} QGC_POINTER_QsciAPIs;
|
||||
|
||||
QT_G_FUNC( hbqt_gcRelease_QsciAPIs )
|
||||
{
|
||||
QsciAPIs * ph = NULL ;
|
||||
QGC_POINTER_QsciAPIs * p = ( QGC_POINTER_QsciAPIs * ) Cargo;
|
||||
|
||||
if( p && p->bNew && p->ph )
|
||||
{
|
||||
ph = p->ph;
|
||||
if( ph )
|
||||
{
|
||||
const QMetaObject * m = ( ph )->metaObject();
|
||||
if( ( QString ) m->className() != ( QString ) "QObject" )
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_QsciAPIs /.\\ ", (void*) ph, (void*) p->ph ) );
|
||||
delete ( p->ph );
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_QsciAPIs \\./ ", (void*) ph, (void*) p->ph ) );
|
||||
p->ph = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NO__rel_QsciAPIs ", ph ) );
|
||||
p->ph = NULL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p DEL_rel_QsciAPIs : Object already deleted!", ph ) );
|
||||
p->ph = NULL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p PTR_rel_QsciAPIs : Object not created with new=true", ph ) );
|
||||
p->ph = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void * hbqt_gcAllocate_QsciAPIs( void * pObj, bool bNew )
|
||||
{
|
||||
QGC_POINTER_QsciAPIs * p = ( QGC_POINTER_QsciAPIs * ) hb_gcAllocate( sizeof( QGC_POINTER_QsciAPIs ), hbqt_gcFuncs() );
|
||||
|
||||
new( & p->ph ) QPointer< QsciAPIs >( ( QsciAPIs * ) pObj );
|
||||
p->bNew = bNew;
|
||||
p->func = hbqt_gcRelease_QsciAPIs;
|
||||
|
||||
if( bNew )
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QsciAPIs under p->pq", pObj ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QsciAPIs", pObj ) );
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
HB_FUNC( QT_QSCIAPIS )
|
||||
{
|
||||
QsciAPIs * pObj = NULL;
|
||||
|
||||
pObj = new QsciAPIs( hbqt_par_QsciLexer( 1 ) ) ;
|
||||
|
||||
hb_retptrGC( hbqt_gcAllocate_QsciAPIs( ( void * ) pObj, true ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void add (const QString &entry)
|
||||
*/
|
||||
HB_FUNC( QT_QSCIAPIS_ADD )
|
||||
{
|
||||
QsciAPIs * p = hbqt_par_QsciAPIs( 1 );
|
||||
if( p )
|
||||
( p )->add( QsciAPIs::tr( hb_parc( 2 ) ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_ADD FP=( p )->add( QsciAPIs::tr( hb_parc( 2 ) ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* void clear ()
|
||||
*/
|
||||
HB_FUNC( QT_QSCIAPIS_CLEAR )
|
||||
{
|
||||
QsciAPIs * p = hbqt_par_QsciAPIs( 1 );
|
||||
if( p )
|
||||
( p )->clear();
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_CLEAR FP=( p )->clear(); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* bool load (const QString &fname)
|
||||
*/
|
||||
HB_FUNC( QT_QSCIAPIS_LOAD )
|
||||
{
|
||||
QsciAPIs * p = hbqt_par_QsciAPIs( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->load( QsciAPIs::tr( hb_parc( 2 ) ) ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_LOAD FP=hb_retl( ( p )->load( QsciAPIs::tr( hb_parc( 2 ) ) ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* void remove (const QString &entry)
|
||||
*/
|
||||
HB_FUNC( QT_QSCIAPIS_REMOVE )
|
||||
{
|
||||
QsciAPIs * p = hbqt_par_QsciAPIs( 1 );
|
||||
if( p )
|
||||
( p )->remove( QsciAPIs::tr( hb_parc( 2 ) ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_REMOVE FP=( p )->remove( QsciAPIs::tr( hb_parc( 2 ) ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* void prepare ()
|
||||
*/
|
||||
HB_FUNC( QT_QSCIAPIS_PREPARE )
|
||||
{
|
||||
QsciAPIs * p = hbqt_par_QsciAPIs( 1 );
|
||||
if( p )
|
||||
( p )->prepare();
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_PREPARE FP=( p )->prepare(); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* void cancelPreparation ()
|
||||
*/
|
||||
HB_FUNC( QT_QSCIAPIS_CANCELPREPARATION )
|
||||
{
|
||||
QsciAPIs * p = hbqt_par_QsciAPIs( 1 );
|
||||
if( p )
|
||||
( p )->cancelPreparation();
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_CANCELPREPARATION FP=( p )->cancelPreparation(); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* QString defaultPreparedName () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCIAPIS_DEFAULTPREPAREDNAME )
|
||||
{
|
||||
QsciAPIs * p = hbqt_par_QsciAPIs( 1 );
|
||||
if( p )
|
||||
hb_retc( ( p )->defaultPreparedName().toAscii().data() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_DEFAULTPREPAREDNAME FP=hb_retc( ( p )->defaultPreparedName().toAscii().data() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* bool isPrepared (const QString &fname=QString()) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCIAPIS_ISPREPARED )
|
||||
{
|
||||
QsciAPIs * p = hbqt_par_QsciAPIs( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->isPrepared( QsciAPIs::tr( hb_parc( 2 ) ) ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_ISPREPARED FP=hb_retl( ( p )->isPrepared( QsciAPIs::tr( hb_parc( 2 ) ) ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* bool loadPrepared (const QString &fname=QString())
|
||||
*/
|
||||
HB_FUNC( QT_QSCIAPIS_LOADPREPARED )
|
||||
{
|
||||
QsciAPIs * p = hbqt_par_QsciAPIs( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->loadPrepared( QsciAPIs::tr( hb_parc( 2 ) ) ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_LOADPREPARED FP=hb_retl( ( p )->loadPrepared( QsciAPIs::tr( hb_parc( 2 ) ) ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* bool savePrepared (const QString &fname=QString()) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCIAPIS_SAVEPREPARED )
|
||||
{
|
||||
QsciAPIs * p = hbqt_par_QsciAPIs( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->savePrepared( QsciAPIs::tr( hb_parc( 2 ) ) ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_SAVEPREPARED FP=hb_retl( ( p )->savePrepared( QsciAPIs::tr( hb_parc( 2 ) ) ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual void updateAutoCompletionList (const QStringList &context, QStringList &list)
|
||||
*/
|
||||
HB_FUNC( QT_QSCIAPIS_UPDATEAUTOCOMPLETIONLIST )
|
||||
{
|
||||
QsciAPIs * p = hbqt_par_QsciAPIs( 1 );
|
||||
if( p )
|
||||
( p )->updateAutoCompletionList( *hbqt_par_QStringList( 2 ), *hbqt_par_QStringList( 3 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_UPDATEAUTOCOMPLETIONLIST FP=( p )->updateAutoCompletionList( *hbqt_par_QStringList( 2 ), *hbqt_par_QStringList( 3 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual void autoCompletionSelected (const QString &sel)
|
||||
*/
|
||||
HB_FUNC( QT_QSCIAPIS_AUTOCOMPLETIONSELECTED )
|
||||
{
|
||||
QsciAPIs * p = hbqt_par_QsciAPIs( 1 );
|
||||
if( p )
|
||||
( p )->autoCompletionSelected( QsciAPIs::tr( hb_parc( 2 ) ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_AUTOCOMPLETIONSELECTED FP=( p )->autoCompletionSelected( QsciAPIs::tr( hb_parc( 2 ) ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual bool event (QEvent *e)
|
||||
*/
|
||||
HB_FUNC( QT_QSCIAPIS_EVENT )
|
||||
{
|
||||
QsciAPIs * p = hbqt_par_QsciAPIs( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->event( hbqt_par_QEvent( 2 ) ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_EVENT FP=hb_retl( ( p )->event( hbqt_par_QEvent( 2 ) ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* QStringList installedAPIFiles () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCIAPIS_INSTALLEDAPIFILES )
|
||||
{
|
||||
QsciAPIs * p = hbqt_par_QsciAPIs( 1 );
|
||||
if( p )
|
||||
hb_retptrGC( hbqt_gcAllocate_QStringList( new QStringList( ( p )->installedAPIFiles() ), true ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_INSTALLEDAPIFILES FP=hb_retptrGC( hbqt_gcAllocate_QStringList( new QStringList( ( p )->installedAPIFiles() ), true ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#endif /* #if QT_VERSION >= 0x040500 */
|
||||
/*----------------------------------------------------------------------*/
|
||||
176
harbour/contrib/hbqt/hbqscintilla/QsciAbstractAPIs.cpp
Normal file
176
harbour/contrib/hbqt/hbqscintilla/QsciAbstractAPIs.cpp
Normal file
@@ -0,0 +1,176 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/* WARNING: Automatically generated source file. DO NOT EDIT! */
|
||||
/* Instead, edit corresponding .qth file, */
|
||||
/* or the generator tool itself, and run regenarate. */
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT wrapper main header
|
||||
*
|
||||
* Copyright 2009-2010 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
*
|
||||
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include "../hbqt.h"
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#if QT_VERSION >= 0x040500
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
* Constructed[ 3/4 [ 75.00% ] ]
|
||||
*
|
||||
* *** Unconvered Prototypes ***
|
||||
* -----------------------------
|
||||
*
|
||||
* virtual QStringList callTips (const QStringList &context, int commas, QsciScintilla::CallTipsStyle style, QList< int > &shifts)=0
|
||||
*/
|
||||
|
||||
#include <QtCore/QPointer>
|
||||
|
||||
#include <qsciabstractapis.h>
|
||||
#include "hbqt_garbage.h"
|
||||
|
||||
|
||||
/*
|
||||
* QsciAbstractAPIs (QsciLexer *lexer)
|
||||
* virtual ~QsciAbstractAPIs ()
|
||||
*
|
||||
*/
|
||||
|
||||
typedef struct
|
||||
{
|
||||
QPointer< QsciAbstractAPIs > ph;
|
||||
bool bNew;
|
||||
QT_G_FUNC_PTR func;
|
||||
} QGC_POINTER_QsciAbstractAPIs;
|
||||
|
||||
QT_G_FUNC( hbqt_gcRelease_QsciAbstractAPIs )
|
||||
{
|
||||
HB_SYMBOL_UNUSED( Cargo );
|
||||
QGC_POINTER * p = ( QGC_POINTER * ) Cargo;
|
||||
|
||||
if( p && p->bNew )
|
||||
{
|
||||
p->ph = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void * hbqt_gcAllocate_QsciAbstractAPIs( void * pObj, bool bNew )
|
||||
{
|
||||
QGC_POINTER_QsciAbstractAPIs * p = ( QGC_POINTER_QsciAbstractAPIs * ) hb_gcAllocate( sizeof( QGC_POINTER_QsciAbstractAPIs ), hbqt_gcFuncs() );
|
||||
|
||||
new( & p->ph ) QPointer< QsciAbstractAPIs >( ( QsciAbstractAPIs * ) pObj );
|
||||
p->bNew = bNew;
|
||||
p->func = hbqt_gcRelease_QsciAbstractAPIs;
|
||||
|
||||
if( bNew )
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QsciAbstractAPIs under p->pq", pObj ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QsciAbstractAPIs", pObj ) );
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
HB_FUNC( QT_QSCIABSTRACTAPIS )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* QsciLexer * lexer () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCIABSTRACTAPIS_LEXER )
|
||||
{
|
||||
QsciAbstractAPIs * p = hbqt_par_QsciAbstractAPIs( 1 );
|
||||
if( p )
|
||||
hb_retptrGC( hbqt_gcAllocate_QsciLexer( ( p )->lexer(), false ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIABSTRACTAPIS_LEXER FP=hb_retptrGC( hbqt_gcAllocate_QsciLexer( ( p )->lexer(), false ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual void updateAutoCompletionList (const QStringList &context, QStringList &list)=0
|
||||
*/
|
||||
HB_FUNC( QT_QSCIABSTRACTAPIS_UPDATEAUTOCOMPLETIONLIST )
|
||||
{
|
||||
QsciAbstractAPIs * p = hbqt_par_QsciAbstractAPIs( 1 );
|
||||
if( p )
|
||||
( p )->updateAutoCompletionList( *hbqt_par_QStringList( 2 ), *hbqt_par_QStringList( 3 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIABSTRACTAPIS_UPDATEAUTOCOMPLETIONLIST FP=( p )->updateAutoCompletionList( *hbqt_par_QStringList( 2 ), *hbqt_par_QStringList( 3 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual void autoCompletionSelected (const QString &selection)
|
||||
*/
|
||||
HB_FUNC( QT_QSCIABSTRACTAPIS_AUTOCOMPLETIONSELECTED )
|
||||
{
|
||||
QsciAbstractAPIs * p = hbqt_par_QsciAbstractAPIs( 1 );
|
||||
if( p )
|
||||
( p )->autoCompletionSelected( QsciAbstractAPIs::tr( hb_parc( 2 ) ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIABSTRACTAPIS_AUTOCOMPLETIONSELECTED FP=( p )->autoCompletionSelected( QsciAbstractAPIs::tr( hb_parc( 2 ) ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#endif /* #if QT_VERSION >= 0x040500 */
|
||||
/*----------------------------------------------------------------------*/
|
||||
208
harbour/contrib/hbqt/hbqscintilla/QsciCommand.cpp
Normal file
208
harbour/contrib/hbqt/hbqscintilla/QsciCommand.cpp
Normal file
@@ -0,0 +1,208 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/* WARNING: Automatically generated source file. DO NOT EDIT! */
|
||||
/* Instead, edit corresponding .qth file, */
|
||||
/* or the generator tool itself, and run regenarate. */
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT wrapper main header
|
||||
*
|
||||
* Copyright 2009-2010 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
*
|
||||
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include "../hbqt.h"
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#if QT_VERSION >= 0x040500
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include <QtCore/QPointer>
|
||||
|
||||
#include <qscicommand.h>
|
||||
#include "hbqt_garbage.h"
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
typedef struct
|
||||
{
|
||||
QsciCommand * ph;
|
||||
bool bNew;
|
||||
QT_G_FUNC_PTR func;
|
||||
} QGC_POINTER_QsciCommand;
|
||||
|
||||
QT_G_FUNC( hbqt_gcRelease_QsciCommand )
|
||||
{
|
||||
HB_SYMBOL_UNUSED( Cargo );
|
||||
QGC_POINTER * p = ( QGC_POINTER * ) Cargo;
|
||||
|
||||
if( p && p->bNew )
|
||||
{
|
||||
p->ph = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void * hbqt_gcAllocate_QsciCommand( void * pObj, bool bNew )
|
||||
{
|
||||
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), hbqt_gcFuncs() );
|
||||
|
||||
p->ph = ( QsciCommand * ) pObj;
|
||||
p->bNew = bNew;
|
||||
p->func = hbqt_gcRelease_QsciCommand;
|
||||
|
||||
if( bNew )
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QsciCommand", pObj ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QsciCommand", pObj ) );
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
HB_FUNC( QT_QSCICOMMAND )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* void setKey (int key)
|
||||
*/
|
||||
HB_FUNC( QT_QSCICOMMAND_SETKEY )
|
||||
{
|
||||
QsciCommand * p = hbqt_par_QsciCommand( 1 );
|
||||
if( p )
|
||||
( p )->setKey( hb_parni( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCICOMMAND_SETKEY FP=( p )->setKey( hb_parni( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* void setAlternateKey (int altkey)
|
||||
*/
|
||||
HB_FUNC( QT_QSCICOMMAND_SETALTERNATEKEY )
|
||||
{
|
||||
QsciCommand * p = hbqt_par_QsciCommand( 1 );
|
||||
if( p )
|
||||
( p )->setAlternateKey( hb_parni( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCICOMMAND_SETALTERNATEKEY FP=( p )->setAlternateKey( hb_parni( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* int key () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCICOMMAND_KEY )
|
||||
{
|
||||
QsciCommand * p = hbqt_par_QsciCommand( 1 );
|
||||
if( p )
|
||||
hb_retni( ( p )->key() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCICOMMAND_KEY FP=hb_retni( ( p )->key() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* int alternateKey () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCICOMMAND_ALTERNATEKEY )
|
||||
{
|
||||
QsciCommand * p = hbqt_par_QsciCommand( 1 );
|
||||
if( p )
|
||||
hb_retni( ( p )->alternateKey() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCICOMMAND_ALTERNATEKEY FP=hb_retni( ( p )->alternateKey() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* QString description () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCICOMMAND_DESCRIPTION )
|
||||
{
|
||||
QsciCommand * p = hbqt_par_QsciCommand( 1 );
|
||||
if( p )
|
||||
hb_retc( ( p )->description().toAscii().data() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCICOMMAND_DESCRIPTION FP=hb_retc( ( p )->description().toAscii().data() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* bool validKey (int key)
|
||||
*/
|
||||
HB_FUNC( QT_QSCICOMMAND_VALIDKEY )
|
||||
{
|
||||
QsciCommand * p = hbqt_par_QsciCommand( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->validKey( hb_parni( 2 ) ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCICOMMAND_VALIDKEY FP=hb_retl( ( p )->validKey( hb_parni( 2 ) ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#endif /* #if QT_VERSION >= 0x040500 */
|
||||
/*----------------------------------------------------------------------*/
|
||||
189
harbour/contrib/hbqt/hbqscintilla/QsciCommandSet.cpp
Normal file
189
harbour/contrib/hbqt/hbqscintilla/QsciCommandSet.cpp
Normal file
@@ -0,0 +1,189 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/* WARNING: Automatically generated source file. DO NOT EDIT! */
|
||||
/* Instead, edit corresponding .qth file, */
|
||||
/* or the generator tool itself, and run regenarate. */
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT wrapper main header
|
||||
*
|
||||
* Copyright 2009-2010 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
*
|
||||
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include "../hbqt.h"
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#if QT_VERSION >= 0x040500
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
* Constructed[ 4/5 [ 80.00% ] ]
|
||||
*
|
||||
* *** Unconvered Prototypes ***
|
||||
* -----------------------------
|
||||
*
|
||||
* QList< QsciCommand * > & commands ()
|
||||
*/
|
||||
|
||||
#include <QtCore/QPointer>
|
||||
|
||||
#include <qscicommandset.h>
|
||||
#include "hbqt_garbage.h"
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
typedef struct
|
||||
{
|
||||
QsciCommandSet * ph;
|
||||
bool bNew;
|
||||
QT_G_FUNC_PTR func;
|
||||
} QGC_POINTER_QsciCommandSet;
|
||||
|
||||
QT_G_FUNC( hbqt_gcRelease_QsciCommandSet )
|
||||
{
|
||||
HB_SYMBOL_UNUSED( Cargo );
|
||||
QGC_POINTER * p = ( QGC_POINTER * ) Cargo;
|
||||
|
||||
if( p && p->bNew )
|
||||
{
|
||||
p->ph = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void * hbqt_gcAllocate_QsciCommandSet( void * pObj, bool bNew )
|
||||
{
|
||||
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), hbqt_gcFuncs() );
|
||||
|
||||
p->ph = ( QsciCommandSet * ) pObj;
|
||||
p->bNew = bNew;
|
||||
p->func = hbqt_gcRelease_QsciCommandSet;
|
||||
|
||||
if( bNew )
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QsciCommandSet", pObj ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QsciCommandSet", pObj ) );
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
HB_FUNC( QT_QSCICOMMANDSET )
|
||||
{
|
||||
//hb_retptr( new QsciCommandSet() );
|
||||
}
|
||||
|
||||
/*
|
||||
* bool readSettings (QSettings &qs, const char *prefix="/Scintilla")
|
||||
*/
|
||||
HB_FUNC( QT_QSCICOMMANDSET_READSETTINGS )
|
||||
{
|
||||
QsciCommandSet * p = hbqt_par_QsciCommandSet( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->readSettings( *hbqt_par_QSettings( 2 ), hbqt_par_char( 3 ) ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCICOMMANDSET_READSETTINGS FP=hb_retl( ( p )->readSettings( *hbqt_par_QSettings( 2 ), hbqt_par_char( 3 ) ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* bool writeSettings (QSettings &qs, const char *prefix="/Scintilla")
|
||||
*/
|
||||
HB_FUNC( QT_QSCICOMMANDSET_WRITESETTINGS )
|
||||
{
|
||||
QsciCommandSet * p = hbqt_par_QsciCommandSet( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->writeSettings( *hbqt_par_QSettings( 2 ), hbqt_par_char( 3 ) ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCICOMMANDSET_WRITESETTINGS FP=hb_retl( ( p )->writeSettings( *hbqt_par_QSettings( 2 ), hbqt_par_char( 3 ) ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* void clearKeys ()
|
||||
*/
|
||||
HB_FUNC( QT_QSCICOMMANDSET_CLEARKEYS )
|
||||
{
|
||||
QsciCommandSet * p = hbqt_par_QsciCommandSet( 1 );
|
||||
if( p )
|
||||
( p )->clearKeys();
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCICOMMANDSET_CLEARKEYS FP=( p )->clearKeys(); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* void clearAlternateKeys ()
|
||||
*/
|
||||
HB_FUNC( QT_QSCICOMMANDSET_CLEARALTERNATEKEYS )
|
||||
{
|
||||
QsciCommandSet * p = hbqt_par_QsciCommandSet( 1 );
|
||||
if( p )
|
||||
( p )->clearAlternateKeys();
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCICOMMANDSET_CLEARALTERNATEKEYS FP=( p )->clearAlternateKeys(); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#endif /* #if QT_VERSION >= 0x040500 */
|
||||
/*----------------------------------------------------------------------*/
|
||||
151
harbour/contrib/hbqt/hbqscintilla/QsciDocument.cpp
Normal file
151
harbour/contrib/hbqt/hbqscintilla/QsciDocument.cpp
Normal file
@@ -0,0 +1,151 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/* WARNING: Automatically generated source file. DO NOT EDIT! */
|
||||
/* Instead, edit corresponding .qth file, */
|
||||
/* or the generator tool itself, and run regenarate. */
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT wrapper main header
|
||||
*
|
||||
* Copyright 2009-2010 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
*
|
||||
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include "../hbqt.h"
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#if QT_VERSION >= 0x040500
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include <QtCore/QPointer>
|
||||
|
||||
#include <qscidocument.h>
|
||||
#include "hbqt_garbage.h"
|
||||
|
||||
|
||||
/*
|
||||
* QsciDocument ()
|
||||
* QsciDocument (const QsciDocument &)
|
||||
*
|
||||
*/
|
||||
|
||||
typedef struct
|
||||
{
|
||||
QsciDocument * ph;
|
||||
bool bNew;
|
||||
QT_G_FUNC_PTR func;
|
||||
} QGC_POINTER_QsciDocument;
|
||||
|
||||
QT_G_FUNC( hbqt_gcRelease_QsciDocument )
|
||||
{
|
||||
QGC_POINTER * p = ( QGC_POINTER * ) Cargo;
|
||||
|
||||
if( p && p->bNew )
|
||||
{
|
||||
if( p->ph )
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _rel_QsciDocument /.\\", p->ph ) );
|
||||
delete ( ( QsciDocument * ) p->ph );
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p YES_rel_QsciDocument \\./", p->ph ) );
|
||||
p->ph = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p DEL_rel_QsciDocument : Object already deleted!", p->ph ) );
|
||||
p->ph = NULL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p PTR_rel_QsciDocument : Object not created with new=true", p->ph ) );
|
||||
p->ph = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void * hbqt_gcAllocate_QsciDocument( void * pObj, bool bNew )
|
||||
{
|
||||
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), hbqt_gcFuncs() );
|
||||
|
||||
p->ph = ( QsciDocument * ) pObj;
|
||||
p->bNew = bNew;
|
||||
p->func = hbqt_gcRelease_QsciDocument;
|
||||
|
||||
if( bNew )
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QsciDocument", pObj ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QsciDocument", pObj ) );
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
HB_FUNC( QT_QSCIDOCUMENT )
|
||||
{
|
||||
QsciDocument * pObj = NULL;
|
||||
|
||||
if( HB_ISPOINTER( 1 ) )
|
||||
{
|
||||
pObj = new QsciDocument( *hbqt_par_QsciDocument( 1 ) ) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
pObj = new QsciDocument() ;
|
||||
}
|
||||
|
||||
hb_retptrGC( hbqt_gcAllocate_QsciDocument( ( void * ) pObj, true ) );
|
||||
}
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#endif /* #if QT_VERSION >= 0x040500 */
|
||||
/*----------------------------------------------------------------------*/
|
||||
753
harbour/contrib/hbqt/hbqscintilla/QsciLexer.cpp
Normal file
753
harbour/contrib/hbqt/hbqscintilla/QsciLexer.cpp
Normal file
@@ -0,0 +1,753 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/* WARNING: Automatically generated source file. DO NOT EDIT! */
|
||||
/* Instead, edit corresponding .qth file, */
|
||||
/* or the generator tool itself, and run regenarate. */
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT wrapper main header
|
||||
*
|
||||
* Copyright 2009-2010 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
*
|
||||
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include "../hbqt.h"
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#if QT_VERSION >= 0x040500
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include <QtCore/QPointer>
|
||||
|
||||
#include <qscilexer.h>
|
||||
#include "hbqt_garbage.h"
|
||||
|
||||
|
||||
/*
|
||||
* QsciLexer (QObject *parent=0)
|
||||
* virtual ~QsciLexer ()
|
||||
*
|
||||
*/
|
||||
|
||||
typedef struct
|
||||
{
|
||||
QPointer< QsciLexer > ph;
|
||||
bool bNew;
|
||||
QT_G_FUNC_PTR func;
|
||||
} QGC_POINTER_QsciLexer;
|
||||
|
||||
QT_G_FUNC( hbqt_gcRelease_QsciLexer )
|
||||
{
|
||||
HB_SYMBOL_UNUSED( Cargo );
|
||||
QGC_POINTER * p = ( QGC_POINTER * ) Cargo;
|
||||
|
||||
if( p && p->bNew )
|
||||
{
|
||||
p->ph = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void * hbqt_gcAllocate_QsciLexer( void * pObj, bool bNew )
|
||||
{
|
||||
QGC_POINTER_QsciLexer * p = ( QGC_POINTER_QsciLexer * ) hb_gcAllocate( sizeof( QGC_POINTER_QsciLexer ), hbqt_gcFuncs() );
|
||||
|
||||
new( & p->ph ) QPointer< QsciLexer >( ( QsciLexer * ) pObj );
|
||||
p->bNew = bNew;
|
||||
p->func = hbqt_gcRelease_QsciLexer;
|
||||
|
||||
if( bNew )
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QsciLexer under p->pq", pObj ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QsciLexer", pObj ) );
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
HB_FUNC( QT_QSCILEXER )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual const char * language () const =0
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_LANGUAGE )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retc( ( p )->language() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_LANGUAGE FP=hb_retc( ( p )->language() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual const char * lexer () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_LEXER )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retc( ( p )->lexer() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_LEXER FP=hb_retc( ( p )->lexer() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual int lexerId () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_LEXERID )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retni( ( p )->lexerId() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_LEXERID FP=hb_retni( ( p )->lexerId() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* QsciAbstractAPIs * apis () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_APIS )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retptrGC( hbqt_gcAllocate_QsciAbstractAPIs( ( p )->apis(), false ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_APIS FP=hb_retptrGC( hbqt_gcAllocate_QsciAbstractAPIs( ( p )->apis(), false ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual const char * autoCompletionFillups () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_AUTOCOMPLETIONFILLUPS )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retc( ( p )->autoCompletionFillups() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_AUTOCOMPLETIONFILLUPS FP=hb_retc( ( p )->autoCompletionFillups() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual QStringList autoCompletionWordSeparators () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_AUTOCOMPLETIONWORDSEPARATORS )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retptrGC( hbqt_gcAllocate_QStringList( new QStringList( ( p )->autoCompletionWordSeparators() ), true ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_AUTOCOMPLETIONWORDSEPARATORS FP=hb_retptrGC( hbqt_gcAllocate_QStringList( new QStringList( ( p )->autoCompletionWordSeparators() ), true ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* int autoIndentStyle ()
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_AUTOINDENTSTYLE )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retni( ( p )->autoIndentStyle() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_AUTOINDENTSTYLE FP=hb_retni( ( p )->autoIndentStyle() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual const char * blockEnd (int *style=0) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_BLOCKEND )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
int iStyle = 0;
|
||||
|
||||
if( p )
|
||||
hb_retc( ( p )->blockEnd( &iStyle ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_BLOCKEND FP=hb_retc( ( p )->blockEnd( &iStyle ) ); p is NULL" ) );
|
||||
}
|
||||
|
||||
hb_storni( iStyle, 2 );
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual int blockLookback () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_BLOCKLOOKBACK )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retni( ( p )->blockLookback() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_BLOCKLOOKBACK FP=hb_retni( ( p )->blockLookback() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual const char * blockStart (int *style=0) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_BLOCKSTART )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
int iStyle = 0;
|
||||
|
||||
if( p )
|
||||
hb_retc( ( p )->blockStart( &iStyle ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_BLOCKSTART FP=hb_retc( ( p )->blockStart( &iStyle ) ); p is NULL" ) );
|
||||
}
|
||||
|
||||
hb_storni( iStyle, 2 );
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual const char * blockStartKeyword (int *style=0) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_BLOCKSTARTKEYWORD )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
int iStyle = 0;
|
||||
|
||||
if( p )
|
||||
hb_retc( ( p )->blockStartKeyword( &iStyle ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_BLOCKSTARTKEYWORD FP=hb_retc( ( p )->blockStartKeyword( &iStyle ) ); p is NULL" ) );
|
||||
}
|
||||
|
||||
hb_storni( iStyle, 2 );
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual int braceStyle () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_BRACESTYLE )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retni( ( p )->braceStyle() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_BRACESTYLE FP=hb_retni( ( p )->braceStyle() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual bool caseSensitive () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_CASESENSITIVE )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->caseSensitive() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_CASESENSITIVE FP=hb_retl( ( p )->caseSensitive() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual QColor color (int style) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_COLOR )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->color( hb_parni( 2 ) ) ), true ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_COLOR FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->color( hb_parni( 2 ) ) ), true ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual bool eolFill (int style) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_EOLFILL )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->eolFill( hb_parni( 2 ) ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_EOLFILL FP=hb_retl( ( p )->eolFill( hb_parni( 2 ) ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual QFont font (int style) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_FONT )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retptrGC( hbqt_gcAllocate_QFont( new QFont( ( p )->font( hb_parni( 2 ) ) ), true ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_FONT FP=hb_retptrGC( hbqt_gcAllocate_QFont( new QFont( ( p )->font( hb_parni( 2 ) ) ), true ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual int indentationGuideView () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_INDENTATIONGUIDEVIEW )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retni( ( p )->indentationGuideView() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_INDENTATIONGUIDEVIEW FP=hb_retni( ( p )->indentationGuideView() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual const char * keywords (int set) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_KEYWORDS )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retc( ( p )->keywords( hb_parni( 2 ) ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_KEYWORDS FP=hb_retc( ( p )->keywords( hb_parni( 2 ) ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual int defaultStyle () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_DEFAULTSTYLE )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retni( ( p )->defaultStyle() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_DEFAULTSTYLE FP=hb_retni( ( p )->defaultStyle() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual QString description (int style) const =0
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_DESCRIPTION )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retc( ( p )->description( hb_parni( 2 ) ).toAscii().data() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_DESCRIPTION FP=hb_retc( ( p )->description( hb_parni( 2 ) ).toAscii().data() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual QColor paper (int style) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_PAPER )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->paper( hb_parni( 2 ) ) ), true ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_PAPER FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->paper( hb_parni( 2 ) ) ), true ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* QColor defaultColor () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_DEFAULTCOLOR )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultColor() ), true ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_DEFAULTCOLOR FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultColor() ), true ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual QColor defaultColor (int style) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_DEFAULTCOLOR_1 )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultColor( hb_parni( 2 ) ) ), true ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_DEFAULTCOLOR_1 FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultColor( hb_parni( 2 ) ) ), true ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual bool defaultEolFill (int style) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_DEFAULTEOLFILL )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->defaultEolFill( hb_parni( 2 ) ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_DEFAULTEOLFILL FP=hb_retl( ( p )->defaultEolFill( hb_parni( 2 ) ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* QFont defaultFont () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_DEFAULTFONT )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retptrGC( hbqt_gcAllocate_QFont( new QFont( ( p )->defaultFont() ), true ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_DEFAULTFONT FP=hb_retptrGC( hbqt_gcAllocate_QFont( new QFont( ( p )->defaultFont() ), true ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual QFont defaultFont (int style) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_DEFAULTFONT_1 )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retptrGC( hbqt_gcAllocate_QFont( new QFont( ( p )->defaultFont( hb_parni( 2 ) ) ), true ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_DEFAULTFONT_1 FP=hb_retptrGC( hbqt_gcAllocate_QFont( new QFont( ( p )->defaultFont( hb_parni( 2 ) ) ), true ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* QColor defaultPaper () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_DEFAULTPAPER )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultPaper() ), true ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_DEFAULTPAPER FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultPaper() ), true ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual QColor defaultPaper (int style) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_DEFAULTPAPER_1 )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultPaper( hb_parni( 2 ) ) ), true ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_DEFAULTPAPER_1 FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultPaper( hb_parni( 2 ) ) ), true ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* QsciScintilla * editor () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_EDITOR )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retptrGC( hbqt_gcAllocate_QsciScintilla( ( p )->editor(), false ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_EDITOR FP=hb_retptrGC( hbqt_gcAllocate_QsciScintilla( ( p )->editor(), false ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual void setEditor (QsciScintilla *editor)
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_SETEDITOR )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
( p )->setEditor( hbqt_par_QsciScintilla( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_SETEDITOR FP=( p )->setEditor( hbqt_par_QsciScintilla( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* bool readSettings (QSettings &qs, const char *prefix="/Scintilla")
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_READSETTINGS )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->readSettings( *hbqt_par_QSettings( 2 ), hbqt_par_char( 3 ) ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_READSETTINGS FP=hb_retl( ( p )->readSettings( *hbqt_par_QSettings( 2 ), hbqt_par_char( 3 ) ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual void refreshProperties ()
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_REFRESHPROPERTIES )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
( p )->refreshProperties();
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_REFRESHPROPERTIES FP=( p )->refreshProperties(); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual int styleBitsNeeded () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_STYLEBITSNEEDED )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retni( ( p )->styleBitsNeeded() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_STYLEBITSNEEDED FP=hb_retni( ( p )->styleBitsNeeded() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual const char * wordCharacters () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_WORDCHARACTERS )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retc( ( p )->wordCharacters() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_WORDCHARACTERS FP=hb_retc( ( p )->wordCharacters() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* bool writeSettings (QSettings &qs, const char *prefix="/Scintilla") const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_WRITESETTINGS )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->writeSettings( *hbqt_par_QSettings( 2 ), hbqt_par_char( 3 ) ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_WRITESETTINGS FP=hb_retl( ( p )->writeSettings( *hbqt_par_QSettings( 2 ), hbqt_par_char( 3 ) ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* void setAPIs (QsciAbstractAPIs *apis)
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_SETAPIS )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
( p )->setAPIs( hbqt_par_QsciAbstractAPIs( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_SETAPIS FP=( p )->setAPIs( hbqt_par_QsciAbstractAPIs( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* void setDefaultColor (const QColor &c)
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_SETDEFAULTCOLOR )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
( p )->setDefaultColor( *hbqt_par_QColor( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_SETDEFAULTCOLOR FP=( p )->setDefaultColor( *hbqt_par_QColor( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* void setDefaultFont (const QFont &f)
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_SETDEFAULTFONT )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
( p )->setDefaultFont( *hbqt_par_QFont( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_SETDEFAULTFONT FP=( p )->setDefaultFont( *hbqt_par_QFont( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* void setDefaultPaper (const QColor &c)
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_SETDEFAULTPAPER )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
( p )->setDefaultPaper( *hbqt_par_QColor( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_SETDEFAULTPAPER FP=( p )->setDefaultPaper( *hbqt_par_QColor( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual void setAutoIndentStyle (int autoindentstyle)
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_SETAUTOINDENTSTYLE )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
( p )->setAutoIndentStyle( hb_parni( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_SETAUTOINDENTSTYLE FP=( p )->setAutoIndentStyle( hb_parni( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual void setColor (const QColor &c, int style=-1)
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_SETCOLOR )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
( p )->setColor( *hbqt_par_QColor( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_SETCOLOR FP=( p )->setColor( *hbqt_par_QColor( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual void setEolFill (bool eoffill, int style=-1)
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_SETEOLFILL )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
( p )->setEolFill( hb_parl( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_SETEOLFILL FP=( p )->setEolFill( hb_parl( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual void setFont (const QFont &f, int style=-1)
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_SETFONT )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
( p )->setFont( *hbqt_par_QFont( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_SETFONT FP=( p )->setFont( *hbqt_par_QFont( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual void setPaper (const QColor &c, int style=-1)
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER_SETPAPER )
|
||||
{
|
||||
QsciLexer * p = hbqt_par_QsciLexer( 1 );
|
||||
if( p )
|
||||
( p )->setPaper( *hbqt_par_QColor( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_SETPAPER FP=( p )->setPaper( *hbqt_par_QColor( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#endif /* #if QT_VERSION >= 0x040500 */
|
||||
/*----------------------------------------------------------------------*/
|
||||
572
harbour/contrib/hbqt/hbqscintilla/QsciLexerCPP.cpp
Normal file
572
harbour/contrib/hbqt/hbqscintilla/QsciLexerCPP.cpp
Normal file
@@ -0,0 +1,572 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/* WARNING: Automatically generated source file. DO NOT EDIT! */
|
||||
/* Instead, edit corresponding .qth file, */
|
||||
/* or the generator tool itself, and run regenarate. */
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT wrapper main header
|
||||
*
|
||||
* Copyright 2009-2010 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
*
|
||||
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include "../hbqt.h"
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#if QT_VERSION >= 0x040500
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
* enum {
|
||||
* Default = 0, Comment = 1, CommentLine = 2,
|
||||
* CommentDoc = 3, Number = 4, Keyword = 5,
|
||||
* DoubleQuotedString = 6, SingleQuotedString = 7, UUID = 8,
|
||||
* PreProcessor = 9, Operator = 10, Identifier = 11,
|
||||
* UnclosedString = 12, VerbatimString = 13, Regex = 14,
|
||||
* CommentLineDoc = 15, KeywordSet2 = 16, CommentDocKeyword = 17,
|
||||
* CommentDocKeywordError = 18, GlobalClass = 19
|
||||
* }
|
||||
*/
|
||||
|
||||
#include <QtCore/QPointer>
|
||||
|
||||
#include <qscilexercpp.h>
|
||||
#include "hbqt_garbage.h"
|
||||
|
||||
|
||||
/*
|
||||
* QsciLexerCPP (QObject *parent=0, bool caseInsensitiveKeywords=false)
|
||||
* virtual ~QsciLexerCPP ()
|
||||
*
|
||||
*/
|
||||
|
||||
typedef struct
|
||||
{
|
||||
QPointer< QsciLexerCPP > ph;
|
||||
bool bNew;
|
||||
QT_G_FUNC_PTR func;
|
||||
} QGC_POINTER_QsciLexerCPP;
|
||||
|
||||
QT_G_FUNC( hbqt_gcRelease_QsciLexerCPP )
|
||||
{
|
||||
QsciLexerCPP * ph = NULL ;
|
||||
QGC_POINTER_QsciLexerCPP * p = ( QGC_POINTER_QsciLexerCPP * ) Cargo;
|
||||
|
||||
if( p && p->bNew && p->ph )
|
||||
{
|
||||
ph = p->ph;
|
||||
if( ph )
|
||||
{
|
||||
const QMetaObject * m = ( ph )->metaObject();
|
||||
if( ( QString ) m->className() != ( QString ) "QObject" )
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_QsciLexerCPP /.\\ ", (void*) ph, (void*) p->ph ) );
|
||||
delete ( p->ph );
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_QsciLexerCPP \\./ ", (void*) ph, (void*) p->ph ) );
|
||||
p->ph = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NO__rel_QsciLexerCPP ", ph ) );
|
||||
p->ph = NULL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p DEL_rel_QsciLexerCPP : Object already deleted!", ph ) );
|
||||
p->ph = NULL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p PTR_rel_QsciLexerCPP : Object not created with new=true", ph ) );
|
||||
p->ph = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void * hbqt_gcAllocate_QsciLexerCPP( void * pObj, bool bNew )
|
||||
{
|
||||
QGC_POINTER_QsciLexerCPP * p = ( QGC_POINTER_QsciLexerCPP * ) hb_gcAllocate( sizeof( QGC_POINTER_QsciLexerCPP ), hbqt_gcFuncs() );
|
||||
|
||||
new( & p->ph ) QPointer< QsciLexerCPP >( ( QsciLexerCPP * ) pObj );
|
||||
p->bNew = bNew;
|
||||
p->func = hbqt_gcRelease_QsciLexerCPP;
|
||||
|
||||
if( bNew )
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QsciLexerCPP under p->pq", pObj ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QsciLexerCPP", pObj ) );
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
HB_FUNC( QT_QSCILEXERCPP )
|
||||
{
|
||||
QsciLexerCPP * pObj = NULL;
|
||||
|
||||
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
|
||||
{
|
||||
pObj = new QsciLexerCPP( hbqt_par_QObject( 1 ) ) ;
|
||||
}
|
||||
else if( hb_pcount() == 1 && HB_ISLOG( 1 ) )
|
||||
{
|
||||
pObj = new QsciLexerCPP( 0, hb_parl( 1 ) ) ;
|
||||
}
|
||||
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISLOG( 2 ) )
|
||||
{
|
||||
pObj = new QsciLexerCPP( hbqt_par_QObject( 1 ), hb_parl( 2 ) ) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
pObj = new QsciLexerCPP() ;
|
||||
}
|
||||
|
||||
hb_retptrGC( hbqt_gcAllocate_QsciLexerCPP( ( void * ) pObj, true ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* const char * language () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_LANGUAGE )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
if( p )
|
||||
hb_retc( ( p )->language() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_LANGUAGE FP=hb_retc( ( p )->language() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* const char * lexer () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_LEXER )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
if( p )
|
||||
hb_retc( ( p )->lexer() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_LEXER FP=hb_retc( ( p )->lexer() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* QStringList autoCompletionWordSeparators () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_AUTOCOMPLETIONWORDSEPARATORS )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
if( p )
|
||||
hb_retptrGC( hbqt_gcAllocate_QStringList( new QStringList( ( p )->autoCompletionWordSeparators() ), true ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_AUTOCOMPLETIONWORDSEPARATORS FP=hb_retptrGC( hbqt_gcAllocate_QStringList( new QStringList( ( p )->autoCompletionWordSeparators() ), true ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* const char * blockEnd (int *style=0) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_BLOCKEND )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
int iStyle = 0;
|
||||
|
||||
if( p )
|
||||
hb_retc( ( p )->blockEnd( &iStyle ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_BLOCKEND FP=hb_retc( ( p )->blockEnd( &iStyle ) ); p is NULL" ) );
|
||||
}
|
||||
|
||||
hb_storni( iStyle, 2 );
|
||||
}
|
||||
|
||||
/*
|
||||
* const char * blockStart (int *style=0) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_BLOCKSTART )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
int iStyle = 0;
|
||||
|
||||
if( p )
|
||||
hb_retc( ( p )->blockStart( &iStyle ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_BLOCKSTART FP=hb_retc( ( p )->blockStart( &iStyle ) ); p is NULL" ) );
|
||||
}
|
||||
|
||||
hb_storni( iStyle, 2 );
|
||||
}
|
||||
|
||||
/*
|
||||
* const char * blockStartKeyword (int *style=0) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_BLOCKSTARTKEYWORD )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
int iStyle = 0;
|
||||
|
||||
if( p )
|
||||
hb_retc( ( p )->blockStartKeyword( &iStyle ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_BLOCKSTARTKEYWORD FP=hb_retc( ( p )->blockStartKeyword( &iStyle ) ); p is NULL" ) );
|
||||
}
|
||||
|
||||
hb_storni( iStyle, 2 );
|
||||
}
|
||||
|
||||
/*
|
||||
* int braceStyle () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_BRACESTYLE )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
if( p )
|
||||
hb_retni( ( p )->braceStyle() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_BRACESTYLE FP=hb_retni( ( p )->braceStyle() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* const char * wordCharacters () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_WORDCHARACTERS )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
if( p )
|
||||
hb_retc( ( p )->wordCharacters() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_WORDCHARACTERS FP=hb_retc( ( p )->wordCharacters() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* QColor defaultColor (int style) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_DEFAULTCOLOR )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
if( p )
|
||||
hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultColor( hb_parni( 2 ) ) ), true ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_DEFAULTCOLOR FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultColor( hb_parni( 2 ) ) ), true ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* bool defaultEolFill (int style) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_DEFAULTEOLFILL )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->defaultEolFill( hb_parni( 2 ) ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_DEFAULTEOLFILL FP=hb_retl( ( p )->defaultEolFill( hb_parni( 2 ) ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* QFont defaultFont (int style) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_DEFAULTFONT )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
if( p )
|
||||
hb_retptrGC( hbqt_gcAllocate_QFont( new QFont( ( p )->defaultFont( hb_parni( 2 ) ) ), true ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_DEFAULTFONT FP=hb_retptrGC( hbqt_gcAllocate_QFont( new QFont( ( p )->defaultFont( hb_parni( 2 ) ) ), true ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* QColor defaultPaper (int style) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_DEFAULTPAPER )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
if( p )
|
||||
hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultPaper( hb_parni( 2 ) ) ), true ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_DEFAULTPAPER FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultPaper( hb_parni( 2 ) ) ), true ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* const char * keywords (int set) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_KEYWORDS )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
if( p )
|
||||
hb_retc( ( p )->keywords( hb_parni( 2 ) ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_KEYWORDS FP=hb_retc( ( p )->keywords( hb_parni( 2 ) ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* QString description (int style) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_DESCRIPTION )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
if( p )
|
||||
hb_retc( ( p )->description( hb_parni( 2 ) ).toAscii().data() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_DESCRIPTION FP=hb_retc( ( p )->description( hb_parni( 2 ) ).toAscii().data() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* void refreshProperties ()
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_REFRESHPROPERTIES )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
if( p )
|
||||
( p )->refreshProperties();
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_REFRESHPROPERTIES FP=( p )->refreshProperties(); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* bool foldAtElse () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_FOLDATELSE )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->foldAtElse() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_FOLDATELSE FP=hb_retl( ( p )->foldAtElse() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* bool foldComments () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_FOLDCOMMENTS )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->foldComments() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_FOLDCOMMENTS FP=hb_retl( ( p )->foldComments() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* bool foldCompact () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_FOLDCOMPACT )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->foldCompact() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_FOLDCOMPACT FP=hb_retl( ( p )->foldCompact() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* bool foldPreprocessor () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_FOLDPREPROCESSOR )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->foldPreprocessor() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_FOLDPREPROCESSOR FP=hb_retl( ( p )->foldPreprocessor() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* bool stylePreprocessor () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_STYLEPREPROCESSOR )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->stylePreprocessor() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_STYLEPREPROCESSOR FP=hb_retl( ( p )->stylePreprocessor() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* void setDollarsAllowed (bool allowed)
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_SETDOLLARSALLOWED )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
if( p )
|
||||
( p )->setDollarsAllowed( hb_parl( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_SETDOLLARSALLOWED FP=( p )->setDollarsAllowed( hb_parl( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* bool dollarsAllowed () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_DOLLARSALLOWED )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->dollarsAllowed() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_DOLLARSALLOWED FP=hb_retl( ( p )->dollarsAllowed() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual void setFoldAtElse (bool fold)
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_SETFOLDATELSE )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
if( p )
|
||||
( p )->setFoldAtElse( hb_parl( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_SETFOLDATELSE FP=( p )->setFoldAtElse( hb_parl( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual void setFoldComments (bool fold)
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_SETFOLDCOMMENTS )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
if( p )
|
||||
( p )->setFoldComments( hb_parl( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_SETFOLDCOMMENTS FP=( p )->setFoldComments( hb_parl( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual void setFoldCompact (bool fold)
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_SETFOLDCOMPACT )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
if( p )
|
||||
( p )->setFoldCompact( hb_parl( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_SETFOLDCOMPACT FP=( p )->setFoldCompact( hb_parl( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual void setFoldPreprocessor (bool fold)
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_SETFOLDPREPROCESSOR )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
if( p )
|
||||
( p )->setFoldPreprocessor( hb_parl( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_SETFOLDPREPROCESSOR FP=( p )->setFoldPreprocessor( hb_parl( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual void setStylePreprocessor (bool style)
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP_SETSTYLEPREPROCESSOR )
|
||||
{
|
||||
QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 );
|
||||
if( p )
|
||||
( p )->setStylePreprocessor( hb_parl( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_SETSTYLEPREPROCESSOR FP=( p )->setStylePreprocessor( hb_parl( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#endif /* #if QT_VERSION >= 0x040500 */
|
||||
/*----------------------------------------------------------------------*/
|
||||
572
harbour/contrib/hbqt/hbqscintilla/QsciLexerFlagship.cpp
Normal file
572
harbour/contrib/hbqt/hbqscintilla/QsciLexerFlagship.cpp
Normal file
@@ -0,0 +1,572 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/* WARNING: Automatically generated source file. DO NOT EDIT! */
|
||||
/* Instead, edit corresponding .qth file, */
|
||||
/* or the generator tool itself, and run regenarate. */
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT wrapper main header
|
||||
*
|
||||
* Copyright 2009-2010 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
*
|
||||
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include "../hbqt.h"
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#if QT_VERSION >= 0x040500
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
* enum {
|
||||
* Default = 0, Comment = 1, CommentLine = 2,
|
||||
* CommentDoc = 3, Number = 4, Keyword = 5,
|
||||
* DoubleQuotedString = 6, SingleQuotedString = 7, UUID = 8,
|
||||
* PreProcessor = 9, Operator = 10, Identifier = 11,
|
||||
* UnclosedString = 12, VerbatimString = 13, Regex = 14,
|
||||
* CommentLineDoc = 15, KeywordSet2 = 16, CommentDocKeyword = 17,
|
||||
* CommentDocKeywordError = 18, GlobalClass = 19
|
||||
* }
|
||||
*/
|
||||
|
||||
#include <QtCore/QPointer>
|
||||
|
||||
#include <qscilexerflagship.h>
|
||||
#include "hbqt_garbage.h"
|
||||
|
||||
|
||||
/*
|
||||
* QsciLexerFlagship (QObject *parent=0, bool caseInsensitiveKeywords=false)
|
||||
* virtual ~QsciLexerFlagship ()
|
||||
*
|
||||
*/
|
||||
|
||||
typedef struct
|
||||
{
|
||||
QPointer< QsciLexerFlagship > ph;
|
||||
bool bNew;
|
||||
QT_G_FUNC_PTR func;
|
||||
} QGC_POINTER_QsciLexerFlagship;
|
||||
|
||||
QT_G_FUNC( hbqt_gcRelease_QsciLexerFlagship )
|
||||
{
|
||||
QsciLexerFlagship * ph = NULL ;
|
||||
QGC_POINTER_QsciLexerFlagship * p = ( QGC_POINTER_QsciLexerFlagship * ) Cargo;
|
||||
|
||||
if( p && p->bNew && p->ph )
|
||||
{
|
||||
ph = p->ph;
|
||||
if( ph )
|
||||
{
|
||||
const QMetaObject * m = ( ph )->metaObject();
|
||||
if( ( QString ) m->className() != ( QString ) "QObject" )
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_QsciLexerFlagship /.\\ ", (void*) ph, (void*) p->ph ) );
|
||||
delete ( p->ph );
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_QsciLexerFlagship \\./ ", (void*) ph, (void*) p->ph ) );
|
||||
p->ph = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NO__rel_QsciLexerFlagship ", ph ) );
|
||||
p->ph = NULL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p DEL_rel_QsciLexerFlagship : Object already deleted!", ph ) );
|
||||
p->ph = NULL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p PTR_rel_QsciLexerFlagship : Object not created with new=true", ph ) );
|
||||
p->ph = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void * hbqt_gcAllocate_QsciLexerFlagship( void * pObj, bool bNew )
|
||||
{
|
||||
QGC_POINTER_QsciLexerFlagship * p = ( QGC_POINTER_QsciLexerFlagship * ) hb_gcAllocate( sizeof( QGC_POINTER_QsciLexerFlagship ), hbqt_gcFuncs() );
|
||||
|
||||
new( & p->ph ) QPointer< QsciLexerFlagship >( ( QsciLexerFlagship * ) pObj );
|
||||
p->bNew = bNew;
|
||||
p->func = hbqt_gcRelease_QsciLexerFlagship;
|
||||
|
||||
if( bNew )
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QsciLexerFlagship under p->pq", pObj ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QsciLexerFlagship", pObj ) );
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP )
|
||||
{
|
||||
QsciLexerFlagship * pObj = NULL;
|
||||
|
||||
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
|
||||
{
|
||||
pObj = new QsciLexerFlagship( hbqt_par_QObject( 1 ) ) ;
|
||||
}
|
||||
else if( hb_pcount() == 1 && HB_ISLOG( 1 ) )
|
||||
{
|
||||
pObj = new QsciLexerFlagship( 0, hb_parl( 1 ) ) ;
|
||||
}
|
||||
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISLOG( 2 ) )
|
||||
{
|
||||
pObj = new QsciLexerFlagship( hbqt_par_QObject( 1 ), hb_parl( 2 ) ) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
pObj = new QsciLexerFlagship() ;
|
||||
}
|
||||
|
||||
hb_retptrGC( hbqt_gcAllocate_QsciLexerFlagship( ( void * ) pObj, true ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* const char * language () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_LANGUAGE )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
if( p )
|
||||
hb_retc( ( p )->language() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_LANGUAGE FP=hb_retc( ( p )->language() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* const char * lexer () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_LEXER )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
if( p )
|
||||
hb_retc( ( p )->lexer() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_LEXER FP=hb_retc( ( p )->lexer() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* QStringList autoCompletionWordSeparators () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_AUTOCOMPLETIONWORDSEPARATORS )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
if( p )
|
||||
hb_retptrGC( hbqt_gcAllocate_QStringList( new QStringList( ( p )->autoCompletionWordSeparators() ), true ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_AUTOCOMPLETIONWORDSEPARATORS FP=hb_retptrGC( hbqt_gcAllocate_QStringList( new QStringList( ( p )->autoCompletionWordSeparators() ), true ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* const char * blockEnd (int *style=0) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_BLOCKEND )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
int iStyle = 0;
|
||||
|
||||
if( p )
|
||||
hb_retc( ( p )->blockEnd( &iStyle ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_BLOCKEND FP=hb_retc( ( p )->blockEnd( &iStyle ) ); p is NULL" ) );
|
||||
}
|
||||
|
||||
hb_storni( iStyle, 2 );
|
||||
}
|
||||
|
||||
/*
|
||||
* const char * blockStart (int *style=0) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_BLOCKSTART )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
int iStyle = 0;
|
||||
|
||||
if( p )
|
||||
hb_retc( ( p )->blockStart( &iStyle ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_BLOCKSTART FP=hb_retc( ( p )->blockStart( &iStyle ) ); p is NULL" ) );
|
||||
}
|
||||
|
||||
hb_storni( iStyle, 2 );
|
||||
}
|
||||
|
||||
/*
|
||||
* const char * blockStartKeyword (int *style=0) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_BLOCKSTARTKEYWORD )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
int iStyle = 0;
|
||||
|
||||
if( p )
|
||||
hb_retc( ( p )->blockStartKeyword( &iStyle ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_BLOCKSTARTKEYWORD FP=hb_retc( ( p )->blockStartKeyword( &iStyle ) ); p is NULL" ) );
|
||||
}
|
||||
|
||||
hb_storni( iStyle, 2 );
|
||||
}
|
||||
|
||||
/*
|
||||
* int braceStyle () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_BRACESTYLE )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
if( p )
|
||||
hb_retni( ( p )->braceStyle() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_BRACESTYLE FP=hb_retni( ( p )->braceStyle() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* const char * wordCharacters () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_WORDCHARACTERS )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
if( p )
|
||||
hb_retc( ( p )->wordCharacters() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_WORDCHARACTERS FP=hb_retc( ( p )->wordCharacters() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* QColor defaultColor (int style) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_DEFAULTCOLOR )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
if( p )
|
||||
hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultColor( hb_parni( 2 ) ) ), true ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_DEFAULTCOLOR FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultColor( hb_parni( 2 ) ) ), true ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* bool defaultEolFill (int style) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_DEFAULTEOLFILL )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->defaultEolFill( hb_parni( 2 ) ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_DEFAULTEOLFILL FP=hb_retl( ( p )->defaultEolFill( hb_parni( 2 ) ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* QFont defaultFont (int style) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_DEFAULTFONT )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
if( p )
|
||||
hb_retptrGC( hbqt_gcAllocate_QFont( new QFont( ( p )->defaultFont( hb_parni( 2 ) ) ), true ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_DEFAULTFONT FP=hb_retptrGC( hbqt_gcAllocate_QFont( new QFont( ( p )->defaultFont( hb_parni( 2 ) ) ), true ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* QColor defaultPaper (int style) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_DEFAULTPAPER )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
if( p )
|
||||
hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultPaper( hb_parni( 2 ) ) ), true ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_DEFAULTPAPER FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultPaper( hb_parni( 2 ) ) ), true ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* const char * keywords (int set) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_KEYWORDS )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
if( p )
|
||||
hb_retc( ( p )->keywords( hb_parni( 2 ) ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_KEYWORDS FP=hb_retc( ( p )->keywords( hb_parni( 2 ) ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* QString description (int style) const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_DESCRIPTION )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
if( p )
|
||||
hb_retc( ( p )->description( hb_parni( 2 ) ).toAscii().data() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_DESCRIPTION FP=hb_retc( ( p )->description( hb_parni( 2 ) ).toAscii().data() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* void refreshProperties ()
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_REFRESHPROPERTIES )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
if( p )
|
||||
( p )->refreshProperties();
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_REFRESHPROPERTIES FP=( p )->refreshProperties(); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* bool foldAtElse () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_FOLDATELSE )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->foldAtElse() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_FOLDATELSE FP=hb_retl( ( p )->foldAtElse() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* bool foldComments () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_FOLDCOMMENTS )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->foldComments() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_FOLDCOMMENTS FP=hb_retl( ( p )->foldComments() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* bool foldCompact () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_FOLDCOMPACT )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->foldCompact() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_FOLDCOMPACT FP=hb_retl( ( p )->foldCompact() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* bool foldPreprocessor () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_FOLDPREPROCESSOR )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->foldPreprocessor() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_FOLDPREPROCESSOR FP=hb_retl( ( p )->foldPreprocessor() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* bool stylePreprocessor () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_STYLEPREPROCESSOR )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->stylePreprocessor() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_STYLEPREPROCESSOR FP=hb_retl( ( p )->stylePreprocessor() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* void setDollarsAllowed (bool allowed)
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_SETDOLLARSALLOWED )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
if( p )
|
||||
( p )->setDollarsAllowed( hb_parl( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_SETDOLLARSALLOWED FP=( p )->setDollarsAllowed( hb_parl( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* bool dollarsAllowed () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_DOLLARSALLOWED )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->dollarsAllowed() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_DOLLARSALLOWED FP=hb_retl( ( p )->dollarsAllowed() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual void setFoldAtElse (bool fold)
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_SETFOLDATELSE )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
if( p )
|
||||
( p )->setFoldAtElse( hb_parl( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_SETFOLDATELSE FP=( p )->setFoldAtElse( hb_parl( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual void setFoldComments (bool fold)
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_SETFOLDCOMMENTS )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
if( p )
|
||||
( p )->setFoldComments( hb_parl( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_SETFOLDCOMMENTS FP=( p )->setFoldComments( hb_parl( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual void setFoldCompact (bool fold)
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_SETFOLDCOMPACT )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
if( p )
|
||||
( p )->setFoldCompact( hb_parl( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_SETFOLDCOMPACT FP=( p )->setFoldCompact( hb_parl( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual void setFoldPreprocessor (bool fold)
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_SETFOLDPREPROCESSOR )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
if( p )
|
||||
( p )->setFoldPreprocessor( hb_parl( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_SETFOLDPREPROCESSOR FP=( p )->setFoldPreprocessor( hb_parl( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* virtual void setStylePreprocessor (bool style)
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP_SETSTYLEPREPROCESSOR )
|
||||
{
|
||||
QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 );
|
||||
if( p )
|
||||
( p )->setStylePreprocessor( hb_parl( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_SETSTYLEPREPROCESSOR FP=( p )->setStylePreprocessor( hb_parl( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#endif /* #if QT_VERSION >= 0x040500 */
|
||||
/*----------------------------------------------------------------------*/
|
||||
2960
harbour/contrib/hbqt/hbqscintilla/QsciScintilla.cpp
Normal file
2960
harbour/contrib/hbqt/hbqscintilla/QsciScintilla.cpp
Normal file
File diff suppressed because it is too large
Load Diff
450
harbour/contrib/hbqt/hbqscintilla/QsciStyle.cpp
Normal file
450
harbour/contrib/hbqt/hbqscintilla/QsciStyle.cpp
Normal file
@@ -0,0 +1,450 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/* WARNING: Automatically generated source file. DO NOT EDIT! */
|
||||
/* Instead, edit corresponding .qth file, */
|
||||
/* or the generator tool itself, and run regenarate. */
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT wrapper main header
|
||||
*
|
||||
* Copyright 2009-2010 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
*
|
||||
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include "../hbqt.h"
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#if QT_VERSION >= 0x040500
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
* enum TextCase { OriginalCase = 0, UpperCase = 1, LowerCase = 2 }
|
||||
*/
|
||||
|
||||
#include <QtCore/QPointer>
|
||||
|
||||
#include <qscistyle.h>
|
||||
#include "hbqt_garbage.h"
|
||||
|
||||
|
||||
/*
|
||||
* QsciStyle (int style=-1)
|
||||
* QsciStyle (int style, const QString &description, const QColor &color, const QColor &paper, const QFont &font, bool eol_fill=false)
|
||||
*
|
||||
*/
|
||||
|
||||
typedef struct
|
||||
{
|
||||
QPointer< QsciStyle > ph;
|
||||
bool bNew;
|
||||
QT_G_FUNC_PTR func;
|
||||
} QGC_POINTER_QsciStyle;
|
||||
|
||||
QT_G_FUNC( hbqt_gcRelease_QsciStyle )
|
||||
{
|
||||
QsciStyle * ph = NULL ;
|
||||
QGC_POINTER_QsciStyle * p = ( QGC_POINTER_QsciStyle * ) Cargo;
|
||||
|
||||
if( p && p->bNew && p->ph )
|
||||
{
|
||||
ph = p->ph;
|
||||
if( ph )
|
||||
{
|
||||
const QMetaObject * m = ( ph )->metaObject();
|
||||
if( ( QString ) m->className() != ( QString ) "QObject" )
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_QsciStyle /.\\ ", (void*) ph, (void*) p->ph ) );
|
||||
delete ( p->ph );
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_QsciStyle \\./ ", (void*) ph, (void*) p->ph ) );
|
||||
p->ph = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NO__rel_QsciStyle ", ph ) );
|
||||
p->ph = NULL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p DEL_rel_QsciStyle : Object already deleted!", ph ) );
|
||||
p->ph = NULL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p PTR_rel_QsciStyle : Object not created with new=true", ph ) );
|
||||
p->ph = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void * hbqt_gcAllocate_QsciStyle( void * pObj, bool bNew )
|
||||
{
|
||||
QGC_POINTER_QsciStyle * p = ( QGC_POINTER_QsciStyle * ) hb_gcAllocate( sizeof( QGC_POINTER_QsciStyle ), hbqt_gcFuncs() );
|
||||
|
||||
new( & p->ph ) QPointer< QsciStyle >( ( QsciStyle * ) pObj );
|
||||
p->bNew = bNew;
|
||||
p->func = hbqt_gcRelease_QsciStyle;
|
||||
|
||||
if( bNew )
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QsciStyle under p->pq", pObj ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QsciStyle", pObj ) );
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
HB_FUNC( QT_QSCISTYLE )
|
||||
{
|
||||
QsciStyle * pObj = NULL;
|
||||
|
||||
if( HB_ISNUMERIC( 1 ) )
|
||||
{
|
||||
pObj = new QsciStyle( hb_parni( 1 ) ) ;
|
||||
}
|
||||
else if( hb_pcount() >= 5 )
|
||||
{
|
||||
pObj = new QsciStyle( hb_parni( 1 ), hbqt_par_QString( 2 ), *hbqt_par_QColor( 3 ), *hbqt_par_QColor( 4 ), * hbqt_par_QFont( 5 ), HB_ISLOG( 6 ) ? hb_parl( 6 ) : false ) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
pObj = new QsciStyle() ;
|
||||
}
|
||||
|
||||
hb_retptrGC( hbqt_gcAllocate_QsciStyle( ( void * ) pObj, true ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* int style () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCISTYLE_STYLE )
|
||||
{
|
||||
QsciStyle * p = hbqt_par_QsciStyle( 1 );
|
||||
if( p )
|
||||
hb_retni( ( p )->style() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_STYLE FP=hb_retni( ( p )->style() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* void setDescription (const QString &description)
|
||||
*/
|
||||
HB_FUNC( QT_QSCISTYLE_SETDESCRIPTION )
|
||||
{
|
||||
QsciStyle * p = hbqt_par_QsciStyle( 1 );
|
||||
if( p )
|
||||
( p )->setDescription( QsciStyle::tr( hb_parc( 2 ) ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_SETDESCRIPTION FP=( p )->setDescription( QsciStyle::tr( hb_parc( 2 ) ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* QString description () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCISTYLE_DESCRIPTION )
|
||||
{
|
||||
QsciStyle * p = hbqt_par_QsciStyle( 1 );
|
||||
if( p )
|
||||
hb_retc( ( p )->description().toAscii().data() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_DESCRIPTION FP=hb_retc( ( p )->description().toAscii().data() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* void setColor (const QColor &color)
|
||||
*/
|
||||
HB_FUNC( QT_QSCISTYLE_SETCOLOR )
|
||||
{
|
||||
QsciStyle * p = hbqt_par_QsciStyle( 1 );
|
||||
if( p )
|
||||
( p )->setColor( *hbqt_par_QColor( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_SETCOLOR FP=( p )->setColor( *hbqt_par_QColor( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* QColor color () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCISTYLE_COLOR )
|
||||
{
|
||||
QsciStyle * p = hbqt_par_QsciStyle( 1 );
|
||||
if( p )
|
||||
hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->color() ), true ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_COLOR FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->color() ), true ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* void setPaper (const QColor &paper)
|
||||
*/
|
||||
HB_FUNC( QT_QSCISTYLE_SETPAPER )
|
||||
{
|
||||
QsciStyle * p = hbqt_par_QsciStyle( 1 );
|
||||
if( p )
|
||||
( p )->setPaper( *hbqt_par_QColor( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_SETPAPER FP=( p )->setPaper( *hbqt_par_QColor( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* QColor paper () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCISTYLE_PAPER )
|
||||
{
|
||||
QsciStyle * p = hbqt_par_QsciStyle( 1 );
|
||||
if( p )
|
||||
hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->paper() ), true ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_PAPER FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->paper() ), true ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* void setFont (const QFont &font)
|
||||
*/
|
||||
HB_FUNC( QT_QSCISTYLE_SETFONT )
|
||||
{
|
||||
QsciStyle * p = hbqt_par_QsciStyle( 1 );
|
||||
if( p )
|
||||
( p )->setFont( *hbqt_par_QFont( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_SETFONT FP=( p )->setFont( *hbqt_par_QFont( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* QFont font () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCISTYLE_FONT )
|
||||
{
|
||||
QsciStyle * p = hbqt_par_QsciStyle( 1 );
|
||||
if( p )
|
||||
hb_retptrGC( hbqt_gcAllocate_QFont( new QFont( ( p )->font() ), true ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_FONT FP=hb_retptrGC( hbqt_gcAllocate_QFont( new QFont( ( p )->font() ), true ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* void setEolFill (bool fill)
|
||||
*/
|
||||
HB_FUNC( QT_QSCISTYLE_SETEOLFILL )
|
||||
{
|
||||
QsciStyle * p = hbqt_par_QsciStyle( 1 );
|
||||
if( p )
|
||||
( p )->setEolFill( hb_parl( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_SETEOLFILL FP=( p )->setEolFill( hb_parl( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* bool eolFill () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCISTYLE_EOLFILL )
|
||||
{
|
||||
QsciStyle * p = hbqt_par_QsciStyle( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->eolFill() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_EOLFILL FP=hb_retl( ( p )->eolFill() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* void setTextCase (TextCase text_case)
|
||||
*/
|
||||
HB_FUNC( QT_QSCISTYLE_SETTEXTCASE )
|
||||
{
|
||||
QsciStyle * p = hbqt_par_QsciStyle( 1 );
|
||||
if( p )
|
||||
( p )->setTextCase( ( QsciStyle::TextCase ) hb_parni( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_SETTEXTCASE FP=( p )->setTextCase( ( QsciStyle::TextCase ) hb_parni( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* TextCase textCase () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCISTYLE_TEXTCASE )
|
||||
{
|
||||
QsciStyle * p = hbqt_par_QsciStyle( 1 );
|
||||
if( p )
|
||||
hb_retni( ( QsciStyle::TextCase ) ( p )->textCase() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_TEXTCASE FP=hb_retni( ( QsciStyle::TextCase ) ( p )->textCase() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* void setVisible (bool visible)
|
||||
*/
|
||||
HB_FUNC( QT_QSCISTYLE_SETVISIBLE )
|
||||
{
|
||||
QsciStyle * p = hbqt_par_QsciStyle( 1 );
|
||||
if( p )
|
||||
( p )->setVisible( hb_parl( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_SETVISIBLE FP=( p )->setVisible( hb_parl( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* bool visible () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCISTYLE_VISIBLE )
|
||||
{
|
||||
QsciStyle * p = hbqt_par_QsciStyle( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->visible() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_VISIBLE FP=hb_retl( ( p )->visible() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* void setChangeable (bool changeable)
|
||||
*/
|
||||
HB_FUNC( QT_QSCISTYLE_SETCHANGEABLE )
|
||||
{
|
||||
QsciStyle * p = hbqt_par_QsciStyle( 1 );
|
||||
if( p )
|
||||
( p )->setChangeable( hb_parl( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_SETCHANGEABLE FP=( p )->setChangeable( hb_parl( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* bool changeable () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCISTYLE_CHANGEABLE )
|
||||
{
|
||||
QsciStyle * p = hbqt_par_QsciStyle( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->changeable() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_CHANGEABLE FP=hb_retl( ( p )->changeable() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* void setHotspot (bool hotspot)
|
||||
*/
|
||||
HB_FUNC( QT_QSCISTYLE_SETHOTSPOT )
|
||||
{
|
||||
QsciStyle * p = hbqt_par_QsciStyle( 1 );
|
||||
if( p )
|
||||
( p )->setHotspot( hb_parl( 2 ) );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_SETHOTSPOT FP=( p )->setHotspot( hb_parl( 2 ) ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* bool hotspot () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCISTYLE_HOTSPOT )
|
||||
{
|
||||
QsciStyle * p = hbqt_par_QsciStyle( 1 );
|
||||
if( p )
|
||||
hb_retl( ( p )->hotspot() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_HOTSPOT FP=hb_retl( ( p )->hotspot() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* void refresh ()
|
||||
*/
|
||||
HB_FUNC( QT_QSCISTYLE_REFRESH )
|
||||
{
|
||||
QsciStyle * p = hbqt_par_QsciStyle( 1 );
|
||||
if( p )
|
||||
( p )->refresh();
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_REFRESH FP=( p )->refresh(); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#endif /* #if QT_VERSION >= 0x040500 */
|
||||
/*----------------------------------------------------------------------*/
|
||||
179
harbour/contrib/hbqt/hbqscintilla/QsciStyledText.cpp
Normal file
179
harbour/contrib/hbqt/hbqscintilla/QsciStyledText.cpp
Normal file
@@ -0,0 +1,179 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/* WARNING: Automatically generated source file. DO NOT EDIT! */
|
||||
/* Instead, edit corresponding .qth file, */
|
||||
/* or the generator tool itself, and run regenarate. */
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT wrapper main header
|
||||
*
|
||||
* Copyright 2009-2010 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
*
|
||||
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include "../hbqt.h"
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#if QT_VERSION >= 0x040500
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include <QtCore/QPointer>
|
||||
|
||||
#include <qscistyledtext.h>
|
||||
#include "hbqt_garbage.h"
|
||||
|
||||
|
||||
/*
|
||||
* QsciStyledText (const QString &text, int style)
|
||||
* QsciStyledText (const QString &text, const QsciStyle &style)
|
||||
*
|
||||
*/
|
||||
|
||||
typedef struct
|
||||
{
|
||||
QsciStyledText * ph;
|
||||
bool bNew;
|
||||
QT_G_FUNC_PTR func;
|
||||
} QGC_POINTER_QsciStyledText;
|
||||
|
||||
QT_G_FUNC( hbqt_gcRelease_QsciStyledText )
|
||||
{
|
||||
QGC_POINTER * p = ( QGC_POINTER * ) Cargo;
|
||||
|
||||
if( p && p->bNew )
|
||||
{
|
||||
if( p->ph )
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _rel_QsciStyledText /.\\", p->ph ) );
|
||||
delete ( ( QsciStyledText * ) p->ph );
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p YES_rel_QsciStyledText \\./", p->ph ) );
|
||||
p->ph = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p DEL_rel_QsciStyledText : Object already deleted!", p->ph ) );
|
||||
p->ph = NULL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p PTR_rel_QsciStyledText : Object not created with new=true", p->ph ) );
|
||||
p->ph = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void * hbqt_gcAllocate_QsciStyledText( void * pObj, bool bNew )
|
||||
{
|
||||
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), hbqt_gcFuncs() );
|
||||
|
||||
p->ph = ( QsciStyledText * ) pObj;
|
||||
p->bNew = bNew;
|
||||
p->func = hbqt_gcRelease_QsciStyledText;
|
||||
|
||||
if( bNew )
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QsciStyledText", pObj ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QsciStyledText", pObj ) );
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
HB_FUNC( QT_QSCISTYLEDTEXT )
|
||||
{
|
||||
QsciStyledText * pObj = NULL;
|
||||
|
||||
if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISNUM( 2 ) )
|
||||
{
|
||||
pObj = new QsciStyledText( hbqt_par_QString( 1 ), hb_parni( 2 ) ) ;
|
||||
}
|
||||
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
|
||||
{
|
||||
pObj = new QsciStyledText( hbqt_par_QString( 1 ), *hbqt_par_QsciStyle( 2 ) ) ;
|
||||
}
|
||||
|
||||
hb_retptrGC( hbqt_gcAllocate_QsciStyledText( ( void * ) pObj, true ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* const QString & text () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCISTYLEDTEXT_TEXT )
|
||||
{
|
||||
QsciStyledText * p = hbqt_par_QsciStyledText( 1 );
|
||||
if( p )
|
||||
hb_retc( ( p )->text().toAscii().data() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLEDTEXT_TEXT FP=hb_retc( ( p )->text().toAscii().data() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* int style () const
|
||||
*/
|
||||
HB_FUNC( QT_QSCISTYLEDTEXT_STYLE )
|
||||
{
|
||||
QsciStyledText * p = hbqt_par_QsciStyledText( 1 );
|
||||
if( p )
|
||||
hb_retni( ( p )->style() );
|
||||
else
|
||||
{
|
||||
HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLEDTEXT_STYLE FP=hb_retni( ( p )->style() ); p is NULL" ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#endif /* #if QT_VERSION >= 0x040500 */
|
||||
/*----------------------------------------------------------------------*/
|
||||
81
harbour/contrib/hbqt/hbqscintilla/THBQsciScintilla.prg
Normal file
81
harbour/contrib/hbqt/hbqscintilla/THBQsciScintilla.prg
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/* WARNING: Automatically generated source file. DO NOT EDIT! */
|
||||
/* Instead, edit corresponding .qth file, */
|
||||
/* or the generator tool itself, and run regenarate. */
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT wrapper main header
|
||||
*
|
||||
* Copyright 2009-2010 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
*
|
||||
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include "hbclass.ch"
|
||||
|
||||
|
||||
CREATE CLASS HBQsciScintilla INHERIT HbQtObjectHandler, QsciScintilla
|
||||
|
||||
METHOD new( ... )
|
||||
|
||||
|
||||
ENDCLASS
|
||||
|
||||
|
||||
METHOD HBQsciScintilla:new( ... )
|
||||
LOCAL p
|
||||
FOR EACH p IN { ... }
|
||||
hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) )
|
||||
NEXT
|
||||
::pPtr := Qt_HBQsciScintilla( ... )
|
||||
RETURN Self
|
||||
|
||||
151
harbour/contrib/hbqt/hbqscintilla/TQsciAPIs.prg
Normal file
151
harbour/contrib/hbqt/hbqscintilla/TQsciAPIs.prg
Normal file
@@ -0,0 +1,151 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/* WARNING: Automatically generated source file. DO NOT EDIT! */
|
||||
/* Instead, edit corresponding .qth file, */
|
||||
/* or the generator tool itself, and run regenarate. */
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT wrapper main header
|
||||
*
|
||||
* Copyright 2009-2010 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
*
|
||||
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include "hbclass.ch"
|
||||
|
||||
|
||||
CREATE CLASS QsciAPIs INHERIT HbQtObjectHandler, QsciAbstractAPIs
|
||||
|
||||
METHOD new( ... )
|
||||
|
||||
METHOD add( cEntry )
|
||||
METHOD clear()
|
||||
METHOD load( cFname )
|
||||
METHOD remove( cEntry )
|
||||
METHOD prepare()
|
||||
METHOD cancelPreparation()
|
||||
METHOD defaultPreparedName()
|
||||
METHOD isPrepared( cFname )
|
||||
METHOD loadPrepared( cFname )
|
||||
METHOD savePrepared( cFname )
|
||||
METHOD updateAutoCompletionList( pContext, pList )
|
||||
METHOD autoCompletionSelected( cSel )
|
||||
METHOD event( pE )
|
||||
METHOD installedAPIFiles()
|
||||
|
||||
ENDCLASS
|
||||
|
||||
|
||||
METHOD QsciAPIs:new( ... )
|
||||
LOCAL p
|
||||
FOR EACH p IN { ... }
|
||||
hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) )
|
||||
NEXT
|
||||
::pPtr := Qt_QsciAPIs( ... )
|
||||
RETURN Self
|
||||
|
||||
|
||||
METHOD QsciAPIs:add( cEntry )
|
||||
RETURN Qt_QsciAPIs_add( ::pPtr, cEntry )
|
||||
|
||||
|
||||
METHOD QsciAPIs:clear()
|
||||
RETURN Qt_QsciAPIs_clear( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciAPIs:load( cFname )
|
||||
RETURN Qt_QsciAPIs_load( ::pPtr, cFname )
|
||||
|
||||
|
||||
METHOD QsciAPIs:remove( cEntry )
|
||||
RETURN Qt_QsciAPIs_remove( ::pPtr, cEntry )
|
||||
|
||||
|
||||
METHOD QsciAPIs:prepare()
|
||||
RETURN Qt_QsciAPIs_prepare( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciAPIs:cancelPreparation()
|
||||
RETURN Qt_QsciAPIs_cancelPreparation( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciAPIs:defaultPreparedName()
|
||||
RETURN Qt_QsciAPIs_defaultPreparedName( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciAPIs:isPrepared( cFname )
|
||||
RETURN Qt_QsciAPIs_isPrepared( ::pPtr, cFname )
|
||||
|
||||
|
||||
METHOD QsciAPIs:loadPrepared( cFname )
|
||||
RETURN Qt_QsciAPIs_loadPrepared( ::pPtr, cFname )
|
||||
|
||||
|
||||
METHOD QsciAPIs:savePrepared( cFname )
|
||||
RETURN Qt_QsciAPIs_savePrepared( ::pPtr, cFname )
|
||||
|
||||
|
||||
METHOD QsciAPIs:updateAutoCompletionList( pContext, pList )
|
||||
RETURN Qt_QsciAPIs_updateAutoCompletionList( ::pPtr, hbqt_ptr( pContext ), hbqt_ptr( pList ) )
|
||||
|
||||
|
||||
METHOD QsciAPIs:autoCompletionSelected( cSel )
|
||||
RETURN Qt_QsciAPIs_autoCompletionSelected( ::pPtr, cSel )
|
||||
|
||||
|
||||
METHOD QsciAPIs:event( pE )
|
||||
RETURN Qt_QsciAPIs_event( ::pPtr, hbqt_ptr( pE ) )
|
||||
|
||||
|
||||
METHOD QsciAPIs:installedAPIFiles()
|
||||
RETURN Qt_QsciAPIs_installedAPIFiles( ::pPtr )
|
||||
|
||||
96
harbour/contrib/hbqt/hbqscintilla/TQsciAbstractAPIs.prg
Normal file
96
harbour/contrib/hbqt/hbqscintilla/TQsciAbstractAPIs.prg
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/* WARNING: Automatically generated source file. DO NOT EDIT! */
|
||||
/* Instead, edit corresponding .qth file, */
|
||||
/* or the generator tool itself, and run regenarate. */
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT wrapper main header
|
||||
*
|
||||
* Copyright 2009-2010 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
*
|
||||
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include "hbclass.ch"
|
||||
|
||||
|
||||
CREATE CLASS QsciAbstractAPIs INHERIT HbQtObjectHandler
|
||||
|
||||
METHOD new( ... )
|
||||
|
||||
METHOD lexer()
|
||||
METHOD updateAutoCompletionList( pContext, pList )
|
||||
METHOD autoCompletionSelected( cSelection )
|
||||
|
||||
ENDCLASS
|
||||
|
||||
|
||||
METHOD QsciAbstractAPIs:new( ... )
|
||||
LOCAL p
|
||||
FOR EACH p IN { ... }
|
||||
hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) )
|
||||
NEXT
|
||||
::pPtr := Qt_QsciAbstractAPIs( ... )
|
||||
RETURN Self
|
||||
|
||||
|
||||
METHOD QsciAbstractAPIs:lexer()
|
||||
RETURN Qt_QsciAbstractAPIs_lexer( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciAbstractAPIs:updateAutoCompletionList( pContext, pList )
|
||||
RETURN Qt_QsciAbstractAPIs_updateAutoCompletionList( ::pPtr, hbqt_ptr( pContext ), hbqt_ptr( pList ) )
|
||||
|
||||
|
||||
METHOD QsciAbstractAPIs:autoCompletionSelected( cSelection )
|
||||
RETURN Qt_QsciAbstractAPIs_autoCompletionSelected( ::pPtr, cSelection )
|
||||
|
||||
111
harbour/contrib/hbqt/hbqscintilla/TQsciCommand.prg
Normal file
111
harbour/contrib/hbqt/hbqscintilla/TQsciCommand.prg
Normal file
@@ -0,0 +1,111 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/* WARNING: Automatically generated source file. DO NOT EDIT! */
|
||||
/* Instead, edit corresponding .qth file, */
|
||||
/* or the generator tool itself, and run regenarate. */
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT wrapper main header
|
||||
*
|
||||
* Copyright 2009-2010 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
*
|
||||
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include "hbclass.ch"
|
||||
|
||||
|
||||
CREATE CLASS QsciCommand INHERIT HbQtObjectHandler
|
||||
|
||||
METHOD new( ... )
|
||||
|
||||
METHOD setKey( nKey )
|
||||
METHOD setAlternateKey( nAltkey )
|
||||
METHOD key()
|
||||
METHOD alternateKey()
|
||||
METHOD description()
|
||||
METHOD validKey( nKey )
|
||||
|
||||
ENDCLASS
|
||||
|
||||
|
||||
METHOD QsciCommand:new( ... )
|
||||
LOCAL p
|
||||
FOR EACH p IN { ... }
|
||||
hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) )
|
||||
NEXT
|
||||
::pPtr := Qt_QsciCommand( ... )
|
||||
RETURN Self
|
||||
|
||||
|
||||
METHOD QsciCommand:setKey( nKey )
|
||||
RETURN Qt_QsciCommand_setKey( ::pPtr, nKey )
|
||||
|
||||
|
||||
METHOD QsciCommand:setAlternateKey( nAltkey )
|
||||
RETURN Qt_QsciCommand_setAlternateKey( ::pPtr, nAltkey )
|
||||
|
||||
|
||||
METHOD QsciCommand:key()
|
||||
RETURN Qt_QsciCommand_key( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciCommand:alternateKey()
|
||||
RETURN Qt_QsciCommand_alternateKey( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciCommand:description()
|
||||
RETURN Qt_QsciCommand_description( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciCommand:validKey( nKey )
|
||||
RETURN Qt_QsciCommand_validKey( ::pPtr, nKey )
|
||||
|
||||
101
harbour/contrib/hbqt/hbqscintilla/TQsciCommandSet.prg
Normal file
101
harbour/contrib/hbqt/hbqscintilla/TQsciCommandSet.prg
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/* WARNING: Automatically generated source file. DO NOT EDIT! */
|
||||
/* Instead, edit corresponding .qth file, */
|
||||
/* or the generator tool itself, and run regenarate. */
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT wrapper main header
|
||||
*
|
||||
* Copyright 2009-2010 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
*
|
||||
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include "hbclass.ch"
|
||||
|
||||
|
||||
CREATE CLASS QsciCommandSet INHERIT HbQtObjectHandler
|
||||
|
||||
METHOD new( ... )
|
||||
|
||||
METHOD readSettings( pQs, pPrefix )
|
||||
METHOD writeSettings( pQs, pPrefix )
|
||||
METHOD clearKeys()
|
||||
METHOD clearAlternateKeys()
|
||||
|
||||
ENDCLASS
|
||||
|
||||
|
||||
METHOD QsciCommandSet:new( ... )
|
||||
LOCAL p
|
||||
FOR EACH p IN { ... }
|
||||
hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) )
|
||||
NEXT
|
||||
::pPtr := Qt_QsciCommandSet( ... )
|
||||
RETURN Self
|
||||
|
||||
|
||||
METHOD QsciCommandSet:readSettings( pQs, pPrefix )
|
||||
RETURN Qt_QsciCommandSet_readSettings( ::pPtr, hbqt_ptr( pQs ), hbqt_ptr( pPrefix ) )
|
||||
|
||||
|
||||
METHOD QsciCommandSet:writeSettings( pQs, pPrefix )
|
||||
RETURN Qt_QsciCommandSet_writeSettings( ::pPtr, hbqt_ptr( pQs ), hbqt_ptr( pPrefix ) )
|
||||
|
||||
|
||||
METHOD QsciCommandSet:clearKeys()
|
||||
RETURN Qt_QsciCommandSet_clearKeys( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciCommandSet:clearAlternateKeys()
|
||||
RETURN Qt_QsciCommandSet_clearAlternateKeys( ::pPtr )
|
||||
|
||||
81
harbour/contrib/hbqt/hbqscintilla/TQsciDocument.prg
Normal file
81
harbour/contrib/hbqt/hbqscintilla/TQsciDocument.prg
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/* WARNING: Automatically generated source file. DO NOT EDIT! */
|
||||
/* Instead, edit corresponding .qth file, */
|
||||
/* or the generator tool itself, and run regenarate. */
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT wrapper main header
|
||||
*
|
||||
* Copyright 2009-2010 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
*
|
||||
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include "hbclass.ch"
|
||||
|
||||
|
||||
CREATE CLASS QsciDocument INHERIT HbQtObjectHandler
|
||||
|
||||
METHOD new( ... )
|
||||
|
||||
|
||||
ENDCLASS
|
||||
|
||||
|
||||
METHOD QsciDocument:new( ... )
|
||||
LOCAL p
|
||||
FOR EACH p IN { ... }
|
||||
hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) )
|
||||
NEXT
|
||||
::pPtr := Qt_QsciDocument( ... )
|
||||
RETURN Self
|
||||
|
||||
301
harbour/contrib/hbqt/hbqscintilla/TQsciLexer.prg
Normal file
301
harbour/contrib/hbqt/hbqscintilla/TQsciLexer.prg
Normal file
@@ -0,0 +1,301 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/* WARNING: Automatically generated source file. DO NOT EDIT! */
|
||||
/* Instead, edit corresponding .qth file, */
|
||||
/* or the generator tool itself, and run regenarate. */
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT wrapper main header
|
||||
*
|
||||
* Copyright 2009-2010 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
*
|
||||
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include "hbclass.ch"
|
||||
|
||||
|
||||
CREATE CLASS QsciLexer INHERIT HbQtObjectHandler
|
||||
|
||||
METHOD new( ... )
|
||||
|
||||
METHOD language()
|
||||
METHOD lexer()
|
||||
METHOD lexerId()
|
||||
METHOD apis()
|
||||
METHOD autoCompletionFillups()
|
||||
METHOD autoCompletionWordSeparators()
|
||||
METHOD autoIndentStyle()
|
||||
METHOD blockEnd( nStyle )
|
||||
METHOD blockLookback()
|
||||
METHOD blockStart( nStyle )
|
||||
METHOD blockStartKeyword( nStyle )
|
||||
METHOD braceStyle()
|
||||
METHOD caseSensitive()
|
||||
METHOD color( nStyle )
|
||||
METHOD eolFill( nStyle )
|
||||
METHOD font( nStyle )
|
||||
METHOD indentationGuideView()
|
||||
METHOD keywords( nSet )
|
||||
METHOD defaultStyle()
|
||||
METHOD description( nStyle )
|
||||
METHOD paper( nStyle )
|
||||
METHOD defaultColor()
|
||||
METHOD defaultColor_1( nStyle )
|
||||
METHOD defaultEolFill( nStyle )
|
||||
METHOD defaultFont()
|
||||
METHOD defaultFont_1( nStyle )
|
||||
METHOD defaultPaper()
|
||||
METHOD defaultPaper_1( nStyle )
|
||||
METHOD editor()
|
||||
METHOD setEditor( pEditor )
|
||||
METHOD readSettings( pQs, pPrefix )
|
||||
METHOD refreshProperties()
|
||||
METHOD styleBitsNeeded()
|
||||
METHOD wordCharacters()
|
||||
METHOD writeSettings( pQs, pPrefix )
|
||||
METHOD setAPIs( pApis )
|
||||
METHOD setDefaultColor( pC )
|
||||
METHOD setDefaultFont( pF )
|
||||
METHOD setDefaultPaper( pC )
|
||||
METHOD setAutoIndentStyle( nAutoindentstyle )
|
||||
METHOD setColor( pC, nStyle )
|
||||
METHOD setEolFill( lEoffill, nStyle )
|
||||
METHOD setFont( pF, nStyle )
|
||||
METHOD setPaper( pC, nStyle )
|
||||
|
||||
ENDCLASS
|
||||
|
||||
|
||||
METHOD QsciLexer:new( ... )
|
||||
LOCAL p
|
||||
FOR EACH p IN { ... }
|
||||
hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) )
|
||||
NEXT
|
||||
::pPtr := Qt_QsciLexer( ... )
|
||||
RETURN Self
|
||||
|
||||
|
||||
METHOD QsciLexer:language()
|
||||
RETURN Qt_QsciLexer_language( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexer:lexer()
|
||||
RETURN Qt_QsciLexer_lexer( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexer:lexerId()
|
||||
RETURN Qt_QsciLexer_lexerId( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexer:apis()
|
||||
RETURN Qt_QsciLexer_apis( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexer:autoCompletionFillups()
|
||||
RETURN Qt_QsciLexer_autoCompletionFillups( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexer:autoCompletionWordSeparators()
|
||||
RETURN Qt_QsciLexer_autoCompletionWordSeparators( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexer:autoIndentStyle()
|
||||
RETURN Qt_QsciLexer_autoIndentStyle( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexer:blockEnd( nStyle )
|
||||
RETURN Qt_QsciLexer_blockEnd( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexer:blockLookback()
|
||||
RETURN Qt_QsciLexer_blockLookback( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexer:blockStart( nStyle )
|
||||
RETURN Qt_QsciLexer_blockStart( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexer:blockStartKeyword( nStyle )
|
||||
RETURN Qt_QsciLexer_blockStartKeyword( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexer:braceStyle()
|
||||
RETURN Qt_QsciLexer_braceStyle( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexer:caseSensitive()
|
||||
RETURN Qt_QsciLexer_caseSensitive( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexer:color( nStyle )
|
||||
RETURN Qt_QsciLexer_color( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexer:eolFill( nStyle )
|
||||
RETURN Qt_QsciLexer_eolFill( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexer:font( nStyle )
|
||||
RETURN Qt_QsciLexer_font( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexer:indentationGuideView()
|
||||
RETURN Qt_QsciLexer_indentationGuideView( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexer:keywords( nSet )
|
||||
RETURN Qt_QsciLexer_keywords( ::pPtr, nSet )
|
||||
|
||||
|
||||
METHOD QsciLexer:defaultStyle()
|
||||
RETURN Qt_QsciLexer_defaultStyle( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexer:description( nStyle )
|
||||
RETURN Qt_QsciLexer_description( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexer:paper( nStyle )
|
||||
RETURN Qt_QsciLexer_paper( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexer:defaultColor()
|
||||
RETURN Qt_QsciLexer_defaultColor( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexer:defaultColor_1( nStyle )
|
||||
RETURN Qt_QsciLexer_defaultColor_1( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexer:defaultEolFill( nStyle )
|
||||
RETURN Qt_QsciLexer_defaultEolFill( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexer:defaultFont()
|
||||
RETURN Qt_QsciLexer_defaultFont( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexer:defaultFont_1( nStyle )
|
||||
RETURN Qt_QsciLexer_defaultFont_1( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexer:defaultPaper()
|
||||
RETURN Qt_QsciLexer_defaultPaper( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexer:defaultPaper_1( nStyle )
|
||||
RETURN Qt_QsciLexer_defaultPaper_1( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexer:editor()
|
||||
RETURN Qt_QsciLexer_editor( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexer:setEditor( pEditor )
|
||||
RETURN Qt_QsciLexer_setEditor( ::pPtr, hbqt_ptr( pEditor ) )
|
||||
|
||||
|
||||
METHOD QsciLexer:readSettings( pQs, pPrefix )
|
||||
RETURN Qt_QsciLexer_readSettings( ::pPtr, hbqt_ptr( pQs ), hbqt_ptr( pPrefix ) )
|
||||
|
||||
|
||||
METHOD QsciLexer:refreshProperties()
|
||||
RETURN Qt_QsciLexer_refreshProperties( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexer:styleBitsNeeded()
|
||||
RETURN Qt_QsciLexer_styleBitsNeeded( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexer:wordCharacters()
|
||||
RETURN Qt_QsciLexer_wordCharacters( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexer:writeSettings( pQs, pPrefix )
|
||||
RETURN Qt_QsciLexer_writeSettings( ::pPtr, hbqt_ptr( pQs ), hbqt_ptr( pPrefix ) )
|
||||
|
||||
|
||||
METHOD QsciLexer:setAPIs( pApis )
|
||||
RETURN Qt_QsciLexer_setAPIs( ::pPtr, hbqt_ptr( pApis ) )
|
||||
|
||||
|
||||
METHOD QsciLexer:setDefaultColor( pC )
|
||||
RETURN Qt_QsciLexer_setDefaultColor( ::pPtr, hbqt_ptr( pC ) )
|
||||
|
||||
|
||||
METHOD QsciLexer:setDefaultFont( pF )
|
||||
RETURN Qt_QsciLexer_setDefaultFont( ::pPtr, hbqt_ptr( pF ) )
|
||||
|
||||
|
||||
METHOD QsciLexer:setDefaultPaper( pC )
|
||||
RETURN Qt_QsciLexer_setDefaultPaper( ::pPtr, hbqt_ptr( pC ) )
|
||||
|
||||
|
||||
METHOD QsciLexer:setAutoIndentStyle( nAutoindentstyle )
|
||||
RETURN Qt_QsciLexer_setAutoIndentStyle( ::pPtr, nAutoindentstyle )
|
||||
|
||||
|
||||
METHOD QsciLexer:setColor( pC, nStyle )
|
||||
RETURN Qt_QsciLexer_setColor( ::pPtr, hbqt_ptr( pC ), nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexer:setEolFill( lEoffill, nStyle )
|
||||
RETURN Qt_QsciLexer_setEolFill( ::pPtr, lEoffill, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexer:setFont( pF, nStyle )
|
||||
RETURN Qt_QsciLexer_setFont( ::pPtr, hbqt_ptr( pF ), nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexer:setPaper( pC, nStyle )
|
||||
RETURN Qt_QsciLexer_setPaper( ::pPtr, hbqt_ptr( pC ), nStyle )
|
||||
|
||||
216
harbour/contrib/hbqt/hbqscintilla/TQsciLexerCPP.prg
Normal file
216
harbour/contrib/hbqt/hbqscintilla/TQsciLexerCPP.prg
Normal file
@@ -0,0 +1,216 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/* WARNING: Automatically generated source file. DO NOT EDIT! */
|
||||
/* Instead, edit corresponding .qth file, */
|
||||
/* or the generator tool itself, and run regenarate. */
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT wrapper main header
|
||||
*
|
||||
* Copyright 2009-2010 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
*
|
||||
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include "hbclass.ch"
|
||||
|
||||
|
||||
CREATE CLASS QsciLexerCPP INHERIT HbQtObjectHandler, QsciLexer
|
||||
|
||||
METHOD new( ... )
|
||||
|
||||
METHOD language()
|
||||
METHOD lexer()
|
||||
METHOD autoCompletionWordSeparators()
|
||||
METHOD blockEnd( nStyle )
|
||||
METHOD blockStart( nStyle )
|
||||
METHOD blockStartKeyword( nStyle )
|
||||
METHOD braceStyle()
|
||||
METHOD wordCharacters()
|
||||
METHOD defaultColor( nStyle )
|
||||
METHOD defaultEolFill( nStyle )
|
||||
METHOD defaultFont( nStyle )
|
||||
METHOD defaultPaper( nStyle )
|
||||
METHOD keywords( nSet )
|
||||
METHOD description( nStyle )
|
||||
METHOD refreshProperties()
|
||||
METHOD foldAtElse()
|
||||
METHOD foldComments()
|
||||
METHOD foldCompact()
|
||||
METHOD foldPreprocessor()
|
||||
METHOD stylePreprocessor()
|
||||
METHOD setDollarsAllowed( lAllowed )
|
||||
METHOD dollarsAllowed()
|
||||
METHOD setFoldAtElse( lFold )
|
||||
METHOD setFoldComments( lFold )
|
||||
METHOD setFoldCompact( lFold )
|
||||
METHOD setFoldPreprocessor( lFold )
|
||||
METHOD setStylePreprocessor( lStyle )
|
||||
|
||||
ENDCLASS
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:new( ... )
|
||||
LOCAL p
|
||||
FOR EACH p IN { ... }
|
||||
hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) )
|
||||
NEXT
|
||||
::pPtr := Qt_QsciLexerCPP( ... )
|
||||
RETURN Self
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:language()
|
||||
RETURN Qt_QsciLexerCPP_language( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:lexer()
|
||||
RETURN Qt_QsciLexerCPP_lexer( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:autoCompletionWordSeparators()
|
||||
RETURN Qt_QsciLexerCPP_autoCompletionWordSeparators( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:blockEnd( nStyle )
|
||||
RETURN Qt_QsciLexerCPP_blockEnd( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:blockStart( nStyle )
|
||||
RETURN Qt_QsciLexerCPP_blockStart( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:blockStartKeyword( nStyle )
|
||||
RETURN Qt_QsciLexerCPP_blockStartKeyword( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:braceStyle()
|
||||
RETURN Qt_QsciLexerCPP_braceStyle( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:wordCharacters()
|
||||
RETURN Qt_QsciLexerCPP_wordCharacters( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:defaultColor( nStyle )
|
||||
RETURN Qt_QsciLexerCPP_defaultColor( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:defaultEolFill( nStyle )
|
||||
RETURN Qt_QsciLexerCPP_defaultEolFill( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:defaultFont( nStyle )
|
||||
RETURN Qt_QsciLexerCPP_defaultFont( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:defaultPaper( nStyle )
|
||||
RETURN Qt_QsciLexerCPP_defaultPaper( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:keywords( nSet )
|
||||
RETURN Qt_QsciLexerCPP_keywords( ::pPtr, nSet )
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:description( nStyle )
|
||||
RETURN Qt_QsciLexerCPP_description( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:refreshProperties()
|
||||
RETURN Qt_QsciLexerCPP_refreshProperties( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:foldAtElse()
|
||||
RETURN Qt_QsciLexerCPP_foldAtElse( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:foldComments()
|
||||
RETURN Qt_QsciLexerCPP_foldComments( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:foldCompact()
|
||||
RETURN Qt_QsciLexerCPP_foldCompact( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:foldPreprocessor()
|
||||
RETURN Qt_QsciLexerCPP_foldPreprocessor( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:stylePreprocessor()
|
||||
RETURN Qt_QsciLexerCPP_stylePreprocessor( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:setDollarsAllowed( lAllowed )
|
||||
RETURN Qt_QsciLexerCPP_setDollarsAllowed( ::pPtr, lAllowed )
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:dollarsAllowed()
|
||||
RETURN Qt_QsciLexerCPP_dollarsAllowed( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:setFoldAtElse( lFold )
|
||||
RETURN Qt_QsciLexerCPP_setFoldAtElse( ::pPtr, lFold )
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:setFoldComments( lFold )
|
||||
RETURN Qt_QsciLexerCPP_setFoldComments( ::pPtr, lFold )
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:setFoldCompact( lFold )
|
||||
RETURN Qt_QsciLexerCPP_setFoldCompact( ::pPtr, lFold )
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:setFoldPreprocessor( lFold )
|
||||
RETURN Qt_QsciLexerCPP_setFoldPreprocessor( ::pPtr, lFold )
|
||||
|
||||
|
||||
METHOD QsciLexerCPP:setStylePreprocessor( lStyle )
|
||||
RETURN Qt_QsciLexerCPP_setStylePreprocessor( ::pPtr, lStyle )
|
||||
|
||||
216
harbour/contrib/hbqt/hbqscintilla/TQsciLexerFlagship.prg
Normal file
216
harbour/contrib/hbqt/hbqscintilla/TQsciLexerFlagship.prg
Normal file
@@ -0,0 +1,216 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/* WARNING: Automatically generated source file. DO NOT EDIT! */
|
||||
/* Instead, edit corresponding .qth file, */
|
||||
/* or the generator tool itself, and run regenarate. */
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT wrapper main header
|
||||
*
|
||||
* Copyright 2009-2010 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
*
|
||||
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include "hbclass.ch"
|
||||
|
||||
|
||||
CREATE CLASS QsciLexerFlagship INHERIT HbQtObjectHandler, QsciLexer
|
||||
|
||||
METHOD new( ... )
|
||||
|
||||
METHOD language()
|
||||
METHOD lexer()
|
||||
METHOD autoCompletionWordSeparators()
|
||||
METHOD blockEnd( nStyle )
|
||||
METHOD blockStart( nStyle )
|
||||
METHOD blockStartKeyword( nStyle )
|
||||
METHOD braceStyle()
|
||||
METHOD wordCharacters()
|
||||
METHOD defaultColor( nStyle )
|
||||
METHOD defaultEolFill( nStyle )
|
||||
METHOD defaultFont( nStyle )
|
||||
METHOD defaultPaper( nStyle )
|
||||
METHOD keywords( nSet )
|
||||
METHOD description( nStyle )
|
||||
METHOD refreshProperties()
|
||||
METHOD foldAtElse()
|
||||
METHOD foldComments()
|
||||
METHOD foldCompact()
|
||||
METHOD foldPreprocessor()
|
||||
METHOD stylePreprocessor()
|
||||
METHOD setDollarsAllowed( lAllowed )
|
||||
METHOD dollarsAllowed()
|
||||
METHOD setFoldAtElse( lFold )
|
||||
METHOD setFoldComments( lFold )
|
||||
METHOD setFoldCompact( lFold )
|
||||
METHOD setFoldPreprocessor( lFold )
|
||||
METHOD setStylePreprocessor( lStyle )
|
||||
|
||||
ENDCLASS
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:new( ... )
|
||||
LOCAL p
|
||||
FOR EACH p IN { ... }
|
||||
hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) )
|
||||
NEXT
|
||||
::pPtr := Qt_QsciLexerFlagship( ... )
|
||||
RETURN Self
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:language()
|
||||
RETURN Qt_QsciLexerFlagship_language( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:lexer()
|
||||
RETURN Qt_QsciLexerFlagship_lexer( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:autoCompletionWordSeparators()
|
||||
RETURN Qt_QsciLexerFlagship_autoCompletionWordSeparators( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:blockEnd( nStyle )
|
||||
RETURN Qt_QsciLexerFlagship_blockEnd( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:blockStart( nStyle )
|
||||
RETURN Qt_QsciLexerFlagship_blockStart( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:blockStartKeyword( nStyle )
|
||||
RETURN Qt_QsciLexerFlagship_blockStartKeyword( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:braceStyle()
|
||||
RETURN Qt_QsciLexerFlagship_braceStyle( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:wordCharacters()
|
||||
RETURN Qt_QsciLexerFlagship_wordCharacters( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:defaultColor( nStyle )
|
||||
RETURN Qt_QsciLexerFlagship_defaultColor( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:defaultEolFill( nStyle )
|
||||
RETURN Qt_QsciLexerFlagship_defaultEolFill( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:defaultFont( nStyle )
|
||||
RETURN Qt_QsciLexerFlagship_defaultFont( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:defaultPaper( nStyle )
|
||||
RETURN Qt_QsciLexerFlagship_defaultPaper( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:keywords( nSet )
|
||||
RETURN Qt_QsciLexerFlagship_keywords( ::pPtr, nSet )
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:description( nStyle )
|
||||
RETURN Qt_QsciLexerFlagship_description( ::pPtr, nStyle )
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:refreshProperties()
|
||||
RETURN Qt_QsciLexerFlagship_refreshProperties( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:foldAtElse()
|
||||
RETURN Qt_QsciLexerFlagship_foldAtElse( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:foldComments()
|
||||
RETURN Qt_QsciLexerFlagship_foldComments( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:foldCompact()
|
||||
RETURN Qt_QsciLexerFlagship_foldCompact( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:foldPreprocessor()
|
||||
RETURN Qt_QsciLexerFlagship_foldPreprocessor( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:stylePreprocessor()
|
||||
RETURN Qt_QsciLexerFlagship_stylePreprocessor( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:setDollarsAllowed( lAllowed )
|
||||
RETURN Qt_QsciLexerFlagship_setDollarsAllowed( ::pPtr, lAllowed )
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:dollarsAllowed()
|
||||
RETURN Qt_QsciLexerFlagship_dollarsAllowed( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:setFoldAtElse( lFold )
|
||||
RETURN Qt_QsciLexerFlagship_setFoldAtElse( ::pPtr, lFold )
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:setFoldComments( lFold )
|
||||
RETURN Qt_QsciLexerFlagship_setFoldComments( ::pPtr, lFold )
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:setFoldCompact( lFold )
|
||||
RETURN Qt_QsciLexerFlagship_setFoldCompact( ::pPtr, lFold )
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:setFoldPreprocessor( lFold )
|
||||
RETURN Qt_QsciLexerFlagship_setFoldPreprocessor( ::pPtr, lFold )
|
||||
|
||||
|
||||
METHOD QsciLexerFlagship:setStylePreprocessor( lStyle )
|
||||
RETURN Qt_QsciLexerFlagship_setStylePreprocessor( ::pPtr, lStyle )
|
||||
|
||||
1056
harbour/contrib/hbqt/hbqscintilla/TQsciScintilla.prg
Normal file
1056
harbour/contrib/hbqt/hbqscintilla/TQsciScintilla.prg
Normal file
File diff suppressed because it is too large
Load Diff
181
harbour/contrib/hbqt/hbqscintilla/TQsciStyle.prg
Normal file
181
harbour/contrib/hbqt/hbqscintilla/TQsciStyle.prg
Normal file
@@ -0,0 +1,181 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/* WARNING: Automatically generated source file. DO NOT EDIT! */
|
||||
/* Instead, edit corresponding .qth file, */
|
||||
/* or the generator tool itself, and run regenarate. */
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT wrapper main header
|
||||
*
|
||||
* Copyright 2009-2010 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
*
|
||||
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include "hbclass.ch"
|
||||
|
||||
|
||||
CREATE CLASS QsciStyle INHERIT HbQtObjectHandler
|
||||
|
||||
METHOD new( ... )
|
||||
|
||||
METHOD style()
|
||||
METHOD setDescription( cDescription )
|
||||
METHOD description()
|
||||
METHOD setColor( pColor )
|
||||
METHOD color()
|
||||
METHOD setPaper( pPaper )
|
||||
METHOD paper()
|
||||
METHOD setFont( pFont )
|
||||
METHOD font()
|
||||
METHOD setEolFill( lFill )
|
||||
METHOD eolFill()
|
||||
METHOD setTextCase( nText_case )
|
||||
METHOD textCase()
|
||||
METHOD setVisible( lVisible )
|
||||
METHOD visible()
|
||||
METHOD setChangeable( lChangeable )
|
||||
METHOD changeable()
|
||||
METHOD setHotspot( lHotspot )
|
||||
METHOD hotspot()
|
||||
METHOD refresh()
|
||||
|
||||
ENDCLASS
|
||||
|
||||
|
||||
METHOD QsciStyle:new( ... )
|
||||
LOCAL p
|
||||
FOR EACH p IN { ... }
|
||||
hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) )
|
||||
NEXT
|
||||
::pPtr := Qt_QsciStyle( ... )
|
||||
RETURN Self
|
||||
|
||||
|
||||
METHOD QsciStyle:style()
|
||||
RETURN Qt_QsciStyle_style( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciStyle:setDescription( cDescription )
|
||||
RETURN Qt_QsciStyle_setDescription( ::pPtr, cDescription )
|
||||
|
||||
|
||||
METHOD QsciStyle:description()
|
||||
RETURN Qt_QsciStyle_description( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciStyle:setColor( pColor )
|
||||
RETURN Qt_QsciStyle_setColor( ::pPtr, hbqt_ptr( pColor ) )
|
||||
|
||||
|
||||
METHOD QsciStyle:color()
|
||||
RETURN Qt_QsciStyle_color( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciStyle:setPaper( pPaper )
|
||||
RETURN Qt_QsciStyle_setPaper( ::pPtr, hbqt_ptr( pPaper ) )
|
||||
|
||||
|
||||
METHOD QsciStyle:paper()
|
||||
RETURN Qt_QsciStyle_paper( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciStyle:setFont( pFont )
|
||||
RETURN Qt_QsciStyle_setFont( ::pPtr, hbqt_ptr( pFont ) )
|
||||
|
||||
|
||||
METHOD QsciStyle:font()
|
||||
RETURN Qt_QsciStyle_font( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciStyle:setEolFill( lFill )
|
||||
RETURN Qt_QsciStyle_setEolFill( ::pPtr, lFill )
|
||||
|
||||
|
||||
METHOD QsciStyle:eolFill()
|
||||
RETURN Qt_QsciStyle_eolFill( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciStyle:setTextCase( nText_case )
|
||||
RETURN Qt_QsciStyle_setTextCase( ::pPtr, nText_case )
|
||||
|
||||
|
||||
METHOD QsciStyle:textCase()
|
||||
RETURN Qt_QsciStyle_textCase( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciStyle:setVisible( lVisible )
|
||||
RETURN Qt_QsciStyle_setVisible( ::pPtr, lVisible )
|
||||
|
||||
|
||||
METHOD QsciStyle:visible()
|
||||
RETURN Qt_QsciStyle_visible( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciStyle:setChangeable( lChangeable )
|
||||
RETURN Qt_QsciStyle_setChangeable( ::pPtr, lChangeable )
|
||||
|
||||
|
||||
METHOD QsciStyle:changeable()
|
||||
RETURN Qt_QsciStyle_changeable( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciStyle:setHotspot( lHotspot )
|
||||
RETURN Qt_QsciStyle_setHotspot( ::pPtr, lHotspot )
|
||||
|
||||
|
||||
METHOD QsciStyle:hotspot()
|
||||
RETURN Qt_QsciStyle_hotspot( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciStyle:refresh()
|
||||
RETURN Qt_QsciStyle_refresh( ::pPtr )
|
||||
|
||||
91
harbour/contrib/hbqt/hbqscintilla/TQsciStyledText.prg
Normal file
91
harbour/contrib/hbqt/hbqscintilla/TQsciStyledText.prg
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/* WARNING: Automatically generated source file. DO NOT EDIT! */
|
||||
/* Instead, edit corresponding .qth file, */
|
||||
/* or the generator tool itself, and run regenarate. */
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT wrapper main header
|
||||
*
|
||||
* Copyright 2009-2010 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
*
|
||||
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include "hbclass.ch"
|
||||
|
||||
|
||||
CREATE CLASS QsciStyledText INHERIT HbQtObjectHandler
|
||||
|
||||
METHOD new( ... )
|
||||
|
||||
METHOD text()
|
||||
METHOD style()
|
||||
|
||||
ENDCLASS
|
||||
|
||||
|
||||
METHOD QsciStyledText:new( ... )
|
||||
LOCAL p
|
||||
FOR EACH p IN { ... }
|
||||
hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) )
|
||||
NEXT
|
||||
::pPtr := Qt_QsciStyledText( ... )
|
||||
RETURN Self
|
||||
|
||||
|
||||
METHOD QsciStyledText:text()
|
||||
RETURN Qt_QsciStyledText_text( ::pPtr )
|
||||
|
||||
|
||||
METHOD QsciStyledText:style()
|
||||
RETURN Qt_QsciStyledText_style( ::pPtr )
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* hbQTgen v1.0 - Harbour Callable Wrappers Generator for Qt v4.5.3+
|
||||
* Please do not modify this document as it is subject to change in future.
|
||||
* Pritpal Bedi <bedipritpal@hotmail.com>
|
||||
*/
|
||||
|
||||
/* $DOC$
|
||||
$TEMPLATE$
|
||||
Class
|
||||
$NAME$
|
||||
QsciAbstractAPIs()
|
||||
$CATEGORY$
|
||||
Harbour Bindings for Qt
|
||||
$SUBCATEGORY$
|
||||
GUI
|
||||
$EXTERNALLINK$
|
||||
http://doc.trolltech.com/4.5/qsciabstractapis.html
|
||||
$ONELINER$
|
||||
Creates a new QsciAbstractAPIs object.
|
||||
$INHERITS$
|
||||
|
||||
$SYNTAX$
|
||||
QsciAbstractAPIs():new( ... )
|
||||
QsciAbstractAPIs():from( pPtr_OR_oObj_of_type_QsciAbstractAPIs )
|
||||
QsciAbstractAPIs():configure( pPtr_OR_oObj_of_type_QsciAbstractAPIs )
|
||||
$ARGUMENTS$
|
||||
|
||||
$RETURNS$
|
||||
An instance of the object of type QsciAbstractAPIs
|
||||
$METHODS$
|
||||
:lexer() -> pQsciLexer
|
||||
:updateAutoCompletionList( pContext, pList ) -> NIL
|
||||
:autoCompletionSelected( cSelection ) -> NIL
|
||||
|
||||
$DESCRIPTION$
|
||||
|
||||
$EXAMPLES$
|
||||
|
||||
$TESTS$
|
||||
|
||||
$STATUS$
|
||||
R
|
||||
$COMPLIANCE$
|
||||
Not Clipper Compatible
|
||||
$PLATFORMS$
|
||||
Windows, Linux, MacOS, OS2
|
||||
$VERSION$
|
||||
4.5.3
|
||||
$FILES$
|
||||
Prg Source : contrib/hbqt/TQsciAbstractAPIs.prg
|
||||
C++ Wrappers : contrib/hbqt/QsciAbstractAPIs.cpp
|
||||
Library : hb
|
||||
$SEEALSO$
|
||||
|
||||
$END$
|
||||
*/
|
||||
67
harbour/contrib/hbqt/hbqscintilla/doc/en/class_qsciapis.txt
Normal file
67
harbour/contrib/hbqt/hbqscintilla/doc/en/class_qsciapis.txt
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* hbQTgen v1.0 - Harbour Callable Wrappers Generator for Qt v4.5.3+
|
||||
* Please do not modify this document as it is subject to change in future.
|
||||
* Pritpal Bedi <bedipritpal@hotmail.com>
|
||||
*/
|
||||
|
||||
/* $DOC$
|
||||
$TEMPLATE$
|
||||
Class
|
||||
$NAME$
|
||||
QsciAPIs()
|
||||
$CATEGORY$
|
||||
Harbour Bindings for Qt
|
||||
$SUBCATEGORY$
|
||||
GUI
|
||||
$EXTERNALLINK$
|
||||
http://doc.trolltech.com/4.5/qsciapis.html
|
||||
$ONELINER$
|
||||
Creates a new QsciAPIs object.
|
||||
$INHERITS$
|
||||
QsciAbstractAPIs
|
||||
$SYNTAX$
|
||||
QsciAPIs():new( ... )
|
||||
QsciAPIs():from( pPtr_OR_oObj_of_type_QsciAPIs )
|
||||
QsciAPIs():configure( pPtr_OR_oObj_of_type_QsciAPIs )
|
||||
$ARGUMENTS$
|
||||
|
||||
$RETURNS$
|
||||
An instance of the object of type QsciAPIs
|
||||
$METHODS$
|
||||
:add( cEntry ) -> NIL
|
||||
:clear() -> NIL
|
||||
:load( cFname ) -> lBool
|
||||
:remove( cEntry ) -> NIL
|
||||
:prepare() -> NIL
|
||||
:cancelPreparation() -> NIL
|
||||
:defaultPreparedName() -> cQString
|
||||
:isPrepared( cFname ) -> lBool
|
||||
:loadPrepared( cFname ) -> lBool
|
||||
:savePrepared( cFname ) -> lBool
|
||||
:updateAutoCompletionList( pContext, pList ) -> NIL
|
||||
:autoCompletionSelected( cSel ) -> NIL
|
||||
:event( pE ) -> lBool
|
||||
:installedAPIFiles() -> pQStringList
|
||||
|
||||
$DESCRIPTION$
|
||||
|
||||
$EXAMPLES$
|
||||
|
||||
$TESTS$
|
||||
|
||||
$STATUS$
|
||||
R
|
||||
$COMPLIANCE$
|
||||
Not Clipper Compatible
|
||||
$PLATFORMS$
|
||||
Windows, Linux, MacOS, OS2
|
||||
$VERSION$
|
||||
4.5.3
|
||||
$FILES$
|
||||
Prg Source : contrib/hbqt/TQsciAPIs.prg
|
||||
C++ Wrappers : contrib/hbqt/QsciAPIs.cpp
|
||||
Library : hb
|
||||
$SEEALSO$
|
||||
QsciAbstractAPIs
|
||||
$END$
|
||||
*/
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* hbQTgen v1.0 - Harbour Callable Wrappers Generator for Qt v4.5.3+
|
||||
* Please do not modify this document as it is subject to change in future.
|
||||
* Pritpal Bedi <bedipritpal@hotmail.com>
|
||||
*/
|
||||
|
||||
/* $DOC$
|
||||
$TEMPLATE$
|
||||
Class
|
||||
$NAME$
|
||||
QsciCommand()
|
||||
$CATEGORY$
|
||||
Harbour Bindings for Qt
|
||||
$SUBCATEGORY$
|
||||
GUI
|
||||
$EXTERNALLINK$
|
||||
http://doc.trolltech.com/4.5/qscicommand.html
|
||||
$ONELINER$
|
||||
Creates a new QsciCommand object.
|
||||
$INHERITS$
|
||||
|
||||
$SYNTAX$
|
||||
QsciCommand():new( ... )
|
||||
QsciCommand():from( pPtr_OR_oObj_of_type_QsciCommand )
|
||||
QsciCommand():configure( pPtr_OR_oObj_of_type_QsciCommand )
|
||||
$ARGUMENTS$
|
||||
|
||||
$RETURNS$
|
||||
An instance of the object of type QsciCommand
|
||||
$METHODS$
|
||||
:setKey( nKey ) -> NIL
|
||||
:setAlternateKey( nAltkey ) -> NIL
|
||||
:key() -> nInt
|
||||
:alternateKey() -> nInt
|
||||
:description() -> cQString
|
||||
:validKey( nKey ) -> lBool
|
||||
|
||||
$DESCRIPTION$
|
||||
|
||||
$EXAMPLES$
|
||||
|
||||
$TESTS$
|
||||
|
||||
$STATUS$
|
||||
R
|
||||
$COMPLIANCE$
|
||||
Not Clipper Compatible
|
||||
$PLATFORMS$
|
||||
Windows, Linux, MacOS, OS2
|
||||
$VERSION$
|
||||
4.5.3
|
||||
$FILES$
|
||||
Prg Source : contrib/hbqt/TQsciCommand.prg
|
||||
C++ Wrappers : contrib/hbqt/QsciCommand.cpp
|
||||
Library : hb
|
||||
$SEEALSO$
|
||||
|
||||
$END$
|
||||
*/
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* hbQTgen v1.0 - Harbour Callable Wrappers Generator for Qt v4.5.3+
|
||||
* Please do not modify this document as it is subject to change in future.
|
||||
* Pritpal Bedi <bedipritpal@hotmail.com>
|
||||
*/
|
||||
|
||||
/* $DOC$
|
||||
$TEMPLATE$
|
||||
Class
|
||||
$NAME$
|
||||
QsciCommandSet()
|
||||
$CATEGORY$
|
||||
Harbour Bindings for Qt
|
||||
$SUBCATEGORY$
|
||||
GUI
|
||||
$EXTERNALLINK$
|
||||
http://doc.trolltech.com/4.5/qscicommandset.html
|
||||
$ONELINER$
|
||||
Creates a new QsciCommandSet object.
|
||||
$INHERITS$
|
||||
|
||||
$SYNTAX$
|
||||
QsciCommandSet():new( ... )
|
||||
QsciCommandSet():from( pPtr_OR_oObj_of_type_QsciCommandSet )
|
||||
QsciCommandSet():configure( pPtr_OR_oObj_of_type_QsciCommandSet )
|
||||
$ARGUMENTS$
|
||||
|
||||
$RETURNS$
|
||||
An instance of the object of type QsciCommandSet
|
||||
$METHODS$
|
||||
:readSettings( pQs, pPrefix ) -> lBool
|
||||
:writeSettings( pQs, pPrefix ) -> lBool
|
||||
:clearKeys() -> NIL
|
||||
:clearAlternateKeys() -> NIL
|
||||
|
||||
$DESCRIPTION$
|
||||
|
||||
$EXAMPLES$
|
||||
|
||||
$TESTS$
|
||||
|
||||
$STATUS$
|
||||
R
|
||||
$COMPLIANCE$
|
||||
Not Clipper Compatible
|
||||
$PLATFORMS$
|
||||
Windows, Linux, MacOS, OS2
|
||||
$VERSION$
|
||||
4.5.3
|
||||
$FILES$
|
||||
Prg Source : contrib/hbqt/TQsciCommandSet.prg
|
||||
C++ Wrappers : contrib/hbqt/QsciCommandSet.cpp
|
||||
Library : hb
|
||||
$SEEALSO$
|
||||
|
||||
$END$
|
||||
*/
|
||||
97
harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscilexer.txt
Normal file
97
harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscilexer.txt
Normal file
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* hbQTgen v1.0 - Harbour Callable Wrappers Generator for Qt v4.5.3+
|
||||
* Please do not modify this document as it is subject to change in future.
|
||||
* Pritpal Bedi <bedipritpal@hotmail.com>
|
||||
*/
|
||||
|
||||
/* $DOC$
|
||||
$TEMPLATE$
|
||||
Class
|
||||
$NAME$
|
||||
QsciLexer()
|
||||
$CATEGORY$
|
||||
Harbour Bindings for Qt
|
||||
$SUBCATEGORY$
|
||||
GUI
|
||||
$EXTERNALLINK$
|
||||
http://doc.trolltech.com/4.5/qscilexer.html
|
||||
$ONELINER$
|
||||
Creates a new QsciLexer object.
|
||||
$INHERITS$
|
||||
|
||||
$SYNTAX$
|
||||
QsciLexer():new( ... )
|
||||
QsciLexer():from( pPtr_OR_oObj_of_type_QsciLexer )
|
||||
QsciLexer():configure( pPtr_OR_oObj_of_type_QsciLexer )
|
||||
$ARGUMENTS$
|
||||
|
||||
$RETURNS$
|
||||
An instance of the object of type QsciLexer
|
||||
$METHODS$
|
||||
:language() -> cChar
|
||||
:lexer() -> cChar
|
||||
:lexerId() -> nInt
|
||||
:apis() -> pQsciAbstractAPIs
|
||||
:autoCompletionFillups() -> cChar
|
||||
:autoCompletionWordSeparators() -> pQStringList
|
||||
:autoIndentStyle() -> nInt
|
||||
:blockEnd( @nStyle ) -> cChar
|
||||
:blockLookback() -> nInt
|
||||
:blockStart( @nStyle ) -> cChar
|
||||
:blockStartKeyword( @nStyle ) -> cChar
|
||||
:braceStyle() -> nInt
|
||||
:caseSensitive() -> lBool
|
||||
:color( nStyle ) -> pQColor
|
||||
:eolFill( nStyle ) -> lBool
|
||||
:font( nStyle ) -> pQFont
|
||||
:indentationGuideView() -> nInt
|
||||
:keywords( nSet ) -> cChar
|
||||
:defaultStyle() -> nInt
|
||||
:description( nStyle ) -> cQString
|
||||
:paper( nStyle ) -> pQColor
|
||||
:defaultColor() -> pQColor
|
||||
:defaultColor_1( nStyle ) -> pQColor
|
||||
:defaultEolFill( nStyle ) -> lBool
|
||||
:defaultFont() -> pQFont
|
||||
:defaultFont_1( nStyle ) -> pQFont
|
||||
:defaultPaper() -> pQColor
|
||||
:defaultPaper_1( nStyle ) -> pQColor
|
||||
:editor() -> pQsciScintilla
|
||||
:setEditor( pEditor ) -> NIL
|
||||
:readSettings( pQs, pPrefix ) -> lBool
|
||||
:refreshProperties() -> NIL
|
||||
:styleBitsNeeded() -> nInt
|
||||
:wordCharacters() -> cChar
|
||||
:writeSettings( pQs, pPrefix ) -> lBool
|
||||
:setAPIs( pApis ) -> NIL
|
||||
:setDefaultColor( pC ) -> NIL
|
||||
:setDefaultFont( pF ) -> NIL
|
||||
:setDefaultPaper( pC ) -> NIL
|
||||
:setAutoIndentStyle( nAutoindentstyle ) -> NIL
|
||||
:setColor( pC, nStyle ) -> NIL
|
||||
:setEolFill( lEoffill, nStyle ) -> NIL
|
||||
:setFont( pF, nStyle ) -> NIL
|
||||
:setPaper( pC, nStyle ) -> NIL
|
||||
|
||||
$DESCRIPTION$
|
||||
|
||||
$EXAMPLES$
|
||||
|
||||
$TESTS$
|
||||
|
||||
$STATUS$
|
||||
R
|
||||
$COMPLIANCE$
|
||||
Not Clipper Compatible
|
||||
$PLATFORMS$
|
||||
Windows, Linux, MacOS, OS2
|
||||
$VERSION$
|
||||
4.5.3
|
||||
$FILES$
|
||||
Prg Source : contrib/hbqt/TQsciLexer.prg
|
||||
C++ Wrappers : contrib/hbqt/QsciLexer.cpp
|
||||
Library : hb
|
||||
$SEEALSO$
|
||||
|
||||
$END$
|
||||
*/
|
||||
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* hbQTgen v1.0 - Harbour Callable Wrappers Generator for Qt v4.5.3+
|
||||
* Please do not modify this document as it is subject to change in future.
|
||||
* Pritpal Bedi <bedipritpal@hotmail.com>
|
||||
*/
|
||||
|
||||
/* $DOC$
|
||||
$TEMPLATE$
|
||||
Class
|
||||
$NAME$
|
||||
QsciLexerCPP()
|
||||
$CATEGORY$
|
||||
Harbour Bindings for Qt
|
||||
$SUBCATEGORY$
|
||||
GUI
|
||||
$EXTERNALLINK$
|
||||
http://doc.trolltech.com/4.5/qscilexercpp.html
|
||||
$ONELINER$
|
||||
Creates a new QsciLexerCPP object.
|
||||
$INHERITS$
|
||||
QsciLexer
|
||||
$SYNTAX$
|
||||
QsciLexerCPP():new( ... )
|
||||
QsciLexerCPP():from( pPtr_OR_oObj_of_type_QsciLexerCPP )
|
||||
QsciLexerCPP():configure( pPtr_OR_oObj_of_type_QsciLexerCPP )
|
||||
$ARGUMENTS$
|
||||
|
||||
$RETURNS$
|
||||
An instance of the object of type QsciLexerCPP
|
||||
$METHODS$
|
||||
:language() -> cChar
|
||||
:lexer() -> cChar
|
||||
:autoCompletionWordSeparators() -> pQStringList
|
||||
:blockEnd( @nStyle ) -> cChar
|
||||
:blockStart( @nStyle ) -> cChar
|
||||
:blockStartKeyword( @nStyle ) -> cChar
|
||||
:braceStyle() -> nInt
|
||||
:wordCharacters() -> cChar
|
||||
:defaultColor( nStyle ) -> pQColor
|
||||
:defaultEolFill( nStyle ) -> lBool
|
||||
:defaultFont( nStyle ) -> pQFont
|
||||
:defaultPaper( nStyle ) -> pQColor
|
||||
:keywords( nSet ) -> cChar
|
||||
:description( nStyle ) -> cQString
|
||||
:refreshProperties() -> NIL
|
||||
:foldAtElse() -> lBool
|
||||
:foldComments() -> lBool
|
||||
:foldCompact() -> lBool
|
||||
:foldPreprocessor() -> lBool
|
||||
:stylePreprocessor() -> lBool
|
||||
:setDollarsAllowed( lAllowed ) -> NIL
|
||||
:dollarsAllowed() -> lBool
|
||||
:setFoldAtElse( lFold ) -> NIL
|
||||
:setFoldComments( lFold ) -> NIL
|
||||
:setFoldCompact( lFold ) -> NIL
|
||||
:setFoldPreprocessor( lFold ) -> NIL
|
||||
:setStylePreprocessor( lStyle ) -> NIL
|
||||
|
||||
$DESCRIPTION$
|
||||
|
||||
$EXAMPLES$
|
||||
|
||||
$TESTS$
|
||||
|
||||
$STATUS$
|
||||
R
|
||||
$COMPLIANCE$
|
||||
Not Clipper Compatible
|
||||
$PLATFORMS$
|
||||
Windows, Linux, MacOS, OS2
|
||||
$VERSION$
|
||||
4.5.3
|
||||
$FILES$
|
||||
Prg Source : contrib/hbqt/TQsciLexerCPP.prg
|
||||
C++ Wrappers : contrib/hbqt/QsciLexerCPP.cpp
|
||||
Library : hb
|
||||
$SEEALSO$
|
||||
QsciLexer
|
||||
$END$
|
||||
*/
|
||||
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* hbQTgen v1.0 - Harbour Callable Wrappers Generator for Qt v4.5.3+
|
||||
* Please do not modify this document as it is subject to change in future.
|
||||
* Pritpal Bedi <bedipritpal@hotmail.com>
|
||||
*/
|
||||
|
||||
/* $DOC$
|
||||
$TEMPLATE$
|
||||
Class
|
||||
$NAME$
|
||||
QsciLexerFlagship()
|
||||
$CATEGORY$
|
||||
Harbour Bindings for Qt
|
||||
$SUBCATEGORY$
|
||||
GUI
|
||||
$EXTERNALLINK$
|
||||
http://doc.trolltech.com/4.5/qscilexerflagship.html
|
||||
$ONELINER$
|
||||
Creates a new QsciLexerFlagship object.
|
||||
$INHERITS$
|
||||
QsciLexer
|
||||
$SYNTAX$
|
||||
QsciLexerFlagship():new( ... )
|
||||
QsciLexerFlagship():from( pPtr_OR_oObj_of_type_QsciLexerFlagship )
|
||||
QsciLexerFlagship():configure( pPtr_OR_oObj_of_type_QsciLexerFlagship )
|
||||
$ARGUMENTS$
|
||||
|
||||
$RETURNS$
|
||||
An instance of the object of type QsciLexerFlagship
|
||||
$METHODS$
|
||||
:language() -> cChar
|
||||
:lexer() -> cChar
|
||||
:autoCompletionWordSeparators() -> pQStringList
|
||||
:blockEnd( @nStyle ) -> cChar
|
||||
:blockStart( @nStyle ) -> cChar
|
||||
:blockStartKeyword( @nStyle ) -> cChar
|
||||
:braceStyle() -> nInt
|
||||
:wordCharacters() -> cChar
|
||||
:defaultColor( nStyle ) -> pQColor
|
||||
:defaultEolFill( nStyle ) -> lBool
|
||||
:defaultFont( nStyle ) -> pQFont
|
||||
:defaultPaper( nStyle ) -> pQColor
|
||||
:keywords( nSet ) -> cChar
|
||||
:description( nStyle ) -> cQString
|
||||
:refreshProperties() -> NIL
|
||||
:foldAtElse() -> lBool
|
||||
:foldComments() -> lBool
|
||||
:foldCompact() -> lBool
|
||||
:foldPreprocessor() -> lBool
|
||||
:stylePreprocessor() -> lBool
|
||||
:setDollarsAllowed( lAllowed ) -> NIL
|
||||
:dollarsAllowed() -> lBool
|
||||
:setFoldAtElse( lFold ) -> NIL
|
||||
:setFoldComments( lFold ) -> NIL
|
||||
:setFoldCompact( lFold ) -> NIL
|
||||
:setFoldPreprocessor( lFold ) -> NIL
|
||||
:setStylePreprocessor( lStyle ) -> NIL
|
||||
|
||||
$DESCRIPTION$
|
||||
|
||||
$EXAMPLES$
|
||||
|
||||
$TESTS$
|
||||
|
||||
$STATUS$
|
||||
R
|
||||
$COMPLIANCE$
|
||||
Not Clipper Compatible
|
||||
$PLATFORMS$
|
||||
Windows, Linux, MacOS, OS2
|
||||
$VERSION$
|
||||
4.5.3
|
||||
$FILES$
|
||||
Prg Source : contrib/hbqt/TQsciLexerFlagship.prg
|
||||
C++ Wrappers : contrib/hbqt/QsciLexerFlagship.cpp
|
||||
Library : hb
|
||||
$SEEALSO$
|
||||
QsciLexer
|
||||
$END$
|
||||
*/
|
||||
248
harbour/contrib/hbqt/hbqscintilla/doc/en/class_qsciscintilla.txt
Normal file
248
harbour/contrib/hbqt/hbqscintilla/doc/en/class_qsciscintilla.txt
Normal file
@@ -0,0 +1,248 @@
|
||||
/*
|
||||
* hbQTgen v1.0 - Harbour Callable Wrappers Generator for Qt v4.5.3+
|
||||
* Please do not modify this document as it is subject to change in future.
|
||||
* Pritpal Bedi <bedipritpal@hotmail.com>
|
||||
*/
|
||||
|
||||
/* $DOC$
|
||||
$TEMPLATE$
|
||||
Class
|
||||
$NAME$
|
||||
QsciScintilla()
|
||||
$CATEGORY$
|
||||
Harbour Bindings for Qt
|
||||
$SUBCATEGORY$
|
||||
GUI
|
||||
$EXTERNALLINK$
|
||||
http://doc.trolltech.com/4.5/qsciscintilla.html
|
||||
$ONELINER$
|
||||
Creates a new QsciScintilla object.
|
||||
$INHERITS$
|
||||
|
||||
$SYNTAX$
|
||||
QsciScintilla():new( ... )
|
||||
QsciScintilla():from( pPtr_OR_oObj_of_type_QsciScintilla )
|
||||
QsciScintilla():configure( pPtr_OR_oObj_of_type_QsciScintilla )
|
||||
$ARGUMENTS$
|
||||
|
||||
$RETURNS$
|
||||
An instance of the object of type QsciScintilla
|
||||
$METHODS$
|
||||
:annotate( nLine, cText, nStyle ) -> NIL
|
||||
:annotate_1( nLine, cText, pStyle ) -> NIL
|
||||
:annotate_2( nLine, pText ) -> NIL
|
||||
:annotation( nLine ) -> cQString
|
||||
:annotationDisplay() -> nAnnotationDisplay
|
||||
:clearAnnotations( nLine ) -> NIL
|
||||
:autoCompletionCaseSensitivity() -> lBool
|
||||
:autoCompletionFillupsEnabled() -> lBool
|
||||
:autoCompletionReplaceWord() -> lBool
|
||||
:autoCompletionShowSingle() -> lBool
|
||||
:autoCompletionSource() -> nAutoCompletionSource
|
||||
:autoCompletionThreshold() -> nInt
|
||||
:autoIndent() -> lBool
|
||||
:backspaceUnindents() -> lBool
|
||||
:beginUndoAction() -> NIL
|
||||
:braceMatching() -> nBraceMatch
|
||||
:callTipsStyle() -> nCallTipsStyle
|
||||
:callTipsVisible() -> nInt
|
||||
:cancelList() -> NIL
|
||||
:caseSensitive() -> lBool
|
||||
:clearFolds() -> NIL
|
||||
:clearRegisteredImages() -> NIL
|
||||
:color() -> pQColor
|
||||
:convertEols( nMode ) -> NIL
|
||||
:document() -> pQsciDocument
|
||||
:endUndoAction() -> NIL
|
||||
:edgeColor() -> pQColor
|
||||
:edgeColumn() -> nInt
|
||||
:edgeMode() -> nEdgeMode
|
||||
:setFont( pF ) -> NIL
|
||||
:eolMode() -> nEolMode
|
||||
:eolVisibility() -> lBool
|
||||
:findFirst( cExpr, lRe, lCs, lWo, lWrap, lForward, nLine, nIndex, lShow ) -> lBool
|
||||
:findNext() -> lBool
|
||||
:firstVisibleLine() -> nInt
|
||||
:folding() -> nFoldStyle
|
||||
:getCursorPosition( @nLine, @nIndex ) -> NIL
|
||||
:getSelection( @nLineFrom, @nIndexFrom, @nLineTo, @nIndexTo ) -> NIL
|
||||
:hasSelectedText() -> lBool
|
||||
:indentation( nLine ) -> nInt
|
||||
:indentationGuides() -> lBool
|
||||
:indentationsUseTabs() -> lBool
|
||||
:indentationWidth() -> nInt
|
||||
:isCallTipActive() -> lBool
|
||||
:isListActive() -> lBool
|
||||
:isModified() -> lBool
|
||||
:isReadOnly() -> lBool
|
||||
:isRedoAvailable() -> lBool
|
||||
:isUndoAvailable() -> lBool
|
||||
:isUtf8() -> lBool
|
||||
:isWordCharacter( cCh ) -> lBool
|
||||
:lineAt( pPos ) -> nInt
|
||||
:lineIndexFromPosition( nPosition, @nLine, @nIndex ) -> NIL
|
||||
:lineLength( nLine ) -> nInt
|
||||
:lines() -> nInt
|
||||
:length() -> nInt
|
||||
:lexer() -> pQsciLexer
|
||||
:marginLineNumbers( nMargin ) -> lBool
|
||||
:marginMarkerMask( nMargin ) -> nInt
|
||||
:marginSensitivity( nMargin ) -> lBool
|
||||
:marginType( nMargin ) -> nMarginType
|
||||
:marginWidth( nMargin ) -> nInt
|
||||
:markerDefine( nSym, nMnr ) -> nInt
|
||||
:markerDefine_1( cCh, nMnr ) -> nInt
|
||||
:markerDefine_2( pPm, nMnr ) -> nInt
|
||||
:markerAdd( nLinenr, nMnr ) -> nInt
|
||||
:markersAtLine( nLinenr ) -> nUnsigned
|
||||
:markerDelete( nLinenr, nMnr ) -> NIL
|
||||
:markerDeleteAll( nMnr ) -> NIL
|
||||
:markerDeleteHandle( nMhandle ) -> NIL
|
||||
:markerLine( nMhandle ) -> nInt
|
||||
:markerFindNext( nLinenr, nMask ) -> nInt
|
||||
:markerFindPrevious( nLinenr, nMask ) -> nInt
|
||||
:paper() -> pQColor
|
||||
:positionFromLineIndex( nLine, nIndex ) -> nInt
|
||||
:read( pIo ) -> lBool
|
||||
:recolor( nStart, nEnd ) -> NIL
|
||||
:registerImage( nId, pPm ) -> NIL
|
||||
:replace( cReplaceStr ) -> NIL
|
||||
:resetFoldMarginColors() -> NIL
|
||||
:setFoldMarginColors( pFore, pBack ) -> NIL
|
||||
:setAnnotationDisplay( nDisplay ) -> NIL
|
||||
:setAutoCompletionFillupsEnabled( lEnabled ) -> NIL
|
||||
:setAutoCompletionFillups( pFillups ) -> NIL
|
||||
:setAutoCompletionWordSeparators( pSeparators ) -> NIL
|
||||
:setCallTipsBackgroundColor( pCol ) -> NIL
|
||||
:setCallTipsForegroundColor( pCol ) -> NIL
|
||||
:setCallTipsHighlightColor( pCol ) -> NIL
|
||||
:setCallTipsStyle( nStyle ) -> NIL
|
||||
:setCallTipsVisible( nNr ) -> NIL
|
||||
:setDocument( pDocument ) -> NIL
|
||||
:setEdgeColor( pCol ) -> NIL
|
||||
:setEdgeColumn( nColnr ) -> NIL
|
||||
:setEdgeMode( nMode ) -> NIL
|
||||
:setMarginText( nLine, cText, nStyle ) -> NIL
|
||||
:setMarginText_1( nLine, cText, pStyle ) -> NIL
|
||||
:setMarginText_2( nLine, pText ) -> NIL
|
||||
:setMarginType( nMargin, nType ) -> NIL
|
||||
:clearMarginText( nLine ) -> NIL
|
||||
:setMarkerBackgroundColor( pCol, nMnr ) -> NIL
|
||||
:setMarkerForegroundColor( pCol, nMnr ) -> NIL
|
||||
:setMatchedBraceBackgroundColor( pCol ) -> NIL
|
||||
:setMatchedBraceForegroundColor( pCol ) -> NIL
|
||||
:setUnmatchedBraceBackgroundColor( pCol ) -> NIL
|
||||
:setUnmatchedBraceForegroundColor( pCol ) -> NIL
|
||||
:setWrapVisualFlags( nEflag, nSflag, nSindent ) -> NIL
|
||||
:selectedText() -> cQString
|
||||
:selectionToEol() -> lBool
|
||||
:setSelectionToEol( lFilled ) -> NIL
|
||||
:showUserList( nId, pList ) -> NIL
|
||||
:standardCommands() -> pQsciCommandSet
|
||||
:tabIndents() -> lBool
|
||||
:tabWidth() -> nInt
|
||||
:text() -> cQString
|
||||
:text_1( nLine ) -> cQString
|
||||
:textHeight( nLinenr ) -> nInt
|
||||
:whitespaceVisibility() -> nWhitespaceVisibility
|
||||
:wordAtPoint( pPoint ) -> cQString
|
||||
:wordCharacters() -> cChar
|
||||
:wrapMode() -> nWrapMode
|
||||
:write( pIo ) -> lBool
|
||||
:append( cText ) -> NIL
|
||||
:autoCompleteFromAll() -> NIL
|
||||
:autoCompleteFromAPIs() -> NIL
|
||||
:autoCompleteFromDocument() -> NIL
|
||||
:callTip() -> NIL
|
||||
:clear() -> NIL
|
||||
:copy() -> NIL
|
||||
:cut() -> NIL
|
||||
:ensureCursorVisible() -> NIL
|
||||
:ensureLineVisible( nLine ) -> NIL
|
||||
:foldAll( lChildren ) -> NIL
|
||||
:foldLine( nLine ) -> NIL
|
||||
:indent( nLine ) -> NIL
|
||||
:insert( cText ) -> NIL
|
||||
:insertAt( cText, nLine, nIndex ) -> NIL
|
||||
:moveToMatchingBrace() -> NIL
|
||||
:paste() -> NIL
|
||||
:redo() -> NIL
|
||||
:removeSelectedText() -> NIL
|
||||
:resetSelectionBackgroundColor() -> NIL
|
||||
:resetSelectionForegroundColor() -> NIL
|
||||
:selectAll( lSelect ) -> NIL
|
||||
:selectToMatchingBrace() -> NIL
|
||||
:setAutoCompletionCaseSensitivity( lCs ) -> NIL
|
||||
:setAutoCompletionReplaceWord( lReplace ) -> NIL
|
||||
:setAutoCompletionShowSingle( lSingle ) -> NIL
|
||||
:setAutoCompletionSource( nSource ) -> NIL
|
||||
:setAutoCompletionThreshold( nThresh ) -> NIL
|
||||
:setAutoIndent( lAutoindent ) -> NIL
|
||||
:setBraceMatching( nBm ) -> NIL
|
||||
:setBackspaceUnindents( lUnindent ) -> NIL
|
||||
:setCaretForegroundColor( pCol ) -> NIL
|
||||
:setCaretLineBackgroundColor( pCol ) -> NIL
|
||||
:setCaretLineVisible( lEnable ) -> NIL
|
||||
:setCaretWidth( nWidth ) -> NIL
|
||||
:setColor( pC ) -> NIL
|
||||
:setCursorPosition( nLine, nIndex ) -> NIL
|
||||
:setEolMode( nMode ) -> NIL
|
||||
:setEolVisibility( lVisible ) -> NIL
|
||||
:setFolding( nFold, nMargin ) -> NIL
|
||||
:setIndentation( nLine, nIndentation ) -> NIL
|
||||
:setIndentationGuides( lEnable ) -> NIL
|
||||
:setIndentationGuidesBackgroundColor( pCol ) -> NIL
|
||||
:setIndentationGuidesForegroundColor( pCol ) -> NIL
|
||||
:setIndentationsUseTabs( lTabs ) -> NIL
|
||||
:setIndentationWidth( nWidth ) -> NIL
|
||||
:setLexer( pLexer ) -> NIL
|
||||
:setMarginsBackgroundColor( pCol ) -> NIL
|
||||
:setMarginsFont( pF ) -> NIL
|
||||
:setMarginsForegroundColor( pCol ) -> NIL
|
||||
:setMarginLineNumbers( nMargin, lLnrs ) -> NIL
|
||||
:setMarginMarkerMask( nMargin, nMask ) -> NIL
|
||||
:setMarginSensitivity( nMargin, lSens ) -> NIL
|
||||
:setMarginWidth( nMargin, nWidth ) -> NIL
|
||||
:setMarginWidth_1( nMargin, cS ) -> NIL
|
||||
:setModified( lM ) -> NIL
|
||||
:setPaper( pC ) -> NIL
|
||||
:setReadOnly( lRo ) -> NIL
|
||||
:setSelection( nLineFrom, nIndexFrom, nLineTo, nIndexTo ) -> NIL
|
||||
:setSelectionBackgroundColor( pCol ) -> NIL
|
||||
:setSelectionForegroundColor( pCol ) -> NIL
|
||||
:setTabIndents( lIndent ) -> NIL
|
||||
:setTabWidth( nWidth ) -> NIL
|
||||
:setText( cText ) -> NIL
|
||||
:setUtf8( lCp ) -> NIL
|
||||
:setWhitespaceVisibility( nMode ) -> NIL
|
||||
:setWrapMode( nMode ) -> NIL
|
||||
:undo() -> NIL
|
||||
:unindent( nLine ) -> NIL
|
||||
:zoomIn( nRange ) -> NIL
|
||||
:zoomIn_1() -> NIL
|
||||
:zoomOut( nRange ) -> NIL
|
||||
:zoomOut_1() -> NIL
|
||||
:zoomTo( nSize ) -> NIL
|
||||
|
||||
$DESCRIPTION$
|
||||
|
||||
$EXAMPLES$
|
||||
|
||||
$TESTS$
|
||||
|
||||
$STATUS$
|
||||
R
|
||||
$COMPLIANCE$
|
||||
Not Clipper Compatible
|
||||
$PLATFORMS$
|
||||
Windows, Linux, MacOS, OS2
|
||||
$VERSION$
|
||||
4.5.3
|
||||
$FILES$
|
||||
Prg Source : contrib/hbqt/TQsciScintilla.prg
|
||||
C++ Wrappers : contrib/hbqt/QsciScintilla.cpp
|
||||
Library : hb
|
||||
$SEEALSO$
|
||||
|
||||
$END$
|
||||
*/
|
||||
73
harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscistyle.txt
Normal file
73
harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscistyle.txt
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* hbQTgen v1.0 - Harbour Callable Wrappers Generator for Qt v4.5.3+
|
||||
* Please do not modify this document as it is subject to change in future.
|
||||
* Pritpal Bedi <bedipritpal@hotmail.com>
|
||||
*/
|
||||
|
||||
/* $DOC$
|
||||
$TEMPLATE$
|
||||
Class
|
||||
$NAME$
|
||||
QsciStyle()
|
||||
$CATEGORY$
|
||||
Harbour Bindings for Qt
|
||||
$SUBCATEGORY$
|
||||
GUI
|
||||
$EXTERNALLINK$
|
||||
http://doc.trolltech.com/4.5/qscistyle.html
|
||||
$ONELINER$
|
||||
Creates a new QsciStyle object.
|
||||
$INHERITS$
|
||||
|
||||
$SYNTAX$
|
||||
QsciStyle():new( ... )
|
||||
QsciStyle():from( pPtr_OR_oObj_of_type_QsciStyle )
|
||||
QsciStyle():configure( pPtr_OR_oObj_of_type_QsciStyle )
|
||||
$ARGUMENTS$
|
||||
|
||||
$RETURNS$
|
||||
An instance of the object of type QsciStyle
|
||||
$METHODS$
|
||||
:style() -> nInt
|
||||
:setDescription( cDescription ) -> NIL
|
||||
:description() -> cQString
|
||||
:setColor( pColor ) -> NIL
|
||||
:color() -> pQColor
|
||||
:setPaper( pPaper ) -> NIL
|
||||
:paper() -> pQColor
|
||||
:setFont( pFont ) -> NIL
|
||||
:font() -> pQFont
|
||||
:setEolFill( lFill ) -> NIL
|
||||
:eolFill() -> lBool
|
||||
:setTextCase( nText_case ) -> NIL
|
||||
:textCase() -> nTextCase
|
||||
:setVisible( lVisible ) -> NIL
|
||||
:visible() -> lBool
|
||||
:setChangeable( lChangeable ) -> NIL
|
||||
:changeable() -> lBool
|
||||
:setHotspot( lHotspot ) -> NIL
|
||||
:hotspot() -> lBool
|
||||
:refresh() -> NIL
|
||||
|
||||
$DESCRIPTION$
|
||||
|
||||
$EXAMPLES$
|
||||
|
||||
$TESTS$
|
||||
|
||||
$STATUS$
|
||||
R
|
||||
$COMPLIANCE$
|
||||
Not Clipper Compatible
|
||||
$PLATFORMS$
|
||||
Windows, Linux, MacOS, OS2
|
||||
$VERSION$
|
||||
4.5.3
|
||||
$FILES$
|
||||
Prg Source : contrib/hbqt/TQsciStyle.prg
|
||||
C++ Wrappers : contrib/hbqt/QsciStyle.cpp
|
||||
Library : hb
|
||||
$SEEALSO$
|
||||
|
||||
$END$
|
||||
*/
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* hbQTgen v1.0 - Harbour Callable Wrappers Generator for Qt v4.5.3+
|
||||
* Please do not modify this document as it is subject to change in future.
|
||||
* Pritpal Bedi <bedipritpal@hotmail.com>
|
||||
*/
|
||||
|
||||
/* $DOC$
|
||||
$TEMPLATE$
|
||||
Class
|
||||
$NAME$
|
||||
QsciStyledText()
|
||||
$CATEGORY$
|
||||
Harbour Bindings for Qt
|
||||
$SUBCATEGORY$
|
||||
GUI
|
||||
$EXTERNALLINK$
|
||||
http://doc.trolltech.com/4.5/qscistyledtext.html
|
||||
$ONELINER$
|
||||
Creates a new QsciStyledText object.
|
||||
$INHERITS$
|
||||
|
||||
$SYNTAX$
|
||||
QsciStyledText():new( ... )
|
||||
QsciStyledText():from( pPtr_OR_oObj_of_type_QsciStyledText )
|
||||
QsciStyledText():configure( pPtr_OR_oObj_of_type_QsciStyledText )
|
||||
$ARGUMENTS$
|
||||
|
||||
$RETURNS$
|
||||
An instance of the object of type QsciStyledText
|
||||
$METHODS$
|
||||
:text() -> cQString
|
||||
:style() -> nInt
|
||||
|
||||
$DESCRIPTION$
|
||||
|
||||
$EXAMPLES$
|
||||
|
||||
$TESTS$
|
||||
|
||||
$STATUS$
|
||||
R
|
||||
$COMPLIANCE$
|
||||
Not Clipper Compatible
|
||||
$PLATFORMS$
|
||||
Windows, Linux, MacOS, OS2
|
||||
$VERSION$
|
||||
4.5.3
|
||||
$FILES$
|
||||
Prg Source : contrib/hbqt/TQsciStyledText.prg
|
||||
C++ Wrappers : contrib/hbqt/QsciStyledText.cpp
|
||||
Library : hb
|
||||
$SEEALSO$
|
||||
|
||||
$END$
|
||||
*/
|
||||
953
harbour/contrib/hbqt/hbqscintilla/hbqscintilla.ch
Normal file
953
harbour/contrib/hbqt/hbqscintilla/hbqscintilla.ch
Normal file
@@ -0,0 +1,953 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
/*
|
||||
* EkOnkar
|
||||
* ( The LORD is ONE )
|
||||
*
|
||||
* QScintilla Headers
|
||||
*
|
||||
* Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* 22May2010
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifndef _QSCINTILLA_CH
|
||||
|
||||
#define INVALID_POSITION -1
|
||||
#define SCI_START 2000
|
||||
#define SCI_OPTIONAL_START 3000
|
||||
#define SCI_LEXER_START 4000
|
||||
#define SCI_ADDTEXT 2001
|
||||
#define SCI_ADDSTYLEDTEXT 2002
|
||||
#define SCI_INSERTTEXT 2003
|
||||
#define SCI_CLEARALL 2004
|
||||
#define SCI_CLEARDOCUMENTSTYLE 2005
|
||||
#define SCI_GETLENGTH 2006
|
||||
#define SCI_GETCHARAT 2007
|
||||
#define SCI_GETCURRENTPOS 2008
|
||||
#define SCI_GETANCHOR 2009
|
||||
#define SCI_GETSTYLEAT 2010
|
||||
#define SCI_REDO 2011
|
||||
#define SCI_SETUNDOCOLLECTION 2012
|
||||
#define SCI_SELECTALL 2013
|
||||
#define SCI_SETSAVEPOINT 2014
|
||||
#define SCI_GETSTYLEDTEXT 2015
|
||||
#define SCI_CANREDO 2016
|
||||
#define SCI_MARKERLINEFROMHANDLE 2017
|
||||
#define SCI_MARKERDELETEHANDLE 2018
|
||||
#define SCI_GETUNDOCOLLECTION 2019
|
||||
#define SCWS_INVISIBLE 0
|
||||
#define SCWS_VISIBLEALWAYS 1
|
||||
#define SCWS_VISIBLEAFTERINDENT 2
|
||||
#define SCI_GETVIEWWS 2020
|
||||
#define SCI_SETVIEWWS 2021
|
||||
#define SCI_POSITIONFROMPOINT 2022
|
||||
#define SCI_POSITIONFROMPOINTCLOSE 2023
|
||||
#define SCI_GOTOLINE 2024
|
||||
#define SCI_GOTOPOS 2025
|
||||
#define SCI_SETANCHOR 2026
|
||||
#define SCI_GETCURLINE 2027
|
||||
#define SCI_GETENDSTYLED 2028
|
||||
#define SC_EOL_CRLF 0
|
||||
#define SC_EOL_CR 1
|
||||
#define SC_EOL_LF 2
|
||||
#define SCI_CONVERTEOLS 2029
|
||||
#define SCI_GETEOLMODE 2030
|
||||
#define SCI_SETEOLMODE 2031
|
||||
#define SCI_STARTSTYLING 2032
|
||||
#define SCI_SETSTYLING 2033
|
||||
#define SCI_GETBUFFEREDDRAW 2034
|
||||
#define SCI_SETBUFFEREDDRAW 2035
|
||||
#define SCI_SETTABWIDTH 2036
|
||||
#define SCI_GETTABWIDTH 2121
|
||||
#define SC_CP_UTF8 65001
|
||||
#define SC_CP_DBCS 1
|
||||
#define SCI_SETCODEPAGE 2037
|
||||
#define SCI_SETUSEPALETTE 2039
|
||||
#define MARKER_MAX 31
|
||||
#define SC_MARK_CIRCLE 0
|
||||
#define SC_MARK_ROUNDRECT 1
|
||||
#define SC_MARK_ARROW 2
|
||||
#define SC_MARK_SMALLRECT 3
|
||||
#define SC_MARK_SHORTARROW 4
|
||||
#define SC_MARK_EMPTY 5
|
||||
#define SC_MARK_ARROWDOWN 6
|
||||
#define SC_MARK_MINUS 7
|
||||
#define SC_MARK_PLUS 8
|
||||
#define SC_MARK_VLINE 9
|
||||
#define SC_MARK_LCORNER 10
|
||||
#define SC_MARK_TCORNER 11
|
||||
#define SC_MARK_BOXPLUS 12
|
||||
#define SC_MARK_BOXPLUSCONNECTED 13
|
||||
#define SC_MARK_BOXMINUS 14
|
||||
#define SC_MARK_BOXMINUSCONNECTED 15
|
||||
#define SC_MARK_LCORNERCURVE 16
|
||||
#define SC_MARK_TCORNERCURVE 17
|
||||
#define SC_MARK_CIRCLEPLUS 18
|
||||
#define SC_MARK_CIRCLEPLUSCONNECTED 19
|
||||
#define SC_MARK_CIRCLEMINUS 20
|
||||
#define SC_MARK_CIRCLEMINUSCONNECTED 21
|
||||
#define SC_MARK_BACKGROUND 22
|
||||
#define SC_MARK_DOTDOTDOT 23
|
||||
#define SC_MARK_ARROWS 24
|
||||
#define SC_MARK_PIXMAP 25
|
||||
#define SC_MARK_FULLRECT 26
|
||||
#define SC_MARK_LEFTRECT 27
|
||||
#define SC_MARK_AVAILABLE 28
|
||||
#define SC_MARK_CHARACTER 10000
|
||||
#define SC_MARKNUM_FOLDEREND 25
|
||||
#define SC_MARKNUM_FOLDEROPENMID 26
|
||||
#define SC_MARKNUM_FOLDERMIDTAIL 27
|
||||
#define SC_MARKNUM_FOLDERTAIL 28
|
||||
#define SC_MARKNUM_FOLDERSUB 29
|
||||
#define SC_MARKNUM_FOLDER 30
|
||||
#define SC_MARKNUM_FOLDEROPEN 31
|
||||
#define SC_MASK_FOLDERS 0xFE000000
|
||||
#define SCI_MARKERDEFINE 2040
|
||||
#define SCI_MARKERSETFORE 2041
|
||||
#define SCI_MARKERSETBACK 2042
|
||||
#define SCI_MARKERADD 2043
|
||||
#define SCI_MARKERDELETE 2044
|
||||
#define SCI_MARKERDELETEALL 2045
|
||||
#define SCI_MARKERGET 2046
|
||||
#define SCI_MARKERNEXT 2047
|
||||
#define SCI_MARKERPREVIOUS 2048
|
||||
#define SCI_MARKERDEFINEPIXMAP 2049
|
||||
#define SCI_MARKERADDSET 2466
|
||||
#define SCI_MARKERSETALPHA 2476
|
||||
#define SC_MARGIN_SYMBOL 0
|
||||
#define SC_MARGIN_NUMBER 1
|
||||
#define SC_MARGIN_BACK 2
|
||||
#define SC_MARGIN_FORE 3
|
||||
#define SC_MARGIN_TEXT 4
|
||||
#define SC_MARGIN_RTEXT 5
|
||||
#define SCI_SETMARGINTYPEN 2240
|
||||
#define SCI_GETMARGINTYPEN 2241
|
||||
#define SCI_SETMARGINWIDTHN 2242
|
||||
#define SCI_GETMARGINWIDTHN 2243
|
||||
#define SCI_SETMARGINMASKN 2244
|
||||
#define SCI_GETMARGINMASKN 2245
|
||||
#define SCI_SETMARGINSENSITIVEN 2246
|
||||
#define SCI_GETMARGINSENSITIVEN 2247
|
||||
#define STYLE_DEFAULT 32
|
||||
#define STYLE_LINENUMBER 33
|
||||
#define STYLE_BRACELIGHT 34
|
||||
#define STYLE_BRACEBAD 35
|
||||
#define STYLE_CONTROLCHAR 36
|
||||
#define STYLE_INDENTGUIDE 37
|
||||
#define STYLE_CALLTIP 38
|
||||
#define STYLE_LASTPREDEFINED 39
|
||||
#define STYLE_MAX 255
|
||||
#define SC_CHARSET_ANSI 0
|
||||
#define SC_CHARSET_DEFAULT 1
|
||||
#define SC_CHARSET_BALTIC 186
|
||||
#define SC_CHARSET_CHINESEBIG5 136
|
||||
#define SC_CHARSET_EASTEUROPE 238
|
||||
#define SC_CHARSET_GB2312 134
|
||||
#define SC_CHARSET_GREEK 161
|
||||
#define SC_CHARSET_HANGUL 129
|
||||
#define SC_CHARSET_MAC 77
|
||||
#define SC_CHARSET_OEM 255
|
||||
#define SC_CHARSET_RUSSIAN 204
|
||||
#define SC_CHARSET_CYRILLIC 1251
|
||||
#define SC_CHARSET_SHIFTJIS 128
|
||||
#define SC_CHARSET_SYMBOL 2
|
||||
#define SC_CHARSET_TURKISH 162
|
||||
#define SC_CHARSET_JOHAB 130
|
||||
#define SC_CHARSET_HEBREW 177
|
||||
#define SC_CHARSET_ARABIC 178
|
||||
#define SC_CHARSET_VIETNAMESE 163
|
||||
#define SC_CHARSET_THAI 222
|
||||
#define SC_CHARSET_8859_15 1000
|
||||
#define SCI_STYLECLEARALL 2050
|
||||
#define SCI_STYLESETFORE 2051
|
||||
#define SCI_STYLESETBACK 2052
|
||||
#define SCI_STYLESETBOLD 2053
|
||||
#define SCI_STYLESETITALIC 2054
|
||||
#define SCI_STYLESETSIZE 2055
|
||||
#define SCI_STYLESETFONT 2056
|
||||
#define SCI_STYLESETEOLFILLED 2057
|
||||
#define SCI_STYLERESETDEFAULT 2058
|
||||
#define SCI_STYLESETUNDERLINE 2059
|
||||
#define SC_CASE_MIXED 0
|
||||
#define SC_CASE_UPPER 1
|
||||
#define SC_CASE_LOWER 2
|
||||
#define SCI_STYLEGETFORE 2481
|
||||
#define SCI_STYLEGETBACK 2482
|
||||
#define SCI_STYLEGETBOLD 2483
|
||||
#define SCI_STYLEGETITALIC 2484
|
||||
#define SCI_STYLEGETSIZE 2485
|
||||
#define SCI_STYLEGETFONT 2486
|
||||
#define SCI_STYLEGETEOLFILLED 2487
|
||||
#define SCI_STYLEGETUNDERLINE 2488
|
||||
#define SCI_STYLEGETCASE 2489
|
||||
#define SCI_STYLEGETCHARACTERSET 2490
|
||||
#define SCI_STYLEGETVISIBLE 2491
|
||||
#define SCI_STYLEGETCHANGEABLE 2492
|
||||
#define SCI_STYLEGETHOTSPOT 2493
|
||||
#define SCI_STYLESETCASE 2060
|
||||
#define SCI_STYLESETCHARACTERSET 2066
|
||||
#define SCI_STYLESETHOTSPOT 2409
|
||||
#define SCI_SETSELFORE 2067
|
||||
#define SCI_SETSELBACK 2068
|
||||
#define SCI_GETSELALPHA 2477
|
||||
#define SCI_SETSELALPHA 2478
|
||||
#define SCI_GETSELEOLFILLED 2479
|
||||
#define SCI_SETSELEOLFILLED 2480
|
||||
#define SCI_SETCARETFORE 2069
|
||||
#define SCI_ASSIGNCMDKEY 2070
|
||||
#define SCI_CLEARCMDKEY 2071
|
||||
#define SCI_CLEARALLCMDKEYS 2072
|
||||
#define SCI_SETSTYLINGEX 2073
|
||||
#define SCI_STYLESETVISIBLE 2074
|
||||
#define SCI_GETCARETPERIOD 2075
|
||||
#define SCI_SETCARETPERIOD 2076
|
||||
#define SCI_SETWORDCHARS 2077
|
||||
#define SCI_BEGINUNDOACTION 2078
|
||||
#define SCI_ENDUNDOACTION 2079
|
||||
#define INDIC_PLAIN 0
|
||||
#define INDIC_SQUIGGLE 1
|
||||
#define INDIC_TT 2
|
||||
#define INDIC_DIAGONAL 3
|
||||
#define INDIC_STRIKE 4
|
||||
#define INDIC_HIDDEN 5
|
||||
#define INDIC_BOX 6
|
||||
#define INDIC_ROUNDBOX 7
|
||||
#define INDIC_MAX 31
|
||||
#define INDIC_CONTAINER 8
|
||||
#define INDIC0_MASK 0x20
|
||||
#define INDIC1_MASK 0x40
|
||||
#define INDIC2_MASK 0x80
|
||||
#define INDICS_MASK 0xE0
|
||||
#define SCI_INDICSETSTYLE 2080
|
||||
#define SCI_INDICGETSTYLE 2081
|
||||
#define SCI_INDICSETFORE 2082
|
||||
#define SCI_INDICGETFORE 2083
|
||||
#define SCI_INDICSETUNDER 2510
|
||||
#define SCI_INDICGETUNDER 2511
|
||||
#define SCI_SETWHITESPACEFORE 2084
|
||||
#define SCI_SETWHITESPACEBACK 2085
|
||||
#define SCI_SETSTYLEBITS 2090
|
||||
#define SCI_GETSTYLEBITS 2091
|
||||
#define SCI_SETLINESTATE 2092
|
||||
#define SCI_GETLINESTATE 2093
|
||||
#define SCI_GETMAXLINESTATE 2094
|
||||
#define SCI_GETCARETLINEVISIBLE 2095
|
||||
#define SCI_SETCARETLINEVISIBLE 2096
|
||||
#define SCI_GETCARETLINEBACK 2097
|
||||
#define SCI_SETCARETLINEBACK 2098
|
||||
#define SCI_STYLESETCHANGEABLE 2099
|
||||
#define SCI_AUTOCSHOW 2100
|
||||
#define SCI_AUTOCCANCEL 2101
|
||||
#define SCI_AUTOCACTIVE 2102
|
||||
#define SCI_AUTOCPOSSTART 2103
|
||||
#define SCI_AUTOCCOMPLETE 2104
|
||||
#define SCI_AUTOCSTOPS 2105
|
||||
#define SCI_AUTOCSETSEPARATOR 2106
|
||||
#define SCI_AUTOCGETSEPARATOR 2107
|
||||
#define SCI_AUTOCSELECT 2108
|
||||
#define SCI_AUTOCSETCANCELATSTART 2110
|
||||
#define SCI_AUTOCGETCANCELATSTART 2111
|
||||
#define SCI_AUTOCSETFILLUPS 2112
|
||||
#define SCI_AUTOCSETCHOOSESINGLE 2113
|
||||
#define SCI_AUTOCGETCHOOSESINGLE 2114
|
||||
#define SCI_AUTOCSETIGNORECASE 2115
|
||||
#define SCI_AUTOCGETIGNORECASE 2116
|
||||
#define SCI_USERLISTSHOW 2117
|
||||
#define SCI_AUTOCSETAUTOHIDE 2118
|
||||
#define SCI_AUTOCGETAUTOHIDE 2119
|
||||
#define SCI_AUTOCSETDROPRESTOFWORD 2270
|
||||
#define SCI_AUTOCGETDROPRESTOFWORD 2271
|
||||
#define SCI_REGISTERIMAGE 2405
|
||||
#define SCI_CLEARREGISTEREDIMAGES 2408
|
||||
#define SCI_AUTOCGETTYPESEPARATOR 2285
|
||||
#define SCI_AUTOCSETTYPESEPARATOR 2286
|
||||
#define SCI_AUTOCSETMAXWIDTH 2208
|
||||
#define SCI_AUTOCGETMAXWIDTH 2209
|
||||
#define SCI_AUTOCSETMAXHEIGHT 2210
|
||||
#define SCI_AUTOCGETMAXHEIGHT 2211
|
||||
#define SCI_SETINDENT 2122
|
||||
#define SCI_GETINDENT 2123
|
||||
#define SCI_SETUSETABS 2124
|
||||
#define SCI_GETUSETABS 2125
|
||||
#define SCI_SETLINEINDENTATION 2126
|
||||
#define SCI_GETLINEINDENTATION 2127
|
||||
#define SCI_GETLINEINDENTPOSITION 2128
|
||||
#define SCI_GETCOLUMN 2129
|
||||
#define SCI_SETHSCROLLBAR 2130
|
||||
#define SCI_GETHSCROLLBAR 2131
|
||||
#define SC_IV_NONE 0
|
||||
#define SC_IV_REAL 1
|
||||
#define SC_IV_LOOKFORWARD 2
|
||||
#define SC_IV_LOOKBOTH 3
|
||||
#define SCI_SETINDENTATIONGUIDES 2132
|
||||
#define SCI_GETINDENTATIONGUIDES 2133
|
||||
#define SCI_SETHIGHLIGHTGUIDE 2134
|
||||
#define SCI_GETHIGHLIGHTGUIDE 2135
|
||||
#define SCI_GETLINEENDPOSITION 2136
|
||||
#define SCI_GETCODEPAGE 2137
|
||||
#define SCI_GETCARETFORE 2138
|
||||
#define SCI_GETUSEPALETTE 2139
|
||||
#define SCI_GETREADONLY 2140
|
||||
#define SCI_SETCURRENTPOS 2141
|
||||
#define SCI_SETSELECTIONSTART 2142
|
||||
#define SCI_GETSELECTIONSTART 2143
|
||||
#define SCI_SETSELECTIONEND 2144
|
||||
#define SCI_GETSELECTIONEND 2145
|
||||
#define SCI_SETPRINTMAGNIFICATION 2146
|
||||
#define SCI_GETPRINTMAGNIFICATION 2147
|
||||
#define SC_PRINT_NORMAL 0
|
||||
#define SC_PRINT_INVERTLIGHT 1
|
||||
#define SC_PRINT_BLACKONWHITE 2
|
||||
#define SC_PRINT_COLOURONWHITE 3
|
||||
#define SC_PRINT_COLOURONWHITEDEFAULTBG 4
|
||||
#define SCI_SETPRINTCOLOURMODE 2148
|
||||
#define SCI_GETPRINTCOLOURMODE 2149
|
||||
#define SCFIND_WHOLEWORD 2
|
||||
#define SCFIND_MATCHCASE 4
|
||||
#define SCFIND_WORDSTART 0x00100000
|
||||
#define SCFIND_REGEXP 0x00200000
|
||||
#define SCFIND_POSIX 0x00400000
|
||||
#define SCI_FINDTEXT 2150
|
||||
#define SCI_FORMATRANGE 2151
|
||||
#define SCI_GETFIRSTVISIBLELINE 2152
|
||||
#define SCI_GETLINE 2153
|
||||
#define SCI_GETLINECOUNT 2154
|
||||
#define SCI_SETMARGINLEFT 2155
|
||||
#define SCI_GETMARGINLEFT 2156
|
||||
#define SCI_SETMARGINRIGHT 2157
|
||||
#define SCI_GETMARGINRIGHT 2158
|
||||
#define SCI_GETMODIFY 2159
|
||||
#define SCI_SETSEL 2160
|
||||
#define SCI_GETSELTEXT 2161
|
||||
#define SCI_GETTEXTRANGE 2162
|
||||
#define SCI_HIDESELECTION 2163
|
||||
#define SCI_POINTXFROMPOSITION 2164
|
||||
#define SCI_POINTYFROMPOSITION 2165
|
||||
#define SCI_LINEFROMPOSITION 2166
|
||||
#define SCI_POSITIONFROMLINE 2167
|
||||
#define SCI_LINESCROLL 2168
|
||||
#define SCI_SCROLLCARET 2169
|
||||
#define SCI_REPLACESEL 2170
|
||||
#define SCI_SETREADONLY 2171
|
||||
#define SCI_NULL 2172
|
||||
#define SCI_CANPASTE 2173
|
||||
#define SCI_CANUNDO 2174
|
||||
#define SCI_EMPTYUNDOBUFFER 2175
|
||||
#define SCI_UNDO 2176
|
||||
#define SCI_CUT 2177
|
||||
#define SCI_COPY 2178
|
||||
#define SCI_PASTE 2179
|
||||
#define SCI_CLEAR 2180
|
||||
#define SCI_SETTEXT 2181
|
||||
#define SCI_GETTEXT 2182
|
||||
#define SCI_GETTEXTLENGTH 2183
|
||||
#define SCI_GETDIRECTFUNCTION 2184
|
||||
#define SCI_GETDIRECTPOINTER 2185
|
||||
#define SCI_SETOVERTYPE 2186
|
||||
#define SCI_GETOVERTYPE 2187
|
||||
#define SCI_SETCARETWIDTH 2188
|
||||
#define SCI_GETCARETWIDTH 2189
|
||||
#define SCI_SETTARGETSTART 2190
|
||||
#define SCI_GETTARGETSTART 2191
|
||||
#define SCI_SETTARGETEND 2192
|
||||
#define SCI_GETTARGETEND 2193
|
||||
#define SCI_REPLACETARGET 2194
|
||||
#define SCI_REPLACETARGETRE 2195
|
||||
#define SCI_SEARCHINTARGET 2197
|
||||
#define SCI_SETSEARCHFLAGS 2198
|
||||
#define SCI_GETSEARCHFLAGS 2199
|
||||
#define SCI_CALLTIPSHOW 2200
|
||||
#define SCI_CALLTIPCANCEL 2201
|
||||
#define SCI_CALLTIPACTIVE 2202
|
||||
#define SCI_CALLTIPPOSSTART 2203
|
||||
#define SCI_CALLTIPSETHLT 2204
|
||||
#define SCI_CALLTIPSETBACK 2205
|
||||
#define SCI_CALLTIPSETFORE 2206
|
||||
#define SCI_CALLTIPSETFOREHLT 2207
|
||||
#define SCI_CALLTIPUSESTYLE 2212
|
||||
#define SCI_VISIBLEFROMDOCLINE 2220
|
||||
#define SCI_DOCLINEFROMVISIBLE 2221
|
||||
#define SCI_WRAPCOUNT 2235
|
||||
#define SC_FOLDLEVELBASE 0x400
|
||||
#define SC_FOLDLEVELWHITEFLAG 0x1000
|
||||
#define SC_FOLDLEVELHEADERFLAG 0x2000
|
||||
#define SC_FOLDLEVELNUMBERMASK 0x0FFF
|
||||
#define SCI_SETFOLDLEVEL 2222
|
||||
#define SCI_GETFOLDLEVEL 2223
|
||||
#define SCI_GETLASTCHILD 2224
|
||||
#define SCI_GETFOLDPARENT 2225
|
||||
#define SCI_SHOWLINES 2226
|
||||
#define SCI_HIDELINES 2227
|
||||
#define SCI_GETLINEVISIBLE 2228
|
||||
#define SCI_SETFOLDEXPANDED 2229
|
||||
#define SCI_GETFOLDEXPANDED 2230
|
||||
#define SCI_TOGGLEFOLD 2231
|
||||
#define SCI_ENSUREVISIBLE 2232
|
||||
#define SC_FOLDFLAG_LINEBEFORE_EXPANDED 0x0002
|
||||
#define SC_FOLDFLAG_LINEBEFORE_CONTRACTED 0x0004
|
||||
#define SC_FOLDFLAG_LINEAFTER_EXPANDED 0x0008
|
||||
#define SC_FOLDFLAG_LINEAFTER_CONTRACTED 0x0010
|
||||
#define SC_FOLDFLAG_LEVELNUMBERS 0x0040
|
||||
#define SCI_SETFOLDFLAGS 2233
|
||||
#define SCI_ENSUREVISIBLEENFORCEPOLICY 2234
|
||||
#define SCI_SETTABINDENTS 2260
|
||||
#define SCI_GETTABINDENTS 2261
|
||||
#define SCI_SETBACKSPACEUNINDENTS 2262
|
||||
#define SCI_GETBACKSPACEUNINDENTS 2263
|
||||
#define SC_TIME_FOREVER 10000000
|
||||
#define SCI_SETMOUSEDWELLTIME 2264
|
||||
#define SCI_GETMOUSEDWELLTIME 2265
|
||||
#define SCI_WORDSTARTPOSITION 2266
|
||||
#define SCI_WORDENDPOSITION 2267
|
||||
#define SC_WRAP_NONE 0
|
||||
#define SC_WRAP_WORD 1
|
||||
#define SC_WRAP_CHAR 2
|
||||
#define SCI_SETWRAPMODE 2268
|
||||
#define SCI_GETWRAPMODE 2269
|
||||
#define SC_WRAPVISUALFLAG_NONE 0x0000
|
||||
#define SC_WRAPVISUALFLAG_END 0x0001
|
||||
#define SC_WRAPVISUALFLAG_START 0x0002
|
||||
#define SCI_SETWRAPVISUALFLAGS 2460
|
||||
#define SCI_GETWRAPVISUALFLAGS 2461
|
||||
#define SC_WRAPVISUALFLAGLOC_DEFAULT 0x0000
|
||||
#define SC_WRAPVISUALFLAGLOC_END_BY_TEXT 0x0001
|
||||
#define SC_WRAPVISUALFLAGLOC_START_BY_TEXT 0x0002
|
||||
#define SCI_SETWRAPVISUALFLAGSLOCATION 2462
|
||||
#define SCI_GETWRAPVISUALFLAGSLOCATION 2463
|
||||
#define SCI_SETWRAPSTARTINDENT 2464
|
||||
#define SCI_GETWRAPSTARTINDENT 2465
|
||||
#define SC_CACHE_NONE 0
|
||||
#define SC_CACHE_CARET 1
|
||||
#define SC_CACHE_PAGE 2
|
||||
#define SC_CACHE_DOCUMENT 3
|
||||
#define SCI_SETLAYOUTCACHE 2272
|
||||
#define SCI_GETLAYOUTCACHE 2273
|
||||
#define SCI_SETSCROLLWIDTH 2274
|
||||
#define SCI_GETSCROLLWIDTH 2275
|
||||
#define SCI_SETSCROLLWIDTHTRACKING 2516
|
||||
#define SCI_GETSCROLLWIDTHTRACKING 2517
|
||||
#define SCI_TEXTWIDTH 2276
|
||||
#define SCI_SETENDATLASTLINE 2277
|
||||
#define SCI_GETENDATLASTLINE 2278
|
||||
#define SCI_TEXTHEIGHT 2279
|
||||
#define SCI_SETVSCROLLBAR 2280
|
||||
#define SCI_GETVSCROLLBAR 2281
|
||||
#define SCI_APPENDTEXT 2282
|
||||
#define SCI_GETTWOPHASEDRAW 2283
|
||||
#define SCI_SETTWOPHASEDRAW 2284
|
||||
#define SCI_TARGETFROMSELECTION 2287
|
||||
#define SCI_LINESJOIN 2288
|
||||
#define SCI_LINESSPLIT 2289
|
||||
#define SCI_SETFOLDMARGINCOLOUR 2290
|
||||
#define SCI_SETFOLDMARGINHICOLOUR 2291
|
||||
#define SCI_LINEDOWN 2300
|
||||
#define SCI_LINEDOWNEXTEND 2301
|
||||
#define SCI_LINEUP 2302
|
||||
#define SCI_LINEUPEXTEND 2303
|
||||
#define SCI_CHARLEFT 2304
|
||||
#define SCI_CHARLEFTEXTEND 2305
|
||||
#define SCI_CHARRIGHT 2306
|
||||
#define SCI_CHARRIGHTEXTEND 2307
|
||||
#define SCI_WORDLEFT 2308
|
||||
#define SCI_WORDLEFTEXTEND 2309
|
||||
#define SCI_WORDRIGHT 2310
|
||||
#define SCI_WORDRIGHTEXTEND 2311
|
||||
#define SCI_HOME 2312
|
||||
#define SCI_HOMEEXTEND 2313
|
||||
#define SCI_LINEEND 2314
|
||||
#define SCI_LINEENDEXTEND 2315
|
||||
#define SCI_DOCUMENTSTART 2316
|
||||
#define SCI_DOCUMENTSTARTEXTEND 2317
|
||||
#define SCI_DOCUMENTEND 2318
|
||||
#define SCI_DOCUMENTENDEXTEND 2319
|
||||
#define SCI_PAGEUP 2320
|
||||
#define SCI_PAGEUPEXTEND 2321
|
||||
#define SCI_PAGEDOWN 2322
|
||||
#define SCI_PAGEDOWNEXTEND 2323
|
||||
#define SCI_EDITTOGGLEOVERTYPE 2324
|
||||
#define SCI_CANCEL 2325
|
||||
#define SCI_DELETEBACK 2326
|
||||
#define SCI_TAB 2327
|
||||
#define SCI_BACKTAB 2328
|
||||
#define SCI_NEWLINE 2329
|
||||
#define SCI_FORMFEED 2330
|
||||
#define SCI_VCHOME 2331
|
||||
#define SCI_VCHOMEEXTEND 2332
|
||||
#define SCI_ZOOMIN 2333
|
||||
#define SCI_ZOOMOUT 2334
|
||||
#define SCI_DELWORDLEFT 2335
|
||||
#define SCI_DELWORDRIGHT 2336
|
||||
#define SCI_DELWORDRIGHTEND 2518
|
||||
#define SCI_LINECUT 2337
|
||||
#define SCI_LINEDELETE 2338
|
||||
#define SCI_LINETRANSPOSE 2339
|
||||
#define SCI_LINEDUPLICATE 2404
|
||||
#define SCI_LOWERCASE 2340
|
||||
#define SCI_UPPERCASE 2341
|
||||
#define SCI_LINESCROLLDOWN 2342
|
||||
#define SCI_LINESCROLLUP 2343
|
||||
#define SCI_DELETEBACKNOTLINE 2344
|
||||
#define SCI_HOMEDISPLAY 2345
|
||||
#define SCI_HOMEDISPLAYEXTEND 2346
|
||||
#define SCI_LINEENDDISPLAY 2347
|
||||
#define SCI_LINEENDDISPLAYEXTEND 2348
|
||||
#define SCI_HOMEWRAP 2349
|
||||
#define SCI_HOMEWRAPEXTEND 2450
|
||||
#define SCI_LINEENDWRAP 2451
|
||||
#define SCI_LINEENDWRAPEXTEND 2452
|
||||
#define SCI_VCHOMEWRAP 2453
|
||||
#define SCI_VCHOMEWRAPEXTEND 2454
|
||||
#define SCI_LINECOPY 2455
|
||||
#define SCI_MOVECARETINSIDEVIEW 2401
|
||||
#define SCI_LINELENGTH 2350
|
||||
#define SCI_BRACEHIGHLIGHT 2351
|
||||
#define SCI_BRACEBADLIGHT 2352
|
||||
#define SCI_BRACEMATCH 2353
|
||||
#define SCI_GETVIEWEOL 2355
|
||||
#define SCI_SETVIEWEOL 2356
|
||||
#define SCI_GETDOCPOINTER 2357
|
||||
#define SCI_SETDOCPOINTER 2358
|
||||
#define SCI_SETMODEVENTMASK 2359
|
||||
#define EDGE_NONE 0
|
||||
#define EDGE_LINE 1
|
||||
#define EDGE_BACKGROUND 2
|
||||
#define SCI_GETEDGECOLUMN 2360
|
||||
#define SCI_SETEDGECOLUMN 2361
|
||||
#define SCI_GETEDGEMODE 2362
|
||||
#define SCI_SETEDGEMODE 2363
|
||||
#define SCI_GETEDGECOLOUR 2364
|
||||
#define SCI_SETEDGECOLOUR 2365
|
||||
#define SCI_SEARCHANCHOR 2366
|
||||
#define SCI_SEARCHNEXT 2367
|
||||
#define SCI_SEARCHPREV 2368
|
||||
#define SCI_LINESONSCREEN 2370
|
||||
#define SCI_USEPOPUP 2371
|
||||
#define SCI_SELECTIONISRECTANGLE 2372
|
||||
#define SCI_SETZOOM 2373
|
||||
#define SCI_GETZOOM 2374
|
||||
#define SCI_CREATEDOCUMENT 2375
|
||||
#define SCI_ADDREFDOCUMENT 2376
|
||||
#define SCI_RELEASEDOCUMENT 2377
|
||||
#define SCI_GETMODEVENTMASK 2378
|
||||
#define SCI_SETFOCUS 2380
|
||||
#define SCI_GETFOCUS 2381
|
||||
#define SCI_SETSTATUS 2382
|
||||
#define SCI_GETSTATUS 2383
|
||||
#define SCI_SETMOUSEDOWNCAPTURES 2384
|
||||
#define SCI_GETMOUSEDOWNCAPTURES 2385
|
||||
#define SC_CURSORNORMAL -1
|
||||
#define SC_CURSORWAIT 4
|
||||
#define SCI_SETCURSOR 2386
|
||||
#define SCI_GETCURSOR 2387
|
||||
#define SCI_SETCONTROLCHARSYMBOL 2388
|
||||
#define SCI_GETCONTROLCHARSYMBOL 2389
|
||||
#define SCI_WORDPARTLEFT 2390
|
||||
#define SCI_WORDPARTLEFTEXTEND 2391
|
||||
#define SCI_WORDPARTRIGHT 2392
|
||||
#define SCI_WORDPARTRIGHTEXTEND 2393
|
||||
#define VISIBLE_SLOP 0x01
|
||||
#define VISIBLE_STRICT 0x04
|
||||
#define SCI_SETVISIBLEPOLICY 2394
|
||||
#define SCI_DELLINELEFT 2395
|
||||
#define SCI_DELLINERIGHT 2396
|
||||
#define SCI_SETXOFFSET 2397
|
||||
#define SCI_GETXOFFSET 2398
|
||||
#define SCI_CHOOSECARETX 2399
|
||||
#define SCI_GRABFOCUS 2400
|
||||
#define CARET_SLOP 0x01
|
||||
#define CARET_STRICT 0x04
|
||||
#define CARET_JUMPS 0x10
|
||||
#define CARET_EVEN 0x08
|
||||
#define SCI_SETXCARETPOLICY 2402
|
||||
#define SCI_SETYCARETPOLICY 2403
|
||||
#define SCI_SETPRINTWRAPMODE 2406
|
||||
#define SCI_GETPRINTWRAPMODE 2407
|
||||
#define SCI_SETHOTSPOTACTIVEFORE 2410
|
||||
#define SCI_GETHOTSPOTACTIVEFORE 2494
|
||||
#define SCI_SETHOTSPOTACTIVEBACK 2411
|
||||
#define SCI_GETHOTSPOTACTIVEBACK 2495
|
||||
#define SCI_SETHOTSPOTACTIVEUNDERLINE 2412
|
||||
#define SCI_GETHOTSPOTACTIVEUNDERLINE 2496
|
||||
#define SCI_SETHOTSPOTSINGLELINE 2421
|
||||
#define SCI_GETHOTSPOTSINGLELINE 2497
|
||||
#define SCI_PARADOWN 2413
|
||||
#define SCI_PARADOWNEXTEND 2414
|
||||
#define SCI_PARAUP 2415
|
||||
#define SCI_PARAUPEXTEND 2416
|
||||
#define SCI_POSITIONBEFORE 2417
|
||||
#define SCI_POSITIONAFTER 2418
|
||||
#define SCI_COPYRANGE 2419
|
||||
#define SCI_COPYTEXT 2420
|
||||
#define SC_SEL_STREAM 0
|
||||
#define SC_SEL_RECTANGLE 1
|
||||
#define SC_SEL_LINES 2
|
||||
#define SCI_SETSELECTIONMODE 2422
|
||||
#define SCI_GETSELECTIONMODE 2423
|
||||
#define SCI_GETLINESELSTARTPOSITION 2424
|
||||
#define SCI_GETLINESELENDPOSITION 2425
|
||||
#define SCI_LINEDOWNRECTEXTEND 2426
|
||||
#define SCI_LINEUPRECTEXTEND 2427
|
||||
#define SCI_CHARLEFTRECTEXTEND 2428
|
||||
#define SCI_CHARRIGHTRECTEXTEND 2429
|
||||
#define SCI_HOMERECTEXTEND 2430
|
||||
#define SCI_VCHOMERECTEXTEND 2431
|
||||
#define SCI_LINEENDRECTEXTEND 2432
|
||||
#define SCI_PAGEUPRECTEXTEND 2433
|
||||
#define SCI_PAGEDOWNRECTEXTEND 2434
|
||||
#define SCI_STUTTEREDPAGEUP 2435
|
||||
#define SCI_STUTTEREDPAGEUPEXTEND 2436
|
||||
#define SCI_STUTTEREDPAGEDOWN 2437
|
||||
#define SCI_STUTTEREDPAGEDOWNEXTEND 2438
|
||||
#define SCI_WORDLEFTEND 2439
|
||||
#define SCI_WORDLEFTENDEXTEND 2440
|
||||
#define SCI_WORDRIGHTEND 2441
|
||||
#define SCI_WORDRIGHTENDEXTEND 2442
|
||||
#define SCI_SETWHITESPACECHARS 2443
|
||||
#define SCI_SETCHARSDEFAULT 2444
|
||||
#define SCI_AUTOCGETCURRENT 2445
|
||||
#define SCI_ALLOCATE 2446
|
||||
#define SCI_TARGETASUTF8 2447
|
||||
#define SCI_SETLENGTHFORENCODE 2448
|
||||
#define SCI_ENCODEDFROMUTF8 2449
|
||||
#define SCI_FINDCOLUMN 2456
|
||||
#define SCI_GETCARETSTICKY 2457
|
||||
#define SCI_SETCARETSTICKY 2458
|
||||
#define SCI_TOGGLECARETSTICKY 2459
|
||||
#define SCI_SETPASTECONVERTENDINGS 2467
|
||||
#define SCI_GETPASTECONVERTENDINGS 2468
|
||||
#define SCI_SELECTIONDUPLICATE 2469
|
||||
#define SC_ALPHA_TRANSPARENT 0
|
||||
#define SC_ALPHA_OPAQUE 255
|
||||
#define SC_ALPHA_NOALPHA 256
|
||||
#define SCI_SETCARETLINEBACKALPHA 2470
|
||||
#define SCI_GETCARETLINEBACKALPHA 2471
|
||||
#define CARETSTYLE_INVISIBLE 0
|
||||
#define CARETSTYLE_LINE 1
|
||||
#define CARETSTYLE_BLOCK 2
|
||||
#define SCI_SETCARETSTYLE 2512
|
||||
#define SCI_GETCARETSTYLE 2513
|
||||
#define SCI_SETINDICATORCURRENT 2500
|
||||
#define SCI_GETINDICATORCURRENT 2501
|
||||
#define SCI_SETINDICATORVALUE 2502
|
||||
#define SCI_GETINDICATORVALUE 2503
|
||||
#define SCI_INDICATORFILLRANGE 2504
|
||||
#define SCI_INDICATORCLEARRANGE 2505
|
||||
#define SCI_INDICATORALLONFOR 2506
|
||||
#define SCI_INDICATORVALUEAT 2507
|
||||
#define SCI_INDICATORSTART 2508
|
||||
#define SCI_INDICATOREND 2509
|
||||
#define SCI_SETPOSITIONCACHE 2514
|
||||
#define SCI_GETPOSITIONCACHE 2515
|
||||
#define SCI_COPYALLOWLINE 2519
|
||||
#define SCI_GETCHARACTERPOINTER 2520
|
||||
#define SCI_SETKEYSUNICODE 2521
|
||||
#define SCI_GETKEYSUNICODE 2522
|
||||
#define SCI_INDICSETALPHA 2523
|
||||
#define SCI_INDICGETALPHA 2524
|
||||
#define SCI_SETEXTRAASCENT 2525
|
||||
#define SCI_GETEXTRAASCENT 2526
|
||||
#define SCI_SETEXTRADESCENT 2527
|
||||
#define SCI_GETEXTRADESCENT 2528
|
||||
#define SCI_MARKERSYMBOLDEFINED 2529
|
||||
#define SCI_MARGINSETTEXT 2530
|
||||
#define SCI_MARGINGETTEXT 2531
|
||||
#define SCI_MARGINSETSTYLE 2532
|
||||
#define SCI_MARGINGETSTYLE 2533
|
||||
#define SCI_MARGINSETSTYLES 2534
|
||||
#define SCI_MARGINGETSTYLES 2535
|
||||
#define SCI_MARGINTEXTCLEARALL 2536
|
||||
#define SCI_MARGINSETSTYLEOFFSET 2537
|
||||
#define SCI_MARGINGETSTYLEOFFSET 2538
|
||||
#define SCI_ANNOTATIONSETTEXT 2540
|
||||
#define SCI_ANNOTATIONGETTEXT 2541
|
||||
#define SCI_ANNOTATIONSETSTYLE 2542
|
||||
#define SCI_ANNOTATIONGETSTYLE 2543
|
||||
#define SCI_ANNOTATIONSETSTYLES 2544
|
||||
#define SCI_ANNOTATIONGETSTYLES 2545
|
||||
#define SCI_ANNOTATIONGETLINES 2546
|
||||
#define SCI_ANNOTATIONCLEARALL 2547
|
||||
#define ANNOTATION_HIDDEN 0
|
||||
#define ANNOTATION_STANDARD 1
|
||||
#define ANNOTATION_BOXED 2
|
||||
#define SCI_ANNOTATIONSETVISIBLE 2548
|
||||
#define SCI_ANNOTATIONGETVISIBLE 2549
|
||||
#define SCI_ANNOTATIONSETSTYLEOFFSET 2550
|
||||
#define SCI_ANNOTATIONGETSTYLEOFFSET 2551
|
||||
#define UNDO_MAY_COALESCE 1
|
||||
#define SCI_ADDUNDOACTION 2560
|
||||
#define SCI_STARTRECORD 3001
|
||||
#define SCI_STOPRECORD 3002
|
||||
#define SCI_SETLEXER 4001
|
||||
#define SCI_GETLEXER 4002
|
||||
#define SCI_COLOURISE 4003
|
||||
#define SCI_SETPROPERTY 4004
|
||||
#define KEYWORDSET_MAX 8
|
||||
#define SCI_SETKEYWORDS 4005
|
||||
#define SCI_SETLEXERLANGUAGE 4006
|
||||
#define SCI_LOADLEXERLIBRARY 4007
|
||||
#define SCI_GETPROPERTY 4008
|
||||
#define SCI_GETPROPERTYEXPANDED 4009
|
||||
#define SCI_GETPROPERTYINT 4010
|
||||
#define SCI_GETSTYLEBITSNEEDED 4011
|
||||
#define SC_MOD_INSERTTEXT 0x1
|
||||
#define SC_MOD_DELETETEXT 0x2
|
||||
#define SC_MOD_CHANGESTYLE 0x4
|
||||
#define SC_MOD_CHANGEFOLD 0x8
|
||||
#define SC_PERFORMED_USER 0x10
|
||||
#define SC_PERFORMED_UNDO 0x20
|
||||
#define SC_PERFORMED_REDO 0x40
|
||||
#define SC_MULTISTEPUNDOREDO 0x80
|
||||
#define SC_LASTSTEPINUNDOREDO 0x100
|
||||
#define SC_MOD_CHANGEMARKER 0x200
|
||||
#define SC_MOD_BEFOREINSERT 0x400
|
||||
#define SC_MOD_BEFOREDELETE 0x800
|
||||
#define SC_MULTILINEUNDOREDO 0x1000
|
||||
#define SC_STARTACTION 0x2000
|
||||
#define SC_MOD_CHANGEINDICATOR 0x4000
|
||||
#define SC_MOD_CHANGELINESTATE 0x8000
|
||||
#define SC_MOD_CHANGEMARGIN 0x10000
|
||||
#define SC_MOD_CHANGEANNOTATION 0x20000
|
||||
#define SC_MOD_CONTAINER 0x40000
|
||||
#define SC_MODEVENTMASKALL 0x7FFFF
|
||||
#define SCEN_CHANGE 768
|
||||
#define SCEN_SETFOCUS 512
|
||||
#define SCEN_KILLFOCUS 256
|
||||
#define SCK_DOWN 300
|
||||
#define SCK_UP 301
|
||||
#define SCK_LEFT 302
|
||||
#define SCK_RIGHT 303
|
||||
#define SCK_HOME 304
|
||||
#define SCK_END 305
|
||||
#define SCK_PRIOR 306
|
||||
#define SCK_NEXT 307
|
||||
#define SCK_DELETE 308
|
||||
#define SCK_INSERT 309
|
||||
#define SCK_ESCAPE 7
|
||||
#define SCK_BACK 8
|
||||
#define SCK_TAB 9
|
||||
#define SCK_RETURN 13
|
||||
#define SCK_ADD 310
|
||||
#define SCK_SUBTRACT 311
|
||||
#define SCK_DIVIDE 312
|
||||
#define SCK_WIN 313
|
||||
#define SCK_RWIN 314
|
||||
#define SCK_MENU 315
|
||||
#define SCMOD_NORM 0
|
||||
#define SCMOD_SHIFT 1
|
||||
#define SCMOD_CTRL 2
|
||||
#define SCMOD_ALT 4
|
||||
#define SCN_STYLENEEDED 2000
|
||||
#define SCN_CHARADDED 2001
|
||||
#define SCN_SAVEPOINTREACHED 2002
|
||||
#define SCN_SAVEPOINTLEFT 2003
|
||||
#define SCN_MODIFYATTEMPTRO 2004
|
||||
#define SCN_KEY 2005
|
||||
#define SCN_DOUBLECLICK 2006
|
||||
#define SCN_UPDATEUI 2007
|
||||
#define SCN_MODIFIED 2008
|
||||
#define SCN_MACRORECORD 2009
|
||||
#define SCN_MARGINCLICK 2010
|
||||
#define SCN_NEEDSHOWN 2011
|
||||
#define SCN_PAINTED 2013
|
||||
#define SCN_USERLISTSELECTION 2014
|
||||
#define SCN_URIDROPPED 2015
|
||||
#define SCN_DWELLSTART 2016
|
||||
#define SCN_DWELLEND 2017
|
||||
#define SCN_ZOOM 2018
|
||||
#define SCN_HOTSPOTCLICK 2019
|
||||
#define SCN_HOTSPOTDOUBLECLICK 2020
|
||||
#define SCN_CALLTIPCLICK 2021
|
||||
#define SCN_AUTOCSELECTION 2022
|
||||
#define SCN_INDICATORCLICK 2023
|
||||
#define SCN_INDICATORRELEASE 2024
|
||||
#define SCN_AUTOCCANCELLED 2025
|
||||
#define SCN_AUTOCCHARDELETED 2026
|
||||
|
||||
|
||||
// enum generic
|
||||
#define QsciScintilla_AiMaintain 0x01
|
||||
#define QsciScintilla_AiOpening 0x02
|
||||
#define QsciScintilla_AiClosing 0x04
|
||||
|
||||
// enum AnnotationDisplay
|
||||
#define QsciScintilla_AnnotationHidden ANNOTATION_HIDDEN
|
||||
#define QsciScintilla_AnnotationStandard ANNOTATION_STANDARD
|
||||
#define QsciScintilla_AnnotationBoxed ANNOTATION_BOXED
|
||||
|
||||
// enum AutoCompletionSource
|
||||
#define QsciScintilla_AcsNone 0
|
||||
#define QsciScintilla_AcsAll 1
|
||||
#define QsciScintilla_AcsDocument 2
|
||||
#define QsciScintilla_AcsAPIs 3
|
||||
|
||||
// enum BraceMatch
|
||||
#define QsciScintilla_NoBraceMatch 0
|
||||
#define QsciScintilla_StrictBraceMatch 1
|
||||
#define QsciScintilla_SloppyBraceMatch 2
|
||||
|
||||
// enum CallTipsStyle
|
||||
#define QsciScintilla_CallTipsNone 0
|
||||
#define QsciScintilla_CallTipsNoContext 1
|
||||
#define QsciScintilla_CallTipsNoAutoCompletionContext 2
|
||||
#define QsciScintilla_CallTipsContext 3
|
||||
|
||||
// enum EdgeMode
|
||||
#define QsciScintilla_EdgeNone EDGE_NONE
|
||||
#define QsciScintilla_EdgeLine EDGE_LINE
|
||||
#define QsciScintilla_EdgeBackground EDGE_BACKGROUND
|
||||
|
||||
// enum EolMode
|
||||
#define QsciScintilla_EolWindows SC_EOL_CRLF
|
||||
#define QsciScintilla_EolUnix SC_EOL_LF
|
||||
#define QsciScintilla_EolMac SC_EOL_CR
|
||||
|
||||
// enum FoldStyle
|
||||
#define QsciScintilla_NoFoldStyle 0
|
||||
#define QsciScintilla_PlainFoldStyle 1
|
||||
#define QsciScintilla_CircledFoldStyle 2
|
||||
#define QsciScintilla_BoxedFoldStyle 3
|
||||
#define QsciScintilla_CircledTreeFoldStyle 4
|
||||
#define QsciScintilla_BoxedTreeFoldStyle 5
|
||||
|
||||
// enum MarginType
|
||||
#define QsciScintilla_SymbolMargin SC_MARGIN_SYMBOL
|
||||
#define QsciScintilla_SymbolMarginDefaultForegroundColor SC_MARGIN_FORE
|
||||
#define QsciScintilla_SymbolMarginDefaultBackgroundColor SC_MARGIN_BACK
|
||||
#define QsciScintilla_NumberMargin SC_MARGIN_NUMBER
|
||||
#define QsciScintilla_TextMargin SC_MARGIN_TEXT
|
||||
#define QsciScintilla_TextMarginRightJustified SC_MARGIN_RTEXT
|
||||
|
||||
// enum MarkerSymbol
|
||||
#define QsciScintilla_Circle SC_MARK_CIRCLE
|
||||
#define QsciScintilla_Rectangle SC_MARK_ROUNDRECT
|
||||
#define QsciScintilla_RightTriangle SC_MARK_ARROW
|
||||
#define QsciScintilla_SmallRectangle SC_MARK_SMALLRECT
|
||||
#define QsciScintilla_RightArrow SC_MARK_SHORTARROW
|
||||
#define QsciScintilla_Invisible SC_MARK_EMPTY
|
||||
#define QsciScintilla_DownTriangle SC_MARK_ARROWDOWN
|
||||
#define QsciScintilla_Minus SC_MARK_MINUS
|
||||
#define QsciScintilla_Plus SC_MARK_PLUS
|
||||
#define QsciScintilla_VerticalLine SC_MARK_VLINE
|
||||
#define QsciScintilla_BottomLeftCorner SC_MARK_LCORNER
|
||||
#define QsciScintilla_LeftSideSplitter SC_MARK_TCORNER
|
||||
#define QsciScintilla_BoxedPlus SC_MARK_BOXPLUS
|
||||
#define QsciScintilla_BoxedPlusConnected SC_MARK_BOXPLUSCONNECTED
|
||||
#define QsciScintilla_BoxedMinus SC_MARK_BOXMINUS
|
||||
#define QsciScintilla_BoxedMinusConnected SC_MARK_BOXMINUSCONNECTED
|
||||
#define QsciScintilla_RoundedBottomLeftCorner SC_MARK_LCORNERCURVE
|
||||
#define QsciScintilla_LeftSideRoundedSplitter SC_MARK_TCORNERCURVE
|
||||
#define QsciScintilla_CircledPlus SC_MARK_CIRCLEPLUS
|
||||
#define QsciScintilla_CircledPlusConnected SC_MARK_CIRCLEPLUSCONNECTED
|
||||
#define QsciScintilla_CircledMinus SC_MARK_CIRCLEMINUS
|
||||
#define QsciScintilla_CircledMinusConnected SC_MARK_CIRCLEMINUSCONNECTED
|
||||
#define QsciScintilla_Background SC_MARK_BACKGROUND
|
||||
#define QsciScintilla_ThreeDots SC_MARK_DOTDOTDOT
|
||||
#define QsciScintilla_ThreeRightArrows SC_MARK_ARROWS
|
||||
|
||||
// enum WhitespaceVisibility
|
||||
#define QsciScintilla_WsInvisible SCWS_INVISIBLE
|
||||
#define QsciScintilla_WsVisible SCWS_VISIBLEALWAYS
|
||||
#define QsciScintilla_WsVisibleAfterIndent SCWS_VISIBLEAFTERINDENT
|
||||
|
||||
// enum WrapMode
|
||||
#define QsciScintilla_WrapNone SC_WRAP_NONE
|
||||
#define QsciScintilla_WrapWord SC_WRAP_WORD
|
||||
#define QsciScintilla_WrapCharacter SC_WRAP_CHAR
|
||||
|
||||
// enum WrapVisualFlag
|
||||
#define QsciScintilla_WrapFlagNone 0
|
||||
#define QsciScintilla_WrapFlagByText 1
|
||||
#define QsciScintilla_WrapFlagByBorder 2
|
||||
|
||||
/* LexFlagship Syntax Identifiers */
|
||||
#define SCE_FS_DEFAULT 0
|
||||
#define SCE_FS_COMMENT 1
|
||||
#define SCE_FS_COMMENTLINE 2
|
||||
#define SCE_FS_COMMENTDOC 3
|
||||
#define SCE_FS_COMMENTLINEDOC 4
|
||||
#define SCE_FS_COMMENTDOCKEYWORD 5
|
||||
#define SCE_FS_COMMENTDOCKEYWORDERROR 6
|
||||
#define SCE_FS_KEYWORD 7
|
||||
#define SCE_FS_KEYWORD2 8
|
||||
#define SCE_FS_KEYWORD3 9
|
||||
#define SCE_FS_KEYWORD4 10
|
||||
#define SCE_FS_NUMBER 11
|
||||
#define SCE_FS_STRING 12
|
||||
#define SCE_FS_PREPROCESSOR 13
|
||||
#define SCE_FS_OPERATOR 14
|
||||
#define SCE_FS_IDENTIFIER 15
|
||||
#define SCE_FS_DATE 16
|
||||
#define SCE_FS_STRINGEOL 17
|
||||
#define SCE_FS_CONSTANT 18
|
||||
#define SCE_FS_WORDOPERATOR 19
|
||||
#define SCE_FS_DISABLEDCODE 20
|
||||
#define SCE_FS_DEFAULT_C 21
|
||||
#define SCE_FS_COMMENTDOC_C 22
|
||||
#define SCE_FS_COMMENTLINEDOC_C 23
|
||||
#define SCE_FS_KEYWORD_C 24
|
||||
#define SCE_FS_KEYWORD2_C 25
|
||||
#define SCE_FS_NUMBER_C 26
|
||||
#define SCE_FS_STRING_C 27
|
||||
#define SCE_FS_PREPROCESSOR_C 28
|
||||
#define SCE_FS_OPERATOR_C 29
|
||||
#define SCE_FS_IDENTIFIER_C 30
|
||||
#define SCE_FS_STRINGEOL_C 31
|
||||
#define SCE_FS_BRACE 32
|
||||
|
||||
#define _QSCINTILLA_CH
|
||||
#endif
|
||||
58
harbour/contrib/hbqt/hbqscintilla/hbqscintilla.hbp
Normal file
58
harbour/contrib/hbqt/hbqscintilla/hbqscintilla.hbp
Normal file
@@ -0,0 +1,58 @@
|
||||
-3rd=hbide_version=1.0
|
||||
-3rd=hbide_type=Lib
|
||||
-3rd=hbide_title=qscintilla
|
||||
-3rd=hbide_location=C:\harbour\contrib\hbqt\qscintilla\
|
||||
-3rd=hbide_workingfolder=
|
||||
-3rd=hbide_destinationfolder=
|
||||
-3rd=hbide_output=qscintilla
|
||||
-3rd=hbide_launchparams=
|
||||
-3rd=hbide_launchprogram=
|
||||
-3rd=hbide_backupfolder=
|
||||
-3rd=hbide_xhb=NO
|
||||
-3rd=hbide_xpp=NO
|
||||
-3rd=hbide_clp=NO
|
||||
|
||||
-info
|
||||
-trace
|
||||
-inc
|
||||
-w2
|
||||
-es2
|
||||
-hblib
|
||||
-incpath=../
|
||||
-incpath=${HB_WITH_QSCINTILLA}/qt
|
||||
-incpath=${HB_WITH_QT}
|
||||
-incpath=${HB_WITH_QT}/QtCore
|
||||
-incpath=${HB_WITH_QT}/QtGui
|
||||
|
||||
-ohbqscintilla
|
||||
|
||||
-plugin=../../../utils/hbmk2/examples/plug_moc.prg
|
||||
|
||||
-pi=hbqt_hbqsciscintilla.h
|
||||
|
||||
hbqt_hbqsciscintilla.cpp
|
||||
|
||||
HBQsciScintilla.cpp
|
||||
QsciScintilla.cpp
|
||||
QsciLexer.cpp
|
||||
QsciLexerCPP.cpp
|
||||
QsciLexerFlagship.cpp
|
||||
QsciAbstractAPIs.cpp
|
||||
QsciAPIs.cpp
|
||||
QsciDocument.cpp
|
||||
QsciStyledText.cpp
|
||||
QsciCommand.cpp
|
||||
QsciCommandSet.cpp
|
||||
|
||||
THBQsciScintilla.prg
|
||||
TQsciScintilla.prg
|
||||
TQsciLexer.prg
|
||||
TQsciLexerCPP.prg
|
||||
TQsciLexerFlagship.prg
|
||||
TQsciAbstractAPIs.prg
|
||||
TQsciAPIs.prg
|
||||
TQsciDocument.prg
|
||||
TQsciStyle.prg
|
||||
TQsciStyledText.prg
|
||||
TQsciCommand.prg
|
||||
TQsciCommandSet.prg
|
||||
29
harbour/contrib/hbqt/hbqscintilla/hbqscintilla.qtp
Normal file
29
harbour/contrib/hbqt/hbqscintilla/hbqscintilla.qtp
Normal file
@@ -0,0 +1,29 @@
|
||||
;
|
||||
; $Id$
|
||||
;
|
||||
|
||||
;
|
||||
; Harbour Source Wrapper Generator's Project File for QT v4.5
|
||||
;
|
||||
; Pritpal Bedi <bedipritpal@hotmail.com>
|
||||
;
|
||||
|
||||
-I=qth
|
||||
|
||||
-O=
|
||||
|
||||
-D=doc
|
||||
|
||||
HBQsciScintilla.qth
|
||||
|
||||
QsciAbstractAPIs.qth
|
||||
QsciAPIs.qth
|
||||
QsciCommand.qth
|
||||
QsciCommandSet.qth
|
||||
QsciDocument.qth
|
||||
QsciLexer.qth
|
||||
QsciLexerCPP.qth
|
||||
QsciLexerFlagship.qth
|
||||
QsciScintilla.qth
|
||||
QsciStyle.qth
|
||||
QsciStyledText.qth
|
||||
36
harbour/contrib/hbqt/hbqscintilla/hbqt_garbage.h
Normal file
36
harbour/contrib/hbqt/hbqscintilla/hbqt_garbage.h
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/* WARNING: Automatically generated source file. DO NOT EDIT! */
|
||||
/* Instead, edit corresponding .qth file, */
|
||||
/* or the generator tool itself, and run regenarate. */
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
extern QT_G_FUNC( hbqt_gcRelease_HBQsciScintilla );
|
||||
extern QT_G_FUNC( hbqt_gcRelease_QsciAbstractAPIs );
|
||||
extern QT_G_FUNC( hbqt_gcRelease_QsciAPIs );
|
||||
extern QT_G_FUNC( hbqt_gcRelease_QsciCommand );
|
||||
extern QT_G_FUNC( hbqt_gcRelease_QsciCommandSet );
|
||||
extern QT_G_FUNC( hbqt_gcRelease_QsciDocument );
|
||||
extern QT_G_FUNC( hbqt_gcRelease_QsciLexer );
|
||||
extern QT_G_FUNC( hbqt_gcRelease_QsciLexerCPP );
|
||||
extern QT_G_FUNC( hbqt_gcRelease_QsciLexerFlagship );
|
||||
extern QT_G_FUNC( hbqt_gcRelease_QsciScintilla );
|
||||
extern QT_G_FUNC( hbqt_gcRelease_QsciStyle );
|
||||
extern QT_G_FUNC( hbqt_gcRelease_QsciStyledText );
|
||||
|
||||
extern void * hbqt_gcAllocate_HBQsciScintilla( void * pObj, bool bNew );
|
||||
extern void * hbqt_gcAllocate_QsciAbstractAPIs( void * pObj, bool bNew );
|
||||
extern void * hbqt_gcAllocate_QsciAPIs( void * pObj, bool bNew );
|
||||
extern void * hbqt_gcAllocate_QsciCommand( void * pObj, bool bNew );
|
||||
extern void * hbqt_gcAllocate_QsciCommandSet( void * pObj, bool bNew );
|
||||
extern void * hbqt_gcAllocate_QsciDocument( void * pObj, bool bNew );
|
||||
extern void * hbqt_gcAllocate_QsciLexer( void * pObj, bool bNew );
|
||||
extern void * hbqt_gcAllocate_QsciLexerCPP( void * pObj, bool bNew );
|
||||
extern void * hbqt_gcAllocate_QsciLexerFlagship( void * pObj, bool bNew );
|
||||
extern void * hbqt_gcAllocate_QsciScintilla( void * pObj, bool bNew );
|
||||
extern void * hbqt_gcAllocate_QsciStyle( void * pObj, bool bNew );
|
||||
extern void * hbqt_gcAllocate_QsciStyledText( void * pObj, bool bNew );
|
||||
|
||||
113
harbour/contrib/hbqt/hbqscintilla/hbqt_hbqsciscintilla.cpp
Normal file
113
harbour/contrib/hbqt/hbqscintilla/hbqt_hbqsciscintilla.cpp
Normal file
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* Harbour-Qt wrapper generator.
|
||||
*
|
||||
* Copyright 2010 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* Copyright 2009 Gancov Kostya <kossne@mail.ru>
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include "hbqt.h"
|
||||
|
||||
#include "hbapiitm.h"
|
||||
#include "hbthread.h"
|
||||
#include "hbvm.h"
|
||||
|
||||
#if QT_VERSION >= 0x040500
|
||||
|
||||
#include "hbqt_hbqsciscintilla.h"
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
HBQsciScintilla::HBQsciScintilla( QWidget * parent ) : QsciScintilla( parent )
|
||||
{
|
||||
}
|
||||
HBQsciScintilla::~HBQsciScintilla()
|
||||
{
|
||||
}
|
||||
void HBQsciScintilla::keyPressEvent( QKeyEvent * event )
|
||||
{
|
||||
switch( event->key() )
|
||||
{
|
||||
case Qt::Key_Space:
|
||||
if( event->modifiers() & Qt::ControlModifier )
|
||||
{
|
||||
this->autoCompleteFromAPIs();
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case Qt::Key_Return:
|
||||
if( event->modifiers() & Qt::ControlModifier )
|
||||
{
|
||||
this->autoCompleteFromDocument();
|
||||
}
|
||||
break;
|
||||
case Qt::Key_ParenLeft:
|
||||
if( this->isVisible() )
|
||||
{
|
||||
this->callTip();
|
||||
}
|
||||
break;
|
||||
}
|
||||
QsciScintilla::keyPressEvent( event );
|
||||
}
|
||||
|
||||
void HBQsciScintilla::focusInEvent( QFocusEvent * event )
|
||||
{
|
||||
parentWidget()->setFocusProxy( this );
|
||||
QsciScintilla::focusInEvent( event );
|
||||
}
|
||||
|
||||
void HBQsciScintilla::focusOutEvent( QFocusEvent * event )
|
||||
{
|
||||
cancelList();
|
||||
QsciScintilla::focusOutEvent( event );
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#endif
|
||||
89
harbour/contrib/hbqt/hbqscintilla/hbqt_hbqsciscintilla.h
Normal file
89
harbour/contrib/hbqt/hbqscintilla/hbqt_hbqsciscintilla.h
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT wrapper main header
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef HBQT_HBQSCISCINTILLA_H
|
||||
#define HBQT_HBQSCISCINTILLA_H
|
||||
|
||||
#include "hbapiitm.h"
|
||||
|
||||
#include <QPointer>
|
||||
#include <QKeyEvent>
|
||||
|
||||
#include <qsciscintilla.h>
|
||||
|
||||
class QsciScintilla;
|
||||
|
||||
class HBQsciScintilla : public QsciScintilla
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
HBQsciScintilla( QWidget * parent = 0 );
|
||||
~HBQsciScintilla();
|
||||
|
||||
protected:
|
||||
void keyPressEvent( QKeyEvent * event );
|
||||
void focusInEvent( QFocusEvent * event );
|
||||
void focusOutEvent( QFocusEvent * event );
|
||||
#if 0
|
||||
bool event( QEvent * event );
|
||||
void resizeEvent( QResizeEvent * event );
|
||||
void mouseDoubleClickEvent( QMouseEvent * event );
|
||||
void mousePressEvent( QMouseEvent * event );
|
||||
void mouseReleaseEvent( QMouseEvent * event );
|
||||
void mouseMoveEvent( QMouseEvent * event );
|
||||
void keyReleaseEvent( QKeyEvent * event );
|
||||
#endif
|
||||
};
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#endif
|
||||
94
harbour/contrib/hbqt/hbqscintilla/qth/HBQsciScintilla.qth
Normal file
94
harbour/contrib/hbqt/hbqscintilla/qth/HBQsciScintilla.qth
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* $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 = Yes
|
||||
Inherits = QsciScintilla
|
||||
Type =
|
||||
New =
|
||||
Folder = qscintilla
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
|
||||
#include "hbqt_hbqsciscintilla.h"
|
||||
#include "hbqt_garbage.h"
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
HB_FUNC( QT_HBQSCISCINTILLA )
|
||||
{
|
||||
hb_retptr( new HBQsciScintilla( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
|
||||
<VARIABLES>
|
||||
</VARIABLES>
|
||||
|
||||
115
harbour/contrib/hbqt/hbqscintilla/qth/QsciAPIs.qth
Normal file
115
harbour/contrib/hbqt/hbqscintilla/qth/QsciAPIs.qth
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject =
|
||||
Inherits = QsciAbstractAPIs
|
||||
Type =
|
||||
New =
|
||||
Folder = hbqscintilla
|
||||
</CLASS>
|
||||
|
||||
<SUBCLASS>
|
||||
</SUBCLASS>
|
||||
|
||||
<DOC>
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <qsciapis.h>
|
||||
#include "hbqt_garbage.h"
|
||||
|
||||
|
||||
/*
|
||||
* QsciAPIs (QsciLexer *lexer)
|
||||
* virtual ~QsciAPIs ()
|
||||
*
|
||||
*/
|
||||
HB_FUNC( QT_QSCIAPIS )
|
||||
{
|
||||
hb_retptr( new QsciAPIs( hbqt_par_QsciLexer( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
void add (const QString &entry)
|
||||
void clear ()
|
||||
bool load (const QString &fname)
|
||||
void remove (const QString &entry)
|
||||
void prepare ()
|
||||
void cancelPreparation ()
|
||||
QString defaultPreparedName () const
|
||||
bool isPrepared (const QString &fname=QString()) const
|
||||
bool loadPrepared (const QString &fname=QString())
|
||||
bool savePrepared (const QString &fname=QString()) const
|
||||
virtual void updateAutoCompletionList (const QStringList &context, QStringList &list)
|
||||
virtual void autoCompletionSelected (const QString &sel)
|
||||
virtual QStringList callTips (const QStringList &context, int commas, QsciScintilla::CallTipsStyle style, QList< int > &shifts)
|
||||
virtual bool event (QEvent *e)
|
||||
QStringList installedAPIFiles () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void apiPreparationCancelled ()
|
||||
void apiPreparationStarted ()
|
||||
void apiPreparationFinished ()
|
||||
</SIGNALS>
|
||||
101
harbour/contrib/hbqt/hbqscintilla/qth/QsciAbstractAPIs.qth
Normal file
101
harbour/contrib/hbqt/hbqscintilla/qth/QsciAbstractAPIs.qth
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* $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 =
|
||||
Type =
|
||||
New =
|
||||
Folder = hbqscintilla
|
||||
</CLASS>
|
||||
|
||||
<SUBCLASS>
|
||||
</SUBCLASS>
|
||||
|
||||
<DOC>
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <qsciabstractapis.h>
|
||||
#include "hbqt_garbage.h"
|
||||
|
||||
|
||||
/*
|
||||
* QsciAbstractAPIs (QsciLexer *lexer)
|
||||
* virtual ~QsciAbstractAPIs ()
|
||||
*
|
||||
*/
|
||||
HB_FUNC( QT_QSCIABSTRACTAPIS )
|
||||
{
|
||||
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
QsciLexer * lexer () const
|
||||
virtual void updateAutoCompletionList (const QStringList &context, QStringList &list)=0
|
||||
virtual void autoCompletionSelected (const QString &selection)
|
||||
virtual QStringList callTips (const QStringList &context, int commas, QsciScintilla::CallTipsStyle style, QList< int > &shifts)=0
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
102
harbour/contrib/hbqt/hbqscintilla/qth/QsciCommand.qth
Normal file
102
harbour/contrib/hbqt/hbqscintilla/qth/QsciCommand.qth
Normal file
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* $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 =
|
||||
Folder = hbqscintilla
|
||||
</CLASS>
|
||||
|
||||
<SUBCLASS>
|
||||
</SUBCLASS>
|
||||
|
||||
<DOC>
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <qscicommand.h>
|
||||
#include "hbqt_garbage.h"
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
*/
|
||||
HB_FUNC( QT_QSCICOMMAND )
|
||||
{
|
||||
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
void setKey (int key)
|
||||
void setAlternateKey (int altkey)
|
||||
int key () const
|
||||
int alternateKey () const
|
||||
QString description () const
|
||||
bool validKey (int key)
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
101
harbour/contrib/hbqt/hbqscintilla/qth/QsciCommandSet.qth
Normal file
101
harbour/contrib/hbqt/hbqscintilla/qth/QsciCommandSet.qth
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* $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 =
|
||||
Folder = hbqscintilla
|
||||
</CLASS>
|
||||
|
||||
<SUBCLASS>
|
||||
</SUBCLASS>
|
||||
|
||||
<DOC>
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <qscicommandset.h>
|
||||
#include "hbqt_garbage.h"
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
*/
|
||||
HB_FUNC( QT_QSCICOMMANDSET )
|
||||
{
|
||||
//hb_retptr( new QsciCommandSet() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
bool readSettings (QSettings &qs, const char *prefix="/Scintilla")
|
||||
bool writeSettings (QSettings &qs, const char *prefix="/Scintilla")
|
||||
QList< QsciCommand * > & commands ()
|
||||
void clearKeys ()
|
||||
void clearAlternateKeys ()
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
104
harbour/contrib/hbqt/hbqscintilla/qth/QsciDocument.qth
Normal file
104
harbour/contrib/hbqt/hbqscintilla/qth/QsciDocument.qth
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits =
|
||||
Type =
|
||||
New =
|
||||
Folder = hbqscintilla
|
||||
</CLASS>
|
||||
|
||||
<SUBCLASS>
|
||||
</SUBCLASS>
|
||||
|
||||
<DOC>
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <qscidocument.h>
|
||||
#include "hbqt_garbage.h"
|
||||
|
||||
|
||||
/*
|
||||
* QsciDocument ()
|
||||
* QsciDocument (const QsciDocument &)
|
||||
*
|
||||
*/
|
||||
HB_FUNC( QT_QSCIDOCUMENT )
|
||||
{
|
||||
if( HB_ISPOINTER( 1 ) )
|
||||
{
|
||||
hb_retptr( new QsciDocument( *hbqt_par_QsciDocument( 1 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( new QsciDocument() );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
149
harbour/contrib/hbqt/hbqscintilla/qth/QsciLexer.qth
Normal file
149
harbour/contrib/hbqt/hbqscintilla/qth/QsciLexer.qth
Normal file
@@ -0,0 +1,149 @@
|
||||
/*
|
||||
* $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 =
|
||||
Type =
|
||||
New =
|
||||
Folder = hbqscintilla
|
||||
Destructor = no
|
||||
</CLASS>
|
||||
|
||||
<SUBCLASS>
|
||||
</SUBCLASS>
|
||||
|
||||
<DOC>
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <qscilexer.h>
|
||||
#include "hbqt_garbage.h"
|
||||
|
||||
|
||||
/*
|
||||
* QsciLexer (QObject *parent=0)
|
||||
* virtual ~QsciLexer ()
|
||||
*
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXER )
|
||||
{
|
||||
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
virtual const char * language () const =0
|
||||
virtual const char * lexer () const
|
||||
virtual int lexerId () const
|
||||
QsciAbstractAPIs * apis () const
|
||||
virtual const char * autoCompletionFillups () const
|
||||
virtual QStringList autoCompletionWordSeparators () const
|
||||
int autoIndentStyle ()
|
||||
virtual const char * blockEnd (int *style=0) const
|
||||
virtual int blockLookback () const
|
||||
virtual const char * blockStart (int *style=0) const
|
||||
virtual const char * blockStartKeyword (int *style=0) const
|
||||
virtual int braceStyle () const
|
||||
virtual bool caseSensitive () const
|
||||
virtual QColor color (int style) const
|
||||
virtual bool eolFill (int style) const
|
||||
virtual QFont font (int style) const
|
||||
virtual int indentationGuideView () const
|
||||
virtual const char * keywords (int set) const
|
||||
virtual int defaultStyle () const
|
||||
virtual QString description (int style) const =0
|
||||
virtual QColor paper (int style) const
|
||||
QColor defaultColor () const
|
||||
virtual QColor defaultColor (int style) const
|
||||
virtual bool defaultEolFill (int style) const
|
||||
QFont defaultFont () const
|
||||
virtual QFont defaultFont (int style) const
|
||||
QColor defaultPaper () const
|
||||
virtual QColor defaultPaper (int style) const
|
||||
QsciScintilla * editor () const
|
||||
virtual void setEditor (QsciScintilla *editor)
|
||||
bool readSettings (QSettings &qs, const char *prefix="/Scintilla")
|
||||
virtual void refreshProperties ()
|
||||
virtual int styleBitsNeeded () const
|
||||
virtual const char * wordCharacters () const
|
||||
bool writeSettings (QSettings &qs, const char *prefix="/Scintilla") const
|
||||
|
||||
void setAPIs (QsciAbstractAPIs *apis)
|
||||
void setDefaultColor (const QColor &c)
|
||||
void setDefaultFont (const QFont &f)
|
||||
void setDefaultPaper (const QColor &c)
|
||||
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
virtual void setAutoIndentStyle (int autoindentstyle)
|
||||
virtual void setColor (const QColor &c, int style=-1)
|
||||
virtual void setEolFill (bool eoffill, int style=-1)
|
||||
virtual void setFont (const QFont &f, int style=-1)
|
||||
virtual void setPaper (const QColor &c, int style=-1)
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void colorChanged (const QColor &c, int style)
|
||||
void eolFillChanged (bool eolfilled, int style)
|
||||
void fontChanged (const QFont &f, int style)
|
||||
void paperChanged (const QColor &c, int style)
|
||||
void propertyChanged (const char *prop, const char *val)
|
||||
</SIGNALS>
|
||||
148
harbour/contrib/hbqt/hbqscintilla/qth/QsciLexerCPP.qth
Normal file
148
harbour/contrib/hbqt/hbqscintilla/qth/QsciLexerCPP.qth
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* $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 = QsciLexer
|
||||
Type =
|
||||
New =
|
||||
Folder = hbqscintilla
|
||||
</CLASS>
|
||||
|
||||
<SUBCLASS>
|
||||
</SUBCLASS>
|
||||
|
||||
<DOC>
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <qscilexercpp.h>
|
||||
#include "hbqt_garbage.h"
|
||||
|
||||
|
||||
/*
|
||||
* QsciLexerCPP (QObject *parent=0, bool caseInsensitiveKeywords=false)
|
||||
* virtual ~QsciLexerCPP ()
|
||||
*
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERCPP )
|
||||
{
|
||||
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
|
||||
{
|
||||
hb_retptr( new QsciLexerCPP( hbqt_par_QObject( 1 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 1 && HB_ISLOG( 1 ) )
|
||||
{
|
||||
hb_retptr( new QsciLexerCPP( 0, hb_parl( 1 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISLOG( 2 ) )
|
||||
{
|
||||
hb_retptr( new QsciLexerCPP( hbqt_par_QObject( 1 ), hb_parl( 2 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( new QsciLexerCPP() );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum {
|
||||
Default = 0, Comment = 1, CommentLine = 2,
|
||||
CommentDoc = 3, Number = 4, Keyword = 5,
|
||||
DoubleQuotedString = 6, SingleQuotedString = 7, UUID = 8,
|
||||
PreProcessor = 9, Operator = 10, Identifier = 11,
|
||||
UnclosedString = 12, VerbatimString = 13, Regex = 14,
|
||||
CommentLineDoc = 15, KeywordSet2 = 16, CommentDocKeyword = 17,
|
||||
CommentDocKeywordError = 18, GlobalClass = 19
|
||||
}
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
const char * language () const
|
||||
const char * lexer () const
|
||||
QStringList autoCompletionWordSeparators () const
|
||||
const char * blockEnd (int *style=0) const
|
||||
const char * blockStart (int *style=0) const
|
||||
const char * blockStartKeyword (int *style=0) const
|
||||
int braceStyle () const
|
||||
const char * wordCharacters () const
|
||||
QColor defaultColor (int style) const
|
||||
bool defaultEolFill (int style) const
|
||||
QFont defaultFont (int style) const
|
||||
QColor defaultPaper (int style) const
|
||||
const char * keywords (int set) const
|
||||
QString description (int style) const
|
||||
void refreshProperties ()
|
||||
bool foldAtElse () const
|
||||
bool foldComments () const
|
||||
bool foldCompact () const
|
||||
bool foldPreprocessor () const
|
||||
bool stylePreprocessor () const
|
||||
void setDollarsAllowed (bool allowed)
|
||||
bool dollarsAllowed () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
virtual void setFoldAtElse (bool fold)
|
||||
virtual void setFoldComments (bool fold)
|
||||
virtual void setFoldCompact (bool fold)
|
||||
virtual void setFoldPreprocessor (bool fold)
|
||||
virtual void setStylePreprocessor (bool style)
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
148
harbour/contrib/hbqt/hbqscintilla/qth/QsciLexerFlagship.qth
Normal file
148
harbour/contrib/hbqt/hbqscintilla/qth/QsciLexerFlagship.qth
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* $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 = QsciLexer
|
||||
Type =
|
||||
New =
|
||||
Folder = hbqscintilla
|
||||
</CLASS>
|
||||
|
||||
<SUBCLASS>
|
||||
</SUBCLASS>
|
||||
|
||||
<DOC>
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <qscilexerflagship.h>
|
||||
#include "hbqt_garbage.h"
|
||||
|
||||
|
||||
/*
|
||||
* QsciLexerFlagship (QObject *parent=0, bool caseInsensitiveKeywords=false)
|
||||
* virtual ~QsciLexerFlagship ()
|
||||
*
|
||||
*/
|
||||
HB_FUNC( QT_QSCILEXERFLAGSHIP )
|
||||
{
|
||||
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
|
||||
{
|
||||
hb_retptr( new QsciLexerFlagship( hbqt_par_QObject( 1 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 1 && HB_ISLOG( 1 ) )
|
||||
{
|
||||
hb_retptr( new QsciLexerFlagship( 0, hb_parl( 1 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISLOG( 2 ) )
|
||||
{
|
||||
hb_retptr( new QsciLexerFlagship( hbqt_par_QObject( 1 ), hb_parl( 2 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( new QsciLexerFlagship() );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum {
|
||||
Default = 0, Comment = 1, CommentLine = 2,
|
||||
CommentDoc = 3, Number = 4, Keyword = 5,
|
||||
DoubleQuotedString = 6, SingleQuotedString = 7, UUID = 8,
|
||||
PreProcessor = 9, Operator = 10, Identifier = 11,
|
||||
UnclosedString = 12, VerbatimString = 13, Regex = 14,
|
||||
CommentLineDoc = 15, KeywordSet2 = 16, CommentDocKeyword = 17,
|
||||
CommentDocKeywordError = 18, GlobalClass = 19
|
||||
}
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
const char * language () const
|
||||
const char * lexer () const
|
||||
QStringList autoCompletionWordSeparators () const
|
||||
const char * blockEnd (int *style=0) const
|
||||
const char * blockStart (int *style=0) const
|
||||
const char * blockStartKeyword (int *style=0) const
|
||||
int braceStyle () const
|
||||
const char * wordCharacters () const
|
||||
QColor defaultColor (int style) const
|
||||
bool defaultEolFill (int style) const
|
||||
QFont defaultFont (int style) const
|
||||
QColor defaultPaper (int style) const
|
||||
const char * keywords (int set) const
|
||||
QString description (int style) const
|
||||
void refreshProperties ()
|
||||
bool foldAtElse () const
|
||||
bool foldComments () const
|
||||
bool foldCompact () const
|
||||
bool foldPreprocessor () const
|
||||
bool stylePreprocessor () const
|
||||
void setDollarsAllowed (bool allowed)
|
||||
bool dollarsAllowed () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
virtual void setFoldAtElse (bool fold)
|
||||
virtual void setFoldComments (bool fold)
|
||||
virtual void setFoldCompact (bool fold)
|
||||
virtual void setFoldPreprocessor (bool fold)
|
||||
virtual void setStylePreprocessor (bool style)
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
343
harbour/contrib/hbqt/hbqscintilla/qth/QsciScintilla.qth
Normal file
343
harbour/contrib/hbqt/hbqscintilla/qth/QsciScintilla.qth
Normal file
@@ -0,0 +1,343 @@
|
||||
/*
|
||||
* $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 = Yes
|
||||
Inherits =
|
||||
Type =
|
||||
New =
|
||||
Folder = hbqscintilla
|
||||
</CLASS>
|
||||
|
||||
<CODE>
|
||||
|
||||
#include "qsciscintilla.h"
|
||||
#include "hbqt_garbage.h"
|
||||
|
||||
|
||||
/*
|
||||
* QsciScintilla (QWidget *parent=0)
|
||||
* virtual ~QsciScintilla ()
|
||||
*/
|
||||
HB_FUNC( QT_QSCISCINTILLA )
|
||||
{
|
||||
if( HB_ISPOINTER( 1 ) )
|
||||
{
|
||||
hb_retptr( new QsciScintilla( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( new QsciScintilla() );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum { AiMaintain = 0x01, AiOpening = 0x02, AiClosing = 0x04 }
|
||||
enum AnnotationDisplay { AnnotationHidden = ANNOTATION_HIDDEN, AnnotationStandard = ANNOTATION_STANDARD, AnnotationBoxed = ANNOTATION_BOXED }
|
||||
enum AutoCompletionSource {
|
||||
AcsNone, AcsAll, AcsDocument, AcsAPIs
|
||||
}
|
||||
enum BraceMatch { NoBraceMatch, StrictBraceMatch, SloppyBraceMatch }
|
||||
enum CallTipsStyle {
|
||||
CallTipsNone, CallTipsNoContext, CallTipsNoAutoCompletionContext, CallTipsContext
|
||||
}
|
||||
enum EdgeMode { EdgeNone = EDGE_NONE, EdgeLine = EDGE_LINE, EdgeBackground = EDGE_BACKGROUND }
|
||||
enum EolMode { EolWindows = SC_EOL_CRLF, EolUnix = SC_EOL_LF, EolMac = SC_EOL_CR }
|
||||
enum FoldStyle {
|
||||
NoFoldStyle, PlainFoldStyle, CircledFoldStyle,
|
||||
BoxedFoldStyle, CircledTreeFoldStyle, BoxedTreeFoldStyle
|
||||
}
|
||||
enum MarginType {
|
||||
SymbolMargin = SC_MARGIN_SYMBOL, SymbolMarginDefaultForegroundColor = SC_MARGIN_FORE, SymbolMarginDefaultBackgroundColor = SC_MARGIN_BACK,
|
||||
NumberMargin = SC_MARGIN_NUMBER, TextMargin = SC_MARGIN_TEXT, TextMarginRightJustified = SC_MARGIN_RTEXT
|
||||
}
|
||||
enum MarkerSymbol {
|
||||
Circle = SC_MARK_CIRCLE, Rectangle = SC_MARK_ROUNDRECT, RightTriangle = SC_MARK_ARROW,
|
||||
SmallRectangle = SC_MARK_SMALLRECT, RightArrow = SC_MARK_SHORTARROW, Invisible = SC_MARK_EMPTY,
|
||||
DownTriangle = SC_MARK_ARROWDOWN, Minus = SC_MARK_MINUS, Plus = SC_MARK_PLUS,
|
||||
VerticalLine = SC_MARK_VLINE, BottomLeftCorner = SC_MARK_LCORNER, LeftSideSplitter = SC_MARK_TCORNER,
|
||||
BoxedPlus = SC_MARK_BOXPLUS, BoxedPlusConnected = SC_MARK_BOXPLUSCONNECTED, BoxedMinus = SC_MARK_BOXMINUS,
|
||||
BoxedMinusConnected = SC_MARK_BOXMINUSCONNECTED, RoundedBottomLeftCorner = SC_MARK_LCORNERCURVE, LeftSideRoundedSplitter = SC_MARK_TCORNERCURVE,
|
||||
CircledPlus = SC_MARK_CIRCLEPLUS, CircledPlusConnected = SC_MARK_CIRCLEPLUSCONNECTED, CircledMinus = SC_MARK_CIRCLEMINUS,
|
||||
CircledMinusConnected = SC_MARK_CIRCLEMINUSCONNECTED, Background = SC_MARK_BACKGROUND, ThreeDots = SC_MARK_DOTDOTDOT,
|
||||
ThreeRightArrows = SC_MARK_ARROWS
|
||||
}
|
||||
enum WhitespaceVisibility { WsInvisible = SCWS_INVISIBLE, WsVisible = SCWS_VISIBLEALWAYS, WsVisibleAfterIndent = SCWS_VISIBLEAFTERINDENT }
|
||||
enum WrapMode { WrapNone = SC_WRAP_NONE, WrapWord = SC_WRAP_WORD, WrapCharacter = SC_WRAP_CHAR }
|
||||
enum WrapVisualFlag { WrapFlagNone, WrapFlagByText, WrapFlagByBorder }
|
||||
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
# virtual QStringList apiContext (int pos, int &context_start, int &last_word_start)
|
||||
void annotate (int line, const QString &text, int style)
|
||||
void annotate (int line, const QString &text, const QsciStyle &style)
|
||||
void annotate (int line, const QsciStyledText &text)
|
||||
void annotate (int line, const QList< QsciStyledText > &text)
|
||||
QString annotation (int line) const
|
||||
AnnotationDisplay annotationDisplay () const
|
||||
void clearAnnotations (int line=-1)
|
||||
bool autoCompletionCaseSensitivity () const
|
||||
bool autoCompletionFillupsEnabled () const
|
||||
bool autoCompletionReplaceWord () const
|
||||
bool autoCompletionShowSingle () const
|
||||
AutoCompletionSource autoCompletionSource () const
|
||||
int autoCompletionThreshold () const
|
||||
bool autoIndent () const
|
||||
bool backspaceUnindents () const
|
||||
void beginUndoAction ()
|
||||
BraceMatch braceMatching () const
|
||||
CallTipsStyle callTipsStyle () const
|
||||
int callTipsVisible () const
|
||||
void cancelList ()
|
||||
bool caseSensitive () const
|
||||
void clearFolds ()
|
||||
void clearRegisteredImages ()
|
||||
QColor color () const
|
||||
void convertEols (EolMode mode)
|
||||
QsciDocument document () const
|
||||
void endUndoAction ()
|
||||
QColor edgeColor () const
|
||||
int edgeColumn () const
|
||||
EdgeMode edgeMode () const
|
||||
void setFont (const QFont &f)
|
||||
EolMode eolMode () const
|
||||
bool eolVisibility () const
|
||||
virtual bool findFirst (const QString &expr, bool re, bool cs, bool wo, bool wrap, bool forward=true, int line=-1, int index=-1, bool show=true)
|
||||
virtual bool findNext ()
|
||||
int firstVisibleLine () const
|
||||
FoldStyle folding () const
|
||||
void getCursorPosition (int *line, int *index) const
|
||||
void getSelection (int *lineFrom, int *indexFrom, int *lineTo, int *indexTo) const
|
||||
bool hasSelectedText () const
|
||||
int indentation (int line) const
|
||||
bool indentationGuides () const
|
||||
bool indentationsUseTabs () const
|
||||
int indentationWidth () const
|
||||
bool isCallTipActive () const
|
||||
bool isListActive () const
|
||||
bool isModified () const
|
||||
bool isReadOnly () const
|
||||
bool isRedoAvailable () const
|
||||
bool isUndoAvailable () const
|
||||
bool isUtf8 () const
|
||||
bool isWordCharacter (char ch) const
|
||||
int lineAt (const QPoint &pos) const
|
||||
void lineIndexFromPosition (int position, int *line, int *index) const
|
||||
int lineLength (int line) const
|
||||
int lines () const
|
||||
int length () const
|
||||
QsciLexer * lexer () const
|
||||
bool marginLineNumbers (int margin) const
|
||||
int marginMarkerMask (int margin) const
|
||||
bool marginSensitivity (int margin) const
|
||||
MarginType marginType (int margin) const
|
||||
int marginWidth (int margin) const
|
||||
int markerDefine (MarkerSymbol sym, int mnr=-1)
|
||||
int markerDefine (char ch, int mnr=-1)
|
||||
int markerDefine (const QPixmap &pm, int mnr=-1)
|
||||
int markerAdd (int linenr, int mnr)
|
||||
unsigned markersAtLine (int linenr) const
|
||||
void markerDelete (int linenr, int mnr=-1)
|
||||
void markerDeleteAll (int mnr=-1)
|
||||
void markerDeleteHandle (int mhandle)
|
||||
int markerLine (int mhandle) const
|
||||
int markerFindNext (int linenr, unsigned mask) const
|
||||
int markerFindPrevious (int linenr, unsigned mask) const
|
||||
QColor paper () const
|
||||
int positionFromLineIndex (int line, int index) const
|
||||
bool read (QIODevice *io)
|
||||
virtual void recolor (int start=0, int end=-1)
|
||||
void registerImage (int id, const QPixmap &pm)
|
||||
virtual void replace (const QString &replaceStr)
|
||||
void resetFoldMarginColors ()
|
||||
void setFoldMarginColors (const QColor &fore, const QColor &back)
|
||||
void setAnnotationDisplay (AnnotationDisplay display)
|
||||
void setAutoCompletionFillupsEnabled (bool enabled)
|
||||
void setAutoCompletionFillups (const char *fillups)
|
||||
void setAutoCompletionWordSeparators (const QStringList &separators)
|
||||
void setCallTipsBackgroundColor (const QColor &col)
|
||||
void setCallTipsForegroundColor (const QColor &col)
|
||||
void setCallTipsHighlightColor (const QColor &col)
|
||||
void setCallTipsStyle (CallTipsStyle style)
|
||||
void setCallTipsVisible (int nr)
|
||||
void setDocument (const QsciDocument &document)
|
||||
void setEdgeColor (const QColor &col)
|
||||
void setEdgeColumn (int colnr)
|
||||
void setEdgeMode (EdgeMode mode)
|
||||
void setMarginText (int line, const QString &text, int style)
|
||||
void setMarginText (int line, const QString &text, const QsciStyle &style)
|
||||
void setMarginText (int line, const QsciStyledText &text)
|
||||
void setMarginText (int line, const QList< QsciStyledText > &text)
|
||||
void setMarginType (int margin, MarginType type)
|
||||
void clearMarginText (int line=-1)
|
||||
void setMarkerBackgroundColor (const QColor &col, int mnr=-1)
|
||||
void setMarkerForegroundColor (const QColor &col, int mnr=-1)
|
||||
void setMatchedBraceBackgroundColor (const QColor &col)
|
||||
void setMatchedBraceForegroundColor (const QColor &col)
|
||||
void setUnmatchedBraceBackgroundColor (const QColor &col)
|
||||
void setUnmatchedBraceForegroundColor (const QColor &col)
|
||||
void setWrapVisualFlags (WrapVisualFlag eflag, WrapVisualFlag sflag=WrapFlagNone, int sindent=0)
|
||||
QString selectedText () const
|
||||
bool selectionToEol () const
|
||||
void setSelectionToEol (bool filled)
|
||||
void showUserList (int id, const QStringList &list)
|
||||
QsciCommandSet * standardCommands () const
|
||||
bool tabIndents () const
|
||||
int tabWidth () const
|
||||
QString text () const
|
||||
QString text (int line) const
|
||||
int textHeight (int linenr) const
|
||||
WhitespaceVisibility whitespaceVisibility () const
|
||||
QString wordAtPoint (const QPoint &point) const
|
||||
const char * wordCharacters () const
|
||||
WrapMode wrapMode () const
|
||||
bool write (QIODevice *io) const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
virtual void append (const QString &text)
|
||||
virtual void autoCompleteFromAll ()
|
||||
virtual void autoCompleteFromAPIs ()
|
||||
virtual void autoCompleteFromDocument ()
|
||||
virtual void callTip ()
|
||||
virtual void clear ()
|
||||
virtual void copy ()
|
||||
virtual void cut ()
|
||||
virtual void ensureCursorVisible ()
|
||||
virtual void ensureLineVisible (int line)
|
||||
virtual void foldAll (bool children=false)
|
||||
virtual void foldLine (int line)
|
||||
virtual void indent (int line)
|
||||
virtual void insert (const QString &text)
|
||||
virtual void insertAt (const QString &text, int line, int index)
|
||||
virtual void moveToMatchingBrace ()
|
||||
virtual void paste ()
|
||||
virtual void redo ()
|
||||
virtual void removeSelectedText ()
|
||||
virtual void resetSelectionBackgroundColor ()
|
||||
virtual void resetSelectionForegroundColor ()
|
||||
virtual void selectAll (bool select=true)
|
||||
virtual void selectToMatchingBrace ()
|
||||
virtual void setAutoCompletionCaseSensitivity (bool cs)
|
||||
virtual void setAutoCompletionReplaceWord (bool replace)
|
||||
virtual void setAutoCompletionShowSingle (bool single)
|
||||
virtual void setAutoCompletionSource (AutoCompletionSource source)
|
||||
virtual void setAutoCompletionThreshold (int thresh)
|
||||
virtual void setAutoIndent (bool autoindent)
|
||||
virtual void setBraceMatching (BraceMatch bm)
|
||||
virtual void setBackspaceUnindents (bool unindent)
|
||||
virtual void setCaretForegroundColor (const QColor &col)
|
||||
virtual void setCaretLineBackgroundColor (const QColor &col)
|
||||
virtual void setCaretLineVisible (bool enable)
|
||||
virtual void setCaretWidth (int width)
|
||||
virtual void setColor (const QColor &c)
|
||||
virtual void setCursorPosition (int line, int index)
|
||||
virtual void setEolMode (EolMode mode)
|
||||
virtual void setEolVisibility (bool visible)
|
||||
virtual void setFolding (FoldStyle fold, int margin=2)
|
||||
virtual void setIndentation (int line, int indentation)
|
||||
virtual void setIndentationGuides (bool enable)
|
||||
virtual void setIndentationGuidesBackgroundColor (const QColor &col)
|
||||
virtual void setIndentationGuidesForegroundColor (const QColor &col)
|
||||
virtual void setIndentationsUseTabs (bool tabs)
|
||||
virtual void setIndentationWidth (int width)
|
||||
virtual void setLexer (QsciLexer *lexer=0)
|
||||
virtual void setMarginsBackgroundColor (const QColor &col)
|
||||
virtual void setMarginsFont (const QFont &f)
|
||||
virtual void setMarginsForegroundColor (const QColor &col)
|
||||
virtual void setMarginLineNumbers (int margin, bool lnrs)
|
||||
virtual void setMarginMarkerMask (int margin, int mask)
|
||||
virtual void setMarginSensitivity (int margin, bool sens)
|
||||
virtual void setMarginWidth (int margin, int width)
|
||||
virtual void setMarginWidth (int margin, const QString &s)
|
||||
virtual void setModified (bool m)
|
||||
virtual void setPaper (const QColor &c)
|
||||
virtual void setReadOnly (bool ro)
|
||||
virtual void setSelection (int lineFrom, int indexFrom, int lineTo, int indexTo)
|
||||
virtual void setSelectionBackgroundColor (const QColor &col)
|
||||
virtual void setSelectionForegroundColor (const QColor &col)
|
||||
virtual void setTabIndents (bool indent)
|
||||
virtual void setTabWidth (int width)
|
||||
virtual void setText (const QString &text)
|
||||
virtual void setUtf8 (bool cp)
|
||||
virtual void setWhitespaceVisibility (WhitespaceVisibility mode)
|
||||
virtual void setWrapMode (WrapMode mode)
|
||||
virtual void undo ()
|
||||
virtual void unindent (int line)
|
||||
virtual void zoomIn (int range)
|
||||
virtual void zoomIn ()
|
||||
virtual void zoomOut (int range)
|
||||
virtual void zoomOut ()
|
||||
virtual void zoomTo (int size)
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
void cursorPositionChanged (int line, int pos)
|
||||
void copyAvailable (bool yes)
|
||||
void linesChanged ()
|
||||
void marginClicked (int margin, int line, Qt::KeyboardModifiers state)
|
||||
void modificationAttempted ()
|
||||
void modificationChanged (bool m)
|
||||
void selectionChanged ()
|
||||
void textChanged ()
|
||||
void userListActivated (int id, const QString &string)
|
||||
</SIGNALS>
|
||||
|
||||
<VARIABLES>
|
||||
</VARIABLES>
|
||||
|
||||
129
harbour/contrib/hbqt/hbqscintilla/qth/QsciStyle.qth
Normal file
129
harbour/contrib/hbqt/hbqscintilla/qth/QsciStyle.qth
Normal file
@@ -0,0 +1,129 @@
|
||||
/*
|
||||
* $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 =
|
||||
Type =
|
||||
New =
|
||||
Folder = hbqscintilla
|
||||
</CLASS>
|
||||
|
||||
<SUBCLASS>
|
||||
</SUBCLASS>
|
||||
|
||||
<DOC>
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <qscistyle.h>
|
||||
#include "hbqt_garbage.h"
|
||||
|
||||
|
||||
/*
|
||||
* QsciStyle (int style=-1)
|
||||
* QsciStyle (int style, const QString &description, const QColor &color, const QColor &paper, const QFont &font, bool eol_fill=false)
|
||||
*
|
||||
*/
|
||||
HB_FUNC( QT_QSCISTYLE )
|
||||
{
|
||||
if( HB_ISNUMERIC( 1 ) )
|
||||
{
|
||||
hb_retptr( new QsciStyle( hb_parni( 1 ) ) );
|
||||
}
|
||||
else if( hb_pcount() >= 5 )
|
||||
{
|
||||
hb_retptr( new QsciStyle( hb_parni( 1 ), hbqt_par_QString( 2 ), *hbqt_par_QColor( 3 ), *hbqt_par_QColor( 4 ), * hbqt_par_QFont( 5 ), HB_ISLOG( 6 ) ? hb_parl( 6 ) : false ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( new QsciStyle() );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
enum TextCase { OriginalCase = 0, UpperCase = 1, LowerCase = 2 }
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
int style () const
|
||||
void setDescription (const QString &description)
|
||||
QString description () const
|
||||
void setColor (const QColor &color)
|
||||
QColor color () const
|
||||
void setPaper (const QColor &paper)
|
||||
QColor paper () const
|
||||
void setFont (const QFont &font)
|
||||
QFont font () const
|
||||
void setEolFill (bool fill)
|
||||
bool eolFill () const
|
||||
void setTextCase (TextCase text_case)
|
||||
TextCase textCase () const
|
||||
void setVisible (bool visible)
|
||||
bool visible () const
|
||||
void setChangeable (bool changeable)
|
||||
bool changeable () const
|
||||
void setHotspot (bool hotspot)
|
||||
bool hotspot () const
|
||||
void refresh ()
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
106
harbour/contrib/hbqt/hbqscintilla/qth/QsciStyledText.qth
Normal file
106
harbour/contrib/hbqt/hbqscintilla/qth/QsciStyledText.qth
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT Source Generator for Harbour
|
||||
*
|
||||
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
||||
* www - http://www.harbour-project.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
||||
*
|
||||
* As a special exception, the Harbour Project gives permission for
|
||||
* additional uses of the text contained in its release of Harbour.
|
||||
*
|
||||
* The exception is that, if you link the Harbour libraries with other
|
||||
* files to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the Harbour library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the Harbour
|
||||
* Project under the name Harbour. If you copy code from other
|
||||
* Harbour Project or Free Software Foundation releases into a copy of
|
||||
* Harbour, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for Harbour, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
;
|
||||
; Header File to Generate QT Wrapper Sources
|
||||
;
|
||||
|
||||
<CLASS>
|
||||
QObject = no
|
||||
Inherits =
|
||||
Type =
|
||||
New =
|
||||
Folder = hbqscintilla
|
||||
</CLASS>
|
||||
|
||||
<SUBCLASS>
|
||||
</SUBCLASS>
|
||||
|
||||
<DOC>
|
||||
</DOC>
|
||||
|
||||
<CODE>
|
||||
#include <qscistyledtext.h>
|
||||
#include "hbqt_garbage.h"
|
||||
|
||||
|
||||
/*
|
||||
* QsciStyledText (const QString &text, int style)
|
||||
* QsciStyledText (const QString &text, const QsciStyle &style)
|
||||
*
|
||||
*/
|
||||
HB_FUNC( QT_QSCISTYLEDTEXT )
|
||||
{
|
||||
if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISNUM( 2 ) )
|
||||
{
|
||||
hb_retptr( new QsciStyledText( hbqt_par_QString( 1 ), hb_parni( 2 ) ) );
|
||||
}
|
||||
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
|
||||
{
|
||||
hb_retptr( new QsciStyledText( hbqt_par_QString( 1 ), *hbqt_par_QsciStyle( 2 ) ) );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
<ENUMS>
|
||||
</ENUMS>
|
||||
|
||||
<PROTOS>
|
||||
const QString & text () const
|
||||
int style () const
|
||||
</PROTOS>
|
||||
|
||||
<SLOTS>
|
||||
</SLOTS>
|
||||
|
||||
<SIGNALS>
|
||||
</SIGNALS>
|
||||
@@ -407,6 +407,20 @@ extern void * hbqt_pPtrFromItem( PHB_ITEM pObj );
|
||||
#define hbqt_par_HBQTextBlockUserData( n ) ( ( HBQTextBlockUserData * ) hbqt_gcpointer( n ) )
|
||||
#define hbqt_par_HBSlots( n ) ( ( HBSlots * ) hbqt_gcpointer( n ) )
|
||||
|
||||
#define hbqt_par_HBQsciScintilla( n ) ( ( HBQsciScintilla * ) hbqt_gcpointer( n ) )
|
||||
#define hbqt_par_QsciScintilla( n ) ( ( QsciScintilla * ) hbqt_gcpointer( n ) )
|
||||
#define hbqt_par_QsciLexer( n ) ( ( QsciLexer * ) hbqt_gcpointer( n ) )
|
||||
#define hbqt_par_QsciLexerCPP( n ) ( ( QsciLexerCPP * ) hbqt_gcpointer( n ) )
|
||||
#define hbqt_par_QsciLexerFlagship( n ) ( ( QsciLexerFlagship * ) hbqt_gcpointer( n ) )
|
||||
#define hbqt_par_QsciAbstractAPIs( n ) ( ( QsciAbstractAPIs * ) hbqt_gcpointer( n ) )
|
||||
#define hbqt_par_QsciAPIs( n ) ( ( QsciAPIs * ) hbqt_gcpointer( n ) )
|
||||
#define hbqt_par_QsciDocument( n ) ( ( QsciDocument * ) hbqt_gcpointer( n ) )
|
||||
#define hbqt_par_QsciStyle( n ) ( ( QsciStyle * ) hbqt_gcpointer( n ) )
|
||||
#define hbqt_par_QsciStyledText( n ) ( ( QsciStyledText * ) hbqt_gcpointer( n ) )
|
||||
#define hbqt_par_QsciCommand( n ) ( ( QsciCommand * ) hbqt_gcpointer( n ) )
|
||||
#define hbqt_par_QsciCommandSet( n ) ( ( QsciCommandSet * ) hbqt_gcpointer( n ) )
|
||||
|
||||
|
||||
#define hbqt_par_QString( n ) ( ( QString ) hb_parcx( n ) )
|
||||
#define hbqt_par_QRgb( n ) ( hb_parnint( n ) )
|
||||
#define hbqt_par_Bool( n ) ( hb_parl( n ) )
|
||||
|
||||
Reference in New Issue
Block a user