From dd5f087fd0169c065cd5cef8ebc33195ecd8f5f5 Mon Sep 17 00:00:00 2001 From: Pritpal Bedi Date: Sat, 6 Jun 2009 17:44:29 +0000 Subject: [PATCH] 2009-06-06 10:33 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) * harbour/contrib/hbqt/Makefile_gen + harbour/contrib/hbqt/hbqt_qstyleoptionslider.cpp + harbour/contrib/hbqt/hbqt_qstyleoptionspinbox.cpp + harbour/contrib/hbqt/hbqt_qstyleoptiontab.cpp + harbour/contrib/hbqt/hbqt_qstyleoptiontabbarbase.cpp + harbour/contrib/hbqt/hbqt_qstyleoptiontabwidgetframe.cpp + harbour/contrib/hbqt/hbqt_qstyleoptiontitlebar.cpp + harbour/contrib/hbqt/hbqt_qstyleoptiontoolbar.cpp + harbour/contrib/hbqt/hbqt_qstyleoptiontoolbox.cpp + harbour/contrib/hbqt/hbqt_qstyleoptiontoolbutton.cpp + harbour/contrib/hbqt/hbqt_qstyleoptionviewitem.cpp + harbour/contrib/hbqt/hbqt_qstylepainter.cpp * harbour/contrib/hbqt/hbqt.h * harbour/contrib/hbqt/generator/hbqtgen.prg + harbour/contrib/hbqt/TQStyleOptionSlider.prg + harbour/contrib/hbqt/TQStyleOptionSpinBox.prg + harbour/contrib/hbqt/TQStyleOptionTab.prg + harbour/contrib/hbqt/TQStyleOptionTabBarBase.prg + harbour/contrib/hbqt/TQStyleOptionTabWidgetFrame.prg + harbour/contrib/hbqt/TQStyleOptionTitleBar.prg + harbour/contrib/hbqt/TQStyleOptionToolBar.prg + harbour/contrib/hbqt/TQStyleOptionToolBox.prg + harbour/contrib/hbqt/TQStyleOptionToolButton.prg + harbour/contrib/hbqt/TQStyleOptionViewItem.prg + harbour/contrib/hbqt/TQStylePainter.prg + harbour/contrib/hbqt/qth/QStyleOptionSlider.qth + harbour/contrib/hbqt/qth/QStyleOptionSpinBox.qth + harbour/contrib/hbqt/qth/QStyleOptionTab.qth + harbour/contrib/hbqt/qth/QStyleOptionTabBarBase.qth + harbour/contrib/hbqt/qth/QStyleOptionTabWidgetFrame.qth + harbour/contrib/hbqt/qth/QStyleOptionTitleBar.qth + harbour/contrib/hbqt/qth/QStyleOptionToolBar.qth + harbour/contrib/hbqt/qth/QStyleOptionToolBox.qth + harbour/contrib/hbqt/qth/QStyleOptionToolButton.qth + harbour/contrib/hbqt/qth/QStyleOptionViewItem.qth + harbour/contrib/hbqt/qth/QStylePainter.qth * harbour/contrib/hbqt/generator/qt45.qtp + Added more classes - count == 179 --- harbour/ChangeLog | 47 +++++ harbour/contrib/hbqt/Makefile_gen | 18 ++ harbour/contrib/hbqt/TQStyleOptionSlider.prg | 92 +++++++++ harbour/contrib/hbqt/TQStyleOptionSpinBox.prg | 83 +++++++++ harbour/contrib/hbqt/TQStyleOptionTab.prg | 87 +++++++++ .../contrib/hbqt/TQStyleOptionTabBarBase.prg | 83 +++++++++ .../hbqt/TQStyleOptionTabWidgetFrame.prg | 86 +++++++++ .../contrib/hbqt/TQStyleOptionTitleBar.prg | 84 +++++++++ harbour/contrib/hbqt/TQStyleOptionToolBar.prg | 86 +++++++++ harbour/contrib/hbqt/TQStyleOptionToolBox.prg | 82 ++++++++ .../contrib/hbqt/TQStyleOptionToolButton.prg | 88 +++++++++ .../contrib/hbqt/TQStyleOptionViewItem.prg | 87 +++++++++ harbour/contrib/hbqt/TQStylePainter.prg | 88 +++++++++ harbour/contrib/hbqt/generator/hbqtgen.prg | 11 ++ harbour/contrib/hbqt/generator/qt45.qtp | 13 ++ harbour/contrib/hbqt/hbqt.h | 11 ++ .../contrib/hbqt/hbqt_qstyleoptionslider.cpp | 175 ++++++++++++++++++ .../contrib/hbqt/hbqt_qstyleoptionspinbox.cpp | 103 +++++++++++ harbour/contrib/hbqt/hbqt_qstyleoptiontab.cpp | 135 ++++++++++++++ .../hbqt/hbqt_qstyleoptiontabbarbase.cpp | 103 +++++++++++ .../hbqt/hbqt_qstyleoptiontabwidgetframe.cpp | 127 +++++++++++++ .../hbqt/hbqt_qstyleoptiontitlebar.cpp | 111 +++++++++++ .../contrib/hbqt/hbqt_qstyleoptiontoolbar.cpp | 127 +++++++++++++ .../contrib/hbqt/hbqt_qstyleoptiontoolbox.cpp | 95 ++++++++++ .../hbqt/hbqt_qstyleoptiontoolbutton.cpp | 143 ++++++++++++++ .../hbqt/hbqt_qstyleoptionviewitem.cpp | 135 ++++++++++++++ harbour/contrib/hbqt/hbqt_qstylepainter.cpp | 144 ++++++++++++++ .../contrib/hbqt/qth/QStyleOptionSlider.qth | 107 +++++++++++ .../contrib/hbqt/qth/QStyleOptionSpinBox.qth | 98 ++++++++++ harbour/contrib/hbqt/qth/QStyleOptionTab.qth | 106 +++++++++++ .../hbqt/qth/QStyleOptionTabBarBase.qth | 98 ++++++++++ .../hbqt/qth/QStyleOptionTabWidgetFrame.qth | 101 ++++++++++ .../contrib/hbqt/qth/QStyleOptionTitleBar.qth | 99 ++++++++++ .../contrib/hbqt/qth/QStyleOptionToolBar.qth | 104 +++++++++++ .../contrib/hbqt/qth/QStyleOptionToolBox.qth | 97 ++++++++++ .../hbqt/qth/QStyleOptionToolButton.qth | 105 +++++++++++ .../contrib/hbqt/qth/QStyleOptionViewItem.qth | 103 +++++++++++ harbour/contrib/hbqt/qth/QStylePainter.qth | 102 ++++++++++ 38 files changed, 3564 insertions(+) create mode 100644 harbour/contrib/hbqt/TQStyleOptionSlider.prg create mode 100644 harbour/contrib/hbqt/TQStyleOptionSpinBox.prg create mode 100644 harbour/contrib/hbqt/TQStyleOptionTab.prg create mode 100644 harbour/contrib/hbqt/TQStyleOptionTabBarBase.prg create mode 100644 harbour/contrib/hbqt/TQStyleOptionTabWidgetFrame.prg create mode 100644 harbour/contrib/hbqt/TQStyleOptionTitleBar.prg create mode 100644 harbour/contrib/hbqt/TQStyleOptionToolBar.prg create mode 100644 harbour/contrib/hbqt/TQStyleOptionToolBox.prg create mode 100644 harbour/contrib/hbqt/TQStyleOptionToolButton.prg create mode 100644 harbour/contrib/hbqt/TQStyleOptionViewItem.prg create mode 100644 harbour/contrib/hbqt/TQStylePainter.prg create mode 100644 harbour/contrib/hbqt/hbqt_qstyleoptionslider.cpp create mode 100644 harbour/contrib/hbqt/hbqt_qstyleoptionspinbox.cpp create mode 100644 harbour/contrib/hbqt/hbqt_qstyleoptiontab.cpp create mode 100644 harbour/contrib/hbqt/hbqt_qstyleoptiontabbarbase.cpp create mode 100644 harbour/contrib/hbqt/hbqt_qstyleoptiontabwidgetframe.cpp create mode 100644 harbour/contrib/hbqt/hbqt_qstyleoptiontitlebar.cpp create mode 100644 harbour/contrib/hbqt/hbqt_qstyleoptiontoolbar.cpp create mode 100644 harbour/contrib/hbqt/hbqt_qstyleoptiontoolbox.cpp create mode 100644 harbour/contrib/hbqt/hbqt_qstyleoptiontoolbutton.cpp create mode 100644 harbour/contrib/hbqt/hbqt_qstyleoptionviewitem.cpp create mode 100644 harbour/contrib/hbqt/hbqt_qstylepainter.cpp create mode 100644 harbour/contrib/hbqt/qth/QStyleOptionSlider.qth create mode 100644 harbour/contrib/hbqt/qth/QStyleOptionSpinBox.qth create mode 100644 harbour/contrib/hbqt/qth/QStyleOptionTab.qth create mode 100644 harbour/contrib/hbqt/qth/QStyleOptionTabBarBase.qth create mode 100644 harbour/contrib/hbqt/qth/QStyleOptionTabWidgetFrame.qth create mode 100644 harbour/contrib/hbqt/qth/QStyleOptionTitleBar.qth create mode 100644 harbour/contrib/hbqt/qth/QStyleOptionToolBar.qth create mode 100644 harbour/contrib/hbqt/qth/QStyleOptionToolBox.qth create mode 100644 harbour/contrib/hbqt/qth/QStyleOptionToolButton.qth create mode 100644 harbour/contrib/hbqt/qth/QStyleOptionViewItem.qth create mode 100644 harbour/contrib/hbqt/qth/QStylePainter.qth diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 3097f3957e..79f7ecd07e 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,53 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-06-06 10:33 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) + * harbour/contrib/hbqt/Makefile_gen + + + harbour/contrib/hbqt/hbqt_qstyleoptionslider.cpp + + harbour/contrib/hbqt/hbqt_qstyleoptionspinbox.cpp + + harbour/contrib/hbqt/hbqt_qstyleoptiontab.cpp + + harbour/contrib/hbqt/hbqt_qstyleoptiontabbarbase.cpp + + harbour/contrib/hbqt/hbqt_qstyleoptiontabwidgetframe.cpp + + harbour/contrib/hbqt/hbqt_qstyleoptiontitlebar.cpp + + harbour/contrib/hbqt/hbqt_qstyleoptiontoolbar.cpp + + harbour/contrib/hbqt/hbqt_qstyleoptiontoolbox.cpp + + harbour/contrib/hbqt/hbqt_qstyleoptiontoolbutton.cpp + + harbour/contrib/hbqt/hbqt_qstyleoptionviewitem.cpp + + harbour/contrib/hbqt/hbqt_qstylepainter.cpp + + * harbour/contrib/hbqt/hbqt.h + + * harbour/contrib/hbqt/generator/hbqtgen.prg + + + harbour/contrib/hbqt/TQStyleOptionSlider.prg + + harbour/contrib/hbqt/TQStyleOptionSpinBox.prg + + harbour/contrib/hbqt/TQStyleOptionTab.prg + + harbour/contrib/hbqt/TQStyleOptionTabBarBase.prg + + harbour/contrib/hbqt/TQStyleOptionTabWidgetFrame.prg + + harbour/contrib/hbqt/TQStyleOptionTitleBar.prg + + harbour/contrib/hbqt/TQStyleOptionToolBar.prg + + harbour/contrib/hbqt/TQStyleOptionToolBox.prg + + harbour/contrib/hbqt/TQStyleOptionToolButton.prg + + harbour/contrib/hbqt/TQStyleOptionViewItem.prg + + harbour/contrib/hbqt/TQStylePainter.prg + + + harbour/contrib/hbqt/qth/QStyleOptionSlider.qth + + harbour/contrib/hbqt/qth/QStyleOptionSpinBox.qth + + harbour/contrib/hbqt/qth/QStyleOptionTab.qth + + harbour/contrib/hbqt/qth/QStyleOptionTabBarBase.qth + + harbour/contrib/hbqt/qth/QStyleOptionTabWidgetFrame.qth + + harbour/contrib/hbqt/qth/QStyleOptionTitleBar.qth + + harbour/contrib/hbqt/qth/QStyleOptionToolBar.qth + + harbour/contrib/hbqt/qth/QStyleOptionToolBox.qth + + harbour/contrib/hbqt/qth/QStyleOptionToolButton.qth + + harbour/contrib/hbqt/qth/QStyleOptionViewItem.qth + + harbour/contrib/hbqt/qth/QStylePainter.qth + + * harbour/contrib/hbqt/generator/qt45.qtp + + + Added more classes - count == 179 + 2009-06-06 16:07 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * INSTALL * Made clear that GNU Make installation isn't needed for mingw diff --git a/harbour/contrib/hbqt/Makefile_gen b/harbour/contrib/hbqt/Makefile_gen index a837319890..9e62f92293 100644 --- a/harbour/contrib/hbqt/Makefile_gen +++ b/harbour/contrib/hbqt/Makefile_gen @@ -125,6 +125,15 @@ CPP_SOURCES=\ hbqt_qstyleoptionmenuitem.cpp \ hbqt_qstyleoptionprogressbar.cpp \ hbqt_qstyleoptionsizegrip.cpp \ + hbqt_qstyleoptionslider.cpp \ + hbqt_qstyleoptionspinbox.cpp \ + hbqt_qstyleoptiontab.cpp \ + hbqt_qstyleoptiontabbarbase.cpp \ + hbqt_qstyleoptiontitlebar.cpp \ + hbqt_qstyleoptiontoolbar.cpp \ + hbqt_qstyleoptiontoolbox.cpp \ + hbqt_qstyleoptiontoolbutton.cpp \ + hbqt_qstyleoptionviewitem.cpp \ hbqt_qtabbar.cpp \ hbqt_qtableview.cpp \ hbqt_qtablewidget.cpp \ @@ -306,6 +315,15 @@ PRG_SOURCES=\ TQStyleOptionMenuItem.prg \ TQStyleOptionProgressBar.prg \ TQStyleOptionSizeGrip.prg \ + TQStyleOptionSlider.prg \ + TQStyleOptionSpinBox.prg \ + TQStyleOptionTab.prg \ + TQStyleOptionTabBarBase.prg \ + TQStyleOptionTitleBar.prg \ + TQStyleOptionToolBar.prg \ + TQStyleOptionToolBox.prg \ + TQStyleOptionToolButton.prg \ + TQStyleOptionViewItem.prg \ TQTabBar.prg \ TQTableView.prg \ TQTableWidget.prg \ diff --git a/harbour/contrib/hbqt/TQStyleOptionSlider.prg b/harbour/contrib/hbqt/TQStyleOptionSlider.prg new file mode 100644 index 0000000000..6d02b140ab --- /dev/null +++ b/harbour/contrib/hbqt/TQStyleOptionSlider.prg @@ -0,0 +1,92 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009 Marcos Antonio Gambeta + * Copyright 2009 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. + * + */ +/*----------------------------------------------------------------------*/ + + +#include "hbclass.ch" + + +CREATE CLASS QStyleOptionSlider INHERIT QStyleOptionComplex + + VAR pParent + VAR pPtr + + METHOD New() + + METHOD dialWrapping() INLINE Qt_QStyleOptionSlider_dialWrapping( ::pPtr ) + METHOD maximum() INLINE Qt_QStyleOptionSlider_maximum( ::pPtr ) + METHOD minimum() INLINE Qt_QStyleOptionSlider_minimum( ::pPtr ) + METHOD notchTarget() INLINE Qt_QStyleOptionSlider_notchTarget( ::pPtr ) + METHOD orientation() INLINE Qt_QStyleOptionSlider_orientation( ::pPtr ) + METHOD pageStep() INLINE Qt_QStyleOptionSlider_pageStep( ::pPtr ) + METHOD singleStep() INLINE Qt_QStyleOptionSlider_singleStep( ::pPtr ) + METHOD sliderPosition() INLINE Qt_QStyleOptionSlider_sliderPosition( ::pPtr ) + METHOD sliderValue() INLINE Qt_QStyleOptionSlider_sliderValue( ::pPtr ) + METHOD tickInterval() INLINE Qt_QStyleOptionSlider_tickInterval( ::pPtr ) + METHOD tickPosition() INLINE Qt_QStyleOptionSlider_tickPosition( ::pPtr ) + METHOD upsideDown() INLINE Qt_QStyleOptionSlider_upsideDown( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QStyleOptionSlider + + ::pParent := pParent + + ::pPtr := Qt_QStyleOptionSlider( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQStyleOptionSpinBox.prg b/harbour/contrib/hbqt/TQStyleOptionSpinBox.prg new file mode 100644 index 0000000000..86c40ea78f --- /dev/null +++ b/harbour/contrib/hbqt/TQStyleOptionSpinBox.prg @@ -0,0 +1,83 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009 Marcos Antonio Gambeta + * Copyright 2009 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. + * + */ +/*----------------------------------------------------------------------*/ + + +#include "hbclass.ch" + + +CREATE CLASS QStyleOptionSpinBox INHERIT QStyleOptionComplex + + VAR pParent + VAR pPtr + + METHOD New() + + METHOD buttonSymbols() INLINE Qt_QStyleOptionSpinBox_buttonSymbols( ::pPtr ) + METHOD frame() INLINE Qt_QStyleOptionSpinBox_frame( ::pPtr ) + METHOD stepEnabled() INLINE Qt_QStyleOptionSpinBox_stepEnabled( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QStyleOptionSpinBox + + ::pParent := pParent + + ::pPtr := Qt_QStyleOptionSpinBox( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQStyleOptionTab.prg b/harbour/contrib/hbqt/TQStyleOptionTab.prg new file mode 100644 index 0000000000..a71104625f --- /dev/null +++ b/harbour/contrib/hbqt/TQStyleOptionTab.prg @@ -0,0 +1,87 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009 Marcos Antonio Gambeta + * Copyright 2009 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. + * + */ +/*----------------------------------------------------------------------*/ + + +#include "hbclass.ch" + + +CREATE CLASS QStyleOptionTab INHERIT QStyleOption + + VAR pParent + VAR pPtr + + METHOD New() + + METHOD cornerWidgets() INLINE Qt_QStyleOptionTab_cornerWidgets( ::pPtr ) + METHOD icon() INLINE Qt_QStyleOptionTab_icon( ::pPtr ) + METHOD position() INLINE Qt_QStyleOptionTab_position( ::pPtr ) + METHOD row() INLINE Qt_QStyleOptionTab_row( ::pPtr ) + METHOD selectedPosition() INLINE Qt_QStyleOptionTab_selectedPosition( ::pPtr ) + METHOD shape() INLINE Qt_QStyleOptionTab_shape( ::pPtr ) + METHOD text() INLINE Qt_QStyleOptionTab_text( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QStyleOptionTab + + ::pParent := pParent + + ::pPtr := Qt_QStyleOptionTab( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQStyleOptionTabBarBase.prg b/harbour/contrib/hbqt/TQStyleOptionTabBarBase.prg new file mode 100644 index 0000000000..2656fff8af --- /dev/null +++ b/harbour/contrib/hbqt/TQStyleOptionTabBarBase.prg @@ -0,0 +1,83 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009 Marcos Antonio Gambeta + * Copyright 2009 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. + * + */ +/*----------------------------------------------------------------------*/ + + +#include "hbclass.ch" + + +CREATE CLASS QStyleOptionTabBarBase INHERIT QStyleOption + + VAR pParent + VAR pPtr + + METHOD New() + + METHOD selectedTabRect() INLINE Qt_QStyleOptionTabBarBase_selectedTabRect( ::pPtr ) + METHOD shape() INLINE Qt_QStyleOptionTabBarBase_shape( ::pPtr ) + METHOD tabBarRect() INLINE Qt_QStyleOptionTabBarBase_tabBarRect( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QStyleOptionTabBarBase + + ::pParent := pParent + + ::pPtr := Qt_QStyleOptionTabBarBase( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQStyleOptionTabWidgetFrame.prg b/harbour/contrib/hbqt/TQStyleOptionTabWidgetFrame.prg new file mode 100644 index 0000000000..738d9159cb --- /dev/null +++ b/harbour/contrib/hbqt/TQStyleOptionTabWidgetFrame.prg @@ -0,0 +1,86 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009 Marcos Antonio Gambeta + * Copyright 2009 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. + * + */ +/*----------------------------------------------------------------------*/ + + +#include "hbclass.ch" + + +CREATE CLASS QStyleOptionTabWidgetFrame INHERIT QStyleOption + + VAR pParent + VAR pPtr + + METHOD New() + + METHOD leftCornerWidgetSize() INLINE Qt_QStyleOptionTabWidgetFrame_leftCornerWidgetSize( ::pPtr ) + METHOD lineWidth() INLINE Qt_QStyleOptionTabWidgetFrame_lineWidth( ::pPtr ) + METHOD midLineWidth() INLINE Qt_QStyleOptionTabWidgetFrame_midLineWidth( ::pPtr ) + METHOD rightCornerWidgetSize() INLINE Qt_QStyleOptionTabWidgetFrame_rightCornerWidgetSize( ::pPtr ) + METHOD shape() INLINE Qt_QStyleOptionTabWidgetFrame_shape( ::pPtr ) + METHOD tabBarSize() INLINE Qt_QStyleOptionTabWidgetFrame_tabBarSize( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QStyleOptionTabWidgetFrame + + ::pParent := pParent + + ::pPtr := Qt_QStyleOptionTabWidgetFrame( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQStyleOptionTitleBar.prg b/harbour/contrib/hbqt/TQStyleOptionTitleBar.prg new file mode 100644 index 0000000000..a4672f30ea --- /dev/null +++ b/harbour/contrib/hbqt/TQStyleOptionTitleBar.prg @@ -0,0 +1,84 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009 Marcos Antonio Gambeta + * Copyright 2009 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. + * + */ +/*----------------------------------------------------------------------*/ + + +#include "hbclass.ch" + + +CREATE CLASS QStyleOptionTitleBar INHERIT QStyleOptionComplex + + VAR pParent + VAR pPtr + + METHOD New() + + METHOD icon() INLINE Qt_QStyleOptionTitleBar_icon( ::pPtr ) + METHOD text() INLINE Qt_QStyleOptionTitleBar_text( ::pPtr ) + METHOD titleBarFlags() INLINE Qt_QStyleOptionTitleBar_titleBarFlags( ::pPtr ) + METHOD titleBarState() INLINE Qt_QStyleOptionTitleBar_titleBarState( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QStyleOptionTitleBar + + ::pParent := pParent + + ::pPtr := Qt_QStyleOptionTitleBar( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQStyleOptionToolBar.prg b/harbour/contrib/hbqt/TQStyleOptionToolBar.prg new file mode 100644 index 0000000000..2fa88ffab2 --- /dev/null +++ b/harbour/contrib/hbqt/TQStyleOptionToolBar.prg @@ -0,0 +1,86 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009 Marcos Antonio Gambeta + * Copyright 2009 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. + * + */ +/*----------------------------------------------------------------------*/ + + +#include "hbclass.ch" + + +CREATE CLASS QStyleOptionToolBar INHERIT QStyleOption + + VAR pParent + VAR pPtr + + METHOD New() + + METHOD features() INLINE Qt_QStyleOptionToolBar_features( ::pPtr ) + METHOD lineWidth() INLINE Qt_QStyleOptionToolBar_lineWidth( ::pPtr ) + METHOD midLineWidth() INLINE Qt_QStyleOptionToolBar_midLineWidth( ::pPtr ) + METHOD positionOfLine() INLINE Qt_QStyleOptionToolBar_positionOfLine( ::pPtr ) + METHOD positionWithinLine() INLINE Qt_QStyleOptionToolBar_positionWithinLine( ::pPtr ) + METHOD toolBarArea() INLINE Qt_QStyleOptionToolBar_toolBarArea( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QStyleOptionToolBar + + ::pParent := pParent + + ::pPtr := Qt_QStyleOptionToolBar( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQStyleOptionToolBox.prg b/harbour/contrib/hbqt/TQStyleOptionToolBox.prg new file mode 100644 index 0000000000..614d412b9f --- /dev/null +++ b/harbour/contrib/hbqt/TQStyleOptionToolBox.prg @@ -0,0 +1,82 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009 Marcos Antonio Gambeta + * Copyright 2009 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. + * + */ +/*----------------------------------------------------------------------*/ + + +#include "hbclass.ch" + + +CREATE CLASS QStyleOptionToolBox INHERIT QStyleOption + + VAR pParent + VAR pPtr + + METHOD New() + + METHOD icon() INLINE Qt_QStyleOptionToolBox_icon( ::pPtr ) + METHOD text() INLINE Qt_QStyleOptionToolBox_text( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QStyleOptionToolBox + + ::pParent := pParent + + ::pPtr := Qt_QStyleOptionToolBox( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQStyleOptionToolButton.prg b/harbour/contrib/hbqt/TQStyleOptionToolButton.prg new file mode 100644 index 0000000000..4a4aad1609 --- /dev/null +++ b/harbour/contrib/hbqt/TQStyleOptionToolButton.prg @@ -0,0 +1,88 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009 Marcos Antonio Gambeta + * Copyright 2009 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. + * + */ +/*----------------------------------------------------------------------*/ + + +#include "hbclass.ch" + + +CREATE CLASS QStyleOptionToolButton INHERIT QStyleOptionComplex + + VAR pParent + VAR pPtr + + METHOD New() + + METHOD arrowType() INLINE Qt_QStyleOptionToolButton_arrowType( ::pPtr ) + METHOD features() INLINE Qt_QStyleOptionToolButton_features( ::pPtr ) + METHOD font() INLINE Qt_QStyleOptionToolButton_font( ::pPtr ) + METHOD icon() INLINE Qt_QStyleOptionToolButton_icon( ::pPtr ) + METHOD iconSize() INLINE Qt_QStyleOptionToolButton_iconSize( ::pPtr ) + METHOD pos() INLINE Qt_QStyleOptionToolButton_pos( ::pPtr ) + METHOD text() INLINE Qt_QStyleOptionToolButton_text( ::pPtr ) + METHOD toolButtonStyle() INLINE Qt_QStyleOptionToolButton_toolButtonStyle( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QStyleOptionToolButton + + ::pParent := pParent + + ::pPtr := Qt_QStyleOptionToolButton( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQStyleOptionViewItem.prg b/harbour/contrib/hbqt/TQStyleOptionViewItem.prg new file mode 100644 index 0000000000..58522333d9 --- /dev/null +++ b/harbour/contrib/hbqt/TQStyleOptionViewItem.prg @@ -0,0 +1,87 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009 Marcos Antonio Gambeta + * Copyright 2009 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. + * + */ +/*----------------------------------------------------------------------*/ + + +#include "hbclass.ch" + + +CREATE CLASS QStyleOptionViewItem INHERIT QStyleOption + + VAR pParent + VAR pPtr + + METHOD New() + + METHOD decorationAlignment() INLINE Qt_QStyleOptionViewItem_decorationAlignment( ::pPtr ) + METHOD decorationPosition() INLINE Qt_QStyleOptionViewItem_decorationPosition( ::pPtr ) + METHOD decorationSize() INLINE Qt_QStyleOptionViewItem_decorationSize( ::pPtr ) + METHOD displayAlignment() INLINE Qt_QStyleOptionViewItem_displayAlignment( ::pPtr ) + METHOD font() INLINE Qt_QStyleOptionViewItem_font( ::pPtr ) + METHOD showDecorationSelected() INLINE Qt_QStyleOptionViewItem_showDecorationSelected( ::pPtr ) + METHOD textElideMode() INLINE Qt_QStyleOptionViewItem_textElideMode( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QStyleOptionViewItem + + ::pParent := pParent + + ::pPtr := Qt_QStyleOptionViewItem( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQStylePainter.prg b/harbour/contrib/hbqt/TQStylePainter.prg new file mode 100644 index 0000000000..780a9d023e --- /dev/null +++ b/harbour/contrib/hbqt/TQStylePainter.prg @@ -0,0 +1,88 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009 Marcos Antonio Gambeta + * Copyright 2009 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. + * + */ +/*----------------------------------------------------------------------*/ + + +#include "hbclass.ch" + + +CREATE CLASS QStylePainter INHERIT QPainter + + VAR pParent + VAR pPtr + + METHOD New() + + METHOD begin( pWidget ) INLINE Qt_QStylePainter_begin( ::pPtr, pWidget ) + METHOD begin_1( pPd, pWidget ) INLINE Qt_QStylePainter_begin_1( ::pPtr, pPd, pWidget ) + METHOD drawComplexControl( nCc, pOption ) INLINE Qt_QStylePainter_drawComplexControl( ::pPtr, nCc, pOption ) + METHOD drawControl( nCe, pOption ) INLINE Qt_QStylePainter_drawControl( ::pPtr, nCe, pOption ) + METHOD drawItemPixmap( pRect, nFlags, pPixmap ) INLINE Qt_QStylePainter_drawItemPixmap( ::pPtr, pRect, nFlags, pPixmap ) + METHOD drawItemText( pRect, nFlags, pPal, lEnabled, cText, nTextRole ) INLINE Qt_QStylePainter_drawItemText( ::pPtr, pRect, nFlags, pPal, lEnabled, cText, nTextRole ) + METHOD drawPrimitive( nPe, pOption ) INLINE Qt_QStylePainter_drawPrimitive( ::pPtr, nPe, pOption ) + METHOD style() INLINE Qt_QStylePainter_style( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QStylePainter + + ::pParent := pParent + + ::pPtr := Qt_QStylePainter( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/generator/hbqtgen.prg b/harbour/contrib/hbqt/generator/hbqtgen.prg index 3607606e69..6ddd95e594 100644 --- a/harbour/contrib/hbqt/generator/hbqtgen.prg +++ b/harbour/contrib/hbqt/generator/hbqtgen.prg @@ -1660,6 +1660,17 @@ STATIC FUNCTION Build_HBQT_H( cPathOut ) aadd( txt_, "#define hbqt_par_QStyleOptionMenuItem( n ) ( ( QStyleOptionMenuItem* ) hb_parptr( n ) ) " ) aadd( txt_, "#define hbqt_par_QStyleOptionProgressBar( n )( ( QStyleOptionProgressBar* ) hb_parptr( n ) ) " ) aadd( txt_, "#define hbqt_par_QStyleOptionSizeGrip( n ) ( ( QStyleOptionSizeGrip* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QStyleOptionSlider( n ) ( ( QStyleOptionSlider* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QStyleOptionSpinBox( n ) ( ( QStyleOptionSpinBox* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QStyleOptionTab( n ) ( ( QStyleOptionTab* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QStyleOptionTabBarBase( n ) ( ( QStyleOptionTabBarBase* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QStyleOptionTabWidgetFrame( n ) ( ( QStyleOptionTabWidgetFrame* ) hb_parptr( n ) )" ) + aadd( txt_, "#define hbqt_par_QStyleOptionTitleBar( n ) ( ( QStyleOptionTitleBar* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QStyleOptionToolBar( n ) ( ( QStyleOptionToolBar* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QStyleOptionToolBox( n ) ( ( QStyleOptionToolBox* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QStyleOptionToolButton( n ) ( ( QStyleOptionToolButton* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QStyleOptionViewItem( n ) ( ( QStyleOptionViewItem* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QStylePainter( n ) ( ( QStylePainter* ) hb_parptr( n ) ) " ) aadd( txt_, " " ) aadd( txt_, "#define hbqt_par_QString( n ) ( ( QString ) hb_parc( n ) ) " ) aadd( txt_, "#define hbqt_par_QRgb( n ) ( hb_parnint( n ) ) " ) diff --git a/harbour/contrib/hbqt/generator/qt45.qtp b/harbour/contrib/hbqt/generator/qt45.qtp index 86c7fc772d..f8b399f373 100644 --- a/harbour/contrib/hbqt/generator/qt45.qtp +++ b/harbour/contrib/hbqt/generator/qt45.qtp @@ -115,8 +115,10 @@ QSplitter.qth QStandardItem.qth QStandardItemModel.qth QStatusBar.qth + QStyle.qth QStyledItemDelegate.qth + QStyleHintReturn.qth QStyleHintReturnMask.qth QStyleHintReturnVariant.qth @@ -133,6 +135,17 @@ QStyleOptionHeader.qth QStyleOptionMenuItem.qth QStyleOptionProgressBar.qth QStyleOptionSizeGrip.qth +QStyleOptionSlider.qth +QStyleOptionSpinBox.qth +QStyleOptionTab.qth +QStyleOptionTabBarBase.qth +QStyleOptionWidgetFrame.qth +QStyleOptionTitleBar.qth +QStyleOptionToolBar.qth +QStyleOptionToolBox.qth +QStyleOptionToolButton.qth +QStyleOptionViewItem.qth +QStyleOptionPainter.qth QTabBar.qth QTableView.qth diff --git a/harbour/contrib/hbqt/hbqt.h b/harbour/contrib/hbqt/hbqt.h index a3454779c5..3427a36101 100644 --- a/harbour/contrib/hbqt/hbqt.h +++ b/harbour/contrib/hbqt/hbqt.h @@ -293,6 +293,17 @@ #define hbqt_par_QStyleOptionMenuItem( n ) ( ( QStyleOptionMenuItem* ) hb_parptr( n ) ) #define hbqt_par_QStyleOptionProgressBar( n )( ( QStyleOptionProgressBar* ) hb_parptr( n ) ) #define hbqt_par_QStyleOptionSizeGrip( n ) ( ( QStyleOptionSizeGrip* ) hb_parptr( n ) ) +#define hbqt_par_QStyleOptionSlider( n ) ( ( QStyleOptionSlider* ) hb_parptr( n ) ) +#define hbqt_par_QStyleOptionSpinBox( n ) ( ( QStyleOptionSpinBox* ) hb_parptr( n ) ) +#define hbqt_par_QStyleOptionTab( n ) ( ( QStyleOptionTab* ) hb_parptr( n ) ) +#define hbqt_par_QStyleOptionTabBarBase( n ) ( ( QStyleOptionTabBarBase* ) hb_parptr( n ) ) +#define hbqt_par_QStyleOptionTabWidgetFrame( n ) ( ( QStyleOptionTabWidgetFrame* ) hb_parptr( n ) ) +#define hbqt_par_QStyleOptionTitleBar( n ) ( ( QStyleOptionTitleBar* ) hb_parptr( n ) ) +#define hbqt_par_QStyleOptionToolBar( n ) ( ( QStyleOptionToolBar* ) hb_parptr( n ) ) +#define hbqt_par_QStyleOptionToolBox( n ) ( ( QStyleOptionToolBox* ) hb_parptr( n ) ) +#define hbqt_par_QStyleOptionToolButton( n ) ( ( QStyleOptionToolButton* ) hb_parptr( n ) ) +#define hbqt_par_QStyleOptionViewItem( n ) ( ( QStyleOptionViewItem* ) hb_parptr( n ) ) +#define hbqt_par_QStylePainter( n ) ( ( QStylePainter* ) hb_parptr( n ) ) #define hbqt_par_QString( n ) ( ( QString ) hb_parc( n ) ) #define hbqt_par_QRgb( n ) ( hb_parnint( n ) ) diff --git a/harbour/contrib/hbqt/hbqt_qstyleoptionslider.cpp b/harbour/contrib/hbqt/hbqt_qstyleoptionslider.cpp new file mode 100644 index 0000000000..f03f05e913 --- /dev/null +++ b/harbour/contrib/hbqt/hbqt_qstyleoptionslider.cpp @@ -0,0 +1,175 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009 Marcos Antonio Gambeta + * Copyright 2009 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. + * + */ +/*----------------------------------------------------------------------*/ + +#include "hbapi.h" +#include "hbqt.h" + +/*----------------------------------------------------------------------*/ +#if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +#include + + +/* + * QStyleOptionSlider () + * QStyleOptionSlider ( const QStyleOptionSlider & other ) + */ +HB_FUNC( QT_QSTYLEOPTIONSLIDER ) +{ + hb_retptr( ( QStyleOptionSlider* ) new QStyleOptionSlider() ); +} + +/* + * bool dialWrapping + */ +HB_FUNC( QT_QSTYLEOPTIONSLIDER_DIALWRAPPING ) +{ + hb_retl( hbqt_par_QStyleOptionSlider( 1 )->dialWrapping ); +} + +/* + * int maximum + */ +HB_FUNC( QT_QSTYLEOPTIONSLIDER_MAXIMUM ) +{ + hb_retni( hbqt_par_QStyleOptionSlider( 1 )->maximum ); +} + +/* + * int minimum + */ +HB_FUNC( QT_QSTYLEOPTIONSLIDER_MINIMUM ) +{ + hb_retni( hbqt_par_QStyleOptionSlider( 1 )->minimum ); +} + +/* + * qreal notchTarget + */ +HB_FUNC( QT_QSTYLEOPTIONSLIDER_NOTCHTARGET ) +{ + hb_retnd( hbqt_par_QStyleOptionSlider( 1 )->notchTarget ); +} + +/* + * Qt::Orientation orientation + */ +HB_FUNC( QT_QSTYLEOPTIONSLIDER_ORIENTATION ) +{ + hb_retni( ( Qt::Orientation ) hbqt_par_QStyleOptionSlider( 1 )->orientation ); +} + +/* + * int pageStep + */ +HB_FUNC( QT_QSTYLEOPTIONSLIDER_PAGESTEP ) +{ + hb_retni( hbqt_par_QStyleOptionSlider( 1 )->pageStep ); +} + +/* + * int singleStep + */ +HB_FUNC( QT_QSTYLEOPTIONSLIDER_SINGLESTEP ) +{ + hb_retni( hbqt_par_QStyleOptionSlider( 1 )->singleStep ); +} + +/* + * int sliderPosition + */ +HB_FUNC( QT_QSTYLEOPTIONSLIDER_SLIDERPOSITION ) +{ + hb_retni( hbqt_par_QStyleOptionSlider( 1 )->sliderPosition ); +} + +/* + * int sliderValue + */ +HB_FUNC( QT_QSTYLEOPTIONSLIDER_SLIDERVALUE ) +{ + hb_retni( hbqt_par_QStyleOptionSlider( 1 )->sliderValue ); +} + +/* + * int tickInterval + */ +HB_FUNC( QT_QSTYLEOPTIONSLIDER_TICKINTERVAL ) +{ + hb_retni( hbqt_par_QStyleOptionSlider( 1 )->tickInterval ); +} + +/* + * QSlider::TickPosition tickPosition + */ +HB_FUNC( QT_QSTYLEOPTIONSLIDER_TICKPOSITION ) +{ + hb_retni( ( QSlider::TickPosition ) hbqt_par_QStyleOptionSlider( 1 )->tickPosition ); +} + +/* + * bool upsideDown + */ +HB_FUNC( QT_QSTYLEOPTIONSLIDER_UPSIDEDOWN ) +{ + hb_retl( hbqt_par_QStyleOptionSlider( 1 )->upsideDown ); +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qstyleoptionspinbox.cpp b/harbour/contrib/hbqt/hbqt_qstyleoptionspinbox.cpp new file mode 100644 index 0000000000..9cd933a5f7 --- /dev/null +++ b/harbour/contrib/hbqt/hbqt_qstyleoptionspinbox.cpp @@ -0,0 +1,103 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009 Marcos Antonio Gambeta + * Copyright 2009 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. + * + */ +/*----------------------------------------------------------------------*/ + +#include "hbapi.h" +#include "hbqt.h" + +/*----------------------------------------------------------------------*/ +#if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +#include + + +/* + * QStyleOptionSpinBox () + * QStyleOptionSpinBox ( const QStyleOptionSpinBox & other ) + */ +HB_FUNC( QT_QSTYLEOPTIONSPINBOX ) +{ + hb_retptr( ( QStyleOptionSpinBox* ) new QStyleOptionSpinBox() ); +} + +/* + * QAbstractSpinBox::ButtonSymbols buttonSymbols + */ +HB_FUNC( QT_QSTYLEOPTIONSPINBOX_BUTTONSYMBOLS ) +{ + hb_retni( ( QAbstractSpinBox::ButtonSymbols ) hbqt_par_QStyleOptionSpinBox( 1 )->buttonSymbols ); +} + +/* + * bool frame + */ +HB_FUNC( QT_QSTYLEOPTIONSPINBOX_FRAME ) +{ + hb_retl( hbqt_par_QStyleOptionSpinBox( 1 )->frame ); +} + +/* + * QAbstractSpinBox::StepEnabled stepEnabled + */ +HB_FUNC( QT_QSTYLEOPTIONSPINBOX_STEPENABLED ) +{ + hb_retni( ( QAbstractSpinBox::StepEnabled ) hbqt_par_QStyleOptionSpinBox( 1 )->stepEnabled ); +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qstyleoptiontab.cpp b/harbour/contrib/hbqt/hbqt_qstyleoptiontab.cpp new file mode 100644 index 0000000000..9bd8e03c4d --- /dev/null +++ b/harbour/contrib/hbqt/hbqt_qstyleoptiontab.cpp @@ -0,0 +1,135 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009 Marcos Antonio Gambeta + * Copyright 2009 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. + * + */ +/*----------------------------------------------------------------------*/ + +#include "hbapi.h" +#include "hbqt.h" + +/*----------------------------------------------------------------------*/ +#if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +#include + + +/* + * QStyleOptionTab () + * QStyleOptionTab ( const QStyleOptionTab & other ) + */ +HB_FUNC( QT_QSTYLEOPTIONTAB ) +{ + hb_retptr( ( QStyleOptionTab* ) new QStyleOptionTab() ); +} + +/* + * CornerWidgets cornerWidgets + */ +HB_FUNC( QT_QSTYLEOPTIONTAB_CORNERWIDGETS ) +{ + hb_retni( ( QStyleOptionTab::CornerWidgets ) hbqt_par_QStyleOptionTab( 1 )->cornerWidgets ); +} + +/* + * QIcon icon + */ +HB_FUNC( QT_QSTYLEOPTIONTAB_ICON ) +{ + hb_retptr( new QIcon( hbqt_par_QStyleOptionTab( 1 )->icon ) ); +} + +/* + * TabPosition position + */ +HB_FUNC( QT_QSTYLEOPTIONTAB_POSITION ) +{ + hb_retni( ( QStyleOptionTab::TabPosition ) hbqt_par_QStyleOptionTab( 1 )->position ); +} + +/* + * int row + */ +HB_FUNC( QT_QSTYLEOPTIONTAB_ROW ) +{ + hb_retni( hbqt_par_QStyleOptionTab( 1 )->row ); +} + +/* + * SelectedPosition selectedPosition + */ +HB_FUNC( QT_QSTYLEOPTIONTAB_SELECTEDPOSITION ) +{ + hb_retni( ( QStyleOptionTab::SelectedPosition ) hbqt_par_QStyleOptionTab( 1 )->selectedPosition ); +} + +/* + * QTabBar::Shape shape + */ +HB_FUNC( QT_QSTYLEOPTIONTAB_SHAPE ) +{ + hb_retni( ( QTabBar::Shape ) hbqt_par_QStyleOptionTab( 1 )->shape ); +} + +/* + * QString text + */ +HB_FUNC( QT_QSTYLEOPTIONTAB_TEXT ) +{ + hb_retc( hbqt_par_QStyleOptionTab( 1 )->text.toLatin1().data() ); +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qstyleoptiontabbarbase.cpp b/harbour/contrib/hbqt/hbqt_qstyleoptiontabbarbase.cpp new file mode 100644 index 0000000000..527ec827cd --- /dev/null +++ b/harbour/contrib/hbqt/hbqt_qstyleoptiontabbarbase.cpp @@ -0,0 +1,103 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009 Marcos Antonio Gambeta + * Copyright 2009 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. + * + */ +/*----------------------------------------------------------------------*/ + +#include "hbapi.h" +#include "hbqt.h" + +/*----------------------------------------------------------------------*/ +#if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +#include + + +/* + * QStyleOptionTabBarBase () + * QStyleOptionTabBarBase ( const QStyleOptionTabBarBase & other ) + */ +HB_FUNC( QT_QSTYLEOPTIONTABBARBASE ) +{ + hb_retptr( ( QStyleOptionTabBarBase* ) new QStyleOptionTabBarBase() ); +} + +/* + * QRect selectedTabRect + */ +HB_FUNC( QT_QSTYLEOPTIONTABBARBASE_SELECTEDTABRECT ) +{ + hb_retptr( new QRect( hbqt_par_QStyleOptionTabBarBase( 1 )->selectedTabRect ) ); +} + +/* + * QTabBar::Shape shape + */ +HB_FUNC( QT_QSTYLEOPTIONTABBARBASE_SHAPE ) +{ + hb_retni( ( QTabBar::Shape ) hbqt_par_QStyleOptionTabBarBase( 1 )->shape ); +} + +/* + * QRect tabBarRect + */ +HB_FUNC( QT_QSTYLEOPTIONTABBARBASE_TABBARRECT ) +{ + hb_retptr( new QRect( hbqt_par_QStyleOptionTabBarBase( 1 )->tabBarRect ) ); +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qstyleoptiontabwidgetframe.cpp b/harbour/contrib/hbqt/hbqt_qstyleoptiontabwidgetframe.cpp new file mode 100644 index 0000000000..c2d469d660 --- /dev/null +++ b/harbour/contrib/hbqt/hbqt_qstyleoptiontabwidgetframe.cpp @@ -0,0 +1,127 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009 Marcos Antonio Gambeta + * Copyright 2009 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. + * + */ +/*----------------------------------------------------------------------*/ + +#include "hbapi.h" +#include "hbqt.h" + +/*----------------------------------------------------------------------*/ +#if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +#include + + +/* + * QStyleOptionTabWidgetFrame () + * QStyleOptionTabWidgetFrame ( const QStyleOptionTabWidgetFrame & other ) + */ +HB_FUNC( QT_QSTYLEOPTIONTABWIDGETFRAME ) +{ + hb_retptr( ( QStyleOptionTabWidgetFrame* ) new QStyleOptionTabWidgetFrame() ); +} + +/* + * QSize leftCornerWidgetSize + */ +HB_FUNC( QT_QSTYLEOPTIONTABWIDGETFRAME_LEFTCORNERWIDGETSIZE ) +{ + hb_retptr( new QSize( hbqt_par_QStyleOptionTabWidgetFrame( 1 )->leftCornerWidgetSize ) ); +} + +/* + * int lineWidth + */ +HB_FUNC( QT_QSTYLEOPTIONTABWIDGETFRAME_LINEWIDTH ) +{ + hb_retni( hbqt_par_QStyleOptionTabWidgetFrame( 1 )->lineWidth ); +} + +/* + * int midLineWidth + */ +HB_FUNC( QT_QSTYLEOPTIONTABWIDGETFRAME_MIDLINEWIDTH ) +{ + hb_retni( hbqt_par_QStyleOptionTabWidgetFrame( 1 )->midLineWidth ); +} + +/* + * QSize rightCornerWidgetSize + */ +HB_FUNC( QT_QSTYLEOPTIONTABWIDGETFRAME_RIGHTCORNERWIDGETSIZE ) +{ + hb_retptr( new QSize( hbqt_par_QStyleOptionTabWidgetFrame( 1 )->rightCornerWidgetSize ) ); +} + +/* + * QTabBar::Shape shape + */ +HB_FUNC( QT_QSTYLEOPTIONTABWIDGETFRAME_SHAPE ) +{ + hb_retni( ( QTabBar::Shape ) hbqt_par_QStyleOptionTabWidgetFrame( 1 )->shape ); +} + +/* + * QSize tabBarSize + */ +HB_FUNC( QT_QSTYLEOPTIONTABWIDGETFRAME_TABBARSIZE ) +{ + hb_retptr( new QSize( hbqt_par_QStyleOptionTabWidgetFrame( 1 )->tabBarSize ) ); +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qstyleoptiontitlebar.cpp b/harbour/contrib/hbqt/hbqt_qstyleoptiontitlebar.cpp new file mode 100644 index 0000000000..37a0350933 --- /dev/null +++ b/harbour/contrib/hbqt/hbqt_qstyleoptiontitlebar.cpp @@ -0,0 +1,111 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009 Marcos Antonio Gambeta + * Copyright 2009 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. + * + */ +/*----------------------------------------------------------------------*/ + +#include "hbapi.h" +#include "hbqt.h" + +/*----------------------------------------------------------------------*/ +#if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +#include + + +/* + * QStyleOptionTitleBar () + * QStyleOptionTitleBar ( const QStyleOptionTitleBar & other ) + */ +HB_FUNC( QT_QSTYLEOPTIONTITLEBAR ) +{ + hb_retptr( ( QStyleOptionTitleBar* ) new QStyleOptionTitleBar() ); +} + +/* + * QIcon icon + */ +HB_FUNC( QT_QSTYLEOPTIONTITLEBAR_ICON ) +{ + hb_retptr( new QIcon( hbqt_par_QStyleOptionTitleBar( 1 )->icon ) ); +} + +/* + * QString text + */ +HB_FUNC( QT_QSTYLEOPTIONTITLEBAR_TEXT ) +{ + hb_retc( hbqt_par_QStyleOptionTitleBar( 1 )->text.toLatin1().data() ); +} + +/* + * Qt::WindowFlags titleBarFlags + */ +HB_FUNC( QT_QSTYLEOPTIONTITLEBAR_TITLEBARFLAGS ) +{ + hb_retni( ( Qt::WindowFlags ) hbqt_par_QStyleOptionTitleBar( 1 )->titleBarFlags ); +} + +/* + * int titleBarState + */ +HB_FUNC( QT_QSTYLEOPTIONTITLEBAR_TITLEBARSTATE ) +{ + hb_retni( hbqt_par_QStyleOptionTitleBar( 1 )->titleBarState ); +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qstyleoptiontoolbar.cpp b/harbour/contrib/hbqt/hbqt_qstyleoptiontoolbar.cpp new file mode 100644 index 0000000000..160896e8b5 --- /dev/null +++ b/harbour/contrib/hbqt/hbqt_qstyleoptiontoolbar.cpp @@ -0,0 +1,127 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009 Marcos Antonio Gambeta + * Copyright 2009 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. + * + */ +/*----------------------------------------------------------------------*/ + +#include "hbapi.h" +#include "hbqt.h" + +/*----------------------------------------------------------------------*/ +#if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +#include + + +/* + * QStyleOptionToolBar () + * QStyleOptionToolBar ( const QStyleOptionToolBar & other ) + */ +HB_FUNC( QT_QSTYLEOPTIONTOOLBAR ) +{ + hb_retptr( ( QStyleOptionToolBar* ) new QStyleOptionToolBar() ); +} + +/* + * ToolBarFeatures features + */ +HB_FUNC( QT_QSTYLEOPTIONTOOLBAR_FEATURES ) +{ + hb_retni( ( QStyleOptionToolBar::ToolBarFeatures ) hbqt_par_QStyleOptionToolBar( 1 )->features ); +} + +/* + * int lineWidth + */ +HB_FUNC( QT_QSTYLEOPTIONTOOLBAR_LINEWIDTH ) +{ + hb_retni( hbqt_par_QStyleOptionToolBar( 1 )->lineWidth ); +} + +/* + * int midLineWidth + */ +HB_FUNC( QT_QSTYLEOPTIONTOOLBAR_MIDLINEWIDTH ) +{ + hb_retni( hbqt_par_QStyleOptionToolBar( 1 )->midLineWidth ); +} + +/* + * ToolBarPosition positionOfLine + */ +HB_FUNC( QT_QSTYLEOPTIONTOOLBAR_POSITIONOFLINE ) +{ + hb_retni( ( QStyleOptionToolBar::ToolBarPosition ) hbqt_par_QStyleOptionToolBar( 1 )->positionOfLine ); +} + +/* + * ToolBarPosition positionWithinLine + */ +HB_FUNC( QT_QSTYLEOPTIONTOOLBAR_POSITIONWITHINLINE ) +{ + hb_retni( ( QStyleOptionToolBar::ToolBarPosition ) hbqt_par_QStyleOptionToolBar( 1 )->positionWithinLine ); +} + +/* + * Qt::ToolBarArea toolBarArea + */ +HB_FUNC( QT_QSTYLEOPTIONTOOLBAR_TOOLBARAREA ) +{ + hb_retni( ( Qt::ToolBarArea ) hbqt_par_QStyleOptionToolBar( 1 )->toolBarArea ); +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qstyleoptiontoolbox.cpp b/harbour/contrib/hbqt/hbqt_qstyleoptiontoolbox.cpp new file mode 100644 index 0000000000..ebbec34a90 --- /dev/null +++ b/harbour/contrib/hbqt/hbqt_qstyleoptiontoolbox.cpp @@ -0,0 +1,95 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009 Marcos Antonio Gambeta + * Copyright 2009 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. + * + */ +/*----------------------------------------------------------------------*/ + +#include "hbapi.h" +#include "hbqt.h" + +/*----------------------------------------------------------------------*/ +#if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +#include + + +/* + * QStyleOptionToolBox () + * QStyleOptionToolBox ( const QStyleOptionToolBox & other ) + */ +HB_FUNC( QT_QSTYLEOPTIONTOOLBOX ) +{ + hb_retptr( ( QStyleOptionToolBox* ) new QStyleOptionToolBox() ); +} + +/* + * QIcon icon + */ +HB_FUNC( QT_QSTYLEOPTIONTOOLBOX_ICON ) +{ + hb_retptr( new QIcon( hbqt_par_QStyleOptionToolBox( 1 )->icon ) ); +} + +/* + * QString text + */ +HB_FUNC( QT_QSTYLEOPTIONTOOLBOX_TEXT ) +{ + hb_retc( hbqt_par_QStyleOptionToolBox( 1 )->text.toLatin1().data() ); +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qstyleoptiontoolbutton.cpp b/harbour/contrib/hbqt/hbqt_qstyleoptiontoolbutton.cpp new file mode 100644 index 0000000000..3875d425d4 --- /dev/null +++ b/harbour/contrib/hbqt/hbqt_qstyleoptiontoolbutton.cpp @@ -0,0 +1,143 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009 Marcos Antonio Gambeta + * Copyright 2009 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. + * + */ +/*----------------------------------------------------------------------*/ + +#include "hbapi.h" +#include "hbqt.h" + +/*----------------------------------------------------------------------*/ +#if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +#include + + +/* + * QStyleOptionToolButton () + * QStyleOptionToolButton ( const QStyleOptionToolButton & other ) + */ +HB_FUNC( QT_QSTYLEOPTIONTOOLBUTTON ) +{ + hb_retptr( ( QStyleOptionToolButton* ) new QStyleOptionToolButton() ); +} + +/* + * Qt::ArrowType arrowType + */ +HB_FUNC( QT_QSTYLEOPTIONTOOLBUTTON_ARROWTYPE ) +{ + hb_retni( ( Qt::ArrowType ) hbqt_par_QStyleOptionToolButton( 1 )->arrowType ); +} + +/* + * ToolButtonFeatures features + */ +HB_FUNC( QT_QSTYLEOPTIONTOOLBUTTON_FEATURES ) +{ + hb_retni( ( QStyleOptionToolButton::ToolButtonFeatures ) hbqt_par_QStyleOptionToolButton( 1 )->features ); +} + +/* + * QFont font + */ +HB_FUNC( QT_QSTYLEOPTIONTOOLBUTTON_FONT ) +{ + hb_retptr( new QFont( hbqt_par_QStyleOptionToolButton( 1 )->font ) ); +} + +/* + * QIcon icon + */ +HB_FUNC( QT_QSTYLEOPTIONTOOLBUTTON_ICON ) +{ + hb_retptr( new QIcon( hbqt_par_QStyleOptionToolButton( 1 )->icon ) ); +} + +/* + * QSize iconSize + */ +HB_FUNC( QT_QSTYLEOPTIONTOOLBUTTON_ICONSIZE ) +{ + hb_retptr( new QSize( hbqt_par_QStyleOptionToolButton( 1 )->iconSize ) ); +} + +/* + * QPoint pos + */ +HB_FUNC( QT_QSTYLEOPTIONTOOLBUTTON_POS ) +{ + hb_retptr( new QPoint( hbqt_par_QStyleOptionToolButton( 1 )->pos ) ); +} + +/* + * QString text + */ +HB_FUNC( QT_QSTYLEOPTIONTOOLBUTTON_TEXT ) +{ + hb_retc( hbqt_par_QStyleOptionToolButton( 1 )->text.toLatin1().data() ); +} + +/* + * Qt::ToolButtonStyle toolButtonStyle + */ +HB_FUNC( QT_QSTYLEOPTIONTOOLBUTTON_TOOLBUTTONSTYLE ) +{ + hb_retni( ( Qt::ToolButtonStyle ) hbqt_par_QStyleOptionToolButton( 1 )->toolButtonStyle ); +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qstyleoptionviewitem.cpp b/harbour/contrib/hbqt/hbqt_qstyleoptionviewitem.cpp new file mode 100644 index 0000000000..e9c871c948 --- /dev/null +++ b/harbour/contrib/hbqt/hbqt_qstyleoptionviewitem.cpp @@ -0,0 +1,135 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009 Marcos Antonio Gambeta + * Copyright 2009 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. + * + */ +/*----------------------------------------------------------------------*/ + +#include "hbapi.h" +#include "hbqt.h" + +/*----------------------------------------------------------------------*/ +#if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +#include + + +/* + * QStyleOptionViewItem () + * QStyleOptionViewItem ( const QStyleOptionViewItem & other ) + */ +HB_FUNC( QT_QSTYLEOPTIONVIEWITEM ) +{ + hb_retptr( ( QStyleOptionViewItem* ) new QStyleOptionViewItem() ); +} + +/* + * Qt::Alignment decorationAlignment + */ +HB_FUNC( QT_QSTYLEOPTIONVIEWITEM_DECORATIONALIGNMENT ) +{ + hb_retni( ( Qt::Alignment ) hbqt_par_QStyleOptionViewItem( 1 )->decorationAlignment ); +} + +/* + * Position decorationPosition + */ +HB_FUNC( QT_QSTYLEOPTIONVIEWITEM_DECORATIONPOSITION ) +{ + hb_retni( ( QStyleOptionViewItem::Position ) hbqt_par_QStyleOptionViewItem( 1 )->decorationPosition ); +} + +/* + * QSize decorationSize + */ +HB_FUNC( QT_QSTYLEOPTIONVIEWITEM_DECORATIONSIZE ) +{ + hb_retptr( new QSize( hbqt_par_QStyleOptionViewItem( 1 )->decorationSize ) ); +} + +/* + * Qt::Alignment displayAlignment + */ +HB_FUNC( QT_QSTYLEOPTIONVIEWITEM_DISPLAYALIGNMENT ) +{ + hb_retni( ( Qt::Alignment ) hbqt_par_QStyleOptionViewItem( 1 )->displayAlignment ); +} + +/* + * QFont font + */ +HB_FUNC( QT_QSTYLEOPTIONVIEWITEM_FONT ) +{ + hb_retptr( new QFont( hbqt_par_QStyleOptionViewItem( 1 )->font ) ); +} + +/* + * bool showDecorationSelected + */ +HB_FUNC( QT_QSTYLEOPTIONVIEWITEM_SHOWDECORATIONSELECTED ) +{ + hb_retl( hbqt_par_QStyleOptionViewItem( 1 )->showDecorationSelected ); +} + +/* + * Qt::TextElideMode textElideMode + */ +HB_FUNC( QT_QSTYLEOPTIONVIEWITEM_TEXTELIDEMODE ) +{ + hb_retni( ( Qt::TextElideMode ) hbqt_par_QStyleOptionViewItem( 1 )->textElideMode ); +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qstylepainter.cpp b/harbour/contrib/hbqt/hbqt_qstylepainter.cpp new file mode 100644 index 0000000000..b7c46076cb --- /dev/null +++ b/harbour/contrib/hbqt/hbqt_qstylepainter.cpp @@ -0,0 +1,144 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009 Marcos Antonio Gambeta + * Copyright 2009 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. + * + */ +/*----------------------------------------------------------------------*/ + +#include "hbapi.h" +#include "hbqt.h" + +/*----------------------------------------------------------------------*/ +#if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +#include + + +/* + * QStylePainter () + * QStylePainter ( QWidget * widget ) + * QStylePainter ( QPaintDevice * pd, QWidget * widget ) + */ +HB_FUNC( QT_QSTYLEPAINTER ) +{ + hb_retptr( ( QStylePainter* ) new QStylePainter() ); +} + +/* + * bool begin ( QWidget * widget ) + */ +HB_FUNC( QT_QSTYLEPAINTER_BEGIN ) +{ + hb_retl( hbqt_par_QStylePainter( 1 )->begin( hbqt_par_QWidget( 2 ) ) ); +} + +/* + * bool begin ( QPaintDevice * pd, QWidget * widget ) + */ +HB_FUNC( QT_QSTYLEPAINTER_BEGIN_1 ) +{ + hb_retl( hbqt_par_QStylePainter( 1 )->begin( hbqt_par_QPaintDevice( 2 ), hbqt_par_QWidget( 3 ) ) ); +} + +/* + * void drawComplexControl ( QStyle::ComplexControl cc, const QStyleOptionComplex & option ) + */ +HB_FUNC( QT_QSTYLEPAINTER_DRAWCOMPLEXCONTROL ) +{ + hbqt_par_QStylePainter( 1 )->drawComplexControl( ( QStyle::ComplexControl ) hb_parni( 2 ), *hbqt_par_QStyleOptionComplex( 3 ) ); +} + +/* + * void drawControl ( QStyle::ControlElement ce, const QStyleOption & option ) + */ +HB_FUNC( QT_QSTYLEPAINTER_DRAWCONTROL ) +{ + hbqt_par_QStylePainter( 1 )->drawControl( ( QStyle::ControlElement ) hb_parni( 2 ), *hbqt_par_QStyleOption( 3 ) ); +} + +/* + * void drawItemPixmap ( const QRect & rect, int flags, const QPixmap & pixmap ) + */ +HB_FUNC( QT_QSTYLEPAINTER_DRAWITEMPIXMAP ) +{ + hbqt_par_QStylePainter( 1 )->drawItemPixmap( *hbqt_par_QRect( 2 ), hb_parni( 3 ), *hbqt_par_QPixmap( 4 ) ); +} + +/* + * void drawItemText ( const QRect & rect, int flags, const QPalette & pal, bool enabled, const QString & text, QPalette::ColorRole textRole = QPalette::NoRole ) + */ +HB_FUNC( QT_QSTYLEPAINTER_DRAWITEMTEXT ) +{ + hbqt_par_QStylePainter( 1 )->drawItemText( *hbqt_par_QRect( 2 ), hb_parni( 3 ), *hbqt_par_QPalette( 4 ), hb_parl( 5 ), hbqt_par_QString( 6 ), ( HB_ISNUM( 7 ) ? ( QPalette::ColorRole ) hb_parni( 7 ) : ( QPalette::ColorRole ) QPalette::NoRole ) ); +} + +/* + * void drawPrimitive ( QStyle::PrimitiveElement pe, const QStyleOption & option ) + */ +HB_FUNC( QT_QSTYLEPAINTER_DRAWPRIMITIVE ) +{ + hbqt_par_QStylePainter( 1 )->drawPrimitive( ( QStyle::PrimitiveElement ) hb_parni( 2 ), *hbqt_par_QStyleOption( 3 ) ); +} + +/* + * QStyle * style () const + */ +HB_FUNC( QT_QSTYLEPAINTER_STYLE ) +{ + hb_retptr( ( QStyle* ) hbqt_par_QStylePainter( 1 )->style() ); +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/qth/QStyleOptionSlider.qth b/harbour/contrib/hbqt/qth/QStyleOptionSlider.qth new file mode 100644 index 0000000000..f23b817623 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QStyleOptionSlider.qth @@ -0,0 +1,107 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 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 +; + + +Inherits = QStyleOptionComplex +Type = Core +New = + + + +#include + + +/* + * QStyleOptionSlider () + * QStyleOptionSlider ( const QStyleOptionSlider & other ) + */ +HB_FUNC( QT_QSTYLEOPTIONSLIDER ) +{ + hb_retptr( ( QStyleOptionSlider* ) new QStyleOptionSlider() ); +} + + + +enum StyleOptionType { Type } +enum StyleOptionVersion { Version } + + + + + + + + + + + + +bool dialWrapping +int maximum +int minimum +qreal notchTarget +Qt::Orientation orientation +int pageStep +int singleStep +int sliderPosition +int sliderValue +int tickInterval +QSlider::TickPosition tickPosition +bool upsideDown + + + + diff --git a/harbour/contrib/hbqt/qth/QStyleOptionSpinBox.qth b/harbour/contrib/hbqt/qth/QStyleOptionSpinBox.qth new file mode 100644 index 0000000000..4268c03063 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QStyleOptionSpinBox.qth @@ -0,0 +1,98 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 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 +; + + +Inherits = QStyleOptionComplex +Type = Core +New = + + + +#include + + +/* + * QStyleOptionSpinBox () + * QStyleOptionSpinBox ( const QStyleOptionSpinBox & other ) + */ +HB_FUNC( QT_QSTYLEOPTIONSPINBOX ) +{ + hb_retptr( ( QStyleOptionSpinBox* ) new QStyleOptionSpinBox() ); +} + + + +enum StyleOptionType { Type } +enum StyleOptionVersion { Version } + + + + + + + + + + + + +QAbstractSpinBox::ButtonSymbols buttonSymbols +bool frame +QAbstractSpinBox::StepEnabled stepEnabled + + + + diff --git a/harbour/contrib/hbqt/qth/QStyleOptionTab.qth b/harbour/contrib/hbqt/qth/QStyleOptionTab.qth new file mode 100644 index 0000000000..44375b647c --- /dev/null +++ b/harbour/contrib/hbqt/qth/QStyleOptionTab.qth @@ -0,0 +1,106 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 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 +; + + +Inherits = QStyleOption +Type = Core +New = + + + +#include + + +/* + * QStyleOptionTab () + * QStyleOptionTab ( const QStyleOptionTab & other ) + */ +HB_FUNC( QT_QSTYLEOPTIONTAB ) +{ + hb_retptr( ( QStyleOptionTab* ) new QStyleOptionTab() ); +} + + + +enum CornerWidget { NoCornerWidgets, LeftCornerWidget, RightCornerWidget } +flags CornerWidgets +enum SelectedPosition { NotAdjacent, NextIsSelected, PreviousIsSelected } +enum StyleOptionType { Type } +enum StyleOptionVersion { Version } +enum TabPosition { Beginning, Middle, End, OnlyOneTab } + + + + + + + + + + + + +CornerWidgets cornerWidgets +QIcon icon +TabPosition position +int row +SelectedPosition selectedPosition +QTabBar::Shape shape +QString text + + + + diff --git a/harbour/contrib/hbqt/qth/QStyleOptionTabBarBase.qth b/harbour/contrib/hbqt/qth/QStyleOptionTabBarBase.qth new file mode 100644 index 0000000000..d96299af94 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QStyleOptionTabBarBase.qth @@ -0,0 +1,98 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 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 +; + + +Inherits = QStyleOption +Type = Core +New = + + + +#include + + +/* + * QStyleOptionTabBarBase () + * QStyleOptionTabBarBase ( const QStyleOptionTabBarBase & other ) + */ +HB_FUNC( QT_QSTYLEOPTIONTABBARBASE ) +{ + hb_retptr( ( QStyleOptionTabBarBase* ) new QStyleOptionTabBarBase() ); +} + + + +enum StyleOptionType { Type } +enum StyleOptionVersion { Version } + + + + + + + + + + + + +QRect selectedTabRect +QTabBar::Shape shape +QRect tabBarRect + + + + diff --git a/harbour/contrib/hbqt/qth/QStyleOptionTabWidgetFrame.qth b/harbour/contrib/hbqt/qth/QStyleOptionTabWidgetFrame.qth new file mode 100644 index 0000000000..b8e7e95eee --- /dev/null +++ b/harbour/contrib/hbqt/qth/QStyleOptionTabWidgetFrame.qth @@ -0,0 +1,101 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 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 +; + + +Inherits = QStyleOption +Type = Core +New = + + + +#include + + +/* + * QStyleOptionTabWidgetFrame () + * QStyleOptionTabWidgetFrame ( const QStyleOptionTabWidgetFrame & other ) + */ +HB_FUNC( QT_QSTYLEOPTIONTABWIDGETFRAME ) +{ + hb_retptr( ( QStyleOptionTabWidgetFrame* ) new QStyleOptionTabWidgetFrame() ); +} + + + +enum StyleOptionType { Type } +enum StyleOptionVersion { Version } + + + + + + + + + + + + +QSize leftCornerWidgetSize +int lineWidth +int midLineWidth +QSize rightCornerWidgetSize +QTabBar::Shape shape +QSize tabBarSize + + + + diff --git a/harbour/contrib/hbqt/qth/QStyleOptionTitleBar.qth b/harbour/contrib/hbqt/qth/QStyleOptionTitleBar.qth new file mode 100644 index 0000000000..9e96d5a065 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QStyleOptionTitleBar.qth @@ -0,0 +1,99 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 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 +; + + +Inherits = QStyleOptionComplex +Type = Core +New = + + + +#include + + +/* + * QStyleOptionTitleBar () + * QStyleOptionTitleBar ( const QStyleOptionTitleBar & other ) + */ +HB_FUNC( QT_QSTYLEOPTIONTITLEBAR ) +{ + hb_retptr( ( QStyleOptionTitleBar* ) new QStyleOptionTitleBar() ); +} + + + +enum StyleOptionType { Type } +enum StyleOptionVersion { Version } + + + + + + + + + + + + +QIcon icon +QString text +Qt::WindowFlags titleBarFlags +int titleBarState + + + + diff --git a/harbour/contrib/hbqt/qth/QStyleOptionToolBar.qth b/harbour/contrib/hbqt/qth/QStyleOptionToolBar.qth new file mode 100644 index 0000000000..5886dca92a --- /dev/null +++ b/harbour/contrib/hbqt/qth/QStyleOptionToolBar.qth @@ -0,0 +1,104 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 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 +; + + +Inherits = QStyleOption +Type = Core +New = + + + +#include + + +/* + * QStyleOptionToolBar () + * QStyleOptionToolBar ( const QStyleOptionToolBar & other ) + */ +HB_FUNC( QT_QSTYLEOPTIONTOOLBAR ) +{ + hb_retptr( ( QStyleOptionToolBar* ) new QStyleOptionToolBar() ); +} + + + +enum StyleOptionType { Type } +enum StyleOptionVersion { Version } +enum ToolBarFeature { None, Movable } +flags ToolBarFeatures +enum ToolBarPosition { Beginning, Middle, End, OnlyOne } + + + + + + + + + + + + +ToolBarFeatures features +int lineWidth +int midLineWidth +ToolBarPosition positionOfLine +ToolBarPosition positionWithinLine +Qt::ToolBarArea toolBarArea + + + + diff --git a/harbour/contrib/hbqt/qth/QStyleOptionToolBox.qth b/harbour/contrib/hbqt/qth/QStyleOptionToolBox.qth new file mode 100644 index 0000000000..fe5d0ee2d1 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QStyleOptionToolBox.qth @@ -0,0 +1,97 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 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 +; + + +Inherits = QStyleOption +Type = Core +New = + + + +#include + + +/* + * QStyleOptionToolBox () + * QStyleOptionToolBox ( const QStyleOptionToolBox & other ) + */ +HB_FUNC( QT_QSTYLEOPTIONTOOLBOX ) +{ + hb_retptr( ( QStyleOptionToolBox* ) new QStyleOptionToolBox() ); +} + + + +enum StyleOptionType { Type } +enum StyleOptionVersion { Version } + + + + + + + + + + + + +QIcon icon +QString text + + + + diff --git a/harbour/contrib/hbqt/qth/QStyleOptionToolButton.qth b/harbour/contrib/hbqt/qth/QStyleOptionToolButton.qth new file mode 100644 index 0000000000..d39685b427 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QStyleOptionToolButton.qth @@ -0,0 +1,105 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 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 +; + + +Inherits = QStyleOptionComplex +Type = Core +New = + + + +#include + + +/* + * QStyleOptionToolButton () + * QStyleOptionToolButton ( const QStyleOptionToolButton & other ) + */ +HB_FUNC( QT_QSTYLEOPTIONTOOLBUTTON ) +{ + hb_retptr( ( QStyleOptionToolButton* ) new QStyleOptionToolButton() ); +} + + + +enum StyleOptionType { Type } +enum StyleOptionVersion { Version } +enum ToolButtonFeature { None, Arrow, Menu, PopupDelay, HasMenu, MenuButtonPopup } +flags ToolButtonFeatures + + + + + + + + + + + + +Qt::ArrowType arrowType +ToolButtonFeatures features +QFont font +QIcon icon +QSize iconSize +QPoint pos +QString text +Qt::ToolButtonStyle toolButtonStyle + + + + diff --git a/harbour/contrib/hbqt/qth/QStyleOptionViewItem.qth b/harbour/contrib/hbqt/qth/QStyleOptionViewItem.qth new file mode 100644 index 0000000000..24c8d847cc --- /dev/null +++ b/harbour/contrib/hbqt/qth/QStyleOptionViewItem.qth @@ -0,0 +1,103 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 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 +; + + +Inherits = QStyleOption +Type = Core +New = + + + +#include + + +/* + * QStyleOptionViewItem () + * QStyleOptionViewItem ( const QStyleOptionViewItem & other ) + */ +HB_FUNC( QT_QSTYLEOPTIONVIEWITEM ) +{ + hb_retptr( ( QStyleOptionViewItem* ) new QStyleOptionViewItem() ); +} + + + +enum Position { Left, Right, Top, Bottom } +enum StyleOptionType { Type } +enum StyleOptionVersion { Version } + + + + + + + + + + + + +Qt::Alignment decorationAlignment +Position decorationPosition +QSize decorationSize +Qt::Alignment displayAlignment +QFont font +bool showDecorationSelected +Qt::TextElideMode textElideMode + + + + diff --git a/harbour/contrib/hbqt/qth/QStylePainter.qth b/harbour/contrib/hbqt/qth/QStylePainter.qth new file mode 100644 index 0000000000..f2a3cbf0dc --- /dev/null +++ b/harbour/contrib/hbqt/qth/QStylePainter.qth @@ -0,0 +1,102 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 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 +; + + +Inherits = QPainter +Type = Core +New = + + + +#include + + +/* + * QStylePainter () + * QStylePainter ( QWidget * widget ) + * QStylePainter ( QPaintDevice * pd, QWidget * widget ) + */ +HB_FUNC( QT_QSTYLEPAINTER ) +{ + hb_retptr( ( QStylePainter* ) new QStylePainter() ); +} + + + + + + +bool begin ( QWidget * widget ) +bool begin ( QPaintDevice * pd, QWidget * widget ) +void drawComplexControl ( QStyle::ComplexControl cc, const QStyleOptionComplex & option ) +void drawControl ( QStyle::ControlElement ce, const QStyleOption & option ) +void drawItemPixmap ( const QRect & rect, int flags, const QPixmap & pixmap ) +void drawItemText ( const QRect & rect, int flags, const QPalette & pal, bool enabled, const QString & text, QPalette::ColorRole textRole = QPalette::NoRole ) +void drawPrimitive ( QStyle::PrimitiveElement pe, const QStyleOption & option ) +QStyle * style () const + + + + + + + + + + + + +