2009-03-29 09:03 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
+ harbour/contrib/hbqt/doc
+ Added folder to receive auto-generated Q*.txt documentation
files with PRG level functions with parameters and return value like:
Qt_QWidget_setContentsMargins( pQWidget, nLeft, nTop, nRight, nBottom ) -> NIL
+ harbour/contrib/hbqt/gensource
+ Added folder to receive auto generated .cpp sources.
The idea is to have freedom to generate sources and test them
prior to committing to distribution folder.
* harbour/contrib/hbqt/hbqt.h
+ Added more parameter and return macros.
+ harbour/contrib/hbqt/hbqt_utils.c
+ Added generic conversion routins to support parameters and return values.
+ harbour/contrib/hbqt/hbqt_qtreewidget.cpp
+ harbour/contrib/hbqt/hbqt_qtreewidgetitem.cpp
* harbour/contrib/hbqt/hbqt_qtreeview.cpp
* harbour/contrib/hbqt/generator/hbqtgen.prg
! Rearrangement of sequences in .qht files.
Implemented project files with .qtp extension.
Implemented auto generation of document files with .txt extension.
USAGE: hbqtgen.exe @qt45.qtp will generate files as:
.
../gensource/hbqt_Q*.cpp
../doc/Q*.txt
+ harbour/contrib/hbqt/generator/qt45.qtp
+ Added project file to generate sources and documenttaion for tested widgets.
+ harbour/contrib/hbqt/qth/QAbstractButton.qth
+ harbour/contrib/hbqt/qth/QAbstractItemView.qth
+ harbour/contrib/hbqt/qth/QAbstractPrintDialog.qth
+ harbour/contrib/hbqt/qth/QAbstractScrollArea.qth
+ harbour/contrib/hbqt/qth/QAbstractSlider.qth
+ harbour/contrib/hbqt/qth/QAbstractSpinBox.qth
+ harbour/contrib/hbqt/qth/QAction.qth
+ harbour/contrib/hbqt/qth/QApplication.qth
+ harbour/contrib/hbqt/qth/QBoxLayout.qth
+ harbour/contrib/hbqt/qth/QBrush.qth
+ harbour/contrib/hbqt/qth/QCalendarWidget.qth
+ harbour/contrib/hbqt/qth/QCheckBox.qth
+ harbour/contrib/hbqt/qth/QColor.qth
+ harbour/contrib/hbqt/qth/QColorDialog.qth
+ harbour/contrib/hbqt/qth/QComboBox.qth
+ harbour/contrib/hbqt/qth/QCommandLinkButton.qth
+ harbour/contrib/hbqt/qth/QCoreApplication.qth
+ harbour/contrib/hbqt/qth/QDateEdit.qth
+ harbour/contrib/hbqt/qth/QDateTimeEdit.qth
+ harbour/contrib/hbqt/qth/QDial.qth
+ harbour/contrib/hbqt/qth/QDialog.qth
+ harbour/contrib/hbqt/qth/QDoubleSpinBox.qth
+ harbour/contrib/hbqt/qth/QErrorMessage.qth
+ harbour/contrib/hbqt/qth/QFileDialog.qth
+ harbour/contrib/hbqt/qth/QFocusFrame.qth
+ harbour/contrib/hbqt/qth/QFont.qth
+ harbour/contrib/hbqt/qth/QFontComboBox.qth
+ harbour/contrib/hbqt/qth/QFontDialog.qth
+ harbour/contrib/hbqt/qth/QFormLayout.qth
+ harbour/contrib/hbqt/qth/QFrame.qth
+ harbour/contrib/hbqt/qth/QGroupBox.qth
+ harbour/contrib/hbqt/qth/QHBoxLayout.qth
+ harbour/contrib/hbqt/qth/QInputDialog.qth
+ harbour/contrib/hbqt/qth/QLabel.qth
+ harbour/contrib/hbqt/qth/QLayout.qth
+ harbour/contrib/hbqt/qth/QLayoutItem.qth
+ harbour/contrib/hbqt/qth/QLCDNumber.qth
+ harbour/contrib/hbqt/qth/QLineEdit.qth
+ harbour/contrib/hbqt/qth/QListView.qth
+ harbour/contrib/hbqt/qth/QMainWindow.qth
+ harbour/contrib/hbqt/qth/QMenu.qth
+ harbour/contrib/hbqt/qth/QMenuBar.qth
+ harbour/contrib/hbqt/qth/QMessageBox.qth
+ harbour/contrib/hbqt/qth/QObject.qth
+ harbour/contrib/hbqt/qth/QPageSetupDialog.qth
+ harbour/contrib/hbqt/qth/QPainter.qth
+ harbour/contrib/hbqt/qth/QPen.qth
+ harbour/contrib/hbqt/qth/QPrintDialog.qth
+ harbour/contrib/hbqt/qth/QPrintPreviewDialog.qth
+ harbour/contrib/hbqt/qth/QProgressBar.qth
+ harbour/contrib/hbqt/qth/QPushButton.qth
+ harbour/contrib/hbqt/qth/QRadioButton.qth
+ harbour/contrib/hbqt/qth/QScrollArea.qth
+ harbour/contrib/hbqt/qth/QScrollBar.qth
+ harbour/contrib/hbqt/qth/QSizeGrip.qth
+ harbour/contrib/hbqt/qth/QSlider.qth
+ harbour/contrib/hbqt/qth/QSpinBox.qth
+ harbour/contrib/hbqt/qth/QSplitter.qth
+ harbour/contrib/hbqt/qth/QTabBar.qth
+ harbour/contrib/hbqt/qth/QTableView.qth
+ harbour/contrib/hbqt/qth/QTableWidget.qth
+ harbour/contrib/hbqt/qth/QTableWidgetItem.qth
+ harbour/contrib/hbqt/qth/QTabWidget.qth
+ harbour/contrib/hbqt/qth/QTextEdit.qth
+ harbour/contrib/hbqt/qth/QTimeEdit.qth
+ harbour/contrib/hbqt/qth/QToolBar.qth
+ harbour/contrib/hbqt/qth/QToolBox.qth
+ harbour/contrib/hbqt/qth/QToolButton.qth
+ harbour/contrib/hbqt/qth/QTreeView.qth
+ harbour/contrib/hbqt/qth/QTreeWidget.qth
+ harbour/contrib/hbqt/qth/QTreeWidgetItem.qth
+ harbour/contrib/hbqt/qth/QVBoxLayout.qth
+ harbour/contrib/hbqt/qth/QWidget.qth
+ Added or changed(4) base header input files to generate sources.
; TODO - Create <Makefile> for generated sources.
- Generate Classes based on compiled members supporting
QT's class hirarchy. As of now generated sources
have limited usage.
; REQUEST ( Przemek ) - Can you please provide a GTWVT.C like
skeleton .cpp which I could use as a base for GTQTC ?
This commit is contained in:
@@ -8,6 +8,123 @@
|
||||
2009-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org)
|
||||
*/
|
||||
|
||||
2009-03-29 09:03 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
|
||||
+ harbour/contrib/hbqt/doc
|
||||
+ Added folder to receive auto-generated Q*.txt documentation
|
||||
files with PRG level functions with parameters and return value like:
|
||||
Qt_QWidget_setContentsMargins( pQWidget, nLeft, nTop, nRight, nBottom ) -> NIL
|
||||
|
||||
+ harbour/contrib/hbqt/gensource
|
||||
+ Added folder to receive auto generated .cpp sources.
|
||||
The idea is to have freedom to generate sources and test them
|
||||
prior to committing to distribution folder.
|
||||
|
||||
* harbour/contrib/hbqt/hbqt.h
|
||||
+ Added more parameter and return macros.
|
||||
|
||||
+ harbour/contrib/hbqt/hbqt_utils.c
|
||||
+ Added generic conversion routins to support parameters and return values.
|
||||
|
||||
+ harbour/contrib/hbqt/hbqt_qtreewidget.cpp
|
||||
+ harbour/contrib/hbqt/hbqt_qtreewidgetitem.cpp
|
||||
* harbour/contrib/hbqt/hbqt_qtreeview.cpp
|
||||
|
||||
* harbour/contrib/hbqt/generator/hbqtgen.prg
|
||||
! Rearrangement of sequences in .qht files.
|
||||
Implemented project files with .qtp extension.
|
||||
Implemented auto generation of document files with .txt extension.
|
||||
USAGE: hbqtgen.exe @qt45.qtp will generate files as:
|
||||
.
|
||||
../gensource/hbqt_Q*.cpp
|
||||
../doc/Q*.txt
|
||||
|
||||
+ harbour/contrib/hbqt/generator/qt45.qtp
|
||||
+ Added project file to generate sources and documenttaion for tested widgets.
|
||||
|
||||
+ harbour/contrib/hbqt/qth/QAbstractButton.qth
|
||||
+ harbour/contrib/hbqt/qth/QAbstractItemView.qth
|
||||
+ harbour/contrib/hbqt/qth/QAbstractPrintDialog.qth
|
||||
+ harbour/contrib/hbqt/qth/QAbstractScrollArea.qth
|
||||
+ harbour/contrib/hbqt/qth/QAbstractSlider.qth
|
||||
+ harbour/contrib/hbqt/qth/QAbstractSpinBox.qth
|
||||
+ harbour/contrib/hbqt/qth/QAction.qth
|
||||
+ harbour/contrib/hbqt/qth/QApplication.qth
|
||||
+ harbour/contrib/hbqt/qth/QBoxLayout.qth
|
||||
+ harbour/contrib/hbqt/qth/QBrush.qth
|
||||
+ harbour/contrib/hbqt/qth/QCalendarWidget.qth
|
||||
+ harbour/contrib/hbqt/qth/QCheckBox.qth
|
||||
+ harbour/contrib/hbqt/qth/QColor.qth
|
||||
+ harbour/contrib/hbqt/qth/QColorDialog.qth
|
||||
+ harbour/contrib/hbqt/qth/QComboBox.qth
|
||||
+ harbour/contrib/hbqt/qth/QCommandLinkButton.qth
|
||||
+ harbour/contrib/hbqt/qth/QCoreApplication.qth
|
||||
+ harbour/contrib/hbqt/qth/QDateEdit.qth
|
||||
+ harbour/contrib/hbqt/qth/QDateTimeEdit.qth
|
||||
+ harbour/contrib/hbqt/qth/QDial.qth
|
||||
+ harbour/contrib/hbqt/qth/QDialog.qth
|
||||
+ harbour/contrib/hbqt/qth/QDoubleSpinBox.qth
|
||||
+ harbour/contrib/hbqt/qth/QErrorMessage.qth
|
||||
+ harbour/contrib/hbqt/qth/QFileDialog.qth
|
||||
+ harbour/contrib/hbqt/qth/QFocusFrame.qth
|
||||
+ harbour/contrib/hbqt/qth/QFont.qth
|
||||
+ harbour/contrib/hbqt/qth/QFontComboBox.qth
|
||||
+ harbour/contrib/hbqt/qth/QFontDialog.qth
|
||||
+ harbour/contrib/hbqt/qth/QFormLayout.qth
|
||||
+ harbour/contrib/hbqt/qth/QFrame.qth
|
||||
+ harbour/contrib/hbqt/qth/QGroupBox.qth
|
||||
+ harbour/contrib/hbqt/qth/QHBoxLayout.qth
|
||||
+ harbour/contrib/hbqt/qth/QInputDialog.qth
|
||||
+ harbour/contrib/hbqt/qth/QLabel.qth
|
||||
+ harbour/contrib/hbqt/qth/QLayout.qth
|
||||
+ harbour/contrib/hbqt/qth/QLayoutItem.qth
|
||||
+ harbour/contrib/hbqt/qth/QLCDNumber.qth
|
||||
+ harbour/contrib/hbqt/qth/QLineEdit.qth
|
||||
+ harbour/contrib/hbqt/qth/QListView.qth
|
||||
+ harbour/contrib/hbqt/qth/QMainWindow.qth
|
||||
+ harbour/contrib/hbqt/qth/QMenu.qth
|
||||
+ harbour/contrib/hbqt/qth/QMenuBar.qth
|
||||
+ harbour/contrib/hbqt/qth/QMessageBox.qth
|
||||
+ harbour/contrib/hbqt/qth/QObject.qth
|
||||
+ harbour/contrib/hbqt/qth/QPageSetupDialog.qth
|
||||
+ harbour/contrib/hbqt/qth/QPainter.qth
|
||||
+ harbour/contrib/hbqt/qth/QPen.qth
|
||||
+ harbour/contrib/hbqt/qth/QPrintDialog.qth
|
||||
+ harbour/contrib/hbqt/qth/QPrintPreviewDialog.qth
|
||||
+ harbour/contrib/hbqt/qth/QProgressBar.qth
|
||||
+ harbour/contrib/hbqt/qth/QPushButton.qth
|
||||
+ harbour/contrib/hbqt/qth/QRadioButton.qth
|
||||
+ harbour/contrib/hbqt/qth/QScrollArea.qth
|
||||
+ harbour/contrib/hbqt/qth/QScrollBar.qth
|
||||
+ harbour/contrib/hbqt/qth/QSizeGrip.qth
|
||||
+ harbour/contrib/hbqt/qth/QSlider.qth
|
||||
+ harbour/contrib/hbqt/qth/QSpinBox.qth
|
||||
+ harbour/contrib/hbqt/qth/QSplitter.qth
|
||||
+ harbour/contrib/hbqt/qth/QTabBar.qth
|
||||
+ harbour/contrib/hbqt/qth/QTableView.qth
|
||||
+ harbour/contrib/hbqt/qth/QTableWidget.qth
|
||||
+ harbour/contrib/hbqt/qth/QTableWidgetItem.qth
|
||||
+ harbour/contrib/hbqt/qth/QTabWidget.qth
|
||||
+ harbour/contrib/hbqt/qth/QTextEdit.qth
|
||||
+ harbour/contrib/hbqt/qth/QTimeEdit.qth
|
||||
+ harbour/contrib/hbqt/qth/QToolBar.qth
|
||||
+ harbour/contrib/hbqt/qth/QToolBox.qth
|
||||
+ harbour/contrib/hbqt/qth/QToolButton.qth
|
||||
+ harbour/contrib/hbqt/qth/QTreeView.qth
|
||||
+ harbour/contrib/hbqt/qth/QTreeWidget.qth
|
||||
+ harbour/contrib/hbqt/qth/QTreeWidgetItem.qth
|
||||
+ harbour/contrib/hbqt/qth/QVBoxLayout.qth
|
||||
+ harbour/contrib/hbqt/qth/QWidget.qth
|
||||
+ Added or changed(4) base header input files to generate sources.
|
||||
|
||||
; TODO - Create <Makefile> for generated sources.
|
||||
- Generate Classes based on compiled members supporting
|
||||
QT's class hirarchy. As of now generated sources
|
||||
have limited usage.
|
||||
|
||||
; REQUEST ( Przemek ) - Can you please provide a GTWVT.C like
|
||||
skeleton .cpp which I could use as a base for GTQTC ?
|
||||
|
||||
|
||||
2009-03-29 22:26 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
|
||||
* config/dos/owatcom.cf
|
||||
* config/win/owatcom.cf
|
||||
|
||||
@@ -94,6 +94,9 @@ CPP_SOURCES=\
|
||||
hbqt_qwizard.cpp \
|
||||
hbqt_slots.cpp \
|
||||
moc_slots.cpp \
|
||||
hbqt_utils.cpp \
|
||||
hbqt_qtreewidget.cpp \
|
||||
hbqt_qtreewidgetitem.cpp \
|
||||
|
||||
|
||||
C_HEADERS=\
|
||||
|
||||
@@ -62,7 +62,7 @@ STATIC s_PathSep
|
||||
|
||||
FUNCTION Main( ... )
|
||||
LOCAL aParam, cLParam
|
||||
LOCAL cParam, cPathOut, cPathIn, cPrjFile, cProFile
|
||||
LOCAL cParam, cPathOut, cPathIn, cPrjFile, cProFile, cPathDoc
|
||||
LOCAL x, cPath, cFile, cExt
|
||||
LOCAL aPrjFiles := {}
|
||||
LOCAL aProFiles := {}
|
||||
@@ -103,6 +103,9 @@ FUNCTION Main( ... )
|
||||
CASE left( cParam,2 ) == '-I'
|
||||
cPathIn := substr( cParam,3 )
|
||||
|
||||
CASE left( cParam,2 ) == '-D'
|
||||
cPathDoc := substr( cParam,3 )
|
||||
|
||||
CASE cParam == '-c'
|
||||
lCompile := .t.
|
||||
|
||||
@@ -123,25 +126,113 @@ FUNCTION Main( ... )
|
||||
cPathOut := DiskName() +':'+ s_PathSep + CurDir()
|
||||
ENDIF
|
||||
IF empty( cPathIn )
|
||||
cPathIn := DiskName() +':'+ s_PathSep + CurDir()
|
||||
cPathIn := DiskName() +':'+ s_PathSep + CurDir()
|
||||
ENDIF
|
||||
IF empty( cPathDoc )
|
||||
cPathDoc := DiskName() +':'+ s_PathSep + CurDir()
|
||||
ENDIF
|
||||
|
||||
/* Manage Project File */
|
||||
FOR EACH cProFile IN aPrjFiles
|
||||
ManageProject( cProFile, cPathIn, cPathOut, cPathDoc )
|
||||
NEXT
|
||||
|
||||
/* Generate .CPP Sources */
|
||||
FOR EACH cProFile IN aProFiles
|
||||
GenSource( cProFile, cPathIn, cPathOut )
|
||||
GenSource( cProFile, cPathIn, cPathOut, cPathDoc )
|
||||
NEXT
|
||||
|
||||
RETURN nil
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
STATIC FUNCTION GenSource( cProFile, cPathIn, cPathOut )
|
||||
LOCAL cFile, cWidget, cExt, cPath, cOrg, cCode
|
||||
LOCAL cPHP, cARGs, cPre, cPost, cFunc, cRet, cArg, ss, cQth, cAr
|
||||
LOCAL s, j, n, n1, hHandle
|
||||
LOCAL a_, b_, txt_, enum_, code_, x_
|
||||
LOCAL types_:= { 'void', 'int', 'bool', 'quint32', 'double', 'QString', 'QIcon', 'qreal' }
|
||||
LOCAL lSupported
|
||||
STATIC FUNCTION ManageProject( cProFile, cPathIn, cPathOut, cPathDoc )
|
||||
LOCAL cFile, cPath, cExt, cPrj, cTkn, cVal
|
||||
LOCAL cPIn, cPOut, cPDoc
|
||||
LOCAL n, nn
|
||||
LOCAL prj_
|
||||
|
||||
hb_fNameSplit( cProFile, @cPath, @cFile, @cExt )
|
||||
|
||||
IF empty( cPath )
|
||||
cFile := cPathIn + s_PathSep + cProFile
|
||||
ELSE
|
||||
cFile := cProFile
|
||||
ENDIF
|
||||
IF !file( cFile )
|
||||
RETURN nil
|
||||
ENDIF
|
||||
|
||||
cPIn := cPathIn
|
||||
cPOut := cPathOut
|
||||
cPDoc := cPathDoc
|
||||
|
||||
DispProgress( cFile )
|
||||
|
||||
cPrj := memoread( cFile )
|
||||
|
||||
/* Pullout all ANSI C style comments */
|
||||
DO WHILE .t.
|
||||
IF ( n := at( '/*', cPrj ) ) == 0
|
||||
EXIT
|
||||
ENDIF
|
||||
/* We must have a matching pair */
|
||||
nn := at( '*/', cPrj )
|
||||
IF nn == 0
|
||||
? 'Project file has unbalanced comment section...'
|
||||
RETURN nil
|
||||
ENDIF
|
||||
cPrj := substr( cPrj,1,n-1 ) + substr( cPrj,nn+2 )
|
||||
ENDDO
|
||||
|
||||
/* Prepare to be parsed properly */
|
||||
cPrj := strtran( cPrj, s_NewLine, _EOL )
|
||||
cPrj := strtran( cPrj, chr( 13 )+chr( 10 ), _EOL )
|
||||
cPrj := strtran( cPrj, chr( 13 ), _EOL )
|
||||
|
||||
prj_:= hb_ATokens( cPrj, _EOL )
|
||||
|
||||
FOR EACH cPrj IN prj_
|
||||
cPrj := alltrim( cPrj )
|
||||
|
||||
IF left( cPrj,1 ) $ ':#;/*'
|
||||
LOOP
|
||||
ENDIF
|
||||
|
||||
IF ( n := at( '=', cPrj ) ) > 0
|
||||
cTkn := alltrim( substr( cPrj,1,n-1 ) )
|
||||
cVal := alltrim( substr( cPrj,n+1 ) )
|
||||
|
||||
IF !empty( cVal )
|
||||
DO CASE
|
||||
CASE cTkn == '-I'
|
||||
cPIn := cVal
|
||||
|
||||
CASE cTkn == '-O'
|
||||
cPOut := cVal
|
||||
|
||||
CASE cTkn == '-D'
|
||||
cPDoc := cVal
|
||||
|
||||
ENDCASE
|
||||
ENDIF
|
||||
|
||||
ELSEIF lower( right( cPrj,4 ) ) == '.qth'
|
||||
GenSource( cPrj, cPIn, cPOut, cPDoc )
|
||||
|
||||
ENDIF
|
||||
NEXT
|
||||
|
||||
RETURN nil
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
STATIC FUNCTION GenSource( cProFile, cPathIn, cPathOut, cPathDoc )
|
||||
LOCAL cFile, cWidget, cExt, cPath, cOrg, cCode, cHBFunc, lSupported
|
||||
LOCAL cPHP, cARGs, cPre, cPost, cFunc, cRet, cArg, ss, cQth, cAr, cName, cNames
|
||||
LOCAL s, j, n, n1, hHandle, nFuncs, nCnvrtd, cRetName, lOk
|
||||
LOCAL a_, b_, txt_, enum_, code_, x_, func_, dummy_, types_, cpp_, hdr_, ftr_, cmntd_, doc_
|
||||
LOCAL nam_, dcc_
|
||||
|
||||
hb_fNameSplit( cProFile, @cPath, @cWidget, @cExt )
|
||||
|
||||
@@ -159,6 +250,8 @@ STATIC FUNCTION GenSource( cProFile, cPathIn, cPathOut )
|
||||
RETURN nil
|
||||
ENDIF
|
||||
|
||||
DispProgress( cFile )
|
||||
|
||||
/* Prepare to be parsed properly */
|
||||
cQth := strtran( cQth, s_NewLine, _EOL )
|
||||
cQth := strtran( cQth, chr( 13 )+chr( 10 ), _EOL )
|
||||
@@ -182,26 +275,27 @@ STATIC FUNCTION GenSource( cProFile, cPathIn, cPathOut )
|
||||
n := 0
|
||||
FOR EACH s IN a_
|
||||
n++
|
||||
IF ( 'enum ' $ s )
|
||||
IF ( 'enum ' $ s .or. 'flags ' $ s )
|
||||
b_:= hb_ATokens( alltrim( s ),' ' )
|
||||
aadd( enum_, b_[ 2 ] )
|
||||
a_[ n ] := ''
|
||||
ENDIF
|
||||
NEXT
|
||||
|
||||
txt_:={}
|
||||
BuildHeader( @txt_ )
|
||||
|
||||
/* Needs to be changed manually */
|
||||
aadd( txt_, "#include <QtGui/"+ cWidget +">" )
|
||||
aadd( txt_, "" )
|
||||
aadd( txt_, "" )
|
||||
|
||||
/* Insert user defined code */
|
||||
IF !empty( code_ )
|
||||
aeval( code_, {|e| aadd( txt_, strtran( e, chr( 13 ), '' ) ) } )
|
||||
aadd( txt_, "" )
|
||||
ENDIF
|
||||
types_ := { 'void', 'int', 'bool', 'quint32', 'double', 'QString', 'QIcon', 'qreal', ;
|
||||
'QRect', 'QSize', 'QPoint' }
|
||||
dummy_ := {}
|
||||
func_ := { { "", 0 } }
|
||||
txt_ := {}
|
||||
cpp_ := {}
|
||||
hdr_ := {}
|
||||
ftr_ := {}
|
||||
cmntd_ := {}
|
||||
doc_ := {}
|
||||
nFuncs := 0
|
||||
nCnvrtd := 0
|
||||
cName := ''
|
||||
cNames := ''
|
||||
|
||||
/* Body */
|
||||
FOR EACH s IN a_
|
||||
@@ -210,13 +304,20 @@ STATIC FUNCTION GenSource( cProFile, cPathIn, cPathOut )
|
||||
/* Normalize */
|
||||
s := strtran( s, ' (', '(' )
|
||||
s := strtran( s, ' *', '*' )
|
||||
s := strtran( s, 'virtual ', '' )
|
||||
s := alltrim( s )
|
||||
|
||||
IF empty( s ) .or. left( s,1 ) == '#' .or. left( s,2 ) == '//' .or. ( 'virtual' $ s )
|
||||
IF left( s,2 ) == '//'
|
||||
aadd( cmntd_, cOrg )
|
||||
LOOP
|
||||
ENDIF
|
||||
IF empty( s ) .or. left( s,1 ) == '#' .or. ( 'virtual' $ s )
|
||||
LOOP
|
||||
ENDIF
|
||||
|
||||
IF( n := at( '(', s ) ) > 0
|
||||
IF ( n := at( '(', s ) ) > 0
|
||||
nFuncs++
|
||||
|
||||
n1 := rat( ')', s )
|
||||
IF n+1 == n1
|
||||
cARGs := ''
|
||||
@@ -226,6 +327,9 @@ STATIC FUNCTION GenSource( cProFile, cPathIn, cPathOut )
|
||||
cPre := alltrim( substr( s, 1, n-1 ) )
|
||||
cPost := alltrim( substr( s, n1+2 ) )
|
||||
|
||||
/* Normalize cPre */
|
||||
cPre := strtran( cPre, 'const ', '' )
|
||||
|
||||
IF ( n := rat( ' ', cPre ) ) > 0
|
||||
cFunc := alltrim( substr( cPre, n+1 ) )
|
||||
cRet := alltrim( substr( cPre, 1, n-1 ) )
|
||||
@@ -237,29 +341,42 @@ STATIC FUNCTION GenSource( cProFile, cPathIn, cPathOut )
|
||||
/* There must be a return type */
|
||||
IF !empty( cRet )
|
||||
/* If return type is supported by auto engine */
|
||||
IF ( '::' $ cRet ) .or. ascan( types_, cRet ) > 0 .or. ;
|
||||
IF ( '::' $ cRet ) .or. ;
|
||||
ascan( types_, cRet ) > 0 .or. ;
|
||||
ascan( enum_, cRet ) > 0 .or. ;
|
||||
( ( '*' $ cRet ) .and. !( '<' $ cRet ) )
|
||||
lSupported := .t.
|
||||
cArg := ''
|
||||
cNames := ''
|
||||
IF !empty( cARGs )
|
||||
b_:= hb_ATokens( cARGs, ',' )
|
||||
IF !empty( b_ )
|
||||
FOR j := 1 TO len( b_ )
|
||||
ss := alltrim( b_[ j ] )
|
||||
ss := strtran( ss, 'const ', '' )
|
||||
IF ( n := at( ' ', ss ) ) > 0
|
||||
cAr := substr( ss, 1, n-1 )
|
||||
ss := strtran( ss, '& ', '' )
|
||||
ss := strtran( ss, '&', '' )
|
||||
ss := alltrim( ss )
|
||||
|
||||
nam_:= hb_ATokens( ss, ' ' )
|
||||
|
||||
IF len( nam_ ) > 1
|
||||
cAr := nam_[ 1 ]
|
||||
cName := nam_[ 2 ]
|
||||
ELSE
|
||||
cAr := ss
|
||||
cAr := nam_[ 1 ]
|
||||
cName := nam_[ 1 ]
|
||||
ENDIF
|
||||
|
||||
/* If argument type is supported by the engine */
|
||||
DO CASE
|
||||
CASE ( '::' $ cAr )
|
||||
|
||||
CASE ascan( enum_, cAr ) > 0
|
||||
|
||||
CASE '<' $ cAr
|
||||
lSupported := .f.
|
||||
|
||||
CASE ( '::' $ cAr )
|
||||
|
||||
CASE ( '*' $ ss )
|
||||
IF ascan( types_, strtran( cAr,'*','' ) ) > 0
|
||||
lSupported := .f.
|
||||
@@ -273,43 +390,117 @@ STATIC FUNCTION GenSource( cProFile, cPathIn, cPathOut )
|
||||
IF !lSupported
|
||||
EXIT
|
||||
ENDIF
|
||||
cArg += cAr + ','
|
||||
|
||||
cArg += cAr + ','
|
||||
cName := upper( left( cName,1 ) ) + substr( cName,2 )
|
||||
cNames += cName + ','
|
||||
NEXT
|
||||
cArg := substr( cArg, 1, len( cArg )-1 )
|
||||
cNames := substr( cNames, 1, len( cNames )-1 )
|
||||
ENDIF
|
||||
ENDIF
|
||||
|
||||
IF lSupported
|
||||
BuildFunction( @txt_, cWidget, cOrg, cFunc, cArg, cRet, enum_, types_ )
|
||||
IF ( n := ascan( func_, {|e_| e_[ 1 ] == cFunc } ) ) > 0
|
||||
func_[ n,2 ]++
|
||||
cHBFunc := cFunc + '_' + hb_ntos( func_[ n,2 ] )
|
||||
ELSE
|
||||
cHBFunc := cFunc
|
||||
aadd( func_, { cFunc, 0 } )
|
||||
ENDIF
|
||||
|
||||
lOk := BuildFunction( @txt_, cWidget, cOrg, cFunc, cArg, cRet, enum_, types_, ;
|
||||
cHBFunc, @doc_, cNames )
|
||||
IF !lOk
|
||||
aadd( dummy_, cOrg )
|
||||
ELSE
|
||||
nCnvrtd++
|
||||
ENDIF
|
||||
ELSE
|
||||
/* Build an array of protos not converted to functions */
|
||||
aadd( dummy_, cOrg )
|
||||
ENDIF
|
||||
ELSE
|
||||
aadd( dummy_, cOrg )
|
||||
ENDIF
|
||||
ENDIF
|
||||
ENDIF
|
||||
NEXT
|
||||
|
||||
/* Footer */
|
||||
BuildFooter( @txt_ )
|
||||
/* Assemble components */
|
||||
IF .t. /* !empty( txt_ ) */
|
||||
|
||||
IF !empty( txt_ )
|
||||
/* Pull .cpp copyright text */
|
||||
BuildHeader( @hdr_ )
|
||||
aeval( hdr_, {|e| aadd( cpp_, e ) } )
|
||||
aadd( cpp_, '' )
|
||||
|
||||
/* Insert information about prototypes not converted to functions */
|
||||
IF !empty( dummy_ )
|
||||
aadd( cpp_, '/*' )
|
||||
aadd( cpp_, ' * Constructed[ '+ hb_ntos( nCnvrtd ) +'/'+ hb_ntos( nFuncs ) +' [ '+ hb_ntos( nCnvrtd/nFuncs*100 ) +'% ] ]' )
|
||||
aadd( cpp_, ' * ' )
|
||||
aadd( cpp_, ' * *** Unconvered Prototypes ***' )
|
||||
aadd( cpp_, ' * -----------------------------' )
|
||||
aadd( cpp_, ' * ' )
|
||||
aeval( dummy_, {|e| aadd( cpp_, ' * ' + e ) } )
|
||||
IF !empty( cmntd_ )
|
||||
aadd( cpp_, ' * ' )
|
||||
aadd( cpp_, ' * ' + '*** Commented out protos which construct fine but do not compile ***' )
|
||||
aadd( cpp_, ' * ' )
|
||||
aeval( cmntd_, {|e| aadd( cpp_, ' * ' + e ) } )
|
||||
ENDIF
|
||||
aadd( cpp_, ' */ ' )
|
||||
aadd( cpp_, '' )
|
||||
ENDIF
|
||||
|
||||
/* Needs to be changed manually */
|
||||
#if 0
|
||||
aadd( cpp_, "#include <QtGui/"+ cWidget +">" )
|
||||
aadd( cpp_, "" )
|
||||
#endif
|
||||
|
||||
/* Insert user defined code */
|
||||
IF !empty( code_ )
|
||||
aeval( code_, {|e| aadd( cpp_, strtran( e, chr( 13 ), '' ) ) } )
|
||||
aadd( cpp_, "" )
|
||||
ENDIF
|
||||
|
||||
/* Insert Functions */
|
||||
aeval( txt_, {|e| aadd( cpp_, strtran( e, chr( 13 ), '' ) ) } )
|
||||
|
||||
/* Footer */
|
||||
BuildFooter( @ftr_ )
|
||||
aeval( ftr_, {|e| aadd( cpp_, e ) } )
|
||||
|
||||
/* And create .cpp source */
|
||||
hHandle := fcreate( cPathOut + s_PathSep + 'hbqt_'+ lower( cWidget ) +'.cpp' )
|
||||
IF hHandle != -1
|
||||
aeval( txt_, { |e| fWrite( hHandle, e + s_NewLine, len( e ) + len( s_NewLine ) ) } )
|
||||
aeval( cpp_, { |e| fWrite( hHandle, e + s_NewLine, len( e ) + len( s_NewLine ) ) } )
|
||||
|
||||
fClose( hHandle )
|
||||
ENDIF
|
||||
|
||||
IF !empty( doc_ )
|
||||
BuildDocument( cWidget, doc_, cPathDoc )
|
||||
ENDIF
|
||||
ENDIF
|
||||
|
||||
RETURN cPHP
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
STATIC FUNCTION BuildFunction( txt_, cWidget, cProtoType, cFunc, cArgs, cRet, enum_ )
|
||||
LOCAL cParPtr := "hbqt_par_" + cWidget + "( 1 )"
|
||||
LOCAL pars := ""
|
||||
LOCAL aArgs, cArg, n, nn, pp, cTxt
|
||||
STATIC FUNCTION BuildFunction( txt_, cWidget, cProtoType, cFunc, cArgs, cRet, enum_, ;
|
||||
types_, cHBFunc, doc_, cParNames )
|
||||
LOCAL cParPtr := "hbqt_par_" + cWidget + "( 1 )"
|
||||
LOCAL pars := ""
|
||||
LOCAL docs := ""
|
||||
LOCAL cDocFunc := ""
|
||||
LOCAL aArgs, cArg, n, nn, pp, cTxt, aNames
|
||||
|
||||
IF !empty( cArgs )
|
||||
aArgs := hb_ATokens( cArgs, ',' )
|
||||
aArgs := hb_ATokens( cArgs, ',' )
|
||||
aNames := hb_ATokens( cParNames, ',' )
|
||||
|
||||
n := 0
|
||||
FOR EACH cArg IN aArgs
|
||||
@@ -318,96 +509,148 @@ STATIC FUNCTION BuildFunction( txt_, cWidget, cProtoType, cFunc, cArgs, cRet, en
|
||||
DO CASE
|
||||
CASE ( nn := ascan( enum_, cArg ) ) > 0
|
||||
pars += '( '+ cWidget +'::'+ enum_[ nn ] +' ) hb_parni( '+ hb_ntos( n ) +' )'
|
||||
docs += 'n'+cArg
|
||||
|
||||
CASE cArg == 'int'
|
||||
pars += 'hb_parni( '+ hb_ntos( n ) +' )'
|
||||
docs += 'n'+aNames[ n ]
|
||||
|
||||
CASE cArg == 'quint32'
|
||||
pars += 'hb_parnint( '+ hb_ntos( n ) +' )'
|
||||
docs += 'n'+aNames[ n ]
|
||||
|
||||
CASE cArg == 'double' .or. cArg == 'qreal'
|
||||
pars += 'hb_parnd( '+ hb_ntos( n ) +' )'
|
||||
docs += 'n'+aNames[ n ]
|
||||
|
||||
CASE cArg == 'bool'
|
||||
pars += 'hb_parl( '+ hb_ntos( n ) +' )'
|
||||
docs += 'l'+aNames[ n ]
|
||||
|
||||
CASE cArg == 'QString'
|
||||
pars += 'hbqt_par_QString( '+ hb_ntos( n ) +' )'
|
||||
docs += 'c'+IF( empty( aNames[ n ] ), 'Str', aNames[ n ] )
|
||||
|
||||
CASE cArg == 'QIcon'
|
||||
pars += 'QIcon( hbqt_par_QString( '+ hb_ntos( n ) +' ) )'
|
||||
docs += 'c'+IF( empty( aNames[ n ] ), 'IconName', aNames[ n ] )
|
||||
|
||||
CASE ( '::' $ cArg )
|
||||
pars += "( "+ cArg +" ) hb_parni( "+ hb_ntos( n ) +' )'
|
||||
docs += 'n'+strtran( aNames[ n ], '::', '_' )
|
||||
|
||||
CASE ( '*' $ cArg )
|
||||
pp := rtrim( cArg )
|
||||
pp := rtrim( substr( pp, 1, at( "*", pp ) - 1 ) )
|
||||
|
||||
pars += "hbqt_par_" + pp + "( " + hb_ntos( n ) + " )"
|
||||
docs += 'p'+strtran( aNames[ n ], '*', '' )
|
||||
|
||||
CASE cArg == cWidget
|
||||
pars += "hbqt_par_" + cWidget + "( " + hb_ntos( n ) + " )"
|
||||
docs += 'p'+cWidget
|
||||
|
||||
CASE cArg == 'QRect'
|
||||
pars += "hbqt_const_QRect( " + hb_ntos( n ) + " )"
|
||||
docs += 'aRect'
|
||||
|
||||
CASE cArg == 'QSize'
|
||||
pars += "hbqt_const_QSize( " + hb_ntos( n ) + " )"
|
||||
docs += 'aSize'
|
||||
|
||||
CASE cArg == 'QPoint'
|
||||
pars += "hbqt_const_QPoint( " + hb_ntos( n ) + " )"
|
||||
docs += 'aPoint'
|
||||
|
||||
ENDCASE
|
||||
|
||||
pars += ', '
|
||||
docs += ', '
|
||||
NEXT
|
||||
|
||||
pars := alltrim( pars )
|
||||
pars := substr( pars, 1, len( pars )-1 )
|
||||
|
||||
docs := alltrim( docs )
|
||||
docs := substr( docs, 1, len( docs )-1 )
|
||||
|
||||
ENDIF
|
||||
|
||||
DO CASE
|
||||
CASE ( nn := ascan( enum_, cRet ) ) > 0
|
||||
cTxt := " hb_retni( "+ cParPtr +"->"+ cFunc +"( " + pars +" ) );"
|
||||
cDocFunc := 'n' + enum_[ nn ]
|
||||
|
||||
CASE cRet == "void"
|
||||
cTxt := " "+ cParPtr +"->"+ cFunc +"( " + pars +" );"
|
||||
cDocFunc := 'NIL'
|
||||
|
||||
CASE cRet == "bool"
|
||||
cTxt := " hb_retl( "+ cParPtr +"->"+ cFunc +"( "+ pars +" ) );"
|
||||
cDocFunc := 'lValue'
|
||||
|
||||
CASE cRet == "int"
|
||||
cTxt := " hb_retni( "+ cParPtr +"->"+ cFunc +"( "+ pars +" ) );"
|
||||
cDocFunc := 'nValue'
|
||||
|
||||
CASE cRet == 'quint32'
|
||||
cTxt := " hb_retnint( "+ cParPtr +"->"+ cFunc +"( "+ pars +" ) );"
|
||||
cDocFunc := 'nValue'
|
||||
|
||||
CASE cRet == 'double' .or. cRet == 'qreal'
|
||||
cTxt := " hb_retnd( "+ cParPtr +"->"+ cFunc +"( "+ pars +" ) );"
|
||||
cDocFunc := 'nValue'
|
||||
|
||||
CASE cRet == "QString"
|
||||
cTxt := " hb_retc( "+ cParPtr +"->"+ cFunc +"( "+ pars +").toLatin1().data() );"
|
||||
cDocFunc := 'cValue'
|
||||
|
||||
CASE ( "*" $ cRet )
|
||||
cTxt := " hb_retptr( ( " + cRet +" ) "+ cParPtr +"->"+ cFunc +"( " + pars +" ) );"
|
||||
cDocFunc := 'p' + strtran( cRet, '*', '' )
|
||||
|
||||
CASE ( "::" $ cRet )
|
||||
cTxt := " hb_retni( "+ cParPtr +"->"+ cFunc +"( "+ pars +" ) );"
|
||||
cDocFunc := 'n' + strtran( cRet, '::', '_' )
|
||||
|
||||
CASE cRet == 'QRect'
|
||||
cTxt := " hbqt_ret_QRect( "+ cParPtr +"->"+ cFunc +"( " + pars +" ) );"
|
||||
cDocFunc := 'aRect'
|
||||
|
||||
CASE cRet == 'QSize'
|
||||
cTxt := " hbqt_ret_QSize( "+ cParPtr +"->"+ cFunc +"( " + pars +" ) );"
|
||||
cDocFunc := 'aSize'
|
||||
|
||||
CASE cRet == 'QPoint'
|
||||
cTxt := " hbqt_ret_QPoint( "+ cParPtr +"->"+ cFunc +"( " + pars +" ) );"
|
||||
cDocFunc := 'aPoint'
|
||||
|
||||
OTHERWISE
|
||||
cTxt := ''
|
||||
cDocFunc := ''
|
||||
|
||||
ENDCASE
|
||||
|
||||
/* Again check if we have something to insert */
|
||||
IF !empty( cTxt )
|
||||
aadd( txt_, "/*" )
|
||||
aadd( txt_, strtran( cProtoType, chr(13), '' ) )
|
||||
aadd( txt_, "*/" )
|
||||
aadd( txt_, " * "+ strtran( cProtoType, chr(13), '' ) )
|
||||
aadd( txt_, " */" )
|
||||
|
||||
aadd( txt_, "HB_FUNC( QT_" + upper( cWidget ) +"_"+ upper( cFunc ) +" )" )
|
||||
aadd( txt_, "HB_FUNC( QT_" + upper( cWidget ) +"_"+ upper( cHBFunc ) +" )" )
|
||||
aadd( txt_, "{" )
|
||||
|
||||
aadd( txt_, cTxt )
|
||||
|
||||
aadd( txt_, "}" )
|
||||
aadd( txt_, "" )
|
||||
|
||||
aadd( doc_, 'Qt_'+ cWidget + '_' + cHBFunc +'( p'+ cWidget + ;
|
||||
IF( empty( docs ), '', ', '+ docs ) +' ) -> '+ cDocFunc )
|
||||
aadd( doc_, '' )
|
||||
ENDIF
|
||||
|
||||
RETURN nil
|
||||
RETURN !empty( cTxt )
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
@@ -472,8 +715,7 @@ STATIC FUNCTION BuildHeader( txt_ )
|
||||
aadd( txt_, "" )
|
||||
aadd( txt_, "/*----------------------------------------------------------------------*/" )
|
||||
aadd( txt_, "#if QT_VERSION >= 0x040500" )
|
||||
aadd( txt_, "" )
|
||||
aadd( txt_, "" )
|
||||
aadd( txt_, "/*----------------------------------------------------------------------*/" )
|
||||
aadd( txt_, "" )
|
||||
|
||||
RETURN nil
|
||||
@@ -483,8 +725,8 @@ STATIC FUNCTION BuildHeader( txt_ )
|
||||
STATIC FUNCTION BuildFooter( txt_ )
|
||||
|
||||
aadd( txt_, "" )
|
||||
aadd( txt_, "" )
|
||||
aadd( txt_, "#endif" )
|
||||
aadd( txt_, "/*----------------------------------------------------------------------*/" )
|
||||
aadd( txt_, "#endif /* #if QT_VERSION >= 0x040500 */" )
|
||||
aadd( txt_, "/*----------------------------------------------------------------------*/" )
|
||||
aadd( txt_, "" )
|
||||
|
||||
@@ -500,9 +742,11 @@ STATIC FUNCTION DispHelp()
|
||||
? ' hbqtgen.exe [Options] [[@]<QtProjectFile.qtp>] [<QtHeaderFile.qth, ...>]'
|
||||
?
|
||||
? 'Options:'
|
||||
? ' -O<OutputPath> [ e.g. c:\harbour\contrib\hbqt ] [D] Current folder'
|
||||
? ' -I<InputPath> [ e.g. c:\harbour\contrib\hbqt\protos ] [D] Current folder'
|
||||
? ' -c<compile> If QT env is set, attempts to compile resulting .cpp'
|
||||
? ' -O<OutputPath> [ e.g. c:\harbour\contrib\hbqt ] [D] Current folder'
|
||||
? ' -I<InputPath> [ e.g. c:\harbour\contrib\hbqt\protos ] [D] Current folder'
|
||||
? ' -d<DocFilesPath> [ e.g. c:\harbour\contrib\hbqt\doc ] [D] Current folder'
|
||||
? ' '
|
||||
? ' -c<compile> If QT env is set, attempts to compile resulting .cpp'
|
||||
?
|
||||
? 'Press a key ...'
|
||||
?
|
||||
@@ -512,3 +756,39 @@ STATIC FUNCTION DispHelp()
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
STATIC FUNCTION BuildDocument( cWidget, doc_, cPathDoc )
|
||||
LOCAL dcc_:={}
|
||||
LOCAL hHandle, cFile
|
||||
|
||||
aadd( dcc_, ' ' )
|
||||
aadd( dcc_, '< HBQtGen v1.0 - Harbour Callable Wrappers Generator for QT v4.5 >' )
|
||||
aadd( dcc_, ' ' )
|
||||
aadd( dcc_, '< Please do not modify this document as it is subject to change in future. >' )
|
||||
aadd( dcc_, ' ' )
|
||||
aadd( dcc_, '< Pritpal Bedi <pritpal@vouchcac.com> >' )
|
||||
aadd( dcc_, ' ' )
|
||||
aadd( dcc_, '< '+dtoc( date() ) + ' - ' + time() + ' >' )
|
||||
aadd( dcc_, ' ' )
|
||||
aadd( dcc_, ' ' )
|
||||
|
||||
aeval( doc_, {|e| aadd( dcc_, e ) } )
|
||||
|
||||
cFile := cPathDoc + s_PathSep + cWidget +'.txt'
|
||||
|
||||
hHandle := fcreate( cFile )
|
||||
IF hHandle != -1
|
||||
aeval( dcc_, { |e| fWrite( hHandle, e + s_NewLine, len( e ) + len( s_NewLine ) ) } )
|
||||
fClose( hHandle )
|
||||
ENDIF
|
||||
|
||||
RETURN file( cFile )
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
STATIC FUNCTION DispProgress( cFile )
|
||||
|
||||
? cFile
|
||||
|
||||
RETURN nil
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
88
harbour/contrib/hbqt/generator/qt45.qtp
Normal file
88
harbour/contrib/hbqt/generator/qt45.qtp
Normal file
@@ -0,0 +1,88 @@
|
||||
;
|
||||
; Harbour Source Wrapper Generator's Project File for QT v4.5
|
||||
;
|
||||
; Pritpal Bedi <pritpal@vouchcac.com>
|
||||
;
|
||||
|
||||
-I=..\qth
|
||||
|
||||
-O=..\gensource
|
||||
|
||||
-D=..\doc
|
||||
|
||||
|
||||
QAbstractButton.qth
|
||||
QAbstractItemView.qth
|
||||
QAbstractPrintDialog.qth
|
||||
QAbstractScrollArea.qth
|
||||
QAbstractSlider.qth
|
||||
QAbstractSpinBox.qth
|
||||
QAction.qth
|
||||
QApplication.qth
|
||||
QBoxLayout.qth
|
||||
QBrush.qth
|
||||
QCalendarWidget.qth
|
||||
QCheckBox.qth
|
||||
QColor.qth
|
||||
QColorDialog.qth
|
||||
QComboBox.qth
|
||||
QCommandLinkButton.qth
|
||||
QCoreApplication.qth
|
||||
QDateEdit.qth
|
||||
QDateTimeEdit.qth
|
||||
QDial.qth
|
||||
QDialog.qth
|
||||
QDoubleSpinBox.qth
|
||||
QErrorMessage.qth
|
||||
QFileDialog.qth
|
||||
QFocusFrame.qth
|
||||
QFont.qth
|
||||
QFontComboBox.qth
|
||||
QFontDialog.qth
|
||||
QFormLayout.qth
|
||||
QFrame.qth
|
||||
QGroupBox.qth
|
||||
QHBoxLayout.qth
|
||||
QInputDialog.qth
|
||||
QLabel.qth
|
||||
QLayout.qth
|
||||
QLayoutItem.qth
|
||||
QLCDNumber.qth
|
||||
QLineEdit.qth
|
||||
QListView.qth
|
||||
QMainWindow.qth
|
||||
QMenu.qth
|
||||
QMenuBar.qth
|
||||
QMessageBox.qth
|
||||
QObject.qth
|
||||
QPageSetupDialog.qth
|
||||
QPainter.qth
|
||||
QPen.qth
|
||||
QPrintDialog.qth
|
||||
QPrintPreviewDialog.qth
|
||||
QProgressBar.qth
|
||||
QPushButton.qth
|
||||
QRadioButton.qth
|
||||
QScrollArea.qth
|
||||
QScrollBar.qth
|
||||
QSizeGrip.qth
|
||||
QSlider.qth
|
||||
QSpinBox.qth
|
||||
QSplitter.qth
|
||||
QTabBar.qth
|
||||
QTableView.qth
|
||||
QTableWidget.qth
|
||||
QTableWidgetItem.qth
|
||||
QTabWidget.qth
|
||||
QTextEdit.qth
|
||||
QTimeEdit.qth
|
||||
QToolBar.qth
|
||||
QToolBox.qth
|
||||
QToolButton.qth
|
||||
QTreeView.qth
|
||||
QTreeWidget.qth
|
||||
QTreeWidgetItem.qth
|
||||
QVBoxLayout.qth
|
||||
QWidget.qth
|
||||
|
||||
|
||||
@@ -65,11 +65,13 @@
|
||||
#define hbqt_par_QAbstractItemModel( n ) ( ( QAbstractItemModel* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QAbstractItemDelegate( n ) ( ( QAbstractItemDelegate* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QAbstractPrintDialog( n ) ( ( QAbstractPrintDialog* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QAbstractProxyModel( n ) ( ( QAbstractProxyModel* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QAbstractScrollArea( n ) ( ( QAbstractScrollArea* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QAbstractSlider( n ) ( ( QAbstractSlider* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QAbstractSpinBox( n ) ( ( QAbstractSpinBox* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QAction( n ) ( ( QAction* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QActionGroup( n ) ( ( QActionGroup* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QApplication( n ) ( ( QApplication* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QBoxLayout( n ) ( ( QBoxLayout* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QBrush( n ) ( ( QBrush* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QCalendarWidget( n ) ( ( QCalendarWidget* ) hb_parptr( n ) )
|
||||
@@ -79,43 +81,102 @@
|
||||
#define hbqt_par_QComboBox( n ) ( ( QComboBox* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QCommandLinkButton( n ) ( ( QCommandLinkButton* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QCompleter( n ) ( ( QCompleter* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QCoreApplication( n ) ( ( QCoreApplication* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QDateTimeEdit( n ) ( ( QDateTimeEdit* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QDial( n ) ( ( QDial* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QDialog( n ) ( ( QDialog* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QDockWidget( n ) ( ( QDockWidget* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QFrame( n ) ( ( QFrame* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QDoubleSpinBox( n ) ( ( QDoubleSpinBox* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QEvent( n ) ( ( QEvent* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QFileDialog( n ) ( ( QFileDialog* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QFileIconProvider( n ) ( ( QFileIconProvider* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QFocusFrame( n ) ( ( QFocusFrame* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QFont( n ) ( ( QFont* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QFontComboBox( n ) ( ( QFontComboBox* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QFontDialog( n ) ( ( QFontDialog* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QFormLayout( n ) ( ( QFormLayout* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QFrame( n ) ( ( QFrame* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QGroupBox( n ) ( ( QGroupBox* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QHeaderView( n ) ( ( QHeaderView* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QInputContext( n ) ( ( QInputContext* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QInputDialog( n ) ( ( QInputDialog* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QItemSelectionModel( n ) ( ( QItemSelectionModel* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QLabel( n ) ( ( QLabel* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QLayout( n ) ( ( QLayout* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QLayoutItem( n ) ( ( QLayoutItem* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QLCDNumber( n ) ( ( QLCDNumber* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QLine( n ) ( ( QLine* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QLineEdit( n ) ( ( QLineEdit* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QLineF( n ) ( ( QLineF* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QListView( n ) ( ( QListView* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QLocale( n ) ( ( QLocale* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QMainWindow( n ) ( ( QMainWindow* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QMenu( n ) ( ( QMenu* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QMenuBar( n ) ( ( QMenuBar* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QMessageBox( n ) ( ( QMessageBox* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QObject( n ) ( ( QObject* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QPageSetupDialog( n ) ( ( QPageSetupDialog* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QPainter( n ) ( ( QPainter* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QPaintDevice( n ) ( ( QPaintDevice* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QPen( n ) ( ( QPen* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QPoint( n ) ( ( QPoint* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QPointF( n ) ( ( QPointF* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QPrintDialog( n ) ( ( QPrintDialog* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QPrintPreviewDialog( n ) ( ( QPrintPreviewDialog* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QPrinter( n ) ( ( QPrinter* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QProgressBar( n ) ( ( QProgressBar* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QPushButton( n ) ( ( QPushButton* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QRect( n ) ( ( QRect* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QRectF( n ) ( ( QRectF* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QScrollArea( n ) ( ( QScrollArea* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QScrollBar( n ) ( ( QScrollBar* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QSpacerItem( n ) ( ( QSpacerItem* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QSpinBox( n ) ( ( QSpinBox* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QSplitter( n ) ( ( QSplitter* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QStatusBar( n ) ( ( QStatusBar* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QStyle( n ) ( ( QStyle* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QSlider( n ) ( ( QSlider* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QTabBar( n ) ( ( QTabBar* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QTableView( n ) ( ( QTableView* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QTableWidget( n ) ( ( QTableWidget* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QTableWidgetItem( n ) ( ( QTableWidgetItem* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QTabWidget( n ) ( ( QTabWidget* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QTextEdit( n ) ( ( QTextEdit* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QTextDocument( n ) ( ( QTextDocument* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QThread( n ) ( ( QThread* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QToolBar( n ) ( ( QToolBar* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QToolBox( n ) ( ( QToolBox* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QToolButton( n ) ( ( QToolButton* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QTreeView( n ) ( ( QTreeView* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QTreeWidget( n ) ( ( QTreeWidget* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QTreeWidgetItem( n ) ( ( QTreeWidgetItem* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QValidator( n ) ( ( QValidator* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QWebView( n ) ( ( QWebView* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QWidget( n ) ( ( QWidget* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QWindowSurface( n ) ( ( QWindowSurface* ) hb_parptr( n ) )
|
||||
#define hbqt_par_QWSEvent( n ) ( ( QWSEvent* ) hb_parptr( n ) )
|
||||
|
||||
#define hbqt_par_QIcon( n ) ( ( QIcon ) hb_parc( n ) )
|
||||
#define hbqt_par_QString( n ) ( ( QString ) hb_parc( n ) )
|
||||
#define hbqt_par_QRgb( n ) ( hb_parnint( n ) )
|
||||
#define hbqt_par_Bool( n ) ( hb_parl( n ) )
|
||||
#define hbqt_par_char( n ) ( hb_parc( n ) )
|
||||
|
||||
#define hbqt_ret_QWidget( p ) ( hb_retptr( ( QWidget* ) p ) )
|
||||
#define hbqt_ret_QAbstractItemDelegate( p ) ( hb_retptr( ( QAbstractItemDelegate* ) p ) )
|
||||
#define hbqt_ret_QAbstractItemModel( p ) ( hb_retptr( ( QAbstractItemModel* ) p ) )
|
||||
#define hbqt_ret_QPrinter( p ) ( hb_retptr( ( QPrinter* ) p ) )
|
||||
|
||||
#include <QtGui/QWidget>
|
||||
|
||||
void hbqt_ret_QRect( QRect );
|
||||
void hbqt_ret_QSize( QSize );
|
||||
void hbqt_ret_QPoint( QPoint );
|
||||
|
||||
QRect hbqt_const_QRect( int );
|
||||
QSize hbqt_const_QSize( int );
|
||||
QPoint hbqt_const_QPoint( int );
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* __HBQT_H */
|
||||
|
||||
@@ -55,18 +55,275 @@
|
||||
#include "hbapi.h"
|
||||
#include "hbqt.h"
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#if QT_VERSION >= 0x040500
|
||||
|
||||
|
||||
|
||||
#include <QtGui/QTreeView>
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
/*
|
||||
QTreeView ( QWidget * parent = 0 )
|
||||
*/
|
||||
* QTreeView ( QWidget * parent = 0 )
|
||||
* ~QTreeView ()
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW )
|
||||
{
|
||||
hb_retptr( ( QTreeView* ) new QTreeView( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
* bool allColumnsShowFocus () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_ALLCOLUMNSSHOWFOCUS )
|
||||
{
|
||||
hb_retl( hbqt_par_QTreeView( 1 )->allColumnsShowFocus( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* int autoExpandDelay () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_AUTOEXPANDDELAY )
|
||||
{
|
||||
hb_retni( hbqt_par_QTreeView( 1 )->autoExpandDelay( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* int columnAt ( int x ) const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_COLUMNAT )
|
||||
{
|
||||
hb_retni( hbqt_par_QTreeView( 1 )->columnAt( hb_parni( 1 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* int columnViewportPosition ( int column ) const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_COLUMNVIEWPORTPOSITION )
|
||||
{
|
||||
hb_retni( hbqt_par_QTreeView( 1 )->columnViewportPosition( hb_parni( 1 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* int columnWidth ( int column ) const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_COLUMNWIDTH )
|
||||
{
|
||||
hb_retni( hbqt_par_QTreeView( 1 )->columnWidth( hb_parni( 1 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* bool expandsOnDoubleClick () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_EXPANDSONDOUBLECLICK )
|
||||
{
|
||||
hb_retl( hbqt_par_QTreeView( 1 )->expandsOnDoubleClick( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QHeaderView * header () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_HEADER )
|
||||
{
|
||||
hb_retptr( ( QHeaderView* ) hbqt_par_QTreeView( 1 )->header( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* int indentation () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_INDENTATION )
|
||||
{
|
||||
hb_retni( hbqt_par_QTreeView( 1 )->indentation( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* bool isAnimated () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_ISANIMATED )
|
||||
{
|
||||
hb_retl( hbqt_par_QTreeView( 1 )->isAnimated( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* bool isColumnHidden ( int column ) const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_ISCOLUMNHIDDEN )
|
||||
{
|
||||
hb_retl( hbqt_par_QTreeView( 1 )->isColumnHidden( hb_parni( 1 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* bool isHeaderHidden () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_ISHEADERHIDDEN )
|
||||
{
|
||||
hb_retl( hbqt_par_QTreeView( 1 )->isHeaderHidden( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* bool isSortingEnabled () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_ISSORTINGENABLED )
|
||||
{
|
||||
hb_retl( hbqt_par_QTreeView( 1 )->isSortingEnabled( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* bool itemsExpandable () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_ITEMSEXPANDABLE )
|
||||
{
|
||||
hb_retl( hbqt_par_QTreeView( 1 )->itemsExpandable( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* bool rootIsDecorated () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_ROOTISDECORATED )
|
||||
{
|
||||
hb_retl( hbqt_par_QTreeView( 1 )->rootIsDecorated( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setAllColumnsShowFocus ( bool enable )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_SETALLCOLUMNSSHOWFOCUS )
|
||||
{
|
||||
hbqt_par_QTreeView( 1 )->setAllColumnsShowFocus( hb_parl( 1 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setAnimated ( bool enable )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_SETANIMATED )
|
||||
{
|
||||
hbqt_par_QTreeView( 1 )->setAnimated( hb_parl( 1 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setAutoExpandDelay ( int delay )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_SETAUTOEXPANDDELAY )
|
||||
{
|
||||
hbqt_par_QTreeView( 1 )->setAutoExpandDelay( hb_parni( 1 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setColumnHidden ( int column, bool hide )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_SETCOLUMNHIDDEN )
|
||||
{
|
||||
hbqt_par_QTreeView( 1 )->setColumnHidden( hb_parni( 1 ), hb_parl( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setColumnWidth ( int column, int width )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_SETCOLUMNWIDTH )
|
||||
{
|
||||
hbqt_par_QTreeView( 1 )->setColumnWidth( hb_parni( 1 ), hb_parni( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setExpandsOnDoubleClick ( bool enable )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_SETEXPANDSONDOUBLECLICK )
|
||||
{
|
||||
hbqt_par_QTreeView( 1 )->setExpandsOnDoubleClick( hb_parl( 1 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setHeader ( QHeaderView * header )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_SETHEADER )
|
||||
{
|
||||
hbqt_par_QTreeView( 1 )->setHeader( hbqt_par_QHeaderView( 1 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setHeaderHidden ( bool hide )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_SETHEADERHIDDEN )
|
||||
{
|
||||
hbqt_par_QTreeView( 1 )->setHeaderHidden( hb_parl( 1 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setIndentation ( int i )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_SETINDENTATION )
|
||||
{
|
||||
hbqt_par_QTreeView( 1 )->setIndentation( hb_parni( 1 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setItemsExpandable ( bool enable )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_SETITEMSEXPANDABLE )
|
||||
{
|
||||
hbqt_par_QTreeView( 1 )->setItemsExpandable( hb_parl( 1 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setRootIsDecorated ( bool show )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_SETROOTISDECORATED )
|
||||
{
|
||||
hbqt_par_QTreeView( 1 )->setRootIsDecorated( hb_parl( 1 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setSortingEnabled ( bool enable )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_SETSORTINGENABLED )
|
||||
{
|
||||
hbqt_par_QTreeView( 1 )->setSortingEnabled( hb_parl( 1 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setUniformRowHeights ( bool uniform )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_SETUNIFORMROWHEIGHTS )
|
||||
{
|
||||
hbqt_par_QTreeView( 1 )->setUniformRowHeights( hb_parl( 1 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setWordWrap ( bool on )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_SETWORDWRAP )
|
||||
{
|
||||
hbqt_par_QTreeView( 1 )->setWordWrap( hb_parl( 1 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void sortByColumn ( int column, Qt::SortOrder order )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_SORTBYCOLUMN )
|
||||
{
|
||||
hbqt_par_QTreeView( 1 )->sortByColumn( hb_parni( 1 ), ( Qt::SortOrder ) hb_parni( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* bool uniformRowHeights () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_UNIFORMROWHEIGHTS )
|
||||
{
|
||||
hb_retl( hbqt_par_QTreeView( 1 )->uniformRowHeights( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* bool wordWrap () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW_WORDWRAP )
|
||||
{
|
||||
hb_retl( hbqt_par_QTreeView( 1 )->wordWrap( ) );
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
321
harbour/contrib/hbqt/hbqt_qtreewidget.cpp
Normal file
321
harbour/contrib/hbqt/hbqt_qtreewidget.cpp
Normal file
@@ -0,0 +1,321 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT wrapper main header
|
||||
*
|
||||
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot com>
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include "hbapi.h"
|
||||
#include "hbqt.h"
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#if QT_VERSION >= 0x040500
|
||||
|
||||
|
||||
|
||||
#include <QtGui/QTreeWidget>
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* QTreeWidget ( QWidget * parent = 0 )
|
||||
* ~QTreeWidget ()
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET )
|
||||
{
|
||||
hb_retptr( ( QTreeWidget* ) new QTreeWidget( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* void addTopLevelItem ( QTreeWidgetItem * item )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_ADDTOPLEVELITEM )
|
||||
{
|
||||
hbqt_par_QTreeWidget( 1 )->addTopLevelItem( hbqt_par_QTreeWidgetItem( 1 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void closePersistentEditor ( QTreeWidgetItem * item, int column = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_CLOSEPERSISTENTEDITOR )
|
||||
{
|
||||
hbqt_par_QTreeWidget( 1 )->closePersistentEditor( hbqt_par_QTreeWidgetItem( 1 ), hb_parni( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* int columnCount () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_COLUMNCOUNT )
|
||||
{
|
||||
hb_retni( hbqt_par_QTreeWidget( 1 )->columnCount( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* int currentColumn () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_CURRENTCOLUMN )
|
||||
{
|
||||
hb_retni( hbqt_par_QTreeWidget( 1 )->currentColumn( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QTreeWidgetItem * currentItem () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_CURRENTITEM )
|
||||
{
|
||||
hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidget( 1 )->currentItem( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void editItem ( QTreeWidgetItem * item, int column = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_EDITITEM )
|
||||
{
|
||||
hbqt_par_QTreeWidget( 1 )->editItem( hbqt_par_QTreeWidgetItem( 1 ), hb_parni( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QTreeWidgetItem * headerItem () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_HEADERITEM )
|
||||
{
|
||||
hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidget( 1 )->headerItem( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* int indexOfTopLevelItem ( QTreeWidgetItem * item ) const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_INDEXOFTOPLEVELITEM )
|
||||
{
|
||||
hb_retni( hbqt_par_QTreeWidget( 1 )->indexOfTopLevelItem( hbqt_par_QTreeWidgetItem( 1 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void insertTopLevelItem ( int index, QTreeWidgetItem * item )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_INSERTTOPLEVELITEM )
|
||||
{
|
||||
hbqt_par_QTreeWidget( 1 )->insertTopLevelItem( hb_parni( 1 ), hbqt_par_QTreeWidgetItem( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QTreeWidgetItem * invisibleRootItem () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_INVISIBLEROOTITEM )
|
||||
{
|
||||
hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidget( 1 )->invisibleRootItem( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* bool isFirstItemColumnSpanned ( const QTreeWidgetItem * item ) const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_ISFIRSTITEMCOLUMNSPANNED )
|
||||
{
|
||||
hb_retl( hbqt_par_QTreeWidget( 1 )->isFirstItemColumnSpanned( hbqt_par_QTreeWidgetItem( 1 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QTreeWidgetItem * itemAbove ( const QTreeWidgetItem * item ) const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_ITEMABOVE )
|
||||
{
|
||||
hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidget( 1 )->itemAbove( hbqt_par_QTreeWidgetItem( 1 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QTreeWidgetItem * itemAt ( int x, int y ) const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_ITEMAT )
|
||||
{
|
||||
hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidget( 1 )->itemAt( hb_parni( 1 ), hb_parni( 2 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QTreeWidgetItem * itemBelow ( const QTreeWidgetItem * item ) const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_ITEMBELOW )
|
||||
{
|
||||
hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidget( 1 )->itemBelow( hbqt_par_QTreeWidgetItem( 1 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QWidget * itemWidget ( QTreeWidgetItem * item, int column ) const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_ITEMWIDGET )
|
||||
{
|
||||
hb_retptr( ( QWidget* ) hbqt_par_QTreeWidget( 1 )->itemWidget( hbqt_par_QTreeWidgetItem( 1 ), hb_parni( 2 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void openPersistentEditor ( QTreeWidgetItem * item, int column = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_OPENPERSISTENTEDITOR )
|
||||
{
|
||||
hbqt_par_QTreeWidget( 1 )->openPersistentEditor( hbqt_par_QTreeWidgetItem( 1 ), hb_parni( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void removeItemWidget ( QTreeWidgetItem * item, int column )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_REMOVEITEMWIDGET )
|
||||
{
|
||||
hbqt_par_QTreeWidget( 1 )->removeItemWidget( hbqt_par_QTreeWidgetItem( 1 ), hb_parni( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setColumnCount ( int columns )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_SETCOLUMNCOUNT )
|
||||
{
|
||||
hbqt_par_QTreeWidget( 1 )->setColumnCount( hb_parni( 1 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setCurrentItem ( QTreeWidgetItem * item )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_SETCURRENTITEM )
|
||||
{
|
||||
hbqt_par_QTreeWidget( 1 )->setCurrentItem( hbqt_par_QTreeWidgetItem( 1 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setCurrentItem ( QTreeWidgetItem * item, int column )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_SETCURRENTITEM_1 )
|
||||
{
|
||||
hbqt_par_QTreeWidget( 1 )->setCurrentItem( hbqt_par_QTreeWidgetItem( 1 ), hb_parni( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setCurrentItem ( QTreeWidgetItem * item, int column, QItemSelectionModel::SelectionFlags command )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_SETCURRENTITEM_2 )
|
||||
{
|
||||
hbqt_par_QTreeWidget( 1 )->setCurrentItem( hbqt_par_QTreeWidgetItem( 1 ), hb_parni( 2 ), ( QItemSelectionModel::SelectionFlags ) hb_parni( 3 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setFirstItemColumnSpanned ( const QTreeWidgetItem * item, bool span )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_SETFIRSTITEMCOLUMNSPANNED )
|
||||
{
|
||||
hbqt_par_QTreeWidget( 1 )->setFirstItemColumnSpanned( hbqt_par_QTreeWidgetItem( 1 ), hb_parl( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setHeaderItem ( QTreeWidgetItem * item )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_SETHEADERITEM )
|
||||
{
|
||||
hbqt_par_QTreeWidget( 1 )->setHeaderItem( hbqt_par_QTreeWidgetItem( 1 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setHeaderLabel ( const QString & label )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_SETHEADERLABEL )
|
||||
{
|
||||
hbqt_par_QTreeWidget( 1 )->setHeaderLabel( hbqt_par_QString( 1 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setItemWidget ( QTreeWidgetItem * item, int column, QWidget * widget )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_SETITEMWIDGET )
|
||||
{
|
||||
hbqt_par_QTreeWidget( 1 )->setItemWidget( hbqt_par_QTreeWidgetItem( 1 ), hb_parni( 2 ), hbqt_par_QWidget( 3 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* int sortColumn () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_SORTCOLUMN )
|
||||
{
|
||||
hb_retni( hbqt_par_QTreeWidget( 1 )->sortColumn( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void sortItems ( int column, Qt::SortOrder order )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_SORTITEMS )
|
||||
{
|
||||
hbqt_par_QTreeWidget( 1 )->sortItems( hb_parni( 1 ), ( Qt::SortOrder ) hb_parni( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QTreeWidgetItem * takeTopLevelItem ( int index )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_TAKETOPLEVELITEM )
|
||||
{
|
||||
hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidget( 1 )->takeTopLevelItem( hb_parni( 1 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QTreeWidgetItem * topLevelItem ( int index ) const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_TOPLEVELITEM )
|
||||
{
|
||||
hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidget( 1 )->topLevelItem( hb_parni( 1 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* int topLevelItemCount () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET_TOPLEVELITEMCOUNT )
|
||||
{
|
||||
hb_retni( hbqt_par_QTreeWidget( 1 )->topLevelItemCount( ) );
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
409
harbour/contrib/hbqt/hbqt_qtreewidgetitem.cpp
Normal file
409
harbour/contrib/hbqt/hbqt_qtreewidgetitem.cpp
Normal file
@@ -0,0 +1,409 @@
|
||||
/*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/*
|
||||
* Harbour Project source code:
|
||||
* QT wrapper main header
|
||||
*
|
||||
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot com>
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include "hbapi.h"
|
||||
#include "hbqt.h"
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#if QT_VERSION >= 0x040500
|
||||
|
||||
|
||||
|
||||
#include <QtGui/QTreeWidgetItem>
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* QTreeWidgetItem ( int type = Type )
|
||||
* QTreeWidgetItem ( const QStringList & strings, int type = Type )
|
||||
* QTreeWidgetItem ( QTreeWidget * parent, int type = Type )
|
||||
* QTreeWidgetItem ( QTreeWidget * parent, const QStringList & strings, int type = Type )
|
||||
* QTreeWidgetItem ( QTreeWidget * parent, QTreeWidgetItem * preceding, int type = Type )
|
||||
* QTreeWidgetItem ( QTreeWidgetItem * parent, int type = Type )
|
||||
* QTreeWidgetItem ( QTreeWidgetItem * parent, const QStringList & strings, int type = Type )
|
||||
* QTreeWidgetItem ( QTreeWidgetItem * parent, QTreeWidgetItem * preceding, int type = Type )
|
||||
* QTreeWidgetItem ( const QTreeWidgetItem & other )
|
||||
* virtual ~QTreeWidgetItem ()
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM )
|
||||
{
|
||||
if( hb_pcount() >= 1 && HB_ISNUM( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QTreeWidgetItem* ) new QTreeWidgetItem( hb_parni( 1 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( ( QTreeWidgetItem* ) new QTreeWidgetItem( hbqt_par_QTreeWidget( 1 ), hb_parni( 2 ) ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* void addChild ( QTreeWidgetItem * child )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_ADDCHILD )
|
||||
{
|
||||
hbqt_par_QTreeWidgetItem( 1 )->addChild( hbqt_par_QTreeWidgetItem( 1 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* Qt::CheckState checkState ( int column ) const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_CHECKSTATE )
|
||||
{
|
||||
hb_retni( hbqt_par_QTreeWidgetItem( 1 )->checkState( hb_parni( 1 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QTreeWidgetItem * child ( int index ) const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_CHILD )
|
||||
{
|
||||
hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidgetItem( 1 )->child( hb_parni( 1 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* int childCount () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_CHILDCOUNT )
|
||||
{
|
||||
hb_retni( hbqt_par_QTreeWidgetItem( 1 )->childCount( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QTreeWidgetItem::ChildIndicatorPolicy childIndicatorPolicy () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_CHILDINDICATORPOLICY )
|
||||
{
|
||||
hb_retni( hbqt_par_QTreeWidgetItem( 1 )->childIndicatorPolicy( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* int columnCount () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_COLUMNCOUNT )
|
||||
{
|
||||
hb_retni( hbqt_par_QTreeWidgetItem( 1 )->columnCount( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* Qt::ItemFlags flags () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_FLAGS )
|
||||
{
|
||||
hb_retni( hbqt_par_QTreeWidgetItem( 1 )->flags( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* int indexOfChild ( QTreeWidgetItem * child ) const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_INDEXOFCHILD )
|
||||
{
|
||||
hb_retni( hbqt_par_QTreeWidgetItem( 1 )->indexOfChild( hbqt_par_QTreeWidgetItem( 1 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void insertChild ( int index, QTreeWidgetItem * child )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_INSERTCHILD )
|
||||
{
|
||||
hbqt_par_QTreeWidgetItem( 1 )->insertChild( hb_parni( 1 ), hbqt_par_QTreeWidgetItem( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* bool isDisabled () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_ISDISABLED )
|
||||
{
|
||||
hb_retl( hbqt_par_QTreeWidgetItem( 1 )->isDisabled( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* bool isExpanded () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_ISEXPANDED )
|
||||
{
|
||||
hb_retl( hbqt_par_QTreeWidgetItem( 1 )->isExpanded( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* bool isFirstColumnSpanned () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_ISFIRSTCOLUMNSPANNED )
|
||||
{
|
||||
hb_retl( hbqt_par_QTreeWidgetItem( 1 )->isFirstColumnSpanned( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* bool isHidden () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_ISHIDDEN )
|
||||
{
|
||||
hb_retl( hbqt_par_QTreeWidgetItem( 1 )->isHidden( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* bool isSelected () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_ISSELECTED )
|
||||
{
|
||||
hb_retl( hbqt_par_QTreeWidgetItem( 1 )->isSelected( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QTreeWidgetItem * parent () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_PARENT )
|
||||
{
|
||||
hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidgetItem( 1 )->parent( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void removeChild ( QTreeWidgetItem * child )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_REMOVECHILD )
|
||||
{
|
||||
hbqt_par_QTreeWidgetItem( 1 )->removeChild( hbqt_par_QTreeWidgetItem( 1 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setCheckState ( int column, Qt::CheckState state )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_SETCHECKSTATE )
|
||||
{
|
||||
hbqt_par_QTreeWidgetItem( 1 )->setCheckState( hb_parni( 1 ), ( Qt::CheckState ) hb_parni( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setChildIndicatorPolicy ( QTreeWidgetItem::ChildIndicatorPolicy policy )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_SETCHILDINDICATORPOLICY )
|
||||
{
|
||||
hbqt_par_QTreeWidgetItem( 1 )->setChildIndicatorPolicy( ( QTreeWidgetItem::ChildIndicatorPolicy ) hb_parni( 1 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setDisabled ( bool disabled )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_SETDISABLED )
|
||||
{
|
||||
hbqt_par_QTreeWidgetItem( 1 )->setDisabled( hb_parl( 1 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setExpanded ( bool expand )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_SETEXPANDED )
|
||||
{
|
||||
hbqt_par_QTreeWidgetItem( 1 )->setExpanded( hb_parl( 1 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setFirstColumnSpanned ( bool span )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_SETFIRSTCOLUMNSPANNED )
|
||||
{
|
||||
hbqt_par_QTreeWidgetItem( 1 )->setFirstColumnSpanned( hb_parl( 1 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setFlags ( Qt::ItemFlags flags )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_SETFLAGS )
|
||||
{
|
||||
hbqt_par_QTreeWidgetItem( 1 )->setFlags( ( Qt::ItemFlags ) hb_parni( 1 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setHidden ( bool hide )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_SETHIDDEN )
|
||||
{
|
||||
hbqt_par_QTreeWidgetItem( 1 )->setHidden( hb_parl( 1 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setIcon ( int column, const QIcon & icon )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_SETICON )
|
||||
{
|
||||
hbqt_par_QTreeWidgetItem( 1 )->setIcon( hb_parni( 1 ), QIcon( hbqt_par_QString( 2 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setSelected ( bool select )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_SETSELECTED )
|
||||
{
|
||||
hbqt_par_QTreeWidgetItem( 1 )->setSelected( hb_parl( 1 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setStatusTip ( int column, const QString & statusTip )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_SETSTATUSTIP )
|
||||
{
|
||||
hbqt_par_QTreeWidgetItem( 1 )->setStatusTip( hb_parni( 1 ), hbqt_par_QString( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setText ( int column, const QString & text )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_SETTEXT )
|
||||
{
|
||||
hbqt_par_QTreeWidgetItem( 1 )->setText( hb_parni( 1 ), hbqt_par_QString( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setTextAlignment ( int column, int alignment )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_SETTEXTALIGNMENT )
|
||||
{
|
||||
hbqt_par_QTreeWidgetItem( 1 )->setTextAlignment( hb_parni( 1 ), hb_parni( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setToolTip ( int column, const QString & toolTip )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_SETTOOLTIP )
|
||||
{
|
||||
hbqt_par_QTreeWidgetItem( 1 )->setToolTip( hb_parni( 1 ), hbqt_par_QString( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void setWhatsThis ( int column, const QString & whatsThis )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_SETWHATSTHIS )
|
||||
{
|
||||
hbqt_par_QTreeWidgetItem( 1 )->setWhatsThis( hb_parni( 1 ), hbqt_par_QString( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* void sortChildren ( int column, Qt::SortOrder order )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_SORTCHILDREN )
|
||||
{
|
||||
hbqt_par_QTreeWidgetItem( 1 )->sortChildren( hb_parni( 1 ), ( Qt::SortOrder ) hb_parni( 2 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QString statusTip ( int column ) const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_STATUSTIP )
|
||||
{
|
||||
hb_retc( hbqt_par_QTreeWidgetItem( 1 )->statusTip( hb_parni( 1 )).toLatin1().data() );
|
||||
}
|
||||
|
||||
/*
|
||||
* QTreeWidgetItem * takeChild ( int index )
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_TAKECHILD )
|
||||
{
|
||||
hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidgetItem( 1 )->takeChild( hb_parni( 1 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QString text ( int column ) const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_TEXT )
|
||||
{
|
||||
hb_retc( hbqt_par_QTreeWidgetItem( 1 )->text( hb_parni( 1 )).toLatin1().data() );
|
||||
}
|
||||
|
||||
/*
|
||||
* int textAlignment ( int column ) const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_TEXTALIGNMENT )
|
||||
{
|
||||
hb_retni( hbqt_par_QTreeWidgetItem( 1 )->textAlignment( hb_parni( 1 ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QString toolTip ( int column ) const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_TOOLTIP )
|
||||
{
|
||||
hb_retc( hbqt_par_QTreeWidgetItem( 1 )->toolTip( hb_parni( 1 )).toLatin1().data() );
|
||||
}
|
||||
|
||||
/*
|
||||
* QTreeWidget * treeWidget () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_TREEWIDGET )
|
||||
{
|
||||
hb_retptr( ( QTreeWidget* ) hbqt_par_QTreeWidgetItem( 1 )->treeWidget( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* int type () const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_TYPE )
|
||||
{
|
||||
hb_retni( hbqt_par_QTreeWidgetItem( 1 )->type( ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* QString whatsThis ( int column ) const
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM_WHATSTHIS )
|
||||
{
|
||||
hb_retc( hbqt_par_QTreeWidgetItem( 1 )->whatsThis( hb_parni( 1 )).toLatin1().data() );
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
144
harbour/contrib/hbqt/hbqt_utils.cpp
Normal file
144
harbour/contrib/hbqt/hbqt_utils.cpp
Normal file
@@ -0,0 +1,144 @@
|
||||
/*
|
||||
* $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.
|
||||
*
|
||||
*/
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include "hbapi.h"
|
||||
#include "hbapiitm.h"
|
||||
|
||||
#include "hbqt.h"
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#if QT_VERSION >= 0x040500
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#include <QtGui/QWidget>
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
void hbqt_ret_QRect( QRect qrc )
|
||||
{
|
||||
PHB_ITEM info = hb_itemArrayNew( 4 );
|
||||
|
||||
hb_arraySetNI( info, 1, qrc.x() );
|
||||
hb_arraySetNI( info, 2, qrc.y() );
|
||||
hb_arraySetNI( info, 3, qrc.x()+qrc.width() );
|
||||
hb_arraySetNI( info, 4, qrc.y()+qrc.height() );
|
||||
|
||||
hb_itemReturnRelease( info );
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
QRect hbqt_const_QRect( int i )
|
||||
{
|
||||
QRect qrc;
|
||||
|
||||
qrc.setX( hb_parni( i,1 ) );
|
||||
qrc.setY( hb_parni( i,2 ) );
|
||||
qrc.setWidth( hb_parni( i,3 ) - hb_parni( i,1 ) + 1 );
|
||||
qrc.setHeight( hb_parni( i,4 ) - hb_parni( i,2 ) + 1 );
|
||||
|
||||
return qrc;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
void hbqt_ret_QSize( QSize qsz )
|
||||
{
|
||||
PHB_ITEM info = hb_itemArrayNew( 2 );
|
||||
|
||||
hb_arraySetNI( info, 1, qsz.width() );
|
||||
hb_arraySetNI( info, 2, qsz.height() );
|
||||
|
||||
hb_itemReturnRelease( info );
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
QSize hbqt_const_QSize( int i )
|
||||
{
|
||||
QSize qsz;
|
||||
|
||||
qsz.setWidth( hb_parni( i,1 ) );
|
||||
qsz.setHeight( hb_parni( i,2 ) );
|
||||
|
||||
return qsz;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
void hbqt_ret_QPoint( QPoint qpt )
|
||||
{
|
||||
PHB_ITEM info = hb_itemArrayNew( 2 );
|
||||
|
||||
hb_arraySetNI( info, 1, qpt.x() );
|
||||
hb_arraySetNI( info, 2, qpt.y() );
|
||||
|
||||
hb_itemReturnRelease( info );
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
QPoint hbqt_const_QPoint( int i )
|
||||
{
|
||||
QPoint qpt;
|
||||
|
||||
qpt.setX( hb_parni( i,1 ) );
|
||||
qpt.setY( hb_parni( i,2 ) );
|
||||
|
||||
return qpt;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
#endif /* #if QT_VERSION >= 0x040500 */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
40
harbour/contrib/hbqt/qth/QAbstractButton.qth
Normal file
40
harbour/contrib/hbqt/qth/QAbstractButton.qth
Normal file
@@ -0,0 +1,40 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QAbstractButton>
|
||||
|
||||
|
||||
/*
|
||||
* QAbstractButton ( QWidget * parent = 0 )
|
||||
* ~QAbstractButton ()
|
||||
*/
|
||||
#if 0
|
||||
HB_FUNC( QT_QABSTRACTBUTTON )
|
||||
{
|
||||
hb_retptr( new QAbstractButton( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
#endif
|
||||
</CODE>
|
||||
|
||||
|
||||
bool autoExclusive () const
|
||||
bool autoRepeat () const
|
||||
int autoRepeatDelay () const
|
||||
int autoRepeatInterval () const
|
||||
QButtonGroup * group () const
|
||||
QIcon icon () const
|
||||
QSize iconSize () const
|
||||
bool isCheckable () const
|
||||
bool isChecked () const
|
||||
bool isDown () const
|
||||
void setAutoExclusive ( bool )
|
||||
void setAutoRepeat ( bool )
|
||||
void setAutoRepeatDelay ( int )
|
||||
void setAutoRepeatInterval ( int )
|
||||
void setCheckable ( bool )
|
||||
void setDown ( bool )
|
||||
void setIcon ( const QIcon & icon )
|
||||
void setShortcut ( const QKeySequence & key )
|
||||
void setText ( const QString & text )
|
||||
QKeySequence shortcut () const
|
||||
QString text () const
|
||||
82
harbour/contrib/hbqt/qth/QAbstractItemView.qth
Normal file
82
harbour/contrib/hbqt/qth/QAbstractItemView.qth
Normal file
@@ -0,0 +1,82 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QAbstractItemView>
|
||||
|
||||
|
||||
/*
|
||||
* QAbstractItemView ( QWidget * parent = 0 )
|
||||
* ~QAbstractItemView ()
|
||||
*/
|
||||
#if 0
|
||||
HB_FUNC( QT_QABSTRACTITEMVIEW )
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
</CODE>
|
||||
|
||||
|
||||
enum DragDropMode { NoDragDrop, DragOnly, DropOnly, DragDrop, InternalMove }
|
||||
enum EditTrigger { NoEditTriggers, CurrentChanged, DoubleClicked, SelectedClicked, ..., AllEditTriggers }
|
||||
flags EditTriggers
|
||||
enum ScrollHint { EnsureVisible, PositionAtTop, PositionAtBottom, PositionAtCenter }
|
||||
enum ScrollMode { ScrollPerItem, ScrollPerPixel }
|
||||
enum SelectionBehavior { SelectItems, SelectRows, SelectColumns }
|
||||
enum SelectionMode { SingleSelection, ContiguousSelection, ExtendedSelection, MultiSelection, NoSelection }
|
||||
|
||||
bool alternatingRowColors () const
|
||||
int autoScrollMargin () const
|
||||
void closePersistentEditor ( const QModelIndex & index )
|
||||
QModelIndex currentIndex () const
|
||||
DragDropMode dragDropMode () const
|
||||
bool dragDropOverwriteMode () const
|
||||
bool dragEnabled () const
|
||||
EditTriggers editTriggers () const
|
||||
bool hasAutoScroll () const
|
||||
ScrollMode horizontalScrollMode () const
|
||||
QSize iconSize () const
|
||||
virtual QModelIndex indexAt ( const QPoint & point ) const = 0
|
||||
QWidget * indexWidget ( const QModelIndex & index ) const
|
||||
QAbstractItemDelegate * itemDelegate () const
|
||||
QAbstractItemDelegate * itemDelegate ( const QModelIndex & index ) const
|
||||
QAbstractItemDelegate * itemDelegateForColumn ( int column ) const
|
||||
QAbstractItemDelegate * itemDelegateForRow ( int row ) const
|
||||
virtual void keyboardSearch ( const QString & search )
|
||||
QAbstractItemModel * model () const
|
||||
void openPersistentEditor ( const QModelIndex & index )
|
||||
QModelIndex rootIndex () const
|
||||
virtual void scrollTo ( const QModelIndex & index, ScrollHint hint = EnsureVisible ) = 0
|
||||
QAbstractItemView::SelectionBehavior selectionBehavior () const
|
||||
QAbstractItemView::SelectionMode selectionMode () const
|
||||
QItemSelectionModel * selectionModel () const
|
||||
void setAlternatingRowColors ( bool enable )
|
||||
void setAutoScroll ( bool enable )
|
||||
void setAutoScrollMargin ( int margin )
|
||||
void setDragDropMode ( DragDropMode behavior )
|
||||
void setDragDropOverwriteMode ( bool overwrite )
|
||||
void setDragEnabled ( bool enable )
|
||||
void setDropIndicatorShown ( bool enable )
|
||||
void setEditTriggers ( EditTriggers triggers )
|
||||
void setHorizontalScrollMode ( ScrollMode mode )
|
||||
void setIconSize ( const QSize & size )
|
||||
void setIndexWidget ( const QModelIndex & index, QWidget * widget )
|
||||
void setItemDelegate ( QAbstractItemDelegate * delegate )
|
||||
void setItemDelegateForColumn ( int column, QAbstractItemDelegate * delegate )
|
||||
void setItemDelegateForRow ( int row, QAbstractItemDelegate * delegate )
|
||||
virtual void setModel ( QAbstractItemModel * model )
|
||||
void setSelectionBehavior ( QAbstractItemView::SelectionBehavior behavior )
|
||||
void setSelectionMode ( QAbstractItemView::SelectionMode mode )
|
||||
virtual void setSelectionModel ( QItemSelectionModel * selectionModel )
|
||||
void setTabKeyNavigation ( bool enable )
|
||||
void setTextElideMode ( Qt::TextElideMode mode )
|
||||
void setVerticalScrollMode ( ScrollMode mode )
|
||||
bool showDropIndicator () const
|
||||
virtual int sizeHintForColumn ( int column ) const
|
||||
QSize sizeHintForIndex ( const QModelIndex & index ) const
|
||||
virtual int sizeHintForRow ( int row ) const
|
||||
bool tabKeyNavigation () const
|
||||
Qt::TextElideMode textElideMode () const
|
||||
ScrollMode verticalScrollMode () const
|
||||
virtual QRect visualRect ( const QModelIndex & index ) const = 0
|
||||
|
||||
33
harbour/contrib/hbqt/qth/QAbstractPrintDialog.qth
Normal file
33
harbour/contrib/hbqt/qth/QAbstractPrintDialog.qth
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QAbstractPrintDialog>
|
||||
|
||||
|
||||
/*
|
||||
* QAbstractPrintDialog ( QPrinter * printer, QWidget * parent = 0 )
|
||||
*/
|
||||
#if 0
|
||||
HB_FUNC( QT_QABSTRACTPRINTDIALOG )
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
</CODE>
|
||||
|
||||
enum PrintDialogOption { None, PrintToFile, PrintSelection, PrintPageRange, ..., PrintShowPageSize }
|
||||
flags PrintDialogOptions
|
||||
enum PrintRange { AllPages, Selection, PageRange }
|
||||
|
||||
virtual int exec () = 0
|
||||
int fromPage () const
|
||||
int maxPage () const
|
||||
int minPage () const
|
||||
PrintRange printRange () const
|
||||
QPrinter * printer () const
|
||||
void setFromTo ( int from, int to )
|
||||
void setMinMax ( int min, int max )
|
||||
void setOptionTabs ( const QList<QWidget *> & tabs )
|
||||
void setPrintRange ( PrintRange range )
|
||||
int toPage () const
|
||||
|
||||
34
harbour/contrib/hbqt/qth/QAbstractScrollArea.qth
Normal file
34
harbour/contrib/hbqt/qth/QAbstractScrollArea.qth
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QAbstractScrollArea>
|
||||
|
||||
|
||||
/*
|
||||
* QAbstractScrollArea ( QWidget * parent = 0 )
|
||||
* ~QAbstractScrollArea ()
|
||||
*/
|
||||
#if 0
|
||||
HB_FUNC( QT_QABSTRACTSCROLLAREA )
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
</CODE>
|
||||
|
||||
void addScrollBarWidget ( QWidget * widget, Qt::Alignment alignment )
|
||||
QWidget * cornerWidget () const
|
||||
QScrollBar * horizontalScrollBar () const
|
||||
Qt::ScrollBarPolicy horizontalScrollBarPolicy () const
|
||||
QSize maximumViewportSize () const
|
||||
QWidgetList scrollBarWidgets ( Qt::Alignment alignment )
|
||||
void setCornerWidget ( QWidget * widget )
|
||||
void setHorizontalScrollBar ( QScrollBar * scrollBar )
|
||||
void setHorizontalScrollBarPolicy ( Qt::ScrollBarPolicy )
|
||||
void setVerticalScrollBar ( QScrollBar * scrollBar )
|
||||
void setVerticalScrollBarPolicy ( Qt::ScrollBarPolicy )
|
||||
void setViewport ( QWidget * widget )
|
||||
QScrollBar * verticalScrollBar () const
|
||||
Qt::ScrollBarPolicy verticalScrollBarPolicy () const
|
||||
QWidget * viewport () const
|
||||
|
||||
46
harbour/contrib/hbqt/qth/QAbstractSlider.qth
Normal file
46
harbour/contrib/hbqt/qth/QAbstractSlider.qth
Normal file
@@ -0,0 +1,46 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QAbstractSlider>
|
||||
|
||||
|
||||
/*
|
||||
* QAbstractSlider ( QWidget * parent = 0 )
|
||||
* ~QAbstractSlider ()
|
||||
*/
|
||||
#if 0
|
||||
HB_FUNC( QT_QABSTRACTSLIDER )
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
</CODE>
|
||||
|
||||
enum SliderAction { SliderNoAction, SliderSingleStepAdd, SliderSingleStepSub, SliderPageStepAdd, ..., SliderMove }
|
||||
|
||||
bool hasTracking () const
|
||||
bool invertedAppearance () const
|
||||
bool invertedControls () const
|
||||
bool isSliderDown () const
|
||||
int maximum () const
|
||||
int minimum () const
|
||||
Qt::Orientation orientation () const
|
||||
int pageStep () const
|
||||
void setInvertedAppearance ( bool )
|
||||
void setInvertedControls ( bool )
|
||||
void setMaximum ( int )
|
||||
void setMinimum ( int )
|
||||
void setPageStep ( int )
|
||||
void setRange ( int min, int max )
|
||||
void setSingleStep ( int )
|
||||
void setSliderDown ( bool )
|
||||
void setSliderPosition ( int )
|
||||
void setTracking ( bool enable )
|
||||
int singleStep () const
|
||||
int sliderPosition () const
|
||||
void triggerAction ( SliderAction action )
|
||||
int value () const
|
||||
|
||||
|
||||
|
||||
|
||||
48
harbour/contrib/hbqt/qth/QAbstractSpinBox.qth
Normal file
48
harbour/contrib/hbqt/qth/QAbstractSpinBox.qth
Normal file
@@ -0,0 +1,48 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QAbstractSpinBox>
|
||||
|
||||
|
||||
/*
|
||||
* QAbstractSpinBox ( QWidget * parent = 0 )
|
||||
* ~QAbstractSpinBox ()
|
||||
*/
|
||||
#if 0
|
||||
HB_FUNC( QT_QABSTRACTSPINBOX )
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
</CODE>
|
||||
|
||||
enum ButtonSymbols { UpDownArrows, PlusMinus, NoButtons }
|
||||
enum CorrectionMode { CorrectToPreviousValue, CorrectToNearestValue }
|
||||
flags StepEnabled
|
||||
enum StepEnabledFlag { StepNone, StepUpEnabled, StepDownEnabled }
|
||||
|
||||
Qt::Alignment alignment () const
|
||||
ButtonSymbols buttonSymbols () const
|
||||
CorrectionMode correctionMode () const
|
||||
// virtual void fixup ( QString & input ) const
|
||||
bool hasAcceptableInput () const
|
||||
bool hasFrame () const
|
||||
void interpretText ()
|
||||
bool isAccelerated () const
|
||||
bool isReadOnly () const
|
||||
bool keyboardTracking () const
|
||||
void setAccelerated ( bool on )
|
||||
void setAlignment ( Qt::Alignment flag )
|
||||
void setButtonSymbols ( ButtonSymbols bs )
|
||||
void setCorrectionMode ( CorrectionMode cm )
|
||||
void setFrame ( bool )
|
||||
void setKeyboardTracking ( bool kt )
|
||||
void setReadOnly ( bool r )
|
||||
void setSpecialValueText ( const QString & txt )
|
||||
void setWrapping ( bool w )
|
||||
QString specialValueText () const
|
||||
virtual void stepBy ( int steps )
|
||||
QString text () const
|
||||
// virtual QValidator::State validate ( QString & input, int & pos ) const
|
||||
bool wrapping () const
|
||||
|
||||
72
harbour/contrib/hbqt/qth/QAction.qth
Normal file
72
harbour/contrib/hbqt/qth/QAction.qth
Normal file
@@ -0,0 +1,72 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QAction>
|
||||
|
||||
|
||||
/*
|
||||
* QAction ( QObject * parent )
|
||||
* QAction ( const QString & text, QObject * parent )
|
||||
* QAction ( const QIcon & icon, const QString & text, QObject * parent )
|
||||
* ~QAction ()
|
||||
*/
|
||||
HB_FUNC( QT_QACTION )
|
||||
{
|
||||
if( HB_ISPOINTER( 1 ) )
|
||||
hb_retptr( new QAction( hbqt_par_QObject( 1 ) ) );
|
||||
else if( HB_ISPOINTER( 2 ) )
|
||||
hb_retptr( new QAction( hbqt_par_QString( 1 ), hbqt_par_QObject( 2 ) ) );
|
||||
else if( HB_ISPOINTER( 3 ) )
|
||||
hb_retptr( new QAction( hbqt_par_QIcon( 1 ), hbqt_par_QString( 2 ), hbqt_par_QObject( 3 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
enum ActionEvent { Trigger, Hover }
|
||||
enum MenuRole { NoRole, TextHeuristicRole, ApplicationSpecificRole, AboutQtRole, ..., QuitRole }
|
||||
|
||||
QActionGroup * actionGroup () const
|
||||
void activate ( ActionEvent event )
|
||||
QList<QGraphicsWidget *> associatedGraphicsWidgets () const
|
||||
QList<QWidget *> associatedWidgets () const
|
||||
bool autoRepeat () const
|
||||
QVariant data () const
|
||||
QFont font () const
|
||||
QIcon icon () const
|
||||
QString iconText () const
|
||||
bool isCheckable () const
|
||||
bool isChecked () const
|
||||
bool isEnabled () const
|
||||
bool isIconVisibleInMenu () const
|
||||
bool isSeparator () const
|
||||
bool isVisible () const
|
||||
QMenu * menu () const
|
||||
MenuRole menuRole () const
|
||||
QWidget * parentWidget () const
|
||||
void setActionGroup ( QActionGroup * group )
|
||||
void setAutoRepeat ( bool )
|
||||
void setCheckable ( bool )
|
||||
void setData ( const QVariant & userData )
|
||||
void setFont ( const QFont & font )
|
||||
void setIcon ( const QIcon & icon )
|
||||
void setIconText ( const QString & text )
|
||||
void setIconVisibleInMenu ( bool visible )
|
||||
void setMenu ( QMenu * menu )
|
||||
void setMenuRole ( MenuRole menuRole )
|
||||
void setSeparator ( bool b )
|
||||
void setShortcut ( const QKeySequence & shortcut )
|
||||
void setShortcutContext ( Qt::ShortcutContext context )
|
||||
void setShortcuts ( const QList<QKeySequence> & shortcuts )
|
||||
void setShortcuts ( QKeySequence::StandardKey key )
|
||||
void setStatusTip ( const QString & statusTip )
|
||||
void setText ( const QString & text )
|
||||
void setToolTip ( const QString & tip )
|
||||
void setWhatsThis ( const QString & what )
|
||||
QKeySequence shortcut () const
|
||||
Qt::ShortcutContext shortcutContext () const
|
||||
QList<QKeySequence> shortcuts () const
|
||||
bool showStatusText ( QWidget * widget = 0 )
|
||||
QString statusTip () const
|
||||
QString text () const
|
||||
QString toolTip () const
|
||||
QString whatsThis () const
|
||||
134
harbour/contrib/hbqt/qth/QApplication.qth
Normal file
134
harbour/contrib/hbqt/qth/QApplication.qth
Normal file
@@ -0,0 +1,134 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
|
||||
#include "hbapi.h"
|
||||
#include "hbinit.h"
|
||||
#include "hbdefs.h"
|
||||
#include "hbapifs.h"
|
||||
#include "hbapiitm.h"
|
||||
#include "hbstack.h"
|
||||
#include "hbvm.h"
|
||||
#include "hbdate.h"
|
||||
#include "hbapierr.h"
|
||||
|
||||
#include <QtGui/QApplication>
|
||||
|
||||
void release_codeblocks();
|
||||
|
||||
static QApplication * app = NULL;
|
||||
static bool hbqtinit = false;
|
||||
|
||||
/*
|
||||
* QApplication ( int & argc, char ** argv )
|
||||
* QApplication ( int & argc, char ** argv, bool GUIenabled )
|
||||
* QApplication ( int & argc, char ** argv, Type type )
|
||||
* QApplication ( Display * display, Qt::HANDLE visual = 0, Qt::HANDLE colormap = 0 )
|
||||
* QApplication ( Display * display, int & argc, char ** argv, Qt::HANDLE visual = 0, Qt::HANDLE colormap = 0 )
|
||||
* virtual ~QApplication ()
|
||||
*/
|
||||
|
||||
#if 0
|
||||
HB_FUNC( QT_QAPPLICATION )
|
||||
{
|
||||
int i_argc = 0;
|
||||
char** c_argv = NULL;
|
||||
app = new QApplication( i_argc, c_argv );
|
||||
hb_retptr( ( QApplication* ) app);
|
||||
}
|
||||
#endif
|
||||
|
||||
HB_FUNC( QT_QAPPLICATION )
|
||||
{
|
||||
#if 0
|
||||
int i_argc;
|
||||
char ** c_argv;
|
||||
i_argc = hb_cmdargARGC();
|
||||
c_argv = hb_cmdargARGV();
|
||||
app = new QApplication( i_argc, c_argv );
|
||||
#endif
|
||||
hb_retptr( ( QApplication * ) app );
|
||||
}
|
||||
|
||||
static void hbqt_Exit( void * cargo )
|
||||
{
|
||||
HB_SYMBOL_UNUSED( cargo );
|
||||
|
||||
release_codeblocks();
|
||||
}
|
||||
|
||||
static void hbqt_Init( void * cargo )
|
||||
{
|
||||
int argc;
|
||||
char ** argv;
|
||||
|
||||
HB_SYMBOL_UNUSED( cargo );
|
||||
|
||||
argc = hb_cmdargARGC();
|
||||
argv = hb_cmdargARGV();
|
||||
|
||||
app = new QApplication( argc, argv );
|
||||
|
||||
if( app )
|
||||
hbqtinit = true;
|
||||
|
||||
if( ! hbqtinit )
|
||||
hb_errInternal( 11001, "hbqt_Init(): QT Initilization Error.", NULL, NULL );
|
||||
|
||||
hb_cmdargInit( argc, argv );
|
||||
|
||||
hb_vmAtExit( hbqt_Exit, NULL );
|
||||
}
|
||||
|
||||
HB_CALL_ON_STARTUP_BEGIN( _hb_hbqt_init_ )
|
||||
hb_vmAtInit( hbqt_Init, NULL );
|
||||
HB_CALL_ON_STARTUP_END( _hb_hbqt_init_ )
|
||||
|
||||
#if defined( HB_PRAGMA_STARTUP )
|
||||
#pragma startup _hb_hbqt_init_
|
||||
#elif defined( HB_MSC_STARTUP )
|
||||
#if defined( HB_OS_WIN_64 )
|
||||
#pragma section( HB_MSC_START_SEGMENT, long, read )
|
||||
#endif
|
||||
#pragma data_seg( HB_MSC_START_SEGMENT )
|
||||
static HB_$INITSYM hb_auto_hbqt_init_ = _hb_hbqt_init_;
|
||||
#pragma data_seg()
|
||||
#endif
|
||||
|
||||
HB_FUNC( QT_QAPPLICATION_EXEC )
|
||||
{
|
||||
hb_retni( app->exec() );
|
||||
}
|
||||
|
||||
HB_FUNC( QT_QAPPLICATION_SETSTYLE )
|
||||
{
|
||||
app->setStyle( hb_parc( 2 ) );
|
||||
}
|
||||
|
||||
HB_FUNC( QT_QAPPLICATION_QUIT )
|
||||
{
|
||||
app->quit();
|
||||
}
|
||||
|
||||
HB_FUNC( QT_QAPPLICATION_ABOUTQT )
|
||||
{
|
||||
app->aboutQt();
|
||||
}
|
||||
|
||||
</CODE>
|
||||
|
||||
enum ColorSpec { NormalColor, CustomColor, ManyColor }
|
||||
enum Type { Tty, GuiClient, GuiServer }
|
||||
|
||||
virtual void commitData ( QSessionManager & manager )
|
||||
QInputContext * inputContext () const
|
||||
bool isSessionRestored () const
|
||||
virtual bool macEventFilter ( EventHandlerCallRef, EventRef )
|
||||
// virtual bool qwsEventFilter ( QWSEvent * )
|
||||
// int qwsProcessEvent ( QWSEvent * )
|
||||
// void qwsSetCustomColors ( QRgb * colortable, int start, int numColors )
|
||||
virtual void saveState ( QSessionManager & manager )
|
||||
QString sessionId () const
|
||||
QString sessionKey () const
|
||||
void setInputContext ( QInputContext * inputContext )
|
||||
QString styleSheet () const
|
||||
40
harbour/contrib/hbqt/qth/QBoxLayout.qth
Normal file
40
harbour/contrib/hbqt/qth/QBoxLayout.qth
Normal file
@@ -0,0 +1,40 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QBoxLayout>
|
||||
|
||||
|
||||
/*
|
||||
* QBoxLayout ( Direction dir, QWidget * parent = 0 )
|
||||
* ~QBoxLayout ()
|
||||
*/
|
||||
HB_FUNC( QT_QBOXLAYOUT )
|
||||
{
|
||||
hb_retptr( ( QBoxLayout* ) new QBoxLayout( ( QBoxLayout::Direction ) hb_parni( 1 ),
|
||||
hbqt_par_QWidget( 2 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
enum Direction { LeftToRight, RightToLeft, TopToBottom, BottomToTop }
|
||||
|
||||
void addLayout ( QLayout * layout, int stretch = 0 )
|
||||
void addSpacerItem ( QSpacerItem * spacerItem )
|
||||
void addSpacing ( int size )
|
||||
void addStretch ( int stretch = 0 )
|
||||
void addStrut ( int size )
|
||||
void addWidget ( QWidget * widget, int stretch = 0, Qt::Alignment alignment = 0 )
|
||||
Direction direction () const
|
||||
void insertLayout ( int index, QLayout * layout, int stretch = 0 )
|
||||
void insertSpacerItem ( int index, QSpacerItem * spacerItem )
|
||||
void insertSpacing ( int index, int size )
|
||||
void insertStretch ( int index, int stretch = 0 )
|
||||
void insertWidget ( int index, QWidget * widget, int stretch = 0, Qt::Alignment alignment = 0 )
|
||||
virtual void invalidate ()
|
||||
void setDirection ( Direction direction )
|
||||
void setSpacing ( int spacing )
|
||||
void setStretch ( int index, int stretch )
|
||||
bool setStretchFactor ( QWidget * widget, int stretch )
|
||||
bool setStretchFactor ( QLayout * layout, int stretch )
|
||||
int spacing () const
|
||||
int stretch ( int index ) const
|
||||
@@ -1,22 +1,24 @@
|
||||
<CODE>
|
||||
#include <QtGui/QBrush>
|
||||
|
||||
|
||||
/*
|
||||
QBrush ()
|
||||
QBrush ( Qt::BrushStyle style )
|
||||
QBrush ( const QColor & color, Qt::BrushStyle style = Qt::SolidPattern )
|
||||
QBrush ( Qt::GlobalColor color, Qt::BrushStyle style = Qt::SolidPattern )
|
||||
QBrush ( const QColor & color, const QPixmap & pixmap )
|
||||
QBrush ( Qt::GlobalColor color, const QPixmap & pixmap )
|
||||
QBrush ( const QPixmap & pixmap )
|
||||
QBrush ( const QImage & image )
|
||||
QBrush ( const QBrush & other )
|
||||
QBrush ( const QGradient & gradient )
|
||||
~QBrush ()
|
||||
*/
|
||||
* QBrush ()
|
||||
* QBrush ( Qt::BrushStyle style )
|
||||
* QBrush ( const QColor & color, Qt::BrushStyle style = Qt::SolidPattern )
|
||||
* QBrush ( Qt::GlobalColor color, Qt::BrushStyle style = Qt::SolidPattern )
|
||||
* QBrush ( const QColor & color, const QPixmap & pixmap )
|
||||
* QBrush ( Qt::GlobalColor color, const QPixmap & pixmap )
|
||||
* QBrush ( const QPixmap & pixmap )
|
||||
* QBrush ( const QImage & image )
|
||||
* QBrush ( const QBrush & other )
|
||||
* QBrush ( const QGradient & gradient )
|
||||
* ~QBrush ()
|
||||
*/
|
||||
HB_FUNC( QT_QBRUSH )
|
||||
{
|
||||
hb_retptr( ( QBrush* ) new QBrush() );
|
||||
}
|
||||
|
||||
</CODE>
|
||||
|
||||
const QColor & color () const
|
||||
|
||||
49
harbour/contrib/hbqt/qth/QCalendarWidget.qth
Normal file
49
harbour/contrib/hbqt/qth/QCalendarWidget.qth
Normal file
@@ -0,0 +1,49 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QCalendarWidget>
|
||||
|
||||
|
||||
/*
|
||||
* QCalendarWidget ( QWidget * parent = 0 )
|
||||
* ~QCalendarWidget ()
|
||||
*/
|
||||
HB_FUNC( QT_QCALENDARWIDGET )
|
||||
{
|
||||
hb_retptr( ( QCalendarWidget* ) new QCalendarWidget( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
enum HorizontalHeaderFormat { SingleLetterDayNames, ShortDayNames, LongDayNames, NoHorizontalHeader }
|
||||
enum SelectionMode { NoSelection, SingleSelection }
|
||||
enum VerticalHeaderFormat { ISOWeekNumbers, NoVerticalHeader }
|
||||
|
||||
int dateEditAcceptDelay () const
|
||||
QMap<QDate, QTextCharFormat> dateTextFormat () const
|
||||
QTextCharFormat dateTextFormat ( const QDate & date ) const
|
||||
Qt::DayOfWeek firstDayOfWeek () const
|
||||
QTextCharFormat headerTextFormat () const
|
||||
HorizontalHeaderFormat horizontalHeaderFormat () const
|
||||
bool isDateEditEnabled () const
|
||||
bool isGridVisible () const
|
||||
bool isNavigationBarVisible () const
|
||||
QDate maximumDate () const
|
||||
QDate minimumDate () const
|
||||
int monthShown () const
|
||||
QDate selectedDate () const
|
||||
SelectionMode selectionMode () const
|
||||
void setDateEditAcceptDelay ( int delay )
|
||||
void setDateEditEnabled ( bool enable )
|
||||
void setDateTextFormat ( const QDate & date, const QTextCharFormat & format )
|
||||
void setFirstDayOfWeek ( Qt::DayOfWeek dayOfWeek )
|
||||
void setHeaderTextFormat ( const QTextCharFormat & format )
|
||||
void setHorizontalHeaderFormat ( HorizontalHeaderFormat format )
|
||||
void setMaximumDate ( const QDate & date )
|
||||
void setMinimumDate ( const QDate & date )
|
||||
void setSelectionMode ( SelectionMode mode )
|
||||
void setVerticalHeaderFormat ( VerticalHeaderFormat format )
|
||||
void setWeekdayTextFormat ( Qt::DayOfWeek dayOfWeek, const QTextCharFormat & format )
|
||||
VerticalHeaderFormat verticalHeaderFormat () const
|
||||
QTextCharFormat weekdayTextFormat ( Qt::DayOfWeek dayOfWeek ) const
|
||||
int yearShown () const
|
||||
28
harbour/contrib/hbqt/qth/QCheckBox.qth
Normal file
28
harbour/contrib/hbqt/qth/QCheckBox.qth
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QCheckBox>
|
||||
|
||||
|
||||
/*
|
||||
* QCheckBox ( QWidget * parent = 0 )
|
||||
* QCheckBox ( const QString & text, QWidget * parent = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QCHECKBOX )
|
||||
{
|
||||
if( hb_pcount() >= 1 && HB_ISCHAR( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QCheckBox* ) new QCheckBox( hbqt_par_QString( 1 ), hbqt_par_QWidget( 2 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( ( QCheckBox* ) new QCheckBox( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
Qt::CheckState checkState () const
|
||||
bool isTristate () const
|
||||
void setCheckState ( Qt::CheckState state )
|
||||
void setTristate ( bool y = true )
|
||||
78
harbour/contrib/hbqt/qth/QColor.qth
Normal file
78
harbour/contrib/hbqt/qth/QColor.qth
Normal file
@@ -0,0 +1,78 @@
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QColor>
|
||||
|
||||
/*
|
||||
QColor ()
|
||||
QColor ( int r, int g, int b, int a = 255 )
|
||||
QColor ( QRgb color )
|
||||
QColor ( const QString & name )
|
||||
QColor ( const char * name )
|
||||
QColor ( const QColor & color )
|
||||
QColor ( Qt::GlobalColor color )
|
||||
*/
|
||||
HB_FUNC( QT_QCOLOR )
|
||||
{
|
||||
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
enum Spec { Rgb, Hsv, Cmyk, Invalid }
|
||||
|
||||
int alpha () const
|
||||
qreal alphaF () const
|
||||
int black () const
|
||||
qreal blackF () const
|
||||
int blue () const
|
||||
qreal blueF () const
|
||||
QColor convertTo ( Spec colorSpec ) const
|
||||
int cyan () const
|
||||
qreal cyanF () const
|
||||
QColor darker ( int factor = 200 ) const
|
||||
void getCmyk ( int * c, int * m, int * y, int * k, int * a = 0 )
|
||||
void getCmykF ( qreal * c, qreal * m, qreal * y, qreal * k, qreal * a = 0 )
|
||||
void getHsv ( int * h, int * s, int * v, int * a = 0 ) const
|
||||
void getHsvF ( qreal * h, qreal * s, qreal * v, qreal * a = 0 ) const
|
||||
void getRgb ( int * r, int * g, int * b, int * a = 0 ) const
|
||||
void getRgbF ( qreal * r, qreal * g, qreal * b, qreal * a = 0 ) const
|
||||
int green () const
|
||||
qreal greenF () const
|
||||
int hue () const
|
||||
qreal hueF () const
|
||||
bool isValid () const
|
||||
QColor lighter ( int factor = 150 ) const
|
||||
int magenta () const
|
||||
qreal magentaF () const
|
||||
QString name () const
|
||||
int red () const
|
||||
qreal redF () const
|
||||
QRgb rgb () const
|
||||
QRgb rgba () const
|
||||
int saturation () const
|
||||
qreal saturationF () const
|
||||
void setAlpha ( int alpha )
|
||||
void setAlphaF ( qreal alpha )
|
||||
void setBlue ( int blue )
|
||||
void setBlueF ( qreal blue )
|
||||
void setCmyk ( int c, int m, int y, int k, int a = 255 )
|
||||
void setCmykF ( qreal c, qreal m, qreal y, qreal k, qreal a = 1.0 )
|
||||
void setGreen ( int green )
|
||||
void setGreenF ( qreal green )
|
||||
void setHsv ( int h, int s, int v, int a = 255 )
|
||||
void setHsvF ( qreal h, qreal s, qreal v, qreal a = 1.0 )
|
||||
void setNamedColor ( const QString & name )
|
||||
void setRed ( int red )
|
||||
void setRedF ( qreal red )
|
||||
void setRgb ( int r, int g, int b, int a = 255 )
|
||||
void setRgb ( QRgb rgb )
|
||||
void setRgbF ( qreal r, qreal g, qreal b, qreal a = 1.0 )
|
||||
void setRgba ( QRgb rgba )
|
||||
Spec spec () const
|
||||
QColor toCmyk () const
|
||||
QColor toHsv () const
|
||||
QColor toRgb () const
|
||||
int value () const
|
||||
qreal valueF () const
|
||||
int yellow () const
|
||||
qreal yellowF () const
|
||||
37
harbour/contrib/hbqt/qth/QColorDialog.qth
Normal file
37
harbour/contrib/hbqt/qth/QColorDialog.qth
Normal file
@@ -0,0 +1,37 @@
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QColorDialog>
|
||||
|
||||
/*
|
||||
* QColorDialog ( QWidget * parent = 0 )
|
||||
* QColorDialog ( const QColor & initial, QWidget * parent = 0 )
|
||||
* ~QColorDialog ()
|
||||
*/
|
||||
HB_FUNC( QT_QCOLORDIALOG )
|
||||
{
|
||||
if( hb_pcount() >= 1 && HB_ISNUM( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QColorDialog* ) new QColorDialog( hb_parni( 1 ),
|
||||
hbqt_par_QWidget( 2 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( ( QColorDialog* ) new QColorDialog( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
enum ColorDialogOption { ShowAlphaChannel, NoButtons, DontUseNativeDialog }
|
||||
enum ColorDialogOptions
|
||||
|
||||
QColor currentColor () const
|
||||
void open ()
|
||||
void open ( QObject * receiver, const char * member )
|
||||
ColorDialogOptions options () const
|
||||
QColor selectedColor () const
|
||||
void setCurrentColor ( const QColor & color )
|
||||
void setOption ( ColorDialogOption option, bool on = true )
|
||||
void setOptions ( ColorDialogOptions options )
|
||||
virtual void setVisible ( bool visible )
|
||||
bool testOption ( ColorDialogOption option ) const
|
||||
|
||||
75
harbour/contrib/hbqt/qth/QComboBox.qth
Normal file
75
harbour/contrib/hbqt/qth/QComboBox.qth
Normal file
@@ -0,0 +1,75 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QComboBox>
|
||||
|
||||
|
||||
/*
|
||||
* QComboBox ( QWidget * parent = 0 )
|
||||
* ~QComboBox ()
|
||||
*/
|
||||
HB_FUNC( QT_COMBOBOX )
|
||||
{
|
||||
hb_retptr( ( QComboBox* ) new QComboBox( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
enum InsertPolicy { NoInsert, InsertAtTop, InsertAtCurrent, InsertAtBottom, ..., InsertAlphabetically }
|
||||
enum SizeAdjustPolicy { AdjustToContents, AdjustToContentsOnFirstShow, AdjustToMinimumContentsLength, AdjustToMinimumContentsLengthWithIcon }
|
||||
|
||||
void addItem ( const QString & text, const QVariant & userData = QVariant() )
|
||||
void addItem ( const QIcon & icon, const QString & text, const QVariant & userData = QVariant() )
|
||||
void addItems ( const QStringList & texts )
|
||||
QCompleter * completer () const
|
||||
int count () const
|
||||
int currentIndex () const
|
||||
QString currentText () const
|
||||
bool duplicatesEnabled () const
|
||||
int findData ( const QVariant & data, int role = Qt::UserRole, Qt::MatchFlags flags = Qt::MatchExactly | Qt::MatchCaseSensitive ) const
|
||||
int findText ( const QString & text, Qt::MatchFlags flags = Qt::MatchExactly | Qt::MatchCaseSensitive ) const
|
||||
bool hasFrame () const
|
||||
virtual void hidePopup ()
|
||||
QSize iconSize () const
|
||||
void insertItem ( int index, const QString & text, const QVariant & userData = QVariant() )
|
||||
void insertItem ( int index, const QIcon & icon, const QString & text, const QVariant & userData = QVariant() )
|
||||
void insertItems ( int index, const QStringList & list )
|
||||
InsertPolicy insertPolicy () const
|
||||
void insertSeparator ( int index )
|
||||
bool isEditable () const
|
||||
QVariant itemData ( int index, int role = Qt::UserRole ) const
|
||||
QAbstractItemDelegate * itemDelegate () const
|
||||
QIcon itemIcon ( int index ) const
|
||||
QString itemText ( int index ) const
|
||||
QLineEdit * lineEdit () const
|
||||
int maxCount () const
|
||||
int maxVisibleItems () const
|
||||
int minimumContentsLength () const
|
||||
QAbstractItemModel * model () const
|
||||
int modelColumn () const
|
||||
void removeItem ( int index )
|
||||
QModelIndex rootModelIndex () const
|
||||
void setCompleter ( QCompleter * completer )
|
||||
void setDuplicatesEnabled ( bool enable )
|
||||
void setEditable ( bool editable )
|
||||
void setFrame ( bool )
|
||||
void setIconSize ( const QSize & size )
|
||||
void setInsertPolicy ( InsertPolicy policy )
|
||||
void setItemData ( int index, const QVariant & value, int role = Qt::UserRole )
|
||||
void setItemDelegate ( QAbstractItemDelegate * delegate )
|
||||
void setItemIcon ( int index, const QIcon & icon )
|
||||
void setItemText ( int index, const QString & text )
|
||||
void setLineEdit ( QLineEdit * edit )
|
||||
void setMaxCount ( int max )
|
||||
void setMaxVisibleItems ( int maxItems )
|
||||
void setMinimumContentsLength ( int characters )
|
||||
void setModel ( QAbstractItemModel * model )
|
||||
void setModelColumn ( int visibleColumn )
|
||||
void setRootModelIndex ( const QModelIndex & index )
|
||||
void setSizeAdjustPolicy ( SizeAdjustPolicy policy )
|
||||
void setValidator ( const QValidator * validator )
|
||||
void setView ( QAbstractItemView * itemView )
|
||||
virtual void showPopup ()
|
||||
SizeAdjustPolicy sizeAdjustPolicy () const
|
||||
const QValidator * validator () const
|
||||
QAbstractItemView * view () const
|
||||
22
harbour/contrib/hbqt/qth/QCommandLinkButton.qth
Normal file
22
harbour/contrib/hbqt/qth/QCommandLinkButton.qth
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QCommandLinkButton>
|
||||
|
||||
|
||||
/*
|
||||
* QCommandLinkButton ( QWidget * parent = 0 )
|
||||
* QCommandLinkButton ( const QString & text, QWidget * parent = 0 )
|
||||
* QCommandLinkButton ( const QString & text, const QString & description, QWidget * parent = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QCOMMANDLINKBUTTON )
|
||||
{
|
||||
hb_retptr( ( QCommandLinkButton* ) new QCommandLinkButton( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
|
||||
QString description () const
|
||||
void setDescription ( const QString & description )
|
||||
|
||||
25
harbour/contrib/hbqt/qth/QCoreApplication.qth
Normal file
25
harbour/contrib/hbqt/qth/QCoreApplication.qth
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QCoreApplication>
|
||||
|
||||
|
||||
/*
|
||||
* QCoreApplication ( int & argc, char ** argv )
|
||||
* ~QCoreApplication ()
|
||||
*/
|
||||
#if 0
|
||||
HB_FUNC( QT_QCOREAPPLICATION )
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
</CODE>
|
||||
|
||||
|
||||
enum Encoding { CodecForTr, UnicodeUTF8, DefaultCodec }
|
||||
|
||||
// bool filterEvent ( void * message, long * result )
|
||||
virtual bool notify ( QObject * receiver, QEvent * event )
|
||||
EventFilter setEventFilter ( EventFilter filter )
|
||||
// virtual bool winEventFilter ( MSG * msg, long * result )
|
||||
19
harbour/contrib/hbqt/qth/QDateEdit.qth
Normal file
19
harbour/contrib/hbqt/qth/QDateEdit.qth
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QDateEdit>
|
||||
|
||||
|
||||
/*
|
||||
* QDateEdit ( QWidget * parent = 0 )
|
||||
* QDateEdit ( const QDate & date, QWidget * parent = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QDATEEDIT )
|
||||
{
|
||||
hb_retptr( ( QDateEdit* ) new QDateEdit( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
|
||||
|
||||
63
harbour/contrib/hbqt/qth/QDateTimeEdit.qth
Normal file
63
harbour/contrib/hbqt/qth/QDateTimeEdit.qth
Normal file
@@ -0,0 +1,63 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QDateTimeEdit>
|
||||
|
||||
|
||||
/*
|
||||
* QDateTimeEdit ( QWidget * parent = 0 )
|
||||
* QDateTimeEdit ( const QDateTime & datetime, QWidget * parent = 0 )
|
||||
* QDateTimeEdit ( const QDate & date, QWidget * parent = 0 )
|
||||
* QDateTimeEdit ( const QTime & time, QWidget * parent = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QDATETIMEEDIT )
|
||||
{
|
||||
hb_retptr( ( QDateTimeEdit* ) new QDateTimeEdit( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
enum Section { NoSection, AmPmSection, MSecSection, SecondSection, ..., YearSection }
|
||||
flags Sections
|
||||
|
||||
bool calendarPopup () const
|
||||
QCalendarWidget * calendarWidget () const
|
||||
void clearMaximumDate ()
|
||||
void clearMaximumDateTime ()
|
||||
void clearMaximumTime ()
|
||||
void clearMinimumDate ()
|
||||
void clearMinimumDateTime ()
|
||||
void clearMinimumTime ()
|
||||
Section currentSection () const
|
||||
int currentSectionIndex () const
|
||||
QDate date () const
|
||||
QDateTime dateTime () const
|
||||
QString displayFormat () const
|
||||
Sections displayedSections () const
|
||||
QDate maximumDate () const
|
||||
QDateTime maximumDateTime () const
|
||||
QTime maximumTime () const
|
||||
QDate minimumDate () const
|
||||
QDateTime minimumDateTime () const
|
||||
QTime minimumTime () const
|
||||
Section sectionAt ( int index ) const
|
||||
int sectionCount () const
|
||||
QString sectionText ( Section section ) const
|
||||
void setCalendarPopup ( bool enable )
|
||||
void setCalendarWidget ( QCalendarWidget * calendarWidget )
|
||||
void setCurrentSection ( Section section )
|
||||
void setCurrentSectionIndex ( int index )
|
||||
void setDateRange ( const QDate & min, const QDate & max )
|
||||
void setDateTimeRange ( const QDateTime & min, const QDateTime & max )
|
||||
void setDisplayFormat ( const QString & format )
|
||||
void setMaximumDate ( const QDate & max )
|
||||
void setMaximumDateTime ( const QDateTime & dt )
|
||||
void setMaximumTime ( const QTime & max )
|
||||
void setMinimumDate ( const QDate & min )
|
||||
void setMinimumDateTime ( const QDateTime & dt )
|
||||
void setMinimumTime ( const QTime & min )
|
||||
void setSelectedSection ( Section section )
|
||||
void setTimeRange ( const QTime & min, const QTime & max )
|
||||
void setTimeSpec ( Qt::TimeSpec spec )
|
||||
QTime time () const
|
||||
Qt::TimeSpec timeSpec () const
|
||||
22
harbour/contrib/hbqt/qth/QDial.qth
Normal file
22
harbour/contrib/hbqt/qth/QDial.qth
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QDial>
|
||||
|
||||
|
||||
/*
|
||||
* QDial ( QWidget * parent = 0 )
|
||||
* ~QDial ()
|
||||
*/
|
||||
HB_FUNC( QT_QDIAL )
|
||||
{
|
||||
hb_retptr( ( QDial* ) new QDial( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
int notchSize () const
|
||||
qreal notchTarget () const
|
||||
bool notchesVisible () const
|
||||
void setNotchTarget ( double target )
|
||||
bool wrapping () const
|
||||
|
||||
25
harbour/contrib/hbqt/qth/QDialog.qth
Normal file
25
harbour/contrib/hbqt/qth/QDialog.qth
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QDialog>
|
||||
|
||||
|
||||
/*
|
||||
* QDialog ( QWidget * parent = 0, Qt::WindowFlags f = 0 )
|
||||
* ~QDialog ()
|
||||
*/
|
||||
HB_FUNC( QT_QDIALOG )
|
||||
{
|
||||
hb_retptr( new QDialog( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
enum DialogCode { Accepted, Rejected }
|
||||
|
||||
bool isSizeGripEnabled () const
|
||||
int result () const
|
||||
void setModal ( bool modal )
|
||||
void setResult ( int i )
|
||||
void setSizeGripEnabled ( bool )
|
||||
|
||||
33
harbour/contrib/hbqt/qth/QDoubleSpinBox.qth
Normal file
33
harbour/contrib/hbqt/qth/QDoubleSpinBox.qth
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QDoubleSpinBox>
|
||||
|
||||
|
||||
/*
|
||||
* QDoubleSpinBox ( QWidget * parent = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QDOUBLESPINBOX )
|
||||
{
|
||||
hb_retptr( ( QDoubleSpinBox* ) new QDoubleSpinBox( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
QString cleanText () const
|
||||
int decimals () const
|
||||
double maximum () const
|
||||
double minimum () const
|
||||
QString prefix () const
|
||||
void setDecimals ( int prec )
|
||||
void setMaximum ( double max )
|
||||
void setMinimum ( double min )
|
||||
void setPrefix ( const QString & prefix )
|
||||
void setRange ( double minimum, double maximum )
|
||||
void setSingleStep ( double val )
|
||||
void setSuffix ( const QString & suffix )
|
||||
double singleStep () const
|
||||
QString suffix () const
|
||||
virtual QString textFromValue ( double value ) const
|
||||
double value () const
|
||||
virtual double valueFromText ( const QString & text ) const
|
||||
17
harbour/contrib/hbqt/qth/QErrorMessage.qth
Normal file
17
harbour/contrib/hbqt/qth/QErrorMessage.qth
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QErrorMessage>
|
||||
|
||||
|
||||
/*
|
||||
* QErrorMessage ( QWidget * parent = 0 )
|
||||
* ~QErrorMessage ()
|
||||
*/
|
||||
HB_FUNC( QT_QERRORMESSAGE )
|
||||
{
|
||||
hb_retptr( ( QErrorMessage* ) new QErrorMessage( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
73
harbour/contrib/hbqt/qth/QFileDialog.qth
Normal file
73
harbour/contrib/hbqt/qth/QFileDialog.qth
Normal file
@@ -0,0 +1,73 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QFileDialog>
|
||||
|
||||
|
||||
/*
|
||||
* QFileDialog ( QWidget * parent, Qt::WindowFlags flags )
|
||||
* QFileDialog ( QWidget * parent = 0, const QString & caption = QString(), const QString & directory = QString(), const QString & filter = QString() )
|
||||
* ~QFileDialog ()
|
||||
*/
|
||||
HB_FUNC( QT_QFILEDIALOG )
|
||||
{
|
||||
hb_retptr( ( QFileDialog* ) new QFileDialog( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
enum AcceptMode { AcceptOpen, AcceptSave }
|
||||
enum DialogLabel { LookIn, FileName, FileType, Accept, Reject }
|
||||
enum FileMode { AnyFile, ExistingFile, Directory, ExistingFiles, DirectoryOnly }
|
||||
enum Option { ShowDirsOnly, DontResolveSymlinks, DontConfirmOverwrite, DontUseNativeDialog, ..., DontUseSheet }
|
||||
flags Options
|
||||
enum ViewMode { Detail, List }
|
||||
|
||||
AcceptMode acceptMode () const
|
||||
bool confirmOverwrite () const
|
||||
QString defaultSuffix () const
|
||||
QDir directory () const
|
||||
FileMode fileMode () const
|
||||
QDir::Filters filter () const
|
||||
QStringList history () const
|
||||
QFileIconProvider * iconProvider () const
|
||||
bool isNameFilterDetailsVisible () const
|
||||
bool isReadOnly () const
|
||||
QAbstractItemDelegate * itemDelegate () const
|
||||
QString labelText ( DialogLabel label ) const
|
||||
QStringList nameFilters () const
|
||||
void open ( QObject * receiver, const char * member )
|
||||
Options options () const
|
||||
QAbstractProxyModel * proxyModel () const
|
||||
bool resolveSymlinks () const
|
||||
bool restoreState ( const QByteArray & state )
|
||||
QByteArray saveState () const
|
||||
void selectFile ( const QString & filename )
|
||||
void selectNameFilter ( const QString & filter )
|
||||
QStringList selectedFiles () const
|
||||
QString selectedNameFilter () const
|
||||
void setAcceptMode ( AcceptMode mode )
|
||||
void setConfirmOverwrite ( bool enabled )
|
||||
void setDefaultSuffix ( const QString & suffix )
|
||||
void setDirectory ( const QString & directory )
|
||||
void setDirectory ( const QDir & directory )
|
||||
void setFileMode ( FileMode mode )
|
||||
void setFilter ( QDir::Filters filters )
|
||||
void setHistory ( const QStringList & paths )
|
||||
void setIconProvider ( QFileIconProvider * provider )
|
||||
void setItemDelegate ( QAbstractItemDelegate * delegate )
|
||||
void setLabelText ( DialogLabel label, const QString & text )
|
||||
void setNameFilter ( const QString & filter )
|
||||
void setNameFilterDetailsVisible ( bool enabled )
|
||||
void setNameFilters ( const QStringList & filters )
|
||||
void setOption ( Option option, bool on = true )
|
||||
void setOptions ( Options options )
|
||||
void setProxyModel ( QAbstractProxyModel * proxyModel )
|
||||
void setReadOnly ( bool enabled )
|
||||
void setResolveSymlinks ( bool enabled )
|
||||
void setSidebarUrls ( const QList<QUrl> & urls )
|
||||
void setViewMode ( ViewMode mode )
|
||||
QList<QUrl> sidebarUrls () const
|
||||
bool testOption ( Option option ) const
|
||||
ViewMode viewMode () const
|
||||
|
||||
19
harbour/contrib/hbqt/qth/QFocusFrame.qth
Normal file
19
harbour/contrib/hbqt/qth/QFocusFrame.qth
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QFocusFrame>
|
||||
|
||||
|
||||
/*
|
||||
* QFocusFrame ( QWidget * parent = 0 )
|
||||
* ~QFocusFrame ()
|
||||
*/
|
||||
HB_FUNC( QT_QFOCUSFRAME )
|
||||
{
|
||||
hb_retptr( ( QFocusFrame* ) new QFocusFrame( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
void setWidget ( QWidget * widget )
|
||||
QWidget * widget () const
|
||||
|
||||
@@ -1,23 +1,13 @@
|
||||
#
|
||||
|
||||
enum Capitalization { MixedCase, AllUppercase, AllLowercase, SmallCaps, Capitalize }
|
||||
enum SpacingType { PercentageSpacing, AbsoluteSpacing }
|
||||
enum Stretch { UltraCondensed, ExtraCondensed, Condensed, SemiCondensed, ..., UltraExpanded }
|
||||
enum Style { StyleNormal, StyleItalic, StyleOblique }
|
||||
enum StyleHint { AnyStyle, SansSerif, Helvetica, Serif, ..., System }
|
||||
enum StyleStrategy { PreferDefault, PreferBitmap, PreferDevice, PreferOutline, ..., PreferQuality }
|
||||
enum Weight { Light, Normal, DemiBold, Bold, Black }
|
||||
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QFont>
|
||||
|
||||
/*
|
||||
QFont ()
|
||||
QFont ( const QString & family, int pointSize = -1, int weight = -1, bool italic = false )
|
||||
QFont ( const QFont & font, QPaintDevice * pd )
|
||||
QFont ( const QFont & font )
|
||||
*/
|
||||
* QFont ()
|
||||
* QFont ( const QString & family, int pointSize = -1, int weight = -1, bool italic = false )
|
||||
* QFont ( const QFont & font, QPaintDevice * pd )
|
||||
* QFont ( const QFont & font )
|
||||
*/
|
||||
HB_FUNC( QT_QFONT )
|
||||
{
|
||||
if( HB_IS_STRING( 1 ) )
|
||||
@@ -32,10 +22,16 @@ HB_FUNC( QT_QFONT )
|
||||
hb_parl( 4 ) ) );
|
||||
}
|
||||
}
|
||||
|
||||
</CODE>
|
||||
|
||||
|
||||
enum Capitalization { MixedCase, AllUppercase, AllLowercase, SmallCaps, Capitalize }
|
||||
enum SpacingType { PercentageSpacing, AbsoluteSpacing }
|
||||
enum Stretch { UltraCondensed, ExtraCondensed, Condensed, SemiCondensed, ..., UltraExpanded }
|
||||
enum Style { StyleNormal, StyleItalic, StyleOblique }
|
||||
enum StyleHint { AnyStyle, SansSerif, Helvetica, Serif, ..., System }
|
||||
enum StyleStrategy { PreferDefault, PreferBitmap, PreferDevice, PreferOutline, ..., PreferQuality }
|
||||
enum Weight { Light, Normal, DemiBold, Bold, Black }
|
||||
|
||||
bool bold () const
|
||||
Capitalization capitalization () const
|
||||
|
||||
26
harbour/contrib/hbqt/qth/QFontComboBox.qth
Normal file
26
harbour/contrib/hbqt/qth/QFontComboBox.qth
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QFontComboBox>
|
||||
|
||||
|
||||
/*
|
||||
* QFontComboBox ( QWidget * parent = 0 )
|
||||
* ~QFontComboBox ()
|
||||
*/
|
||||
HB_FUNC( QT_QFONTCOMBOBOX )
|
||||
{
|
||||
hb_retptr( ( QFontComboBox * ) new QFontComboBox( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
enum FontFilter { AllFonts, ScalableFonts, NonScalableFonts, MonospacedFonts, ProportionalFonts }
|
||||
flags FontFilters
|
||||
|
||||
QFont currentFont () const
|
||||
FontFilters fontFilters () const
|
||||
void setFontFilters ( FontFilters filters )
|
||||
void setWritingSystem ( QFontDatabase::WritingSystem script )
|
||||
QFontDatabase::WritingSystem writingSystem () const
|
||||
|
||||
31
harbour/contrib/hbqt/qth/QFontDialog.qth
Normal file
31
harbour/contrib/hbqt/qth/QFontDialog.qth
Normal file
@@ -0,0 +1,31 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QFontDialog>
|
||||
|
||||
|
||||
/*
|
||||
* QFontDialog ( QWidget * parent = 0 )
|
||||
* QFontDialog ( const QFont & initial, QWidget * parent = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QFONTDIALOG )
|
||||
{
|
||||
hb_retptr( ( QFontDialog * ) new QFontDialog( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
enum FontDialogOption { NoButtons, DontUseNativeDialog }
|
||||
flags FontDialogOptions
|
||||
|
||||
QFont currentFont () const
|
||||
void open ( QObject * receiver, const char * member )
|
||||
FontDialogOptions options () const
|
||||
QFont selectedFont () const
|
||||
void setCurrentFont ( const QFont & font )
|
||||
void setOption ( FontDialogOption option, bool on = true )
|
||||
void setOptions ( FontDialogOptions options )
|
||||
bool testOption ( FontDialogOption option ) const
|
||||
|
||||
|
||||
|
||||
|
||||
57
harbour/contrib/hbqt/qth/QFormLayout.qth
Normal file
57
harbour/contrib/hbqt/qth/QFormLayout.qth
Normal file
@@ -0,0 +1,57 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QFormLayout>
|
||||
|
||||
|
||||
/*
|
||||
* QFormLayout ( QWidget * parent = 0 )
|
||||
* ~QFormLayout ()
|
||||
*/
|
||||
HB_FUNC( QT_QFORMLAYOUT )
|
||||
{
|
||||
hb_retptr( ( QFormLayout * ) new QFormLayout( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
enum FieldGrowthPolicy { FieldsStayAtSizeHint, ExpandingFieldsGrow, AllNonFixedFieldsGrow }
|
||||
enum ItemRole { LabelRole, FieldRole, SpanningRole }
|
||||
enum RowWrapPolicy { DontWrapRows, WrapLongRows, WrapAllRows }
|
||||
|
||||
void addRow ( QWidget * label, QWidget * field )
|
||||
void addRow ( QWidget * label, QLayout * field )
|
||||
void addRow ( const QString & labelText, QWidget * field )
|
||||
void addRow ( const QString & labelText, QLayout * field )
|
||||
void addRow ( QWidget * widget )
|
||||
void addRow ( QLayout * layout )
|
||||
FieldGrowthPolicy fieldGrowthPolicy () const
|
||||
Qt::Alignment formAlignment () const
|
||||
void getItemPosition ( int index, int * rowPtr, ItemRole * rolePtr ) const
|
||||
void getLayoutPosition ( QLayout * layout, int * rowPtr, ItemRole * rolePtr ) const
|
||||
void getWidgetPosition ( QWidget * widget, int * rowPtr, ItemRole * rolePtr ) const
|
||||
int horizontalSpacing () const
|
||||
void insertRow ( int row, QWidget * label, QWidget * field )
|
||||
void insertRow ( int row, QWidget * label, QLayout * field )
|
||||
void insertRow ( int row, const QString & labelText, QWidget * field )
|
||||
void insertRow ( int row, const QString & labelText, QLayout * field )
|
||||
void insertRow ( int row, QWidget * widget )
|
||||
void insertRow ( int row, QLayout * layout )
|
||||
QLayoutItem * itemAt ( int row, ItemRole role ) const
|
||||
Qt::Alignment labelAlignment () const
|
||||
QWidget * labelForField ( QWidget * field ) const
|
||||
QWidget * labelForField ( QLayout * field ) const
|
||||
int rowCount () const
|
||||
RowWrapPolicy rowWrapPolicy () const
|
||||
void setFieldGrowthPolicy ( FieldGrowthPolicy policy )
|
||||
void setFormAlignment ( Qt::Alignment alignment )
|
||||
void setHorizontalSpacing ( int spacing )
|
||||
void setItem ( int row, ItemRole role, QLayoutItem * item )
|
||||
void setLabelAlignment ( Qt::Alignment alignment )
|
||||
void setLayout ( int row, ItemRole role, QLayout * layout )
|
||||
void setRowWrapPolicy ( RowWrapPolicy policy )
|
||||
void setSpacing ( int spacing )
|
||||
void setVerticalSpacing ( int spacing )
|
||||
void setWidget ( int row, ItemRole role, QWidget * widget )
|
||||
int spacing () const
|
||||
int verticalSpacing () const
|
||||
32
harbour/contrib/hbqt/qth/QFrame.qth
Normal file
32
harbour/contrib/hbqt/qth/QFrame.qth
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QFrame>
|
||||
|
||||
|
||||
/*
|
||||
* QFrame ( QWidget * parent = 0, Qt::WindowFlags f = 0 )
|
||||
* ~QFrame ()
|
||||
*/
|
||||
HB_FUNC( QT_QFRAME )
|
||||
{
|
||||
hb_retptr( new QFrame( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
enum Shadow { Plain, Raised, Sunken }
|
||||
enum Shape { NoFrame, Box, Panel, StyledPanel, ..., WinPanel }
|
||||
enum StyleMask { Shadow_Mask, Shape_Mask }
|
||||
|
||||
QRect frameRect () const
|
||||
Shadow frameShadow () const
|
||||
Shape frameShape () const
|
||||
int frameStyle () const
|
||||
int frameWidth () const
|
||||
int lineWidth () const
|
||||
int midLineWidth () const
|
||||
void setFrameRect ( const QRect & )
|
||||
void setFrameShadow ( Shadow )
|
||||
void setFrameShape ( Shape )
|
||||
void setFrameStyle ( int style )
|
||||
void setLineWidth ( int )
|
||||
void setMidLineWidth ( int )
|
||||
29
harbour/contrib/hbqt/qth/QGroupBox.qth
Normal file
29
harbour/contrib/hbqt/qth/QGroupBox.qth
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QGroupBox>
|
||||
|
||||
|
||||
/*
|
||||
* QGroupBox ( QWidget * parent = 0 )
|
||||
* QGroupBox ( const QString & title, QWidget * parent = 0 )
|
||||
* ~QGroupBox ()
|
||||
*/
|
||||
HB_FUNC( QT_QGROUPBOX )
|
||||
{
|
||||
hb_retptr( ( QGroupBox * ) new QGroupBox( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
Qt::Alignment alignment () const
|
||||
bool isCheckable () const
|
||||
bool isChecked () const
|
||||
bool isFlat () const
|
||||
void setAlignment ( int alignment )
|
||||
void setCheckable ( bool checkable )
|
||||
void setFlat ( bool flat )
|
||||
void setTitle ( const QString & title )
|
||||
QString title () const
|
||||
|
||||
|
||||
|
||||
19
harbour/contrib/hbqt/qth/QHBoxLayout.qth
Normal file
19
harbour/contrib/hbqt/qth/QHBoxLayout.qth
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QHBoxLayout>
|
||||
|
||||
|
||||
/*
|
||||
* QHBoxLayout ()
|
||||
* QHBoxLayout ( QWidget * parent )
|
||||
* ~QHBoxLayout ()
|
||||
*/
|
||||
HB_FUNC( QT_ )
|
||||
{
|
||||
hb_retptr( ( QHBoxLayout * ) new QHBoxLayout( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
|
||||
61
harbour/contrib/hbqt/qth/QInputDialog.qth
Normal file
61
harbour/contrib/hbqt/qth/QInputDialog.qth
Normal file
@@ -0,0 +1,61 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QInputDialog>
|
||||
|
||||
|
||||
/*
|
||||
* QInputDialog ( QWidget * parent = 0, Qt::WindowFlags flags = 0 )
|
||||
* ~QInputDialog ()
|
||||
*/
|
||||
HB_FUNC( QT_QINPUTDIALOG )
|
||||
{
|
||||
hb_retptr( ( QInputDialog * ) new QInputDialog( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
enum InputDialogOption { NoButtons, UseListViewForComboBoxItems }
|
||||
flags InputDialogOptions
|
||||
enum InputMode { TextInput, IntInput, DoubleInput }
|
||||
|
||||
QString cancelButtonText () const
|
||||
QStringList comboBoxItems () const
|
||||
virtual void done ( int result )
|
||||
int doubleDecimals () const
|
||||
double doubleMaximum () const
|
||||
double doubleMinimum () const
|
||||
double doubleValue () const
|
||||
InputMode inputMode () const
|
||||
int intMaximum () const
|
||||
int intMinimum () const
|
||||
int intStep () const
|
||||
int intValue () const
|
||||
bool isComboBoxEditable () const
|
||||
QString labelText () const
|
||||
QString okButtonText () const
|
||||
void open ( QObject * receiver, const char * member )
|
||||
InputDialogOptions options () const
|
||||
void setCancelButtonText ( const QString & text )
|
||||
void setComboBoxEditable ( bool editable )
|
||||
void setComboBoxItems ( const QStringList & items )
|
||||
void setDoubleDecimals ( int decimals )
|
||||
void setDoubleMaximum ( double max )
|
||||
void setDoubleMinimum ( double min )
|
||||
void setDoubleRange ( double min, double max )
|
||||
void setDoubleValue ( double value )
|
||||
void setInputMode ( InputMode mode )
|
||||
void setIntMaximum ( int max )
|
||||
void setIntMinimum ( int min )
|
||||
void setIntRange ( int min, int max )
|
||||
void setIntStep ( int step )
|
||||
void setIntValue ( int value )
|
||||
void setLabelText ( const QString & text )
|
||||
void setOkButtonText ( const QString & text )
|
||||
void setOption ( InputDialogOption option, bool on = true )
|
||||
void setOptions ( InputDialogOptions options )
|
||||
void setTextEchoMode ( QLineEdit::EchoMode mode )
|
||||
void setTextValue ( const QString & text )
|
||||
bool testOption ( InputDialogOption option ) const
|
||||
QLineEdit::EchoMode textEchoMode () const
|
||||
QString textValue () const
|
||||
|
||||
36
harbour/contrib/hbqt/qth/QLCDNumber.qth
Normal file
36
harbour/contrib/hbqt/qth/QLCDNumber.qth
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QLCDNumber>
|
||||
|
||||
|
||||
/*
|
||||
* QLCDNumber ( QWidget * parent = 0 )
|
||||
* QLCDNumber ( uint numDigits, QWidget * parent = 0 )
|
||||
* ~QLCDNumber ()
|
||||
*/
|
||||
HB_FUNC( QT_QLCDNUMBER )
|
||||
{
|
||||
hb_retptr( ( QLCDNumber * ) new QLCDNumber( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
enum Mode { Hex, Dec, Oct, Bin }
|
||||
enum SegmentStyle { Outline, Filled, Flat }
|
||||
|
||||
|
||||
bool checkOverflow ( double num ) const
|
||||
bool checkOverflow ( int num ) const
|
||||
int intValue () const
|
||||
Mode mode () const
|
||||
int numDigits () const
|
||||
SegmentStyle segmentStyle () const
|
||||
void setMode ( Mode )
|
||||
void setNumDigits ( int nDigits )
|
||||
void setSegmentStyle ( SegmentStyle )
|
||||
bool smallDecimalPoint () const
|
||||
double value () const
|
||||
|
||||
|
||||
|
||||
40
harbour/contrib/hbqt/qth/QLabel.qth
Normal file
40
harbour/contrib/hbqt/qth/QLabel.qth
Normal file
@@ -0,0 +1,40 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QLabel>
|
||||
|
||||
|
||||
/*
|
||||
* QLabel ( QWidget * parent = 0, Qt::WindowFlags f = 0 )
|
||||
* QLabel ( const QString & text, QWidget * parent = 0, Qt::WindowFlags f = 0 )
|
||||
* ~QLabel ()
|
||||
*/
|
||||
HB_FUNC( QT_QLABEL )
|
||||
{
|
||||
hb_retptr( ( QLabel* ) new QLabel( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
Qt::Alignment alignment () const
|
||||
QWidget * buddy () const
|
||||
bool hasScaledContents () const
|
||||
int indent () const
|
||||
int margin () const
|
||||
QMovie * movie () const
|
||||
bool openExternalLinks () const
|
||||
const QPicture * picture () const
|
||||
const QPixmap * pixmap () const
|
||||
void setAlignment ( Qt::Alignment )
|
||||
void setBuddy ( QWidget * buddy )
|
||||
void setIndent ( int )
|
||||
void setMargin ( int )
|
||||
void setOpenExternalLinks ( bool open )
|
||||
void setScaledContents ( bool )
|
||||
void setTextFormat ( Qt::TextFormat )
|
||||
void setTextInteractionFlags ( Qt::TextInteractionFlags flags )
|
||||
void setWordWrap ( bool on )
|
||||
QString text () const
|
||||
Qt::TextFormat textFormat () const
|
||||
Qt::TextInteractionFlags textInteractionFlags () const
|
||||
bool wordWrap () const
|
||||
|
||||
50
harbour/contrib/hbqt/qth/QLayout.qth
Normal file
50
harbour/contrib/hbqt/qth/QLayout.qth
Normal file
@@ -0,0 +1,50 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QLayout>
|
||||
|
||||
|
||||
/*
|
||||
* QLayout ( QWidget * parent )
|
||||
* QLayout ()
|
||||
*/
|
||||
#if 0
|
||||
HB_FUNC( QT_QLAYOUT )
|
||||
{
|
||||
hb_retptr( ( QLayout* ) new QLayout( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
#endif
|
||||
</CODE>
|
||||
|
||||
|
||||
enum SizeConstraint { SetDefaultConstraint, SetFixedSize, SetMinimumSize, SetMaximumSize, SetMinAndMaxSize, SetNoConstraint }
|
||||
|
||||
|
||||
bool activate ()
|
||||
virtual void addItem ( QLayoutItem * item ) = 0
|
||||
void addWidget ( QWidget * w )
|
||||
QRect contentsRect () const
|
||||
virtual int count () const = 0
|
||||
virtual Qt::Orientations expandingDirections () const
|
||||
void getContentsMargins ( int * left, int * top, int * right, int * bottom ) const
|
||||
virtual int indexOf ( QWidget * widget ) const
|
||||
bool isEnabled () const
|
||||
virtual QLayoutItem * itemAt ( int index ) const = 0
|
||||
virtual QSize maximumSize () const
|
||||
QWidget * menuBar () const
|
||||
virtual QSize minimumSize () const
|
||||
QWidget * parentWidget () const
|
||||
void removeItem ( QLayoutItem * item )
|
||||
void removeWidget ( QWidget * widget )
|
||||
bool setAlignment ( QWidget * w, Qt::Alignment alignment )
|
||||
void setAlignment ( Qt::Alignment alignment )
|
||||
bool setAlignment ( QLayout * l, Qt::Alignment alignment )
|
||||
void setContentsMargins ( int left, int top, int right, int bottom )
|
||||
void setEnabled ( bool enable )
|
||||
void setMenuBar ( QWidget * widget )
|
||||
void setSizeConstraint ( SizeConstraint )
|
||||
void setSpacing ( int )
|
||||
SizeConstraint sizeConstraint () const
|
||||
int spacing () const
|
||||
virtual QLayoutItem * takeAt ( int index ) = 0
|
||||
void update ()
|
||||
39
harbour/contrib/hbqt/qth/QLayoutItem.qth
Normal file
39
harbour/contrib/hbqt/qth/QLayoutItem.qth
Normal file
@@ -0,0 +1,39 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QLayoutItem>
|
||||
|
||||
|
||||
/*
|
||||
|
||||
*/
|
||||
#if 0
|
||||
HB_FUNC( QT_QLAYOUTITEM )
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
</CODE>
|
||||
|
||||
|
||||
QLayoutItem ( Qt::Alignment alignment = 0 )
|
||||
virtual ~QLayoutItem ()
|
||||
Qt::Alignment alignment () const
|
||||
QSizePolicy::ControlTypes controlTypes () const
|
||||
virtual Qt::Orientations expandingDirections () const = 0
|
||||
virtual QRect geometry () const = 0
|
||||
virtual bool hasHeightForWidth () const
|
||||
virtual int heightForWidth ( int w ) const
|
||||
virtual void invalidate ()
|
||||
virtual bool isEmpty () const = 0
|
||||
virtual QLayout * layout ()
|
||||
virtual QSize maximumSize () const = 0
|
||||
virtual int minimumHeightForWidth ( int w ) const
|
||||
virtual QSize minimumSize () const = 0
|
||||
void setAlignment ( Qt::Alignment alignment )
|
||||
virtual void setGeometry ( const QRect & r ) = 0
|
||||
virtual QSize sizeHint () const = 0
|
||||
virtual QSpacerItem * spacerItem ()
|
||||
virtual QWidget * widget ()
|
||||
|
||||
|
||||
68
harbour/contrib/hbqt/qth/QLineEdit.qth
Normal file
68
harbour/contrib/hbqt/qth/QLineEdit.qth
Normal file
@@ -0,0 +1,68 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QLineEdit>
|
||||
|
||||
|
||||
/*
|
||||
* QLineEdit ( QWidget * parent = 0 )
|
||||
* QLineEdit ( const QString & contents, QWidget * parent = 0 )
|
||||
* ~QLineEdit ()
|
||||
*/
|
||||
HB_FUNC( QT_QLINEEDIT )
|
||||
{
|
||||
hb_retptr( ( QLineEdit* ) new QLineEdit( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
enum EchoMode { Normal, NoEcho, Password, PasswordEchoOnEdit }
|
||||
|
||||
|
||||
Qt::Alignment alignment () const
|
||||
void backspace ()
|
||||
QCompleter * completer () const
|
||||
QMenu * createStandardContextMenu ()
|
||||
void cursorBackward ( bool mark, int steps = 1 )
|
||||
void cursorForward ( bool mark, int steps = 1 )
|
||||
int cursorPosition () const
|
||||
int cursorPositionAt ( const QPoint & pos )
|
||||
void cursorWordBackward ( bool mark )
|
||||
void cursorWordForward ( bool mark )
|
||||
void del ()
|
||||
void deselect ()
|
||||
QString displayText () const
|
||||
bool dragEnabled () const
|
||||
EchoMode echoMode () const
|
||||
void end ( bool mark )
|
||||
void getTextMargins ( int * left, int * top, int * right, int * bottom ) const
|
||||
bool hasAcceptableInput () const
|
||||
bool hasFrame () const
|
||||
bool hasSelectedText () const
|
||||
void home ( bool mark )
|
||||
QString inputMask () const
|
||||
void insert ( const QString & newText )
|
||||
bool isModified () const
|
||||
bool isReadOnly () const
|
||||
bool isRedoAvailable () const
|
||||
bool isUndoAvailable () const
|
||||
int maxLength () const
|
||||
virtual QSize minimumSizeHint () const
|
||||
QString selectedText () const
|
||||
int selectionStart () const
|
||||
void setAlignment ( Qt::Alignment flag )
|
||||
void setCompleter ( QCompleter * c )
|
||||
void setCursorPosition ( int )
|
||||
void setDragEnabled ( bool b )
|
||||
void setEchoMode ( EchoMode )
|
||||
void setFrame ( bool )
|
||||
void setInputMask ( const QString & inputMask )
|
||||
void setMaxLength ( int )
|
||||
void setModified ( bool )
|
||||
void setReadOnly ( bool )
|
||||
void setSelection ( int start, int length )
|
||||
void setTextMargins ( int left, int top, int right, int bottom )
|
||||
void setValidator ( const QValidator * v )
|
||||
virtual QSize sizeHint () const
|
||||
QString text () const
|
||||
const QValidator * validator () const
|
||||
52
harbour/contrib/hbqt/qth/QListView.qth
Normal file
52
harbour/contrib/hbqt/qth/QListView.qth
Normal file
@@ -0,0 +1,52 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QListView>
|
||||
|
||||
|
||||
/*
|
||||
* QListView ( QWidget * parent = 0 )
|
||||
* ~QListView ()
|
||||
*/
|
||||
HB_FUNC( QT_QLISTVIEW )
|
||||
{
|
||||
hb_retptr( ( QListView * ) new QListView( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
enum Flow { LeftToRight, TopToBottom }
|
||||
enum LayoutMode { SinglePass, Batched }
|
||||
enum Movement { Static, Free, Snap }
|
||||
enum ResizeMode { Fixed, Adjust }
|
||||
enum ViewMode { ListMode, IconMode }
|
||||
|
||||
int batchSize () const
|
||||
void clearPropertyFlags ()
|
||||
Flow flow () const
|
||||
QSize gridSize () const
|
||||
bool isRowHidden ( int row ) const
|
||||
bool isSelectionRectVisible () const
|
||||
bool isWrapping () const
|
||||
LayoutMode layoutMode () const
|
||||
int modelColumn () const
|
||||
Movement movement () const
|
||||
ResizeMode resizeMode () const
|
||||
void setBatchSize ( int batchSize )
|
||||
void setFlow ( Flow flow )
|
||||
void setGridSize ( const QSize & size )
|
||||
void setLayoutMode ( LayoutMode mode )
|
||||
void setModelColumn ( int column )
|
||||
void setMovement ( Movement movement )
|
||||
void setResizeMode ( ResizeMode mode )
|
||||
void setRowHidden ( int row, bool hide )
|
||||
void setSelectionRectVisible ( bool show )
|
||||
void setSpacing ( int space )
|
||||
void setUniformItemSizes ( bool enable )
|
||||
void setViewMode ( ViewMode mode )
|
||||
void setWordWrap ( bool on )
|
||||
void setWrapping ( bool enable )
|
||||
int spacing () const
|
||||
bool uniformItemSizes () const
|
||||
ViewMode viewMode () const
|
||||
bool wordWrap () const
|
||||
68
harbour/contrib/hbqt/qth/QMainWindow.qth
Normal file
68
harbour/contrib/hbqt/qth/QMainWindow.qth
Normal file
@@ -0,0 +1,68 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QMainWindow>
|
||||
|
||||
|
||||
/*
|
||||
* QMainWindow ( QWidget * parent = 0, Qt::WindowFlags flags = 0 )
|
||||
* ~QMainWindow ()
|
||||
*/
|
||||
HB_FUNC( QT_QMAINWINDOW )
|
||||
{
|
||||
hb_retptr( ( QMainWindow* ) new QMainWindow( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
enum DockOption { AnimatedDocks, AllowNestedDocks, AllowTabbedDocks, ForceTabbedDocks, VerticalTabs }
|
||||
flags DockOptions
|
||||
|
||||
void addDockWidget ( Qt::DockWidgetArea area, QDockWidget * dockwidget )
|
||||
void addDockWidget ( Qt::DockWidgetArea area, QDockWidget * dockwidget, Qt::Orientation orientation )
|
||||
void addToolBar ( Qt::ToolBarArea area, QToolBar * toolbar )
|
||||
void addToolBar ( QToolBar * toolbar )
|
||||
QToolBar * addToolBar ( const QString & title )
|
||||
void addToolBarBreak ( Qt::ToolBarArea area = Qt::TopToolBarArea )
|
||||
QWidget * centralWidget () const
|
||||
Qt::DockWidgetArea corner ( Qt::Corner corner ) const
|
||||
virtual QMenu * createPopupMenu ()
|
||||
DockOptions dockOptions () const
|
||||
Qt::DockWidgetArea dockWidgetArea ( QDockWidget * dockwidget ) const
|
||||
bool documentMode () const
|
||||
QSize iconSize () const
|
||||
void insertToolBar ( QToolBar * before, QToolBar * toolbar )
|
||||
void insertToolBarBreak ( QToolBar * before )
|
||||
bool isAnimated () const
|
||||
bool isDockNestingEnabled () const
|
||||
QMenuBar * menuBar () const
|
||||
QWidget * menuWidget () const
|
||||
void removeDockWidget ( QDockWidget * dockwidget )
|
||||
void removeToolBar ( QToolBar * toolbar )
|
||||
void removeToolBarBreak ( QToolBar * before )
|
||||
bool restoreDockWidget ( QDockWidget * dockwidget )
|
||||
bool restoreState ( const QByteArray & state, int version = 0 )
|
||||
QByteArray saveState ( int version = 0 ) const
|
||||
void setCentralWidget ( QWidget * widget )
|
||||
void setCorner ( Qt::Corner corner, Qt::DockWidgetArea area )
|
||||
void setDockOptions ( DockOptions options )
|
||||
void setDocumentMode ( bool enabled )
|
||||
void setIconSize ( const QSize & iconSize )
|
||||
void setMenuBar ( QMenuBar * menuBar )
|
||||
void setMenuWidget ( QWidget * menuBar )
|
||||
void setStatusBar ( QStatusBar * statusbar )
|
||||
void setTabPosition ( Qt::DockWidgetAreas areas, QTabWidget::TabPosition tabPosition )
|
||||
void setTabShape ( QTabWidget::TabShape tabShape )
|
||||
void setToolButtonStyle ( Qt::ToolButtonStyle toolButtonStyle )
|
||||
void setUnifiedTitleAndToolBarOnMac ( bool set )
|
||||
void splitDockWidget ( QDockWidget * first, QDockWidget * second, Qt::Orientation orientation )
|
||||
QStatusBar * statusBar () const
|
||||
QTabWidget::TabPosition tabPosition ( Qt::DockWidgetArea area ) const
|
||||
QTabWidget::TabShape tabShape () const
|
||||
QList<QDockWidget *> tabifiedDockWidgets ( QDockWidget * dockwidget ) const
|
||||
void tabifyDockWidget ( QDockWidget * first, QDockWidget * second )
|
||||
Qt::ToolBarArea toolBarArea ( QToolBar * toolbar ) const
|
||||
bool toolBarBreak ( QToolBar * toolbar ) const
|
||||
Qt::ToolButtonStyle toolButtonStyle () const
|
||||
bool unifiedTitleAndToolBarOnMac () const
|
||||
|
||||
59
harbour/contrib/hbqt/qth/QMenu.qth
Normal file
59
harbour/contrib/hbqt/qth/QMenu.qth
Normal file
@@ -0,0 +1,59 @@
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QMenu>
|
||||
|
||||
|
||||
/*
|
||||
* QMenu ( QWidget * parent = 0 )
|
||||
* QMenu ( const QString & title, QWidget * parent = 0 )
|
||||
* ~QMenu ()
|
||||
*/
|
||||
HB_FUNC( QT_QMENU )
|
||||
{
|
||||
if( hb_pcount() >= 1 && HB_ISCHAR( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QMenu* ) new QMenu( hbqt_par_QString( 1 ), hbqt_par_QWidget( 2 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( ( QMenu* ) new QMenu( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
QAction * actionAt ( const QPoint & pt ) const
|
||||
QRect actionGeometry ( QAction * act ) const
|
||||
QAction * activeAction () const
|
||||
QAction * addAction ( const QString & text )
|
||||
QAction * addAction ( const QIcon & icon, const QString & text )
|
||||
QAction * addAction ( const QString & text, const QObject * receiver, const char * member, const QKeySequence & shortcut = 0 )
|
||||
QAction * addAction ( const QIcon & icon, const QString & text, const QObject * receiver, const char * member, const QKeySequence & shortcut = 0 )
|
||||
void addAction ( QAction * action )
|
||||
QAction * addMenu ( QMenu * menu )
|
||||
QMenu * addMenu ( const QString & title )
|
||||
QMenu * addMenu ( const QIcon & icon, const QString & title )
|
||||
QAction * addSeparator ()
|
||||
void clear ()
|
||||
QAction * defaultAction () const
|
||||
QAction * exec ()
|
||||
QAction * exec ( const QPoint & p, QAction * action = 0 )
|
||||
void hideTearOffMenu ()
|
||||
QIcon icon () const
|
||||
QAction * insertMenu ( QAction * before, QMenu * menu )
|
||||
QAction * insertSeparator ( QAction * before )
|
||||
bool isEmpty () const
|
||||
bool isTearOffEnabled () const
|
||||
bool isTearOffMenuVisible () const
|
||||
OSMenuRef macMenu ( OSMenuRef merge = 0 )
|
||||
QAction * menuAction () const
|
||||
void popup ( const QPoint & p, QAction * atAction = 0 )
|
||||
bool separatorsCollapsible () const
|
||||
void setActiveAction ( QAction * act )
|
||||
void setDefaultAction ( QAction * act )
|
||||
void setIcon ( const QIcon & icon )
|
||||
void setSeparatorsCollapsible ( bool collapse )
|
||||
void setTearOffEnabled ( bool )
|
||||
void setTitle ( const QString & title )
|
||||
QString title () const
|
||||
HMENU wceMenu ( bool create = false )
|
||||
33
harbour/contrib/hbqt/qth/QMenuBar.qth
Normal file
33
harbour/contrib/hbqt/qth/QMenuBar.qth
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QMenuBar>
|
||||
|
||||
|
||||
/*
|
||||
* QMenuBar ( QWidget * parent = 0 )
|
||||
* ~QMenuBar ()
|
||||
*/
|
||||
HB_FUNC( QT_QMENUBAR )
|
||||
{
|
||||
hb_retptr( ( QMenuBar* ) new QMenuBar( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
QAction * activeAction () const
|
||||
QAction * addAction ( const QString & text )
|
||||
QAction * addAction ( const QString & text, const QObject * receiver, const char * member )
|
||||
void addAction ( QAction * action )
|
||||
QAction * addMenu ( QMenu * menu )
|
||||
QMenu * addMenu ( const QString & title )
|
||||
QMenu * addMenu ( const QIcon & icon, const QString & title )
|
||||
QAction * addSeparator ()
|
||||
void clear ()
|
||||
// QAction * defaultAction () const
|
||||
QAction * insertMenu ( QAction * before, QMenu * menu )
|
||||
QAction * insertSeparator ( QAction * before )
|
||||
bool isDefaultUp () const
|
||||
OSMenuRef macMenu ()
|
||||
void setActiveAction ( QAction * act )
|
||||
// void setDefaultAction ( QAction * act )
|
||||
void setDefaultUp ( bool )
|
||||
55
harbour/contrib/hbqt/qth/QMessageBox.qth
Normal file
55
harbour/contrib/hbqt/qth/QMessageBox.qth
Normal file
@@ -0,0 +1,55 @@
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QMessageBox>
|
||||
|
||||
|
||||
/*
|
||||
* QMessageBox ( QWidget * parent = 0 )
|
||||
* QMessageBox ( Icon icon, const QString & title, const QString & text, StandardButtons buttons = NoButton, QWidget * parent = 0, Qt::WindowFlags f = Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint )
|
||||
* ~QMessageBox ()
|
||||
*/
|
||||
HB_FUNC( QT_QMESSAGEBOX )
|
||||
{
|
||||
hb_retptr( ( QMessageBox* ) new QMessageBox() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
enum ButtonRole { InvalidRole, AcceptRole, RejectRole, DestructiveRole, ..., ResetRole }
|
||||
enum Icon { NoIcon, Question, Information, Warning, Critical }
|
||||
enum StandardButton { Ok, Open, Save, Cancel, ..., ButtonMask }
|
||||
flags StandardButtons
|
||||
|
||||
void addButton ( QAbstractButton * button, ButtonRole role )
|
||||
QPushButton * addButton ( const QString & text, ButtonRole role )
|
||||
QPushButton * addButton ( StandardButton button )
|
||||
QAbstractButton * button ( StandardButton which ) const
|
||||
ButtonRole buttonRole ( QAbstractButton * button ) const
|
||||
QList<QAbstractButton *> buttons () const
|
||||
QAbstractButton * clickedButton () const
|
||||
QPushButton * defaultButton () const
|
||||
QString detailedText () const
|
||||
QAbstractButton * escapeButton () const
|
||||
Icon icon () const
|
||||
QPixmap iconPixmap () const
|
||||
QString informativeText () const
|
||||
void open ( QObject * receiver, const char * member )
|
||||
void removeButton ( QAbstractButton * button )
|
||||
void setDefaultButton ( QPushButton * button )
|
||||
void setDefaultButton ( StandardButton button )
|
||||
void setDetailedText ( const QString & text )
|
||||
void setEscapeButton ( QAbstractButton * button )
|
||||
void setEscapeButton ( StandardButton button )
|
||||
void setIcon ( Icon )
|
||||
void setIconPixmap ( const QPixmap & pixmap )
|
||||
void setInformativeText ( const QString & text )
|
||||
void setStandardButtons ( StandardButtons buttons )
|
||||
void setText ( const QString & text )
|
||||
void setTextFormat ( Qt::TextFormat format )
|
||||
void setWindowModality ( Qt::WindowModality windowModality )
|
||||
void setWindowTitle ( const QString & title )
|
||||
StandardButton standardButton ( QAbstractButton * button ) const
|
||||
StandardButtons standardButtons () const
|
||||
QString text () const
|
||||
Qt::TextFormat textFormat () const
|
||||
|
||||
45
harbour/contrib/hbqt/qth/QObject.qth
Normal file
45
harbour/contrib/hbqt/qth/QObject.qth
Normal file
@@ -0,0 +1,45 @@
|
||||
|
||||
<CODE>
|
||||
#include <QtCore/QObject>
|
||||
|
||||
|
||||
/*
|
||||
* Q_INVOKABLE QObject ( QObject * parent = 0 )
|
||||
* virtual ~QObject ()
|
||||
*/
|
||||
HB_FUNC( QT_QOBJECT )
|
||||
{
|
||||
hb_retptr( ( QObject* ) new QObject() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
bool blockSignals ( bool block )
|
||||
const QObjectList & children () const
|
||||
bool connect ( const QObject * sender, const char * signal, const char * method, Qt::ConnectionType type = Qt::AutoConnection ) const
|
||||
bool disconnect ( const char * signal = 0, const QObject * receiver = 0, const char * method = 0 )
|
||||
bool disconnect ( const QObject * receiver, const char * method = 0 )
|
||||
void dumpObjectInfo ()
|
||||
void dumpObjectTree ()
|
||||
QList<QByteArray> dynamicPropertyNames () const
|
||||
virtual bool event ( QEvent * e )
|
||||
virtual bool eventFilter ( QObject * watched, QEvent * event )
|
||||
T findChild ( const QString & name = QString() ) const
|
||||
QList<T> findChildren ( const QString & name = QString() ) const
|
||||
QList<T> findChildren ( const QRegExp & regExp ) const
|
||||
bool inherits ( const char * className ) const
|
||||
void installEventFilter ( QObject * filterObj )
|
||||
bool isWidgetType () const
|
||||
void killTimer ( int id )
|
||||
virtual const QMetaObject * metaObject () const
|
||||
void moveToThread ( QThread * targetThread )
|
||||
QString objectName () const
|
||||
QObject * parent () const
|
||||
QVariant property ( const char * name ) const
|
||||
void removeEventFilter ( QObject * obj )
|
||||
void setObjectName ( const QString & name )
|
||||
void setParent ( QObject * parent )
|
||||
bool setProperty ( const char * name, const QVariant & value )
|
||||
bool signalsBlocked () const
|
||||
int startTimer ( int interval )
|
||||
QThread * thread () const
|
||||
28
harbour/contrib/hbqt/qth/QPageSetupDialog.qth
Normal file
28
harbour/contrib/hbqt/qth/QPageSetupDialog.qth
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QPageSetupDialog>
|
||||
|
||||
|
||||
/*
|
||||
* QPageSetupDialog ( QPrinter * printer, QWidget * parent = 0 )
|
||||
* QPageSetupDialog ( QWidget * parent = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QPAGESETUPDIALOG )
|
||||
{
|
||||
hb_retptr( ( QPageSetupDialog* ) new QPageSetupDialog( hbqt_par_QPrinter( 1 ), hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
enum PageSetupDialogOption { DontUseSheet }
|
||||
flags PageSetupDialogOptions
|
||||
|
||||
virtual int exec ()
|
||||
void open ( QObject * receiver, const char * member )
|
||||
PageSetupDialogOptions options () const
|
||||
QPrinter * printer ()
|
||||
void setOption ( PageSetupDialogOption option, bool on = true )
|
||||
void setOptions ( PageSetupDialogOptions options )
|
||||
virtual void setVisible ( bool visible )
|
||||
bool testOption ( PageSetupDialogOption option ) const
|
||||
210
harbour/contrib/hbqt/qth/QPainter.qth
Normal file
210
harbour/contrib/hbqt/qth/QPainter.qth
Normal file
@@ -0,0 +1,210 @@
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QPainter>
|
||||
|
||||
/*
|
||||
* QPainter ()
|
||||
* QPainter ( QPaintDevice * device )
|
||||
* ~QPainter ()
|
||||
*/
|
||||
HB_FUNC( QT_QPAINTER )
|
||||
{
|
||||
if( hb_pcount() >= 1 && HB_ISPOINTER( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QPainter* ) new QPainter( hbqt_par_QPaintDevice( 1 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( ( QPainter* ) new QPainter() );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
enum CompositionMode { CompositionMode_SourceOver, CompositionMode_DestinationOver, CompositionMode_Clear, CompositionMode_Source, ..., RasterOp_SourceAndNotDestination }
|
||||
enum RenderHint { Antialiasing, TextAntialiasing, SmoothPixmapTransform, HighQualityAntialiasing, NonCosmeticDefaultPen }
|
||||
|
||||
const QBrush & background () const
|
||||
Qt::BGMode backgroundMode () const
|
||||
bool begin ( QPaintDevice * device )
|
||||
QRectF boundingRect ( const QRectF & rectangle, int flags, const QString & text )
|
||||
QRect boundingRect ( const QRect & rectangle, int flags, const QString & text )
|
||||
QRect boundingRect ( int x, int y, int w, int h, int flags, const QString & text )
|
||||
QRectF boundingRect ( const QRectF & rectangle, const QString & text, const QTextOption & option = QTextOption() )
|
||||
const QBrush & brush () const
|
||||
QPoint brushOrigin () const
|
||||
QPainterPath clipPath () const
|
||||
QRegion clipRegion () const
|
||||
QMatrix combinedMatrix () const
|
||||
QTransform combinedTransform () const
|
||||
CompositionMode compositionMode () const
|
||||
QPaintDevice * device () const
|
||||
const QMatrix & deviceMatrix () const
|
||||
const QTransform & deviceTransform () const
|
||||
void drawArc ( const QRectF & rectangle, int startAngle, int spanAngle )
|
||||
void drawArc ( const QRect & rectangle, int startAngle, int spanAngle )
|
||||
void drawArc ( int x, int y, int width, int height, int startAngle, int spanAngle )
|
||||
void drawChord ( const QRectF & rectangle, int startAngle, int spanAngle )
|
||||
void drawChord ( const QRect & rectangle, int startAngle, int spanAngle )
|
||||
void drawChord ( int x, int y, int width, int height, int startAngle, int spanAngle )
|
||||
void drawConvexPolygon ( const QPointF * points, int pointCount )
|
||||
void drawConvexPolygon ( const QPoint * points, int pointCount )
|
||||
void drawConvexPolygon ( const QPolygonF & polygon )
|
||||
void drawConvexPolygon ( const QPolygon & polygon )
|
||||
void drawEllipse ( const QRectF & rectangle )
|
||||
void drawEllipse ( const QRect & rectangle )
|
||||
void drawEllipse ( int x, int y, int width, int height )
|
||||
void drawEllipse ( const QPointF & center, qreal rx, qreal ry )
|
||||
void drawEllipse ( const QPoint & center, int rx, int ry )
|
||||
void drawImage ( const QRectF & target, const QImage & image, const QRectF & source, Qt::ImageConversionFlags flags = Qt::AutoColor )
|
||||
void drawImage ( const QRect & target, const QImage & image, const QRect & source, Qt::ImageConversionFlags flags = Qt::AutoColor )
|
||||
void drawImage ( const QPointF & point, const QImage & image )
|
||||
void drawImage ( const QPoint & point, const QImage & image )
|
||||
void drawImage ( const QPointF & point, const QImage & image, const QRectF & source, Qt::ImageConversionFlags flags = Qt::AutoColor )
|
||||
void drawImage ( const QPoint & point, const QImage & image, const QRect & source, Qt::ImageConversionFlags flags = Qt::AutoColor )
|
||||
void drawImage ( const QRectF & rectangle, const QImage & image )
|
||||
void drawImage ( const QRect & rectangle, const QImage & image )
|
||||
void drawImage ( int x, int y, const QImage & image, int sx = 0, int sy = 0, int sw = -1, int sh = -1, Qt::ImageConversionFlags flags = Qt::AutoColor )
|
||||
void drawLine ( const QLineF & line )
|
||||
void drawLine ( const QLine & line )
|
||||
void drawLine ( const QPoint & p1, const QPoint & p2 )
|
||||
void drawLine ( const QPointF & p1, const QPointF & p2 )
|
||||
void drawLine ( int x1, int y1, int x2, int y2 )
|
||||
void drawLines ( const QLineF * lines, int lineCount )
|
||||
void drawLines ( const QLine * lines, int lineCount )
|
||||
void drawLines ( const QPointF * pointPairs, int lineCount )
|
||||
void drawLines ( const QPoint * pointPairs, int lineCount )
|
||||
void drawLines ( const QVector<QPointF> & pointPairs )
|
||||
void drawLines ( const QVector<QPoint> & pointPairs )
|
||||
void drawLines ( const QVector<QLineF> & lines )
|
||||
void drawLines ( const QVector<QLine> & lines )
|
||||
void drawPath ( const QPainterPath & path )
|
||||
void drawPicture ( const QPointF & point, const QPicture & picture )
|
||||
void drawPicture ( const QPoint & point, const QPicture & picture )
|
||||
void drawPicture ( int x, int y, const QPicture & picture )
|
||||
void drawPie ( const QRectF & rectangle, int startAngle, int spanAngle )
|
||||
void drawPie ( const QRect & rectangle, int startAngle, int spanAngle )
|
||||
void drawPie ( int x, int y, int width, int height, int startAngle, int spanAngle )
|
||||
void drawPixmap ( const QRectF & target, const QPixmap & pixmap, const QRectF & source )
|
||||
void drawPixmap ( const QRect & target, const QPixmap & pixmap, const QRect & source )
|
||||
void drawPixmap ( const QPointF & point, const QPixmap & pixmap, const QRectF & source )
|
||||
void drawPixmap ( const QPoint & point, const QPixmap & pixmap, const QRect & source )
|
||||
void drawPixmap ( const QPointF & point, const QPixmap & pixmap )
|
||||
void drawPixmap ( const QPoint & point, const QPixmap & pixmap )
|
||||
void drawPixmap ( int x, int y, const QPixmap & pixmap )
|
||||
void drawPixmap ( const QRect & rectangle, const QPixmap & pixmap )
|
||||
void drawPixmap ( int x, int y, int width, int height, const QPixmap & pixmap )
|
||||
void drawPixmap ( int x, int y, int w, int h, const QPixmap & pixmap, int sx, int sy, int sw, int sh )
|
||||
void drawPixmap ( int x, int y, const QPixmap & pixmap, int sx, int sy, int sw, int sh )
|
||||
void drawPoint ( const QPointF & position )
|
||||
void drawPoint ( const QPoint & position )
|
||||
void drawPoint ( int x, int y )
|
||||
void drawPoints ( const QPointF * points, int pointCount )
|
||||
void drawPoints ( const QPoint * points, int pointCount )
|
||||
void drawPoints ( const QPolygonF & points )
|
||||
void drawPoints ( const QPolygon & points )
|
||||
void drawPolygon ( const QPointF * points, int pointCount, Qt::FillRule fillRule = Qt::OddEvenFill )
|
||||
void drawPolygon ( const QPoint * points, int pointCount, Qt::FillRule fillRule = Qt::OddEvenFill )
|
||||
void drawPolygon ( const QPolygonF & points, Qt::FillRule fillRule = Qt::OddEvenFill )
|
||||
void drawPolygon ( const QPolygon & points, Qt::FillRule fillRule = Qt::OddEvenFill )
|
||||
void drawPolyline ( const QPointF * points, int pointCount )
|
||||
void drawPolyline ( const QPoint * points, int pointCount )
|
||||
void drawPolyline ( const QPolygonF & points )
|
||||
void drawPolyline ( const QPolygon & points )
|
||||
void drawRect ( const QRectF & rectangle )
|
||||
void drawRect ( const QRect & rectangle )
|
||||
void drawRect ( int x, int y, int width, int height )
|
||||
void drawRects ( const QRectF * rectangles, int rectCount )
|
||||
void drawRects ( const QRect * rectangles, int rectCount )
|
||||
void drawRects ( const QVector<QRectF> & rectangles )
|
||||
void drawRects ( const QVector<QRect> & rectangles )
|
||||
void drawRoundedRect ( const QRectF & rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode = Qt::AbsoluteSize )
|
||||
void drawRoundedRect ( const QRect & rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode = Qt::AbsoluteSize )
|
||||
void drawRoundedRect ( int x, int y, int w, int h, qreal xRadius, qreal yRadius, Qt::SizeMode mode = Qt::AbsoluteSize )
|
||||
void drawText ( const QPointF & position, const QString & text )
|
||||
void drawText ( const QPoint & position, const QString & text )
|
||||
void drawText ( const QRectF & rectangle, int flags, const QString & text, QRectF * boundingRect = 0 )
|
||||
void drawText ( const QRect & rectangle, int flags, const QString & text, QRect * boundingRect = 0 )
|
||||
void drawText ( int x, int y, const QString & text )
|
||||
void drawText ( int x, int y, int width, int height, int flags, const QString & text, QRect * boundingRect = 0 )
|
||||
void drawText ( const QRectF & rectangle, const QString & text, const QTextOption & option = QTextOption() )
|
||||
void drawTiledPixmap ( const QRectF & rectangle, const QPixmap & pixmap, const QPointF & position = QPointF() )
|
||||
void drawTiledPixmap ( const QRect & rectangle, const QPixmap & pixmap, const QPoint & position = QPoint() )
|
||||
void drawTiledPixmap ( int x, int y, int width, int height, const QPixmap & pixmap, int sx = 0, int sy = 0 )
|
||||
bool end ()
|
||||
void eraseRect ( const QRectF & rectangle )
|
||||
void eraseRect ( const QRect & rectangle )
|
||||
void eraseRect ( int x, int y, int width, int height )
|
||||
void fillPath ( const QPainterPath & path, const QBrush & brush )
|
||||
void fillRect ( const QRectF & rectangle, const QBrush & brush )
|
||||
void fillRect ( int x, int y, int width, int height, Qt::BrushStyle style )
|
||||
void fillRect ( const QRect & rectangle, Qt::BrushStyle style )
|
||||
void fillRect ( const QRectF & rectangle, Qt::BrushStyle style )
|
||||
void fillRect ( const QRect & rectangle, const QBrush & brush )
|
||||
void fillRect ( const QRect & rectangle, const QColor & color )
|
||||
void fillRect ( const QRectF & rectangle, const QColor & color )
|
||||
void fillRect ( int x, int y, int width, int height, const QBrush & brush )
|
||||
void fillRect ( int x, int y, int width, int height, const QColor & color )
|
||||
void fillRect ( int x, int y, int width, int height, Qt::GlobalColor color )
|
||||
void fillRect ( const QRect & rectangle, Qt::GlobalColor color )
|
||||
void fillRect ( const QRectF & rectangle, Qt::GlobalColor color )
|
||||
const QFont & font () const
|
||||
QFontInfo fontInfo () const
|
||||
QFontMetrics fontMetrics () const
|
||||
bool hasClipping () const
|
||||
void initFrom ( const QWidget * widget )
|
||||
bool isActive () const
|
||||
Qt::LayoutDirection layoutDirection () const
|
||||
qreal opacity () const
|
||||
QPaintEngine * paintEngine () const
|
||||
const QPen & pen () const
|
||||
RenderHints renderHints () const
|
||||
void resetMatrix ()
|
||||
void resetTransform ()
|
||||
void restore ()
|
||||
void rotate ( qreal angle )
|
||||
void save ()
|
||||
void scale ( qreal sx, qreal sy )
|
||||
void setBackground ( const QBrush & brush )
|
||||
void setBackgroundMode ( Qt::BGMode mode )
|
||||
void setBrush ( const QBrush & brush )
|
||||
void setBrush ( Qt::BrushStyle style )
|
||||
void setBrushOrigin ( const QPointF & position )
|
||||
void setBrushOrigin ( const QPoint & position )
|
||||
void setBrushOrigin ( int x, int y )
|
||||
void setClipPath ( const QPainterPath & path, Qt::ClipOperation operation = Qt::ReplaceClip )
|
||||
void setClipRect ( const QRectF & rectangle, Qt::ClipOperation operation = Qt::ReplaceClip )
|
||||
void setClipRect ( int x, int y, int width, int height, Qt::ClipOperation operation = Qt::ReplaceClip )
|
||||
void setClipRect ( const QRect & rectangle, Qt::ClipOperation operation = Qt::ReplaceClip )
|
||||
void setClipRegion ( const QRegion & region, Qt::ClipOperation operation = Qt::ReplaceClip )
|
||||
void setClipping ( bool enable )
|
||||
void setCompositionMode ( CompositionMode mode )
|
||||
void setFont ( const QFont & font )
|
||||
void setLayoutDirection ( Qt::LayoutDirection direction )
|
||||
void setOpacity ( qreal opacity )
|
||||
void setPen ( const QPen & pen )
|
||||
void setPen ( const QColor & color )
|
||||
void setPen ( Qt::PenStyle style )
|
||||
void setRenderHint ( RenderHint hint, bool on = true )
|
||||
void setRenderHints ( RenderHints hints, bool on = true )
|
||||
void setTransform ( const QTransform & transform, bool combine = false )
|
||||
void setViewTransformEnabled ( bool enable )
|
||||
void setViewport ( const QRect & rectangle )
|
||||
void setViewport ( int x, int y, int width, int height )
|
||||
void setWindow ( const QRect & rectangle )
|
||||
void setWindow ( int x, int y, int width, int height )
|
||||
void setWorldMatrix ( const QMatrix & matrix, bool combine = false )
|
||||
void setWorldMatrixEnabled ( bool enable )
|
||||
void setWorldTransform ( const QTransform & matrix, bool combine = false )
|
||||
void shear ( qreal sh, qreal sv )
|
||||
void strokePath ( const QPainterPath & path, const QPen & pen )
|
||||
bool testRenderHint ( RenderHint hint ) const
|
||||
const QTransform & transform () const
|
||||
void translate ( const QPointF & offset )
|
||||
void translate ( const QPoint & offset )
|
||||
void translate ( qreal dx, qreal dy )
|
||||
bool viewTransformEnabled () const
|
||||
QRect viewport () const
|
||||
QRect window () const
|
||||
const QMatrix & worldMatrix () const
|
||||
bool worldMatrixEnabled () const
|
||||
const QTransform & worldTransform () const
|
||||
@@ -1,13 +1,16 @@
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QPen>
|
||||
|
||||
|
||||
/*
|
||||
QPen ()
|
||||
QPen ( Qt::PenStyle style )
|
||||
QPen ( const QColor & color )
|
||||
QPen ( const QBrush & brush, qreal width, Qt::PenStyle style = Qt::SolidLine, Qt::PenCapStyle cap = Qt::SquareCap, Qt::PenJoinStyle join = Qt::BevelJoin )
|
||||
QPen ( const QPen & pen )
|
||||
~QPen ()
|
||||
*/
|
||||
* QPen ()
|
||||
* QPen ( Qt::PenStyle style )
|
||||
* QPen ( const QColor & color )
|
||||
* QPen ( const QBrush & brush, qreal width, Qt::PenStyle style = Qt::SolidLine, Qt::PenCapStyle cap = Qt::SquareCap, Qt::PenJoinStyle join = Qt::BevelJoin )
|
||||
* QPen ( const QPen & pen )
|
||||
* ~QPen ()
|
||||
*/
|
||||
HB_FUNC( QT_QPEN )
|
||||
{
|
||||
if( hb_pcount() == 1 && HB_ISNUM( 1 ) )
|
||||
@@ -19,7 +22,6 @@ HB_FUNC( QT_QPEN )
|
||||
hb_retptr( ( QPen* ) new QPen() );
|
||||
}
|
||||
}
|
||||
|
||||
</CODE>
|
||||
|
||||
QBrush brush () const
|
||||
|
||||
30
harbour/contrib/hbqt/qth/QPrintDialog.qth
Normal file
30
harbour/contrib/hbqt/qth/QPrintDialog.qth
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QPrintDialog>
|
||||
|
||||
|
||||
/*
|
||||
* QPrintDialog ( QPrinter * printer, QWidget * parent = 0 )
|
||||
* QPrintDialog ( QWidget * parent = 0 )
|
||||
* ~QPrintDialog ()
|
||||
*/
|
||||
HB_FUNC( QT_QPRINTDIALOG )
|
||||
{
|
||||
hb_retptr( ( QPrintDialog* ) new QPrintDialog ( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
enum PrintDialogOption
|
||||
flags PrintDialogOptions
|
||||
|
||||
// void addButton ( QPushButton * button )
|
||||
virtual void done ( int result )
|
||||
void open ( QObject * receiver, const char * member )
|
||||
PrintDialogOptions options () const
|
||||
QPrinter * printer () const
|
||||
QPrinter * printer ()
|
||||
void setOption ( PrintDialogOption option, bool on = true )
|
||||
void setOptions ( PrintDialogOptions options )
|
||||
// void setPrinter ( QPrinter * printer, bool pickupSettings = false )
|
||||
virtual void setVisible ( bool visible )
|
||||
bool testOption ( PrintDialogOption option ) const
|
||||
26
harbour/contrib/hbqt/qth/QPrintPreviewDialog.qth
Normal file
26
harbour/contrib/hbqt/qth/QPrintPreviewDialog.qth
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QPrintPreviewDialog>
|
||||
|
||||
|
||||
/*
|
||||
* QPrintPreviewDialog ( QPrinter * printer, QWidget * parent = 0, Qt::WindowFlags flags = 0 )
|
||||
* QPrintPreviewDialog ( QWidget * parent = 0, Qt::WindowFlags flags = 0 )
|
||||
* ~QPrintPreviewDialog ()
|
||||
*/
|
||||
HB_FUNC( QT_QPRINTPREVIEWDIALOG )
|
||||
{
|
||||
if( hb_pcount() >= 2 && HB_ISPOINTER( 2 ) )
|
||||
hb_retptr( ( QPrintPreviewDialog* ) new QPrintPreviewDialog( hbqt_par_QPrinter( 1 ),
|
||||
hbqt_par_QWidget( 2 ), ( Qt::WindowFlags ) hb_parni( 3 ) ) );
|
||||
else
|
||||
hb_retptr( ( QPrintPreviewDialog* ) new QPrintPreviewDialog( hbqt_par_QWidget( 1 ),
|
||||
( Qt::WindowFlags ) hb_parni( 2 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
void open ( QObject * receiver, const char * member )
|
||||
QPrinter * printer ()
|
||||
|
||||
|
||||
33
harbour/contrib/hbqt/qth/QProgressBar.qth
Normal file
33
harbour/contrib/hbqt/qth/QProgressBar.qth
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QProgressBar>
|
||||
|
||||
|
||||
/*
|
||||
* QProgressBar ( QWidget * parent = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QPROGRESSBAR )
|
||||
{
|
||||
hb_retptr( ( QProgressBar* ) new QProgressBar( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
enum Direction { TopToBottom, BottomToTop }
|
||||
|
||||
Qt::Alignment alignment () const
|
||||
QString format () const
|
||||
bool invertedAppearance ()
|
||||
bool isTextVisible () const
|
||||
int maximum () const
|
||||
int minimum () const
|
||||
Qt::Orientation orientation () const
|
||||
void setAlignment ( Qt::Alignment alignment )
|
||||
void setFormat ( const QString & format )
|
||||
void setInvertedAppearance ( bool invert )
|
||||
void setTextDirection ( QProgressBar::Direction textDirection )
|
||||
void setTextVisible ( bool visible )
|
||||
virtual QString text () const
|
||||
QProgressBar::Direction textDirection ()
|
||||
int value () const
|
||||
32
harbour/contrib/hbqt/qth/QPushButton.qth
Normal file
32
harbour/contrib/hbqt/qth/QPushButton.qth
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QPushButton>
|
||||
|
||||
|
||||
/*
|
||||
* QPushButton ( QWidget * parent = 0 )
|
||||
* QPushButton ( const QString & text, QWidget * parent = 0 )
|
||||
* QPushButton ( const QIcon & icon, const QString & text, QWidget * parent = 0 )
|
||||
* ~QPushButton ()
|
||||
*/
|
||||
HB_FUNC( QT_QPUSHBUTTON )
|
||||
{
|
||||
if( hb_pcount() >= 2 )
|
||||
hb_retptr( ( QPushButton* ) new QPushButton( QIcon( hbqt_par_QString( 2 ) ), hbqt_par_QString( 2 ), hbqt_par_QWidget( 3 ) ) );
|
||||
else if( hb_pcount() >= 1 )
|
||||
hb_retptr( ( QPushButton* ) new QPushButton( hbqt_par_QString( 1 ), hbqt_par_QWidget( 2 ) ) );
|
||||
else
|
||||
hb_retptr( ( QPushButton* ) new QPushButton( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
bool autoDefault () const
|
||||
bool isDefault () const
|
||||
bool isFlat () const
|
||||
QMenu * menu () const
|
||||
void setAutoDefault ( bool )
|
||||
void setDefault ( bool )
|
||||
void setFlat ( bool )
|
||||
void setMenu ( QMenu * menu )
|
||||
21
harbour/contrib/hbqt/qth/QRadioButton.qth
Normal file
21
harbour/contrib/hbqt/qth/QRadioButton.qth
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QRadioButton>
|
||||
|
||||
|
||||
/*
|
||||
* QRadioButton ( QWidget * parent = 0 )
|
||||
* QRadioButton ( const QString & text, QWidget * parent = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QRADIOBUTTON )
|
||||
{
|
||||
if( ISCHAR( 1 ) )
|
||||
hb_retptr( ( QRadioButton* ) new QRadioButton( hbqt_par_QString( 1 ), hbqt_par_QWidget( 2 ) ) );
|
||||
else
|
||||
hb_retptr( ( QRadioButton* ) new QRadioButton( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
|
||||
26
harbour/contrib/hbqt/qth/QScrollArea.qth
Normal file
26
harbour/contrib/hbqt/qth/QScrollArea.qth
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QScrollArea>
|
||||
|
||||
|
||||
/*
|
||||
* QScrollArea ( QWidget * parent = 0 )
|
||||
* ~QScrollArea ()
|
||||
*/
|
||||
HB_FUNC( QT_QSCROLLAREA )
|
||||
{
|
||||
hb_retptr( ( QScrollArea* ) new QScrollArea( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
Qt::Alignment alignment () const
|
||||
void ensureVisible ( int x, int y, int xmargin = 50, int ymargin = 50 )
|
||||
void ensureWidgetVisible ( QWidget * childWidget, int xmargin = 50, int ymargin = 50 )
|
||||
void setAlignment ( Qt::Alignment )
|
||||
void setWidget ( QWidget * widget )
|
||||
void setWidgetResizable ( bool resizable )
|
||||
QWidget * takeWidget ()
|
||||
QWidget * widget () const
|
||||
bool widgetResizable () const
|
||||
18
harbour/contrib/hbqt/qth/QScrollBar.qth
Normal file
18
harbour/contrib/hbqt/qth/QScrollBar.qth
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QScrollBar>
|
||||
|
||||
|
||||
/*
|
||||
* QScrollBar ( QWidget * parent = 0 )
|
||||
* QScrollBar ( Qt::Orientation orientation, QWidget * parent = 0 )
|
||||
* ~QScrollBar ()
|
||||
*/
|
||||
HB_FUNC( QT_ )
|
||||
{
|
||||
hb_retptr( ( QScrollBar* ) new QScrollBar( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
18
harbour/contrib/hbqt/qth/QSizeGrip.qth
Normal file
18
harbour/contrib/hbqt/qth/QSizeGrip.qth
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QSizeGrip>
|
||||
|
||||
|
||||
/*
|
||||
* QSizeGrip ( QWidget * parent )
|
||||
* ~QSizeGrip ()
|
||||
*/
|
||||
HB_FUNC( QT_ )
|
||||
{
|
||||
hb_retptr( ( QSizeGrip* ) new QSizeGrip( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
|
||||
31
harbour/contrib/hbqt/qth/QSlider.qth
Normal file
31
harbour/contrib/hbqt/qth/QSlider.qth
Normal file
@@ -0,0 +1,31 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QSlider>
|
||||
|
||||
|
||||
/*
|
||||
* QSlider ( QWidget * parent = 0 )
|
||||
* QSlider ( Qt::Orientation orientation, QWidget * parent = 0 )
|
||||
* ~QSlider ()
|
||||
*/
|
||||
HB_FUNC( QT_ )
|
||||
{
|
||||
if( hb_pcount() >= 1 && HB_ISNUM( 1 ) )
|
||||
hb_retptr( ( QSlider* ) new QSlider( ( Qt::Orientation ) hb_parni( 1 ), hbqt_par_QWidget( 2 ) ) );
|
||||
else
|
||||
hb_retptr( ( QSlider* ) new QSlider( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
enum TickPosition { NoTicks, TicksBothSides, TicksAbove, TicksBelow, TicksLeft, TicksRight }
|
||||
|
||||
|
||||
void setTickInterval ( int ti )
|
||||
void setTickPosition ( TickPosition position )
|
||||
int tickInterval () const
|
||||
TickPosition tickPosition () const
|
||||
|
||||
|
||||
|
||||
29
harbour/contrib/hbqt/qth/QSpinBox.qth
Normal file
29
harbour/contrib/hbqt/qth/QSpinBox.qth
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QSpinBox>
|
||||
|
||||
|
||||
/*
|
||||
* QSpinBox ( QWidget * parent = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QSPINBOX )
|
||||
{
|
||||
hb_retptr( ( QSpinBox* ) new QSpinBox( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
QString cleanText () const
|
||||
int maximum () const
|
||||
int minimum () const
|
||||
QString prefix () const
|
||||
void setMaximum ( int max )
|
||||
void setMinimum ( int min )
|
||||
void setPrefix ( const QString & prefix )
|
||||
void setRange ( int minimum, int maximum )
|
||||
void setSingleStep ( int val )
|
||||
void setSuffix ( const QString & suffix )
|
||||
int singleStep () const
|
||||
QString suffix () const
|
||||
int value () const
|
||||
44
harbour/contrib/hbqt/qth/QSplitter.qth
Normal file
44
harbour/contrib/hbqt/qth/QSplitter.qth
Normal file
@@ -0,0 +1,44 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QSplitter>
|
||||
|
||||
|
||||
/*
|
||||
* QSplitter ( QWidget * parent = 0 )
|
||||
* QSplitter ( Qt::Orientation orientation, QWidget * parent = 0 )
|
||||
* ~QSplitter ()
|
||||
*/
|
||||
HB_FUNC( QT_SPLITTER )
|
||||
{
|
||||
if( hb_pcount() >= 1 && HB_ISNUM( 1 ) )
|
||||
hb_retptr( ( QSplitter* ) new QSplitter( ( Qt::Orientation ) hb_parni( 1 ), hbqt_par_QWidget( 2 ) ) );
|
||||
else
|
||||
hb_retptr( ( QSplitter* ) new QSplitter( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
void addWidget ( QWidget * widget )
|
||||
bool childrenCollapsible () const
|
||||
int count () const
|
||||
void getRange ( int index, int * min, int * max ) const
|
||||
QSplitterHandle * handle ( int index ) const
|
||||
int handleWidth () const
|
||||
int indexOf ( QWidget * widget ) const
|
||||
void insertWidget ( int index, QWidget * widget )
|
||||
bool isCollapsible ( int index ) const
|
||||
bool opaqueResize () const
|
||||
Qt::Orientation orientation () const
|
||||
void refresh ()
|
||||
bool restoreState ( const QByteArray & state )
|
||||
QByteArray saveState () const
|
||||
void setChildrenCollapsible ( bool )
|
||||
void setCollapsible ( int index, bool collapse )
|
||||
void setHandleWidth ( int )
|
||||
void setOpaqueResize ( bool opaque = true )
|
||||
void setOrientation ( Qt::Orientation )
|
||||
void setSizes ( const QList<int> & list )
|
||||
void setStretchFactor ( int index, int stretch )
|
||||
QList<int> sizes () const
|
||||
QWidget * widget ( int index ) const
|
||||
67
harbour/contrib/hbqt/qth/QTabBar.qth
Normal file
67
harbour/contrib/hbqt/qth/QTabBar.qth
Normal file
@@ -0,0 +1,67 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QTabBar>
|
||||
|
||||
|
||||
/*
|
||||
* QTabBar ( QWidget * parent = 0 )
|
||||
* ~QTabBar ()
|
||||
*/
|
||||
HB_FUNC( QT_QTABBAR )
|
||||
{
|
||||
hb_retptr( ( QTabBar* ) new QTabBar( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
enum ButtonPosition { LeftSide, RightSide }
|
||||
enum SelectionBehavior { SelectLeftTab, SelectRightTab, SelectPreviousTab }
|
||||
enum Shape { RoundedNorth, RoundedSouth, RoundedWest, RoundedEast, ..., TriangularEast }
|
||||
|
||||
int addTab ( const QString & text )
|
||||
// int addTab ( const QIcon & icon, const QString & text )
|
||||
int count () const
|
||||
int currentIndex () const
|
||||
bool documentMode () const
|
||||
bool drawBase () const
|
||||
Qt::TextElideMode elideMode () const
|
||||
bool expanding () const
|
||||
QSize iconSize () const
|
||||
int insertTab ( int index, const QString & text )
|
||||
// int insertTab ( int index, const QIcon & icon, const QString & text )
|
||||
bool isMovable () const
|
||||
bool isTabEnabled ( int index ) const
|
||||
void moveTab ( int from, int to )
|
||||
void removeTab ( int index )
|
||||
SelectionBehavior selectionBehaviorOnRemove () const
|
||||
void setDocumentMode ( bool set )
|
||||
void setDrawBase ( bool drawTheBase )
|
||||
void setElideMode ( Qt::TextElideMode )
|
||||
void setExpanding ( bool enabled )
|
||||
void setIconSize ( const QSize & size )
|
||||
void setMovable ( bool movable )
|
||||
void setSelectionBehaviorOnRemove ( SelectionBehavior behavior )
|
||||
void setShape ( Shape shape )
|
||||
void setTabButton ( int index, ButtonPosition position, QWidget * widget )
|
||||
void setTabData ( int index, const QVariant & data )
|
||||
void setTabEnabled ( int index, bool enabled )
|
||||
// void setTabIcon ( int index, const QIcon & icon )
|
||||
void setTabText ( int index, const QString & text )
|
||||
void setTabTextColor ( int index, const QColor & color )
|
||||
void setTabToolTip ( int index, const QString & tip )
|
||||
void setTabWhatsThis ( int index, const QString & text )
|
||||
void setTabsClosable ( bool closable )
|
||||
void setUsesScrollButtons ( bool useButtons )
|
||||
Shape shape () const
|
||||
int tabAt ( const QPoint & position ) const
|
||||
QWidget * tabButton ( int index, ButtonPosition position ) const
|
||||
QVariant tabData ( int index ) const
|
||||
QIcon tabIcon ( int index ) const
|
||||
QRect tabRect ( int index ) const
|
||||
QString tabText ( int index ) const
|
||||
QColor tabTextColor ( int index ) const
|
||||
QString tabToolTip ( int index ) const
|
||||
QString tabWhatsThis ( int index ) const
|
||||
bool tabsClosable () const
|
||||
bool usesScrollButtons () const
|
||||
59
harbour/contrib/hbqt/qth/QTabWidget.qth
Normal file
59
harbour/contrib/hbqt/qth/QTabWidget.qth
Normal file
@@ -0,0 +1,59 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QTabWidget>
|
||||
|
||||
|
||||
/*
|
||||
* QTabWidget ( QWidget * parent = 0 )
|
||||
* ~QTabWidget ()
|
||||
*/
|
||||
HB_FUNC( QT_TABWIDGET )
|
||||
{
|
||||
hb_retptr( ( QTabWidget* ) new QTabWidget( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
enum TabPosition { North, South, West, East }
|
||||
enum TabShape { Rounded, Triangular }
|
||||
|
||||
int addTab ( QWidget * page, const QString & label )
|
||||
int addTab ( QWidget * page, const QIcon & icon, const QString & label )
|
||||
void clear ()
|
||||
QWidget * cornerWidget ( Qt::Corner corner = Qt::TopRightCorner ) const
|
||||
int count () const
|
||||
int currentIndex () const
|
||||
QWidget * currentWidget () const
|
||||
bool documentMode () const
|
||||
Qt::TextElideMode elideMode () const
|
||||
QSize iconSize () const
|
||||
int indexOf ( QWidget * w ) const
|
||||
int insertTab ( int index, QWidget * page, const QString & label )
|
||||
int insertTab ( int index, QWidget * page, const QIcon & icon, const QString & label )
|
||||
bool isMovable () const
|
||||
bool isTabEnabled ( int index ) const
|
||||
void removeTab ( int index )
|
||||
void setCornerWidget ( QWidget * widget, Qt::Corner corner = Qt::TopRightCorner )
|
||||
void setDocumentMode ( bool set )
|
||||
void setElideMode ( Qt::TextElideMode )
|
||||
void setIconSize ( const QSize & size )
|
||||
void setMovable ( bool movable )
|
||||
void setTabEnabled ( int index, bool enable )
|
||||
void setTabIcon ( int index, const QIcon & icon )
|
||||
void setTabPosition ( TabPosition )
|
||||
void setTabShape ( TabShape s )
|
||||
void setTabText ( int index, const QString & label )
|
||||
void setTabToolTip ( int index, const QString & tip )
|
||||
void setTabWhatsThis ( int index, const QString & text )
|
||||
void setTabsClosable ( bool closeable )
|
||||
void setUsesScrollButtons ( bool useButtons )
|
||||
QIcon tabIcon ( int index ) const
|
||||
TabPosition tabPosition () const
|
||||
TabShape tabShape () const
|
||||
QString tabText ( int index ) const
|
||||
QString tabToolTip ( int index ) const
|
||||
QString tabWhatsThis ( int index ) const
|
||||
bool tabsClosable () const
|
||||
bool usesScrollButtons () const
|
||||
QWidget * widget ( int index ) const
|
||||
|
||||
48
harbour/contrib/hbqt/qth/QTableView.qth
Normal file
48
harbour/contrib/hbqt/qth/QTableView.qth
Normal file
@@ -0,0 +1,48 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QTableView>
|
||||
|
||||
|
||||
/*
|
||||
* QTableView ( QWidget * parent = 0 )
|
||||
* ~QTableView ()
|
||||
*/
|
||||
HB_FUNC( QT_QTABLEVIEW )
|
||||
{
|
||||
hb_retptr( ( QTableView* ) new QTableView( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
void clearSpans ()
|
||||
int columnAt ( int x ) const
|
||||
int columnSpan ( int row, int column ) const
|
||||
int columnViewportPosition ( int column ) const
|
||||
int columnWidth ( int column ) const
|
||||
Qt::PenStyle gridStyle () const
|
||||
QHeaderView * horizontalHeader () const
|
||||
virtual QModelIndex indexAt ( const QPoint & pos ) const
|
||||
bool isColumnHidden ( int column ) const
|
||||
bool isCornerButtonEnabled () const
|
||||
bool isRowHidden ( int row ) const
|
||||
bool isSortingEnabled () const
|
||||
int rowAt ( int y ) const
|
||||
int rowHeight ( int row ) const
|
||||
int rowSpan ( int row, int column ) const
|
||||
int rowViewportPosition ( int row ) const
|
||||
void setColumnHidden ( int column, bool hide )
|
||||
void setColumnWidth ( int column, int width )
|
||||
void setCornerButtonEnabled ( bool enable )
|
||||
void setGridStyle ( Qt::PenStyle style )
|
||||
void setHorizontalHeader ( QHeaderView * header )
|
||||
void setRowHeight ( int row, int height )
|
||||
void setRowHidden ( int row, bool hide )
|
||||
void setSortingEnabled ( bool enable )
|
||||
void setSpan ( int row, int column, int rowSpanCount, int columnSpanCount )
|
||||
void setVerticalHeader ( QHeaderView * header )
|
||||
void setWordWrap ( bool on )
|
||||
bool showGrid () const
|
||||
void sortByColumn ( int column, Qt::SortOrder order )
|
||||
QHeaderView * verticalHeader () const
|
||||
bool wordWrap () const
|
||||
63
harbour/contrib/hbqt/qth/QTableWidget.qth
Normal file
63
harbour/contrib/hbqt/qth/QTableWidget.qth
Normal file
@@ -0,0 +1,63 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QTableWidget>
|
||||
|
||||
|
||||
/*
|
||||
* QTableWidget ( QWidget * parent = 0 )
|
||||
* QTableWidget ( int rows, int columns, QWidget * parent = 0 )
|
||||
* ~QTableWidget ()
|
||||
*/
|
||||
HB_FUNC( QT_QTABLEWIDGET )
|
||||
{
|
||||
if( hb_pcount() >= 2 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) )
|
||||
hb_retptr( ( QTableWidget* ) new QTableWidget( hb_parni( 1 ), hb_parni( 2 ), hbqt_par_QWidget( 3 ) ) );
|
||||
else
|
||||
hb_retptr( ( QTableWidget* ) new QTableWidget( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
QWidget * cellWidget ( int row, int column ) const
|
||||
void closePersistentEditor ( QTableWidgetItem * item )
|
||||
int column ( const QTableWidgetItem * item ) const
|
||||
int columnCount () const
|
||||
int currentColumn () const
|
||||
QTableWidgetItem * currentItem () const
|
||||
int currentRow () const
|
||||
void editItem ( QTableWidgetItem * item )
|
||||
QList<QTableWidgetItem *> findItems ( const QString & text, Qt::MatchFlags flags ) const
|
||||
QTableWidgetItem * horizontalHeaderItem ( int column ) const
|
||||
QTableWidgetItem * item ( int row, int column ) const
|
||||
QTableWidgetItem * itemAt ( const QPoint & point ) const
|
||||
QTableWidgetItem * itemAt ( int ax, int ay ) const
|
||||
const QTableWidgetItem * itemPrototype () const
|
||||
void openPersistentEditor ( QTableWidgetItem * item )
|
||||
void removeCellWidget ( int row, int column )
|
||||
int row ( const QTableWidgetItem * item ) const
|
||||
int rowCount () const
|
||||
QList<QTableWidgetItem *> selectedItems ()
|
||||
QList<QTableWidgetSelectionRange> selectedRanges () const
|
||||
void setCellWidget ( int row, int column, QWidget * widget )
|
||||
void setColumnCount ( int columns )
|
||||
void setCurrentCell ( int row, int column )
|
||||
void setCurrentCell ( int row, int column, QItemSelectionModel::SelectionFlags command )
|
||||
void setCurrentItem ( QTableWidgetItem * item )
|
||||
void setCurrentItem ( QTableWidgetItem * item, QItemSelectionModel::SelectionFlags command )
|
||||
void setHorizontalHeaderItem ( int column, QTableWidgetItem * item )
|
||||
void setHorizontalHeaderLabels ( const QStringList & labels )
|
||||
void setItem ( int row, int column, QTableWidgetItem * item )
|
||||
void setItemPrototype ( const QTableWidgetItem * item )
|
||||
void setRangeSelected ( const QTableWidgetSelectionRange & range, bool select )
|
||||
void setRowCount ( int rows )
|
||||
void setVerticalHeaderItem ( int row, QTableWidgetItem * item )
|
||||
void setVerticalHeaderLabels ( const QStringList & labels )
|
||||
void sortItems ( int column, Qt::SortOrder order = Qt::AscendingOrder )
|
||||
QTableWidgetItem * takeHorizontalHeaderItem ( int column )
|
||||
QTableWidgetItem * takeItem ( int row, int column )
|
||||
QTableWidgetItem * takeVerticalHeaderItem ( int row )
|
||||
QTableWidgetItem * verticalHeaderItem ( int row ) const
|
||||
int visualColumn ( int logicalColumn ) const
|
||||
QRect visualItemRect ( const QTableWidgetItem * item ) const
|
||||
int visualRow ( int logicalRow ) const
|
||||
69
harbour/contrib/hbqt/qth/QTableWidgetItem.qth
Normal file
69
harbour/contrib/hbqt/qth/QTableWidgetItem.qth
Normal file
@@ -0,0 +1,69 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QTableWidgetItem>
|
||||
|
||||
|
||||
/*
|
||||
* QTableWidgetItem ( int type = Type )
|
||||
* QTableWidgetItem ( const QString & text, int type = Type )
|
||||
* QTableWidgetItem ( const QIcon & icon, const QString & text, int type = Type )
|
||||
* QTableWidgetItem ( const QTableWidgetItem & other )
|
||||
* virtual ~QTableWidgetItem ()
|
||||
*/
|
||||
HB_FUNC( QT_TABLEWIDGETITEM )
|
||||
{
|
||||
if( hb_pcount() >= 2 && HB_ISCHAR( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QTableWidgetItem* ) new QTableWidgetItem( hbqt_par_QString( 1 ), hb_parni( 2 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( ( QTableWidgetItem* ) new QTableWidgetItem( hb_parni( 1 ) ) );
|
||||
}
|
||||
|
||||
#if 0
|
||||
hb_retptr( ( QTableWidgetItem* ) new QTableWidgetItem( QIcon( hbqt_par_QString( 1 ) ),hbqt_par_QString( 2 ), hb_parni( 3 ) ) );
|
||||
hb_retptr( ( QTableWidgetItem* ) new QTableWidgetItem( hbqt_par_QTableWidgetItem( 1 ) ) );
|
||||
#endif
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
enum ItemType { Type, UserType }
|
||||
|
||||
QBrush background () const
|
||||
Qt::CheckState checkState () const
|
||||
virtual QTableWidgetItem * clone () const
|
||||
int column () const
|
||||
virtual QVariant data ( int role ) const
|
||||
Qt::ItemFlags flags () const
|
||||
QFont font () const
|
||||
QBrush foreground () const
|
||||
QIcon icon () const
|
||||
bool isSelected () const
|
||||
virtual void read ( QDataStream & in )
|
||||
int row () const
|
||||
void setBackground ( const QBrush & brush )
|
||||
void setCheckState ( Qt::CheckState state )
|
||||
virtual void setData ( int role, const QVariant & value )
|
||||
void setFlags ( Qt::ItemFlags flags )
|
||||
void setFont ( const QFont & font )
|
||||
void setForeground ( const QBrush & brush )
|
||||
void setIcon ( const QIcon & icon )
|
||||
void setSelected ( bool select )
|
||||
void setSizeHint ( const QSize & size )
|
||||
void setStatusTip ( const QString & statusTip )
|
||||
void setText ( const QString & text )
|
||||
void setTextAlignment ( int alignment )
|
||||
void setToolTip ( const QString & toolTip )
|
||||
void setWhatsThis ( const QString & whatsThis )
|
||||
QSize sizeHint () const
|
||||
QString statusTip () const
|
||||
QTableWidget * tableWidget () const
|
||||
QString text () const
|
||||
int textAlignment () const
|
||||
QString toolTip () const
|
||||
int type () const
|
||||
QString whatsThis () const
|
||||
virtual void write ( QDataStream & out ) const
|
||||
84
harbour/contrib/hbqt/qth/QTextEdit.qth
Normal file
84
harbour/contrib/hbqt/qth/QTextEdit.qth
Normal file
@@ -0,0 +1,84 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QTextEdit>
|
||||
|
||||
|
||||
/*
|
||||
|
||||
*/
|
||||
HB_FUNC( QT_QTEXTEDIT )
|
||||
{
|
||||
if( hb_pcount() >= 1 && HB_ISCHAR( 1 ) )
|
||||
hb_retptr( ( QTextEdit* ) new QTextEdit( hbqt_par_QString( 1 ), hbqt_par_QWidget( 2 ) ) );
|
||||
else
|
||||
hb_retptr( ( QTextEdit* ) new QTextEdit( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
flags AutoFormatting
|
||||
enum AutoFormattingFlag { AutoNone, AutoBulletList, AutoAll }
|
||||
enum LineWrapMode { NoWrap, WidgetWidth, FixedPixelWidth, FixedColumnWidth }
|
||||
|
||||
QTextEdit ( QWidget * parent = 0 )
|
||||
QTextEdit ( const QString & text, QWidget * parent = 0 )
|
||||
virtual ~QTextEdit ()
|
||||
bool acceptRichText () const
|
||||
Qt::Alignment alignment () const
|
||||
QString anchorAt ( const QPoint & pos ) const
|
||||
AutoFormatting autoFormatting () const
|
||||
bool canPaste () const
|
||||
QMenu * createStandardContextMenu ()
|
||||
QMenu * createStandardContextMenu ( const QPoint & position )
|
||||
QTextCharFormat currentCharFormat () const
|
||||
QFont currentFont () const
|
||||
QTextCursor cursorForPosition ( const QPoint & pos ) const
|
||||
QRect cursorRect ( const QTextCursor & cursor ) const
|
||||
QRect cursorRect () const
|
||||
int cursorWidth () const
|
||||
QTextDocument * document () const
|
||||
QString documentTitle () const
|
||||
void ensureCursorVisible ()
|
||||
QList<ExtraSelection> extraSelections () const
|
||||
bool find ( const QString & exp, QTextDocument::FindFlags options = 0 )
|
||||
QString fontFamily () const
|
||||
bool fontItalic () const
|
||||
qreal fontPointSize () const
|
||||
bool fontUnderline () const
|
||||
int fontWeight () const
|
||||
bool isReadOnly () const
|
||||
bool isUndoRedoEnabled () const
|
||||
int lineWrapColumnOrWidth () const
|
||||
LineWrapMode lineWrapMode () const
|
||||
virtual QVariant loadResource ( int type, const QUrl & name )
|
||||
void mergeCurrentCharFormat ( const QTextCharFormat & modifier )
|
||||
void moveCursor ( QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode = QTextCursor::MoveAnchor )
|
||||
bool overwriteMode () const
|
||||
void print ( QPrinter * printer ) const
|
||||
void setAcceptRichText ( bool accept )
|
||||
void setAutoFormatting ( AutoFormatting features )
|
||||
void setCurrentCharFormat ( const QTextCharFormat & format )
|
||||
void setCursorWidth ( int width )
|
||||
void setDocument ( QTextDocument * document )
|
||||
void setDocumentTitle ( const QString & title )
|
||||
void setExtraSelections ( const QList<ExtraSelection> & selections )
|
||||
void setLineWrapColumnOrWidth ( int w )
|
||||
void setLineWrapMode ( LineWrapMode mode )
|
||||
void setOverwriteMode ( bool overwrite )
|
||||
void setReadOnly ( bool ro )
|
||||
void setTabChangesFocus ( bool b )
|
||||
void setTabStopWidth ( int width )
|
||||
void setTextCursor ( const QTextCursor & cursor )
|
||||
void setTextInteractionFlags ( Qt::TextInteractionFlags flags )
|
||||
void setUndoRedoEnabled ( bool enable )
|
||||
void setWordWrapMode ( QTextOption::WrapMode policy )
|
||||
bool tabChangesFocus () const
|
||||
int tabStopWidth () const
|
||||
QColor textBackgroundColor () const
|
||||
QColor textColor () const
|
||||
QTextCursor textCursor () const
|
||||
Qt::TextInteractionFlags textInteractionFlags () const
|
||||
QString toHtml () const
|
||||
QString toPlainText () const
|
||||
QTextOption::WrapMode wordWrapMode () const
|
||||
20
harbour/contrib/hbqt/qth/QTimeEdit.qth
Normal file
20
harbour/contrib/hbqt/qth/QTimeEdit.qth
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QTimeEdit>
|
||||
|
||||
|
||||
/*
|
||||
* QTimeEdit ( QWidget * parent = 0 )
|
||||
* QTimeEdit ( const QTime & time, QWidget * parent = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QTIMEEDIT )
|
||||
{
|
||||
hb_retptr( ( QTimeEdit* ) new QTimeEdit( hbqt_par_QWidget( 1 ) ) );
|
||||
#if 0
|
||||
hb_retptr( (QTimeEdit *) new QTimeEdit( QTime( hbqt_par_QString( 1 ) ), hbqt_par_QWidget( 2 ) ) );
|
||||
#endif
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
47
harbour/contrib/hbqt/qth/QToolBar.qth
Normal file
47
harbour/contrib/hbqt/qth/QToolBar.qth
Normal file
@@ -0,0 +1,47 @@
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QToolBar>
|
||||
#include <QtGui/QIcon>
|
||||
|
||||
|
||||
/* QToolBar ( const QString & title, QWidget * parent = 0 )
|
||||
* QToolBar ( QWidget * parent = 0 )
|
||||
* ~QToolBar ()
|
||||
*/
|
||||
HB_FUNC( QT_QTOOLBAR )
|
||||
{
|
||||
if( hb_param( 1, HB_IT_STRING ) )
|
||||
hb_retptr( ( QToolBar* ) new QToolBar( hbqt_par_QString( 1 ), hbqt_par_QWidget( 2 ) ) );
|
||||
else
|
||||
hb_retptr( ( QToolBar* ) new QToolBar( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
QAction * actionAt ( const QPoint & p ) const
|
||||
QAction * actionAt ( int x, int y ) const
|
||||
void addAction ( QAction * action )
|
||||
QAction * addAction ( const QString & text )
|
||||
QAction * addAction ( const QIcon & icon, const QString & text )
|
||||
QAction * addAction ( const QString & text, const QObject * receiver, const char * member )
|
||||
QAction * addAction ( const QIcon & icon, const QString & text, const QObject * receiver, const char * member )
|
||||
QAction * addSeparator ()
|
||||
QAction * addWidget ( QWidget * widget )
|
||||
Qt::ToolBarAreas allowedAreas () const
|
||||
void clear ()
|
||||
QSize iconSize () const
|
||||
QAction * insertSeparator ( QAction * before )
|
||||
QAction * insertWidget ( QAction * before, QWidget * widget )
|
||||
bool isAreaAllowed ( Qt::ToolBarArea area ) const
|
||||
bool isFloatable () const
|
||||
bool isFloating () const
|
||||
bool isMovable () const
|
||||
Qt::Orientation orientation () const
|
||||
void setAllowedAreas ( Qt::ToolBarAreas areas )
|
||||
void setFloatable ( bool floatable )
|
||||
void setMovable ( bool movable )
|
||||
void setOrientation ( Qt::Orientation orientation )
|
||||
QAction * toggleViewAction () const
|
||||
Qt::ToolButtonStyle toolButtonStyle () const
|
||||
QWidget * widgetForAction ( QAction * action ) const
|
||||
|
||||
36
harbour/contrib/hbqt/qth/QToolBox.qth
Normal file
36
harbour/contrib/hbqt/qth/QToolBox.qth
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QToolBox>
|
||||
|
||||
|
||||
/*
|
||||
* QToolBox ( QWidget * parent = 0, Qt::WindowFlags f = 0 )
|
||||
* ~QToolBox ()
|
||||
*/
|
||||
HB_FUNC( QT_QTOOLBOX )
|
||||
{
|
||||
hb_retptr( ( QToolBox* ) new QToolBox( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
int addItem ( QWidget * widget, const QIcon & iconSet, const QString & text )
|
||||
int addItem ( QWidget * w, const QString & text )
|
||||
int count () const
|
||||
int currentIndex () const
|
||||
QWidget * currentWidget () const
|
||||
int indexOf ( QWidget * widget ) const
|
||||
int insertItem ( int index, QWidget * widget, const QIcon & icon, const QString & text )
|
||||
int insertItem ( int index, QWidget * widget, const QString & text )
|
||||
bool isItemEnabled ( int index ) const
|
||||
QIcon itemIcon ( int index ) const
|
||||
QString itemText ( int index ) const
|
||||
QString itemToolTip ( int index ) const
|
||||
void removeItem ( int index )
|
||||
void setItemEnabled ( int index, bool enabled )
|
||||
void setItemIcon ( int index, const QIcon & icon )
|
||||
void setItemText ( int index, const QString & text )
|
||||
void setItemToolTip ( int index, const QString & toolTip )
|
||||
QWidget * widget ( int index ) const
|
||||
|
||||
|
||||
27
harbour/contrib/hbqt/qth/QToolButton.qth
Normal file
27
harbour/contrib/hbqt/qth/QToolButton.qth
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QToolButton>
|
||||
|
||||
|
||||
/*
|
||||
* QToolButton ( QWidget * parent = 0 )
|
||||
* ~QToolButton ()
|
||||
*/
|
||||
HB_FUNC( QT_QTOOLBUTTON )
|
||||
{
|
||||
hb_retptr( ( QToolButton* ) new QToolButton( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
enum ToolButtonPopupMode { DelayedPopup, MenuButtonPopup, InstantPopup }
|
||||
|
||||
Qt::ArrowType arrowType () const
|
||||
bool autoRaise () const
|
||||
QAction * defaultAction () const
|
||||
QMenu * menu () const
|
||||
ToolButtonPopupMode popupMode () const
|
||||
void setArrowType ( Qt::ArrowType type )
|
||||
void setAutoRaise ( bool enable )
|
||||
void setMenu ( QMenu * menu )
|
||||
void setPopupMode ( ToolButtonPopupMode mode )
|
||||
Qt::ToolButtonStyle toolButtonStyle () const
|
||||
57
harbour/contrib/hbqt/qth/QTreeView.qth
Normal file
57
harbour/contrib/hbqt/qth/QTreeView.qth
Normal file
@@ -0,0 +1,57 @@
|
||||
<CODE>
|
||||
#include <QtGui/QTreeView>
|
||||
|
||||
|
||||
/*
|
||||
* QTreeView ( QWidget * parent = 0 )
|
||||
* ~QTreeView ()
|
||||
*/
|
||||
HB_FUNC( QT_QTREEVIEW )
|
||||
{
|
||||
hb_retptr( ( QTreeView* ) new QTreeView( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
bool allColumnsShowFocus () const
|
||||
int autoExpandDelay () const
|
||||
int columnAt ( int x ) const
|
||||
int columnViewportPosition ( int column ) const
|
||||
int columnWidth ( int column ) const
|
||||
bool expandsOnDoubleClick () const
|
||||
QHeaderView * header () const
|
||||
int indentation () const
|
||||
QModelIndex indexAbove ( const QModelIndex & index ) const
|
||||
QModelIndex indexBelow ( const QModelIndex & index ) const
|
||||
bool isAnimated () const
|
||||
bool isColumnHidden ( int column ) const
|
||||
bool isExpanded ( const QModelIndex & index ) const
|
||||
bool isFirstColumnSpanned ( int row, const QModelIndex & parent ) const
|
||||
bool isHeaderHidden () const
|
||||
bool isRowHidden ( int row, const QModelIndex & parent ) const
|
||||
bool isSortingEnabled () const
|
||||
bool itemsExpandable () const
|
||||
bool rootIsDecorated () const
|
||||
virtual void scrollTo ( const QModelIndex & index, ScrollHint hint = EnsureVisible )
|
||||
void setAllColumnsShowFocus ( bool enable )
|
||||
void setAnimated ( bool enable )
|
||||
void setAutoExpandDelay ( int delay )
|
||||
void setColumnHidden ( int column, bool hide )
|
||||
void setColumnWidth ( int column, int width )
|
||||
void setExpanded ( const QModelIndex & index, bool expanded )
|
||||
void setExpandsOnDoubleClick ( bool enable )
|
||||
void setFirstColumnSpanned ( int row, const QModelIndex & parent, bool span )
|
||||
void setHeader ( QHeaderView * header )
|
||||
void setHeaderHidden ( bool hide )
|
||||
void setIndentation ( int i )
|
||||
void setItemsExpandable ( bool enable )
|
||||
void setRootIsDecorated ( bool show )
|
||||
void setRowHidden ( int row, const QModelIndex & parent, bool hide )
|
||||
void setSortingEnabled ( bool enable )
|
||||
void setUniformRowHeights ( bool uniform )
|
||||
void setWordWrap ( bool on )
|
||||
void sortByColumn ( int column, Qt::SortOrder order )
|
||||
bool uniformRowHeights () const
|
||||
virtual QRect visualRect ( const QModelIndex & index ) const
|
||||
bool wordWrap () const
|
||||
|
||||
53
harbour/contrib/hbqt/qth/QTreeWidget.qth
Normal file
53
harbour/contrib/hbqt/qth/QTreeWidget.qth
Normal file
@@ -0,0 +1,53 @@
|
||||
<CODE>
|
||||
#include <QtGui/QTreeWidget>
|
||||
|
||||
|
||||
/*
|
||||
* QTreeWidget ( QWidget * parent = 0 )
|
||||
* ~QTreeWidget ()
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGET )
|
||||
{
|
||||
hb_retptr( ( QTreeWidget* ) new QTreeWidget( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
void addTopLevelItem ( QTreeWidgetItem * item )
|
||||
void addTopLevelItems ( const QList<QTreeWidgetItem *> & items )
|
||||
void closePersistentEditor ( QTreeWidgetItem * item, int column = 0 )
|
||||
int columnCount () const
|
||||
int currentColumn () const
|
||||
QTreeWidgetItem * currentItem () const
|
||||
void editItem ( QTreeWidgetItem * item, int column = 0 )
|
||||
QList<QTreeWidgetItem *> findItems ( const QString & text, Qt::MatchFlags flags, int column = 0 ) const
|
||||
QTreeWidgetItem * headerItem () const
|
||||
int indexOfTopLevelItem ( QTreeWidgetItem * item ) const
|
||||
void insertTopLevelItem ( int index, QTreeWidgetItem * item )
|
||||
void insertTopLevelItems ( int index, const QList<QTreeWidgetItem *> & items )
|
||||
QTreeWidgetItem * invisibleRootItem () const
|
||||
bool isFirstItemColumnSpanned ( const QTreeWidgetItem * item ) const
|
||||
QTreeWidgetItem * itemAbove ( const QTreeWidgetItem * item ) const
|
||||
QTreeWidgetItem * itemAt ( const QPoint & p ) const
|
||||
QTreeWidgetItem * itemAt ( int x, int y ) const
|
||||
QTreeWidgetItem * itemBelow ( const QTreeWidgetItem * item ) const
|
||||
QWidget * itemWidget ( QTreeWidgetItem * item, int column ) const
|
||||
void openPersistentEditor ( QTreeWidgetItem * item, int column = 0 )
|
||||
void removeItemWidget ( QTreeWidgetItem * item, int column )
|
||||
QList<QTreeWidgetItem *> selectedItems () const
|
||||
void setColumnCount ( int columns )
|
||||
void setCurrentItem ( QTreeWidgetItem * item )
|
||||
void setCurrentItem ( QTreeWidgetItem * item, int column )
|
||||
void setCurrentItem ( QTreeWidgetItem * item, int column, QItemSelectionModel::SelectionFlags command )
|
||||
void setFirstItemColumnSpanned ( const QTreeWidgetItem * item, bool span )
|
||||
void setHeaderItem ( QTreeWidgetItem * item )
|
||||
void setHeaderLabel ( const QString & label )
|
||||
void setHeaderLabels ( const QStringList & labels )
|
||||
void setItemWidget ( QTreeWidgetItem * item, int column, QWidget * widget )
|
||||
int sortColumn () const
|
||||
void sortItems ( int column, Qt::SortOrder order )
|
||||
QTreeWidgetItem * takeTopLevelItem ( int index )
|
||||
QTreeWidgetItem * topLevelItem ( int index ) const
|
||||
int topLevelItemCount () const
|
||||
QRect visualItemRect ( const QTreeWidgetItem * item ) const
|
||||
|
||||
90
harbour/contrib/hbqt/qth/QTreeWidgetItem.qth
Normal file
90
harbour/contrib/hbqt/qth/QTreeWidgetItem.qth
Normal file
@@ -0,0 +1,90 @@
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QTreeWidgetItem>
|
||||
|
||||
|
||||
/*
|
||||
* QTreeWidgetItem ( int type = Type )
|
||||
* QTreeWidgetItem ( const QStringList & strings, int type = Type )
|
||||
* QTreeWidgetItem ( QTreeWidget * parent, int type = Type )
|
||||
* QTreeWidgetItem ( QTreeWidget * parent, const QStringList & strings, int type = Type )
|
||||
* QTreeWidgetItem ( QTreeWidget * parent, QTreeWidgetItem * preceding, int type = Type )
|
||||
* QTreeWidgetItem ( QTreeWidgetItem * parent, int type = Type )
|
||||
* QTreeWidgetItem ( QTreeWidgetItem * parent, const QStringList & strings, int type = Type )
|
||||
* QTreeWidgetItem ( QTreeWidgetItem * parent, QTreeWidgetItem * preceding, int type = Type )
|
||||
* QTreeWidgetItem ( const QTreeWidgetItem & other )
|
||||
* virtual ~QTreeWidgetItem ()
|
||||
*/
|
||||
HB_FUNC( QT_QTREEWIDGETITEM )
|
||||
{
|
||||
if( hb_pcount() >= 1 && HB_ISNUM( 1 ) )
|
||||
{
|
||||
hb_retptr( ( QTreeWidgetItem* ) new QTreeWidgetItem( hb_parni( 1 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_retptr( ( QTreeWidgetItem* ) new QTreeWidgetItem( hbqt_par_QTreeWidget( 1 ), hb_parni( 2 ) ) );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
enum ChildIndicatorPolicy { ShowIndicator, DontShowIndicator, DontShowIndicatorWhenChildless }
|
||||
enum ItemType { Type, UserType }
|
||||
|
||||
void addChild ( QTreeWidgetItem * child )
|
||||
void addChildren ( const QList<QTreeWidgetItem *> & children )
|
||||
QBrush background ( int column ) const
|
||||
Qt::CheckState checkState ( int column ) const
|
||||
QTreeWidgetItem * child ( int index ) const
|
||||
int childCount () const
|
||||
QTreeWidgetItem::ChildIndicatorPolicy childIndicatorPolicy () const
|
||||
virtual QTreeWidgetItem * clone () const
|
||||
int columnCount () const
|
||||
virtual QVariant data ( int column, int role ) const
|
||||
Qt::ItemFlags flags () const
|
||||
QFont font ( int column ) const
|
||||
QBrush foreground ( int column ) const
|
||||
QIcon icon ( int column ) const
|
||||
int indexOfChild ( QTreeWidgetItem * child ) const
|
||||
void insertChild ( int index, QTreeWidgetItem * child )
|
||||
void insertChildren ( int index, const QList<QTreeWidgetItem *> & children )
|
||||
bool isDisabled () const
|
||||
bool isExpanded () const
|
||||
bool isFirstColumnSpanned () const
|
||||
bool isHidden () const
|
||||
bool isSelected () const
|
||||
QTreeWidgetItem * parent () const
|
||||
virtual void read ( QDataStream & in )
|
||||
void removeChild ( QTreeWidgetItem * child )
|
||||
void setBackground ( int column, const QBrush & brush )
|
||||
void setCheckState ( int column, Qt::CheckState state )
|
||||
void setChildIndicatorPolicy ( QTreeWidgetItem::ChildIndicatorPolicy policy )
|
||||
virtual void setData ( int column, int role, const QVariant & value )
|
||||
void setDisabled ( bool disabled )
|
||||
void setExpanded ( bool expand )
|
||||
void setFirstColumnSpanned ( bool span )
|
||||
void setFlags ( Qt::ItemFlags flags )
|
||||
void setFont ( int column, const QFont & font )
|
||||
void setForeground ( int column, const QBrush & brush )
|
||||
void setHidden ( bool hide )
|
||||
void setIcon ( int column, const QIcon & icon )
|
||||
void setSelected ( bool select )
|
||||
void setSizeHint ( int column, const QSize & size )
|
||||
void setStatusTip ( int column, const QString & statusTip )
|
||||
void setText ( int column, const QString & text )
|
||||
void setTextAlignment ( int column, int alignment )
|
||||
void setToolTip ( int column, const QString & toolTip )
|
||||
void setWhatsThis ( int column, const QString & whatsThis )
|
||||
QSize sizeHint ( int column ) const
|
||||
void sortChildren ( int column, Qt::SortOrder order )
|
||||
QString statusTip ( int column ) const
|
||||
QTreeWidgetItem * takeChild ( int index )
|
||||
QList<QTreeWidgetItem *> takeChildren ()
|
||||
QString text ( int column ) const
|
||||
int textAlignment ( int column ) const
|
||||
QString toolTip ( int column ) const
|
||||
QTreeWidget * treeWidget () const
|
||||
int type () const
|
||||
QString whatsThis ( int column ) const
|
||||
|
||||
|
||||
18
harbour/contrib/hbqt/qth/QVBoxLayout.qth
Normal file
18
harbour/contrib/hbqt/qth/QVBoxLayout.qth
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
|
||||
<CODE>
|
||||
#include <QtGui/QVBoxLayout>
|
||||
|
||||
|
||||
/*
|
||||
* QVBoxLayout ()
|
||||
* QVBoxLayout ( QWidget * parent )
|
||||
* ~QVBoxLayout ()
|
||||
*/
|
||||
HB_FUNC( QT_QVBOXLAYOUT )
|
||||
{
|
||||
hb_retptr( ( QVBoxLayout* ) new QVBoxLayout( hbqt_par_QWidget( 1 ) ) );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
@@ -1,25 +1,19 @@
|
||||
|
||||
# Enumerations
|
||||
#
|
||||
enum RenderFlag { DrawWindowBackground, DrawChildren, IgnoreMask }
|
||||
|
||||
|
||||
|
||||
<CODE>
|
||||
|
||||
#include <QtGui/QWidget>
|
||||
#include <QtGui/QIcon>
|
||||
|
||||
|
||||
/*
|
||||
QWidget( QWidget * parent = 0, Qt::WindowFlags f = 0 )
|
||||
*/
|
||||
* QWidget( QWidget * parent = 0, Qt::WindowFlags f = 0 )
|
||||
*/
|
||||
HB_FUNC( QT_QWIDGET )
|
||||
{
|
||||
hb_retptr( new QWidget( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) );
|
||||
}
|
||||
|
||||
</CODE>
|
||||
|
||||
enum RenderFlag { DrawWindowBackground, DrawChildren, IgnoreMask }
|
||||
|
||||
bool acceptDrops () const
|
||||
QString accessibleDescription () const
|
||||
@@ -167,7 +161,7 @@ void setMinimumSize ( int minw, int minh )
|
||||
void setMinimumWidth ( int minw )
|
||||
void setMouseTracking ( bool enable )
|
||||
void setPalette ( const QPalette & )
|
||||
//void setParent ( QWidget * parent )
|
||||
void setParent ( QWidget * parent )
|
||||
void setParent ( QWidget * parent, Qt::WindowFlags f )
|
||||
void setShortcutAutoRepeat ( int id, bool enable = true )
|
||||
void setShortcutEnabled ( int id, bool enable = true )
|
||||
|
||||
Reference in New Issue
Block a user