From 579935aa0898610eb2e2ce05ebe10a71f26488ab Mon Sep 17 00:00:00 2001 From: Pritpal Bedi Date: Wed, 6 Oct 2010 15:55:38 +0000 Subject: [PATCH] 2010-10-06 08:47 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) + contrib/hbqt/qtgui/doc/en/class_qcommonstyle.txt + contrib/hbqt/qtgui/doc/en/class_qdateedit.txt + contrib/hbqt/qtgui/doc/en/class_qdragenterevent.txt + contrib/hbqt/qtgui/doc/en/class_qdragleaveevent.txt + contrib/hbqt/qtgui/doc/en/class_qhboxlayout.txt + contrib/hbqt/qtgui/doc/en/class_qhideevent.txt + contrib/hbqt/qtgui/doc/en/class_qradiobutton.txt + contrib/hbqt/qtgui/doc/en/class_qscrollbar.txt + contrib/hbqt/qtgui/doc/en/class_qshowevent.txt + contrib/hbqt/qtgui/doc/en/class_qsizegrip.txt + contrib/hbqt/qtgui/doc/en/class_qstylehintreturn.txt + contrib/hbqt/qtgui/doc/en/class_qstylehintreturnmask.txt + contrib/hbqt/qtgui/doc/en/class_qstylehintreturnvariant.txt + contrib/hbqt/qtgui/doc/en/class_qtextblockgroup.txt + contrib/hbqt/qtgui/doc/en/class_qtimeedit.txt + contrib/hbqt/qtgui/doc/en/class_qvboxlayout.txt + contrib/hbqt/qtgui/doc/en/class_qwindowsstyle.txt + Added: missing doc files. + contrib/hbqt/qtgui/qth/QSortFilterProxyModel.qth + Added: new class, requeted on HMG forums. + contrib/hbqt/qtgui/g/QSortFilterProxyModel.cpp + contrib/hbqt/qtgui/g/TQSortFilterProxyModel.prg + contrib/hbqt/qtgui/doc/en/class_qsortfilterproxymodel.txt + Re-generated. * contrib/hbqt/qtgui/g/filelist.hbm * contrib/hbqt/qtgui/g/hbqtgui.h ! Re-generated. --- harbour/ChangeLog | 32 ++ .../hbqt/qtgui/doc/en/class_qcommonstyle.txt | 50 ++ .../hbqt/qtgui/doc/en/class_qdateedit.txt | 51 ++ .../qtgui/doc/en/class_qdragenterevent.txt | 50 ++ .../qtgui/doc/en/class_qdragleaveevent.txt | 50 ++ .../hbqt/qtgui/doc/en/class_qhboxlayout.txt | 51 ++ .../hbqt/qtgui/doc/en/class_qhideevent.txt | 50 ++ .../hbqt/qtgui/doc/en/class_qradiobutton.txt | 51 ++ .../hbqt/qtgui/doc/en/class_qscrollbar.txt | 51 ++ .../hbqt/qtgui/doc/en/class_qshowevent.txt | 50 ++ .../hbqt/qtgui/doc/en/class_qsizegrip.txt | 50 ++ .../doc/en/class_qsortfilterproxymodel.txt | 73 +++ .../qtgui/doc/en/class_qstylehintreturn.txt | 50 ++ .../doc/en/class_qstylehintreturnmask.txt | 50 ++ .../doc/en/class_qstylehintreturnvariant.txt | 50 ++ .../qtgui/doc/en/class_qtextblockgroup.txt | 50 ++ .../hbqt/qtgui/doc/en/class_qtimeedit.txt | 51 ++ .../hbqt/qtgui/doc/en/class_qvboxlayout.txt | 51 ++ .../hbqt/qtgui/doc/en/class_qwindowsstyle.txt | 50 ++ .../hbqt/qtgui/g/QSortFilterProxyModel.cpp | 494 ++++++++++++++++++ .../hbqt/qtgui/g/TQSortFilterProxyModel.prg | 375 +++++++++++++ harbour/contrib/hbqt/qtgui/g/filelist.hbm | 2 + harbour/contrib/hbqt/qtgui/g/hbqtgui.h | 4 + .../hbqt/qtgui/qth/QSortFilterProxyModel.qth | 127 +++++ 24 files changed, 1963 insertions(+) create mode 100644 harbour/contrib/hbqt/qtgui/doc/en/class_qcommonstyle.txt create mode 100644 harbour/contrib/hbqt/qtgui/doc/en/class_qdateedit.txt create mode 100644 harbour/contrib/hbqt/qtgui/doc/en/class_qdragenterevent.txt create mode 100644 harbour/contrib/hbqt/qtgui/doc/en/class_qdragleaveevent.txt create mode 100644 harbour/contrib/hbqt/qtgui/doc/en/class_qhboxlayout.txt create mode 100644 harbour/contrib/hbqt/qtgui/doc/en/class_qhideevent.txt create mode 100644 harbour/contrib/hbqt/qtgui/doc/en/class_qradiobutton.txt create mode 100644 harbour/contrib/hbqt/qtgui/doc/en/class_qscrollbar.txt create mode 100644 harbour/contrib/hbqt/qtgui/doc/en/class_qshowevent.txt create mode 100644 harbour/contrib/hbqt/qtgui/doc/en/class_qsizegrip.txt create mode 100644 harbour/contrib/hbqt/qtgui/doc/en/class_qsortfilterproxymodel.txt create mode 100644 harbour/contrib/hbqt/qtgui/doc/en/class_qstylehintreturn.txt create mode 100644 harbour/contrib/hbqt/qtgui/doc/en/class_qstylehintreturnmask.txt create mode 100644 harbour/contrib/hbqt/qtgui/doc/en/class_qstylehintreturnvariant.txt create mode 100644 harbour/contrib/hbqt/qtgui/doc/en/class_qtextblockgroup.txt create mode 100644 harbour/contrib/hbqt/qtgui/doc/en/class_qtimeedit.txt create mode 100644 harbour/contrib/hbqt/qtgui/doc/en/class_qvboxlayout.txt create mode 100644 harbour/contrib/hbqt/qtgui/doc/en/class_qwindowsstyle.txt create mode 100644 harbour/contrib/hbqt/qtgui/g/QSortFilterProxyModel.cpp create mode 100644 harbour/contrib/hbqt/qtgui/g/TQSortFilterProxyModel.prg create mode 100644 harbour/contrib/hbqt/qtgui/qth/QSortFilterProxyModel.qth diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 4345ebcc07..7969554ead 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,38 @@ The license applies to all entries newer than 2009-04-28. */ +2010-10-06 08:47 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) + + contrib/hbqt/qtgui/doc/en/class_qcommonstyle.txt + + contrib/hbqt/qtgui/doc/en/class_qdateedit.txt + + contrib/hbqt/qtgui/doc/en/class_qdragenterevent.txt + + contrib/hbqt/qtgui/doc/en/class_qdragleaveevent.txt + + contrib/hbqt/qtgui/doc/en/class_qhboxlayout.txt + + contrib/hbqt/qtgui/doc/en/class_qhideevent.txt + + contrib/hbqt/qtgui/doc/en/class_qradiobutton.txt + + contrib/hbqt/qtgui/doc/en/class_qscrollbar.txt + + contrib/hbqt/qtgui/doc/en/class_qshowevent.txt + + contrib/hbqt/qtgui/doc/en/class_qsizegrip.txt + + contrib/hbqt/qtgui/doc/en/class_qstylehintreturn.txt + + contrib/hbqt/qtgui/doc/en/class_qstylehintreturnmask.txt + + contrib/hbqt/qtgui/doc/en/class_qstylehintreturnvariant.txt + + contrib/hbqt/qtgui/doc/en/class_qtextblockgroup.txt + + contrib/hbqt/qtgui/doc/en/class_qtimeedit.txt + + contrib/hbqt/qtgui/doc/en/class_qvboxlayout.txt + + contrib/hbqt/qtgui/doc/en/class_qwindowsstyle.txt + + Added: missing doc files. + + + contrib/hbqt/qtgui/qth/QSortFilterProxyModel.qth + + Added: new class, requeted on HMG forums. + + + contrib/hbqt/qtgui/g/QSortFilterProxyModel.cpp + + contrib/hbqt/qtgui/g/TQSortFilterProxyModel.prg + + contrib/hbqt/qtgui/doc/en/class_qsortfilterproxymodel.txt + + Re-generated. + + * contrib/hbqt/qtgui/g/filelist.hbm + * contrib/hbqt/qtgui/g/hbqtgui.h + ! Re-generated. + 2010-10-06 07:19 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/utils/hbrun/hbrun.prg ! fixed typo in my last commit - Thanks to Frank Van Nuffel for diff --git a/harbour/contrib/hbqt/qtgui/doc/en/class_qcommonstyle.txt b/harbour/contrib/hbqt/qtgui/doc/en/class_qcommonstyle.txt new file mode 100644 index 0000000000..0f450e0069 --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/doc/en/class_qcommonstyle.txt @@ -0,0 +1,50 @@ +/* + * $Id$ + */ + +/* $DOC$ + * $TEMPLATE$ + * Class + * $NAME$ + * QCommonStyle() + * $CATEGORY$ + * Harbour Bindings for Qt + * $SUBCATEGORY$ + * GUI + * $EXTERNALLINK$ + * http://doc.trolltech.com/4.5/qcommonstyle.html + * $ONELINER$ + * Creates a new QCommonStyle object. + * $INHERITS$ + * QStyle + * $SYNTAX$ + * QCommonStyle( ... ) + * QCommonStyle():from( pPtr_OR_oObj_of_type_QCommonStyle ) + * + * $ARGUMENTS$ + * + * $RETURNS$ + * An instance of the object of type QCommonStyle + * $METHODS$ + * :QCommonStyle() -> oQCommonStyle + * + * $DESCRIPTION$ + * + * $EXAMPLES$ + * + * $TESTS$ + * + * $STATUS$ + * R + * $COMPLIANCE$ + * Not Clipper compatible + * $PLATFORMS$ + * Windows, Linux, Mac OS X, OS/2 + * $VERSION$ + * 4.5 or upper + * $FILES$ + * Harbour source: contrib/hbqt/qtgui/TQCommonStyle.prg + * C++ wrappers : contrib/hbqt/qtgui/QCommonStyle.cpp + * Library : hbqtgui + * $END$ + */ diff --git a/harbour/contrib/hbqt/qtgui/doc/en/class_qdateedit.txt b/harbour/contrib/hbqt/qtgui/doc/en/class_qdateedit.txt new file mode 100644 index 0000000000..b4b79e7258 --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/doc/en/class_qdateedit.txt @@ -0,0 +1,51 @@ +/* + * $Id$ + */ + +/* $DOC$ + * $TEMPLATE$ + * Class + * $NAME$ + * QDateEdit() + * $CATEGORY$ + * Harbour Bindings for Qt + * $SUBCATEGORY$ + * GUI + * $EXTERNALLINK$ + * http://doc.trolltech.com/4.5/qdateedit.html + * $ONELINER$ + * Creates a new QDateEdit object. + * $INHERITS$ + * QDateTimeEdit + * $SYNTAX$ + * QDateEdit( ... ) + * QDateEdit():from( pPtr_OR_oObj_of_type_QDateEdit ) + * + * $ARGUMENTS$ + * + * $RETURNS$ + * An instance of the object of type QDateEdit + * $METHODS$ + * :QDateEdit( oQWidget ) -> oQDateEdit + * :QDateEdit( oQDate, oQWidget ) -> oQDateEdit + * + * $DESCRIPTION$ + * + * $EXAMPLES$ + * + * $TESTS$ + * + * $STATUS$ + * R + * $COMPLIANCE$ + * Not Clipper compatible + * $PLATFORMS$ + * Windows, Linux, Mac OS X, OS/2 + * $VERSION$ + * 4.5 or upper + * $FILES$ + * Harbour source: contrib/hbqt/qtgui/TQDateEdit.prg + * C++ wrappers : contrib/hbqt/qtgui/QDateEdit.cpp + * Library : hbqtgui + * $END$ + */ diff --git a/harbour/contrib/hbqt/qtgui/doc/en/class_qdragenterevent.txt b/harbour/contrib/hbqt/qtgui/doc/en/class_qdragenterevent.txt new file mode 100644 index 0000000000..735885f6a1 --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/doc/en/class_qdragenterevent.txt @@ -0,0 +1,50 @@ +/* + * $Id$ + */ + +/* $DOC$ + * $TEMPLATE$ + * Class + * $NAME$ + * QDragEnterEvent() + * $CATEGORY$ + * Harbour Bindings for Qt + * $SUBCATEGORY$ + * GUI + * $EXTERNALLINK$ + * http://doc.trolltech.com/4.5/qdragenterevent.html + * $ONELINER$ + * Creates a new QDragEnterEvent object. + * $INHERITS$ + * QDragMoveEvent + * $SYNTAX$ + * QDragEnterEvent( ... ) + * QDragEnterEvent():from( pPtr_OR_oObj_of_type_QDragEnterEvent ) + * + * $ARGUMENTS$ + * + * $RETURNS$ + * An instance of the object of type QDragEnterEvent + * $METHODS$ + * :QDragEnterEvent( oQPoint, nActions, oQMimeData, nButtons, nModifiers ) -> oQDragEnterEvent + * + * $DESCRIPTION$ + * + * $EXAMPLES$ + * + * $TESTS$ + * + * $STATUS$ + * R + * $COMPLIANCE$ + * Not Clipper compatible + * $PLATFORMS$ + * Windows, Linux, Mac OS X, OS/2 + * $VERSION$ + * 4.5 or upper + * $FILES$ + * Harbour source: contrib/hbqt/qtgui/TQDragEnterEvent.prg + * C++ wrappers : contrib/hbqt/qtgui/QDragEnterEvent.cpp + * Library : hbqtgui + * $END$ + */ diff --git a/harbour/contrib/hbqt/qtgui/doc/en/class_qdragleaveevent.txt b/harbour/contrib/hbqt/qtgui/doc/en/class_qdragleaveevent.txt new file mode 100644 index 0000000000..a53f19062e --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/doc/en/class_qdragleaveevent.txt @@ -0,0 +1,50 @@ +/* + * $Id$ + */ + +/* $DOC$ + * $TEMPLATE$ + * Class + * $NAME$ + * QDragLeaveEvent() + * $CATEGORY$ + * Harbour Bindings for Qt + * $SUBCATEGORY$ + * GUI + * $EXTERNALLINK$ + * http://doc.trolltech.com/4.5/qdragleaveevent.html + * $ONELINER$ + * Creates a new QDragLeaveEvent object. + * $INHERITS$ + * QEvent + * $SYNTAX$ + * QDragLeaveEvent( ... ) + * QDragLeaveEvent():from( pPtr_OR_oObj_of_type_QDragLeaveEvent ) + * + * $ARGUMENTS$ + * + * $RETURNS$ + * An instance of the object of type QDragLeaveEvent + * $METHODS$ + * :QDragLeaveEvent() -> oQDragLeaveEvent + * + * $DESCRIPTION$ + * + * $EXAMPLES$ + * + * $TESTS$ + * + * $STATUS$ + * R + * $COMPLIANCE$ + * Not Clipper compatible + * $PLATFORMS$ + * Windows, Linux, Mac OS X, OS/2 + * $VERSION$ + * 4.5 or upper + * $FILES$ + * Harbour source: contrib/hbqt/qtgui/TQDragLeaveEvent.prg + * C++ wrappers : contrib/hbqt/qtgui/QDragLeaveEvent.cpp + * Library : hbqtgui + * $END$ + */ diff --git a/harbour/contrib/hbqt/qtgui/doc/en/class_qhboxlayout.txt b/harbour/contrib/hbqt/qtgui/doc/en/class_qhboxlayout.txt new file mode 100644 index 0000000000..30928d6f56 --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/doc/en/class_qhboxlayout.txt @@ -0,0 +1,51 @@ +/* + * $Id$ + */ + +/* $DOC$ + * $TEMPLATE$ + * Class + * $NAME$ + * QHBoxLayout() + * $CATEGORY$ + * Harbour Bindings for Qt + * $SUBCATEGORY$ + * GUI + * $EXTERNALLINK$ + * http://doc.trolltech.com/4.5/qhboxlayout.html + * $ONELINER$ + * Creates a new QHBoxLayout object. + * $INHERITS$ + * QBoxLayout + * $SYNTAX$ + * QHBoxLayout( ... ) + * QHBoxLayout():from( pPtr_OR_oObj_of_type_QHBoxLayout ) + * + * $ARGUMENTS$ + * + * $RETURNS$ + * An instance of the object of type QHBoxLayout + * $METHODS$ + * :QHBoxLayout() -> oQHBoxLayout + * :QHBoxLayout( oQWidget ) -> oQHBoxLayout + * + * $DESCRIPTION$ + * + * $EXAMPLES$ + * + * $TESTS$ + * + * $STATUS$ + * R + * $COMPLIANCE$ + * Not Clipper compatible + * $PLATFORMS$ + * Windows, Linux, Mac OS X, OS/2 + * $VERSION$ + * 4.5 or upper + * $FILES$ + * Harbour source: contrib/hbqt/qtgui/TQHBoxLayout.prg + * C++ wrappers : contrib/hbqt/qtgui/QHBoxLayout.cpp + * Library : hbqtgui + * $END$ + */ diff --git a/harbour/contrib/hbqt/qtgui/doc/en/class_qhideevent.txt b/harbour/contrib/hbqt/qtgui/doc/en/class_qhideevent.txt new file mode 100644 index 0000000000..cbec991c83 --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/doc/en/class_qhideevent.txt @@ -0,0 +1,50 @@ +/* + * $Id$ + */ + +/* $DOC$ + * $TEMPLATE$ + * Class + * $NAME$ + * QHideEvent() + * $CATEGORY$ + * Harbour Bindings for Qt + * $SUBCATEGORY$ + * GUI + * $EXTERNALLINK$ + * http://doc.trolltech.com/4.5/qhideevent.html + * $ONELINER$ + * Creates a new QHideEvent object. + * $INHERITS$ + * QEvent + * $SYNTAX$ + * QHideEvent( ... ) + * QHideEvent():from( pPtr_OR_oObj_of_type_QHideEvent ) + * + * $ARGUMENTS$ + * + * $RETURNS$ + * An instance of the object of type QHideEvent + * $METHODS$ + * :QHideEvent() -> oQHideEvent + * + * $DESCRIPTION$ + * + * $EXAMPLES$ + * + * $TESTS$ + * + * $STATUS$ + * R + * $COMPLIANCE$ + * Not Clipper compatible + * $PLATFORMS$ + * Windows, Linux, Mac OS X, OS/2 + * $VERSION$ + * 4.5 or upper + * $FILES$ + * Harbour source: contrib/hbqt/qtgui/TQHideEvent.prg + * C++ wrappers : contrib/hbqt/qtgui/QHideEvent.cpp + * Library : hbqtgui + * $END$ + */ diff --git a/harbour/contrib/hbqt/qtgui/doc/en/class_qradiobutton.txt b/harbour/contrib/hbqt/qtgui/doc/en/class_qradiobutton.txt new file mode 100644 index 0000000000..cf32427db1 --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/doc/en/class_qradiobutton.txt @@ -0,0 +1,51 @@ +/* + * $Id$ + */ + +/* $DOC$ + * $TEMPLATE$ + * Class + * $NAME$ + * QRadioButton() + * $CATEGORY$ + * Harbour Bindings for Qt + * $SUBCATEGORY$ + * GUI + * $EXTERNALLINK$ + * http://doc.trolltech.com/4.5/qradiobutton.html + * $ONELINER$ + * Creates a new QRadioButton object. + * $INHERITS$ + * QAbstractButton + * $SYNTAX$ + * QRadioButton( ... ) + * QRadioButton():from( pPtr_OR_oObj_of_type_QRadioButton ) + * + * $ARGUMENTS$ + * + * $RETURNS$ + * An instance of the object of type QRadioButton + * $METHODS$ + * :QRadioButton( oQWidget ) -> oQRadioButton + * :QRadioButton( cText, oQWidget ) -> oQRadioButton + * + * $DESCRIPTION$ + * + * $EXAMPLES$ + * + * $TESTS$ + * + * $STATUS$ + * R + * $COMPLIANCE$ + * Not Clipper compatible + * $PLATFORMS$ + * Windows, Linux, Mac OS X, OS/2 + * $VERSION$ + * 4.5 or upper + * $FILES$ + * Harbour source: contrib/hbqt/qtgui/TQRadioButton.prg + * C++ wrappers : contrib/hbqt/qtgui/QRadioButton.cpp + * Library : hbqtgui + * $END$ + */ diff --git a/harbour/contrib/hbqt/qtgui/doc/en/class_qscrollbar.txt b/harbour/contrib/hbqt/qtgui/doc/en/class_qscrollbar.txt new file mode 100644 index 0000000000..4a7a1867b0 --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/doc/en/class_qscrollbar.txt @@ -0,0 +1,51 @@ +/* + * $Id$ + */ + +/* $DOC$ + * $TEMPLATE$ + * Class + * $NAME$ + * QScrollBar() + * $CATEGORY$ + * Harbour Bindings for Qt + * $SUBCATEGORY$ + * GUI + * $EXTERNALLINK$ + * http://doc.trolltech.com/4.5/qscrollbar.html + * $ONELINER$ + * Creates a new QScrollBar object. + * $INHERITS$ + * QAbstractSlider + * $SYNTAX$ + * QScrollBar( ... ) + * QScrollBar():from( pPtr_OR_oObj_of_type_QScrollBar ) + * + * $ARGUMENTS$ + * + * $RETURNS$ + * An instance of the object of type QScrollBar + * $METHODS$ + * :QScrollBar( oQWidget ) -> oQScrollBar + * :QScrollBar( nOrientation, oQWidget ) -> oQScrollBar + * + * $DESCRIPTION$ + * + * $EXAMPLES$ + * + * $TESTS$ + * + * $STATUS$ + * R + * $COMPLIANCE$ + * Not Clipper compatible + * $PLATFORMS$ + * Windows, Linux, Mac OS X, OS/2 + * $VERSION$ + * 4.5 or upper + * $FILES$ + * Harbour source: contrib/hbqt/qtgui/TQScrollBar.prg + * C++ wrappers : contrib/hbqt/qtgui/QScrollBar.cpp + * Library : hbqtgui + * $END$ + */ diff --git a/harbour/contrib/hbqt/qtgui/doc/en/class_qshowevent.txt b/harbour/contrib/hbqt/qtgui/doc/en/class_qshowevent.txt new file mode 100644 index 0000000000..357d4784bd --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/doc/en/class_qshowevent.txt @@ -0,0 +1,50 @@ +/* + * $Id$ + */ + +/* $DOC$ + * $TEMPLATE$ + * Class + * $NAME$ + * QShowEvent() + * $CATEGORY$ + * Harbour Bindings for Qt + * $SUBCATEGORY$ + * GUI + * $EXTERNALLINK$ + * http://doc.trolltech.com/4.5/qshowevent.html + * $ONELINER$ + * Creates a new QShowEvent object. + * $INHERITS$ + * QEvent + * $SYNTAX$ + * QShowEvent( ... ) + * QShowEvent():from( pPtr_OR_oObj_of_type_QShowEvent ) + * + * $ARGUMENTS$ + * + * $RETURNS$ + * An instance of the object of type QShowEvent + * $METHODS$ + * :QShowEvent() -> oQShowEvent + * + * $DESCRIPTION$ + * + * $EXAMPLES$ + * + * $TESTS$ + * + * $STATUS$ + * R + * $COMPLIANCE$ + * Not Clipper compatible + * $PLATFORMS$ + * Windows, Linux, Mac OS X, OS/2 + * $VERSION$ + * 4.5 or upper + * $FILES$ + * Harbour source: contrib/hbqt/qtgui/TQShowEvent.prg + * C++ wrappers : contrib/hbqt/qtgui/QShowEvent.cpp + * Library : hbqtgui + * $END$ + */ diff --git a/harbour/contrib/hbqt/qtgui/doc/en/class_qsizegrip.txt b/harbour/contrib/hbqt/qtgui/doc/en/class_qsizegrip.txt new file mode 100644 index 0000000000..585d3e06f0 --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/doc/en/class_qsizegrip.txt @@ -0,0 +1,50 @@ +/* + * $Id$ + */ + +/* $DOC$ + * $TEMPLATE$ + * Class + * $NAME$ + * QSizeGrip() + * $CATEGORY$ + * Harbour Bindings for Qt + * $SUBCATEGORY$ + * GUI + * $EXTERNALLINK$ + * http://doc.trolltech.com/4.5/qsizegrip.html + * $ONELINER$ + * Creates a new QSizeGrip object. + * $INHERITS$ + * QWidget + * $SYNTAX$ + * QSizeGrip( ... ) + * QSizeGrip():from( pPtr_OR_oObj_of_type_QSizeGrip ) + * + * $ARGUMENTS$ + * + * $RETURNS$ + * An instance of the object of type QSizeGrip + * $METHODS$ + * :QSizeGrip( oQWidget ) -> oQSizeGrip + * + * $DESCRIPTION$ + * + * $EXAMPLES$ + * + * $TESTS$ + * + * $STATUS$ + * R + * $COMPLIANCE$ + * Not Clipper compatible + * $PLATFORMS$ + * Windows, Linux, Mac OS X, OS/2 + * $VERSION$ + * 4.5 or upper + * $FILES$ + * Harbour source: contrib/hbqt/qtgui/TQSizeGrip.prg + * C++ wrappers : contrib/hbqt/qtgui/QSizeGrip.cpp + * Library : hbqtgui + * $END$ + */ diff --git a/harbour/contrib/hbqt/qtgui/doc/en/class_qsortfilterproxymodel.txt b/harbour/contrib/hbqt/qtgui/doc/en/class_qsortfilterproxymodel.txt new file mode 100644 index 0000000000..d895d82669 --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/doc/en/class_qsortfilterproxymodel.txt @@ -0,0 +1,73 @@ +/* + * $Id$ + */ + +/* $DOC$ + * $TEMPLATE$ + * Class + * $NAME$ + * QSortFilterProxyModel() + * $CATEGORY$ + * Harbour Bindings for Qt + * $SUBCATEGORY$ + * GUI + * $EXTERNALLINK$ + * http://doc.trolltech.com/4.5/qsortfilterproxymodel.html + * $ONELINER$ + * Creates a new QSortFilterProxyModel object. + * $INHERITS$ + * QAbstractProxyModel + * $SYNTAX$ + * QSortFilterProxyModel( ... ) + * QSortFilterProxyModel():from( pPtr_OR_oObj_of_type_QSortFilterProxyModel ) + * + * $ARGUMENTS$ + * + * $RETURNS$ + * An instance of the object of type QSortFilterProxyModel + * $METHODS$ + * :dynamicSortFilter() -> lBool + * :filterCaseSensitivity() -> nQt_CaseSensitivity + * :filterKeyColumn() -> nInt + * :filterRegExp() -> oQRegExp + * :filterRole() -> nInt + * :isSortLocaleAware() -> lBool + * :mapFromSource( oQModelIndex ) -> oQModelIndex + * :mapToSource( oQModelIndex ) -> oQModelIndex + * :setDynamicSortFilter( lEnable ) -> NIL + * :setFilterCaseSensitivity( nCs ) -> NIL + * :setFilterKeyColumn( nColumn ) -> NIL + * :setFilterRegExp( oQRegExp ) -> NIL + * :setFilterRole( nRole ) -> NIL + * :setSortCaseSensitivity( nCs ) -> NIL + * :setSortLocaleAware( lOn ) -> NIL + * :setSortRole( nRole ) -> NIL + * :sortCaseSensitivity() -> nQt_CaseSensitivity + * :sortColumn() -> nInt + * :sortOrder() -> nQt_SortOrder + * :sortRole() -> nInt + * :invalidate() -> NIL + * :setFilterFixedString( cPattern ) -> NIL + * :setFilterRegExp( cPattern ) -> NIL + * :setFilterWildcard( cPattern ) -> NIL + * + * $DESCRIPTION$ + * + * $EXAMPLES$ + * + * $TESTS$ + * + * $STATUS$ + * R + * $COMPLIANCE$ + * Not Clipper compatible + * $PLATFORMS$ + * Windows, Linux, Mac OS X, OS/2 + * $VERSION$ + * 4.5 or upper + * $FILES$ + * Harbour source: contrib/hbqt/qtgui/TQSortFilterProxyModel.prg + * C++ wrappers : contrib/hbqt/qtgui/QSortFilterProxyModel.cpp + * Library : hbqtgui + * $END$ + */ diff --git a/harbour/contrib/hbqt/qtgui/doc/en/class_qstylehintreturn.txt b/harbour/contrib/hbqt/qtgui/doc/en/class_qstylehintreturn.txt new file mode 100644 index 0000000000..3e066e9c4f --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/doc/en/class_qstylehintreturn.txt @@ -0,0 +1,50 @@ +/* + * $Id$ + */ + +/* $DOC$ + * $TEMPLATE$ + * Class + * $NAME$ + * QStyleHintReturn() + * $CATEGORY$ + * Harbour Bindings for Qt + * $SUBCATEGORY$ + * GUI + * $EXTERNALLINK$ + * http://doc.trolltech.com/4.5/qstylehintreturn.html + * $ONELINER$ + * Creates a new QStyleHintReturn object. + * $INHERITS$ + * + * $SYNTAX$ + * QStyleHintReturn( ... ) + * QStyleHintReturn():from( pPtr_OR_oObj_of_type_QStyleHintReturn ) + * + * $ARGUMENTS$ + * + * $RETURNS$ + * An instance of the object of type QStyleHintReturn + * $METHODS$ + * :QStyleHintReturn( nVersion, nType ) -> oQStyleHintReturn + * + * $DESCRIPTION$ + * + * $EXAMPLES$ + * + * $TESTS$ + * + * $STATUS$ + * R + * $COMPLIANCE$ + * Not Clipper compatible + * $PLATFORMS$ + * Windows, Linux, Mac OS X, OS/2 + * $VERSION$ + * 4.5 or upper + * $FILES$ + * Harbour source: contrib/hbqt/qtgui/TQStyleHintReturn.prg + * C++ wrappers : contrib/hbqt/qtgui/QStyleHintReturn.cpp + * Library : hbqtgui + * $END$ + */ diff --git a/harbour/contrib/hbqt/qtgui/doc/en/class_qstylehintreturnmask.txt b/harbour/contrib/hbqt/qtgui/doc/en/class_qstylehintreturnmask.txt new file mode 100644 index 0000000000..356b445a93 --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/doc/en/class_qstylehintreturnmask.txt @@ -0,0 +1,50 @@ +/* + * $Id$ + */ + +/* $DOC$ + * $TEMPLATE$ + * Class + * $NAME$ + * QStyleHintReturnMask() + * $CATEGORY$ + * Harbour Bindings for Qt + * $SUBCATEGORY$ + * GUI + * $EXTERNALLINK$ + * http://doc.trolltech.com/4.5/qstylehintreturnmask.html + * $ONELINER$ + * Creates a new QStyleHintReturnMask object. + * $INHERITS$ + * QStyleHintReturn + * $SYNTAX$ + * QStyleHintReturnMask( ... ) + * QStyleHintReturnMask():from( pPtr_OR_oObj_of_type_QStyleHintReturnMask ) + * + * $ARGUMENTS$ + * + * $RETURNS$ + * An instance of the object of type QStyleHintReturnMask + * $METHODS$ + * :QStyleHintReturnMask() -> oQStyleHintReturnMask + * + * $DESCRIPTION$ + * + * $EXAMPLES$ + * + * $TESTS$ + * + * $STATUS$ + * R + * $COMPLIANCE$ + * Not Clipper compatible + * $PLATFORMS$ + * Windows, Linux, Mac OS X, OS/2 + * $VERSION$ + * 4.5 or upper + * $FILES$ + * Harbour source: contrib/hbqt/qtgui/TQStyleHintReturnMask.prg + * C++ wrappers : contrib/hbqt/qtgui/QStyleHintReturnMask.cpp + * Library : hbqtgui + * $END$ + */ diff --git a/harbour/contrib/hbqt/qtgui/doc/en/class_qstylehintreturnvariant.txt b/harbour/contrib/hbqt/qtgui/doc/en/class_qstylehintreturnvariant.txt new file mode 100644 index 0000000000..ca87e226df --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/doc/en/class_qstylehintreturnvariant.txt @@ -0,0 +1,50 @@ +/* + * $Id$ + */ + +/* $DOC$ + * $TEMPLATE$ + * Class + * $NAME$ + * QStyleHintReturnVariant() + * $CATEGORY$ + * Harbour Bindings for Qt + * $SUBCATEGORY$ + * GUI + * $EXTERNALLINK$ + * http://doc.trolltech.com/4.5/qstylehintreturnvariant.html + * $ONELINER$ + * Creates a new QStyleHintReturnVariant object. + * $INHERITS$ + * QStyleHintReturn + * $SYNTAX$ + * QStyleHintReturnVariant( ... ) + * QStyleHintReturnVariant():from( pPtr_OR_oObj_of_type_QStyleHintReturnVariant ) + * + * $ARGUMENTS$ + * + * $RETURNS$ + * An instance of the object of type QStyleHintReturnVariant + * $METHODS$ + * :QStyleHintReturnVariant() -> oQStyleHintReturnVariant + * + * $DESCRIPTION$ + * + * $EXAMPLES$ + * + * $TESTS$ + * + * $STATUS$ + * R + * $COMPLIANCE$ + * Not Clipper compatible + * $PLATFORMS$ + * Windows, Linux, Mac OS X, OS/2 + * $VERSION$ + * 4.5 or upper + * $FILES$ + * Harbour source: contrib/hbqt/qtgui/TQStyleHintReturnVariant.prg + * C++ wrappers : contrib/hbqt/qtgui/QStyleHintReturnVariant.cpp + * Library : hbqtgui + * $END$ + */ diff --git a/harbour/contrib/hbqt/qtgui/doc/en/class_qtextblockgroup.txt b/harbour/contrib/hbqt/qtgui/doc/en/class_qtextblockgroup.txt new file mode 100644 index 0000000000..ccbb296355 --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/doc/en/class_qtextblockgroup.txt @@ -0,0 +1,50 @@ +/* + * $Id$ + */ + +/* $DOC$ + * $TEMPLATE$ + * Class + * $NAME$ + * QTextBlockGroup() + * $CATEGORY$ + * Harbour Bindings for Qt + * $SUBCATEGORY$ + * GUI + * $EXTERNALLINK$ + * http://doc.trolltech.com/4.5/qtextblockgroup.html + * $ONELINER$ + * Creates a new QTextBlockGroup object. + * $INHERITS$ + * QTextObject + * $SYNTAX$ + * QTextBlockGroup( ... ) + * QTextBlockGroup():from( pPtr_OR_oObj_of_type_QTextBlockGroup ) + * + * $ARGUMENTS$ + * + * $RETURNS$ + * An instance of the object of type QTextBlockGroup + * $METHODS$ + * :QTextBlockGroup( oQTextDocument ) -> oQTextBlockGroup + * + * $DESCRIPTION$ + * + * $EXAMPLES$ + * + * $TESTS$ + * + * $STATUS$ + * R + * $COMPLIANCE$ + * Not Clipper compatible + * $PLATFORMS$ + * Windows, Linux, Mac OS X, OS/2 + * $VERSION$ + * 4.5 or upper + * $FILES$ + * Harbour source: contrib/hbqt/qtgui/TQTextBlockGroup.prg + * C++ wrappers : contrib/hbqt/qtgui/QTextBlockGroup.cpp + * Library : hbqtgui + * $END$ + */ diff --git a/harbour/contrib/hbqt/qtgui/doc/en/class_qtimeedit.txt b/harbour/contrib/hbqt/qtgui/doc/en/class_qtimeedit.txt new file mode 100644 index 0000000000..697350fc4b --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/doc/en/class_qtimeedit.txt @@ -0,0 +1,51 @@ +/* + * $Id$ + */ + +/* $DOC$ + * $TEMPLATE$ + * Class + * $NAME$ + * QTimeEdit() + * $CATEGORY$ + * Harbour Bindings for Qt + * $SUBCATEGORY$ + * GUI + * $EXTERNALLINK$ + * http://doc.trolltech.com/4.5/qtimeedit.html + * $ONELINER$ + * Creates a new QTimeEdit object. + * $INHERITS$ + * QDateTimeEdit + * $SYNTAX$ + * QTimeEdit( ... ) + * QTimeEdit():from( pPtr_OR_oObj_of_type_QTimeEdit ) + * + * $ARGUMENTS$ + * + * $RETURNS$ + * An instance of the object of type QTimeEdit + * $METHODS$ + * :QTimeEdit( oQWidget ) -> oQTimeEdit + * :QTimeEdit( oQTime, oQWidget ) -> oQTimeEdit + * + * $DESCRIPTION$ + * + * $EXAMPLES$ + * + * $TESTS$ + * + * $STATUS$ + * R + * $COMPLIANCE$ + * Not Clipper compatible + * $PLATFORMS$ + * Windows, Linux, Mac OS X, OS/2 + * $VERSION$ + * 4.5 or upper + * $FILES$ + * Harbour source: contrib/hbqt/qtgui/TQTimeEdit.prg + * C++ wrappers : contrib/hbqt/qtgui/QTimeEdit.cpp + * Library : hbqtgui + * $END$ + */ diff --git a/harbour/contrib/hbqt/qtgui/doc/en/class_qvboxlayout.txt b/harbour/contrib/hbqt/qtgui/doc/en/class_qvboxlayout.txt new file mode 100644 index 0000000000..773cbb4b2b --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/doc/en/class_qvboxlayout.txt @@ -0,0 +1,51 @@ +/* + * $Id$ + */ + +/* $DOC$ + * $TEMPLATE$ + * Class + * $NAME$ + * QVBoxLayout() + * $CATEGORY$ + * Harbour Bindings for Qt + * $SUBCATEGORY$ + * GUI + * $EXTERNALLINK$ + * http://doc.trolltech.com/4.5/qvboxlayout.html + * $ONELINER$ + * Creates a new QVBoxLayout object. + * $INHERITS$ + * QBoxLayout + * $SYNTAX$ + * QVBoxLayout( ... ) + * QVBoxLayout():from( pPtr_OR_oObj_of_type_QVBoxLayout ) + * + * $ARGUMENTS$ + * + * $RETURNS$ + * An instance of the object of type QVBoxLayout + * $METHODS$ + * :QVBoxLayout() -> oQVBoxLayout + * :QVBoxLayout( oQWidget ) -> oQVBoxLayout + * + * $DESCRIPTION$ + * + * $EXAMPLES$ + * + * $TESTS$ + * + * $STATUS$ + * R + * $COMPLIANCE$ + * Not Clipper compatible + * $PLATFORMS$ + * Windows, Linux, Mac OS X, OS/2 + * $VERSION$ + * 4.5 or upper + * $FILES$ + * Harbour source: contrib/hbqt/qtgui/TQVBoxLayout.prg + * C++ wrappers : contrib/hbqt/qtgui/QVBoxLayout.cpp + * Library : hbqtgui + * $END$ + */ diff --git a/harbour/contrib/hbqt/qtgui/doc/en/class_qwindowsstyle.txt b/harbour/contrib/hbqt/qtgui/doc/en/class_qwindowsstyle.txt new file mode 100644 index 0000000000..3cf1fdb26f --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/doc/en/class_qwindowsstyle.txt @@ -0,0 +1,50 @@ +/* + * $Id$ + */ + +/* $DOC$ + * $TEMPLATE$ + * Class + * $NAME$ + * QWindowsStyle() + * $CATEGORY$ + * Harbour Bindings for Qt + * $SUBCATEGORY$ + * GUI + * $EXTERNALLINK$ + * http://doc.trolltech.com/4.5/qwindowsstyle.html + * $ONELINER$ + * Creates a new QWindowsStyle object. + * $INHERITS$ + * QCommonStyle + * $SYNTAX$ + * QWindowsStyle( ... ) + * QWindowsStyle():from( pPtr_OR_oObj_of_type_QWindowsStyle ) + * + * $ARGUMENTS$ + * + * $RETURNS$ + * An instance of the object of type QWindowsStyle + * $METHODS$ + * :QWindowsStyle() -> oQWindowsStyle + * + * $DESCRIPTION$ + * + * $EXAMPLES$ + * + * $TESTS$ + * + * $STATUS$ + * R + * $COMPLIANCE$ + * Not Clipper compatible + * $PLATFORMS$ + * Windows, Linux, Mac OS X, OS/2 + * $VERSION$ + * 4.5 or upper + * $FILES$ + * Harbour source: contrib/hbqt/qtgui/TQWindowsStyle.prg + * C++ wrappers : contrib/hbqt/qtgui/QWindowsStyle.cpp + * Library : hbqtgui + * $END$ + */ diff --git a/harbour/contrib/hbqt/qtgui/g/QSortFilterProxyModel.cpp b/harbour/contrib/hbqt/qtgui/g/QSortFilterProxyModel.cpp new file mode 100644 index 0000000000..32074498c2 --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/g/QSortFilterProxyModel.cpp @@ -0,0 +1,494 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009-2010 Pritpal Bedi + * www - http://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. + * + */ +/*----------------------------------------------------------------------*/ +/* C R E D I T S */ +/*----------------------------------------------------------------------*/ +/* + * Marcos Antonio Gambeta + * for providing first ever prototype parsing methods. Though the current + * implementation is diametrically different then what he proposed, still + * current code shaped on those footsteps. + * + * Viktor Szakats + * for directing the project with futuristic vision; + * for designing and maintaining a complex build system for hbQT, hbIDE; + * for introducing many constructs on PRG and C++ levels; + * for streamlining signal/slots and events management classes; + * + * Istvan Bisz + * for introducing QPointer<> concept in the generator; + * for testing the library on numerous accounts; + * for showing a way how a GC pointer can be detached; + * + * Francesco Perillo + * for taking keen interest in hbQT development and peeking the code; + * for providing tips here and there to improve the code quality; + * for hitting bulls eye to describe why few objects need GC detachment; + * + * Carlos Bacco + * for implementing HBQT_TYPE_Q*Class enums; + * for peeking into the code and suggesting optimization points; + * + * Przemyslaw Czerpak + * for providing tips and trick to manipulate HVM internals to the best + * of its use and always showing a path when we get stuck; + * A true tradition of a MASTER... +*/ +/*----------------------------------------------------------------------*/ + +#include "hbqtcore.h" +#include "hbqtgui.h" + +/*----------------------------------------------------------------------*/ +#if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + +/* + * Constructed[ 24/24 [ 100.00% ] ] + * + */ + +#include + +#include + + +/* + * QSortFilterProxyModel ( QObject * parent = 0 ) + * ~QSortFilterProxyModel () + */ + +typedef struct +{ + QPointer< QSortFilterProxyModel > ph; + bool bNew; + PHBQT_GC_FUNC func; + int type; +} HBQT_GC_T_QSortFilterProxyModel; + +HBQT_GC_FUNC( hbqt_gcRelease_QSortFilterProxyModel ) +{ + QSortFilterProxyModel * ph = NULL ; + HBQT_GC_T_QSortFilterProxyModel * p = ( HBQT_GC_T_QSortFilterProxyModel * ) Cargo; + + if( p && p->bNew && p->ph ) + { + ph = p->ph; + if( ph ) + { + const QMetaObject * m = ( ph )->metaObject(); + if( ( QString ) m->className() != ( QString ) "QObject" ) + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_QSortFilterProxyModel /.\\ ", (void*) ph, (void*) p->ph ) ); + delete ( p->ph ); + HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_QSortFilterProxyModel \\./ ", (void*) ph, (void*) p->ph ) ); + p->ph = NULL; + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p NO__rel_QSortFilterProxyModel ", ph ) ); + p->ph = NULL; + } + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p DEL_rel_QSortFilterProxyModel : Object already deleted!", ph ) ); + p->ph = NULL; + } + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p PTR_rel_QSortFilterProxyModel : Object not created with new=true", ph ) ); + p->ph = NULL; + } +} + +void * hbqt_gcAllocate_QSortFilterProxyModel( void * pObj, bool bNew ) +{ + HBQT_GC_T_QSortFilterProxyModel * p = ( HBQT_GC_T_QSortFilterProxyModel * ) hb_gcAllocate( sizeof( HBQT_GC_T_QSortFilterProxyModel ), hbqt_gcFuncs() ); + + new( & p->ph ) QPointer< QSortFilterProxyModel >( ( QSortFilterProxyModel * ) pObj ); + p->bNew = bNew; + p->func = hbqt_gcRelease_QSortFilterProxyModel; + p->type = HBQT_TYPE_QSortFilterProxyModel; + + if( bNew ) + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QSortFilterProxyModel under p->pq", pObj ) ); + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QSortFilterProxyModel", pObj ) ); + } + return p; +} + +HB_FUNC( QT_QSORTFILTERPROXYMODEL ) +{ + QSortFilterProxyModel * pObj = NULL; + + if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) + { + pObj = new QSortFilterProxyModel( hbqt_par_QObject( 1 ) ) ; + } + else + { + pObj = new QSortFilterProxyModel() ; + } + + hb_retptrGC( hbqt_gcAllocate_QSortFilterProxyModel( ( void * ) pObj, true ) ); +} + +/* + * bool dynamicSortFilter () const + */ +HB_FUNC( QT_QSORTFILTERPROXYMODEL_DYNAMICSORTFILTER ) +{ + QSortFilterProxyModel * p = hbqt_par_QSortFilterProxyModel( 1 ); + if( p ) + { + hb_retl( ( p )->dynamicSortFilter() ); + } +} + +/* + * Qt::CaseSensitivity filterCaseSensitivity () const + */ +HB_FUNC( QT_QSORTFILTERPROXYMODEL_FILTERCASESENSITIVITY ) +{ + QSortFilterProxyModel * p = hbqt_par_QSortFilterProxyModel( 1 ); + if( p ) + { + hb_retni( ( Qt::CaseSensitivity ) ( p )->filterCaseSensitivity() ); + } +} + +/* + * int filterKeyColumn () const + */ +HB_FUNC( QT_QSORTFILTERPROXYMODEL_FILTERKEYCOLUMN ) +{ + QSortFilterProxyModel * p = hbqt_par_QSortFilterProxyModel( 1 ); + if( p ) + { + hb_retni( ( p )->filterKeyColumn() ); + } +} + +/* + * QRegExp filterRegExp () const + */ +HB_FUNC( QT_QSORTFILTERPROXYMODEL_FILTERREGEXP ) +{ + QSortFilterProxyModel * p = hbqt_par_QSortFilterProxyModel( 1 ); + if( p ) + { + hb_retptrGC( hbqt_gcAllocate_QRegExp( new QRegExp( ( p )->filterRegExp() ), true ) ); + } +} + +/* + * int filterRole () const + */ +HB_FUNC( QT_QSORTFILTERPROXYMODEL_FILTERROLE ) +{ + QSortFilterProxyModel * p = hbqt_par_QSortFilterProxyModel( 1 ); + if( p ) + { + hb_retni( ( p )->filterRole() ); + } +} + +/* + * bool isSortLocaleAware () const + */ +HB_FUNC( QT_QSORTFILTERPROXYMODEL_ISSORTLOCALEAWARE ) +{ + QSortFilterProxyModel * p = hbqt_par_QSortFilterProxyModel( 1 ); + if( p ) + { + hb_retl( ( p )->isSortLocaleAware() ); + } +} + +/* + * virtual QModelIndex mapFromSource ( const QModelIndex & sourceIndex ) const + */ +HB_FUNC( QT_QSORTFILTERPROXYMODEL_MAPFROMSOURCE ) +{ + QSortFilterProxyModel * p = hbqt_par_QSortFilterProxyModel( 1 ); + if( p ) + { + hb_retptrGC( hbqt_gcAllocate_QModelIndex( new QModelIndex( ( p )->mapFromSource( *hbqt_par_QModelIndex( 2 ) ) ), true ) ); + } +} + +/* + * virtual QModelIndex mapToSource ( const QModelIndex & proxyIndex ) const + */ +HB_FUNC( QT_QSORTFILTERPROXYMODEL_MAPTOSOURCE ) +{ + QSortFilterProxyModel * p = hbqt_par_QSortFilterProxyModel( 1 ); + if( p ) + { + hb_retptrGC( hbqt_gcAllocate_QModelIndex( new QModelIndex( ( p )->mapToSource( *hbqt_par_QModelIndex( 2 ) ) ), true ) ); + } +} + +/* + * void setDynamicSortFilter ( bool enable ) + */ +HB_FUNC( QT_QSORTFILTERPROXYMODEL_SETDYNAMICSORTFILTER ) +{ + QSortFilterProxyModel * p = hbqt_par_QSortFilterProxyModel( 1 ); + if( p ) + { + ( p )->setDynamicSortFilter( hb_parl( 2 ) ); + } +} + +/* + * void setFilterCaseSensitivity ( Qt::CaseSensitivity cs ) + */ +HB_FUNC( QT_QSORTFILTERPROXYMODEL_SETFILTERCASESENSITIVITY ) +{ + QSortFilterProxyModel * p = hbqt_par_QSortFilterProxyModel( 1 ); + if( p ) + { + ( p )->setFilterCaseSensitivity( ( Qt::CaseSensitivity ) hb_parni( 2 ) ); + } +} + +/* + * void setFilterKeyColumn ( int column ) + */ +HB_FUNC( QT_QSORTFILTERPROXYMODEL_SETFILTERKEYCOLUMN ) +{ + QSortFilterProxyModel * p = hbqt_par_QSortFilterProxyModel( 1 ); + if( p ) + { + ( p )->setFilterKeyColumn( hb_parni( 2 ) ); + } +} + +/* + * void setFilterRegExp ( const QRegExp & regExp ) + */ +HB_FUNC( QT_QSORTFILTERPROXYMODEL_SETFILTERREGEXP ) +{ + QSortFilterProxyModel * p = hbqt_par_QSortFilterProxyModel( 1 ); + if( p ) + { + ( p )->setFilterRegExp( *hbqt_par_QRegExp( 2 ) ); + } +} + +/* + * void setFilterRole ( int role ) + */ +HB_FUNC( QT_QSORTFILTERPROXYMODEL_SETFILTERROLE ) +{ + QSortFilterProxyModel * p = hbqt_par_QSortFilterProxyModel( 1 ); + if( p ) + { + ( p )->setFilterRole( hb_parni( 2 ) ); + } +} + +/* + * void setSortCaseSensitivity ( Qt::CaseSensitivity cs ) + */ +HB_FUNC( QT_QSORTFILTERPROXYMODEL_SETSORTCASESENSITIVITY ) +{ + QSortFilterProxyModel * p = hbqt_par_QSortFilterProxyModel( 1 ); + if( p ) + { + ( p )->setSortCaseSensitivity( ( Qt::CaseSensitivity ) hb_parni( 2 ) ); + } +} + +/* + * void setSortLocaleAware ( bool on ) + */ +HB_FUNC( QT_QSORTFILTERPROXYMODEL_SETSORTLOCALEAWARE ) +{ + QSortFilterProxyModel * p = hbqt_par_QSortFilterProxyModel( 1 ); + if( p ) + { + ( p )->setSortLocaleAware( hb_parl( 2 ) ); + } +} + +/* + * void setSortRole ( int role ) + */ +HB_FUNC( QT_QSORTFILTERPROXYMODEL_SETSORTROLE ) +{ + QSortFilterProxyModel * p = hbqt_par_QSortFilterProxyModel( 1 ); + if( p ) + { + ( p )->setSortRole( hb_parni( 2 ) ); + } +} + +/* + * Qt::CaseSensitivity sortCaseSensitivity () const + */ +HB_FUNC( QT_QSORTFILTERPROXYMODEL_SORTCASESENSITIVITY ) +{ + QSortFilterProxyModel * p = hbqt_par_QSortFilterProxyModel( 1 ); + if( p ) + { + hb_retni( ( Qt::CaseSensitivity ) ( p )->sortCaseSensitivity() ); + } +} + +/* + * int sortColumn () const + */ +HB_FUNC( QT_QSORTFILTERPROXYMODEL_SORTCOLUMN ) +{ + QSortFilterProxyModel * p = hbqt_par_QSortFilterProxyModel( 1 ); + if( p ) + { + hb_retni( ( p )->sortColumn() ); + } +} + +/* + * Qt::SortOrder sortOrder () const + */ +HB_FUNC( QT_QSORTFILTERPROXYMODEL_SORTORDER ) +{ + QSortFilterProxyModel * p = hbqt_par_QSortFilterProxyModel( 1 ); + if( p ) + { + hb_retni( ( Qt::SortOrder ) ( p )->sortOrder() ); + } +} + +/* + * int sortRole () const + */ +HB_FUNC( QT_QSORTFILTERPROXYMODEL_SORTROLE ) +{ + QSortFilterProxyModel * p = hbqt_par_QSortFilterProxyModel( 1 ); + if( p ) + { + hb_retni( ( p )->sortRole() ); + } +} + +/* + * void invalidate () + */ +HB_FUNC( QT_QSORTFILTERPROXYMODEL_INVALIDATE ) +{ + QSortFilterProxyModel * p = hbqt_par_QSortFilterProxyModel( 1 ); + if( p ) + { + ( p )->invalidate(); + } +} + +/* + * void setFilterFixedString ( const QString & pattern ) + */ +HB_FUNC( QT_QSORTFILTERPROXYMODEL_SETFILTERFIXEDSTRING ) +{ + QSortFilterProxyModel * p = hbqt_par_QSortFilterProxyModel( 1 ); + if( p ) + { + void * pText; + ( p )->setFilterFixedString( hb_parstr_utf8( 2, &pText, NULL ) ); + hb_strfree( pText ); + } +} + +/* + * void setFilterRegExp ( const QString & pattern ) + */ +HB_FUNC( QT_QSORTFILTERPROXYMODEL_SETFILTERREGEXP_1 ) +{ + QSortFilterProxyModel * p = hbqt_par_QSortFilterProxyModel( 1 ); + if( p ) + { + void * pText; + ( p )->setFilterRegExp( hb_parstr_utf8( 2, &pText, NULL ) ); + hb_strfree( pText ); + } +} + +/* + * void setFilterWildcard ( const QString & pattern ) + */ +HB_FUNC( QT_QSORTFILTERPROXYMODEL_SETFILTERWILDCARD ) +{ + QSortFilterProxyModel * p = hbqt_par_QSortFilterProxyModel( 1 ); + if( p ) + { + void * pText; + ( p )->setFilterWildcard( hb_parstr_utf8( 2, &pText, NULL ) ); + hb_strfree( pText ); + } +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ diff --git a/harbour/contrib/hbqt/qtgui/g/TQSortFilterProxyModel.prg b/harbour/contrib/hbqt/qtgui/g/TQSortFilterProxyModel.prg new file mode 100644 index 0000000000..b5e407d594 --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/g/TQSortFilterProxyModel.prg @@ -0,0 +1,375 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009-2010 Pritpal Bedi + * www - http://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. + * + */ +/*----------------------------------------------------------------------*/ +/* C R E D I T S */ +/*----------------------------------------------------------------------*/ +/* + * Marcos Antonio Gambeta + * for providing first ever prototype parsing methods. Though the current + * implementation is diametrically different then what he proposed, still + * current code shaped on those footsteps. + * + * Viktor Szakats + * for directing the project with futuristic vision; + * for designing and maintaining a complex build system for hbQT, hbIDE; + * for introducing many constructs on PRG and C++ levels; + * for streamlining signal/slots and events management classes; + * + * Istvan Bisz + * for introducing QPointer<> concept in the generator; + * for testing the library on numerous accounts; + * for showing a way how a GC pointer can be detached; + * + * Francesco Perillo + * for taking keen interest in hbQT development and peeking the code; + * for providing tips here and there to improve the code quality; + * for hitting bulls eye to describe why few objects need GC detachment; + * + * Carlos Bacco + * for implementing HBQT_TYPE_Q*Class enums; + * for peeking into the code and suggesting optimization points; + * + * Przemyslaw Czerpak + * for providing tips and trick to manipulate HVM internals to the best + * of its use and always showing a path when we get stuck; + * A true tradition of a MASTER... +*/ +/*----------------------------------------------------------------------*/ + + +#include "hbclass.ch" + + +FUNCTION QSortFilterProxyModel( ... ) + RETURN HB_QSortFilterProxyModel():new( ... ) + + +CREATE CLASS QSortFilterProxyModel INHERIT HbQtObjectHandler, HB_QAbstractProxyModel FUNCTION HB_QSortFilterProxyModel + + METHOD new( ... ) + + METHOD dynamicSortFilter // ( ) -> lBool + METHOD filterCaseSensitivity // ( ) -> nQt_CaseSensitivity + METHOD filterKeyColumn // ( ) -> nInt + METHOD filterRegExp // ( ) -> oQRegExp + METHOD filterRole // ( ) -> nInt + METHOD isSortLocaleAware // ( ) -> lBool + METHOD mapFromSource // ( oQModelIndex ) -> oQModelIndex + METHOD mapToSource // ( oQModelIndex ) -> oQModelIndex + METHOD setDynamicSortFilter // ( lEnable ) -> NIL + METHOD setFilterCaseSensitivity // ( nCs ) -> NIL + METHOD setFilterKeyColumn // ( nColumn ) -> NIL + METHOD setFilterRegExp // ( oQRegExp ) -> NIL + METHOD setFilterRole // ( nRole ) -> NIL + METHOD setSortCaseSensitivity // ( nCs ) -> NIL + METHOD setSortLocaleAware // ( lOn ) -> NIL + METHOD setSortRole // ( nRole ) -> NIL + METHOD sortCaseSensitivity // ( ) -> nQt_CaseSensitivity + METHOD sortColumn // ( ) -> nInt + METHOD sortOrder // ( ) -> nQt_SortOrder + METHOD sortRole // ( ) -> nInt + METHOD invalidate // ( ) -> NIL + METHOD setFilterFixedString // ( cPattern ) -> NIL + // ( cPattern ) -> NIL + METHOD setFilterWildcard // ( cPattern ) -> NIL + + ENDCLASS + + +METHOD QSortFilterProxyModel:new( ... ) + LOCAL p + FOR EACH p IN { ... } + hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) ) + NEXT + ::pPtr := Qt_QSortFilterProxyModel( ... ) + RETURN Self + + +METHOD QSortFilterProxyModel:dynamicSortFilter( ... ) + SWITCH PCount() + CASE 0 + RETURN Qt_QSortFilterProxyModel_dynamicSortFilter( ::pPtr, ... ) + ENDSWITCH + RETURN hbqt_error() + + +METHOD QSortFilterProxyModel:filterCaseSensitivity( ... ) + SWITCH PCount() + CASE 0 + RETURN Qt_QSortFilterProxyModel_filterCaseSensitivity( ::pPtr, ... ) + ENDSWITCH + RETURN hbqt_error() + + +METHOD QSortFilterProxyModel:filterKeyColumn( ... ) + SWITCH PCount() + CASE 0 + RETURN Qt_QSortFilterProxyModel_filterKeyColumn( ::pPtr, ... ) + ENDSWITCH + RETURN hbqt_error() + + +METHOD QSortFilterProxyModel:filterRegExp( ... ) + SWITCH PCount() + CASE 0 + RETURN HB_QRegExp():from( Qt_QSortFilterProxyModel_filterRegExp( ::pPtr, ... ) ) + ENDSWITCH + RETURN hbqt_error() + + +METHOD QSortFilterProxyModel:filterRole( ... ) + SWITCH PCount() + CASE 0 + RETURN Qt_QSortFilterProxyModel_filterRole( ::pPtr, ... ) + ENDSWITCH + RETURN hbqt_error() + + +METHOD QSortFilterProxyModel:isSortLocaleAware( ... ) + SWITCH PCount() + CASE 0 + RETURN Qt_QSortFilterProxyModel_isSortLocaleAware( ::pPtr, ... ) + ENDSWITCH + RETURN hbqt_error() + + +METHOD QSortFilterProxyModel:mapFromSource( ... ) + SWITCH PCount() + CASE 1 + DO CASE + CASE hb_isObject( hb_pvalue( 1 ) ) + RETURN HB_QModelIndex():from( Qt_QSortFilterProxyModel_mapFromSource( ::pPtr, ... ) ) + ENDCASE + EXIT + ENDSWITCH + RETURN hbqt_error() + + +METHOD QSortFilterProxyModel:mapToSource( ... ) + SWITCH PCount() + CASE 1 + DO CASE + CASE hb_isObject( hb_pvalue( 1 ) ) + RETURN HB_QModelIndex():from( Qt_QSortFilterProxyModel_mapToSource( ::pPtr, ... ) ) + ENDCASE + EXIT + ENDSWITCH + RETURN hbqt_error() + + +METHOD QSortFilterProxyModel:setDynamicSortFilter( ... ) + SWITCH PCount() + CASE 1 + DO CASE + CASE hb_isLogical( hb_pvalue( 1 ) ) + RETURN Qt_QSortFilterProxyModel_setDynamicSortFilter( ::pPtr, ... ) + ENDCASE + EXIT + ENDSWITCH + RETURN hbqt_error() + + +METHOD QSortFilterProxyModel:setFilterCaseSensitivity( ... ) + SWITCH PCount() + CASE 1 + DO CASE + CASE hb_isNumeric( hb_pvalue( 1 ) ) + RETURN Qt_QSortFilterProxyModel_setFilterCaseSensitivity( ::pPtr, ... ) + ENDCASE + EXIT + ENDSWITCH + RETURN hbqt_error() + + +METHOD QSortFilterProxyModel:setFilterKeyColumn( ... ) + SWITCH PCount() + CASE 1 + DO CASE + CASE hb_isNumeric( hb_pvalue( 1 ) ) + RETURN Qt_QSortFilterProxyModel_setFilterKeyColumn( ::pPtr, ... ) + ENDCASE + EXIT + ENDSWITCH + RETURN hbqt_error() + + +METHOD QSortFilterProxyModel:setFilterRegExp( ... ) + SWITCH PCount() + CASE 1 + DO CASE + CASE hb_isChar( hb_pvalue( 1 ) ) + RETURN Qt_QSortFilterProxyModel_setFilterRegExp_1( ::pPtr, ... ) + CASE hb_isObject( hb_pvalue( 1 ) ) + RETURN Qt_QSortFilterProxyModel_setFilterRegExp( ::pPtr, ... ) + ENDCASE + EXIT + ENDSWITCH + RETURN hbqt_error() + + +METHOD QSortFilterProxyModel:setFilterRole( ... ) + SWITCH PCount() + CASE 1 + DO CASE + CASE hb_isNumeric( hb_pvalue( 1 ) ) + RETURN Qt_QSortFilterProxyModel_setFilterRole( ::pPtr, ... ) + ENDCASE + EXIT + ENDSWITCH + RETURN hbqt_error() + + +METHOD QSortFilterProxyModel:setSortCaseSensitivity( ... ) + SWITCH PCount() + CASE 1 + DO CASE + CASE hb_isNumeric( hb_pvalue( 1 ) ) + RETURN Qt_QSortFilterProxyModel_setSortCaseSensitivity( ::pPtr, ... ) + ENDCASE + EXIT + ENDSWITCH + RETURN hbqt_error() + + +METHOD QSortFilterProxyModel:setSortLocaleAware( ... ) + SWITCH PCount() + CASE 1 + DO CASE + CASE hb_isLogical( hb_pvalue( 1 ) ) + RETURN Qt_QSortFilterProxyModel_setSortLocaleAware( ::pPtr, ... ) + ENDCASE + EXIT + ENDSWITCH + RETURN hbqt_error() + + +METHOD QSortFilterProxyModel:setSortRole( ... ) + SWITCH PCount() + CASE 1 + DO CASE + CASE hb_isNumeric( hb_pvalue( 1 ) ) + RETURN Qt_QSortFilterProxyModel_setSortRole( ::pPtr, ... ) + ENDCASE + EXIT + ENDSWITCH + RETURN hbqt_error() + + +METHOD QSortFilterProxyModel:sortCaseSensitivity( ... ) + SWITCH PCount() + CASE 0 + RETURN Qt_QSortFilterProxyModel_sortCaseSensitivity( ::pPtr, ... ) + ENDSWITCH + RETURN hbqt_error() + + +METHOD QSortFilterProxyModel:sortColumn( ... ) + SWITCH PCount() + CASE 0 + RETURN Qt_QSortFilterProxyModel_sortColumn( ::pPtr, ... ) + ENDSWITCH + RETURN hbqt_error() + + +METHOD QSortFilterProxyModel:sortOrder( ... ) + SWITCH PCount() + CASE 0 + RETURN Qt_QSortFilterProxyModel_sortOrder( ::pPtr, ... ) + ENDSWITCH + RETURN hbqt_error() + + +METHOD QSortFilterProxyModel:sortRole( ... ) + SWITCH PCount() + CASE 0 + RETURN Qt_QSortFilterProxyModel_sortRole( ::pPtr, ... ) + ENDSWITCH + RETURN hbqt_error() + + +METHOD QSortFilterProxyModel:invalidate( ... ) + SWITCH PCount() + CASE 0 + RETURN Qt_QSortFilterProxyModel_invalidate( ::pPtr, ... ) + ENDSWITCH + RETURN hbqt_error() + + +METHOD QSortFilterProxyModel:setFilterFixedString( ... ) + SWITCH PCount() + CASE 1 + DO CASE + CASE hb_isChar( hb_pvalue( 1 ) ) + RETURN Qt_QSortFilterProxyModel_setFilterFixedString( ::pPtr, ... ) + ENDCASE + EXIT + ENDSWITCH + RETURN hbqt_error() + + +METHOD QSortFilterProxyModel:setFilterWildcard( ... ) + SWITCH PCount() + CASE 1 + DO CASE + CASE hb_isChar( hb_pvalue( 1 ) ) + RETURN Qt_QSortFilterProxyModel_setFilterWildcard( ::pPtr, ... ) + ENDCASE + EXIT + ENDSWITCH + RETURN hbqt_error() + diff --git a/harbour/contrib/hbqt/qtgui/g/filelist.hbm b/harbour/contrib/hbqt/qtgui/g/filelist.hbm index 588ba740ab..77d94047bc 100644 --- a/harbour/contrib/hbqt/qtgui/g/filelist.hbm +++ b/harbour/contrib/hbqt/qtgui/g/filelist.hbm @@ -178,6 +178,7 @@ QShowEvent.cpp QSizeGrip.cpp QSizePolicy.cpp QSlider.cpp +QSortFilterProxyModel.cpp QSound.cpp QSpacerItem.cpp QSpinBox.cpp @@ -440,6 +441,7 @@ TQShowEvent.prg TQSizeGrip.prg TQSizePolicy.prg TQSlider.prg +TQSortFilterProxyModel.prg TQSound.prg TQSpacerItem.prg TQSpinBox.prg diff --git a/harbour/contrib/hbqt/qtgui/g/hbqtgui.h b/harbour/contrib/hbqt/qtgui/g/hbqtgui.h index 0ea6d7acb7..7261fe1860 100644 --- a/harbour/contrib/hbqt/qtgui/g/hbqtgui.h +++ b/harbour/contrib/hbqt/qtgui/g/hbqtgui.h @@ -184,6 +184,7 @@ extern HB_EXPORT HBQT_GC_FUNC( hbqt_gcRelease_QShowEvent ); extern HB_EXPORT HBQT_GC_FUNC( hbqt_gcRelease_QSizeGrip ); extern HB_EXPORT HBQT_GC_FUNC( hbqt_gcRelease_QSizePolicy ); extern HB_EXPORT HBQT_GC_FUNC( hbqt_gcRelease_QSlider ); +extern HB_EXPORT HBQT_GC_FUNC( hbqt_gcRelease_QSortFilterProxyModel ); extern HB_EXPORT HBQT_GC_FUNC( hbqt_gcRelease_QSound ); extern HB_EXPORT HBQT_GC_FUNC( hbqt_gcRelease_QSpacerItem ); extern HB_EXPORT HBQT_GC_FUNC( hbqt_gcRelease_QSpinBox ); @@ -446,6 +447,7 @@ extern HB_EXPORT void * hbqt_gcAllocate_QShowEvent( void * pObj, bool bNew ); extern HB_EXPORT void * hbqt_gcAllocate_QSizeGrip( void * pObj, bool bNew ); extern HB_EXPORT void * hbqt_gcAllocate_QSizePolicy( void * pObj, bool bNew ); extern HB_EXPORT void * hbqt_gcAllocate_QSlider( void * pObj, bool bNew ); +extern HB_EXPORT void * hbqt_gcAllocate_QSortFilterProxyModel( void * pObj, bool bNew ); extern HB_EXPORT void * hbqt_gcAllocate_QSound( void * pObj, bool bNew ); extern HB_EXPORT void * hbqt_gcAllocate_QSpacerItem( void * pObj, bool bNew ); extern HB_EXPORT void * hbqt_gcAllocate_QSpinBox( void * pObj, bool bNew ); @@ -710,6 +712,7 @@ HB_EXTERN_END #define hbqt_par_QSizeGrip( n ) ( ( QSizeGrip * ) hbqt_gcpointer( n ) ) #define hbqt_par_QSizePolicy( n ) ( ( QSizePolicy * ) hbqt_gcpointer( n ) ) #define hbqt_par_QSlider( n ) ( ( QSlider * ) hbqt_gcpointer( n ) ) +#define hbqt_par_QSortFilterProxyModel( n ) ( ( QSortFilterProxyModel * ) hbqt_gcpointer( n ) ) #define hbqt_par_QSound( n ) ( ( QSound * ) hbqt_gcpointer( n ) ) #define hbqt_par_QSpacerItem( n ) ( ( QSpacerItem * ) hbqt_gcpointer( n ) ) #define hbqt_par_QSpinBox( n ) ( ( QSpinBox * ) hbqt_gcpointer( n ) ) @@ -972,6 +975,7 @@ HB_EXTERN_END #define HBQT_TYPE_QSizeGrip 0x626D8234 #define HBQT_TYPE_QSizePolicy 0x3CC69948 #define HBQT_TYPE_QSlider 0x06AC376A +#define HBQT_TYPE_QSortFilterProxyModel 0x248C7DF1 #define HBQT_TYPE_QSound 0x9F8928F7 #define HBQT_TYPE_QSpacerItem 0x7DF1ACDC #define HBQT_TYPE_QSpinBox 0xF87A2C0F diff --git a/harbour/contrib/hbqt/qtgui/qth/QSortFilterProxyModel.qth b/harbour/contrib/hbqt/qtgui/qth/QSortFilterProxyModel.qth new file mode 100644 index 0000000000..b86c7cd796 --- /dev/null +++ b/harbour/contrib/hbqt/qtgui/qth/QSortFilterProxyModel.qth @@ -0,0 +1,127 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2010 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = +Inherits = QAbstractProxyModel +Type = +New = +Destructor = +Constructor = + + + + + + + + + +#include + + +/* + * QSortFilterProxyModel ( QObject * parent = 0 ) + * ~QSortFilterProxyModel () + */ +HB_FUNC( QT_QSORTFILTERPROXYMODEL ) +{ + if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) + { + __HB_RETPTRGC__( new QSortFilterProxyModel( hbqt_par_QObject( 1 ) ) ); + } + else + { + __HB_RETPTRGC__( new QSortFilterProxyModel() ); + } +} + + + + + + +bool dynamicSortFilter () const +Qt::CaseSensitivity filterCaseSensitivity () const +int filterKeyColumn () const +QRegExp filterRegExp () const +int filterRole () const +bool isSortLocaleAware () const +virtual QModelIndex mapFromSource ( const QModelIndex & sourceIndex ) const +virtual QModelIndex mapToSource ( const QModelIndex & proxyIndex ) const +void setDynamicSortFilter ( bool enable ) +void setFilterCaseSensitivity ( Qt::CaseSensitivity cs ) +void setFilterKeyColumn ( int column ) +void setFilterRegExp ( const QRegExp & regExp ) +void setFilterRole ( int role ) +void setSortCaseSensitivity ( Qt::CaseSensitivity cs ) +void setSortLocaleAware ( bool on ) +void setSortRole ( int role ) +Qt::CaseSensitivity sortCaseSensitivity () const +int sortColumn () const +Qt::SortOrder sortOrder () const +int sortRole () const + + + +void invalidate () +void setFilterFixedString ( const QString & pattern ) +void setFilterRegExp ( const QString & pattern ) +void setFilterWildcard ( const QString & pattern ) + + + +