diff --git a/harbour/ChangeLog b/harbour/ChangeLog index aa25714333..a6ee10dbbc 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,307 @@ 2009-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org) */ +2009-03-31 01:50 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) + * harbour/contrib/hbqt/Makefile + % Makefile is auto generated by and is placed + in hbqt/gensource. + + * harbour/contrib/hbqt/hbqt_base.cpp + * harbour/contrib/hbqt/hbqt_qabstractbutton.cpp + * harbour/contrib/hbqt/hbqt_qabstractitemview.cpp + * harbour/contrib/hbqt/hbqt_qabstractprintdialog.cpp + * harbour/contrib/hbqt/hbqt_qabstractscrollarea.cpp + * harbour/contrib/hbqt/hbqt_qabstractslider.cpp + * harbour/contrib/hbqt/hbqt_qabstractspinbox.cpp + * harbour/contrib/hbqt/hbqt_qaction.cpp + * harbour/contrib/hbqt/hbqt_qapplication.cpp + * harbour/contrib/hbqt/hbqt_qboxlayout.cpp + + harbour/contrib/hbqt/hbqt_qbrush.cpp + * harbour/contrib/hbqt/hbqt_qcalendarwidget.cpp + * harbour/contrib/hbqt/hbqt_qcheckbox.cpp + + harbour/contrib/hbqt/hbqt_qcolor.cpp + * harbour/contrib/hbqt/hbqt_qcolordialog.cpp + * harbour/contrib/hbqt/hbqt_qcombobox.cpp + * harbour/contrib/hbqt/hbqt_qcommandlinkbutton.cpp + * harbour/contrib/hbqt/hbqt_qcoreapplication.cpp + - harbour/contrib/hbqt/hbqt_qcqlendarwidget.cpp + * harbour/contrib/hbqt/hbqt_qdateedit.cpp + * harbour/contrib/hbqt/hbqt_qdatetimeedit.cpp + * harbour/contrib/hbqt/hbqt_qdial.cpp + * harbour/contrib/hbqt/hbqt_qdialog.cpp + * harbour/contrib/hbqt/hbqt_qdoublespinbox.cpp + * harbour/contrib/hbqt/hbqt_qerrormessage.cpp + * harbour/contrib/hbqt/hbqt_qfiledialog.cpp + * harbour/contrib/hbqt/hbqt_qfocusframe.cpp + * harbour/contrib/hbqt/hbqt_qfont.cpp + * harbour/contrib/hbqt/hbqt_qfontcombobox.cpp + * harbour/contrib/hbqt/hbqt_qfontdialog.cpp + * harbour/contrib/hbqt/hbqt_qformlayout.cpp + * harbour/contrib/hbqt/hbqt_qframe.cpp + * harbour/contrib/hbqt/hbqt_qgroupbox.cpp + * harbour/contrib/hbqt/hbqt_qhboxlayout.cpp + * harbour/contrib/hbqt/hbqt_qinputdialog.cpp + * harbour/contrib/hbqt/hbqt_qlabel.cpp + * harbour/contrib/hbqt/hbqt_qlayout.cpp + * harbour/contrib/hbqt/hbqt_qlayoutitem.cpp + * harbour/contrib/hbqt/hbqt_qlcdnumber.cpp + * harbour/contrib/hbqt/hbqt_qlineedit.cpp + * harbour/contrib/hbqt/hbqt_qlistview.cpp + * harbour/contrib/hbqt/hbqt_qmainwindow.cpp + * harbour/contrib/hbqt/hbqt_qmenu.cpp + * harbour/contrib/hbqt/hbqt_qmenubar.cpp + * harbour/contrib/hbqt/hbqt_qmessagebox.cpp + * harbour/contrib/hbqt/hbqt_qobject.cpp + * harbour/contrib/hbqt/hbqt_qpagesetupdialog.cpp + + harbour/contrib/hbqt/hbqt_qpaintdevice.cpp + + harbour/contrib/hbqt/hbqt_qpainter.cpp + + harbour/contrib/hbqt/hbqt_qpen.cpp + * harbour/contrib/hbqt/hbqt_qprintdialog.cpp + * harbour/contrib/hbqt/hbqt_qprintpreviewdialog.cpp + * harbour/contrib/hbqt/hbqt_qprogressbar.cpp + * harbour/contrib/hbqt/hbqt_qprogressdialog.cpp + * harbour/contrib/hbqt/hbqt_qpushbutton.cpp + * harbour/contrib/hbqt/hbqt_qradiobutton.cpp + * harbour/contrib/hbqt/hbqt_qscrollarea.cpp + * harbour/contrib/hbqt/hbqt_qscrollbar.cpp + * harbour/contrib/hbqt/hbqt_qsizegrip.cpp + * harbour/contrib/hbqt/hbqt_qslider.cpp + * harbour/contrib/hbqt/hbqt_qspinbox.cpp + * harbour/contrib/hbqt/hbqt_qsplitter.cpp + * harbour/contrib/hbqt/hbqt_qtabbar.cpp + * harbour/contrib/hbqt/hbqt_qtableview.cpp + * harbour/contrib/hbqt/hbqt_qtablewidget.cpp + * harbour/contrib/hbqt/hbqt_qtablewidgetitem.cpp + * harbour/contrib/hbqt/hbqt_qtabwidget.cpp + * harbour/contrib/hbqt/hbqt_qtextedit.cpp + * harbour/contrib/hbqt/hbqt_qtimeedit.cpp + * harbour/contrib/hbqt/hbqt_qtoolbar.cpp + * harbour/contrib/hbqt/hbqt_qtoolbox.cpp + * harbour/contrib/hbqt/hbqt_qtoolbutton.cpp + * harbour/contrib/hbqt/hbqt_qtreeview.cpp + * harbour/contrib/hbqt/hbqt_qtreewidget.cpp + * harbour/contrib/hbqt/hbqt_qtreewidgetitem.cpp + * harbour/contrib/hbqt/hbqt_qvboxlayout.cpp + + harbour/contrib/hbqt/hbqt_qwebpage.cpp + * harbour/contrib/hbqt/hbqt_qwebview.cpp + * harbour/contrib/hbqt/hbqt_qwidget.cpp + * harbour/contrib/hbqt/hbqt_qwizard.cpp + * harbour/contrib/hbqt/hbqt_slots.cpp + * harbour/contrib/hbqt/hbqt_utils.cpp + * harbour/contrib/hbqt/moc_slots.cpp + * harbour/contrib/hbqt/hbqt.h + + harbour/contrib/hbqt/hbqt_slots.h + - harbour/contrib/hbqt/slots.h + +- Added | Changed | Deleted Sources. + Now these sources are auto generated by the HB-QT generator. + Please never try to modify these. Instead look at /qth folder + and .qth source definition files. I will write a detailed + description once it becomes fully operational as I have + drawn on the drawing board. The above code is fully functional + to the extent it is generated but still about 30% functions + have not been translated. A work in progress... + + + harbour/contrib/hbqt/TQAbstractButton.prg + + harbour/contrib/hbqt/TQAbstractItemView.prg + + harbour/contrib/hbqt/TQAbstractPrintDialog.prg + + harbour/contrib/hbqt/TQAbstractScrollArea.prg + + harbour/contrib/hbqt/TQAbstractSlider.prg + + harbour/contrib/hbqt/TQAbstractSpinBox.prg + + harbour/contrib/hbqt/TQAction.prg + + harbour/contrib/hbqt/TQBoxLayout.prg + + harbour/contrib/hbqt/TQCalendarWidget.prg + + harbour/contrib/hbqt/TQCheckBox.prg + + harbour/contrib/hbqt/TQColorDialog.prg + + harbour/contrib/hbqt/TQComboBox.prg + + harbour/contrib/hbqt/TQCommandLinkButton.prg + + harbour/contrib/hbqt/TQDateEdit.prg + + harbour/contrib/hbqt/TQDateTimeEdit.prg + + harbour/contrib/hbqt/TQDial.prg + + harbour/contrib/hbqt/TQDialog.prg + + harbour/contrib/hbqt/TQDoubleSpinBox.prg + + harbour/contrib/hbqt/TQErrorMessage.prg + + harbour/contrib/hbqt/TQFileDialog.prg + + harbour/contrib/hbqt/TQFocusFrame.prg + + harbour/contrib/hbqt/TQFontComboBox.prg + + harbour/contrib/hbqt/TQFontDialog.prg + + harbour/contrib/hbqt/TQFormLayout.prg + + harbour/contrib/hbqt/TQFrame.prg + + harbour/contrib/hbqt/TQGroupBox.prg + + harbour/contrib/hbqt/TQHBoxLayout.prg + + harbour/contrib/hbqt/TQInputDialog.prg + + harbour/contrib/hbqt/TQLabel.prg + + harbour/contrib/hbqt/TQLayout.prg + + harbour/contrib/hbqt/TQLayoutItem.prg + + harbour/contrib/hbqt/TQLCDNumber.prg + + harbour/contrib/hbqt/TQLineEdit.prg + + harbour/contrib/hbqt/TQListView.prg + + harbour/contrib/hbqt/TQMainWindow.prg + + harbour/contrib/hbqt/TQMenu.prg + + harbour/contrib/hbqt/TQMenuBar.prg + + harbour/contrib/hbqt/TQMessageBox.prg + + harbour/contrib/hbqt/TQObject.prg + + harbour/contrib/hbqt/TQPageSetupDialog.prg + + harbour/contrib/hbqt/TQPaintDevice.prg + + harbour/contrib/hbqt/TQPainter.prg + + harbour/contrib/hbqt/TQPrintDialog.prg + + harbour/contrib/hbqt/TQPrintPreviewDialog.prg + + harbour/contrib/hbqt/TQProgressBar.prg + + harbour/contrib/hbqt/TQProgressDialog.prg + + harbour/contrib/hbqt/TQPushButton.prg + + harbour/contrib/hbqt/TQRadioButton.prg + + harbour/contrib/hbqt/TQScrollArea.prg + + harbour/contrib/hbqt/TQScrollBar.prg + + harbour/contrib/hbqt/TQSizeGrip.prg + + harbour/contrib/hbqt/TQSlider.prg + + harbour/contrib/hbqt/TQSpinBox.prg + + harbour/contrib/hbqt/TQSplitter.prg + + harbour/contrib/hbqt/TQTabBar.prg + + harbour/contrib/hbqt/TQTableView.prg + + harbour/contrib/hbqt/TQTableWidget.prg + + harbour/contrib/hbqt/TQTableWidgetItem.prg + + harbour/contrib/hbqt/TQTabWidget.prg + + harbour/contrib/hbqt/TQTextEdit.prg + + harbour/contrib/hbqt/TQTimeEdit.prg + + harbour/contrib/hbqt/TQToolBar.prg + + harbour/contrib/hbqt/TQToolBox.prg + + harbour/contrib/hbqt/TQToolButton.prg + + harbour/contrib/hbqt/TQTreeView.prg + + harbour/contrib/hbqt/TQTreeWidget.prg + + harbour/contrib/hbqt/TQTreeWidgetItem.prg + + harbour/contrib/hbqt/TQVBoxLayout.prg + + harbour/contrib/hbqt/TQWebPage.prg + + harbour/contrib/hbqt/TQWebView.prg + + harbour/contrib/hbqt/TQWidget.prg + + harbour/contrib/hbqt/TQWizard.prg + + Added auto generated classes with exact same class hierarchy + which QT has outlined with inheritance. QT implements + constructors with dynamic parameters which on prg level + are difficult to manage. So I have adopted a simple + approach. :New() accepts only one argument i.e., + pointer to the parent object, if any, and which is universal + in QT implementation. This class implementation implies + that PRG code will pass to a method and will + receive | . We can build higher level + classes inheriting from above and implement whatever way we wish + to pass and receive objects. I would like those higher + level classes to confirm Xbase++ standards. + + * harbour/contrib/hbqt/qth/QAbstractButton.qth + * harbour/contrib/hbqt/qth/QAbstractItemView.qth + * harbour/contrib/hbqt/qth/QAbstractPrintDialog.qth + * harbour/contrib/hbqt/qth/QAbstractScrollArea.qth + * harbour/contrib/hbqt/qth/QAbstractSlider.qth + * harbour/contrib/hbqt/qth/QAbstractSpinBox.qth + * harbour/contrib/hbqt/qth/QAction.qth + * harbour/contrib/hbqt/qth/QBoxLayout.qth + * harbour/contrib/hbqt/qth/QCalendarWidget.qth + * harbour/contrib/hbqt/qth/QCheckBox.qth + * harbour/contrib/hbqt/qth/QColorDialog.qth + * harbour/contrib/hbqt/qth/QComboBox.qth + * harbour/contrib/hbqt/qth/QCommandLinkButton.qth + * harbour/contrib/hbqt/qth/QDateEdit.qth + * harbour/contrib/hbqt/qth/QDateTimeEdit.qth + * harbour/contrib/hbqt/qth/QDial.qth + * harbour/contrib/hbqt/qth/QDialog.qth + * harbour/contrib/hbqt/qth/QDoubleSpinBox.qth + * harbour/contrib/hbqt/qth/QErrorMessage.qth + * harbour/contrib/hbqt/qth/QFileDialog.qth + * harbour/contrib/hbqt/qth/QFocusFrame.qth + * harbour/contrib/hbqt/qth/QFontComboBox.qth + * harbour/contrib/hbqt/qth/QFontDialog.qth + * harbour/contrib/hbqt/qth/QFormLayout.qth + * harbour/contrib/hbqt/qth/QFrame.qth + * harbour/contrib/hbqt/qth/QGroupBox.qth + * harbour/contrib/hbqt/qth/QHBoxLayout.qth + * harbour/contrib/hbqt/qth/QInputDialog.qth + * harbour/contrib/hbqt/qth/QLabel.qth + * harbour/contrib/hbqt/qth/QLayout.qth + * harbour/contrib/hbqt/qth/QLayoutItem.qth + * harbour/contrib/hbqt/qth/QLCDNumber.qth + * harbour/contrib/hbqt/qth/QLineEdit.qth + * harbour/contrib/hbqt/qth/QListView.qth + * harbour/contrib/hbqt/qth/QMainWindow.qth + * harbour/contrib/hbqt/qth/QMenu.qth + * harbour/contrib/hbqt/qth/QMenuBar.qth + * harbour/contrib/hbqt/qth/QMessageBox.qth + * harbour/contrib/hbqt/qth/QObject.qth + * harbour/contrib/hbqt/qth/QPageSetupDialog.qth + + harbour/contrib/hbqt/qth/QPaintDevice.qth + * harbour/contrib/hbqt/qth/QPainter.qth + * harbour/contrib/hbqt/qth/QPrintDialog.qth + * harbour/contrib/hbqt/qth/QPrintPreviewDialog.qth + * harbour/contrib/hbqt/qth/QProgressBar.qth + + harbour/contrib/hbqt/qth/QProgressDialog.qth + * harbour/contrib/hbqt/qth/QPushButton.qth + * harbour/contrib/hbqt/qth/QRadioButton.qth + * harbour/contrib/hbqt/qth/QScrollArea.qth + * harbour/contrib/hbqt/qth/QScrollBar.qth + * harbour/contrib/hbqt/qth/QSizeGrip.qth + * harbour/contrib/hbqt/qth/QSlider.qth + * harbour/contrib/hbqt/qth/QSpinBox.qth + * harbour/contrib/hbqt/qth/QSplitter.qth + * harbour/contrib/hbqt/qth/QTabBar.qth + * harbour/contrib/hbqt/qth/QTableView.qth + * harbour/contrib/hbqt/qth/QTableWidget.qth + * harbour/contrib/hbqt/qth/QTableWidgetItem.qth + * harbour/contrib/hbqt/qth/QTabWidget.qth + * harbour/contrib/hbqt/qth/QTextEdit.qth + * harbour/contrib/hbqt/qth/QTimeEdit.qth + * harbour/contrib/hbqt/qth/QToolBar.qth + * harbour/contrib/hbqt/qth/QToolBox.qth + * harbour/contrib/hbqt/qth/QToolButton.qth + * harbour/contrib/hbqt/qth/QTreeView.qth + * harbour/contrib/hbqt/qth/QTreeWidget.qth + * harbour/contrib/hbqt/qth/QTreeWidgetItem.qth + * harbour/contrib/hbqt/qth/QVBoxLayout.qth + + harbour/contrib/hbqt/qth/QWebPage.qth + + harbour/contrib/hbqt/qth/QWebView.qth + * harbour/contrib/hbqt/qth/QWidget.qth + + harbour/contrib/hbqt/qth/QWizard.qth + + Added | Changed source definitions to honor class construction. + + * harbour/contrib/hbqt/generator/hbqtgen.prg + ! Enhanced to generate .cpp | .h | .prg | .txt. + Now .cpp sources contain information about which functions + are still awaiting to be included plus the percentage in this form: + - 189/229 [ 73.78% ] + + * harbour/contrib/hbqt/generator/qt45.qtp + ! Added new .qth source definitions. + + * harbour/contrib/hbqt/tests/demoqt.prg + ! Auto generated demo program. Just play with it and + you will be surprised how simple it is to use QT; all + gadgets provided. + + SUMUP: Auto Generated Files: + - hbqt/gensource/hbqt_q*.cpp source files + - hbqt/doc/Q*.txt documentation on function calls + - hbqt/tests/demoqt.prg demonstration program + - hbqt/gensource/hbqt.h + - hbqt/gensource/hbqt_slots.h + - hbqt/gensource/hbqt_slots.cpp + - hbqt/gensource/hbqt_base.cpp + - hbqt/gensource/moc_slots.cpp + + PROGNOSIS: + - Stay in harbour/contrib/hbqt/generator + - hbmk2.exe hbqtgen + - del ..\gensource\*.* + - del ..\doc\*.* + - hbqtgen.exe qt45.qtp + - cd .. + - you should be staying at harbour/contrib/hbqt + - del *.* ( be careful that you are under the right folder ) + - copy gensource/*.* + - invoke QT specific build batch + - cd tests + - hbmk2.exe demoqt + - demoqt.exe + - . + - play with gadgets + + 2009-03-31 02:58 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * include/hbsetup.h % '( defined(__POCC_TARGET__) && __POCC_TARGET__ == 2 ) )' diff --git a/harbour/contrib/hbqt/Makefile b/harbour/contrib/hbqt/Makefile index c6562edecb..f763143921 100644 --- a/harbour/contrib/hbqt/Makefile +++ b/harbour/contrib/hbqt/Makefile @@ -46,20 +46,19 @@ ifneq ($(strip $(HB_INC_QT_OK)),) HB_USER_CFLAGS += $(foreach d, $(HB_INC_QT_OK), -I$(d)) CPP_SOURCES=\ - hbqt_base.cpp \ - hbqt_qdialog.cpp \ hbqt_qabstractbutton.cpp \ hbqt_qabstractitemview.cpp \ hbqt_qabstractprintdialog.cpp \ - hbqt_qwidget.cpp \ hbqt_qabstractscrollarea.cpp \ hbqt_qabstractslider.cpp \ hbqt_qabstractspinbox.cpp \ hbqt_qaction.cpp \ hbqt_qapplication.cpp \ hbqt_qboxlayout.cpp \ + hbqt_qbrush.cpp \ hbqt_qcalendarwidget.cpp \ hbqt_qcheckbox.cpp \ + hbqt_qcolor.cpp \ hbqt_qcolordialog.cpp \ hbqt_qcombobox.cpp \ hbqt_qcommandlinkbutton.cpp \ @@ -67,6 +66,7 @@ CPP_SOURCES=\ hbqt_qdateedit.cpp \ hbqt_qdatetimeedit.cpp \ hbqt_qdial.cpp \ + hbqt_qdialog.cpp \ hbqt_qdoublespinbox.cpp \ hbqt_qerrormessage.cpp \ hbqt_qfiledialog.cpp \ @@ -90,7 +90,10 @@ CPP_SOURCES=\ hbqt_qmenubar.cpp \ hbqt_qmessagebox.cpp \ hbqt_qobject.cpp \ + hbqt_qpaintdevice.cpp \ hbqt_qpagesetupdialog.cpp \ + hbqt_qpainter.cpp \ + hbqt_qpen.cpp \ hbqt_qprintdialog.cpp \ hbqt_qprintpreviewdialog.cpp \ hbqt_qprogressbar.cpp \ @@ -106,32 +109,108 @@ CPP_SOURCES=\ hbqt_qtabbar.cpp \ hbqt_qtableview.cpp \ hbqt_qtablewidget.cpp \ + hbqt_qtablewidgetitem.cpp \ + hbqt_qtabwidget.cpp \ hbqt_qtextedit.cpp \ hbqt_qtimeedit.cpp \ hbqt_qtoolbar.cpp \ hbqt_qtoolbox.cpp \ hbqt_qtoolbutton.cpp \ hbqt_qtreeview.cpp \ - hbqt_qvboxlayout.cpp \ - hbqt_qwebview.cpp \ - hbqt_qwizard.cpp \ - hbqt_slots.cpp \ - moc_slots.cpp \ - hbqt_utils.cpp \ hbqt_qtreewidget.cpp \ hbqt_qtreewidgetitem.cpp \ + hbqt_qvboxlayout.cpp \ + hbqt_qwebpage.cpp \ + hbqt_qwidget.cpp \ + hbqt_qwizard.cpp \ + hbqt_qwebview.cpp \ + hbqt_base.cpp \ + hbqt_utils.cpp \ + hbqt_slots.cpp \ + moc_slots.cpp \ C_HEADERS=\ hbqt.h \ - slots.h \ + hbqt_slots.h \ #PRG_HEADERS=\ -# hbqt.ch \ -# hbqtextern.ch \ +# hbqt.ch \ +# hbqtextern.ch \ -#PRG_SOURCES=\ -# xxx.prg \ +PRG_SOURCES=\ + TQAbstractButton.prg \ + TQAbstractItemView.prg \ + TQAbstractPrintDialog.prg \ + TQAbstractScrollArea.prg \ + TQAbstractSlider.prg \ + TQAbstractSpinBox.prg \ + TQAction.prg \ + TQBoxLayout.prg \ + TQCalendarWidget.prg \ + TQCheckBox.prg \ + TQColorDialog.prg \ + TQComboBox.prg \ + TQCommandLinkButton.prg \ + TQDateEdit.prg \ + TQDateTimeEdit.prg \ + TQDial.prg \ + TQDialog.prg \ + TQDoubleSpinBox.prg \ + TQErrorMessage.prg \ + TQFileDialog.prg \ + TQFocusFrame.prg \ + TQFontComboBox.prg \ + TQFontDialog.prg \ + TQFormLayout.prg \ + TQFrame.prg \ + TQGroupBox.prg \ + TQHBoxLayout.prg \ + TQInputDialog.prg \ + TQLabel.prg \ + TQLayout.prg \ + TQLayoutItem.prg \ + TQLCDNumber.prg \ + TQLineEdit.prg \ + TQListView.prg \ + TQMainWindow.prg \ + TQMenu.prg \ + TQMenuBar.prg \ + TQMessageBox.prg \ + TQObject.prg \ + TQPaintDevice.prg \ + TQPageSetupDialog.prg \ + TQPainter.prg \ + TQPrintDialog.prg \ + TQPrintPreviewDialog.prg \ + TQProgressBar.prg \ + TQProgressDialog.prg \ + TQPushButton.prg \ + TQRadioButton.prg \ + TQScrollArea.prg \ + TQScrollBar.prg \ + TQSizeGrip.prg \ + TQSlider.prg \ + TQSpinBox.prg \ + TQSplitter.prg \ + TQTabBar.prg \ + TQTableView.prg \ + TQTableWidget.prg \ + TQTableWidgetItem.prg \ + TQTabWidget.prg \ + TQTextEdit.prg \ + TQTimeEdit.prg \ + TQToolBar.prg \ + TQToolBox.prg \ + TQToolButton.prg \ + TQTreeView.prg \ + TQTreeWidget.prg \ + TQTreeWidgetItem.prg \ + TQVBoxLayout.prg \ + TQWebPage.prg \ + TQWidget.prg \ + TQWizard.prg \ + TQWebView.prg \ include $(TOP)$(ROOT)config/header.cf INSTALL_RULE_HEADERS := $(INSTALL_RULE) @@ -146,3 +225,4 @@ endif else include $(TOP)$(ROOT)config/none.cf endif + diff --git a/harbour/contrib/hbqt/TQAbstractButton.prg b/harbour/contrib/hbqt/TQAbstractButton.prg new file mode 100644 index 0000000000..fc0d0ec967 --- /dev/null +++ b/harbour/contrib/hbqt/TQAbstractButton.prg @@ -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 'hbclass.ch' + + +CLASS QAbstractButton INHERIT QWidget + + DATA pPtr + + METHOD New() + + METHOD autoExclusive() INLINE Qt_QAbstractButton_autoExclusive( ::pPtr ) + METHOD autoRepeat() INLINE Qt_QAbstractButton_autoRepeat( ::pPtr ) + METHOD autoRepeatDelay() INLINE Qt_QAbstractButton_autoRepeatDelay( ::pPtr ) + METHOD autoRepeatInterval() INLINE Qt_QAbstractButton_autoRepeatInterval( ::pPtr ) + METHOD group() INLINE Qt_QAbstractButton_group( ::pPtr ) + METHOD iconSize() INLINE Qt_QAbstractButton_iconSize( ::pPtr ) + METHOD isCheckable() INLINE Qt_QAbstractButton_isCheckable( ::pPtr ) + METHOD isChecked() INLINE Qt_QAbstractButton_isChecked( ::pPtr ) + METHOD isDown() INLINE Qt_QAbstractButton_isDown( ::pPtr ) + METHOD setAutoExclusive( lBool ) INLINE Qt_QAbstractButton_setAutoExclusive( ::pPtr, lBool ) + METHOD setAutoRepeat( lBool ) INLINE Qt_QAbstractButton_setAutoRepeat( ::pPtr, lBool ) + METHOD setAutoRepeatDelay( nInt ) INLINE Qt_QAbstractButton_setAutoRepeatDelay( ::pPtr, nInt ) + METHOD setAutoRepeatInterval( nInt ) INLINE Qt_QAbstractButton_setAutoRepeatInterval( ::pPtr, nInt ) + METHOD setCheckable( lBool ) INLINE Qt_QAbstractButton_setCheckable( ::pPtr, lBool ) + METHOD setDown( lBool ) INLINE Qt_QAbstractButton_setDown( ::pPtr, lBool ) + METHOD setIcon( cIcon ) INLINE Qt_QAbstractButton_setIcon( ::pPtr, cIcon ) + METHOD setText( cText ) INLINE Qt_QAbstractButton_setText( ::pPtr, cText ) + METHOD text() INLINE Qt_QAbstractButton_text( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QAbstractButton + + ::pPtr := Qt_QAbstractButton( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQAbstractItemView.prg b/harbour/contrib/hbqt/TQAbstractItemView.prg new file mode 100644 index 0000000000..3659f12a3d --- /dev/null +++ b/harbour/contrib/hbqt/TQAbstractItemView.prg @@ -0,0 +1,120 @@ +/* + * $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' + + +CLASS QAbstractItemView INHERIT QAbstractScrollArea + + DATA pPtr + + METHOD New() + + METHOD alternatingRowColors() INLINE Qt_QAbstractItemView_alternatingRowColors( ::pPtr ) + METHOD autoScrollMargin() INLINE Qt_QAbstractItemView_autoScrollMargin( ::pPtr ) + METHOD dragDropMode() INLINE Qt_QAbstractItemView_dragDropMode( ::pPtr ) + METHOD dragDropOverwriteMode() INLINE Qt_QAbstractItemView_dragDropOverwriteMode( ::pPtr ) + METHOD dragEnabled() INLINE Qt_QAbstractItemView_dragEnabled( ::pPtr ) + METHOD editTriggers() INLINE Qt_QAbstractItemView_editTriggers( ::pPtr ) + METHOD hasAutoScroll() INLINE Qt_QAbstractItemView_hasAutoScroll( ::pPtr ) + METHOD horizontalScrollMode() INLINE Qt_QAbstractItemView_horizontalScrollMode( ::pPtr ) + METHOD iconSize() INLINE Qt_QAbstractItemView_iconSize( ::pPtr ) + METHOD itemDelegate() INLINE Qt_QAbstractItemView_itemDelegate( ::pPtr ) + METHOD itemDelegateForColumn( nColumn ) INLINE Qt_QAbstractItemView_itemDelegateForColumn( ::pPtr, nColumn ) + METHOD itemDelegateForRow( nRow ) INLINE Qt_QAbstractItemView_itemDelegateForRow( ::pPtr, nRow ) + METHOD keyboardSearch( cSearch ) INLINE Qt_QAbstractItemView_keyboardSearch( ::pPtr, cSearch ) + METHOD model() INLINE Qt_QAbstractItemView_model( ::pPtr ) + METHOD selectionBehavior() INLINE Qt_QAbstractItemView_selectionBehavior( ::pPtr ) + METHOD selectionMode() INLINE Qt_QAbstractItemView_selectionMode( ::pPtr ) + METHOD selectionModel() INLINE Qt_QAbstractItemView_selectionModel( ::pPtr ) + METHOD setAlternatingRowColors( lEnable ) INLINE Qt_QAbstractItemView_setAlternatingRowColors( ::pPtr, lEnable ) + METHOD setAutoScroll( lEnable ) INLINE Qt_QAbstractItemView_setAutoScroll( ::pPtr, lEnable ) + METHOD setAutoScrollMargin( nMargin ) INLINE Qt_QAbstractItemView_setAutoScrollMargin( ::pPtr, nMargin ) + METHOD setDragDropMode( nDragDropMode ) INLINE Qt_QAbstractItemView_setDragDropMode( ::pPtr, nDragDropMode ) + METHOD setDragDropOverwriteMode( lOverwrite ) INLINE Qt_QAbstractItemView_setDragDropOverwriteMode( ::pPtr, lOverwrite ) + METHOD setDragEnabled( lEnable ) INLINE Qt_QAbstractItemView_setDragEnabled( ::pPtr, lEnable ) + METHOD setDropIndicatorShown( lEnable ) INLINE Qt_QAbstractItemView_setDropIndicatorShown( ::pPtr, lEnable ) + METHOD setEditTriggers( nEditTriggers ) INLINE Qt_QAbstractItemView_setEditTriggers( ::pPtr, nEditTriggers ) + METHOD setHorizontalScrollMode( nScrollMode ) INLINE Qt_QAbstractItemView_setHorizontalScrollMode( ::pPtr, nScrollMode ) + METHOD setIconSize( aSizeSize ) INLINE Qt_QAbstractItemView_setIconSize( ::pPtr, aSizeSize ) + METHOD setItemDelegate( pDelegate ) INLINE Qt_QAbstractItemView_setItemDelegate( ::pPtr, pDelegate ) + METHOD setItemDelegateForColumn( nColumn, pDelegate ) INLINE Qt_QAbstractItemView_setItemDelegateForColumn( ::pPtr, nColumn, pDelegate ) + METHOD setItemDelegateForRow( nRow, pDelegate ) INLINE Qt_QAbstractItemView_setItemDelegateForRow( ::pPtr, nRow, pDelegate ) + METHOD setModel( pModel ) INLINE Qt_QAbstractItemView_setModel( ::pPtr, pModel ) + METHOD setSelectionBehavior( nBehavior ) INLINE Qt_QAbstractItemView_setSelectionBehavior( ::pPtr, nBehavior ) + METHOD setSelectionMode( nMode ) INLINE Qt_QAbstractItemView_setSelectionMode( ::pPtr, nMode ) + METHOD setSelectionModel( pSelectionModel ) INLINE Qt_QAbstractItemView_setSelectionModel( ::pPtr, pSelectionModel ) + METHOD setTabKeyNavigation( lEnable ) INLINE Qt_QAbstractItemView_setTabKeyNavigation( ::pPtr, lEnable ) + METHOD setTextElideMode( nMode ) INLINE Qt_QAbstractItemView_setTextElideMode( ::pPtr, nMode ) + METHOD setVerticalScrollMode( nScrollMode ) INLINE Qt_QAbstractItemView_setVerticalScrollMode( ::pPtr, nScrollMode ) + METHOD showDropIndicator() INLINE Qt_QAbstractItemView_showDropIndicator( ::pPtr ) + METHOD sizeHintForColumn( nColumn ) INLINE Qt_QAbstractItemView_sizeHintForColumn( ::pPtr, nColumn ) + METHOD sizeHintForRow( nRow ) INLINE Qt_QAbstractItemView_sizeHintForRow( ::pPtr, nRow ) + METHOD tabKeyNavigation() INLINE Qt_QAbstractItemView_tabKeyNavigation( ::pPtr ) + METHOD textElideMode() INLINE Qt_QAbstractItemView_textElideMode( ::pPtr ) + METHOD verticalScrollMode() INLINE Qt_QAbstractItemView_verticalScrollMode( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QAbstractItemView + + ::pPtr := Qt_QAbstractItemView( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQAbstractPrintDialog.prg b/harbour/contrib/hbqt/TQAbstractPrintDialog.prg new file mode 100644 index 0000000000..2df9ee8a39 --- /dev/null +++ b/harbour/contrib/hbqt/TQAbstractPrintDialog.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' + + +CLASS QAbstractPrintDialog INHERIT QDialog + + DATA pPtr + + METHOD New() + + METHOD exec() INLINE Qt_QAbstractPrintDialog_exec( ::pPtr ) + METHOD fromPage() INLINE Qt_QAbstractPrintDialog_fromPage( ::pPtr ) + METHOD maxPage() INLINE Qt_QAbstractPrintDialog_maxPage( ::pPtr ) + METHOD minPage() INLINE Qt_QAbstractPrintDialog_minPage( ::pPtr ) + METHOD printRange() INLINE Qt_QAbstractPrintDialog_printRange( ::pPtr ) + METHOD printer() INLINE Qt_QAbstractPrintDialog_printer( ::pPtr ) + METHOD setFromTo( nFrom, nTo ) INLINE Qt_QAbstractPrintDialog_setFromTo( ::pPtr, nFrom, nTo ) + METHOD setMinMax( nMin, nMax ) INLINE Qt_QAbstractPrintDialog_setMinMax( ::pPtr, nMin, nMax ) + METHOD setPrintRange( nPrintRange ) INLINE Qt_QAbstractPrintDialog_setPrintRange( ::pPtr, nPrintRange ) + METHOD toPage() INLINE Qt_QAbstractPrintDialog_toPage( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QAbstractPrintDialog + + ::pPtr := Qt_QAbstractPrintDialog( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQAbstractScrollArea.prg b/harbour/contrib/hbqt/TQAbstractScrollArea.prg new file mode 100644 index 0000000000..c91c30604d --- /dev/null +++ b/harbour/contrib/hbqt/TQAbstractScrollArea.prg @@ -0,0 +1,91 @@ +/* + * $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' + + +CLASS QAbstractScrollArea INHERIT QFrame + + DATA pPtr + + METHOD New() + + METHOD addScrollBarWidget( pWidget, nAlignment ) INLINE Qt_QAbstractScrollArea_addScrollBarWidget( ::pPtr, pWidget, nAlignment ) + METHOD cornerWidget() INLINE Qt_QAbstractScrollArea_cornerWidget( ::pPtr ) + METHOD horizontalScrollBar() INLINE Qt_QAbstractScrollArea_horizontalScrollBar( ::pPtr ) + METHOD horizontalScrollBarPolicy() INLINE Qt_QAbstractScrollArea_horizontalScrollBarPolicy( ::pPtr ) + METHOD maximumViewportSize() INLINE Qt_QAbstractScrollArea_maximumViewportSize( ::pPtr ) + METHOD setCornerWidget( pWidget ) INLINE Qt_QAbstractScrollArea_setCornerWidget( ::pPtr, pWidget ) + METHOD setHorizontalScrollBar( pScrollBar ) INLINE Qt_QAbstractScrollArea_setHorizontalScrollBar( ::pPtr, pScrollBar ) + METHOD setHorizontalScrollBarPolicy( nQt_ScrollBarPolicy ) INLINE Qt_QAbstractScrollArea_setHorizontalScrollBarPolicy( ::pPtr, nQt_ScrollBarPolicy ) + METHOD setVerticalScrollBar( pScrollBar ) INLINE Qt_QAbstractScrollArea_setVerticalScrollBar( ::pPtr, pScrollBar ) + METHOD setVerticalScrollBarPolicy( nQt_ScrollBarPolicy ) INLINE Qt_QAbstractScrollArea_setVerticalScrollBarPolicy( ::pPtr, nQt_ScrollBarPolicy ) + METHOD setViewport( pWidget ) INLINE Qt_QAbstractScrollArea_setViewport( ::pPtr, pWidget ) + METHOD verticalScrollBar() INLINE Qt_QAbstractScrollArea_verticalScrollBar( ::pPtr ) + METHOD verticalScrollBarPolicy() INLINE Qt_QAbstractScrollArea_verticalScrollBarPolicy( ::pPtr ) + METHOD viewport() INLINE Qt_QAbstractScrollArea_viewport( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QAbstractScrollArea + + ::pPtr := Qt_QAbstractScrollArea( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQAbstractSlider.prg b/harbour/contrib/hbqt/TQAbstractSlider.prg new file mode 100644 index 0000000000..5c324c9986 --- /dev/null +++ b/harbour/contrib/hbqt/TQAbstractSlider.prg @@ -0,0 +1,99 @@ +/* + * $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' + + +CLASS QAbstractSlider INHERIT QWidget + + DATA pPtr + + METHOD New() + + METHOD hasTracking() INLINE Qt_QAbstractSlider_hasTracking( ::pPtr ) + METHOD invertedAppearance() INLINE Qt_QAbstractSlider_invertedAppearance( ::pPtr ) + METHOD invertedControls() INLINE Qt_QAbstractSlider_invertedControls( ::pPtr ) + METHOD isSliderDown() INLINE Qt_QAbstractSlider_isSliderDown( ::pPtr ) + METHOD maximum() INLINE Qt_QAbstractSlider_maximum( ::pPtr ) + METHOD minimum() INLINE Qt_QAbstractSlider_minimum( ::pPtr ) + METHOD orientation() INLINE Qt_QAbstractSlider_orientation( ::pPtr ) + METHOD pageStep() INLINE Qt_QAbstractSlider_pageStep( ::pPtr ) + METHOD setInvertedAppearance( lBool ) INLINE Qt_QAbstractSlider_setInvertedAppearance( ::pPtr, lBool ) + METHOD setInvertedControls( lBool ) INLINE Qt_QAbstractSlider_setInvertedControls( ::pPtr, lBool ) + METHOD setMaximum( nInt ) INLINE Qt_QAbstractSlider_setMaximum( ::pPtr, nInt ) + METHOD setMinimum( nInt ) INLINE Qt_QAbstractSlider_setMinimum( ::pPtr, nInt ) + METHOD setPageStep( nInt ) INLINE Qt_QAbstractSlider_setPageStep( ::pPtr, nInt ) + METHOD setRange( nMin, nMax ) INLINE Qt_QAbstractSlider_setRange( ::pPtr, nMin, nMax ) + METHOD setSingleStep( nInt ) INLINE Qt_QAbstractSlider_setSingleStep( ::pPtr, nInt ) + METHOD setSliderDown( lBool ) INLINE Qt_QAbstractSlider_setSliderDown( ::pPtr, lBool ) + METHOD setSliderPosition( nInt ) INLINE Qt_QAbstractSlider_setSliderPosition( ::pPtr, nInt ) + METHOD setTracking( lEnable ) INLINE Qt_QAbstractSlider_setTracking( ::pPtr, lEnable ) + METHOD singleStep() INLINE Qt_QAbstractSlider_singleStep( ::pPtr ) + METHOD sliderPosition() INLINE Qt_QAbstractSlider_sliderPosition( ::pPtr ) + METHOD triggerAction( nSliderAction ) INLINE Qt_QAbstractSlider_triggerAction( ::pPtr, nSliderAction ) + METHOD value() INLINE Qt_QAbstractSlider_value( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QAbstractSlider + + ::pPtr := Qt_QAbstractSlider( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQAbstractSpinBox.prg b/harbour/contrib/hbqt/TQAbstractSpinBox.prg new file mode 100644 index 0000000000..d2d105a713 --- /dev/null +++ b/harbour/contrib/hbqt/TQAbstractSpinBox.prg @@ -0,0 +1,99 @@ +/* + * $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' + + +CLASS QAbstractSpinBox INHERIT QWidget + + DATA pPtr + + METHOD New() + + METHOD alignment() INLINE Qt_QAbstractSpinBox_alignment( ::pPtr ) + METHOD buttonSymbols() INLINE Qt_QAbstractSpinBox_buttonSymbols( ::pPtr ) + METHOD correctionMode() INLINE Qt_QAbstractSpinBox_correctionMode( ::pPtr ) + METHOD hasAcceptableInput() INLINE Qt_QAbstractSpinBox_hasAcceptableInput( ::pPtr ) + METHOD hasFrame() INLINE Qt_QAbstractSpinBox_hasFrame( ::pPtr ) + METHOD interpretText() INLINE Qt_QAbstractSpinBox_interpretText( ::pPtr ) + METHOD isAccelerated() INLINE Qt_QAbstractSpinBox_isAccelerated( ::pPtr ) + METHOD isReadOnly() INLINE Qt_QAbstractSpinBox_isReadOnly( ::pPtr ) + METHOD keyboardTracking() INLINE Qt_QAbstractSpinBox_keyboardTracking( ::pPtr ) + METHOD setAccelerated( lOn ) INLINE Qt_QAbstractSpinBox_setAccelerated( ::pPtr, lOn ) + METHOD setAlignment( nFlag ) INLINE Qt_QAbstractSpinBox_setAlignment( ::pPtr, nFlag ) + METHOD setButtonSymbols( nButtonSymbols ) INLINE Qt_QAbstractSpinBox_setButtonSymbols( ::pPtr, nButtonSymbols ) + METHOD setCorrectionMode( nCorrectionMode ) INLINE Qt_QAbstractSpinBox_setCorrectionMode( ::pPtr, nCorrectionMode ) + METHOD setFrame( lBool ) INLINE Qt_QAbstractSpinBox_setFrame( ::pPtr, lBool ) + METHOD setKeyboardTracking( lKt ) INLINE Qt_QAbstractSpinBox_setKeyboardTracking( ::pPtr, lKt ) + METHOD setReadOnly( lR ) INLINE Qt_QAbstractSpinBox_setReadOnly( ::pPtr, lR ) + METHOD setSpecialValueText( cTxt ) INLINE Qt_QAbstractSpinBox_setSpecialValueText( ::pPtr, cTxt ) + METHOD setWrapping( lW ) INLINE Qt_QAbstractSpinBox_setWrapping( ::pPtr, lW ) + METHOD specialValueText() INLINE Qt_QAbstractSpinBox_specialValueText( ::pPtr ) + METHOD stepBy( nSteps ) INLINE Qt_QAbstractSpinBox_stepBy( ::pPtr, nSteps ) + METHOD text() INLINE Qt_QAbstractSpinBox_text( ::pPtr ) + METHOD wrapping() INLINE Qt_QAbstractSpinBox_wrapping( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QAbstractSpinBox + + ::pPtr := Qt_QAbstractSpinBox( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQAction.prg b/harbour/contrib/hbqt/TQAction.prg new file mode 100644 index 0000000000..2cb2b894f4 --- /dev/null +++ b/harbour/contrib/hbqt/TQAction.prg @@ -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 'hbclass.ch' + + +CLASS QAction INHERIT QObject + + DATA pPtr + + METHOD New() + + METHOD actionGroup() INLINE Qt_QAction_actionGroup( ::pPtr ) + METHOD activate( nActionEvent ) INLINE Qt_QAction_activate( ::pPtr, nActionEvent ) + METHOD autoRepeat() INLINE Qt_QAction_autoRepeat( ::pPtr ) + METHOD iconText() INLINE Qt_QAction_iconText( ::pPtr ) + METHOD isCheckable() INLINE Qt_QAction_isCheckable( ::pPtr ) + METHOD isChecked() INLINE Qt_QAction_isChecked( ::pPtr ) + METHOD isEnabled() INLINE Qt_QAction_isEnabled( ::pPtr ) + METHOD isIconVisibleInMenu() INLINE Qt_QAction_isIconVisibleInMenu( ::pPtr ) + METHOD isSeparator() INLINE Qt_QAction_isSeparator( ::pPtr ) + METHOD isVisible() INLINE Qt_QAction_isVisible( ::pPtr ) + METHOD menu() INLINE Qt_QAction_menu( ::pPtr ) + METHOD menuRole() INLINE Qt_QAction_menuRole( ::pPtr ) + METHOD parentWidget() INLINE Qt_QAction_parentWidget( ::pPtr ) + METHOD setActionGroup( pGroup ) INLINE Qt_QAction_setActionGroup( ::pPtr, pGroup ) + METHOD setAutoRepeat( lBool ) INLINE Qt_QAction_setAutoRepeat( ::pPtr, lBool ) + METHOD setCheckable( lBool ) INLINE Qt_QAction_setCheckable( ::pPtr, lBool ) + METHOD setIcon( cIcon ) INLINE Qt_QAction_setIcon( ::pPtr, cIcon ) + METHOD setIconText( cText ) INLINE Qt_QAction_setIconText( ::pPtr, cText ) + METHOD setIconVisibleInMenu( lVisible ) INLINE Qt_QAction_setIconVisibleInMenu( ::pPtr, lVisible ) + METHOD setMenu( pMenu ) INLINE Qt_QAction_setMenu( ::pPtr, pMenu ) + METHOD setMenuRole( nMenuRole ) INLINE Qt_QAction_setMenuRole( ::pPtr, nMenuRole ) + METHOD setSeparator( lB ) INLINE Qt_QAction_setSeparator( ::pPtr, lB ) + METHOD setShortcutContext( nContext ) INLINE Qt_QAction_setShortcutContext( ::pPtr, nContext ) + METHOD setShortcuts( nKey ) INLINE Qt_QAction_setShortcuts( ::pPtr, nKey ) + METHOD setStatusTip( cStatusTip ) INLINE Qt_QAction_setStatusTip( ::pPtr, cStatusTip ) + METHOD setText( cText ) INLINE Qt_QAction_setText( ::pPtr, cText ) + METHOD setToolTip( cTip ) INLINE Qt_QAction_setToolTip( ::pPtr, cTip ) + METHOD setWhatsThis( cWhat ) INLINE Qt_QAction_setWhatsThis( ::pPtr, cWhat ) + METHOD shortcutContext() INLINE Qt_QAction_shortcutContext( ::pPtr ) + METHOD showStatusText( pWidget ) INLINE Qt_QAction_showStatusText( ::pPtr, pWidget ) + METHOD statusTip() INLINE Qt_QAction_statusTip( ::pPtr ) + METHOD text() INLINE Qt_QAction_text( ::pPtr ) + METHOD toolTip() INLINE Qt_QAction_toolTip( ::pPtr ) + METHOD whatsThis() INLINE Qt_QAction_whatsThis( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QAction + + ::pPtr := Qt_QAction( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQBoxLayout.prg b/harbour/contrib/hbqt/TQBoxLayout.prg new file mode 100644 index 0000000000..fcaf8a56cf --- /dev/null +++ b/harbour/contrib/hbqt/TQBoxLayout.prg @@ -0,0 +1,97 @@ +/* + * $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' + + +CLASS QBoxLayout INHERIT QLayout + + DATA pPtr + + METHOD New() + + METHOD addLayout( pLayout, nStretch ) INLINE Qt_QBoxLayout_addLayout( ::pPtr, pLayout, nStretch ) + METHOD addSpacerItem( pSpacerItem ) INLINE Qt_QBoxLayout_addSpacerItem( ::pPtr, pSpacerItem ) + METHOD addSpacing( nSize ) INLINE Qt_QBoxLayout_addSpacing( ::pPtr, nSize ) + METHOD addStretch( nStretch ) INLINE Qt_QBoxLayout_addStretch( ::pPtr, nStretch ) + METHOD addStrut( nSize ) INLINE Qt_QBoxLayout_addStrut( ::pPtr, nSize ) + METHOD addWidget( pWidget, nStretch, nAlignment ) INLINE Qt_QBoxLayout_addWidget( ::pPtr, pWidget, nStretch, nAlignment ) + METHOD direction() INLINE Qt_QBoxLayout_direction( ::pPtr ) + METHOD insertLayout( nIndex, pLayout, nStretch ) INLINE Qt_QBoxLayout_insertLayout( ::pPtr, nIndex, pLayout, nStretch ) + METHOD insertSpacerItem( nIndex, pSpacerItem ) INLINE Qt_QBoxLayout_insertSpacerItem( ::pPtr, nIndex, pSpacerItem ) + METHOD insertSpacing( nIndex, nSize ) INLINE Qt_QBoxLayout_insertSpacing( ::pPtr, nIndex, nSize ) + METHOD insertStretch( nIndex, nStretch ) INLINE Qt_QBoxLayout_insertStretch( ::pPtr, nIndex, nStretch ) + METHOD insertWidget( nIndex, pWidget, nStretch, nAlignment ) INLINE Qt_QBoxLayout_insertWidget( ::pPtr, nIndex, pWidget, nStretch, nAlignment ) + METHOD invalidate() INLINE Qt_QBoxLayout_invalidate( ::pPtr ) + METHOD setDirection( nDirection ) INLINE Qt_QBoxLayout_setDirection( ::pPtr, nDirection ) + METHOD setSpacing( nSpacing ) INLINE Qt_QBoxLayout_setSpacing( ::pPtr, nSpacing ) + METHOD setStretch( nIndex, nStretch ) INLINE Qt_QBoxLayout_setStretch( ::pPtr, nIndex, nStretch ) + METHOD setStretchFactor( pWidget, nStretch ) INLINE Qt_QBoxLayout_setStretchFactor( ::pPtr, pWidget, nStretch ) + METHOD setStretchFactor_1( pLayout, nStretch ) INLINE Qt_QBoxLayout_setStretchFactor_1( ::pPtr, pLayout, nStretch ) + METHOD spacing() INLINE Qt_QBoxLayout_spacing( ::pPtr ) + METHOD stretch( nIndex ) INLINE Qt_QBoxLayout_stretch( ::pPtr, nIndex ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QBoxLayout + + ::pPtr := Qt_QBoxLayout( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQCalendarWidget.prg b/harbour/contrib/hbqt/TQCalendarWidget.prg new file mode 100644 index 0000000000..46290545cc --- /dev/null +++ b/harbour/contrib/hbqt/TQCalendarWidget.prg @@ -0,0 +1,93 @@ +/* + * $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' + + +CLASS QCalendarWidget INHERIT QWidget + + DATA pPtr + + METHOD New() + + METHOD dateEditAcceptDelay() INLINE Qt_QCalendarWidget_dateEditAcceptDelay( ::pPtr ) + METHOD firstDayOfWeek() INLINE Qt_QCalendarWidget_firstDayOfWeek( ::pPtr ) + METHOD horizontalHeaderFormat() INLINE Qt_QCalendarWidget_horizontalHeaderFormat( ::pPtr ) + METHOD isDateEditEnabled() INLINE Qt_QCalendarWidget_isDateEditEnabled( ::pPtr ) + METHOD isGridVisible() INLINE Qt_QCalendarWidget_isGridVisible( ::pPtr ) + METHOD isNavigationBarVisible() INLINE Qt_QCalendarWidget_isNavigationBarVisible( ::pPtr ) + METHOD monthShown() INLINE Qt_QCalendarWidget_monthShown( ::pPtr ) + METHOD selectionMode() INLINE Qt_QCalendarWidget_selectionMode( ::pPtr ) + METHOD setDateEditAcceptDelay( nDelay ) INLINE Qt_QCalendarWidget_setDateEditAcceptDelay( ::pPtr, nDelay ) + METHOD setDateEditEnabled( lEnable ) INLINE Qt_QCalendarWidget_setDateEditEnabled( ::pPtr, lEnable ) + METHOD setFirstDayOfWeek( nDayOfWeek ) INLINE Qt_QCalendarWidget_setFirstDayOfWeek( ::pPtr, nDayOfWeek ) + METHOD setHorizontalHeaderFormat( nHorizontalHeaderFormat ) INLINE Qt_QCalendarWidget_setHorizontalHeaderFormat( ::pPtr, nHorizontalHeaderFormat ) + METHOD setSelectionMode( nSelectionMode ) INLINE Qt_QCalendarWidget_setSelectionMode( ::pPtr, nSelectionMode ) + METHOD setVerticalHeaderFormat( nVerticalHeaderFormat ) INLINE Qt_QCalendarWidget_setVerticalHeaderFormat( ::pPtr, nVerticalHeaderFormat ) + METHOD verticalHeaderFormat() INLINE Qt_QCalendarWidget_verticalHeaderFormat( ::pPtr ) + METHOD yearShown() INLINE Qt_QCalendarWidget_yearShown( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QCalendarWidget + + ::pPtr := Qt_QCalendarWidget( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQCheckBox.prg b/harbour/contrib/hbqt/TQCheckBox.prg new file mode 100644 index 0000000000..d1e7010f9e --- /dev/null +++ b/harbour/contrib/hbqt/TQCheckBox.prg @@ -0,0 +1,81 @@ +/* + * $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' + + +CLASS QCheckBox INHERIT QAbstractButton + + DATA pPtr + + METHOD New() + + METHOD checkState() INLINE Qt_QCheckBox_checkState( ::pPtr ) + METHOD isTristate() INLINE Qt_QCheckBox_isTristate( ::pPtr ) + METHOD setCheckState( nState ) INLINE Qt_QCheckBox_setCheckState( ::pPtr, nState ) + METHOD setTristate( lY ) INLINE Qt_QCheckBox_setTristate( ::pPtr, lY ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QCheckBox + + ::pPtr := Qt_QCheckBox( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQColorDialog.prg b/harbour/contrib/hbqt/TQColorDialog.prg new file mode 100644 index 0000000000..20549009c9 --- /dev/null +++ b/harbour/contrib/hbqt/TQColorDialog.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' + + +CLASS QColorDialog INHERIT QDialog + + DATA pPtr + + METHOD New() + + METHOD open() INLINE Qt_QColorDialog_open( ::pPtr ) + METHOD open_1( pReceiver, pMember ) INLINE Qt_QColorDialog_open_1( ::pPtr, pReceiver, pMember ) + METHOD options() INLINE Qt_QColorDialog_options( ::pPtr ) + METHOD setOption( nColorDialogOption, lOn ) INLINE Qt_QColorDialog_setOption( ::pPtr, nColorDialogOption, lOn ) + METHOD setOptions( nColorDialogOptions ) INLINE Qt_QColorDialog_setOptions( ::pPtr, nColorDialogOptions ) + METHOD setVisible( lVisible ) INLINE Qt_QColorDialog_setVisible( ::pPtr, lVisible ) + METHOD testOption( nColorDialogOption ) INLINE Qt_QColorDialog_testOption( ::pPtr, nColorDialogOption ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QColorDialog + + ::pPtr := Qt_QColorDialog( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQComboBox.prg b/harbour/contrib/hbqt/TQComboBox.prg new file mode 100644 index 0000000000..018eeeb203 --- /dev/null +++ b/harbour/contrib/hbqt/TQComboBox.prg @@ -0,0 +1,119 @@ +/* + * $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' + + +CLASS QComboBox INHERIT QWidget + + DATA pPtr + + METHOD New() + + METHOD completer() INLINE Qt_QComboBox_completer( ::pPtr ) + METHOD count() INLINE Qt_QComboBox_count( ::pPtr ) + METHOD currentIndex() INLINE Qt_QComboBox_currentIndex( ::pPtr ) + METHOD currentText() INLINE Qt_QComboBox_currentText( ::pPtr ) + METHOD duplicatesEnabled() INLINE Qt_QComboBox_duplicatesEnabled( ::pPtr ) + METHOD hasFrame() INLINE Qt_QComboBox_hasFrame( ::pPtr ) + METHOD hidePopup() INLINE Qt_QComboBox_hidePopup( ::pPtr ) + METHOD iconSize() INLINE Qt_QComboBox_iconSize( ::pPtr ) + METHOD insertPolicy() INLINE Qt_QComboBox_insertPolicy( ::pPtr ) + METHOD insertSeparator( nIndex ) INLINE Qt_QComboBox_insertSeparator( ::pPtr, nIndex ) + METHOD isEditable() INLINE Qt_QComboBox_isEditable( ::pPtr ) + METHOD itemDelegate() INLINE Qt_QComboBox_itemDelegate( ::pPtr ) + METHOD itemText( nIndex ) INLINE Qt_QComboBox_itemText( ::pPtr, nIndex ) + METHOD lineEdit() INLINE Qt_QComboBox_lineEdit( ::pPtr ) + METHOD maxCount() INLINE Qt_QComboBox_maxCount( ::pPtr ) + METHOD maxVisibleItems() INLINE Qt_QComboBox_maxVisibleItems( ::pPtr ) + METHOD minimumContentsLength() INLINE Qt_QComboBox_minimumContentsLength( ::pPtr ) + METHOD model() INLINE Qt_QComboBox_model( ::pPtr ) + METHOD modelColumn() INLINE Qt_QComboBox_modelColumn( ::pPtr ) + METHOD removeItem( nIndex ) INLINE Qt_QComboBox_removeItem( ::pPtr, nIndex ) + METHOD setCompleter( pCompleter ) INLINE Qt_QComboBox_setCompleter( ::pPtr, pCompleter ) + METHOD setDuplicatesEnabled( lEnable ) INLINE Qt_QComboBox_setDuplicatesEnabled( ::pPtr, lEnable ) + METHOD setEditable( lEditable ) INLINE Qt_QComboBox_setEditable( ::pPtr, lEditable ) + METHOD setFrame( lBool ) INLINE Qt_QComboBox_setFrame( ::pPtr, lBool ) + METHOD setIconSize( aSizeSize ) INLINE Qt_QComboBox_setIconSize( ::pPtr, aSizeSize ) + METHOD setInsertPolicy( nInsertPolicy ) INLINE Qt_QComboBox_setInsertPolicy( ::pPtr, nInsertPolicy ) + METHOD setItemDelegate( pDelegate ) INLINE Qt_QComboBox_setItemDelegate( ::pPtr, pDelegate ) + METHOD setItemIcon( nIndex, cIcon ) INLINE Qt_QComboBox_setItemIcon( ::pPtr, nIndex, cIcon ) + METHOD setItemText( nIndex, cText ) INLINE Qt_QComboBox_setItemText( ::pPtr, nIndex, cText ) + METHOD setLineEdit( pEdit ) INLINE Qt_QComboBox_setLineEdit( ::pPtr, pEdit ) + METHOD setMaxCount( nMax ) INLINE Qt_QComboBox_setMaxCount( ::pPtr, nMax ) + METHOD setMaxVisibleItems( nMaxItems ) INLINE Qt_QComboBox_setMaxVisibleItems( ::pPtr, nMaxItems ) + METHOD setMinimumContentsLength( nCharacters ) INLINE Qt_QComboBox_setMinimumContentsLength( ::pPtr, nCharacters ) + METHOD setModel( pModel ) INLINE Qt_QComboBox_setModel( ::pPtr, pModel ) + METHOD setModelColumn( nVisibleColumn ) INLINE Qt_QComboBox_setModelColumn( ::pPtr, nVisibleColumn ) + METHOD setSizeAdjustPolicy( nSizeAdjustPolicy ) INLINE Qt_QComboBox_setSizeAdjustPolicy( ::pPtr, nSizeAdjustPolicy ) + METHOD setValidator( pValidator ) INLINE Qt_QComboBox_setValidator( ::pPtr, pValidator ) + METHOD setView( pItemView ) INLINE Qt_QComboBox_setView( ::pPtr, pItemView ) + METHOD showPopup() INLINE Qt_QComboBox_showPopup( ::pPtr ) + METHOD sizeAdjustPolicy() INLINE Qt_QComboBox_sizeAdjustPolicy( ::pPtr ) + METHOD validator() INLINE Qt_QComboBox_validator( ::pPtr ) + METHOD view() INLINE Qt_QComboBox_view( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QComboBox + + ::pPtr := Qt_QComboBox( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQCommandLinkButton.prg b/harbour/contrib/hbqt/TQCommandLinkButton.prg new file mode 100644 index 0000000000..79d3155706 --- /dev/null +++ b/harbour/contrib/hbqt/TQCommandLinkButton.prg @@ -0,0 +1,79 @@ +/* + * $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' + + +CLASS QCommandLinkButton INHERIT QPushButton + + DATA pPtr + + METHOD New() + + METHOD description() INLINE Qt_QCommandLinkButton_description( ::pPtr ) + METHOD setDescription( cDescription ) INLINE Qt_QCommandLinkButton_setDescription( ::pPtr, cDescription ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QCommandLinkButton + + ::pPtr := Qt_QCommandLinkButton( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQDateEdit.prg b/harbour/contrib/hbqt/TQDateEdit.prg new file mode 100644 index 0000000000..a2ba4a5127 --- /dev/null +++ b/harbour/contrib/hbqt/TQDateEdit.prg @@ -0,0 +1,77 @@ +/* + * $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' + + +CLASS QDateEdit INHERIT QDateTimeEdit + + DATA pPtr + + METHOD New() + + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QDateEdit + + ::pPtr := Qt_QDateEdit( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQDateTimeEdit.prg b/harbour/contrib/hbqt/TQDateTimeEdit.prg new file mode 100644 index 0000000000..65ca21294d --- /dev/null +++ b/harbour/contrib/hbqt/TQDateTimeEdit.prg @@ -0,0 +1,100 @@ +/* + * $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' + + +CLASS QDateTimeEdit INHERIT QAbstractSpinBox + + DATA pPtr + + METHOD New() + + METHOD calendarPopup() INLINE Qt_QDateTimeEdit_calendarPopup( ::pPtr ) + METHOD calendarWidget() INLINE Qt_QDateTimeEdit_calendarWidget( ::pPtr ) + METHOD clearMaximumDate() INLINE Qt_QDateTimeEdit_clearMaximumDate( ::pPtr ) + METHOD clearMaximumDateTime() INLINE Qt_QDateTimeEdit_clearMaximumDateTime( ::pPtr ) + METHOD clearMaximumTime() INLINE Qt_QDateTimeEdit_clearMaximumTime( ::pPtr ) + METHOD clearMinimumDate() INLINE Qt_QDateTimeEdit_clearMinimumDate( ::pPtr ) + METHOD clearMinimumDateTime() INLINE Qt_QDateTimeEdit_clearMinimumDateTime( ::pPtr ) + METHOD clearMinimumTime() INLINE Qt_QDateTimeEdit_clearMinimumTime( ::pPtr ) + METHOD currentSection() INLINE Qt_QDateTimeEdit_currentSection( ::pPtr ) + METHOD currentSectionIndex() INLINE Qt_QDateTimeEdit_currentSectionIndex( ::pPtr ) + METHOD displayFormat() INLINE Qt_QDateTimeEdit_displayFormat( ::pPtr ) + METHOD displayedSections() INLINE Qt_QDateTimeEdit_displayedSections( ::pPtr ) + METHOD sectionAt( nIndex ) INLINE Qt_QDateTimeEdit_sectionAt( ::pPtr, nIndex ) + METHOD sectionCount() INLINE Qt_QDateTimeEdit_sectionCount( ::pPtr ) + METHOD sectionText( nSection ) INLINE Qt_QDateTimeEdit_sectionText( ::pPtr, nSection ) + METHOD setCalendarPopup( lEnable ) INLINE Qt_QDateTimeEdit_setCalendarPopup( ::pPtr, lEnable ) + METHOD setCalendarWidget( pCalendarWidget ) INLINE Qt_QDateTimeEdit_setCalendarWidget( ::pPtr, pCalendarWidget ) + METHOD setCurrentSection( nSection ) INLINE Qt_QDateTimeEdit_setCurrentSection( ::pPtr, nSection ) + METHOD setCurrentSectionIndex( nIndex ) INLINE Qt_QDateTimeEdit_setCurrentSectionIndex( ::pPtr, nIndex ) + METHOD setDisplayFormat( cFormat ) INLINE Qt_QDateTimeEdit_setDisplayFormat( ::pPtr, cFormat ) + METHOD setSelectedSection( nSection ) INLINE Qt_QDateTimeEdit_setSelectedSection( ::pPtr, nSection ) + METHOD setTimeSpec( nSpec ) INLINE Qt_QDateTimeEdit_setTimeSpec( ::pPtr, nSpec ) + METHOD timeSpec() INLINE Qt_QDateTimeEdit_timeSpec( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QDateTimeEdit + + ::pPtr := Qt_QDateTimeEdit( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQDial.prg b/harbour/contrib/hbqt/TQDial.prg new file mode 100644 index 0000000000..275b8a9e25 --- /dev/null +++ b/harbour/contrib/hbqt/TQDial.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' + + +CLASS QDial INHERIT QAbstractSlider + + DATA pPtr + + METHOD New() + + METHOD notchSize() INLINE Qt_QDial_notchSize( ::pPtr ) + METHOD notchTarget() INLINE Qt_QDial_notchTarget( ::pPtr ) + METHOD notchesVisible() INLINE Qt_QDial_notchesVisible( ::pPtr ) + METHOD setNotchTarget( nTarget ) INLINE Qt_QDial_setNotchTarget( ::pPtr, nTarget ) + METHOD wrapping() INLINE Qt_QDial_wrapping( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QDial + + ::pPtr := Qt_QDial( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQDialog.prg b/harbour/contrib/hbqt/TQDialog.prg new file mode 100644 index 0000000000..a32a65e791 --- /dev/null +++ b/harbour/contrib/hbqt/TQDialog.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' + + +CLASS QDialog INHERIT QWidget + + DATA pPtr + + METHOD New() + + METHOD isSizeGripEnabled() INLINE Qt_QDialog_isSizeGripEnabled( ::pPtr ) + METHOD result() INLINE Qt_QDialog_result( ::pPtr ) + METHOD setModal( lModal ) INLINE Qt_QDialog_setModal( ::pPtr, lModal ) + METHOD setResult( nI ) INLINE Qt_QDialog_setResult( ::pPtr, nI ) + METHOD setSizeGripEnabled( lBool ) INLINE Qt_QDialog_setSizeGripEnabled( ::pPtr, lBool ) + METHOD accept() INLINE Qt_QDialog_accept( ::pPtr ) + METHOD done( nR ) INLINE Qt_QDialog_done( ::pPtr, nR ) + METHOD exec() INLINE Qt_QDialog_exec( ::pPtr ) + METHOD open() INLINE Qt_QDialog_open( ::pPtr ) + METHOD reject() INLINE Qt_QDialog_reject( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QDialog + + ::pPtr := Qt_QDialog( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQDoubleSpinBox.prg b/harbour/contrib/hbqt/TQDoubleSpinBox.prg new file mode 100644 index 0000000000..d2801f5186 --- /dev/null +++ b/harbour/contrib/hbqt/TQDoubleSpinBox.prg @@ -0,0 +1,94 @@ +/* + * $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' + + +CLASS QDoubleSpinBox INHERIT QAbstractSpinBox + + DATA pPtr + + METHOD New() + + METHOD cleanText() INLINE Qt_QDoubleSpinBox_cleanText( ::pPtr ) + METHOD decimals() INLINE Qt_QDoubleSpinBox_decimals( ::pPtr ) + METHOD maximum() INLINE Qt_QDoubleSpinBox_maximum( ::pPtr ) + METHOD minimum() INLINE Qt_QDoubleSpinBox_minimum( ::pPtr ) + METHOD prefix() INLINE Qt_QDoubleSpinBox_prefix( ::pPtr ) + METHOD setDecimals( nPrec ) INLINE Qt_QDoubleSpinBox_setDecimals( ::pPtr, nPrec ) + METHOD setMaximum( nMax ) INLINE Qt_QDoubleSpinBox_setMaximum( ::pPtr, nMax ) + METHOD setMinimum( nMin ) INLINE Qt_QDoubleSpinBox_setMinimum( ::pPtr, nMin ) + METHOD setPrefix( cPrefix ) INLINE Qt_QDoubleSpinBox_setPrefix( ::pPtr, cPrefix ) + METHOD setRange( nMinimum, nMaximum ) INLINE Qt_QDoubleSpinBox_setRange( ::pPtr, nMinimum, nMaximum ) + METHOD setSingleStep( nVal ) INLINE Qt_QDoubleSpinBox_setSingleStep( ::pPtr, nVal ) + METHOD setSuffix( cSuffix ) INLINE Qt_QDoubleSpinBox_setSuffix( ::pPtr, cSuffix ) + METHOD singleStep() INLINE Qt_QDoubleSpinBox_singleStep( ::pPtr ) + METHOD suffix() INLINE Qt_QDoubleSpinBox_suffix( ::pPtr ) + METHOD textFromValue( nValue ) INLINE Qt_QDoubleSpinBox_textFromValue( ::pPtr, nValue ) + METHOD value() INLINE Qt_QDoubleSpinBox_value( ::pPtr ) + METHOD valueFromText( cText ) INLINE Qt_QDoubleSpinBox_valueFromText( ::pPtr, cText ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QDoubleSpinBox + + ::pPtr := Qt_QDoubleSpinBox( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQErrorMessage.prg b/harbour/contrib/hbqt/TQErrorMessage.prg new file mode 100644 index 0000000000..23d879d523 --- /dev/null +++ b/harbour/contrib/hbqt/TQErrorMessage.prg @@ -0,0 +1,77 @@ +/* + * $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' + + +CLASS QErrorMessage INHERIT QDialog + + DATA pPtr + + METHOD New() + + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QErrorMessage + + ::pPtr := Qt_QErrorMessage( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQFileDialog.prg b/harbour/contrib/hbqt/TQFileDialog.prg new file mode 100644 index 0000000000..b3cccb6d6c --- /dev/null +++ b/harbour/contrib/hbqt/TQFileDialog.prg @@ -0,0 +1,113 @@ +/* + * $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' + + +CLASS QFileDialog INHERIT QDialog + + DATA pPtr + + METHOD New() + + METHOD acceptMode() INLINE Qt_QFileDialog_acceptMode( ::pPtr ) + METHOD confirmOverwrite() INLINE Qt_QFileDialog_confirmOverwrite( ::pPtr ) + METHOD defaultSuffix() INLINE Qt_QFileDialog_defaultSuffix( ::pPtr ) + METHOD fileMode() INLINE Qt_QFileDialog_fileMode( ::pPtr ) + METHOD filter() INLINE Qt_QFileDialog_filter( ::pPtr ) + METHOD iconProvider() INLINE Qt_QFileDialog_iconProvider( ::pPtr ) + METHOD isNameFilterDetailsVisible() INLINE Qt_QFileDialog_isNameFilterDetailsVisible( ::pPtr ) + METHOD isReadOnly() INLINE Qt_QFileDialog_isReadOnly( ::pPtr ) + METHOD itemDelegate() INLINE Qt_QFileDialog_itemDelegate( ::pPtr ) + METHOD labelText( nDialogLabel ) INLINE Qt_QFileDialog_labelText( ::pPtr, nDialogLabel ) + METHOD open( pReceiver, pMember ) INLINE Qt_QFileDialog_open( ::pPtr, pReceiver, pMember ) + METHOD options() INLINE Qt_QFileDialog_options( ::pPtr ) + METHOD proxyModel() INLINE Qt_QFileDialog_proxyModel( ::pPtr ) + METHOD resolveSymlinks() INLINE Qt_QFileDialog_resolveSymlinks( ::pPtr ) + METHOD selectFile( cFilename ) INLINE Qt_QFileDialog_selectFile( ::pPtr, cFilename ) + METHOD selectNameFilter( cFilter ) INLINE Qt_QFileDialog_selectNameFilter( ::pPtr, cFilter ) + METHOD selectedNameFilter() INLINE Qt_QFileDialog_selectedNameFilter( ::pPtr ) + METHOD setAcceptMode( nAcceptMode ) INLINE Qt_QFileDialog_setAcceptMode( ::pPtr, nAcceptMode ) + METHOD setConfirmOverwrite( lEnabled ) INLINE Qt_QFileDialog_setConfirmOverwrite( ::pPtr, lEnabled ) + METHOD setDefaultSuffix( cSuffix ) INLINE Qt_QFileDialog_setDefaultSuffix( ::pPtr, cSuffix ) + METHOD setDirectory( cDirectory ) INLINE Qt_QFileDialog_setDirectory( ::pPtr, cDirectory ) + METHOD setFileMode( nFileMode ) INLINE Qt_QFileDialog_setFileMode( ::pPtr, nFileMode ) + METHOD setFilter( nFilters ) INLINE Qt_QFileDialog_setFilter( ::pPtr, nFilters ) + METHOD setIconProvider( pProvider ) INLINE Qt_QFileDialog_setIconProvider( ::pPtr, pProvider ) + METHOD setItemDelegate( pDelegate ) INLINE Qt_QFileDialog_setItemDelegate( ::pPtr, pDelegate ) + METHOD setLabelText( nDialogLabel, cText ) INLINE Qt_QFileDialog_setLabelText( ::pPtr, nDialogLabel, cText ) + METHOD setNameFilter( cFilter ) INLINE Qt_QFileDialog_setNameFilter( ::pPtr, cFilter ) + METHOD setNameFilterDetailsVisible( lEnabled ) INLINE Qt_QFileDialog_setNameFilterDetailsVisible( ::pPtr, lEnabled ) + METHOD setOption( nOption, lOn ) INLINE Qt_QFileDialog_setOption( ::pPtr, nOption, lOn ) + METHOD setOptions( nOptions ) INLINE Qt_QFileDialog_setOptions( ::pPtr, nOptions ) + METHOD setProxyModel( pProxyModel ) INLINE Qt_QFileDialog_setProxyModel( ::pPtr, pProxyModel ) + METHOD setReadOnly( lEnabled ) INLINE Qt_QFileDialog_setReadOnly( ::pPtr, lEnabled ) + METHOD setResolveSymlinks( lEnabled ) INLINE Qt_QFileDialog_setResolveSymlinks( ::pPtr, lEnabled ) + METHOD setViewMode( nViewMode ) INLINE Qt_QFileDialog_setViewMode( ::pPtr, nViewMode ) + METHOD testOption( nOption ) INLINE Qt_QFileDialog_testOption( ::pPtr, nOption ) + METHOD viewMode() INLINE Qt_QFileDialog_viewMode( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QFileDialog + + ::pPtr := Qt_QFileDialog( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQFocusFrame.prg b/harbour/contrib/hbqt/TQFocusFrame.prg new file mode 100644 index 0000000000..5607af77d4 --- /dev/null +++ b/harbour/contrib/hbqt/TQFocusFrame.prg @@ -0,0 +1,79 @@ +/* + * $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' + + +CLASS QFocusFrame INHERIT QWidget + + DATA pPtr + + METHOD New() + + METHOD setWidget( pWidget ) INLINE Qt_QFocusFrame_setWidget( ::pPtr, pWidget ) + METHOD widget() INLINE Qt_QFocusFrame_widget( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QFocusFrame + + ::pPtr := Qt_QFocusFrame( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQFontComboBox.prg b/harbour/contrib/hbqt/TQFontComboBox.prg new file mode 100644 index 0000000000..549c1731b7 --- /dev/null +++ b/harbour/contrib/hbqt/TQFontComboBox.prg @@ -0,0 +1,81 @@ +/* + * $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' + + +CLASS QFontComboBox INHERIT QComboBox + + DATA pPtr + + METHOD New() + + METHOD fontFilters() INLINE Qt_QFontComboBox_fontFilters( ::pPtr ) + METHOD setFontFilters( nFontFilters ) INLINE Qt_QFontComboBox_setFontFilters( ::pPtr, nFontFilters ) + METHOD setWritingSystem( nScript ) INLINE Qt_QFontComboBox_setWritingSystem( ::pPtr, nScript ) + METHOD writingSystem() INLINE Qt_QFontComboBox_writingSystem( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QFontComboBox + + ::pPtr := Qt_QFontComboBox( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQFontDialog.prg b/harbour/contrib/hbqt/TQFontDialog.prg new file mode 100644 index 0000000000..921572f082 --- /dev/null +++ b/harbour/contrib/hbqt/TQFontDialog.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' + + +CLASS QFontDialog INHERIT QDialog + + DATA pPtr + + METHOD New() + + METHOD open( pReceiver, pMember ) INLINE Qt_QFontDialog_open( ::pPtr, pReceiver, pMember ) + METHOD options() INLINE Qt_QFontDialog_options( ::pPtr ) + METHOD setOption( nFontDialogOption, lOn ) INLINE Qt_QFontDialog_setOption( ::pPtr, nFontDialogOption, lOn ) + METHOD setOptions( nFontDialogOptions ) INLINE Qt_QFontDialog_setOptions( ::pPtr, nFontDialogOptions ) + METHOD testOption( nFontDialogOption ) INLINE Qt_QFontDialog_testOption( ::pPtr, nFontDialogOption ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QFontDialog + + ::pPtr := Qt_QFontDialog( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQFormLayout.prg b/harbour/contrib/hbqt/TQFormLayout.prg new file mode 100644 index 0000000000..e0ce039869 --- /dev/null +++ b/harbour/contrib/hbqt/TQFormLayout.prg @@ -0,0 +1,110 @@ +/* + * $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' + + +CLASS QFormLayout INHERIT QLayout + + DATA pPtr + + METHOD New() + + METHOD addRow( pLabel, pField ) INLINE Qt_QFormLayout_addRow( ::pPtr, pLabel, pField ) + METHOD addRow_1( pLabel, pField ) INLINE Qt_QFormLayout_addRow_1( ::pPtr, pLabel, pField ) + METHOD addRow_2( cLabelText, pField ) INLINE Qt_QFormLayout_addRow_2( ::pPtr, cLabelText, pField ) + METHOD addRow_3( cLabelText, pField ) INLINE Qt_QFormLayout_addRow_3( ::pPtr, cLabelText, pField ) + METHOD addRow_4( pWidget ) INLINE Qt_QFormLayout_addRow_4( ::pPtr, pWidget ) + METHOD addRow_5( pLayout ) INLINE Qt_QFormLayout_addRow_5( ::pPtr, pLayout ) + METHOD fieldGrowthPolicy() INLINE Qt_QFormLayout_fieldGrowthPolicy( ::pPtr ) + METHOD formAlignment() INLINE Qt_QFormLayout_formAlignment( ::pPtr ) + METHOD horizontalSpacing() INLINE Qt_QFormLayout_horizontalSpacing( ::pPtr ) + METHOD insertRow( nRow, pLabel, pField ) INLINE Qt_QFormLayout_insertRow( ::pPtr, nRow, pLabel, pField ) + METHOD insertRow_1( nRow, pLabel, pField ) INLINE Qt_QFormLayout_insertRow_1( ::pPtr, nRow, pLabel, pField ) + METHOD insertRow_2( nRow, cLabelText, pField ) INLINE Qt_QFormLayout_insertRow_2( ::pPtr, nRow, cLabelText, pField ) + METHOD insertRow_3( nRow, cLabelText, pField ) INLINE Qt_QFormLayout_insertRow_3( ::pPtr, nRow, cLabelText, pField ) + METHOD insertRow_4( nRow, pWidget ) INLINE Qt_QFormLayout_insertRow_4( ::pPtr, nRow, pWidget ) + METHOD insertRow_5( nRow, pLayout ) INLINE Qt_QFormLayout_insertRow_5( ::pPtr, nRow, pLayout ) + METHOD itemAt( nRow, nItemRole ) INLINE Qt_QFormLayout_itemAt( ::pPtr, nRow, nItemRole ) + METHOD labelAlignment() INLINE Qt_QFormLayout_labelAlignment( ::pPtr ) + METHOD labelForField( pField ) INLINE Qt_QFormLayout_labelForField( ::pPtr, pField ) + METHOD labelForField_1( pField ) INLINE Qt_QFormLayout_labelForField_1( ::pPtr, pField ) + METHOD rowCount() INLINE Qt_QFormLayout_rowCount( ::pPtr ) + METHOD rowWrapPolicy() INLINE Qt_QFormLayout_rowWrapPolicy( ::pPtr ) + METHOD setFieldGrowthPolicy( nFieldGrowthPolicy ) INLINE Qt_QFormLayout_setFieldGrowthPolicy( ::pPtr, nFieldGrowthPolicy ) + METHOD setFormAlignment( nAlignment ) INLINE Qt_QFormLayout_setFormAlignment( ::pPtr, nAlignment ) + METHOD setHorizontalSpacing( nSpacing ) INLINE Qt_QFormLayout_setHorizontalSpacing( ::pPtr, nSpacing ) + METHOD setItem( nRow, nItemRole, pItem ) INLINE Qt_QFormLayout_setItem( ::pPtr, nRow, nItemRole, pItem ) + METHOD setLabelAlignment( nAlignment ) INLINE Qt_QFormLayout_setLabelAlignment( ::pPtr, nAlignment ) + METHOD setLayout( nRow, nItemRole, pLayout ) INLINE Qt_QFormLayout_setLayout( ::pPtr, nRow, nItemRole, pLayout ) + METHOD setRowWrapPolicy( nRowWrapPolicy ) INLINE Qt_QFormLayout_setRowWrapPolicy( ::pPtr, nRowWrapPolicy ) + METHOD setSpacing( nSpacing ) INLINE Qt_QFormLayout_setSpacing( ::pPtr, nSpacing ) + METHOD setVerticalSpacing( nSpacing ) INLINE Qt_QFormLayout_setVerticalSpacing( ::pPtr, nSpacing ) + METHOD setWidget( nRow, nItemRole, pWidget ) INLINE Qt_QFormLayout_setWidget( ::pPtr, nRow, nItemRole, pWidget ) + METHOD spacing() INLINE Qt_QFormLayout_spacing( ::pPtr ) + METHOD verticalSpacing() INLINE Qt_QFormLayout_verticalSpacing( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QFormLayout + + ::pPtr := Qt_QFormLayout( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQFrame.prg b/harbour/contrib/hbqt/TQFrame.prg new file mode 100644 index 0000000000..3204d0a3b8 --- /dev/null +++ b/harbour/contrib/hbqt/TQFrame.prg @@ -0,0 +1,90 @@ +/* + * $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' + + +CLASS QFrame INHERIT QWidget + + DATA pPtr + + METHOD New() + + METHOD frameRect() INLINE Qt_QFrame_frameRect( ::pPtr ) + METHOD frameShadow() INLINE Qt_QFrame_frameShadow( ::pPtr ) + METHOD frameShape() INLINE Qt_QFrame_frameShape( ::pPtr ) + METHOD frameStyle() INLINE Qt_QFrame_frameStyle( ::pPtr ) + METHOD frameWidth() INLINE Qt_QFrame_frameWidth( ::pPtr ) + METHOD lineWidth() INLINE Qt_QFrame_lineWidth( ::pPtr ) + METHOD midLineWidth() INLINE Qt_QFrame_midLineWidth( ::pPtr ) + METHOD setFrameRect( aRectQRect ) INLINE Qt_QFrame_setFrameRect( ::pPtr, aRectQRect ) + METHOD setFrameShadow( nShadow ) INLINE Qt_QFrame_setFrameShadow( ::pPtr, nShadow ) + METHOD setFrameShape( nShape ) INLINE Qt_QFrame_setFrameShape( ::pPtr, nShape ) + METHOD setFrameStyle( nStyle ) INLINE Qt_QFrame_setFrameStyle( ::pPtr, nStyle ) + METHOD setLineWidth( nInt ) INLINE Qt_QFrame_setLineWidth( ::pPtr, nInt ) + METHOD setMidLineWidth( nInt ) INLINE Qt_QFrame_setMidLineWidth( ::pPtr, nInt ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QFrame + + ::pPtr := Qt_QFrame( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQGroupBox.prg b/harbour/contrib/hbqt/TQGroupBox.prg new file mode 100644 index 0000000000..6933bef0a2 --- /dev/null +++ b/harbour/contrib/hbqt/TQGroupBox.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' + + +CLASS QGroupBox INHERIT QWidget + + DATA pPtr + + METHOD New() + + METHOD alignment() INLINE Qt_QGroupBox_alignment( ::pPtr ) + METHOD isCheckable() INLINE Qt_QGroupBox_isCheckable( ::pPtr ) + METHOD isChecked() INLINE Qt_QGroupBox_isChecked( ::pPtr ) + METHOD isFlat() INLINE Qt_QGroupBox_isFlat( ::pPtr ) + METHOD setAlignment( nAlignment ) INLINE Qt_QGroupBox_setAlignment( ::pPtr, nAlignment ) + METHOD setCheckable( lCheckable ) INLINE Qt_QGroupBox_setCheckable( ::pPtr, lCheckable ) + METHOD setFlat( lFlat ) INLINE Qt_QGroupBox_setFlat( ::pPtr, lFlat ) + METHOD setTitle( cTitle ) INLINE Qt_QGroupBox_setTitle( ::pPtr, cTitle ) + METHOD title() INLINE Qt_QGroupBox_title( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QGroupBox + + ::pPtr := Qt_QGroupBox( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQHBoxLayout.prg b/harbour/contrib/hbqt/TQHBoxLayout.prg new file mode 100644 index 0000000000..4289622767 --- /dev/null +++ b/harbour/contrib/hbqt/TQHBoxLayout.prg @@ -0,0 +1,77 @@ +/* + * $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' + + +CLASS QHBoxLayout INHERIT QBoxLayout + + DATA pPtr + + METHOD New() + + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QHBoxLayout + + ::pPtr := Qt_QHBoxLayout( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQInputDialog.prg b/harbour/contrib/hbqt/TQInputDialog.prg new file mode 100644 index 0000000000..e4ea8bb6b6 --- /dev/null +++ b/harbour/contrib/hbqt/TQInputDialog.prg @@ -0,0 +1,115 @@ +/* + * $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' + + +CLASS QInputDialog INHERIT QDialog + + DATA pPtr + + METHOD New() + + METHOD cancelButtonText() INLINE Qt_QInputDialog_cancelButtonText( ::pPtr ) + METHOD done( nResult ) INLINE Qt_QInputDialog_done( ::pPtr, nResult ) + METHOD doubleDecimals() INLINE Qt_QInputDialog_doubleDecimals( ::pPtr ) + METHOD doubleMaximum() INLINE Qt_QInputDialog_doubleMaximum( ::pPtr ) + METHOD doubleMinimum() INLINE Qt_QInputDialog_doubleMinimum( ::pPtr ) + METHOD doubleValue() INLINE Qt_QInputDialog_doubleValue( ::pPtr ) + METHOD inputMode() INLINE Qt_QInputDialog_inputMode( ::pPtr ) + METHOD intMaximum() INLINE Qt_QInputDialog_intMaximum( ::pPtr ) + METHOD intMinimum() INLINE Qt_QInputDialog_intMinimum( ::pPtr ) + METHOD intStep() INLINE Qt_QInputDialog_intStep( ::pPtr ) + METHOD intValue() INLINE Qt_QInputDialog_intValue( ::pPtr ) + METHOD isComboBoxEditable() INLINE Qt_QInputDialog_isComboBoxEditable( ::pPtr ) + METHOD labelText() INLINE Qt_QInputDialog_labelText( ::pPtr ) + METHOD okButtonText() INLINE Qt_QInputDialog_okButtonText( ::pPtr ) + METHOD open( pReceiver, pMember ) INLINE Qt_QInputDialog_open( ::pPtr, pReceiver, pMember ) + METHOD options() INLINE Qt_QInputDialog_options( ::pPtr ) + METHOD setCancelButtonText( cText ) INLINE Qt_QInputDialog_setCancelButtonText( ::pPtr, cText ) + METHOD setComboBoxEditable( lEditable ) INLINE Qt_QInputDialog_setComboBoxEditable( ::pPtr, lEditable ) + METHOD setDoubleDecimals( nDecimals ) INLINE Qt_QInputDialog_setDoubleDecimals( ::pPtr, nDecimals ) + METHOD setDoubleMaximum( nMax ) INLINE Qt_QInputDialog_setDoubleMaximum( ::pPtr, nMax ) + METHOD setDoubleMinimum( nMin ) INLINE Qt_QInputDialog_setDoubleMinimum( ::pPtr, nMin ) + METHOD setDoubleRange( nMin, nMax ) INLINE Qt_QInputDialog_setDoubleRange( ::pPtr, nMin, nMax ) + METHOD setDoubleValue( nValue ) INLINE Qt_QInputDialog_setDoubleValue( ::pPtr, nValue ) + METHOD setInputMode( nInputMode ) INLINE Qt_QInputDialog_setInputMode( ::pPtr, nInputMode ) + METHOD setIntMaximum( nMax ) INLINE Qt_QInputDialog_setIntMaximum( ::pPtr, nMax ) + METHOD setIntMinimum( nMin ) INLINE Qt_QInputDialog_setIntMinimum( ::pPtr, nMin ) + METHOD setIntRange( nMin, nMax ) INLINE Qt_QInputDialog_setIntRange( ::pPtr, nMin, nMax ) + METHOD setIntStep( nStep ) INLINE Qt_QInputDialog_setIntStep( ::pPtr, nStep ) + METHOD setIntValue( nValue ) INLINE Qt_QInputDialog_setIntValue( ::pPtr, nValue ) + METHOD setLabelText( cText ) INLINE Qt_QInputDialog_setLabelText( ::pPtr, cText ) + METHOD setOkButtonText( cText ) INLINE Qt_QInputDialog_setOkButtonText( ::pPtr, cText ) + METHOD setOption( nInputDialogOption, lOn ) INLINE Qt_QInputDialog_setOption( ::pPtr, nInputDialogOption, lOn ) + METHOD setOptions( nInputDialogOptions ) INLINE Qt_QInputDialog_setOptions( ::pPtr, nInputDialogOptions ) + METHOD setTextEchoMode( nMode ) INLINE Qt_QInputDialog_setTextEchoMode( ::pPtr, nMode ) + METHOD setTextValue( cText ) INLINE Qt_QInputDialog_setTextValue( ::pPtr, cText ) + METHOD testOption( nInputDialogOption ) INLINE Qt_QInputDialog_testOption( ::pPtr, nInputDialogOption ) + METHOD textEchoMode() INLINE Qt_QInputDialog_textEchoMode( ::pPtr ) + METHOD textValue() INLINE Qt_QInputDialog_textValue( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QInputDialog + + ::pPtr := Qt_QInputDialog( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQLCDNumber.prg b/harbour/contrib/hbqt/TQLCDNumber.prg new file mode 100644 index 0000000000..ea69585c45 --- /dev/null +++ b/harbour/contrib/hbqt/TQLCDNumber.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' + + +CLASS QLCDNumber INHERIT QFrame + + DATA pPtr + + METHOD New() + + METHOD checkOverflow( nNum ) INLINE Qt_QLCDNumber_checkOverflow( ::pPtr, nNum ) + METHOD checkOverflow_1( nNum ) INLINE Qt_QLCDNumber_checkOverflow_1( ::pPtr, nNum ) + METHOD intValue() INLINE Qt_QLCDNumber_intValue( ::pPtr ) + METHOD mode() INLINE Qt_QLCDNumber_mode( ::pPtr ) + METHOD numDigits() INLINE Qt_QLCDNumber_numDigits( ::pPtr ) + METHOD segmentStyle() INLINE Qt_QLCDNumber_segmentStyle( ::pPtr ) + METHOD setMode( nMode ) INLINE Qt_QLCDNumber_setMode( ::pPtr, nMode ) + METHOD setNumDigits( nNDigits ) INLINE Qt_QLCDNumber_setNumDigits( ::pPtr, nNDigits ) + METHOD setSegmentStyle( nSegmentStyle ) INLINE Qt_QLCDNumber_setSegmentStyle( ::pPtr, nSegmentStyle ) + METHOD smallDecimalPoint() INLINE Qt_QLCDNumber_smallDecimalPoint( ::pPtr ) + METHOD value() INLINE Qt_QLCDNumber_value( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QLCDNumber + + ::pPtr := Qt_QLCDNumber( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQLabel.prg b/harbour/contrib/hbqt/TQLabel.prg new file mode 100644 index 0000000000..084781f2cc --- /dev/null +++ b/harbour/contrib/hbqt/TQLabel.prg @@ -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 'hbclass.ch' + + +CLASS QLabel INHERIT QFrame + + DATA pPtr + + METHOD New() + + METHOD alignment() INLINE Qt_QLabel_alignment( ::pPtr ) + METHOD buddy() INLINE Qt_QLabel_buddy( ::pPtr ) + METHOD hasScaledContents() INLINE Qt_QLabel_hasScaledContents( ::pPtr ) + METHOD indent() INLINE Qt_QLabel_indent( ::pPtr ) + METHOD margin() INLINE Qt_QLabel_margin( ::pPtr ) + METHOD movie() INLINE Qt_QLabel_movie( ::pPtr ) + METHOD openExternalLinks() INLINE Qt_QLabel_openExternalLinks( ::pPtr ) + METHOD picture() INLINE Qt_QLabel_picture( ::pPtr ) + METHOD pixmap() INLINE Qt_QLabel_pixmap( ::pPtr ) + METHOD setAlignment( nQt_Alignment ) INLINE Qt_QLabel_setAlignment( ::pPtr, nQt_Alignment ) + METHOD setBuddy( pBuddy ) INLINE Qt_QLabel_setBuddy( ::pPtr, pBuddy ) + METHOD setIndent( nInt ) INLINE Qt_QLabel_setIndent( ::pPtr, nInt ) + METHOD setMargin( nInt ) INLINE Qt_QLabel_setMargin( ::pPtr, nInt ) + METHOD setOpenExternalLinks( lOpen ) INLINE Qt_QLabel_setOpenExternalLinks( ::pPtr, lOpen ) + METHOD setScaledContents( lBool ) INLINE Qt_QLabel_setScaledContents( ::pPtr, lBool ) + METHOD setTextFormat( nQt_TextFormat ) INLINE Qt_QLabel_setTextFormat( ::pPtr, nQt_TextFormat ) + METHOD setWordWrap( lOn ) INLINE Qt_QLabel_setWordWrap( ::pPtr, lOn ) + METHOD text() INLINE Qt_QLabel_text( ::pPtr ) + METHOD textFormat() INLINE Qt_QLabel_textFormat( ::pPtr ) + METHOD textInteractionFlags() INLINE Qt_QLabel_textInteractionFlags( ::pPtr ) + METHOD wordWrap() INLINE Qt_QLabel_wordWrap( ::pPtr ) + METHOD clear() INLINE Qt_QLabel_clear( ::pPtr ) + METHOD setMovie( pMovie ) INLINE Qt_QLabel_setMovie( ::pPtr, pMovie ) + METHOD setNum( nNum ) INLINE Qt_QLabel_setNum( ::pPtr, nNum ) + METHOD setNum_1( nNum ) INLINE Qt_QLabel_setNum_1( ::pPtr, nNum ) + METHOD setText( cQString ) INLINE Qt_QLabel_setText( ::pPtr, cQString ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QLabel + + ::pPtr := Qt_QLabel( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQLayout.prg b/harbour/contrib/hbqt/TQLayout.prg new file mode 100644 index 0000000000..a7f26bd26d --- /dev/null +++ b/harbour/contrib/hbqt/TQLayout.prg @@ -0,0 +1,104 @@ +/* + * $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' + + +CLASS QLayout INHERIT QObject, QLayoutItem + + DATA pPtr + + METHOD New() + + METHOD activate() INLINE Qt_QLayout_activate( ::pPtr ) + METHOD addItem( pItem ) INLINE Qt_QLayout_addItem( ::pPtr, pItem ) + METHOD addWidget( pW ) INLINE Qt_QLayout_addWidget( ::pPtr, pW ) + METHOD contentsRect() INLINE Qt_QLayout_contentsRect( ::pPtr ) + METHOD count() INLINE Qt_QLayout_count( ::pPtr ) + METHOD expandingDirections() INLINE Qt_QLayout_expandingDirections( ::pPtr ) + METHOD indexOf( pWidget ) INLINE Qt_QLayout_indexOf( ::pPtr, pWidget ) + METHOD isEnabled() INLINE Qt_QLayout_isEnabled( ::pPtr ) + METHOD itemAt( nIndex ) INLINE Qt_QLayout_itemAt( ::pPtr, nIndex ) + METHOD maximumSize() INLINE Qt_QLayout_maximumSize( ::pPtr ) + METHOD menuBar() INLINE Qt_QLayout_menuBar( ::pPtr ) + METHOD minimumSize() INLINE Qt_QLayout_minimumSize( ::pPtr ) + METHOD parentWidget() INLINE Qt_QLayout_parentWidget( ::pPtr ) + METHOD removeItem( pItem ) INLINE Qt_QLayout_removeItem( ::pPtr, pItem ) + METHOD removeWidget( pWidget ) INLINE Qt_QLayout_removeWidget( ::pPtr, pWidget ) + METHOD setAlignment( pW, nAlignment ) INLINE Qt_QLayout_setAlignment( ::pPtr, pW, nAlignment ) + METHOD setAlignment_1( nAlignment ) INLINE Qt_QLayout_setAlignment_1( ::pPtr, nAlignment ) + METHOD setAlignment_2( pL, nAlignment ) INLINE Qt_QLayout_setAlignment_2( ::pPtr, pL, nAlignment ) + METHOD setContentsMargins( nLeft, nTop, nRight, nBottom ) INLINE Qt_QLayout_setContentsMargins( ::pPtr, nLeft, nTop, nRight, nBottom ) + METHOD setEnabled( lEnable ) INLINE Qt_QLayout_setEnabled( ::pPtr, lEnable ) + METHOD setMenuBar( pWidget ) INLINE Qt_QLayout_setMenuBar( ::pPtr, pWidget ) + METHOD setSizeConstraint( nSizeConstraint ) INLINE Qt_QLayout_setSizeConstraint( ::pPtr, nSizeConstraint ) + METHOD setSpacing( nInt ) INLINE Qt_QLayout_setSpacing( ::pPtr, nInt ) + METHOD sizeConstraint() INLINE Qt_QLayout_sizeConstraint( ::pPtr ) + METHOD spacing() INLINE Qt_QLayout_spacing( ::pPtr ) + METHOD takeAt( nIndex ) INLINE Qt_QLayout_takeAt( ::pPtr, nIndex ) + METHOD update() INLINE Qt_QLayout_update( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QLayout + + ::pPtr := Qt_QLayout( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQLayoutItem.prg b/harbour/contrib/hbqt/TQLayoutItem.prg new file mode 100644 index 0000000000..cac68569c0 --- /dev/null +++ b/harbour/contrib/hbqt/TQLayoutItem.prg @@ -0,0 +1,94 @@ +/* + * $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' + + +CLASS QLayoutItem + + DATA pPtr + + METHOD New() + + METHOD alignment() INLINE Qt_QLayoutItem_alignment( ::pPtr ) + METHOD controlTypes() INLINE Qt_QLayoutItem_controlTypes( ::pPtr ) + METHOD expandingDirections() INLINE Qt_QLayoutItem_expandingDirections( ::pPtr ) + METHOD geometry() INLINE Qt_QLayoutItem_geometry( ::pPtr ) + METHOD hasHeightForWidth() INLINE Qt_QLayoutItem_hasHeightForWidth( ::pPtr ) + METHOD heightForWidth( nW ) INLINE Qt_QLayoutItem_heightForWidth( ::pPtr, nW ) + METHOD invalidate() INLINE Qt_QLayoutItem_invalidate( ::pPtr ) + METHOD isEmpty() INLINE Qt_QLayoutItem_isEmpty( ::pPtr ) + METHOD layout() INLINE Qt_QLayoutItem_layout( ::pPtr ) + METHOD maximumSize() INLINE Qt_QLayoutItem_maximumSize( ::pPtr ) + METHOD minimumHeightForWidth( nW ) INLINE Qt_QLayoutItem_minimumHeightForWidth( ::pPtr, nW ) + METHOD minimumSize() INLINE Qt_QLayoutItem_minimumSize( ::pPtr ) + METHOD setAlignment( nAlignment ) INLINE Qt_QLayoutItem_setAlignment( ::pPtr, nAlignment ) + METHOD setGeometry( aRectR ) INLINE Qt_QLayoutItem_setGeometry( ::pPtr, aRectR ) + METHOD sizeHint() INLINE Qt_QLayoutItem_sizeHint( ::pPtr ) + METHOD spacerItem() INLINE Qt_QLayoutItem_spacerItem( ::pPtr ) + METHOD widget() INLINE Qt_QLayoutItem_widget( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QLayoutItem + + ::pPtr := Qt_QLayoutItem( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQLineEdit.prg b/harbour/contrib/hbqt/TQLineEdit.prg new file mode 100644 index 0000000000..19d7bcd488 --- /dev/null +++ b/harbour/contrib/hbqt/TQLineEdit.prg @@ -0,0 +1,123 @@ +/* + * $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' + + +CLASS QLineEdit INHERIT QWidget + + DATA pPtr + + METHOD New() + + METHOD alignment() INLINE Qt_QLineEdit_alignment( ::pPtr ) + METHOD backspace() INLINE Qt_QLineEdit_backspace( ::pPtr ) + METHOD completer() INLINE Qt_QLineEdit_completer( ::pPtr ) + METHOD createStandardContextMenu() INLINE Qt_QLineEdit_createStandardContextMenu( ::pPtr ) + METHOD cursorBackward( lMark, nSteps ) INLINE Qt_QLineEdit_cursorBackward( ::pPtr, lMark, nSteps ) + METHOD cursorForward( lMark, nSteps ) INLINE Qt_QLineEdit_cursorForward( ::pPtr, lMark, nSteps ) + METHOD cursorPosition() INLINE Qt_QLineEdit_cursorPosition( ::pPtr ) + METHOD cursorPositionAt( aPointPos ) INLINE Qt_QLineEdit_cursorPositionAt( ::pPtr, aPointPos ) + METHOD cursorWordBackward( lMark ) INLINE Qt_QLineEdit_cursorWordBackward( ::pPtr, lMark ) + METHOD cursorWordForward( lMark ) INLINE Qt_QLineEdit_cursorWordForward( ::pPtr, lMark ) + METHOD del() INLINE Qt_QLineEdit_del( ::pPtr ) + METHOD deselect() INLINE Qt_QLineEdit_deselect( ::pPtr ) + METHOD displayText() INLINE Qt_QLineEdit_displayText( ::pPtr ) + METHOD dragEnabled() INLINE Qt_QLineEdit_dragEnabled( ::pPtr ) + METHOD echoMode() INLINE Qt_QLineEdit_echoMode( ::pPtr ) + METHOD end( lMark ) INLINE Qt_QLineEdit_end( ::pPtr, lMark ) + METHOD hasAcceptableInput() INLINE Qt_QLineEdit_hasAcceptableInput( ::pPtr ) + METHOD hasFrame() INLINE Qt_QLineEdit_hasFrame( ::pPtr ) + METHOD hasSelectedText() INLINE Qt_QLineEdit_hasSelectedText( ::pPtr ) + METHOD home( lMark ) INLINE Qt_QLineEdit_home( ::pPtr, lMark ) + METHOD inputMask() INLINE Qt_QLineEdit_inputMask( ::pPtr ) + METHOD insert( cNewText ) INLINE Qt_QLineEdit_insert( ::pPtr, cNewText ) + METHOD isModified() INLINE Qt_QLineEdit_isModified( ::pPtr ) + METHOD isReadOnly() INLINE Qt_QLineEdit_isReadOnly( ::pPtr ) + METHOD isRedoAvailable() INLINE Qt_QLineEdit_isRedoAvailable( ::pPtr ) + METHOD isUndoAvailable() INLINE Qt_QLineEdit_isUndoAvailable( ::pPtr ) + METHOD maxLength() INLINE Qt_QLineEdit_maxLength( ::pPtr ) + METHOD minimumSizeHint() INLINE Qt_QLineEdit_minimumSizeHint( ::pPtr ) + METHOD selectedText() INLINE Qt_QLineEdit_selectedText( ::pPtr ) + METHOD selectionStart() INLINE Qt_QLineEdit_selectionStart( ::pPtr ) + METHOD setAlignment( nFlag ) INLINE Qt_QLineEdit_setAlignment( ::pPtr, nFlag ) + METHOD setCompleter( pC ) INLINE Qt_QLineEdit_setCompleter( ::pPtr, pC ) + METHOD setCursorPosition( nInt ) INLINE Qt_QLineEdit_setCursorPosition( ::pPtr, nInt ) + METHOD setDragEnabled( lB ) INLINE Qt_QLineEdit_setDragEnabled( ::pPtr, lB ) + METHOD setEchoMode( nEchoMode ) INLINE Qt_QLineEdit_setEchoMode( ::pPtr, nEchoMode ) + METHOD setFrame( lBool ) INLINE Qt_QLineEdit_setFrame( ::pPtr, lBool ) + METHOD setInputMask( cInputMask ) INLINE Qt_QLineEdit_setInputMask( ::pPtr, cInputMask ) + METHOD setMaxLength( nInt ) INLINE Qt_QLineEdit_setMaxLength( ::pPtr, nInt ) + METHOD setModified( lBool ) INLINE Qt_QLineEdit_setModified( ::pPtr, lBool ) + METHOD setReadOnly( lBool ) INLINE Qt_QLineEdit_setReadOnly( ::pPtr, lBool ) + METHOD setSelection( nStart, nLength ) INLINE Qt_QLineEdit_setSelection( ::pPtr, nStart, nLength ) + METHOD setTextMargins( nLeft, nTop, nRight, nBottom ) INLINE Qt_QLineEdit_setTextMargins( ::pPtr, nLeft, nTop, nRight, nBottom ) + METHOD setValidator( pV ) INLINE Qt_QLineEdit_setValidator( ::pPtr, pV ) + METHOD sizeHint() INLINE Qt_QLineEdit_sizeHint( ::pPtr ) + METHOD text() INLINE Qt_QLineEdit_text( ::pPtr ) + METHOD validator() INLINE Qt_QLineEdit_validator( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QLineEdit + + ::pPtr := Qt_QLineEdit( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQListView.prg b/harbour/contrib/hbqt/TQListView.prg new file mode 100644 index 0000000000..bfa08e40f8 --- /dev/null +++ b/harbour/contrib/hbqt/TQListView.prg @@ -0,0 +1,106 @@ +/* + * $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' + + +CLASS QListView INHERIT QAbstractItemView + + DATA pPtr + + METHOD New() + + METHOD batchSize() INLINE Qt_QListView_batchSize( ::pPtr ) + METHOD clearPropertyFlags() INLINE Qt_QListView_clearPropertyFlags( ::pPtr ) + METHOD flow() INLINE Qt_QListView_flow( ::pPtr ) + METHOD gridSize() INLINE Qt_QListView_gridSize( ::pPtr ) + METHOD isRowHidden( nRow ) INLINE Qt_QListView_isRowHidden( ::pPtr, nRow ) + METHOD isSelectionRectVisible() INLINE Qt_QListView_isSelectionRectVisible( ::pPtr ) + METHOD isWrapping() INLINE Qt_QListView_isWrapping( ::pPtr ) + METHOD layoutMode() INLINE Qt_QListView_layoutMode( ::pPtr ) + METHOD modelColumn() INLINE Qt_QListView_modelColumn( ::pPtr ) + METHOD movement() INLINE Qt_QListView_movement( ::pPtr ) + METHOD resizeMode() INLINE Qt_QListView_resizeMode( ::pPtr ) + METHOD setBatchSize( nBatchSize ) INLINE Qt_QListView_setBatchSize( ::pPtr, nBatchSize ) + METHOD setFlow( nFlow ) INLINE Qt_QListView_setFlow( ::pPtr, nFlow ) + METHOD setGridSize( aSizeSize ) INLINE Qt_QListView_setGridSize( ::pPtr, aSizeSize ) + METHOD setLayoutMode( nLayoutMode ) INLINE Qt_QListView_setLayoutMode( ::pPtr, nLayoutMode ) + METHOD setModelColumn( nColumn ) INLINE Qt_QListView_setModelColumn( ::pPtr, nColumn ) + METHOD setMovement( nMovement ) INLINE Qt_QListView_setMovement( ::pPtr, nMovement ) + METHOD setResizeMode( nResizeMode ) INLINE Qt_QListView_setResizeMode( ::pPtr, nResizeMode ) + METHOD setRowHidden( nRow, lHide ) INLINE Qt_QListView_setRowHidden( ::pPtr, nRow, lHide ) + METHOD setSelectionRectVisible( lShow ) INLINE Qt_QListView_setSelectionRectVisible( ::pPtr, lShow ) + METHOD setSpacing( nSpace ) INLINE Qt_QListView_setSpacing( ::pPtr, nSpace ) + METHOD setUniformItemSizes( lEnable ) INLINE Qt_QListView_setUniformItemSizes( ::pPtr, lEnable ) + METHOD setViewMode( nViewMode ) INLINE Qt_QListView_setViewMode( ::pPtr, nViewMode ) + METHOD setWordWrap( lOn ) INLINE Qt_QListView_setWordWrap( ::pPtr, lOn ) + METHOD setWrapping( lEnable ) INLINE Qt_QListView_setWrapping( ::pPtr, lEnable ) + METHOD spacing() INLINE Qt_QListView_spacing( ::pPtr ) + METHOD uniformItemSizes() INLINE Qt_QListView_uniformItemSizes( ::pPtr ) + METHOD viewMode() INLINE Qt_QListView_viewMode( ::pPtr ) + METHOD wordWrap() INLINE Qt_QListView_wordWrap( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QListView + + ::pPtr := Qt_QListView( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQMainWindow.prg b/harbour/contrib/hbqt/TQMainWindow.prg new file mode 100644 index 0000000000..a269c3546d --- /dev/null +++ b/harbour/contrib/hbqt/TQMainWindow.prg @@ -0,0 +1,123 @@ +/* + * $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' + + +CLASS QMainWindow INHERIT QWidget + + DATA pPtr + + METHOD New() + + METHOD addDockWidget( nArea, pDockwidget ) INLINE Qt_QMainWindow_addDockWidget( ::pPtr, nArea, pDockwidget ) + METHOD addDockWidget_1( nArea, pDockwidget, nOrientation ) INLINE Qt_QMainWindow_addDockWidget_1( ::pPtr, nArea, pDockwidget, nOrientation ) + METHOD addToolBar( nArea, pToolbar ) INLINE Qt_QMainWindow_addToolBar( ::pPtr, nArea, pToolbar ) + METHOD addToolBar_1( pToolbar ) INLINE Qt_QMainWindow_addToolBar_1( ::pPtr, pToolbar ) + METHOD addToolBar_2( cTitle ) INLINE Qt_QMainWindow_addToolBar_2( ::pPtr, cTitle ) + METHOD addToolBarBreak( nArea ) INLINE Qt_QMainWindow_addToolBarBreak( ::pPtr, nArea ) + METHOD centralWidget() INLINE Qt_QMainWindow_centralWidget( ::pPtr ) + METHOD corner( nCorner ) INLINE Qt_QMainWindow_corner( ::pPtr, nCorner ) + METHOD createPopupMenu() INLINE Qt_QMainWindow_createPopupMenu( ::pPtr ) + METHOD dockOptions() INLINE Qt_QMainWindow_dockOptions( ::pPtr ) + METHOD dockWidgetArea( pDockwidget ) INLINE Qt_QMainWindow_dockWidgetArea( ::pPtr, pDockwidget ) + METHOD documentMode() INLINE Qt_QMainWindow_documentMode( ::pPtr ) + METHOD iconSize() INLINE Qt_QMainWindow_iconSize( ::pPtr ) + METHOD insertToolBar( pBefore, pToolbar ) INLINE Qt_QMainWindow_insertToolBar( ::pPtr, pBefore, pToolbar ) + METHOD insertToolBarBreak( pBefore ) INLINE Qt_QMainWindow_insertToolBarBreak( ::pPtr, pBefore ) + METHOD isAnimated() INLINE Qt_QMainWindow_isAnimated( ::pPtr ) + METHOD isDockNestingEnabled() INLINE Qt_QMainWindow_isDockNestingEnabled( ::pPtr ) + METHOD menuBar() INLINE Qt_QMainWindow_menuBar( ::pPtr ) + METHOD menuWidget() INLINE Qt_QMainWindow_menuWidget( ::pPtr ) + METHOD removeDockWidget( pDockwidget ) INLINE Qt_QMainWindow_removeDockWidget( ::pPtr, pDockwidget ) + METHOD removeToolBar( pToolbar ) INLINE Qt_QMainWindow_removeToolBar( ::pPtr, pToolbar ) + METHOD removeToolBarBreak( pBefore ) INLINE Qt_QMainWindow_removeToolBarBreak( ::pPtr, pBefore ) + METHOD restoreDockWidget( pDockwidget ) INLINE Qt_QMainWindow_restoreDockWidget( ::pPtr, pDockwidget ) + METHOD setCentralWidget( pWidget ) INLINE Qt_QMainWindow_setCentralWidget( ::pPtr, pWidget ) + METHOD setCorner( nCorner, nArea ) INLINE Qt_QMainWindow_setCorner( ::pPtr, nCorner, nArea ) + METHOD setDockOptions( nDockOptions ) INLINE Qt_QMainWindow_setDockOptions( ::pPtr, nDockOptions ) + METHOD setDocumentMode( lEnabled ) INLINE Qt_QMainWindow_setDocumentMode( ::pPtr, lEnabled ) + METHOD setIconSize( aSizeIconSize ) INLINE Qt_QMainWindow_setIconSize( ::pPtr, aSizeIconSize ) + METHOD setMenuBar( pMenuBar ) INLINE Qt_QMainWindow_setMenuBar( ::pPtr, pMenuBar ) + METHOD setMenuWidget( pMenuBar ) INLINE Qt_QMainWindow_setMenuWidget( ::pPtr, pMenuBar ) + METHOD setStatusBar( pStatusbar ) INLINE Qt_QMainWindow_setStatusBar( ::pPtr, pStatusbar ) + METHOD setTabPosition( nAreas, nTabPosition ) INLINE Qt_QMainWindow_setTabPosition( ::pPtr, nAreas, nTabPosition ) + METHOD setTabShape( nTabShape ) INLINE Qt_QMainWindow_setTabShape( ::pPtr, nTabShape ) + METHOD setToolButtonStyle( nToolButtonStyle ) INLINE Qt_QMainWindow_setToolButtonStyle( ::pPtr, nToolButtonStyle ) + METHOD setUnifiedTitleAndToolBarOnMac( lSet ) INLINE Qt_QMainWindow_setUnifiedTitleAndToolBarOnMac( ::pPtr, lSet ) + METHOD splitDockWidget( pFirst, pSecond, nOrientation ) INLINE Qt_QMainWindow_splitDockWidget( ::pPtr, pFirst, pSecond, nOrientation ) + METHOD statusBar() INLINE Qt_QMainWindow_statusBar( ::pPtr ) + METHOD tabPosition( nArea ) INLINE Qt_QMainWindow_tabPosition( ::pPtr, nArea ) + METHOD tabShape() INLINE Qt_QMainWindow_tabShape( ::pPtr ) + METHOD tabifyDockWidget( pFirst, pSecond ) INLINE Qt_QMainWindow_tabifyDockWidget( ::pPtr, pFirst, pSecond ) + METHOD toolBarArea( pToolbar ) INLINE Qt_QMainWindow_toolBarArea( ::pPtr, pToolbar ) + METHOD toolBarBreak( pToolbar ) INLINE Qt_QMainWindow_toolBarBreak( ::pPtr, pToolbar ) + METHOD toolButtonStyle() INLINE Qt_QMainWindow_toolButtonStyle( ::pPtr ) + METHOD unifiedTitleAndToolBarOnMac() INLINE Qt_QMainWindow_unifiedTitleAndToolBarOnMac( ::pPtr ) + METHOD setAnimated( lEnabled ) INLINE Qt_QMainWindow_setAnimated( ::pPtr, lEnabled ) + METHOD setDockNestingEnabled( lEnabled ) INLINE Qt_QMainWindow_setDockNestingEnabled( ::pPtr, lEnabled ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QMainWindow + + ::pPtr := Qt_QMainWindow( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQMenu.prg b/harbour/contrib/hbqt/TQMenu.prg new file mode 100644 index 0000000000..0d011c883b --- /dev/null +++ b/harbour/contrib/hbqt/TQMenu.prg @@ -0,0 +1,107 @@ +/* + * $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' + + +CLASS QMenu INHERIT QWidget + + DATA pPtr + + METHOD New() + + METHOD actionAt( aPointPt ) INLINE Qt_QMenu_actionAt( ::pPtr, aPointPt ) + METHOD actionGeometry( pAct ) INLINE Qt_QMenu_actionGeometry( ::pPtr, pAct ) + METHOD activeAction() INLINE Qt_QMenu_activeAction( ::pPtr ) + METHOD addAction( cText ) INLINE Qt_QMenu_addAction( ::pPtr, cText ) + METHOD addAction_1( cIcon, cText ) INLINE Qt_QMenu_addAction_1( ::pPtr, cIcon, cText ) + METHOD addAction_2( pAction ) INLINE Qt_QMenu_addAction_2( ::pPtr, pAction ) + METHOD addMenu( pMenu ) INLINE Qt_QMenu_addMenu( ::pPtr, pMenu ) + METHOD addMenu_1( cTitle ) INLINE Qt_QMenu_addMenu_1( ::pPtr, cTitle ) + METHOD addMenu_2( cIcon, cTitle ) INLINE Qt_QMenu_addMenu_2( ::pPtr, cIcon, cTitle ) + METHOD addSeparator() INLINE Qt_QMenu_addSeparator( ::pPtr ) + METHOD clear() INLINE Qt_QMenu_clear( ::pPtr ) + METHOD defaultAction() INLINE Qt_QMenu_defaultAction( ::pPtr ) + METHOD exec() INLINE Qt_QMenu_exec( ::pPtr ) + METHOD exec_1( aPointP, pAction ) INLINE Qt_QMenu_exec_1( ::pPtr, aPointP, pAction ) + METHOD hideTearOffMenu() INLINE Qt_QMenu_hideTearOffMenu( ::pPtr ) + METHOD insertMenu( pBefore, pMenu ) INLINE Qt_QMenu_insertMenu( ::pPtr, pBefore, pMenu ) + METHOD insertSeparator( pBefore ) INLINE Qt_QMenu_insertSeparator( ::pPtr, pBefore ) + METHOD isEmpty() INLINE Qt_QMenu_isEmpty( ::pPtr ) + METHOD isTearOffEnabled() INLINE Qt_QMenu_isTearOffEnabled( ::pPtr ) + METHOD isTearOffMenuVisible() INLINE Qt_QMenu_isTearOffMenuVisible( ::pPtr ) + METHOD menuAction() INLINE Qt_QMenu_menuAction( ::pPtr ) + METHOD popup( aPointP, pAtAction ) INLINE Qt_QMenu_popup( ::pPtr, aPointP, pAtAction ) + METHOD separatorsCollapsible() INLINE Qt_QMenu_separatorsCollapsible( ::pPtr ) + METHOD setActiveAction( pAct ) INLINE Qt_QMenu_setActiveAction( ::pPtr, pAct ) + METHOD setDefaultAction( pAct ) INLINE Qt_QMenu_setDefaultAction( ::pPtr, pAct ) + METHOD setIcon( cIcon ) INLINE Qt_QMenu_setIcon( ::pPtr, cIcon ) + METHOD setSeparatorsCollapsible( lCollapse ) INLINE Qt_QMenu_setSeparatorsCollapsible( ::pPtr, lCollapse ) + METHOD setTearOffEnabled( lBool ) INLINE Qt_QMenu_setTearOffEnabled( ::pPtr, lBool ) + METHOD setTitle( cTitle ) INLINE Qt_QMenu_setTitle( ::pPtr, cTitle ) + METHOD title() INLINE Qt_QMenu_title( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QMenu + + ::pPtr := Qt_QMenu( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQMenuBar.prg b/harbour/contrib/hbqt/TQMenuBar.prg new file mode 100644 index 0000000000..357fc9f194 --- /dev/null +++ b/harbour/contrib/hbqt/TQMenuBar.prg @@ -0,0 +1,91 @@ +/* + * $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' + + +CLASS QMenuBar INHERIT QWidget + + DATA pPtr + + METHOD New() + + METHOD activeAction() INLINE Qt_QMenuBar_activeAction( ::pPtr ) + METHOD addAction( cText ) INLINE Qt_QMenuBar_addAction( ::pPtr, cText ) + METHOD addAction_1( cText, pReceiver, pMember ) INLINE Qt_QMenuBar_addAction_1( ::pPtr, cText, pReceiver, pMember ) + METHOD addAction_2( pAction ) INLINE Qt_QMenuBar_addAction_2( ::pPtr, pAction ) + METHOD addMenu( pMenu ) INLINE Qt_QMenuBar_addMenu( ::pPtr, pMenu ) + METHOD addMenu_1( cTitle ) INLINE Qt_QMenuBar_addMenu_1( ::pPtr, cTitle ) + METHOD addMenu_2( cIcon, cTitle ) INLINE Qt_QMenuBar_addMenu_2( ::pPtr, cIcon, cTitle ) + METHOD addSeparator() INLINE Qt_QMenuBar_addSeparator( ::pPtr ) + METHOD clear() INLINE Qt_QMenuBar_clear( ::pPtr ) + METHOD insertMenu( pBefore, pMenu ) INLINE Qt_QMenuBar_insertMenu( ::pPtr, pBefore, pMenu ) + METHOD insertSeparator( pBefore ) INLINE Qt_QMenuBar_insertSeparator( ::pPtr, pBefore ) + METHOD isDefaultUp() INLINE Qt_QMenuBar_isDefaultUp( ::pPtr ) + METHOD setActiveAction( pAct ) INLINE Qt_QMenuBar_setActiveAction( ::pPtr, pAct ) + METHOD setDefaultUp( lBool ) INLINE Qt_QMenuBar_setDefaultUp( ::pPtr, lBool ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QMenuBar + + ::pPtr := Qt_QMenuBar( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQMessageBox.prg b/harbour/contrib/hbqt/TQMessageBox.prg new file mode 100644 index 0000000000..646f5642bb --- /dev/null +++ b/harbour/contrib/hbqt/TQMessageBox.prg @@ -0,0 +1,106 @@ +/* + * $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' + + +CLASS QMessageBox INHERIT QDialog + + DATA pPtr + + METHOD New() + + METHOD addButton( pButton, nButtonRole ) INLINE Qt_QMessageBox_addButton( ::pPtr, pButton, nButtonRole ) + METHOD addButton_1( cText, nButtonRole ) INLINE Qt_QMessageBox_addButton_1( ::pPtr, cText, nButtonRole ) + METHOD addButton_2( nStandardButton ) INLINE Qt_QMessageBox_addButton_2( ::pPtr, nStandardButton ) + METHOD button( nStandardButton ) INLINE Qt_QMessageBox_button( ::pPtr, nStandardButton ) + METHOD buttonRole( pButton ) INLINE Qt_QMessageBox_buttonRole( ::pPtr, pButton ) + METHOD clickedButton() INLINE Qt_QMessageBox_clickedButton( ::pPtr ) + METHOD defaultButton() INLINE Qt_QMessageBox_defaultButton( ::pPtr ) + METHOD detailedText() INLINE Qt_QMessageBox_detailedText( ::pPtr ) + METHOD escapeButton() INLINE Qt_QMessageBox_escapeButton( ::pPtr ) + METHOD icon() INLINE Qt_QMessageBox_icon( ::pPtr ) + METHOD informativeText() INLINE Qt_QMessageBox_informativeText( ::pPtr ) + METHOD open( pReceiver, pMember ) INLINE Qt_QMessageBox_open( ::pPtr, pReceiver, pMember ) + METHOD removeButton( pButton ) INLINE Qt_QMessageBox_removeButton( ::pPtr, pButton ) + METHOD setDefaultButton( pButton ) INLINE Qt_QMessageBox_setDefaultButton( ::pPtr, pButton ) + METHOD setDefaultButton_1( nStandardButton ) INLINE Qt_QMessageBox_setDefaultButton_1( ::pPtr, nStandardButton ) + METHOD setDetailedText( cText ) INLINE Qt_QMessageBox_setDetailedText( ::pPtr, cText ) + METHOD setEscapeButton( pButton ) INLINE Qt_QMessageBox_setEscapeButton( ::pPtr, pButton ) + METHOD setEscapeButton_1( nStandardButton ) INLINE Qt_QMessageBox_setEscapeButton_1( ::pPtr, nStandardButton ) + METHOD setIcon( nIcon ) INLINE Qt_QMessageBox_setIcon( ::pPtr, nIcon ) + METHOD setInformativeText( cText ) INLINE Qt_QMessageBox_setInformativeText( ::pPtr, cText ) + METHOD setStandardButtons( nStandardButtons ) INLINE Qt_QMessageBox_setStandardButtons( ::pPtr, nStandardButtons ) + METHOD setText( cText ) INLINE Qt_QMessageBox_setText( ::pPtr, cText ) + METHOD setTextFormat( nFormat ) INLINE Qt_QMessageBox_setTextFormat( ::pPtr, nFormat ) + METHOD setWindowModality( nWindowModality ) INLINE Qt_QMessageBox_setWindowModality( ::pPtr, nWindowModality ) + METHOD setWindowTitle( cTitle ) INLINE Qt_QMessageBox_setWindowTitle( ::pPtr, cTitle ) + METHOD standardButton( pButton ) INLINE Qt_QMessageBox_standardButton( ::pPtr, pButton ) + METHOD standardButtons() INLINE Qt_QMessageBox_standardButtons( ::pPtr ) + METHOD text() INLINE Qt_QMessageBox_text( ::pPtr ) + METHOD textFormat() INLINE Qt_QMessageBox_textFormat( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QMessageBox + + ::pPtr := Qt_QMessageBox( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQObject.prg b/harbour/contrib/hbqt/TQObject.prg new file mode 100644 index 0000000000..f209a10afb --- /dev/null +++ b/harbour/contrib/hbqt/TQObject.prg @@ -0,0 +1,99 @@ +/* + * $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' + + +CLASS QObject + + DATA pPtr + + METHOD New() + + METHOD blockSignals( lBlock ) INLINE Qt_QObject_blockSignals( ::pPtr, lBlock ) + METHOD connect( pSender, pSignal, pMethod, nType ) INLINE Qt_QObject_connect( ::pPtr, pSender, pSignal, pMethod, nType ) + METHOD disconnect( pSignal, pReceiver, pMethod ) INLINE Qt_QObject_disconnect( ::pPtr, pSignal, pReceiver, pMethod ) + METHOD disconnect_1( pReceiver, pMethod ) INLINE Qt_QObject_disconnect_1( ::pPtr, pReceiver, pMethod ) + METHOD dumpObjectInfo() INLINE Qt_QObject_dumpObjectInfo( ::pPtr ) + METHOD dumpObjectTree() INLINE Qt_QObject_dumpObjectTree( ::pPtr ) + METHOD event( pE ) INLINE Qt_QObject_event( ::pPtr, pE ) + METHOD eventFilter( pWatched, pEvent ) INLINE Qt_QObject_eventFilter( ::pPtr, pWatched, pEvent ) + METHOD inherits( pClassName ) INLINE Qt_QObject_inherits( ::pPtr, pClassName ) + METHOD installEventFilter( pFilterObj ) INLINE Qt_QObject_installEventFilter( ::pPtr, pFilterObj ) + METHOD isWidgetType() INLINE Qt_QObject_isWidgetType( ::pPtr ) + METHOD killTimer( nId ) INLINE Qt_QObject_killTimer( ::pPtr, nId ) + METHOD metaObject() INLINE Qt_QObject_metaObject( ::pPtr ) + METHOD moveToThread( pTargetThread ) INLINE Qt_QObject_moveToThread( ::pPtr, pTargetThread ) + METHOD objectName() INLINE Qt_QObject_objectName( ::pPtr ) + METHOD parent() INLINE Qt_QObject_parent( ::pPtr ) + METHOD removeEventFilter( pObj ) INLINE Qt_QObject_removeEventFilter( ::pPtr, pObj ) + METHOD setObjectName( cName ) INLINE Qt_QObject_setObjectName( ::pPtr, cName ) + METHOD setParent( pParent ) INLINE Qt_QObject_setParent( ::pPtr, pParent ) + METHOD signalsBlocked() INLINE Qt_QObject_signalsBlocked( ::pPtr ) + METHOD startTimer( nInterval ) INLINE Qt_QObject_startTimer( ::pPtr, nInterval ) + METHOD thread() INLINE Qt_QObject_thread( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QObject + + ::pPtr := Qt_QObject( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQPageSetupDialog.prg b/harbour/contrib/hbqt/TQPageSetupDialog.prg new file mode 100644 index 0000000000..9f1ffef6f4 --- /dev/null +++ b/harbour/contrib/hbqt/TQPageSetupDialog.prg @@ -0,0 +1,85 @@ +/* + * $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' + + +CLASS QPageSetupDialog INHERIT QDialog + + DATA pPtr + + METHOD New() + + METHOD exec() INLINE Qt_QPageSetupDialog_exec( ::pPtr ) + METHOD open( pReceiver, pMember ) INLINE Qt_QPageSetupDialog_open( ::pPtr, pReceiver, pMember ) + METHOD options() INLINE Qt_QPageSetupDialog_options( ::pPtr ) + METHOD printer() INLINE Qt_QPageSetupDialog_printer( ::pPtr ) + METHOD setOption( nPageSetupDialogOption, lOn ) INLINE Qt_QPageSetupDialog_setOption( ::pPtr, nPageSetupDialogOption, lOn ) + METHOD setOptions( nPageSetupDialogOptions ) INLINE Qt_QPageSetupDialog_setOptions( ::pPtr, nPageSetupDialogOptions ) + METHOD setVisible( lVisible ) INLINE Qt_QPageSetupDialog_setVisible( ::pPtr, lVisible ) + METHOD testOption( nPageSetupDialogOption ) INLINE Qt_QPageSetupDialog_testOption( ::pPtr, nPageSetupDialogOption ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QPageSetupDialog + + ::pPtr := Qt_QPageSetupDialog( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQPaintDevice.prg b/harbour/contrib/hbqt/TQPaintDevice.prg new file mode 100644 index 0000000000..377b222e02 --- /dev/null +++ b/harbour/contrib/hbqt/TQPaintDevice.prg @@ -0,0 +1,89 @@ +/* + * $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' + + +CLASS QPaintDevice + + DATA pPtr + + METHOD New() + + METHOD depth() INLINE Qt_QPaintDevice_depth( ::pPtr ) + METHOD height() INLINE Qt_QPaintDevice_height( ::pPtr ) + METHOD heightMM() INLINE Qt_QPaintDevice_heightMM( ::pPtr ) + METHOD logicalDpiX() INLINE Qt_QPaintDevice_logicalDpiX( ::pPtr ) + METHOD logicalDpiY() INLINE Qt_QPaintDevice_logicalDpiY( ::pPtr ) + METHOD numColors() INLINE Qt_QPaintDevice_numColors( ::pPtr ) + METHOD paintEngine() INLINE Qt_QPaintDevice_paintEngine( ::pPtr ) + METHOD paintingActive() INLINE Qt_QPaintDevice_paintingActive( ::pPtr ) + METHOD physicalDpiX() INLINE Qt_QPaintDevice_physicalDpiX( ::pPtr ) + METHOD physicalDpiY() INLINE Qt_QPaintDevice_physicalDpiY( ::pPtr ) + METHOD width() INLINE Qt_QPaintDevice_width( ::pPtr ) + METHOD widthMM() INLINE Qt_QPaintDevice_widthMM( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QPaintDevice + + ::pPtr := Qt_QPaintDevice( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQPainter.prg b/harbour/contrib/hbqt/TQPainter.prg new file mode 100644 index 0000000000..fbb2cadd94 --- /dev/null +++ b/harbour/contrib/hbqt/TQPainter.prg @@ -0,0 +1,156 @@ +/* + * $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' + + +CLASS QPainter + + DATA pPtr + + METHOD New() + + METHOD backgroundMode() INLINE Qt_QPainter_backgroundMode( ::pPtr ) + METHOD begin( pDevice ) INLINE Qt_QPainter_begin( ::pPtr, pDevice ) + METHOD boundingRect( aRectRectangle, nFlags, cText ) INLINE Qt_QPainter_boundingRect( ::pPtr, aRectRectangle, nFlags, cText ) + METHOD boundingRect_1( nX, nY, nW, nH, nFlags, cText ) INLINE Qt_QPainter_boundingRect_1( ::pPtr, nX, nY, nW, nH, nFlags, cText ) + METHOD brushOrigin() INLINE Qt_QPainter_brushOrigin( ::pPtr ) + METHOD compositionMode() INLINE Qt_QPainter_compositionMode( ::pPtr ) + METHOD device() INLINE Qt_QPainter_device( ::pPtr ) + METHOD drawArc( aRectRectangle, nStartAngle, nSpanAngle ) INLINE Qt_QPainter_drawArc( ::pPtr, aRectRectangle, nStartAngle, nSpanAngle ) + METHOD drawArc_1( nX, nY, nWidth, nHeight, nStartAngle, nSpanAngle ) INLINE Qt_QPainter_drawArc_1( ::pPtr, nX, nY, nWidth, nHeight, nStartAngle, nSpanAngle ) + METHOD drawChord( aRectRectangle, nStartAngle, nSpanAngle ) INLINE Qt_QPainter_drawChord( ::pPtr, aRectRectangle, nStartAngle, nSpanAngle ) + METHOD drawChord_1( nX, nY, nWidth, nHeight, nStartAngle, nSpanAngle ) INLINE Qt_QPainter_drawChord_1( ::pPtr, nX, nY, nWidth, nHeight, nStartAngle, nSpanAngle ) + METHOD drawConvexPolygon( pPoints, nPointCount ) INLINE Qt_QPainter_drawConvexPolygon( ::pPtr, pPoints, nPointCount ) + METHOD drawEllipse( aRectRectangle ) INLINE Qt_QPainter_drawEllipse( ::pPtr, aRectRectangle ) + METHOD drawEllipse_1( nX, nY, nWidth, nHeight ) INLINE Qt_QPainter_drawEllipse_1( ::pPtr, nX, nY, nWidth, nHeight ) + METHOD drawEllipse_2( aPointCenter, nRx, nRy ) INLINE Qt_QPainter_drawEllipse_2( ::pPtr, aPointCenter, nRx, nRy ) + METHOD drawLine( aPointP1, aPointP2 ) INLINE Qt_QPainter_drawLine( ::pPtr, aPointP1, aPointP2 ) + METHOD drawLine_1( nX1, nY1, nX2, nY2 ) INLINE Qt_QPainter_drawLine_1( ::pPtr, nX1, nY1, nX2, nY2 ) + METHOD drawLines( pLines, nLineCount ) INLINE Qt_QPainter_drawLines( ::pPtr, pLines, nLineCount ) + METHOD drawLines_1( pLines, nLineCount ) INLINE Qt_QPainter_drawLines_1( ::pPtr, pLines, nLineCount ) + METHOD drawLines_2( pPointPairs, nLineCount ) INLINE Qt_QPainter_drawLines_2( ::pPtr, pPointPairs, nLineCount ) + METHOD drawPie( aRectRectangle, nStartAngle, nSpanAngle ) INLINE Qt_QPainter_drawPie( ::pPtr, aRectRectangle, nStartAngle, nSpanAngle ) + METHOD drawPie_1( nX, nY, nWidth, nHeight, nStartAngle, nSpanAngle ) INLINE Qt_QPainter_drawPie_1( ::pPtr, nX, nY, nWidth, nHeight, nStartAngle, nSpanAngle ) + METHOD drawPoint( aPointPosition ) INLINE Qt_QPainter_drawPoint( ::pPtr, aPointPosition ) + METHOD drawPoint_1( nX, nY ) INLINE Qt_QPainter_drawPoint_1( ::pPtr, nX, nY ) + METHOD drawPoints( pPoints, nPointCount ) INLINE Qt_QPainter_drawPoints( ::pPtr, pPoints, nPointCount ) + METHOD drawPolygon( pPoints, nPointCount, nFillRule ) INLINE Qt_QPainter_drawPolygon( ::pPtr, pPoints, nPointCount, nFillRule ) + METHOD drawPolyline( pPoints, nPointCount ) INLINE Qt_QPainter_drawPolyline( ::pPtr, pPoints, nPointCount ) + METHOD drawRect( aRectRectangle ) INLINE Qt_QPainter_drawRect( ::pPtr, aRectRectangle ) + METHOD drawRect_1( nX, nY, nWidth, nHeight ) INLINE Qt_QPainter_drawRect_1( ::pPtr, nX, nY, nWidth, nHeight ) + METHOD drawRects( pRectangles, nRectCount ) INLINE Qt_QPainter_drawRects( ::pPtr, pRectangles, nRectCount ) + METHOD drawRoundedRect( aRectRect, nXRadius, nYRadius, nMode ) INLINE Qt_QPainter_drawRoundedRect( ::pPtr, aRectRect, nXRadius, nYRadius, nMode ) + METHOD drawRoundedRect_1( nX, nY, nW, nH, nXRadius, nYRadius, nMode ) INLINE Qt_QPainter_drawRoundedRect_1( ::pPtr, nX, nY, nW, nH, nXRadius, nYRadius, nMode ) + METHOD drawText( aPointPosition, cText ) INLINE Qt_QPainter_drawText( ::pPtr, aPointPosition, cText ) + METHOD drawText_1( nX, nY, cText ) INLINE Qt_QPainter_drawText_1( ::pPtr, nX, nY, cText ) + METHOD end() INLINE Qt_QPainter_end( ::pPtr ) + METHOD eraseRect( aRectRectangle ) INLINE Qt_QPainter_eraseRect( ::pPtr, aRectRectangle ) + METHOD eraseRect_1( nX, nY, nWidth, nHeight ) INLINE Qt_QPainter_eraseRect_1( ::pPtr, nX, nY, nWidth, nHeight ) + METHOD fillRect( nX, nY, nWidth, nHeight, nStyle ) INLINE Qt_QPainter_fillRect( ::pPtr, nX, nY, nWidth, nHeight, nStyle ) + METHOD fillRect_1( aRectRectangle, nStyle ) INLINE Qt_QPainter_fillRect_1( ::pPtr, aRectRectangle, nStyle ) + METHOD fillRect_2( nX, nY, nWidth, nHeight, nColor ) INLINE Qt_QPainter_fillRect_2( ::pPtr, nX, nY, nWidth, nHeight, nColor ) + METHOD fillRect_3( aRectRectangle, nColor ) INLINE Qt_QPainter_fillRect_3( ::pPtr, aRectRectangle, nColor ) + METHOD hasClipping() INLINE Qt_QPainter_hasClipping( ::pPtr ) + METHOD initFrom( pWidget ) INLINE Qt_QPainter_initFrom( ::pPtr, pWidget ) + METHOD isActive() INLINE Qt_QPainter_isActive( ::pPtr ) + METHOD layoutDirection() INLINE Qt_QPainter_layoutDirection( ::pPtr ) + METHOD opacity() INLINE Qt_QPainter_opacity( ::pPtr ) + METHOD paintEngine() INLINE Qt_QPainter_paintEngine( ::pPtr ) + METHOD resetMatrix() INLINE Qt_QPainter_resetMatrix( ::pPtr ) + METHOD resetTransform() INLINE Qt_QPainter_resetTransform( ::pPtr ) + METHOD restore() INLINE Qt_QPainter_restore( ::pPtr ) + METHOD rotate( nAngle ) INLINE Qt_QPainter_rotate( ::pPtr, nAngle ) + METHOD save() INLINE Qt_QPainter_save( ::pPtr ) + METHOD scale( nSx, nSy ) INLINE Qt_QPainter_scale( ::pPtr, nSx, nSy ) + METHOD setBackgroundMode( nMode ) INLINE Qt_QPainter_setBackgroundMode( ::pPtr, nMode ) + METHOD setBrush( nStyle ) INLINE Qt_QPainter_setBrush( ::pPtr, nStyle ) + METHOD setBrushOrigin( aPointPosition ) INLINE Qt_QPainter_setBrushOrigin( ::pPtr, aPointPosition ) + METHOD setBrushOrigin_1( nX, nY ) INLINE Qt_QPainter_setBrushOrigin_1( ::pPtr, nX, nY ) + METHOD setClipRect( nX, nY, nWidth, nHeight, nOperation ) INLINE Qt_QPainter_setClipRect( ::pPtr, nX, nY, nWidth, nHeight, nOperation ) + METHOD setClipRect_1( aRectRectangle, nOperation ) INLINE Qt_QPainter_setClipRect_1( ::pPtr, aRectRectangle, nOperation ) + METHOD setClipping( lEnable ) INLINE Qt_QPainter_setClipping( ::pPtr, lEnable ) + METHOD setCompositionMode( nCompositionMode ) INLINE Qt_QPainter_setCompositionMode( ::pPtr, nCompositionMode ) + METHOD setLayoutDirection( nDirection ) INLINE Qt_QPainter_setLayoutDirection( ::pPtr, nDirection ) + METHOD setOpacity( nOpacity ) INLINE Qt_QPainter_setOpacity( ::pPtr, nOpacity ) + METHOD setPen( nStyle ) INLINE Qt_QPainter_setPen( ::pPtr, nStyle ) + METHOD setRenderHint( nRenderHint, lOn ) INLINE Qt_QPainter_setRenderHint( ::pPtr, nRenderHint, lOn ) + METHOD setViewTransformEnabled( lEnable ) INLINE Qt_QPainter_setViewTransformEnabled( ::pPtr, lEnable ) + METHOD setViewport( aRectRectangle ) INLINE Qt_QPainter_setViewport( ::pPtr, aRectRectangle ) + METHOD setViewport_1( nX, nY, nWidth, nHeight ) INLINE Qt_QPainter_setViewport_1( ::pPtr, nX, nY, nWidth, nHeight ) + METHOD setWindow( aRectRectangle ) INLINE Qt_QPainter_setWindow( ::pPtr, aRectRectangle ) + METHOD setWindow_1( nX, nY, nWidth, nHeight ) INLINE Qt_QPainter_setWindow_1( ::pPtr, nX, nY, nWidth, nHeight ) + METHOD setWorldMatrixEnabled( lEnable ) INLINE Qt_QPainter_setWorldMatrixEnabled( ::pPtr, lEnable ) + METHOD shear( nSh, nSv ) INLINE Qt_QPainter_shear( ::pPtr, nSh, nSv ) + METHOD testRenderHint( nRenderHint ) INLINE Qt_QPainter_testRenderHint( ::pPtr, nRenderHint ) + METHOD translate( aPointOffset ) INLINE Qt_QPainter_translate( ::pPtr, aPointOffset ) + METHOD translate_1( nDx, nDy ) INLINE Qt_QPainter_translate_1( ::pPtr, nDx, nDy ) + METHOD viewTransformEnabled() INLINE Qt_QPainter_viewTransformEnabled( ::pPtr ) + METHOD viewport() INLINE Qt_QPainter_viewport( ::pPtr ) + METHOD window() INLINE Qt_QPainter_window( ::pPtr ) + METHOD worldMatrixEnabled() INLINE Qt_QPainter_worldMatrixEnabled( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QPainter + + ::pPtr := Qt_QPainter( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQPrintDialog.prg b/harbour/contrib/hbqt/TQPrintDialog.prg new file mode 100644 index 0000000000..c28b51da1b --- /dev/null +++ b/harbour/contrib/hbqt/TQPrintDialog.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' + + +CLASS QPrintDialog INHERIT QAbstractPrintDialog + + DATA pPtr + + METHOD New() + + METHOD done( nResult ) INLINE Qt_QPrintDialog_done( ::pPtr, nResult ) + METHOD open( pReceiver, pMember ) INLINE Qt_QPrintDialog_open( ::pPtr, pReceiver, pMember ) + METHOD options() INLINE Qt_QPrintDialog_options( ::pPtr ) + METHOD printer() INLINE Qt_QPrintDialog_printer( ::pPtr ) + METHOD printer_1() INLINE Qt_QPrintDialog_printer_1( ::pPtr ) + METHOD setOption( nPrintDialogOption, lOn ) INLINE Qt_QPrintDialog_setOption( ::pPtr, nPrintDialogOption, lOn ) + METHOD setOptions( nPrintDialogOptions ) INLINE Qt_QPrintDialog_setOptions( ::pPtr, nPrintDialogOptions ) + METHOD setVisible( lVisible ) INLINE Qt_QPrintDialog_setVisible( ::pPtr, lVisible ) + METHOD testOption( nPrintDialogOption ) INLINE Qt_QPrintDialog_testOption( ::pPtr, nPrintDialogOption ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QPrintDialog + + ::pPtr := Qt_QPrintDialog( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQPrintPreviewDialog.prg b/harbour/contrib/hbqt/TQPrintPreviewDialog.prg new file mode 100644 index 0000000000..e36b31c02c --- /dev/null +++ b/harbour/contrib/hbqt/TQPrintPreviewDialog.prg @@ -0,0 +1,79 @@ +/* + * $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' + + +CLASS QPrintPreviewDialog INHERIT QDialog + + DATA pPtr + + METHOD New() + + METHOD open( pReceiver, pMember ) INLINE Qt_QPrintPreviewDialog_open( ::pPtr, pReceiver, pMember ) + METHOD printer() INLINE Qt_QPrintPreviewDialog_printer( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QPrintPreviewDialog + + ::pPtr := Qt_QPrintPreviewDialog( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQProgressBar.prg b/harbour/contrib/hbqt/TQProgressBar.prg new file mode 100644 index 0000000000..0a63d8f8c2 --- /dev/null +++ b/harbour/contrib/hbqt/TQProgressBar.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' + + +CLASS QProgressBar INHERIT QWidget + + DATA pPtr + + METHOD New() + + METHOD alignment() INLINE Qt_QProgressBar_alignment( ::pPtr ) + METHOD format() INLINE Qt_QProgressBar_format( ::pPtr ) + METHOD invertedAppearance() INLINE Qt_QProgressBar_invertedAppearance( ::pPtr ) + METHOD isTextVisible() INLINE Qt_QProgressBar_isTextVisible( ::pPtr ) + METHOD maximum() INLINE Qt_QProgressBar_maximum( ::pPtr ) + METHOD minimum() INLINE Qt_QProgressBar_minimum( ::pPtr ) + METHOD orientation() INLINE Qt_QProgressBar_orientation( ::pPtr ) + METHOD setAlignment( nAlignment ) INLINE Qt_QProgressBar_setAlignment( ::pPtr, nAlignment ) + METHOD setFormat( cFormat ) INLINE Qt_QProgressBar_setFormat( ::pPtr, cFormat ) + METHOD setInvertedAppearance( lInvert ) INLINE Qt_QProgressBar_setInvertedAppearance( ::pPtr, lInvert ) + METHOD setTextDirection( nTextDirection ) INLINE Qt_QProgressBar_setTextDirection( ::pPtr, nTextDirection ) + METHOD setTextVisible( lVisible ) INLINE Qt_QProgressBar_setTextVisible( ::pPtr, lVisible ) + METHOD text() INLINE Qt_QProgressBar_text( ::pPtr ) + METHOD textDirection() INLINE Qt_QProgressBar_textDirection( ::pPtr ) + METHOD value() INLINE Qt_QProgressBar_value( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QProgressBar + + ::pPtr := Qt_QProgressBar( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQProgressDialog.prg b/harbour/contrib/hbqt/TQProgressDialog.prg new file mode 100644 index 0000000000..61ab07358d --- /dev/null +++ b/harbour/contrib/hbqt/TQProgressDialog.prg @@ -0,0 +1,101 @@ +/* + * $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' + + +CLASS QProgressDialog INHERIT QDialog + + DATA pPtr + + METHOD New() + + METHOD autoClose() INLINE Qt_QProgressDialog_autoClose( ::pPtr ) + METHOD autoReset() INLINE Qt_QProgressDialog_autoReset( ::pPtr ) + METHOD labelText() INLINE Qt_QProgressDialog_labelText( ::pPtr ) + METHOD maximum() INLINE Qt_QProgressDialog_maximum( ::pPtr ) + METHOD minimum() INLINE Qt_QProgressDialog_minimum( ::pPtr ) + METHOD minimumDuration() INLINE Qt_QProgressDialog_minimumDuration( ::pPtr ) + METHOD open( pReceiver, pMember ) INLINE Qt_QProgressDialog_open( ::pPtr, pReceiver, pMember ) + METHOD setAutoClose( lClose ) INLINE Qt_QProgressDialog_setAutoClose( ::pPtr, lClose ) + METHOD setAutoReset( lReset ) INLINE Qt_QProgressDialog_setAutoReset( ::pPtr, lReset ) + METHOD setBar( pBar ) INLINE Qt_QProgressDialog_setBar( ::pPtr, pBar ) + METHOD setCancelButton( pCancelButton ) INLINE Qt_QProgressDialog_setCancelButton( ::pPtr, pCancelButton ) + METHOD setLabel( pLabel ) INLINE Qt_QProgressDialog_setLabel( ::pPtr, pLabel ) + METHOD sizeHint() INLINE Qt_QProgressDialog_sizeHint( ::pPtr ) + METHOD value() INLINE Qt_QProgressDialog_value( ::pPtr ) + METHOD wasCanceled() INLINE Qt_QProgressDialog_wasCanceled( ::pPtr ) + METHOD cancel() INLINE Qt_QProgressDialog_cancel( ::pPtr ) + METHOD reset() INLINE Qt_QProgressDialog_reset( ::pPtr ) + METHOD setCancelButtonText( cCancelButtonText ) INLINE Qt_QProgressDialog_setCancelButtonText( ::pPtr, cCancelButtonText ) + METHOD setLabelText( cText ) INLINE Qt_QProgressDialog_setLabelText( ::pPtr, cText ) + METHOD setMaximum( nMaximum ) INLINE Qt_QProgressDialog_setMaximum( ::pPtr, nMaximum ) + METHOD setMinimum( nMinimum ) INLINE Qt_QProgressDialog_setMinimum( ::pPtr, nMinimum ) + METHOD setMinimumDuration( nMs ) INLINE Qt_QProgressDialog_setMinimumDuration( ::pPtr, nMs ) + METHOD setRange( nMinimum, nMaximum ) INLINE Qt_QProgressDialog_setRange( ::pPtr, nMinimum, nMaximum ) + METHOD setValue( nProgress ) INLINE Qt_QProgressDialog_setValue( ::pPtr, nProgress ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QProgressDialog + + ::pPtr := Qt_QProgressDialog( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQPushButton.prg b/harbour/contrib/hbqt/TQPushButton.prg new file mode 100644 index 0000000000..794942e9de --- /dev/null +++ b/harbour/contrib/hbqt/TQPushButton.prg @@ -0,0 +1,85 @@ +/* + * $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' + + +CLASS QPushButton INHERIT QAbstractButton + + DATA pPtr + + METHOD New() + + METHOD autoDefault() INLINE Qt_QPushButton_autoDefault( ::pPtr ) + METHOD isDefault() INLINE Qt_QPushButton_isDefault( ::pPtr ) + METHOD isFlat() INLINE Qt_QPushButton_isFlat( ::pPtr ) + METHOD menu() INLINE Qt_QPushButton_menu( ::pPtr ) + METHOD setAutoDefault( lBool ) INLINE Qt_QPushButton_setAutoDefault( ::pPtr, lBool ) + METHOD setDefault( lBool ) INLINE Qt_QPushButton_setDefault( ::pPtr, lBool ) + METHOD setFlat( lBool ) INLINE Qt_QPushButton_setFlat( ::pPtr, lBool ) + METHOD setMenu( pMenu ) INLINE Qt_QPushButton_setMenu( ::pPtr, pMenu ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QPushButton + + ::pPtr := Qt_QPushButton( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQRadioButton.prg b/harbour/contrib/hbqt/TQRadioButton.prg new file mode 100644 index 0000000000..986b2f32f4 --- /dev/null +++ b/harbour/contrib/hbqt/TQRadioButton.prg @@ -0,0 +1,77 @@ +/* + * $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' + + +CLASS QRadioButton INHERIT QAbstractButton + + DATA pPtr + + METHOD New() + + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QRadioButton + + ::pPtr := Qt_QRadioButton( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQScrollArea.prg b/harbour/contrib/hbqt/TQScrollArea.prg new file mode 100644 index 0000000000..247e0a5f50 --- /dev/null +++ b/harbour/contrib/hbqt/TQScrollArea.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' + + +CLASS QScrollArea INHERIT QAbstractScrollArea + + DATA pPtr + + METHOD New() + + METHOD alignment() INLINE Qt_QScrollArea_alignment( ::pPtr ) + METHOD ensureVisible( nX, nY, nXmargin, nYmargin ) INLINE Qt_QScrollArea_ensureVisible( ::pPtr, nX, nY, nXmargin, nYmargin ) + METHOD ensureWidgetVisible( pChildWidget, nXmargin, nYmargin ) INLINE Qt_QScrollArea_ensureWidgetVisible( ::pPtr, pChildWidget, nXmargin, nYmargin ) + METHOD setAlignment( nQt_Alignment ) INLINE Qt_QScrollArea_setAlignment( ::pPtr, nQt_Alignment ) + METHOD setWidget( pWidget ) INLINE Qt_QScrollArea_setWidget( ::pPtr, pWidget ) + METHOD setWidgetResizable( lResizable ) INLINE Qt_QScrollArea_setWidgetResizable( ::pPtr, lResizable ) + METHOD takeWidget() INLINE Qt_QScrollArea_takeWidget( ::pPtr ) + METHOD widget() INLINE Qt_QScrollArea_widget( ::pPtr ) + METHOD widgetResizable() INLINE Qt_QScrollArea_widgetResizable( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QScrollArea + + ::pPtr := Qt_QScrollArea( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQScrollBar.prg b/harbour/contrib/hbqt/TQScrollBar.prg new file mode 100644 index 0000000000..55545990df --- /dev/null +++ b/harbour/contrib/hbqt/TQScrollBar.prg @@ -0,0 +1,77 @@ +/* + * $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' + + +CLASS QScrollBar INHERIT QAbstractSlider + + DATA pPtr + + METHOD New() + + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QScrollBar + + ::pPtr := Qt_QScrollBar( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQSizeGrip.prg b/harbour/contrib/hbqt/TQSizeGrip.prg new file mode 100644 index 0000000000..c814baee6a --- /dev/null +++ b/harbour/contrib/hbqt/TQSizeGrip.prg @@ -0,0 +1,77 @@ +/* + * $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' + + +CLASS QSizeGrip INHERIT QWidget + + DATA pPtr + + METHOD New() + + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QSizeGrip + + ::pPtr := Qt_QSizeGrip( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQSlider.prg b/harbour/contrib/hbqt/TQSlider.prg new file mode 100644 index 0000000000..f9f4518085 --- /dev/null +++ b/harbour/contrib/hbqt/TQSlider.prg @@ -0,0 +1,81 @@ +/* + * $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' + + +CLASS QSlider INHERIT QAbstractSlider + + DATA pPtr + + METHOD New() + + METHOD setTickInterval( nTi ) INLINE Qt_QSlider_setTickInterval( ::pPtr, nTi ) + METHOD setTickPosition( nTickPosition ) INLINE Qt_QSlider_setTickPosition( ::pPtr, nTickPosition ) + METHOD tickInterval() INLINE Qt_QSlider_tickInterval( ::pPtr ) + METHOD tickPosition() INLINE Qt_QSlider_tickPosition( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QSlider + + ::pPtr := Qt_QSlider( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQSpinBox.prg b/harbour/contrib/hbqt/TQSpinBox.prg new file mode 100644 index 0000000000..c2857ae5dc --- /dev/null +++ b/harbour/contrib/hbqt/TQSpinBox.prg @@ -0,0 +1,90 @@ +/* + * $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' + + +CLASS QSpinBox INHERIT QAbstractSpinBox + + DATA pPtr + + METHOD New() + + METHOD cleanText() INLINE Qt_QSpinBox_cleanText( ::pPtr ) + METHOD maximum() INLINE Qt_QSpinBox_maximum( ::pPtr ) + METHOD minimum() INLINE Qt_QSpinBox_minimum( ::pPtr ) + METHOD prefix() INLINE Qt_QSpinBox_prefix( ::pPtr ) + METHOD setMaximum( nMax ) INLINE Qt_QSpinBox_setMaximum( ::pPtr, nMax ) + METHOD setMinimum( nMin ) INLINE Qt_QSpinBox_setMinimum( ::pPtr, nMin ) + METHOD setPrefix( cPrefix ) INLINE Qt_QSpinBox_setPrefix( ::pPtr, cPrefix ) + METHOD setRange( nMinimum, nMaximum ) INLINE Qt_QSpinBox_setRange( ::pPtr, nMinimum, nMaximum ) + METHOD setSingleStep( nVal ) INLINE Qt_QSpinBox_setSingleStep( ::pPtr, nVal ) + METHOD setSuffix( cSuffix ) INLINE Qt_QSpinBox_setSuffix( ::pPtr, cSuffix ) + METHOD singleStep() INLINE Qt_QSpinBox_singleStep( ::pPtr ) + METHOD suffix() INLINE Qt_QSpinBox_suffix( ::pPtr ) + METHOD value() INLINE Qt_QSpinBox_value( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QSpinBox + + ::pPtr := Qt_QSpinBox( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQSplitter.prg b/harbour/contrib/hbqt/TQSplitter.prg new file mode 100644 index 0000000000..799053f9d7 --- /dev/null +++ b/harbour/contrib/hbqt/TQSplitter.prg @@ -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 'hbclass.ch' + + +CLASS QSplitter INHERIT QFrame + + DATA pPtr + + METHOD New() + + METHOD addWidget( pWidget ) INLINE Qt_QSplitter_addWidget( ::pPtr, pWidget ) + METHOD childrenCollapsible() INLINE Qt_QSplitter_childrenCollapsible( ::pPtr ) + METHOD count() INLINE Qt_QSplitter_count( ::pPtr ) + METHOD handle( nIndex ) INLINE Qt_QSplitter_handle( ::pPtr, nIndex ) + METHOD handleWidth() INLINE Qt_QSplitter_handleWidth( ::pPtr ) + METHOD indexOf( pWidget ) INLINE Qt_QSplitter_indexOf( ::pPtr, pWidget ) + METHOD insertWidget( nIndex, pWidget ) INLINE Qt_QSplitter_insertWidget( ::pPtr, nIndex, pWidget ) + METHOD isCollapsible( nIndex ) INLINE Qt_QSplitter_isCollapsible( ::pPtr, nIndex ) + METHOD opaqueResize() INLINE Qt_QSplitter_opaqueResize( ::pPtr ) + METHOD orientation() INLINE Qt_QSplitter_orientation( ::pPtr ) + METHOD refresh() INLINE Qt_QSplitter_refresh( ::pPtr ) + METHOD setChildrenCollapsible( lBool ) INLINE Qt_QSplitter_setChildrenCollapsible( ::pPtr, lBool ) + METHOD setCollapsible( nIndex, lCollapse ) INLINE Qt_QSplitter_setCollapsible( ::pPtr, nIndex, lCollapse ) + METHOD setHandleWidth( nInt ) INLINE Qt_QSplitter_setHandleWidth( ::pPtr, nInt ) + METHOD setOpaqueResize( lOpaque ) INLINE Qt_QSplitter_setOpaqueResize( ::pPtr, lOpaque ) + METHOD setOrientation( nQt_Orientation ) INLINE Qt_QSplitter_setOrientation( ::pPtr, nQt_Orientation ) + METHOD setStretchFactor( nIndex, nStretch ) INLINE Qt_QSplitter_setStretchFactor( ::pPtr, nIndex, nStretch ) + METHOD widget( nIndex ) INLINE Qt_QSplitter_widget( ::pPtr, nIndex ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QSplitter + + ::pPtr := Qt_QSplitter( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQTabBar.prg b/harbour/contrib/hbqt/TQTabBar.prg new file mode 100644 index 0000000000..597a58448f --- /dev/null +++ b/harbour/contrib/hbqt/TQTabBar.prg @@ -0,0 +1,115 @@ +/* + * $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' + + +CLASS QTabBar INHERIT QWidget + + DATA pPtr + + METHOD New() + + METHOD addTab( cText ) INLINE Qt_QTabBar_addTab( ::pPtr, cText ) + METHOD count() INLINE Qt_QTabBar_count( ::pPtr ) + METHOD currentIndex() INLINE Qt_QTabBar_currentIndex( ::pPtr ) + METHOD documentMode() INLINE Qt_QTabBar_documentMode( ::pPtr ) + METHOD drawBase() INLINE Qt_QTabBar_drawBase( ::pPtr ) + METHOD elideMode() INLINE Qt_QTabBar_elideMode( ::pPtr ) + METHOD expanding() INLINE Qt_QTabBar_expanding( ::pPtr ) + METHOD iconSize() INLINE Qt_QTabBar_iconSize( ::pPtr ) + METHOD insertTab( nIndex, cText ) INLINE Qt_QTabBar_insertTab( ::pPtr, nIndex, cText ) + METHOD isMovable() INLINE Qt_QTabBar_isMovable( ::pPtr ) + METHOD isTabEnabled( nIndex ) INLINE Qt_QTabBar_isTabEnabled( ::pPtr, nIndex ) + METHOD moveTab( nFrom, nTo ) INLINE Qt_QTabBar_moveTab( ::pPtr, nFrom, nTo ) + METHOD removeTab( nIndex ) INLINE Qt_QTabBar_removeTab( ::pPtr, nIndex ) + METHOD selectionBehaviorOnRemove() INLINE Qt_QTabBar_selectionBehaviorOnRemove( ::pPtr ) + METHOD setDocumentMode( lSet ) INLINE Qt_QTabBar_setDocumentMode( ::pPtr, lSet ) + METHOD setDrawBase( lDrawTheBase ) INLINE Qt_QTabBar_setDrawBase( ::pPtr, lDrawTheBase ) + METHOD setElideMode( nQt_TextElideMode ) INLINE Qt_QTabBar_setElideMode( ::pPtr, nQt_TextElideMode ) + METHOD setExpanding( lEnabled ) INLINE Qt_QTabBar_setExpanding( ::pPtr, lEnabled ) + METHOD setIconSize( aSizeSize ) INLINE Qt_QTabBar_setIconSize( ::pPtr, aSizeSize ) + METHOD setMovable( lMovable ) INLINE Qt_QTabBar_setMovable( ::pPtr, lMovable ) + METHOD setSelectionBehaviorOnRemove( nSelectionBehavior ) INLINE Qt_QTabBar_setSelectionBehaviorOnRemove( ::pPtr, nSelectionBehavior ) + METHOD setShape( nShape ) INLINE Qt_QTabBar_setShape( ::pPtr, nShape ) + METHOD setTabButton( nIndex, nButtonPosition, pWidget ) INLINE Qt_QTabBar_setTabButton( ::pPtr, nIndex, nButtonPosition, pWidget ) + METHOD setTabEnabled( nIndex, lEnabled ) INLINE Qt_QTabBar_setTabEnabled( ::pPtr, nIndex, lEnabled ) + METHOD setTabText( nIndex, cText ) INLINE Qt_QTabBar_setTabText( ::pPtr, nIndex, cText ) + METHOD setTabToolTip( nIndex, cTip ) INLINE Qt_QTabBar_setTabToolTip( ::pPtr, nIndex, cTip ) + METHOD setTabWhatsThis( nIndex, cText ) INLINE Qt_QTabBar_setTabWhatsThis( ::pPtr, nIndex, cText ) + METHOD setTabsClosable( lClosable ) INLINE Qt_QTabBar_setTabsClosable( ::pPtr, lClosable ) + METHOD setUsesScrollButtons( lUseButtons ) INLINE Qt_QTabBar_setUsesScrollButtons( ::pPtr, lUseButtons ) + METHOD shape() INLINE Qt_QTabBar_shape( ::pPtr ) + METHOD tabAt( aPointPosition ) INLINE Qt_QTabBar_tabAt( ::pPtr, aPointPosition ) + METHOD tabButton( nIndex, nButtonPosition ) INLINE Qt_QTabBar_tabButton( ::pPtr, nIndex, nButtonPosition ) + METHOD tabRect( nIndex ) INLINE Qt_QTabBar_tabRect( ::pPtr, nIndex ) + METHOD tabText( nIndex ) INLINE Qt_QTabBar_tabText( ::pPtr, nIndex ) + METHOD tabToolTip( nIndex ) INLINE Qt_QTabBar_tabToolTip( ::pPtr, nIndex ) + METHOD tabWhatsThis( nIndex ) INLINE Qt_QTabBar_tabWhatsThis( ::pPtr, nIndex ) + METHOD tabsClosable() INLINE Qt_QTabBar_tabsClosable( ::pPtr ) + METHOD usesScrollButtons() INLINE Qt_QTabBar_usesScrollButtons( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QTabBar + + ::pPtr := Qt_QTabBar( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQTabWidget.prg b/harbour/contrib/hbqt/TQTabWidget.prg new file mode 100644 index 0000000000..60e46cbfad --- /dev/null +++ b/harbour/contrib/hbqt/TQTabWidget.prg @@ -0,0 +1,115 @@ +/* + * $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' + + +CLASS QTabWidget INHERIT QWidget + + DATA pPtr + + METHOD New() + + METHOD addTab( pPage, cLabel ) INLINE Qt_QTabWidget_addTab( ::pPtr, pPage, cLabel ) + METHOD addTab_1( pPage, cIcon, cLabel ) INLINE Qt_QTabWidget_addTab_1( ::pPtr, pPage, cIcon, cLabel ) + METHOD clear() INLINE Qt_QTabWidget_clear( ::pPtr ) + METHOD cornerWidget( nCorner ) INLINE Qt_QTabWidget_cornerWidget( ::pPtr, nCorner ) + METHOD count() INLINE Qt_QTabWidget_count( ::pPtr ) + METHOD currentIndex() INLINE Qt_QTabWidget_currentIndex( ::pPtr ) + METHOD currentWidget() INLINE Qt_QTabWidget_currentWidget( ::pPtr ) + METHOD documentMode() INLINE Qt_QTabWidget_documentMode( ::pPtr ) + METHOD elideMode() INLINE Qt_QTabWidget_elideMode( ::pPtr ) + METHOD iconSize() INLINE Qt_QTabWidget_iconSize( ::pPtr ) + METHOD indexOf( pW ) INLINE Qt_QTabWidget_indexOf( ::pPtr, pW ) + METHOD insertTab( nIndex, pPage, cLabel ) INLINE Qt_QTabWidget_insertTab( ::pPtr, nIndex, pPage, cLabel ) + METHOD insertTab_1( nIndex, pPage, cIcon, cLabel ) INLINE Qt_QTabWidget_insertTab_1( ::pPtr, nIndex, pPage, cIcon, cLabel ) + METHOD isMovable() INLINE Qt_QTabWidget_isMovable( ::pPtr ) + METHOD isTabEnabled( nIndex ) INLINE Qt_QTabWidget_isTabEnabled( ::pPtr, nIndex ) + METHOD removeTab( nIndex ) INLINE Qt_QTabWidget_removeTab( ::pPtr, nIndex ) + METHOD setCornerWidget( pWidget, nCorner ) INLINE Qt_QTabWidget_setCornerWidget( ::pPtr, pWidget, nCorner ) + METHOD setDocumentMode( lSet ) INLINE Qt_QTabWidget_setDocumentMode( ::pPtr, lSet ) + METHOD setElideMode( nQt_TextElideMode ) INLINE Qt_QTabWidget_setElideMode( ::pPtr, nQt_TextElideMode ) + METHOD setIconSize( aSizeSize ) INLINE Qt_QTabWidget_setIconSize( ::pPtr, aSizeSize ) + METHOD setMovable( lMovable ) INLINE Qt_QTabWidget_setMovable( ::pPtr, lMovable ) + METHOD setTabEnabled( nIndex, lEnable ) INLINE Qt_QTabWidget_setTabEnabled( ::pPtr, nIndex, lEnable ) + METHOD setTabIcon( nIndex, cIcon ) INLINE Qt_QTabWidget_setTabIcon( ::pPtr, nIndex, cIcon ) + METHOD setTabPosition( nTabPosition ) INLINE Qt_QTabWidget_setTabPosition( ::pPtr, nTabPosition ) + METHOD setTabShape( nTabShape ) INLINE Qt_QTabWidget_setTabShape( ::pPtr, nTabShape ) + METHOD setTabText( nIndex, cLabel ) INLINE Qt_QTabWidget_setTabText( ::pPtr, nIndex, cLabel ) + METHOD setTabToolTip( nIndex, cTip ) INLINE Qt_QTabWidget_setTabToolTip( ::pPtr, nIndex, cTip ) + METHOD setTabWhatsThis( nIndex, cText ) INLINE Qt_QTabWidget_setTabWhatsThis( ::pPtr, nIndex, cText ) + METHOD setTabsClosable( lCloseable ) INLINE Qt_QTabWidget_setTabsClosable( ::pPtr, lCloseable ) + METHOD setUsesScrollButtons( lUseButtons ) INLINE Qt_QTabWidget_setUsesScrollButtons( ::pPtr, lUseButtons ) + METHOD tabPosition() INLINE Qt_QTabWidget_tabPosition( ::pPtr ) + METHOD tabShape() INLINE Qt_QTabWidget_tabShape( ::pPtr ) + METHOD tabText( nIndex ) INLINE Qt_QTabWidget_tabText( ::pPtr, nIndex ) + METHOD tabToolTip( nIndex ) INLINE Qt_QTabWidget_tabToolTip( ::pPtr, nIndex ) + METHOD tabWhatsThis( nIndex ) INLINE Qt_QTabWidget_tabWhatsThis( ::pPtr, nIndex ) + METHOD tabsClosable() INLINE Qt_QTabWidget_tabsClosable( ::pPtr ) + METHOD usesScrollButtons() INLINE Qt_QTabWidget_usesScrollButtons( ::pPtr ) + METHOD widget( nIndex ) INLINE Qt_QTabWidget_widget( ::pPtr, nIndex ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QTabWidget + + ::pPtr := Qt_QTabWidget( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQTableView.prg b/harbour/contrib/hbqt/TQTableView.prg new file mode 100644 index 0000000000..35e25166de --- /dev/null +++ b/harbour/contrib/hbqt/TQTableView.prg @@ -0,0 +1,107 @@ +/* + * $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' + + +CLASS QTableView INHERIT QAbstractItemView + + DATA pPtr + + METHOD New() + + METHOD clearSpans() INLINE Qt_QTableView_clearSpans( ::pPtr ) + METHOD columnAt( nX ) INLINE Qt_QTableView_columnAt( ::pPtr, nX ) + METHOD columnSpan( nRow, nColumn ) INLINE Qt_QTableView_columnSpan( ::pPtr, nRow, nColumn ) + METHOD columnViewportPosition( nColumn ) INLINE Qt_QTableView_columnViewportPosition( ::pPtr, nColumn ) + METHOD columnWidth( nColumn ) INLINE Qt_QTableView_columnWidth( ::pPtr, nColumn ) + METHOD gridStyle() INLINE Qt_QTableView_gridStyle( ::pPtr ) + METHOD horizontalHeader() INLINE Qt_QTableView_horizontalHeader( ::pPtr ) + METHOD isColumnHidden( nColumn ) INLINE Qt_QTableView_isColumnHidden( ::pPtr, nColumn ) + METHOD isCornerButtonEnabled() INLINE Qt_QTableView_isCornerButtonEnabled( ::pPtr ) + METHOD isRowHidden( nRow ) INLINE Qt_QTableView_isRowHidden( ::pPtr, nRow ) + METHOD isSortingEnabled() INLINE Qt_QTableView_isSortingEnabled( ::pPtr ) + METHOD rowAt( nY ) INLINE Qt_QTableView_rowAt( ::pPtr, nY ) + METHOD rowHeight( nRow ) INLINE Qt_QTableView_rowHeight( ::pPtr, nRow ) + METHOD rowSpan( nRow, nColumn ) INLINE Qt_QTableView_rowSpan( ::pPtr, nRow, nColumn ) + METHOD rowViewportPosition( nRow ) INLINE Qt_QTableView_rowViewportPosition( ::pPtr, nRow ) + METHOD setColumnHidden( nColumn, lHide ) INLINE Qt_QTableView_setColumnHidden( ::pPtr, nColumn, lHide ) + METHOD setColumnWidth( nColumn, nWidth ) INLINE Qt_QTableView_setColumnWidth( ::pPtr, nColumn, nWidth ) + METHOD setCornerButtonEnabled( lEnable ) INLINE Qt_QTableView_setCornerButtonEnabled( ::pPtr, lEnable ) + METHOD setGridStyle( nStyle ) INLINE Qt_QTableView_setGridStyle( ::pPtr, nStyle ) + METHOD setHorizontalHeader( pHeader ) INLINE Qt_QTableView_setHorizontalHeader( ::pPtr, pHeader ) + METHOD setRowHeight( nRow, nHeight ) INLINE Qt_QTableView_setRowHeight( ::pPtr, nRow, nHeight ) + METHOD setRowHidden( nRow, lHide ) INLINE Qt_QTableView_setRowHidden( ::pPtr, nRow, lHide ) + METHOD setSortingEnabled( lEnable ) INLINE Qt_QTableView_setSortingEnabled( ::pPtr, lEnable ) + METHOD setSpan( nRow, nColumn, nRowSpanCount, nColumnSpanCount ) INLINE Qt_QTableView_setSpan( ::pPtr, nRow, nColumn, nRowSpanCount, nColumnSpanCount ) + METHOD setVerticalHeader( pHeader ) INLINE Qt_QTableView_setVerticalHeader( ::pPtr, pHeader ) + METHOD setWordWrap( lOn ) INLINE Qt_QTableView_setWordWrap( ::pPtr, lOn ) + METHOD showGrid() INLINE Qt_QTableView_showGrid( ::pPtr ) + METHOD sortByColumn( nColumn, nOrder ) INLINE Qt_QTableView_sortByColumn( ::pPtr, nColumn, nOrder ) + METHOD verticalHeader() INLINE Qt_QTableView_verticalHeader( ::pPtr ) + METHOD wordWrap() INLINE Qt_QTableView_wordWrap( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QTableView + + ::pPtr := Qt_QTableView( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQTableWidget.prg b/harbour/contrib/hbqt/TQTableWidget.prg new file mode 100644 index 0000000000..7a15461a85 --- /dev/null +++ b/harbour/contrib/hbqt/TQTableWidget.prg @@ -0,0 +1,113 @@ +/* + * $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' + + +CLASS QTableWidget INHERIT QTableView + + DATA pPtr + + METHOD New() + + METHOD cellWidget( nRow, nColumn ) INLINE Qt_QTableWidget_cellWidget( ::pPtr, nRow, nColumn ) + METHOD closePersistentEditor( pItem ) INLINE Qt_QTableWidget_closePersistentEditor( ::pPtr, pItem ) + METHOD column( pItem ) INLINE Qt_QTableWidget_column( ::pPtr, pItem ) + METHOD columnCount() INLINE Qt_QTableWidget_columnCount( ::pPtr ) + METHOD currentColumn() INLINE Qt_QTableWidget_currentColumn( ::pPtr ) + METHOD currentItem() INLINE Qt_QTableWidget_currentItem( ::pPtr ) + METHOD currentRow() INLINE Qt_QTableWidget_currentRow( ::pPtr ) + METHOD editItem( pItem ) INLINE Qt_QTableWidget_editItem( ::pPtr, pItem ) + METHOD horizontalHeaderItem( nColumn ) INLINE Qt_QTableWidget_horizontalHeaderItem( ::pPtr, nColumn ) + METHOD item( nRow, nColumn ) INLINE Qt_QTableWidget_item( ::pPtr, nRow, nColumn ) + METHOD itemAt( aPointPoint ) INLINE Qt_QTableWidget_itemAt( ::pPtr, aPointPoint ) + METHOD itemAt_1( nAx, nAy ) INLINE Qt_QTableWidget_itemAt_1( ::pPtr, nAx, nAy ) + METHOD itemPrototype() INLINE Qt_QTableWidget_itemPrototype( ::pPtr ) + METHOD openPersistentEditor( pItem ) INLINE Qt_QTableWidget_openPersistentEditor( ::pPtr, pItem ) + METHOD removeCellWidget( nRow, nColumn ) INLINE Qt_QTableWidget_removeCellWidget( ::pPtr, nRow, nColumn ) + METHOD row( pItem ) INLINE Qt_QTableWidget_row( ::pPtr, pItem ) + METHOD rowCount() INLINE Qt_QTableWidget_rowCount( ::pPtr ) + METHOD setCellWidget( nRow, nColumn, pWidget ) INLINE Qt_QTableWidget_setCellWidget( ::pPtr, nRow, nColumn, pWidget ) + METHOD setColumnCount( nColumns ) INLINE Qt_QTableWidget_setColumnCount( ::pPtr, nColumns ) + METHOD setCurrentCell( nRow, nColumn ) INLINE Qt_QTableWidget_setCurrentCell( ::pPtr, nRow, nColumn ) + METHOD setCurrentCell_1( nRow, nColumn, nCommand ) INLINE Qt_QTableWidget_setCurrentCell_1( ::pPtr, nRow, nColumn, nCommand ) + METHOD setCurrentItem( pItem ) INLINE Qt_QTableWidget_setCurrentItem( ::pPtr, pItem ) + METHOD setCurrentItem_1( pItem, nCommand ) INLINE Qt_QTableWidget_setCurrentItem_1( ::pPtr, pItem, nCommand ) + METHOD setHorizontalHeaderItem( nColumn, pItem ) INLINE Qt_QTableWidget_setHorizontalHeaderItem( ::pPtr, nColumn, pItem ) + METHOD setItem( nRow, nColumn, pItem ) INLINE Qt_QTableWidget_setItem( ::pPtr, nRow, nColumn, pItem ) + METHOD setItemPrototype( pItem ) INLINE Qt_QTableWidget_setItemPrototype( ::pPtr, pItem ) + METHOD setRowCount( nRows ) INLINE Qt_QTableWidget_setRowCount( ::pPtr, nRows ) + METHOD setVerticalHeaderItem( nRow, pItem ) INLINE Qt_QTableWidget_setVerticalHeaderItem( ::pPtr, nRow, pItem ) + METHOD sortItems( nColumn, nOrder ) INLINE Qt_QTableWidget_sortItems( ::pPtr, nColumn, nOrder ) + METHOD takeHorizontalHeaderItem( nColumn ) INLINE Qt_QTableWidget_takeHorizontalHeaderItem( ::pPtr, nColumn ) + METHOD takeItem( nRow, nColumn ) INLINE Qt_QTableWidget_takeItem( ::pPtr, nRow, nColumn ) + METHOD takeVerticalHeaderItem( nRow ) INLINE Qt_QTableWidget_takeVerticalHeaderItem( ::pPtr, nRow ) + METHOD verticalHeaderItem( nRow ) INLINE Qt_QTableWidget_verticalHeaderItem( ::pPtr, nRow ) + METHOD visualColumn( nLogicalColumn ) INLINE Qt_QTableWidget_visualColumn( ::pPtr, nLogicalColumn ) + METHOD visualItemRect( pItem ) INLINE Qt_QTableWidget_visualItemRect( ::pPtr, pItem ) + METHOD visualRow( nLogicalRow ) INLINE Qt_QTableWidget_visualRow( ::pPtr, nLogicalRow ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QTableWidget + + ::pPtr := Qt_QTableWidget( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQTableWidgetItem.prg b/harbour/contrib/hbqt/TQTableWidgetItem.prg new file mode 100644 index 0000000000..eb84c88c23 --- /dev/null +++ b/harbour/contrib/hbqt/TQTableWidgetItem.prg @@ -0,0 +1,99 @@ +/* + * $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' + + +CLASS QTableWidgetItem + + DATA pPtr + + METHOD New() + + METHOD checkState() INLINE Qt_QTableWidgetItem_checkState( ::pPtr ) + METHOD clone() INLINE Qt_QTableWidgetItem_clone( ::pPtr ) + METHOD column() INLINE Qt_QTableWidgetItem_column( ::pPtr ) + METHOD isSelected() INLINE Qt_QTableWidgetItem_isSelected( ::pPtr ) + METHOD row() INLINE Qt_QTableWidgetItem_row( ::pPtr ) + METHOD setCheckState( nState ) INLINE Qt_QTableWidgetItem_setCheckState( ::pPtr, nState ) + METHOD setIcon( cIcon ) INLINE Qt_QTableWidgetItem_setIcon( ::pPtr, cIcon ) + METHOD setSelected( lSelect ) INLINE Qt_QTableWidgetItem_setSelected( ::pPtr, lSelect ) + METHOD setSizeHint( aSizeSize ) INLINE Qt_QTableWidgetItem_setSizeHint( ::pPtr, aSizeSize ) + METHOD setStatusTip( cStatusTip ) INLINE Qt_QTableWidgetItem_setStatusTip( ::pPtr, cStatusTip ) + METHOD setText( cText ) INLINE Qt_QTableWidgetItem_setText( ::pPtr, cText ) + METHOD setTextAlignment( nAlignment ) INLINE Qt_QTableWidgetItem_setTextAlignment( ::pPtr, nAlignment ) + METHOD setToolTip( cToolTip ) INLINE Qt_QTableWidgetItem_setToolTip( ::pPtr, cToolTip ) + METHOD setWhatsThis( cWhatsThis ) INLINE Qt_QTableWidgetItem_setWhatsThis( ::pPtr, cWhatsThis ) + METHOD sizeHint() INLINE Qt_QTableWidgetItem_sizeHint( ::pPtr ) + METHOD statusTip() INLINE Qt_QTableWidgetItem_statusTip( ::pPtr ) + METHOD tableWidget() INLINE Qt_QTableWidgetItem_tableWidget( ::pPtr ) + METHOD text() INLINE Qt_QTableWidgetItem_text( ::pPtr ) + METHOD textAlignment() INLINE Qt_QTableWidgetItem_textAlignment( ::pPtr ) + METHOD toolTip() INLINE Qt_QTableWidgetItem_toolTip( ::pPtr ) + METHOD type() INLINE Qt_QTableWidgetItem_type( ::pPtr ) + METHOD whatsThis() INLINE Qt_QTableWidgetItem_whatsThis( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QTableWidgetItem + + ::pPtr := Qt_QTableWidgetItem( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQTextEdit.prg b/harbour/contrib/hbqt/TQTextEdit.prg new file mode 100644 index 0000000000..f14a94a035 --- /dev/null +++ b/harbour/contrib/hbqt/TQTextEdit.prg @@ -0,0 +1,121 @@ +/* + * $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' + + +CLASS QTextEdit INHERIT QAbstractScrollArea + + DATA pPtr + + METHOD New() + + METHOD acceptRichText() INLINE Qt_QTextEdit_acceptRichText( ::pPtr ) + METHOD alignment() INLINE Qt_QTextEdit_alignment( ::pPtr ) + METHOD anchorAt( aPointPos ) INLINE Qt_QTextEdit_anchorAt( ::pPtr, aPointPos ) + METHOD autoFormatting() INLINE Qt_QTextEdit_autoFormatting( ::pPtr ) + METHOD canPaste() INLINE Qt_QTextEdit_canPaste( ::pPtr ) + METHOD createStandardContextMenu() INLINE Qt_QTextEdit_createStandardContextMenu( ::pPtr ) + METHOD createStandardContextMenu_1( aPointPosition ) INLINE Qt_QTextEdit_createStandardContextMenu_1( ::pPtr, aPointPosition ) + METHOD cursorRect() INLINE Qt_QTextEdit_cursorRect( ::pPtr ) + METHOD cursorWidth() INLINE Qt_QTextEdit_cursorWidth( ::pPtr ) + METHOD document() INLINE Qt_QTextEdit_document( ::pPtr ) + METHOD documentTitle() INLINE Qt_QTextEdit_documentTitle( ::pPtr ) + METHOD ensureCursorVisible() INLINE Qt_QTextEdit_ensureCursorVisible( ::pPtr ) + METHOD find( cExp, nOptions ) INLINE Qt_QTextEdit_find( ::pPtr, cExp, nOptions ) + METHOD fontFamily() INLINE Qt_QTextEdit_fontFamily( ::pPtr ) + METHOD fontItalic() INLINE Qt_QTextEdit_fontItalic( ::pPtr ) + METHOD fontPointSize() INLINE Qt_QTextEdit_fontPointSize( ::pPtr ) + METHOD fontUnderline() INLINE Qt_QTextEdit_fontUnderline( ::pPtr ) + METHOD fontWeight() INLINE Qt_QTextEdit_fontWeight( ::pPtr ) + METHOD isReadOnly() INLINE Qt_QTextEdit_isReadOnly( ::pPtr ) + METHOD isUndoRedoEnabled() INLINE Qt_QTextEdit_isUndoRedoEnabled( ::pPtr ) + METHOD lineWrapColumnOrWidth() INLINE Qt_QTextEdit_lineWrapColumnOrWidth( ::pPtr ) + METHOD lineWrapMode() INLINE Qt_QTextEdit_lineWrapMode( ::pPtr ) + METHOD moveCursor( nOperation, nMode ) INLINE Qt_QTextEdit_moveCursor( ::pPtr, nOperation, nMode ) + METHOD overwriteMode() INLINE Qt_QTextEdit_overwriteMode( ::pPtr ) + METHOD print( pPrinter ) INLINE Qt_QTextEdit_print( ::pPtr, pPrinter ) + METHOD setAcceptRichText( lAccept ) INLINE Qt_QTextEdit_setAcceptRichText( ::pPtr, lAccept ) + METHOD setAutoFormatting( nAutoFormatting ) INLINE Qt_QTextEdit_setAutoFormatting( ::pPtr, nAutoFormatting ) + METHOD setCursorWidth( nWidth ) INLINE Qt_QTextEdit_setCursorWidth( ::pPtr, nWidth ) + METHOD setDocument( pDocument ) INLINE Qt_QTextEdit_setDocument( ::pPtr, pDocument ) + METHOD setDocumentTitle( cTitle ) INLINE Qt_QTextEdit_setDocumentTitle( ::pPtr, cTitle ) + METHOD setLineWrapColumnOrWidth( nW ) INLINE Qt_QTextEdit_setLineWrapColumnOrWidth( ::pPtr, nW ) + METHOD setLineWrapMode( nLineWrapMode ) INLINE Qt_QTextEdit_setLineWrapMode( ::pPtr, nLineWrapMode ) + METHOD setOverwriteMode( lOverwrite ) INLINE Qt_QTextEdit_setOverwriteMode( ::pPtr, lOverwrite ) + METHOD setReadOnly( lRo ) INLINE Qt_QTextEdit_setReadOnly( ::pPtr, lRo ) + METHOD setTabChangesFocus( lB ) INLINE Qt_QTextEdit_setTabChangesFocus( ::pPtr, lB ) + METHOD setTabStopWidth( nWidth ) INLINE Qt_QTextEdit_setTabStopWidth( ::pPtr, nWidth ) + METHOD setUndoRedoEnabled( lEnable ) INLINE Qt_QTextEdit_setUndoRedoEnabled( ::pPtr, lEnable ) + METHOD setWordWrapMode( nPolicy ) INLINE Qt_QTextEdit_setWordWrapMode( ::pPtr, nPolicy ) + METHOD tabChangesFocus() INLINE Qt_QTextEdit_tabChangesFocus( ::pPtr ) + METHOD tabStopWidth() INLINE Qt_QTextEdit_tabStopWidth( ::pPtr ) + METHOD textInteractionFlags() INLINE Qt_QTextEdit_textInteractionFlags( ::pPtr ) + METHOD toHtml() INLINE Qt_QTextEdit_toHtml( ::pPtr ) + METHOD toPlainText() INLINE Qt_QTextEdit_toPlainText( ::pPtr ) + METHOD wordWrapMode() INLINE Qt_QTextEdit_wordWrapMode( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QTextEdit + + ::pPtr := Qt_QTextEdit( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQTimeEdit.prg b/harbour/contrib/hbqt/TQTimeEdit.prg new file mode 100644 index 0000000000..aa05938fdf --- /dev/null +++ b/harbour/contrib/hbqt/TQTimeEdit.prg @@ -0,0 +1,77 @@ +/* + * $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' + + +CLASS QTimeEdit INHERIT QDateTimeEdit + + DATA pPtr + + METHOD New() + + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QTimeEdit + + ::pPtr := Qt_QTimeEdit( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQToolBar.prg b/harbour/contrib/hbqt/TQToolBar.prg new file mode 100644 index 0000000000..a26cc47158 --- /dev/null +++ b/harbour/contrib/hbqt/TQToolBar.prg @@ -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 'hbclass.ch' + + +CLASS QToolBar INHERIT QWidget + + DATA pPtr + + METHOD New() + + METHOD actionAt( aPointP ) INLINE Qt_QToolBar_actionAt( ::pPtr, aPointP ) + METHOD actionAt_1( nX, nY ) INLINE Qt_QToolBar_actionAt_1( ::pPtr, nX, nY ) + METHOD addAction( pAction ) INLINE Qt_QToolBar_addAction( ::pPtr, pAction ) + METHOD addAction_1( cText ) INLINE Qt_QToolBar_addAction_1( ::pPtr, cText ) + METHOD addAction_2( cIcon, cText ) INLINE Qt_QToolBar_addAction_2( ::pPtr, cIcon, cText ) + METHOD addAction_3( cText, pReceiver, pMember ) INLINE Qt_QToolBar_addAction_3( ::pPtr, cText, pReceiver, pMember ) + METHOD addAction_4( cIcon, cText, pReceiver, pMember ) INLINE Qt_QToolBar_addAction_4( ::pPtr, cIcon, cText, pReceiver, pMember ) + METHOD addSeparator() INLINE Qt_QToolBar_addSeparator( ::pPtr ) + METHOD addWidget( pWidget ) INLINE Qt_QToolBar_addWidget( ::pPtr, pWidget ) + METHOD allowedAreas() INLINE Qt_QToolBar_allowedAreas( ::pPtr ) + METHOD clear() INLINE Qt_QToolBar_clear( ::pPtr ) + METHOD iconSize() INLINE Qt_QToolBar_iconSize( ::pPtr ) + METHOD insertSeparator( pBefore ) INLINE Qt_QToolBar_insertSeparator( ::pPtr, pBefore ) + METHOD insertWidget( pBefore, pWidget ) INLINE Qt_QToolBar_insertWidget( ::pPtr, pBefore, pWidget ) + METHOD isAreaAllowed( nArea ) INLINE Qt_QToolBar_isAreaAllowed( ::pPtr, nArea ) + METHOD isFloatable() INLINE Qt_QToolBar_isFloatable( ::pPtr ) + METHOD isFloating() INLINE Qt_QToolBar_isFloating( ::pPtr ) + METHOD isMovable() INLINE Qt_QToolBar_isMovable( ::pPtr ) + METHOD orientation() INLINE Qt_QToolBar_orientation( ::pPtr ) + METHOD setAllowedAreas( nAreas ) INLINE Qt_QToolBar_setAllowedAreas( ::pPtr, nAreas ) + METHOD setFloatable( lFloatable ) INLINE Qt_QToolBar_setFloatable( ::pPtr, lFloatable ) + METHOD setMovable( lMovable ) INLINE Qt_QToolBar_setMovable( ::pPtr, lMovable ) + METHOD setOrientation( nOrientation ) INLINE Qt_QToolBar_setOrientation( ::pPtr, nOrientation ) + METHOD toggleViewAction() INLINE Qt_QToolBar_toggleViewAction( ::pPtr ) + METHOD toolButtonStyle() INLINE Qt_QToolBar_toolButtonStyle( ::pPtr ) + METHOD widgetForAction( pAction ) INLINE Qt_QToolBar_widgetForAction( ::pPtr, pAction ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QToolBar + + ::pPtr := Qt_QToolBar( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQToolBox.prg b/harbour/contrib/hbqt/TQToolBox.prg new file mode 100644 index 0000000000..2d0acbc264 --- /dev/null +++ b/harbour/contrib/hbqt/TQToolBox.prg @@ -0,0 +1,94 @@ +/* + * $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' + + +CLASS QToolBox INHERIT QFrame + + DATA pPtr + + METHOD New() + + METHOD addItem( pWidget, cIconSet, cText ) INLINE Qt_QToolBox_addItem( ::pPtr, pWidget, cIconSet, cText ) + METHOD addItem_1( pW, cText ) INLINE Qt_QToolBox_addItem_1( ::pPtr, pW, cText ) + METHOD count() INLINE Qt_QToolBox_count( ::pPtr ) + METHOD currentIndex() INLINE Qt_QToolBox_currentIndex( ::pPtr ) + METHOD currentWidget() INLINE Qt_QToolBox_currentWidget( ::pPtr ) + METHOD indexOf( pWidget ) INLINE Qt_QToolBox_indexOf( ::pPtr, pWidget ) + METHOD insertItem( nIndex, pWidget, cIcon, cText ) INLINE Qt_QToolBox_insertItem( ::pPtr, nIndex, pWidget, cIcon, cText ) + METHOD insertItem_1( nIndex, pWidget, cText ) INLINE Qt_QToolBox_insertItem_1( ::pPtr, nIndex, pWidget, cText ) + METHOD isItemEnabled( nIndex ) INLINE Qt_QToolBox_isItemEnabled( ::pPtr, nIndex ) + METHOD itemText( nIndex ) INLINE Qt_QToolBox_itemText( ::pPtr, nIndex ) + METHOD itemToolTip( nIndex ) INLINE Qt_QToolBox_itemToolTip( ::pPtr, nIndex ) + METHOD removeItem( nIndex ) INLINE Qt_QToolBox_removeItem( ::pPtr, nIndex ) + METHOD setItemEnabled( nIndex, lEnabled ) INLINE Qt_QToolBox_setItemEnabled( ::pPtr, nIndex, lEnabled ) + METHOD setItemIcon( nIndex, cIcon ) INLINE Qt_QToolBox_setItemIcon( ::pPtr, nIndex, cIcon ) + METHOD setItemText( nIndex, cText ) INLINE Qt_QToolBox_setItemText( ::pPtr, nIndex, cText ) + METHOD setItemToolTip( nIndex, cToolTip ) INLINE Qt_QToolBox_setItemToolTip( ::pPtr, nIndex, cToolTip ) + METHOD widget( nIndex ) INLINE Qt_QToolBox_widget( ::pPtr, nIndex ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QToolBox + + ::pPtr := Qt_QToolBox( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQToolButton.prg b/harbour/contrib/hbqt/TQToolButton.prg new file mode 100644 index 0000000000..db06789cb1 --- /dev/null +++ b/harbour/contrib/hbqt/TQToolButton.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' + + +CLASS QToolButton INHERIT QAbstractButton + + DATA pPtr + + METHOD New() + + METHOD arrowType() INLINE Qt_QToolButton_arrowType( ::pPtr ) + METHOD autoRaise() INLINE Qt_QToolButton_autoRaise( ::pPtr ) + METHOD defaultAction() INLINE Qt_QToolButton_defaultAction( ::pPtr ) + METHOD menu() INLINE Qt_QToolButton_menu( ::pPtr ) + METHOD popupMode() INLINE Qt_QToolButton_popupMode( ::pPtr ) + METHOD setArrowType( nType ) INLINE Qt_QToolButton_setArrowType( ::pPtr, nType ) + METHOD setAutoRaise( lEnable ) INLINE Qt_QToolButton_setAutoRaise( ::pPtr, lEnable ) + METHOD setMenu( pMenu ) INLINE Qt_QToolButton_setMenu( ::pPtr, pMenu ) + METHOD setPopupMode( nToolButtonPopupMode ) INLINE Qt_QToolButton_setPopupMode( ::pPtr, nToolButtonPopupMode ) + METHOD toolButtonStyle() INLINE Qt_QToolButton_toolButtonStyle( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QToolButton + + ::pPtr := Qt_QToolButton( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQTreeView.prg b/harbour/contrib/hbqt/TQTreeView.prg new file mode 100644 index 0000000000..f5043cde6e --- /dev/null +++ b/harbour/contrib/hbqt/TQTreeView.prg @@ -0,0 +1,108 @@ +/* + * $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' + + +CLASS QTreeView INHERIT QAbstractItemView + + DATA pPtr + + METHOD New() + + METHOD allColumnsShowFocus() INLINE Qt_QTreeView_allColumnsShowFocus( ::pPtr ) + METHOD autoExpandDelay() INLINE Qt_QTreeView_autoExpandDelay( ::pPtr ) + METHOD columnAt( nX ) INLINE Qt_QTreeView_columnAt( ::pPtr, nX ) + METHOD columnViewportPosition( nColumn ) INLINE Qt_QTreeView_columnViewportPosition( ::pPtr, nColumn ) + METHOD columnWidth( nColumn ) INLINE Qt_QTreeView_columnWidth( ::pPtr, nColumn ) + METHOD expandsOnDoubleClick() INLINE Qt_QTreeView_expandsOnDoubleClick( ::pPtr ) + METHOD header() INLINE Qt_QTreeView_header( ::pPtr ) + METHOD indentation() INLINE Qt_QTreeView_indentation( ::pPtr ) + METHOD isAnimated() INLINE Qt_QTreeView_isAnimated( ::pPtr ) + METHOD isColumnHidden( nColumn ) INLINE Qt_QTreeView_isColumnHidden( ::pPtr, nColumn ) + METHOD isHeaderHidden() INLINE Qt_QTreeView_isHeaderHidden( ::pPtr ) + METHOD isSortingEnabled() INLINE Qt_QTreeView_isSortingEnabled( ::pPtr ) + METHOD itemsExpandable() INLINE Qt_QTreeView_itemsExpandable( ::pPtr ) + METHOD rootIsDecorated() INLINE Qt_QTreeView_rootIsDecorated( ::pPtr ) + METHOD setAllColumnsShowFocus( lEnable ) INLINE Qt_QTreeView_setAllColumnsShowFocus( ::pPtr, lEnable ) + METHOD setAnimated( lEnable ) INLINE Qt_QTreeView_setAnimated( ::pPtr, lEnable ) + METHOD setAutoExpandDelay( nDelay ) INLINE Qt_QTreeView_setAutoExpandDelay( ::pPtr, nDelay ) + METHOD setColumnHidden( nColumn, lHide ) INLINE Qt_QTreeView_setColumnHidden( ::pPtr, nColumn, lHide ) + METHOD setColumnWidth( nColumn, nWidth ) INLINE Qt_QTreeView_setColumnWidth( ::pPtr, nColumn, nWidth ) + METHOD setExpandsOnDoubleClick( lEnable ) INLINE Qt_QTreeView_setExpandsOnDoubleClick( ::pPtr, lEnable ) + METHOD setHeader( pHeader ) INLINE Qt_QTreeView_setHeader( ::pPtr, pHeader ) + METHOD setHeaderHidden( lHide ) INLINE Qt_QTreeView_setHeaderHidden( ::pPtr, lHide ) + METHOD setIndentation( nI ) INLINE Qt_QTreeView_setIndentation( ::pPtr, nI ) + METHOD setItemsExpandable( lEnable ) INLINE Qt_QTreeView_setItemsExpandable( ::pPtr, lEnable ) + METHOD setRootIsDecorated( lShow ) INLINE Qt_QTreeView_setRootIsDecorated( ::pPtr, lShow ) + METHOD setSortingEnabled( lEnable ) INLINE Qt_QTreeView_setSortingEnabled( ::pPtr, lEnable ) + METHOD setUniformRowHeights( lUniform ) INLINE Qt_QTreeView_setUniformRowHeights( ::pPtr, lUniform ) + METHOD setWordWrap( lOn ) INLINE Qt_QTreeView_setWordWrap( ::pPtr, lOn ) + METHOD sortByColumn( nColumn, nOrder ) INLINE Qt_QTreeView_sortByColumn( ::pPtr, nColumn, nOrder ) + METHOD uniformRowHeights() INLINE Qt_QTreeView_uniformRowHeights( ::pPtr ) + METHOD wordWrap() INLINE Qt_QTreeView_wordWrap( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QTreeView + + ::pPtr := Qt_QTreeView( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQTreeWidget.prg b/harbour/contrib/hbqt/TQTreeWidget.prg new file mode 100644 index 0000000000..12e70684df --- /dev/null +++ b/harbour/contrib/hbqt/TQTreeWidget.prg @@ -0,0 +1,109 @@ +/* + * $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' + + +CLASS QTreeWidget INHERIT QTreeView + + DATA pPtr + + METHOD New() + + METHOD addTopLevelItem( pItem ) INLINE Qt_QTreeWidget_addTopLevelItem( ::pPtr, pItem ) + METHOD closePersistentEditor( pItem, nColumn ) INLINE Qt_QTreeWidget_closePersistentEditor( ::pPtr, pItem, nColumn ) + METHOD columnCount() INLINE Qt_QTreeWidget_columnCount( ::pPtr ) + METHOD currentColumn() INLINE Qt_QTreeWidget_currentColumn( ::pPtr ) + METHOD currentItem() INLINE Qt_QTreeWidget_currentItem( ::pPtr ) + METHOD editItem( pItem, nColumn ) INLINE Qt_QTreeWidget_editItem( ::pPtr, pItem, nColumn ) + METHOD headerItem() INLINE Qt_QTreeWidget_headerItem( ::pPtr ) + METHOD indexOfTopLevelItem( pItem ) INLINE Qt_QTreeWidget_indexOfTopLevelItem( ::pPtr, pItem ) + METHOD insertTopLevelItem( nIndex, pItem ) INLINE Qt_QTreeWidget_insertTopLevelItem( ::pPtr, nIndex, pItem ) + METHOD invisibleRootItem() INLINE Qt_QTreeWidget_invisibleRootItem( ::pPtr ) + METHOD isFirstItemColumnSpanned( pItem ) INLINE Qt_QTreeWidget_isFirstItemColumnSpanned( ::pPtr, pItem ) + METHOD itemAbove( pItem ) INLINE Qt_QTreeWidget_itemAbove( ::pPtr, pItem ) + METHOD itemAt( aPointP ) INLINE Qt_QTreeWidget_itemAt( ::pPtr, aPointP ) + METHOD itemAt_1( nX, nY ) INLINE Qt_QTreeWidget_itemAt_1( ::pPtr, nX, nY ) + METHOD itemBelow( pItem ) INLINE Qt_QTreeWidget_itemBelow( ::pPtr, pItem ) + METHOD itemWidget( pItem, nColumn ) INLINE Qt_QTreeWidget_itemWidget( ::pPtr, pItem, nColumn ) + METHOD openPersistentEditor( pItem, nColumn ) INLINE Qt_QTreeWidget_openPersistentEditor( ::pPtr, pItem, nColumn ) + METHOD removeItemWidget( pItem, nColumn ) INLINE Qt_QTreeWidget_removeItemWidget( ::pPtr, pItem, nColumn ) + METHOD setColumnCount( nColumns ) INLINE Qt_QTreeWidget_setColumnCount( ::pPtr, nColumns ) + METHOD setCurrentItem( pItem ) INLINE Qt_QTreeWidget_setCurrentItem( ::pPtr, pItem ) + METHOD setCurrentItem_1( pItem, nColumn ) INLINE Qt_QTreeWidget_setCurrentItem_1( ::pPtr, pItem, nColumn ) + METHOD setCurrentItem_2( pItem, nColumn, nCommand ) INLINE Qt_QTreeWidget_setCurrentItem_2( ::pPtr, pItem, nColumn, nCommand ) + METHOD setFirstItemColumnSpanned( pItem, lSpan ) INLINE Qt_QTreeWidget_setFirstItemColumnSpanned( ::pPtr, pItem, lSpan ) + METHOD setHeaderItem( pItem ) INLINE Qt_QTreeWidget_setHeaderItem( ::pPtr, pItem ) + METHOD setHeaderLabel( cLabel ) INLINE Qt_QTreeWidget_setHeaderLabel( ::pPtr, cLabel ) + METHOD setItemWidget( pItem, nColumn, pWidget ) INLINE Qt_QTreeWidget_setItemWidget( ::pPtr, pItem, nColumn, pWidget ) + METHOD sortColumn() INLINE Qt_QTreeWidget_sortColumn( ::pPtr ) + METHOD sortItems( nColumn, nOrder ) INLINE Qt_QTreeWidget_sortItems( ::pPtr, nColumn, nOrder ) + METHOD takeTopLevelItem( nIndex ) INLINE Qt_QTreeWidget_takeTopLevelItem( ::pPtr, nIndex ) + METHOD topLevelItem( nIndex ) INLINE Qt_QTreeWidget_topLevelItem( ::pPtr, nIndex ) + METHOD topLevelItemCount() INLINE Qt_QTreeWidget_topLevelItemCount( ::pPtr ) + METHOD visualItemRect( pItem ) INLINE Qt_QTreeWidget_visualItemRect( ::pPtr, pItem ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QTreeWidget + + ::pPtr := Qt_QTreeWidget( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQTreeWidgetItem.prg b/harbour/contrib/hbqt/TQTreeWidgetItem.prg new file mode 100644 index 0000000000..e067b035c9 --- /dev/null +++ b/harbour/contrib/hbqt/TQTreeWidgetItem.prg @@ -0,0 +1,117 @@ +/* + * $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' + + +CLASS QTreeWidgetItem + + DATA pPtr + + METHOD New() + + METHOD addChild( pChild ) INLINE Qt_QTreeWidgetItem_addChild( ::pPtr, pChild ) + METHOD checkState( nColumn ) INLINE Qt_QTreeWidgetItem_checkState( ::pPtr, nColumn ) + METHOD child( nIndex ) INLINE Qt_QTreeWidgetItem_child( ::pPtr, nIndex ) + METHOD childCount() INLINE Qt_QTreeWidgetItem_childCount( ::pPtr ) + METHOD childIndicatorPolicy() INLINE Qt_QTreeWidgetItem_childIndicatorPolicy( ::pPtr ) + METHOD clone() INLINE Qt_QTreeWidgetItem_clone( ::pPtr ) + METHOD columnCount() INLINE Qt_QTreeWidgetItem_columnCount( ::pPtr ) + METHOD indexOfChild( pChild ) INLINE Qt_QTreeWidgetItem_indexOfChild( ::pPtr, pChild ) + METHOD insertChild( nIndex, pChild ) INLINE Qt_QTreeWidgetItem_insertChild( ::pPtr, nIndex, pChild ) + METHOD isDisabled() INLINE Qt_QTreeWidgetItem_isDisabled( ::pPtr ) + METHOD isExpanded() INLINE Qt_QTreeWidgetItem_isExpanded( ::pPtr ) + METHOD isFirstColumnSpanned() INLINE Qt_QTreeWidgetItem_isFirstColumnSpanned( ::pPtr ) + METHOD isHidden() INLINE Qt_QTreeWidgetItem_isHidden( ::pPtr ) + METHOD isSelected() INLINE Qt_QTreeWidgetItem_isSelected( ::pPtr ) + METHOD parent() INLINE Qt_QTreeWidgetItem_parent( ::pPtr ) + METHOD removeChild( pChild ) INLINE Qt_QTreeWidgetItem_removeChild( ::pPtr, pChild ) + METHOD setCheckState( nColumn, nState ) INLINE Qt_QTreeWidgetItem_setCheckState( ::pPtr, nColumn, nState ) + METHOD setChildIndicatorPolicy( nPolicy ) INLINE Qt_QTreeWidgetItem_setChildIndicatorPolicy( ::pPtr, nPolicy ) + METHOD setDisabled( lDisabled ) INLINE Qt_QTreeWidgetItem_setDisabled( ::pPtr, lDisabled ) + METHOD setExpanded( lExpand ) INLINE Qt_QTreeWidgetItem_setExpanded( ::pPtr, lExpand ) + METHOD setFirstColumnSpanned( lSpan ) INLINE Qt_QTreeWidgetItem_setFirstColumnSpanned( ::pPtr, lSpan ) + METHOD setHidden( lHide ) INLINE Qt_QTreeWidgetItem_setHidden( ::pPtr, lHide ) + METHOD setIcon( nColumn, cIcon ) INLINE Qt_QTreeWidgetItem_setIcon( ::pPtr, nColumn, cIcon ) + METHOD setSelected( lSelect ) INLINE Qt_QTreeWidgetItem_setSelected( ::pPtr, lSelect ) + METHOD setSizeHint( nColumn, aSizeSize ) INLINE Qt_QTreeWidgetItem_setSizeHint( ::pPtr, nColumn, aSizeSize ) + METHOD setStatusTip( nColumn, cStatusTip ) INLINE Qt_QTreeWidgetItem_setStatusTip( ::pPtr, nColumn, cStatusTip ) + METHOD setText( nColumn, cText ) INLINE Qt_QTreeWidgetItem_setText( ::pPtr, nColumn, cText ) + METHOD setTextAlignment( nColumn, nAlignment ) INLINE Qt_QTreeWidgetItem_setTextAlignment( ::pPtr, nColumn, nAlignment ) + METHOD setToolTip( nColumn, cToolTip ) INLINE Qt_QTreeWidgetItem_setToolTip( ::pPtr, nColumn, cToolTip ) + METHOD setWhatsThis( nColumn, cWhatsThis ) INLINE Qt_QTreeWidgetItem_setWhatsThis( ::pPtr, nColumn, cWhatsThis ) + METHOD sizeHint( nColumn ) INLINE Qt_QTreeWidgetItem_sizeHint( ::pPtr, nColumn ) + METHOD sortChildren( nColumn, nOrder ) INLINE Qt_QTreeWidgetItem_sortChildren( ::pPtr, nColumn, nOrder ) + METHOD statusTip( nColumn ) INLINE Qt_QTreeWidgetItem_statusTip( ::pPtr, nColumn ) + METHOD takeChild( nIndex ) INLINE Qt_QTreeWidgetItem_takeChild( ::pPtr, nIndex ) + METHOD text( nColumn ) INLINE Qt_QTreeWidgetItem_text( ::pPtr, nColumn ) + METHOD textAlignment( nColumn ) INLINE Qt_QTreeWidgetItem_textAlignment( ::pPtr, nColumn ) + METHOD toolTip( nColumn ) INLINE Qt_QTreeWidgetItem_toolTip( ::pPtr, nColumn ) + METHOD treeWidget() INLINE Qt_QTreeWidgetItem_treeWidget( ::pPtr ) + METHOD type() INLINE Qt_QTreeWidgetItem_type( ::pPtr ) + METHOD whatsThis( nColumn ) INLINE Qt_QTreeWidgetItem_whatsThis( ::pPtr, nColumn ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QTreeWidgetItem + + ::pPtr := Qt_QTreeWidgetItem( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQVBoxLayout.prg b/harbour/contrib/hbqt/TQVBoxLayout.prg new file mode 100644 index 0000000000..f4bf37706d --- /dev/null +++ b/harbour/contrib/hbqt/TQVBoxLayout.prg @@ -0,0 +1,77 @@ +/* + * $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' + + +CLASS QVBoxLayout INHERIT QBoxLayout + + DATA pPtr + + METHOD New() + + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QVBoxLayout + + ::pPtr := Qt_QVBoxLayout( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQWebPage.prg b/harbour/contrib/hbqt/TQWebPage.prg new file mode 100644 index 0000000000..7cd7bb2084 --- /dev/null +++ b/harbour/contrib/hbqt/TQWebPage.prg @@ -0,0 +1,106 @@ +/* + * $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' + + +CLASS QWebPage INHERIT QObject + + DATA pPtr + + METHOD New() + + METHOD action( nWebAction ) INLINE Qt_QWebPage_action( ::pPtr, nWebAction ) + METHOD createStandardContextMenu() INLINE Qt_QWebPage_createStandardContextMenu( ::pPtr ) + METHOD currentFrame() INLINE Qt_QWebPage_currentFrame( ::pPtr ) + METHOD findText( cSubString, nFindFlags ) INLINE Qt_QWebPage_findText( ::pPtr, cSubString, nFindFlags ) + METHOD focusNextPrevChild( lNext ) INLINE Qt_QWebPage_focusNextPrevChild( ::pPtr, lNext ) + METHOD forwardUnsupportedContent() INLINE Qt_QWebPage_forwardUnsupportedContent( ::pPtr ) + METHOD history() INLINE Qt_QWebPage_history( ::pPtr ) + METHOD isContentEditable() INLINE Qt_QWebPage_isContentEditable( ::pPtr ) + METHOD isModified() INLINE Qt_QWebPage_isModified( ::pPtr ) + METHOD linkDelegationPolicy() INLINE Qt_QWebPage_linkDelegationPolicy( ::pPtr ) + METHOD mainFrame() INLINE Qt_QWebPage_mainFrame( ::pPtr ) + METHOD networkAccessManager() INLINE Qt_QWebPage_networkAccessManager( ::pPtr ) + METHOD pluginFactory() INLINE Qt_QWebPage_pluginFactory( ::pPtr ) + METHOD selectedText() INLINE Qt_QWebPage_selectedText( ::pPtr ) + METHOD setContentEditable( lEditable ) INLINE Qt_QWebPage_setContentEditable( ::pPtr, lEditable ) + METHOD setForwardUnsupportedContent( lForward ) INLINE Qt_QWebPage_setForwardUnsupportedContent( ::pPtr, lForward ) + METHOD setLinkDelegationPolicy( nLinkDelegationPolicy ) INLINE Qt_QWebPage_setLinkDelegationPolicy( ::pPtr, nLinkDelegationPolicy ) + METHOD setNetworkAccessManager( pManager ) INLINE Qt_QWebPage_setNetworkAccessManager( ::pPtr, pManager ) + METHOD setPluginFactory( pFactory ) INLINE Qt_QWebPage_setPluginFactory( ::pPtr, pFactory ) + METHOD setView( pView ) INLINE Qt_QWebPage_setView( ::pPtr, pView ) + METHOD setViewportSize( aSizeSize ) INLINE Qt_QWebPage_setViewportSize( ::pPtr, aSizeSize ) + METHOD settings() INLINE Qt_QWebPage_settings( ::pPtr ) + METHOD supportsExtension( nExtension ) INLINE Qt_QWebPage_supportsExtension( ::pPtr, nExtension ) + METHOD swallowContextMenuEvent( pEvent ) INLINE Qt_QWebPage_swallowContextMenuEvent( ::pPtr, pEvent ) + METHOD triggerAction( nWebAction, lChecked ) INLINE Qt_QWebPage_triggerAction( ::pPtr, nWebAction, lChecked ) + METHOD undoStack() INLINE Qt_QWebPage_undoStack( ::pPtr ) + METHOD updatePositionDependentActions( aPointPos ) INLINE Qt_QWebPage_updatePositionDependentActions( ::pPtr, aPointPos ) + METHOD view() INLINE Qt_QWebPage_view( ::pPtr ) + METHOD viewportSize() INLINE Qt_QWebPage_viewportSize( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QWebPage + + ::pPtr := Qt_QWebPage( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQWebView.prg b/harbour/contrib/hbqt/TQWebView.prg new file mode 100644 index 0000000000..cdf93fd77b --- /dev/null +++ b/harbour/contrib/hbqt/TQWebView.prg @@ -0,0 +1,96 @@ +/* + * $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' + + +CLASS QWebView INHERIT QWidget + + DATA pPtr + + METHOD New() + + METHOD findText( cSubString, nOptions ) INLINE Qt_QWebView_findText( ::pPtr, cSubString, nOptions ) + METHOD history() INLINE Qt_QWebView_history( ::pPtr ) + METHOD isModified() INLINE Qt_QWebView_isModified( ::pPtr ) + METHOD page() INLINE Qt_QWebView_page( ::pPtr ) + METHOD pageAction( nAction ) INLINE Qt_QWebView_pageAction( ::pPtr, nAction ) + METHOD selectedText() INLINE Qt_QWebView_selectedText( ::pPtr ) + METHOD setPage( pPage ) INLINE Qt_QWebView_setPage( ::pPtr, pPage ) + METHOD setTextSizeMultiplier( nFactor ) INLINE Qt_QWebView_setTextSizeMultiplier( ::pPtr, nFactor ) + METHOD setZoomFactor( nFactor ) INLINE Qt_QWebView_setZoomFactor( ::pPtr, nFactor ) + METHOD settings() INLINE Qt_QWebView_settings( ::pPtr ) + METHOD textSizeMultiplier() INLINE Qt_QWebView_textSizeMultiplier( ::pPtr ) + METHOD title() INLINE Qt_QWebView_title( ::pPtr ) + METHOD triggerPageAction( nAction, lChecked ) INLINE Qt_QWebView_triggerPageAction( ::pPtr, nAction, lChecked ) + METHOD zoomFactor() INLINE Qt_QWebView_zoomFactor( ::pPtr ) + METHOD back() INLINE Qt_QWebView_back( ::pPtr ) + METHOD forward() INLINE Qt_QWebView_forward( ::pPtr ) + METHOD print( pPrinter ) INLINE Qt_QWebView_print( ::pPtr, pPrinter ) + METHOD reload() INLINE Qt_QWebView_reload( ::pPtr ) + METHOD stop() INLINE Qt_QWebView_stop( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QWebView + + ::pPtr := Qt_QWebView( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQWidget.prg b/harbour/contrib/hbqt/TQWidget.prg new file mode 100644 index 0000000000..7a34b2b8b6 --- /dev/null +++ b/harbour/contrib/hbqt/TQWidget.prg @@ -0,0 +1,259 @@ +/* + * $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' + + +CLASS QWidget INHERIT QObject, QPaintDevice + + DATA pPtr + + METHOD New() + + METHOD acceptDrops() INLINE Qt_QWidget_acceptDrops( ::pPtr ) + METHOD accessibleDescription() INLINE Qt_QWidget_accessibleDescription( ::pPtr ) + METHOD accessibleName() INLINE Qt_QWidget_accessibleName( ::pPtr ) + METHOD activateWindow() INLINE Qt_QWidget_activateWindow( ::pPtr ) + METHOD addAction( pAction ) INLINE Qt_QWidget_addAction( ::pPtr, pAction ) + METHOD adjustSize() INLINE Qt_QWidget_adjustSize( ::pPtr ) + METHOD autoFillBackground() INLINE Qt_QWidget_autoFillBackground( ::pPtr ) + METHOD backgroundRole() INLINE Qt_QWidget_backgroundRole( ::pPtr ) + METHOD baseSize() INLINE Qt_QWidget_baseSize( ::pPtr ) + METHOD childAt( nX, nY ) INLINE Qt_QWidget_childAt( ::pPtr, nX, nY ) + METHOD childAt_1( aPointP ) INLINE Qt_QWidget_childAt_1( ::pPtr, aPointP ) + METHOD childrenRect() INLINE Qt_QWidget_childrenRect( ::pPtr ) + METHOD clearFocus() INLINE Qt_QWidget_clearFocus( ::pPtr ) + METHOD clearMask() INLINE Qt_QWidget_clearMask( ::pPtr ) + METHOD contentsRect() INLINE Qt_QWidget_contentsRect( ::pPtr ) + METHOD contextMenuPolicy() INLINE Qt_QWidget_contextMenuPolicy( ::pPtr ) + METHOD ensurePolished() INLINE Qt_QWidget_ensurePolished( ::pPtr ) + METHOD focusPolicy() INLINE Qt_QWidget_focusPolicy( ::pPtr ) + METHOD focusProxy() INLINE Qt_QWidget_focusProxy( ::pPtr ) + METHOD focusWidget() INLINE Qt_QWidget_focusWidget( ::pPtr ) + METHOD foregroundRole() INLINE Qt_QWidget_foregroundRole( ::pPtr ) + METHOD frameGeometry() INLINE Qt_QWidget_frameGeometry( ::pPtr ) + METHOD frameSize() INLINE Qt_QWidget_frameSize( ::pPtr ) + METHOD grabKeyboard() INLINE Qt_QWidget_grabKeyboard( ::pPtr ) + METHOD grabMouse() INLINE Qt_QWidget_grabMouse( ::pPtr ) + METHOD graphicsProxyWidget() INLINE Qt_QWidget_graphicsProxyWidget( ::pPtr ) + METHOD hasFocus() INLINE Qt_QWidget_hasFocus( ::pPtr ) + METHOD hasMouseTracking() INLINE Qt_QWidget_hasMouseTracking( ::pPtr ) + METHOD height() INLINE Qt_QWidget_height( ::pPtr ) + METHOD heightForWidth( nW ) INLINE Qt_QWidget_heightForWidth( ::pPtr, nW ) + METHOD inputContext() INLINE Qt_QWidget_inputContext( ::pPtr ) + METHOD insertAction( pBefore, pAction ) INLINE Qt_QWidget_insertAction( ::pPtr, pBefore, pAction ) + METHOD isActiveWindow() INLINE Qt_QWidget_isActiveWindow( ::pPtr ) + METHOD isAncestorOf( pChild ) INLINE Qt_QWidget_isAncestorOf( ::pPtr, pChild ) + METHOD isEnabled() INLINE Qt_QWidget_isEnabled( ::pPtr ) + METHOD isEnabledTo( pAncestor ) INLINE Qt_QWidget_isEnabledTo( ::pPtr, pAncestor ) + METHOD isFullScreen() INLINE Qt_QWidget_isFullScreen( ::pPtr ) + METHOD isHidden() INLINE Qt_QWidget_isHidden( ::pPtr ) + METHOD isMaximized() INLINE Qt_QWidget_isMaximized( ::pPtr ) + METHOD isMinimized() INLINE Qt_QWidget_isMinimized( ::pPtr ) + METHOD isModal() INLINE Qt_QWidget_isModal( ::pPtr ) + METHOD isVisible() INLINE Qt_QWidget_isVisible( ::pPtr ) + METHOD isVisibleTo( pAncestor ) INLINE Qt_QWidget_isVisibleTo( ::pPtr, pAncestor ) + METHOD isWindow() INLINE Qt_QWidget_isWindow( ::pPtr ) + METHOD isWindowModified() INLINE Qt_QWidget_isWindowModified( ::pPtr ) + METHOD layout() INLINE Qt_QWidget_layout( ::pPtr ) + METHOD layoutDirection() INLINE Qt_QWidget_layoutDirection( ::pPtr ) + METHOD mapFrom( pParent, aPointPos ) INLINE Qt_QWidget_mapFrom( ::pPtr, pParent, aPointPos ) + METHOD mapFromGlobal( aPointPos ) INLINE Qt_QWidget_mapFromGlobal( ::pPtr, aPointPos ) + METHOD mapFromParent( aPointPos ) INLINE Qt_QWidget_mapFromParent( ::pPtr, aPointPos ) + METHOD mapTo( pParent, aPointPos ) INLINE Qt_QWidget_mapTo( ::pPtr, pParent, aPointPos ) + METHOD mapToGlobal( aPointPos ) INLINE Qt_QWidget_mapToGlobal( ::pPtr, aPointPos ) + METHOD mapToParent( aPointPos ) INLINE Qt_QWidget_mapToParent( ::pPtr, aPointPos ) + METHOD maximumHeight() INLINE Qt_QWidget_maximumHeight( ::pPtr ) + METHOD maximumSize() INLINE Qt_QWidget_maximumSize( ::pPtr ) + METHOD maximumWidth() INLINE Qt_QWidget_maximumWidth( ::pPtr ) + METHOD minimumHeight() INLINE Qt_QWidget_minimumHeight( ::pPtr ) + METHOD minimumSize() INLINE Qt_QWidget_minimumSize( ::pPtr ) + METHOD minimumSizeHint() INLINE Qt_QWidget_minimumSizeHint( ::pPtr ) + METHOD minimumWidth() INLINE Qt_QWidget_minimumWidth( ::pPtr ) + METHOD move( aPointQPoint ) INLINE Qt_QWidget_move( ::pPtr, aPointQPoint ) + METHOD move_1( nX, nY ) INLINE Qt_QWidget_move_1( ::pPtr, nX, nY ) + METHOD nativeParentWidget() INLINE Qt_QWidget_nativeParentWidget( ::pPtr ) + METHOD nextInFocusChain() INLINE Qt_QWidget_nextInFocusChain( ::pPtr ) + METHOD normalGeometry() INLINE Qt_QWidget_normalGeometry( ::pPtr ) + METHOD paintEngine() INLINE Qt_QWidget_paintEngine( ::pPtr ) + METHOD parentWidget() INLINE Qt_QWidget_parentWidget( ::pPtr ) + METHOD pos() INLINE Qt_QWidget_pos( ::pPtr ) + METHOD rect() INLINE Qt_QWidget_rect( ::pPtr ) + METHOD releaseKeyboard() INLINE Qt_QWidget_releaseKeyboard( ::pPtr ) + METHOD releaseMouse() INLINE Qt_QWidget_releaseMouse( ::pPtr ) + METHOD releaseShortcut( nId ) INLINE Qt_QWidget_releaseShortcut( ::pPtr, nId ) + METHOD removeAction( pAction ) INLINE Qt_QWidget_removeAction( ::pPtr, pAction ) + METHOD repaint( nX, nY, nW, nH ) INLINE Qt_QWidget_repaint( ::pPtr, nX, nY, nW, nH ) + METHOD repaint_1( aRectRect ) INLINE Qt_QWidget_repaint_1( ::pPtr, aRectRect ) + METHOD resize( aSizeQSize ) INLINE Qt_QWidget_resize( ::pPtr, aSizeQSize ) + METHOD resize_1( nW, nH ) INLINE Qt_QWidget_resize_1( ::pPtr, nW, nH ) + METHOD scroll( nDx, nDy ) INLINE Qt_QWidget_scroll( ::pPtr, nDx, nDy ) + METHOD scroll_1( nDx, nDy, aRectR ) INLINE Qt_QWidget_scroll_1( ::pPtr, nDx, nDy, aRectR ) + METHOD setAcceptDrops( lOn ) INLINE Qt_QWidget_setAcceptDrops( ::pPtr, lOn ) + METHOD setAccessibleDescription( cDescription ) INLINE Qt_QWidget_setAccessibleDescription( ::pPtr, cDescription ) + METHOD setAccessibleName( cName ) INLINE Qt_QWidget_setAccessibleName( ::pPtr, cName ) + METHOD setAttribute( nAttribute, lOn ) INLINE Qt_QWidget_setAttribute( ::pPtr, nAttribute, lOn ) + METHOD setAutoFillBackground( lEnabled ) INLINE Qt_QWidget_setAutoFillBackground( ::pPtr, lEnabled ) + METHOD setBackgroundRole( nRole ) INLINE Qt_QWidget_setBackgroundRole( ::pPtr, nRole ) + METHOD setBaseSize( aSizeQSize ) INLINE Qt_QWidget_setBaseSize( ::pPtr, aSizeQSize ) + METHOD setBaseSize_1( nBasew, nBaseh ) INLINE Qt_QWidget_setBaseSize_1( ::pPtr, nBasew, nBaseh ) + METHOD setContentsMargins( nLeft, nTop, nRight, nBottom ) INLINE Qt_QWidget_setContentsMargins( ::pPtr, nLeft, nTop, nRight, nBottom ) + METHOD setContextMenuPolicy( nPolicy ) INLINE Qt_QWidget_setContextMenuPolicy( ::pPtr, nPolicy ) + METHOD setFixedHeight( nH ) INLINE Qt_QWidget_setFixedHeight( ::pPtr, nH ) + METHOD setFixedSize( aSizeS ) INLINE Qt_QWidget_setFixedSize( ::pPtr, aSizeS ) + METHOD setFixedSize_1( nW, nH ) INLINE Qt_QWidget_setFixedSize_1( ::pPtr, nW, nH ) + METHOD setFixedWidth( nW ) INLINE Qt_QWidget_setFixedWidth( ::pPtr, nW ) + METHOD setFocus( nReason ) INLINE Qt_QWidget_setFocus( ::pPtr, nReason ) + METHOD setFocusPolicy( nPolicy ) INLINE Qt_QWidget_setFocusPolicy( ::pPtr, nPolicy ) + METHOD setFocusProxy( pW ) INLINE Qt_QWidget_setFocusProxy( ::pPtr, pW ) + METHOD setForegroundRole( nRole ) INLINE Qt_QWidget_setForegroundRole( ::pPtr, nRole ) + METHOD setGeometry( aRectQRect ) INLINE Qt_QWidget_setGeometry( ::pPtr, aRectQRect ) + METHOD setGeometry_1( nX, nY, nW, nH ) INLINE Qt_QWidget_setGeometry_1( ::pPtr, nX, nY, nW, nH ) + METHOD setInputContext( pContext ) INLINE Qt_QWidget_setInputContext( ::pPtr, pContext ) + METHOD setLayout( pLayout ) INLINE Qt_QWidget_setLayout( ::pPtr, pLayout ) + METHOD setLayoutDirection( nDirection ) INLINE Qt_QWidget_setLayoutDirection( ::pPtr, nDirection ) + METHOD setMaximumHeight( nMaxh ) INLINE Qt_QWidget_setMaximumHeight( ::pPtr, nMaxh ) + METHOD setMaximumSize( aSizeQSize ) INLINE Qt_QWidget_setMaximumSize( ::pPtr, aSizeQSize ) + METHOD setMaximumSize_1( nMaxw, nMaxh ) INLINE Qt_QWidget_setMaximumSize_1( ::pPtr, nMaxw, nMaxh ) + METHOD setMaximumWidth( nMaxw ) INLINE Qt_QWidget_setMaximumWidth( ::pPtr, nMaxw ) + METHOD setMinimumHeight( nMinh ) INLINE Qt_QWidget_setMinimumHeight( ::pPtr, nMinh ) + METHOD setMinimumSize( aSizeQSize ) INLINE Qt_QWidget_setMinimumSize( ::pPtr, aSizeQSize ) + METHOD setMinimumSize_1( nMinw, nMinh ) INLINE Qt_QWidget_setMinimumSize_1( ::pPtr, nMinw, nMinh ) + METHOD setMinimumWidth( nMinw ) INLINE Qt_QWidget_setMinimumWidth( ::pPtr, nMinw ) + METHOD setMouseTracking( lEnable ) INLINE Qt_QWidget_setMouseTracking( ::pPtr, lEnable ) + METHOD setParent( pParent ) INLINE Qt_QWidget_setParent( ::pPtr, pParent ) + METHOD setParent_1( pParent, nF ) INLINE Qt_QWidget_setParent_1( ::pPtr, pParent, nF ) + METHOD setShortcutAutoRepeat( nId, lEnable ) INLINE Qt_QWidget_setShortcutAutoRepeat( ::pPtr, nId, lEnable ) + METHOD setShortcutEnabled( nId, lEnable ) INLINE Qt_QWidget_setShortcutEnabled( ::pPtr, nId, lEnable ) + METHOD setSizeIncrement( aSizeQSize ) INLINE Qt_QWidget_setSizeIncrement( ::pPtr, aSizeQSize ) + METHOD setSizeIncrement_1( nW, nH ) INLINE Qt_QWidget_setSizeIncrement_1( ::pPtr, nW, nH ) + METHOD setSizePolicy( nHorizontal, nVertical ) INLINE Qt_QWidget_setSizePolicy( ::pPtr, nHorizontal, nVertical ) + METHOD setStatusTip( cQString ) INLINE Qt_QWidget_setStatusTip( ::pPtr, cQString ) + METHOD setStyle( pStyle ) INLINE Qt_QWidget_setStyle( ::pPtr, pStyle ) + METHOD setToolTip( cQString ) INLINE Qt_QWidget_setToolTip( ::pPtr, cQString ) + METHOD setUpdatesEnabled( lEnable ) INLINE Qt_QWidget_setUpdatesEnabled( ::pPtr, lEnable ) + METHOD setWhatsThis( cQString ) INLINE Qt_QWidget_setWhatsThis( ::pPtr, cQString ) + METHOD setWindowFilePath( cFilePath ) INLINE Qt_QWidget_setWindowFilePath( ::pPtr, cFilePath ) + METHOD setWindowFlags( nType ) INLINE Qt_QWidget_setWindowFlags( ::pPtr, nType ) + METHOD setWindowIcon( cIcon ) INLINE Qt_QWidget_setWindowIcon( ::pPtr, cIcon ) + METHOD setWindowIconText( cQString ) INLINE Qt_QWidget_setWindowIconText( ::pPtr, cQString ) + METHOD setWindowModality( nWindowModality ) INLINE Qt_QWidget_setWindowModality( ::pPtr, nWindowModality ) + METHOD setWindowOpacity( nLevel ) INLINE Qt_QWidget_setWindowOpacity( ::pPtr, nLevel ) + METHOD setWindowRole( cRole ) INLINE Qt_QWidget_setWindowRole( ::pPtr, cRole ) + METHOD setWindowState( nWindowState ) INLINE Qt_QWidget_setWindowState( ::pPtr, nWindowState ) + METHOD setWindowSurface( pSurface ) INLINE Qt_QWidget_setWindowSurface( ::pPtr, pSurface ) + METHOD size() INLINE Qt_QWidget_size( ::pPtr ) + METHOD sizeHint() INLINE Qt_QWidget_sizeHint( ::pPtr ) + METHOD sizeIncrement() INLINE Qt_QWidget_sizeIncrement( ::pPtr ) + METHOD stackUnder( pW ) INLINE Qt_QWidget_stackUnder( ::pPtr, pW ) + METHOD statusTip() INLINE Qt_QWidget_statusTip( ::pPtr ) + METHOD style() INLINE Qt_QWidget_style( ::pPtr ) + METHOD styleSheet() INLINE Qt_QWidget_styleSheet( ::pPtr ) + METHOD testAttribute( nAttribute ) INLINE Qt_QWidget_testAttribute( ::pPtr, nAttribute ) + METHOD toolTip() INLINE Qt_QWidget_toolTip( ::pPtr ) + METHOD underMouse() INLINE Qt_QWidget_underMouse( ::pPtr ) + METHOD unsetCursor() INLINE Qt_QWidget_unsetCursor( ::pPtr ) + METHOD unsetLayoutDirection() INLINE Qt_QWidget_unsetLayoutDirection( ::pPtr ) + METHOD unsetLocale() INLINE Qt_QWidget_unsetLocale( ::pPtr ) + METHOD update( nX, nY, nW, nH ) INLINE Qt_QWidget_update( ::pPtr, nX, nY, nW, nH ) + METHOD update_1( aRectRect ) INLINE Qt_QWidget_update_1( ::pPtr, aRectRect ) + METHOD updateGeometry() INLINE Qt_QWidget_updateGeometry( ::pPtr ) + METHOD updatesEnabled() INLINE Qt_QWidget_updatesEnabled( ::pPtr ) + METHOD whatsThis() INLINE Qt_QWidget_whatsThis( ::pPtr ) + METHOD width() INLINE Qt_QWidget_width( ::pPtr ) + METHOD window() INLINE Qt_QWidget_window( ::pPtr ) + METHOD windowFilePath() INLINE Qt_QWidget_windowFilePath( ::pPtr ) + METHOD windowFlags() INLINE Qt_QWidget_windowFlags( ::pPtr ) + METHOD windowIconText() INLINE Qt_QWidget_windowIconText( ::pPtr ) + METHOD windowModality() INLINE Qt_QWidget_windowModality( ::pPtr ) + METHOD windowOpacity() INLINE Qt_QWidget_windowOpacity( ::pPtr ) + METHOD windowRole() INLINE Qt_QWidget_windowRole( ::pPtr ) + METHOD windowState() INLINE Qt_QWidget_windowState( ::pPtr ) + METHOD windowTitle() INLINE Qt_QWidget_windowTitle( ::pPtr ) + METHOD windowType() INLINE Qt_QWidget_windowType( ::pPtr ) + METHOD x() INLINE Qt_QWidget_x( ::pPtr ) + METHOD y() INLINE Qt_QWidget_y( ::pPtr ) + METHOD close() INLINE Qt_QWidget_close( ::pPtr ) + METHOD hide() INLINE Qt_QWidget_hide( ::pPtr ) + METHOD lower() INLINE Qt_QWidget_lower( ::pPtr ) + METHOD raise() INLINE Qt_QWidget_raise( ::pPtr ) + METHOD repaint_2() INLINE Qt_QWidget_repaint_2( ::pPtr ) + METHOD setDisabled( lDisable ) INLINE Qt_QWidget_setDisabled( ::pPtr, lDisable ) + METHOD setEnabled( lEnable ) INLINE Qt_QWidget_setEnabled( ::pPtr, lEnable ) + METHOD setFocus_1() INLINE Qt_QWidget_setFocus_1( ::pPtr ) + METHOD setHidden( lHidden ) INLINE Qt_QWidget_setHidden( ::pPtr, lHidden ) + METHOD setStyleSheet( cStyleSheet ) INLINE Qt_QWidget_setStyleSheet( ::pPtr, cStyleSheet ) + METHOD setVisible( lVisible ) INLINE Qt_QWidget_setVisible( ::pPtr, lVisible ) + METHOD setWindowModified( lModified ) INLINE Qt_QWidget_setWindowModified( ::pPtr, lModified ) + METHOD setWindowTitle( cTitle ) INLINE Qt_QWidget_setWindowTitle( ::pPtr, cTitle ) + METHOD show() INLINE Qt_QWidget_show( ::pPtr ) + METHOD showFullScreen() INLINE Qt_QWidget_showFullScreen( ::pPtr ) + METHOD showMaximized() INLINE Qt_QWidget_showMaximized( ::pPtr ) + METHOD showMinimized() INLINE Qt_QWidget_showMinimized( ::pPtr ) + METHOD showNormal() INLINE Qt_QWidget_showNormal( ::pPtr ) + METHOD update_2() INLINE Qt_QWidget_update_2( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QWidget + + ::pPtr := Qt_QWidget( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/TQWizard.prg b/harbour/contrib/hbqt/TQWizard.prg new file mode 100644 index 0000000000..40b5fcd734 --- /dev/null +++ b/harbour/contrib/hbqt/TQWizard.prg @@ -0,0 +1,106 @@ +/* + * $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' + + +CLASS QWizard INHERIT QDialog + + DATA pPtr + + METHOD New() + + METHOD addPage( pPage ) INLINE Qt_QWizard_addPage( ::pPtr, pPage ) + METHOD button( nWizardButton ) INLINE Qt_QWizard_button( ::pPtr, nWizardButton ) + METHOD buttonText( nWizardButton ) INLINE Qt_QWizard_buttonText( ::pPtr, nWizardButton ) + METHOD currentId() INLINE Qt_QWizard_currentId( ::pPtr ) + METHOD currentPage() INLINE Qt_QWizard_currentPage( ::pPtr ) + METHOD hasVisitedPage( nId ) INLINE Qt_QWizard_hasVisitedPage( ::pPtr, nId ) + METHOD nextId() INLINE Qt_QWizard_nextId( ::pPtr ) + METHOD options() INLINE Qt_QWizard_options( ::pPtr ) + METHOD page( nId ) INLINE Qt_QWizard_page( ::pPtr, nId ) + METHOD removePage( nId ) INLINE Qt_QWizard_removePage( ::pPtr, nId ) + METHOD setButton( nWizardButton, pButton ) INLINE Qt_QWizard_setButton( ::pPtr, nWizardButton, pButton ) + METHOD setButtonText( nWizardButton, cText ) INLINE Qt_QWizard_setButtonText( ::pPtr, nWizardButton, cText ) + METHOD setDefaultProperty( pClassName, pProperty, pChangedSignal ) INLINE Qt_QWizard_setDefaultProperty( ::pPtr, pClassName, pProperty, pChangedSignal ) + METHOD setOption( nWizardOption, lOn ) INLINE Qt_QWizard_setOption( ::pPtr, nWizardOption, lOn ) + METHOD setOptions( nWizardOptions ) INLINE Qt_QWizard_setOptions( ::pPtr, nWizardOptions ) + METHOD setPage( nId, pPage ) INLINE Qt_QWizard_setPage( ::pPtr, nId, pPage ) + METHOD setStartId( nId ) INLINE Qt_QWizard_setStartId( ::pPtr, nId ) + METHOD setSubTitleFormat( nFormat ) INLINE Qt_QWizard_setSubTitleFormat( ::pPtr, nFormat ) + METHOD setTitleFormat( nFormat ) INLINE Qt_QWizard_setTitleFormat( ::pPtr, nFormat ) + METHOD setWizardStyle( nWizardStyle ) INLINE Qt_QWizard_setWizardStyle( ::pPtr, nWizardStyle ) + METHOD startId() INLINE Qt_QWizard_startId( ::pPtr ) + METHOD subTitleFormat() INLINE Qt_QWizard_subTitleFormat( ::pPtr ) + METHOD testOption( nWizardOption ) INLINE Qt_QWizard_testOption( ::pPtr, nWizardOption ) + METHOD titleFormat() INLINE Qt_QWizard_titleFormat( ::pPtr ) + METHOD validateCurrentPage() INLINE Qt_QWizard_validateCurrentPage( ::pPtr ) + METHOD wizardStyle() INLINE Qt_QWizard_wizardStyle( ::pPtr ) + METHOD back() INLINE Qt_QWizard_back( ::pPtr ) + METHOD next() INLINE Qt_QWizard_next( ::pPtr ) + METHOD restart() INLINE Qt_QWizard_restart( ::pPtr ) + + ENDCLASS + +/*----------------------------------------------------------------------*/ + +METHOD New( pParent ) CLASS QWizard + + ::pPtr := Qt_QWizard( pParent ) + + RETURN Self + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/generator/hbqtgen.prg b/harbour/contrib/hbqt/generator/hbqtgen.prg index ba50882b96..32279c584c 100644 --- a/harbour/contrib/hbqt/generator/hbqtgen.prg +++ b/harbour/contrib/hbqt/generator/hbqtgen.prg @@ -68,6 +68,8 @@ FUNCTION Main( ... ) LOCAL aProFiles := {} LOCAL lCompile := .f. + DispLogo() + IF PCount() == 0 DispHelp() RETURN nil @@ -142,6 +144,7 @@ FUNCTION Main( ... ) GenSource( cProFile, cPathIn, cPathOut, cPathDoc ) NEXT + ? RETURN nil /*----------------------------------------------------------------------*/ @@ -150,7 +153,7 @@ STATIC FUNCTION ManageProject( cProFile, cPathIn, cPathOut, cPathDoc ) LOCAL cFile, cPath, cExt, cPrj, cTkn, cVal LOCAL cPIn, cPOut, cPDoc LOCAL n, nn - LOCAL prj_ + LOCAL prj_, cpp_, prg_, a_ hb_fNameSplit( cProFile, @cPath, @cFile, @cExt ) @@ -167,6 +170,9 @@ STATIC FUNCTION ManageProject( cProFile, cPathIn, cPathOut, cPathDoc ) cPOut := cPathOut cPDoc := cPathDoc + cpp_:={} + prg_:={} + DispProgress( cFile ) cPrj := memoread( cFile ) @@ -218,21 +224,38 @@ STATIC FUNCTION ManageProject( cProFile, cPathIn, cPathOut, cPathDoc ) ENDIF ELSEIF lower( right( cPrj,4 ) ) == '.qth' - GenSource( cPrj, cPIn, cPOut, cPDoc ) + a_:= GenSource( cPrj, cPIn, cPOut, cPDoc ) + IF !empty( a_[ 1 ] ) + aadd( cpp_, a_[ 1 ] ) + IF !empty( a_[ 2 ] ) + aadd( prg_, a_[ 2 ] ) + ENDIF + ENDIF ENDIF NEXT - RETURN nil + Build_HBQT_H( cPOut ) + Build_HBQT_SLOTS_H( cPOut ) + Build_HBQT_BASE_CPP( cPOut ) + Build_HBQT_UTILS_CPP( cPOut ) + Build_HBQT_SLOTS_CPP( cPOut ) + Build_MOC_SLOTS_CPP( cPOut ) + IF !empty( cpp_ ) + Build_Makefile( cpp_, prg_, cPOut ) + ENDIF + Build_Demo( cPOut ) + + RETURN NIL /*----------------------------------------------------------------------*/ STATIC FUNCTION GenSource( cProFile, cPathIn, cPathOut, cPathDoc ) - LOCAL cFile, cWidget, cExt, cPath, cOrg, cCode, cHBFunc, lSupported - LOCAL cPHP, cARGs, cPre, cPost, cFunc, cRet, cArg, ss, cQth, cAr, cName, cNames + LOCAL cFile, cWidget, cExt, cPath, cOrg, cCode, cHBFunc, lSupported, cCPP, cPRG + LOCAL cPHP, cARGs, cPre, cPost, cFunc, cRet, cArg, ss, cQth, cAr, cName, cNames, cClass LOCAL s, j, n, n1, hHandle, nFuncs, nCnvrtd, cRetName, lOk LOCAL a_, b_, txt_, enum_, code_, x_, func_, dummy_, types_, cpp_, hdr_, ftr_, cmntd_, doc_ - LOCAL nam_, dcc_ + LOCAL nam_, dcc_, class_, cls_ hb_fNameSplit( cProFile, @cPath, @cWidget, @cExt ) @@ -257,6 +280,25 @@ STATIC FUNCTION GenSource( cProFile, cPathIn, cPathOut, cPathDoc ) cQth := strtran( cQth, chr( 13 )+chr( 10 ), _EOL ) cQth := strtran( cQth, chr( 13 ), _EOL ) + /* Pull out Class Section */ + IF( n := at( '', cQth ) ) > 0 + IF ( n1 := at( '', cQth ) ) == 0 + RETURN nil + ENDIF + cClass := substr( cQth, n+6, n1-n-1-6 ) + cQth := substr( cQth,1,n-1 ) + substr( cQth, n1+7 ) + ENDIF + cls_:={} + IF !empty( cClass ) + class_:= hb_ATokens( cClass, _EOL ) + /* Parse Ingredients */ + FOR EACH s IN class_ + IF ( n := at( '=', s ) ) > 0 + aadd( cls_, { alltrim( substr( s, 1, n-1 ) ), alltrim( substr( s, n+1 ) ) } ) + ENDIF + NEXT + ENDIF + /* Pull out Code Section */ IF( n := at( '', cQth ) ) > 0 IF ( n1 := at( '', cQth ) ) == 0 @@ -409,7 +451,7 @@ STATIC FUNCTION GenSource( cProFile, cPathIn, cPathOut, cPathDoc ) aadd( func_, { cFunc, 0 } ) ENDIF - lOk := BuildFunction( @txt_, cWidget, cOrg, cFunc, cArg, cRet, enum_, types_, ; + lOk := Build_Function( @txt_, cWidget, cOrg, cFunc, cArg, cRet, enum_, types_, ; cHBFunc, @doc_, cNames ) IF !lOk aadd( dummy_, cOrg ) @@ -431,7 +473,7 @@ STATIC FUNCTION GenSource( cProFile, cPathIn, cPathOut, cPathDoc ) IF .t. /* !empty( txt_ ) */ /* Pull .cpp copyright text */ - BuildHeader( @hdr_ ) + BuildHeader( @hdr_, 0 ) aeval( hdr_, {|e| aadd( cpp_, e ) } ) aadd( cpp_, '' ) @@ -454,12 +496,6 @@ STATIC FUNCTION GenSource( cProFile, cPathIn, cPathOut, cPathDoc ) aadd( cpp_, '' ) ENDIF - /* Needs to be changed manually */ - #if 0 - aadd( cpp_, "#include " ) - aadd( cpp_, "" ) - #endif - /* Insert user defined code */ IF !empty( code_ ) aeval( code_, {|e| aadd( cpp_, strtran( e, chr( 13 ), '' ) ) } ) @@ -481,28 +517,41 @@ STATIC FUNCTION GenSource( cProFile, cPathIn, cPathOut, cPathDoc ) fClose( hHandle ) ENDIF + /* Build Document File */ IF !empty( doc_ ) BuildDocument( cWidget, doc_, cPathDoc ) ENDIF + + /* Build Class PRG Source */ + IF !empty( cls_ ) + Build_Class( cWidget, cls_, doc_, cPathOut, hdr_ ) + cPRG := cWidget + ELSE + cPRG := '' + ENDIF + cCPP := cWidget ENDIF - RETURN cPHP + RETURN { cCPP, cPRG } /*----------------------------------------------------------------------*/ -STATIC FUNCTION BuildFunction( txt_, cWidget, cProtoType, cFunc, cArgs, cRet, enum_, ; +STATIC FUNCTION Build_Function( txt_, cWidget, cProtoType, cFunc, cArgs, cRet, enum_, ; types_, cHBFunc, doc_, cParNames ) LOCAL cParPtr := "hbqt_par_" + cWidget + "( 1 )" LOCAL pars := "" LOCAL docs := "" LOCAL cDocFunc := "" LOCAL aArgs, cArg, n, nn, pp, cTxt, aNames + LOCAL nParSz := 0 + LOCAL nParRc := 0 + LOCAL nPar IF !empty( cArgs ) aArgs := hb_ATokens( cArgs, ',' ) aNames := hb_ATokens( cParNames, ',' ) - n := 0 + n := 1 FOR EACH cArg IN aArgs n++ @@ -513,38 +562,38 @@ STATIC FUNCTION BuildFunction( txt_, cWidget, cProtoType, cFunc, cArgs, cRet, en CASE cArg == 'int' pars += 'hb_parni( '+ hb_ntos( n ) +' )' - docs += 'n'+aNames[ n ] + docs += 'n'+aNames[ n-1 ] CASE cArg == 'quint32' pars += 'hb_parnint( '+ hb_ntos( n ) +' )' - docs += 'n'+aNames[ n ] + docs += 'n'+aNames[ n-1 ] CASE cArg == 'double' .or. cArg == 'qreal' pars += 'hb_parnd( '+ hb_ntos( n ) +' )' - docs += 'n'+aNames[ n ] + docs += 'n'+aNames[ n-1 ] CASE cArg == 'bool' pars += 'hb_parl( '+ hb_ntos( n ) +' )' - docs += 'l'+aNames[ n ] + docs += 'l'+aNames[ n-1 ] CASE cArg == 'QString' pars += 'hbqt_par_QString( '+ hb_ntos( n ) +' )' - docs += 'c'+IF( empty( aNames[ n ] ), 'Str', aNames[ n ] ) + docs += 'c'+IF( empty( aNames[ n-1 ] ), 'Str', aNames[ n-1 ] ) CASE cArg == 'QIcon' pars += 'QIcon( hbqt_par_QString( '+ hb_ntos( n ) +' ) )' - docs += 'c'+IF( empty( aNames[ n ] ), 'IconName', aNames[ n ] ) + docs += 'c'+IF( empty( aNames[ n-1 ] ), 'IconName', aNames[ n-1 ] ) CASE ( '::' $ cArg ) pars += "( "+ cArg +" ) hb_parni( "+ hb_ntos( n ) +' )' - docs += 'n'+strtran( aNames[ n ], '::', '_' ) + docs += 'n'+strtran( aNames[ n-1 ], '::', '_' ) CASE ( '*' $ cArg ) pp := rtrim( cArg ) pp := rtrim( substr( pp, 1, at( "*", pp ) - 1 ) ) pars += "hbqt_par_" + pp + "( " + hb_ntos( n ) + " )" - docs += 'p'+strtran( aNames[ n ], '*', '' ) + docs += 'p'+strtran( aNames[ n-1 ], '*', '' ) CASE cArg == cWidget pars += "hbqt_par_" + cWidget + "( " + hb_ntos( n ) + " )" @@ -552,15 +601,15 @@ STATIC FUNCTION BuildFunction( txt_, cWidget, cProtoType, cFunc, cArgs, cRet, en CASE cArg == 'QRect' pars += "hbqt_const_QRect( " + hb_ntos( n ) + " )" - docs += 'aRect' + docs += 'aRect'+aNames[ n-1 ] //'aRect' CASE cArg == 'QSize' pars += "hbqt_const_QSize( " + hb_ntos( n ) + " )" - docs += 'aSize' + docs += 'aSize'+aNames[ n-1 ] //'aSize' CASE cArg == 'QPoint' pars += "hbqt_const_QPoint( " + hb_ntos( n ) + " )" - docs += 'aPoint' + docs += 'aPoint'+aNames[ n-1 ] //'aPoint' ENDCASE @@ -654,7 +703,15 @@ STATIC FUNCTION BuildFunction( txt_, cWidget, cProtoType, cFunc, cArgs, cRet, en /*----------------------------------------------------------------------*/ -STATIC FUNCTION BuildHeader( txt_ ) +STATIC FUNCTION DispProgress( cFile ) + + ? cFile + + RETURN nil + +/*----------------------------------------------------------------------*/ + +STATIC FUNCTION BuildHeader( txt_, nMode ) aadd( txt_, "/*" ) aadd( txt_, " * $Id$" ) @@ -710,6 +767,7 @@ STATIC FUNCTION BuildHeader( txt_ ) aadd( txt_, " */" ) aadd( txt_, "/*----------------------------------------------------------------------*/" ) aadd( txt_, "" ) + IF nMode == 0 aadd( txt_, '#include "hbapi.h"' ) aadd( txt_, '#include "hbqt.h"' ) aadd( txt_, "" ) @@ -717,6 +775,13 @@ STATIC FUNCTION BuildHeader( txt_ ) aadd( txt_, "#if QT_VERSION >= 0x040500" ) aadd( txt_, "/*----------------------------------------------------------------------*/" ) aadd( txt_, "" ) + ELSEIF nMode == 1 + aadd( txt_, "" ) + aadd( txt_, "#include 'hbclass.ch'" ) + aadd( txt_, "" ) + ELSEIF nMode == 2 + /* Pure Header */ + ENDIF RETURN nil @@ -736,7 +801,6 @@ STATIC FUNCTION BuildFooter( txt_ ) STATIC FUNCTION DispHelp() - ? ? ? 'SYNTAX:' ? ' hbqtgen.exe [Options] [[@]] []' @@ -744,18 +808,32 @@ STATIC FUNCTION DispHelp() ? 'Options:' ? ' -O [ e.g. c:\harbour\contrib\hbqt ] [D] Current folder' ? ' -I [ e.g. c:\harbour\contrib\hbqt\protos ] [D] Current folder' - ? ' -d [ e.g. c:\harbour\contrib\hbqt\doc ] [D] Current folder' + ? ' -D [ e.g. c:\harbour\contrib\hbqt\doc ] [D] Current folder' ? ' ' ? ' -c If QT env is set, attempts to compile resulting .cpp' ? - ? 'Press a key ...' - ? inkey( 0 ) RETURN nil /*----------------------------------------------------------------------*/ +STATIC FUNCTION DispLogo() + + OutStd( hb_osNewLine() + "Harbour Source Gennerator for QT " + HBRawVersion() + hb_osNewLine() +; + "Copyright (c) 2009, Pritpal Bedi " + hb_osNewLine() +; + "http://www.harbour-project.org/" + hb_osNewLine() +; + hb_osNewLine() ) + + RETURN nil + +/*----------------------------------------------------------------------*/ + +STATIC FUNCTION HBRawVersion() + RETURN StrTran( Version(), "Harbour ", "" ) + +/*----------------------------------------------------------------------*/ + STATIC FUNCTION BuildDocument( cWidget, doc_, cPathDoc ) LOCAL dcc_:={} LOCAL hHandle, cFile @@ -785,10 +863,1078 @@ STATIC FUNCTION BuildDocument( cWidget, doc_, cPathDoc ) /*----------------------------------------------------------------------*/ -STATIC FUNCTION DispProgress( cFile ) +STATIC FUNCTION CreateTarget( cFile, txt_ ) + LOCAL hHandle := fcreate( cFile ) - ? cFile + /* Truncate entries */ + aeval( txt_, {|e,i| txt_[ i ] := trim( e ) } ) - RETURN nil + IF hHandle != -1 + aeval( txt_, { |e| fWrite( hHandle, e + s_NewLine, len( e ) + len( s_NewLine ) ) } ) + fClose( hHandle ) + ENDIF + + RETURN file( cFile ) /*----------------------------------------------------------------------*/ + +STATIC FUNCTION Build_Class( cWidget, cls_, doc_, cPathOut ) + LOCAL cFile := cPathOut + s_PathSep + 'T'+cWidget +'.prg' + LOCAL s, n, cMtd, cRet, cM, ss, cCall, sm + LOCAL nLen := len( cWidget ) + LOCAL txt_ :={} + LOCAL hdr_ :={} + + BuildHeader( @txt_, 1 ) + + aadd( txt_, '' ) + + n := ascan( cls_, {|e_| lower( e_[ 1 ] ) == 'inherit' } ) + s := 'CLASS '+ cWidget + IF( n > 0, ' INHERIT ' + cls_[ n,2 ], '' ) + + aadd( txt_, s ) + aadd( txt_, '' ) + aadd( txt_, ' DATA pPtr' ) + aadd( txt_, '' ) + aadd( txt_, ' METHOD New()' ) + aadd( txt_, '' ) + + /* Populate METHODS */ + FOR EACH s IN doc_ + n := at( '-> ', s ) + IF n > 0 + cRet := substr( s, n+3 ) + s := substr( s, 1, n-1 ) + + n := at( cWidget, s ) + sm := substr( s, n+nLen+1 ) + + ss := 'p'+cWidget+',' + cM := strtran( sm, ss, '' ) + ss := 'p'+cWidget + cM := strtran( cM, ss, '' ) + cM := strtran( cM, '( )', '()' ) + cM := strtran( cM, '( ', '( ' ) + cM := IF( len( cM ) > 35, cM, pad( cM,35 ) ) + + ss := 'p'+cWidget + cCall := strtran( s, ss, '::pPtr' ) + + aadd( txt_, ' METHOD ' + cM + ' INLINE ' + cCall ) + ENDIF + NEXT + aadd( txt_, '' ) + aadd( txt_, ' ENDCLASS' ) + aadd( txt_, '' ) + aadd( txt_, '/*----------------------------------------------------------------------*/' ) + aadd( txt_, '' ) + + n := ascan( cls_, {|e_| lower( e_[ 1 ] ) == 'new' } ) + cM := 'New( pParent )' + + aadd( txt_, 'METHOD '+ cM + ' CLASS '+ cWidget ) + aadd( txt_, '' ) + aadd( txt_, ' ::pPtr := Qt_'+ cWidget +'( pParent )' ) + aadd( txt_, '' ) + aadd( txt_, ' RETURN Self' ) + aadd( txt_, '' ) + aadd( txt_, '/*----------------------------------------------------------------------*/' ) + aadd( txt_, '' ) + + RETURN CreateTarget( cFile, txt_ ) + +/*----------------------------------------------------------------------*/ + +STATIC FUNCTION Build_MakeFile( cpp_, prg_, cPathOut ) + LOCAL cFile := cPathOut + s_PathSep + 'Makefile' + LOCAL txt_:={} + LOCAL s + + aadd( txt_, "# " ) + aadd( txt_, "# $Id$ " ) + aadd( txt_, "# " ) + aadd( txt_, " " ) + aadd( txt_, "ROOT = ../../ " ) + aadd( txt_, " " ) + aadd( txt_, "LIBNAME=hbqt " ) + aadd( txt_, " " ) + aadd( txt_, "ifeq ($(HB_WITH_QT),) " ) + aadd( txt_, "HB_WITH_QT=yes " ) + aadd( txt_, "ifeq ($(HB_ARCHITECTURE),dos) " ) + aadd( txt_, "HB_WITH_QT=no " ) + aadd( txt_, "endif " ) + aadd( txt_, "ifeq ($(HB_ARCHITECTURE),os2) " ) + aadd( txt_, "HB_WITH_QT=no " ) + aadd( txt_, "endif " ) + aadd( txt_, "ifeq ($(HB_COMPILER),mingw64) " ) + aadd( txt_, "HB_WITH_QT=no " ) + aadd( txt_, "endif " ) + aadd( txt_, "ifeq ($(HB_COMPILER),owatcom) " ) + aadd( txt_, "HB_WITH_QT=no " ) + aadd( txt_, "endif " ) + aadd( txt_, "ifeq ($(HB_COMPILER),bcc) " ) + aadd( txt_, "HB_WITH_QT=no " ) + aadd( txt_, "endif " ) + aadd( txt_, "ifeq ($(HB_COMPILER),pocc) " ) + aadd( txt_, "HB_WITH_QT=no " ) + aadd( txt_, "endif " ) + aadd( txt_, "ifeq ($(HB_COMPILER),poccce) " ) + aadd( txt_, "HB_WITH_QT=no " ) + aadd( txt_, "endif " ) + aadd( txt_, "endif " ) + aadd( txt_, " " ) + aadd( txt_, "ifeq ($(HB_WITH_QT),yes) " ) + aadd( txt_, " " ) + aadd( txt_, "ifeq ($(HB_INC_QT),) " ) + aadd( txt_, "ifeq ($(HB_XBUILD),) " ) + aadd( txt_, "HB_INC_QT = /usr/include/qt4 /Developer/qt/include " ) + aadd( txt_, "endif " ) + aadd( txt_, "endif " ) + aadd( txt_, " " ) + aadd( txt_, "HB_INC_QT_OK += $(foreach d, $(HB_INC_QT), $(if $(wildcard $(d)/Qt/qglobal.h),$(d),))" ) + aadd( txt_, " " ) + aadd( txt_, "ifneq ($(strip $(HB_INC_QT_OK)),) " ) + aadd( txt_, " " ) + aadd( txt_, "HB_USER_CFLAGS += $(foreach d, $(HB_INC_QT_OK), -I$(d)) " ) + aadd( txt_, " " ) + aadd( txt_, "CPP_SOURCES=\ " ) + + /* Insert .cpp sources */ + aadd( cpp_, 'base' ) + aadd( cpp_, 'utils' ) + aadd( cpp_, 'slots' ) + FOR EACH s IN cpp_ + aadd( txt_, chr( 9 ) + 'hbqt_' + lower( s ) + '.cpp \' ) + NEXT + aadd( txt_, chr( 9 ) + 'moc_slots.cpp \' ) + + aadd( txt_, " " ) + aadd( txt_, " " ) + aadd( txt_, "C_HEADERS=\ " ) + aadd( txt_, chr( 9 )+"hbqt.h \ " ) + aadd( txt_, chr( 9 )+"hbqt_slots.h \ " ) + aadd( txt_, " " ) + aadd( txt_, "#PRG_HEADERS=\ " ) + aadd( txt_, "# hbqt.ch \ " ) + aadd( txt_, "# hbqtextern.ch \ " ) + aadd( txt_, " " ) + IF !empty( prg_ ) + aadd( txt_, "PRG_SOURCES=\ " ) + FOR EACH s IN prg_ + aadd( txt_, chr( 9 ) + 'T' + s + '.prg \' ) + NEXT + ENDIF + aadd( txt_, " " ) + aadd( txt_, "include $(TOP)$(ROOT)config/header.cf " ) + aadd( txt_, "INSTALL_RULE_HEADERS := $(INSTALL_RULE) " ) + aadd( txt_, "include $(TOP)$(ROOT)config/lib.cf " ) + aadd( txt_, " " ) + aadd( txt_, "install:: " ) + aadd( txt_, chr( 9 )+"$(INSTALL_RULE_HEADERS) " ) + aadd( txt_, " " ) + aadd( txt_, "else " ) + aadd( txt_, "include $(TOP)$(ROOT)config/none.cf " ) + aadd( txt_, "endif " ) + aadd( txt_, "else " ) + aadd( txt_, "include $(TOP)$(ROOT)config/none.cf " ) + aadd( txt_, "endif " ) + aadd( txt_, " " ) + #if 0 + aadd( txt_, "else " ) + aadd( txt_, "include $(TOP)$(ROOT)config/none.cf " ) + aadd( txt_, "endif " ) + aadd( txt_, "else " ) + aadd( txt_, "include $(TOP)$(ROOT)config/none.cf " ) + aadd( txt_, "endif " ) + aadd( txt_, " " ) + #endif + + RETURN CreateTarget( cFile, txt_ ) + +/*----------------------------------------------------------------------*/ + +STATIC FUNCTION Build_HBQT_H( cPathOut ) + LOCAL cFile := cPathOut + s_PathSep + 'hbqt.h' + LOCAL txt_:={} + + BuildHeader( @txt_, 2 ) + + aadd( txt_, " " ) + aadd( txt_, "#ifndef __HBQT_H " ) + aadd( txt_, "#define __HBQT_H " ) + aadd( txt_, " " ) + aadd( txt_, " " ) + aadd( txt_, "#define QT_VERSION 0x040500 " ) + aadd( txt_, " " ) + aadd( txt_, "#include " ) + aadd( txt_, " " ) + aadd( txt_, "#if QT_VERSION >= 0x040500 " ) + aadd( txt_, " " ) + aadd( txt_, " " ) + aadd( txt_, "#define hbqt_par_QAbstractButton( n ) ( ( QAbstractButton* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QAbstractItemView( n ) ( ( QAbstractItemView* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QAbstractItemModel( n ) ( ( QAbstractItemModel* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QAbstractItemDelegate( n ) ( ( QAbstractItemDelegate* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QAbstractPrintDialog( n ) ( ( QAbstractPrintDialog* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QAbstractProxyModel( n ) ( ( QAbstractProxyModel* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QAbstractScrollArea( n ) ( ( QAbstractScrollArea* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QAbstractSlider( n ) ( ( QAbstractSlider* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QAbstractSpinBox( n ) ( ( QAbstractSpinBox* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QAction( n ) ( ( QAction* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QActionGroup( n ) ( ( QActionGroup* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QApplication( n ) ( ( QApplication* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QBoxLayout( n ) ( ( QBoxLayout* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QBrush( n ) ( ( QBrush* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QCalendarWidget( n ) ( ( QCalendarWidget* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QCheckBox( n ) ( ( QCheckBox* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QColor( n ) ( ( QColor* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QColorDialog( n ) ( ( QColorDialog* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QComboBox( n ) ( ( QComboBox* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QCommandLinkButton( n ) ( ( QCommandLinkButton* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QCompleter( n ) ( ( QCompleter* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QCoreApplication( n ) ( ( QCoreApplication* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QDateTimeEdit( n ) ( ( QDateTimeEdit* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QDial( n ) ( ( QDial* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QDialog( n ) ( ( QDialog* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QDockWidget( n ) ( ( QDockWidget* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QDoubleSpinBox( n ) ( ( QDoubleSpinBox* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QEvent( n ) ( ( QEvent* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QFileDialog( n ) ( ( QFileDialog* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QFileIconProvider( n ) ( ( QFileIconProvider* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QFocusFrame( n ) ( ( QFocusFrame* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QFont( n ) ( ( QFont* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QFontComboBox( n ) ( ( QFontComboBox* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QFontDialog( n ) ( ( QFontDialog* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QFormLayout( n ) ( ( QFormLayout* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QFrame( n ) ( ( QFrame* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QGroupBox( n ) ( ( QGroupBox* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QHeaderView( n ) ( ( QHeaderView* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QInputContext( n ) ( ( QInputContext* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QInputDialog( n ) ( ( QInputDialog* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QItemSelectionModel( n ) ( ( QItemSelectionModel* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QLabel( n ) ( ( QLabel* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QLayout( n ) ( ( QLayout* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QLayoutItem( n ) ( ( QLayoutItem* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QLCDNumber( n ) ( ( QLCDNumber* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QLine( n ) ( ( QLine* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QLineEdit( n ) ( ( QLineEdit* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QLineF( n ) ( ( QLineF* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QListView( n ) ( ( QListView* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QLocale( n ) ( ( QLocale* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QMainWindow( n ) ( ( QMainWindow* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QMenu( n ) ( ( QMenu* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QMenuBar( n ) ( ( QMenuBar* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QMessageBox( n ) ( ( QMessageBox* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QMovie( n ) ( ( QMovie* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QObject( n ) ( ( QObject* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QPageSetupDialog( n ) ( ( QPageSetupDialog* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QPainter( n ) ( ( QPainter* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QPaintDevice( n ) ( ( QPaintDevice* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QPen( n ) ( ( QPen* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QPoint( n ) ( ( QPoint* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QPointF( n ) ( ( QPointF* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QPrintDialog( n ) ( ( QPrintDialog* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QPrintPreviewDialog( n ) ( ( QPrintPreviewDialog* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QPrinter( n ) ( ( QPrinter* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QProgressBar( n ) ( ( QProgressBar* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QProgressDialog( n ) ( ( QProgressDialog* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QPushButton( n ) ( ( QPushButton* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QRect( n ) ( ( QRect* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QRectF( n ) ( ( QRectF* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QScrollArea( n ) ( ( QScrollArea* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QScrollBar( n ) ( ( QScrollBar* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QSpacerItem( n ) ( ( QSpacerItem* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QSpinBox( n ) ( ( QSpinBox* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QSplitter( n ) ( ( QSplitter* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QStatusBar( n ) ( ( QStatusBar* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QStyle( n ) ( ( QStyle* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QSlider( n ) ( ( QSlider* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QTabBar( n ) ( ( QTabBar* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QTableView( n ) ( ( QTableView* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QTableWidget( n ) ( ( QTableWidget* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QTableWidgetItem( n ) ( ( QTableWidgetItem* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QTabWidget( n ) ( ( QTabWidget* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QTextEdit( n ) ( ( QTextEdit* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QTextDocument( n ) ( ( QTextDocument* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QThread( n ) ( ( QThread* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QToolBar( n ) ( ( QToolBar* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QToolBox( n ) ( ( QToolBox* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QToolButton( n ) ( ( QToolButton* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QTreeView( n ) ( ( QTreeView* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QTreeWidget( n ) ( ( QTreeWidget* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QTreeWidgetItem( n ) ( ( QTreeWidgetItem* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QValidator( n ) ( ( QValidator* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QWebView( n ) ( ( QWebView* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QWidget( n ) ( ( QWidget* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QWindowSurface( n ) ( ( QWindowSurface* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QWizard( n ) ( ( QWizard* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QWizardPage( n ) ( ( QWizardPage* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QWSEvent( n ) ( ( QWSEvent* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QWebPage( n ) ( ( QWebPage* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QNetworkAccessManager( n ) ( ( QNetworkAccessManager* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QWebPluginFactory( n ) ( ( QWebPluginFactory* ) hb_parptr( n ) ) " ) + aadd( txt_, "#define hbqt_par_QContextMenuEvent( n ) ( ( QContextMenuEvent* ) hb_parptr( n ) ) " ) + aadd( txt_, " " ) + aadd( txt_, "#define hbqt_par_QIcon( n ) ( ( QIcon ) hb_parc( n ) ) " ) + aadd( txt_, "#define hbqt_par_QString( n ) ( ( QString ) hb_parc( n ) ) " ) + aadd( txt_, "#define hbqt_par_QRgb( n ) ( hb_parnint( n ) ) " ) + aadd( txt_, "#define hbqt_par_Bool( n ) ( hb_parl( n ) ) " ) + aadd( txt_, "#define hbqt_par_char( n ) ( hb_parc( n ) ) " ) + aadd( txt_, " " ) + aadd( txt_, "#define hbqt_ret_QWidget( p ) ( hb_retptr( ( QWidget* ) p ) ) " ) + aadd( txt_, "#define hbqt_ret_QAbstractItemDelegate( p ) ( hb_retptr( ( QAbstractItemDelegate* ) p ) ) " ) + aadd( txt_, "#define hbqt_ret_QAbstractItemModel( p ) ( hb_retptr( ( QAbstractItemModel* ) p ) ) " ) + aadd( txt_, "#define hbqt_ret_QPrinter( p ) ( hb_retptr( ( QPrinter* ) p ) ) " ) + aadd( txt_, " " ) + aadd( txt_, "#include " ) + aadd( txt_, " " ) + aadd( txt_, "void hbqt_ret_QRect( QRect ); " ) + aadd( txt_, "void hbqt_ret_QSize( QSize ); " ) + aadd( txt_, "void hbqt_ret_QPoint( QPoint ); " ) + aadd( txt_, " " ) + aadd( txt_, "QRect hbqt_const_QRect( int ); " ) + aadd( txt_, "QSize hbqt_const_QSize( int ); " ) + aadd( txt_, "QPoint hbqt_const_QPoint( int ); " ) + aadd( txt_, " " ) + aadd( txt_, "void hb_ToOutDebug( const char * sTraceMsg, ... ); " ) + aadd( txt_, " " ) + aadd( txt_, "#endif " ) + aadd( txt_, " " ) + aadd( txt_, "#endif /* __HBQT_H */ " ) + aadd( txt_, " " ) + + RETURN CreateTarget( cFile, txt_ ) + +/*----------------------------------------------------------------------*/ + +STATIC FUNCTION Build_HBQT_UTILS_CPP( cPathOut ) + LOCAL cFile := cPathOut + s_PathSep + 'hbqt_utils.cpp' + LOCAL txt_:={} + + BuildHeader( @txt_, 2 ) + + aadd( txt_, '#include "hbapi.h" ' ) + aadd( txt_, '#include "hbapiitm.h" ' ) + aadd( txt_, ' ' ) + aadd( txt_, '#include "hbqt.h" ' ) + aadd( txt_, ' ' ) + aadd( txt_, '/*----------------------------------------------------------------------*/' ) + aadd( txt_, '#if QT_VERSION >= 0x040500 ' ) + aadd( txt_, '/*----------------------------------------------------------------------*/' ) + aadd( txt_, ' ' ) + aadd( txt_, '#include ' ) + aadd( txt_, ' ' ) + aadd( txt_, '/*----------------------------------------------------------------------*/' ) + aadd( txt_, ' ' ) + aadd( txt_, 'void hbqt_ret_QRect( QRect qrc ) ' ) + aadd( txt_, '{ ' ) + aadd( txt_, ' PHB_ITEM info = hb_itemArrayNew( 4 ); ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' hb_arraySetNI( info, 1, qrc.x() ); ' ) + aadd( txt_, ' hb_arraySetNI( info, 2, qrc.y() ); ' ) + aadd( txt_, ' hb_arraySetNI( info, 3, qrc.x()+qrc.width() ); ' ) + aadd( txt_, ' hb_arraySetNI( info, 4, qrc.y()+qrc.height() ); ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' hb_itemReturnRelease( info ); ' ) + aadd( txt_, '} ' ) + aadd( txt_, ' ' ) + aadd( txt_, '/*----------------------------------------------------------------------*/' ) + aadd( txt_, ' ' ) + aadd( txt_, 'QRect hbqt_const_QRect( int i ) ' ) + aadd( txt_, '{ ' ) + aadd( txt_, ' QRect qrc; ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' qrc.setX( hb_parni( i,1 ) ); ' ) + aadd( txt_, ' qrc.setY( hb_parni( i,2 ) ); ' ) + aadd( txt_, ' qrc.setWidth( hb_parni( i,3 ) - hb_parni( i,1 ) + 1 ); ' ) + aadd( txt_, ' qrc.setHeight( hb_parni( i,4 ) - hb_parni( i,2 ) + 1 ); ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' return qrc; ' ) + aadd( txt_, '} ' ) + aadd( txt_, ' ' ) + aadd( txt_, '/*----------------------------------------------------------------------*/' ) + aadd( txt_, ' ' ) + aadd( txt_, 'void hbqt_ret_QSize( QSize qsz ) ' ) + aadd( txt_, '{ ' ) + aadd( txt_, ' PHB_ITEM info = hb_itemArrayNew( 2 ); ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' hb_arraySetNI( info, 1, qsz.width() ); ' ) + aadd( txt_, ' hb_arraySetNI( info, 2, qsz.height() ); ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' hb_itemReturnRelease( info ); ' ) + aadd( txt_, '} ' ) + aadd( txt_, ' ' ) + aadd( txt_, '/*----------------------------------------------------------------------*/' ) + aadd( txt_, ' ' ) + aadd( txt_, 'QSize hbqt_const_QSize( int i ) ' ) + aadd( txt_, '{ ' ) + aadd( txt_, ' QSize qsz; ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' qsz.setWidth( hb_parni( i,1 ) ); ' ) + aadd( txt_, ' qsz.setHeight( hb_parni( i,2 ) ); ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' return qsz; ' ) + aadd( txt_, '} ' ) + aadd( txt_, ' ' ) + aadd( txt_, '/*----------------------------------------------------------------------*/' ) + aadd( txt_, ' ' ) + aadd( txt_, 'void hbqt_ret_QPoint( QPoint qpt ) ' ) + aadd( txt_, '{ ' ) + aadd( txt_, ' PHB_ITEM info = hb_itemArrayNew( 2 ); ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' hb_arraySetNI( info, 1, qpt.x() ); ' ) + aadd( txt_, ' hb_arraySetNI( info, 2, qpt.y() ); ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' hb_itemReturnRelease( info ); ' ) + aadd( txt_, '} ' ) + aadd( txt_, ' ' ) + aadd( txt_, '/*----------------------------------------------------------------------*/' ) + aadd( txt_, ' ' ) + aadd( txt_, 'QPoint hbqt_const_QPoint( int i ) ' ) + aadd( txt_, '{ ' ) + aadd( txt_, ' QPoint qpt; ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' qpt.setX( hb_parni( i,1 ) ); ' ) + aadd( txt_, ' qpt.setY( hb_parni( i,2 ) ); ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' return qpt; ' ) + aadd( txt_, '} ' ) + aadd( txt_, ' ' ) + aadd( txt_, '/*----------------------------------------------------------------------*/' ) + aadd( txt_, '#endif /* #if QT_VERSION >= 0x040500 */ ' ) + aadd( txt_, '/*----------------------------------------------------------------------*/' ) + aadd( txt_, ' ' ) + + RETURN CreateTarget( cFile, txt_ ) + +/*----------------------------------------------------------------------*/ + +STATIC FUNCTION Build_HBQT_BASE_CPP( cPathOut ) + LOCAL cFile := cPathOut + s_PathSep + 'hbqt_base.cpp' + LOCAL txt_:={} + + BuildHeader( @txt_, 2 ) + + aadd( txt_, '#include "hbapi.h" ' ) + aadd( txt_, ' ' ) + aadd( txt_, '#include "hbqt.h" ' ) + aadd( txt_, ' ' ) + aadd( txt_, 'HB_FUNC( QT_VERSION ) ' ) + aadd( txt_, '{ ' ) + aadd( txt_, ' hb_retnint( QT_VERSION ); ' ) + aadd( txt_, '} ' ) + aadd( txt_, ' ' ) + aadd( txt_, 'HB_FUNC( QT_VERSION_STR ) ' ) + aadd( txt_, '{ ' ) + aadd( txt_, ' hb_retc_const( QT_VERSION_STR ); ' ) + aadd( txt_, '} ' ) + aadd( txt_, ' ' ) + + RETURN CreateTarget( cFile, txt_ ) + +/*----------------------------------------------------------------------*/ + +STATIC FUNCTION Build_HBQT_SLOTS_H( cPathOut ) + LOCAL cFile := cPathOut + s_PathSep + 'hbqt_slots.h' + LOCAL txt_:={} + + BuildHeader( @txt_, 2 ) + + aadd( txt_, ' ' ) + aadd( txt_, '#ifndef SLOTS_H ' ) + aadd( txt_, ' ' ) + aadd( txt_, '#define SLOTS_H ' ) + aadd( txt_, ' ' ) + aadd( txt_, '#include ' ) + aadd( txt_, '#include ' ) + aadd( txt_, ' ' ) + aadd( txt_, '#include "hbapi.h" ' ) + aadd( txt_, '#include "hbapiitm.h" ' ) + aadd( txt_, ' ' ) + aadd( txt_, 'class Slots: public QObject ' ) + aadd( txt_, '{ ' ) + aadd( txt_, ' Q_OBJECT ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' public: ' ) + aadd( txt_, ' Slots( QObject *parent = 0 ); ' ) + aadd( txt_, ' ~Slots(); ' ) + aadd( txt_, ' QList list1; ' ) + aadd( txt_, ' QList list2; ' ) + aadd( txt_, ' QList list3; ' ) + aadd( txt_, ' QList list4; ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' public slots: ' ) + aadd( txt_, ' void clicked(); ' ) + aadd( txt_, ' void triggered(); ' ) + aadd( txt_, ' void triggered( bool checked ); ' ) + aadd( txt_, ' void hovered(); ' ) + aadd( txt_, ' void stateChanged( int state ); ' ) + aadd( txt_, ' void pressed(); ' ) + aadd( txt_, ' void released(); ' ) + aadd( txt_, '}; ' ) + aadd( txt_, ' ' ) + aadd( txt_, '#endif ' ) + aadd( txt_, ' ' ) + + RETURN CreateTarget( cFile, txt_ ) + +/*----------------------------------------------------------------------*/ + +STATIC FUNCTION Build_HBQT_SLOTS_CPP( cPathOut ) + LOCAL cFile := cPathOut + s_PathSep + 'hbqt_slots.cpp' + LOCAL txt_:={} + + BuildHeader( @txt_, 2 ) + + aadd( txt_, '#include "hbapi.h" ' ) + aadd( txt_, '#include "hbvm.h" ' ) + aadd( txt_, '#include "hbapiitm.h" ' ) + aadd( txt_, ' ' ) + aadd( txt_, '#include "hbqt.h" ' ) + aadd( txt_, ' ' ) + aadd( txt_, '#if QT_VERSION >= 0x040500 ' ) + aadd( txt_, ' ' ) + aadd( txt_, '#include "hbqt_slots.h" ' ) + aadd( txt_, ' ' ) + aadd( txt_, '#include ' ) + aadd( txt_, '#include ' ) + aadd( txt_, '#include ' ) + aadd( txt_, ' ' ) + aadd( txt_, '#define HBQT_EVT_CLICKED 1 ' ) + aadd( txt_, '#define HBQT_EVT_TRIGGERED 2 ' ) + aadd( txt_, '#define HBQT_EVT_TRIGGERED_BOOL 3 ' ) + aadd( txt_, '#define HBQT_EVT_HOVERED 4 ' ) + aadd( txt_, '#define HBQT_EVT_STATECHANGED 5 ' ) + aadd( txt_, '#define HBQT_EVT_PRESSED 6 ' ) + aadd( txt_, '#define HBQT_EVT_RELEASED 7 ' ) + aadd( txt_, ' ' ) + aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) + aadd( txt_, ' ' ) + aadd( txt_, 'static Slots *s = NULL; ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' ' ) + aadd( txt_, 'static void SlotsExec( QWidget* widget, QString event, PHB_ITEM pItem ) ' ) + aadd( txt_, '{ ' ) + aadd( txt_, ' for( int i = 0; i < s->list1.size(); ++i ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' if( ( QWidget* ) s->list1.at( i ) == widget ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' if( ( ( QString ) s->list2.at( i ) == event ) && ( ( bool ) s->list4.at( i ) == true ) ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' PHB_ITEM pWidget = hb_itemPutPtr( NULL, ( QWidget* ) widget ); ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' hb_vmEvalBlockV( ( PHB_ITEM ) s->list3.at( i ), 1, pWidget ); ' ) + aadd( txt_, ' hb_itemRelease( pWidget ); ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' if( pItem != NULL ) ' ) + aadd( txt_, ' hb_itemRelease( pItem ); ' ) + aadd( txt_, '} ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' ' ) + aadd( txt_, 'Slots::Slots( QObject* parent ) : QObject( parent ) ' ) + aadd( txt_, '{ ' ) + aadd( txt_, '} ' ) + aadd( txt_, ' ' ) + aadd( txt_, 'Slots::~Slots() ' ) + aadd( txt_, '{ ' ) + aadd( txt_, '} ' ) + aadd( txt_, ' ' ) + aadd( txt_, 'void Slots::clicked() ' ) + aadd( txt_, '{ ' ) + aadd( txt_, ' QWidget *widget = qobject_cast( sender() ); ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' SlotsExec( widget, ( QString ) "clicked()", NULL ); ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' #if 0 ' ) + aadd( txt_, ' for( int i = 0; i < list1.size(); ++i ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' if( ( QWidget* ) list1.at( i ) == ( QWidget* ) widget ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' if( ( ( QString ) list2.at( i ) == ( QString ) "clicked()" ) && ( ( bool ) list4.at( i ) == true ) ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' PHB_ITEM pWidget = hb_itemPutPtr( NULL, ( QWidget* ) widget ); ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' hb_vmEvalBlockV( ( PHB_ITEM ) list3.at( i ), 1, pWidget ); ' ) + aadd( txt_, ' hb_itemRelease( pWidget ); ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' #endif ' ) + aadd( txt_, '} ' ) + aadd( txt_, ' ' ) + aadd( txt_, 'void Slots::triggered() ' ) + aadd( txt_, '{ ' ) + aadd( txt_, ' QObject *widget = qobject_cast( sender() ); ' ) + aadd( txt_, ' for( int i = 0; i < list1.size(); ++i ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' if( ( QObject* ) list1.at( i ) == ( QObject* ) widget ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' if( ( ( QString ) list2.at( i ) == ( QString ) "triggered()" ) && ( ( bool ) list4.at( i ) == true ) ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' PHB_ITEM pWidget = hb_itemPutPtr( NULL, ( QObject * ) widget ); ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' hb_vmEvalBlockV( ( PHB_ITEM ) list3.at( i ), 1, pWidget ); ' ) + aadd( txt_, ' hb_itemRelease( pWidget ); ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' } ' ) + aadd( txt_, '} ' ) + aadd( txt_, ' ' ) + aadd( txt_, 'void Slots::triggered( bool checked ) ' ) + aadd( txt_, '{ ' ) + aadd( txt_, ' QObject *widget = qobject_cast( sender() ); ' ) + aadd( txt_, ' for( int i = 0; i < list1.size(); ++i ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' if( ( QObject* ) list1.at( i ) == ( QObject* ) widget ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' if( ( ( QString ) list2.at( i ) == ( QString ) "triggered(bool)" ) && ( ( bool ) list4.at( i ) == true ) ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' PHB_ITEM pWidget = hb_itemPutPtr( NULL, ( QObject * ) widget ); ' ) + aadd( txt_, ' PHB_ITEM pChecked = hb_itemPutL( NULL, checked ); ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' hb_vmEvalBlockV( ( PHB_ITEM ) list3.at( i ), 2, pWidget, pChecked ); ' ) + aadd( txt_, ' hb_itemRelease( pWidget ); ' ) + aadd( txt_, ' hb_itemRelease( pChecked ); ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' } ' ) + aadd( txt_, '} ' ) + aadd( txt_, ' ' ) + aadd( txt_, 'void Slots::hovered() ' ) + aadd( txt_, '{ ' ) + aadd( txt_, ' QObject *widget = qobject_cast( sender() ); ' ) + aadd( txt_, ' for( int i = 0; i < list1.size(); ++i ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' if( ( QObject* ) list1.at( i ) == ( QObject* ) widget ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' if( ( ( QString ) list2.at( i ) == ( QString ) "hovered()" ) && ( ( bool ) list4.at( i ) == true ) ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' PHB_ITEM pWidget = hb_itemPutPtr( NULL, ( QObject * ) widget ); ' ) + aadd( txt_, ' hb_vmEvalBlockV( ( PHB_ITEM ) list3.at( i ), 1, pWidget ); ' ) + aadd( txt_, ' hb_itemRelease( pWidget ); ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' } ' ) + aadd( txt_, '} ' ) + aadd( txt_, ' ' ) + aadd( txt_, 'void Slots::stateChanged( int state ) ' ) + aadd( txt_, '{ ' ) + aadd( txt_, ' QWidget * widget = qobject_cast( sender() ); ' ) + aadd( txt_, ' for( int i = 0; i < list1.size(); ++i ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' if( ( QWidget * ) list1.at( i ) == ( QWidget * ) widget ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' if( ( ( QString ) list2.at( i ) == ( QString ) "stateChanged(int)" ) && ( ( bool ) list4.at( i ) == true ) ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' PHB_ITEM pWidget = hb_itemPutPtr( NULL, ( QWidget * ) widget ); ' ) + aadd( txt_, ' PHB_ITEM pState = hb_itemPutNI( NULL, state ); ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' hb_vmEvalBlockV( ( PHB_ITEM ) list3.at( i ), 2, pWidget, pState ); ' ) + aadd( txt_, ' hb_itemRelease( pWidget ); ' ) + aadd( txt_, ' hb_itemRelease( pState ); ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' } ' ) + aadd( txt_, '} ' ) + aadd( txt_, ' ' ) + aadd( txt_, 'void Slots::pressed() ' ) + aadd( txt_, '{ ' ) + aadd( txt_, ' QWidget * widget = qobject_cast(sender()); ' ) + aadd( txt_, ' for( int i = 0; i < list1.size(); ++i ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' if( ( QWidget * ) list1.at( i ) == ( QWidget * ) widget ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' if( ( ( QString ) list2.at( i ) == ( QString ) "pressed()" ) && ( ( bool ) list4.at( i ) == true ) ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' PHB_ITEM pWidget = hb_itemPutPtr( NULL, (QWidget *) widget ); ' ) + aadd( txt_, ' hb_vmEvalBlockV( ( PHB_ITEM ) list3.at( i ), 1, pWidget ); ' ) + aadd( txt_, ' hb_itemRelease( pWidget ); ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' } ' ) + aadd( txt_, '} ' ) + aadd( txt_, ' ' ) + aadd( txt_, 'void Slots::released() ' ) + aadd( txt_, '{ ' ) + aadd( txt_, ' QWidget* widget = qobject_cast( sender() ); ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' for( int i = 0; i < list1.size(); ++i ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' if( ( QWidget* ) list1.at( i ) == ( QWidget* ) widget ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' if( ( ( QString ) list2.at( i ) == ( QString ) "released()" ) && ( ( bool ) list4.at( i ) == true ) ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' PHB_ITEM pWidget = hb_itemPutPtr( NULL, ( QWidget * ) widget ); ' ) + aadd( txt_, ' hb_vmEvalBlockV( ( PHB_ITEM ) list3.at( i ), 1, pWidget ); ' ) + aadd( txt_, ' hb_itemRelease( pWidget ); ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' } ' ) + aadd( txt_, '} ' ) + aadd( txt_, ' ' ) + aadd( txt_, '#if 0 ' ) + aadd( txt_, 'HB_FUNC( QT_CONNECT_SIGNAL_1 ) ' ) + aadd( txt_, '{ ' ) + aadd( txt_, ' QWidget * widget = ( QWidget* ) hb_parptr( 1 ); /* get sender */ ' ) + aadd( txt_, ' int signal = hb_parni( 2 ); /* get signal */ ' ) + aadd( txt_, ' PHB_ITEM codeblock = hb_itemNew( hb_param( 3, HB_IT_BLOCK | HB_IT_BYREF ) ); /* get codeblock */ ' ) + aadd( txt_, ' bool ret = false; /* return value */ ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' /* create object s, if not created yet */ ' ) + aadd( txt_, ' if( s == NULL ) ' ) + aadd( txt_, ' s = new Slots(); ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' /* connect signal with slot ' ) + aadd( txt_, ' // if the list become to long, more classes can be created ' ) + aadd( txt_, ' // TODO: parameter Qt::AutoConnection ' ) + aadd( txt_, ' */ ' ) + aadd( txt_, ' switch( signal ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' case HBQT_EVT_CLICKED: ' ) + aadd( txt_, ' ret = widget->connect( widget, SIGNAL( clicked() ) , s, SLOT( clicked() ) , Qt::AutoConnection ); ' ) + aadd( txt_, ' break; ' ) + aadd( txt_, ' case HBQT_EVT_TRIGGERED: ' ) + aadd( txt_, ' ret = widget->connect( widget, SIGNAL( triggered() ) , s, SLOT( triggered() ) , Qt::AutoConnection ); ' ) + aadd( txt_, ' break; ' ) + aadd( txt_, ' case HBQT_EVT_TRIGGERED_BOOL: ' ) + aadd( txt_, ' ret = widget->connect( widget, SIGNAL( triggered( bool ) ) , s, SLOT( triggered( bool ) ) , Qt::AutoConnection ); ' ) + aadd( txt_, ' break; ' ) + aadd( txt_, ' case HBQT_EVT_HOVERED: ' ) + aadd( txt_, ' ret = widget->connect( widget, SIGNAL( hovered() ) , s, SLOT( hovered() ) , Qt::AutoConnection ); ' ) + aadd( txt_, ' break; ' ) + aadd( txt_, ' case HBQT_EVT_STATECHANGED: ' ) + aadd( txt_, ' ret = widget->connect( widget, SIGNAL( stateChanged( int ) ), s, SLOT( stateChanged( int ) ), Qt::AutoConnection ); ' ) + aadd( txt_, ' break; ' ) + aadd( txt_, ' case HBQT_EVT_PRESSED: ' ) + aadd( txt_, ' ret = widget->connect( widget, SIGNAL( pressed() ) , s, SLOT( pressed() ) , Qt::AutoConnection ); ' ) + aadd( txt_, ' break; ' ) + aadd( txt_, ' case HBQT_EVT_RELEASED: ' ) + aadd( txt_, ' ret = widget->connect( widget, SIGNAL( released() ) , s, SLOT( released() ) , Qt::AutoConnection ); ' ) + aadd( txt_, ' break; ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' // return connect result ' ) + aadd( txt_, ' hb_retl( ret ); ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' // if connected: store widget, signal, codeblock and flag ' ) + aadd( txt_, ' // TODO: locate a inactive entry and use it ' ) + aadd( txt_, ' if( ret == true ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' s->list1 << widget; ' ) + aadd( txt_, ' s->list2 << signal; ' ) + aadd( txt_, ' s->list3 << codeblock; ' ) + aadd( txt_, ' s->list4 << true; ' ) + aadd( txt_, ' } ' ) + aadd( txt_, '} ' ) + aadd( txt_, '#endif ' ) + aadd( txt_, ' ' ) + aadd( txt_, '/* ' ) + aadd( txt_, 'harbour function to connect signals with slots ' ) + aadd( txt_, '*/ ' ) + aadd( txt_, 'HB_FUNC( QT_CONNECT_SIGNAL ) ' ) + aadd( txt_, '{ ' ) + aadd( txt_, ' QWidget * widget = ( QWidget* ) hb_parptr( 1 ); /* get sender */ ' ) + aadd( txt_, ' QString signal = hb_parc( 2 ); /* get signal */ ' ) + aadd( txt_, ' PHB_ITEM codeblock = hb_itemNew( hb_param( 3, HB_IT_BLOCK | HB_IT_BYREF ) ); /* get codeblock */ ' ) + aadd( txt_, ' bool ret = false; /* return value */ ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' /* create object s, if not created yet */ ' ) + aadd( txt_, ' if( s == NULL ) ' ) + aadd( txt_, ' s = new Slots(); ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' /* connect signal with slot ' ) + aadd( txt_, ' // if the list become to long, more classes can be created ' ) + aadd( txt_, ' // TODO: parameter Qt::AutoConnection ' ) + aadd( txt_, ' */ ' ) + aadd( txt_, ' if( signal == ( QString ) "clicked()" ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' ret = widget->connect( widget, SIGNAL( clicked() ) , s, SLOT( clicked() ) , Qt::AutoConnection ); ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' if( signal == ( QString ) "triggered()" ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' ret = widget->connect( widget, SIGNAL( triggered() ) , s, SLOT( triggered() ) , Qt::AutoConnection ); ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' if( signal == ( QString ) "triggered(bool)" ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' ret = widget->connect( widget, SIGNAL( triggered( bool ) ) , s, SLOT( triggered( bool ) ) , Qt::AutoConnection ); ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' if( signal == ( QString ) "hovered()" ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' ret = widget->connect( widget, SIGNAL( hovered() ) , s, SLOT( hovered() ) , Qt::AutoConnection ); ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' if( signal == ( QString ) "stateChanged(int)" ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' ret = widget->connect( widget, SIGNAL( stateChanged( int ) ), s, SLOT( stateChanged( int ) ), Qt::AutoConnection ); ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' if( signal == ( QString ) "pressed()" ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' ret = widget->connect( widget, SIGNAL( pressed() ) , s, SLOT( pressed() ) , Qt::AutoConnection ); ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' if( signal == ( QString ) "released()" ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' ret = widget->connect( widget, SIGNAL( released() ) , s, SLOT( released() ) , Qt::AutoConnection ); ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' // return connect result ' ) + aadd( txt_, ' hb_retl( ret ); ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' // if connected: store widget, signal, codeblock and flag ' ) + aadd( txt_, ' // TODO: locate a inactive entry and use it ' ) + aadd( txt_, ' if( ret == true ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' s->list1 << widget; ' ) + aadd( txt_, ' s->list2 << signal; ' ) + aadd( txt_, ' s->list3 << codeblock; ' ) + aadd( txt_, ' s->list4 << true; ' ) + aadd( txt_, ' } ' ) + aadd( txt_, '} ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' ' ) + aadd( txt_, '/* ' ) + aadd( txt_, 'harbour function to disconnect signals ' ) + aadd( txt_, '*/ ' ) + aadd( txt_, 'HB_FUNC( QT_DISCONNECT_SIGNAL ) ' ) + aadd( txt_, '{ ' ) + aadd( txt_, ' /* TODO */ ' ) + aadd( txt_, '} ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' ' ) + aadd( txt_, '/* ' ) + aadd( txt_, 'harbour function to release all codeblocks storeds ' ) + aadd( txt_, '*/ ' ) + aadd( txt_, '#if 0 ' ) + aadd( txt_, 'HB_FUNC( RELEASE_CODEBLOCKS ) ' ) + aadd( txt_, '{ ' ) + aadd( txt_, ' if( s ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' for( int i = 0; i < s->list1.size(); ++i ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' if( ( bool ) s->list4.at( i ) == true ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' hb_itemRelease( ( PHB_ITEM ) s->list3.at( i ) ); ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' } ' ) + aadd( txt_, '} ' ) + aadd( txt_, '#endif ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' ' ) + aadd( txt_, '/* ' ) + aadd( txt_, 'C function to release all codeblocks storeds ' ) + aadd( txt_, 'called at end of the program ' ) + aadd( txt_, 'see qapplication.cpp ' ) + aadd( txt_, '*/ ' ) + aadd( txt_, 'void release_codeblocks( void ) ' ) + aadd( txt_, '{ ' ) + aadd( txt_, ' if( s ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' for( int i = 0; i < s->list1.size(); ++i ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' if( ( bool ) s->list4.at( i ) == true ) ' ) + aadd( txt_, ' { ' ) + aadd( txt_, ' hb_itemRelease( ( PHB_ITEM ) s->list3.at( i ) ); ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' } ' ) + aadd( txt_, '} ' ) + aadd( txt_, ' ' ) + aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) + aadd( txt_, '#endif ' ) + aadd( txt_, '' ) + + + RETURN CreateTarget( cFile, txt_ ) + +/*----------------------------------------------------------------------*/ + +STATIC FUNCTION Build_MOC_SLOTS_CPP( cPathOut ) + LOCAL cFile := cPathOut + s_PathSep + 'moc_slots.cpp' + LOCAL txt_:={} + + aadd( txt_, '/**************************************************************************** ' ) + aadd( txt_, '** Meta object code from reading C++ file "slots.h" ' ) + aadd( txt_, '** ' ) + aadd( txt_, '** Created: Wed 18. Mar 17:25:39 2009 ' ) + aadd( txt_, '** by: The Qt Meta Object Compiler version 61 (Qt 4.5.0) ' ) + aadd( txt_, '** ' ) + aadd( txt_, '** WARNING! All changes made in this file will be lost! ' ) + aadd( txt_, '*****************************************************************************/' ) + aadd( txt_, ' ' ) + aadd( txt_, '#include "hbqt.h" ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' ' ) + aadd( txt_, '#if QT_VERSION >= 0x040500 ' ) + aadd( txt_, ' ' ) + aadd( txt_, '#include "hbqt_slots.h" ' ) + aadd( txt_, '#if !defined(Q_MOC_OUTPUT_REVISION) ' ) + aadd( txt_, '#error "The header file [slots.h] doesn,t include ." ' ) + aadd( txt_, '#elif Q_MOC_OUTPUT_REVISION != 61 ' ) + aadd( txt_, '#error "This file was generated using the moc from 4.5.0. It" ' ) + aadd( txt_, '#error "cannot be used with the include files from this version of Qt." ' ) + aadd( txt_, '#error "(The moc has changed too much.)" ' ) + aadd( txt_, '#endif ' ) + aadd( txt_, ' ' ) + aadd( txt_, 'QT_BEGIN_MOC_NAMESPACE ' ) + aadd( txt_, 'static const uint qt_meta_data_Slots[] = { ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' // content: ' ) + aadd( txt_, ' 2, // revision ' ) + aadd( txt_, ' 0, // classname ' ) + aadd( txt_, ' 0, 0, // classinfo ' ) + aadd( txt_, ' 7, 12, // methods ' ) + aadd( txt_, ' 0, 0, // properties ' ) + aadd( txt_, ' 0, 0, // enums/sets ' ) + aadd( txt_, ' 0, 0, // constructors ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' // slots: signature, parameters, type, tag, flags ' ) + aadd( txt_, ' 7, 6, 6, 6, 0x0a, ' ) + aadd( txt_, ' 17, 6, 6, 6, 0x0a, ' ) + aadd( txt_, ' 37, 29, 6, 6, 0x0a, ' ) + aadd( txt_, ' 53, 6, 6, 6, 0x0a, ' ) + aadd( txt_, ' 69, 63, 6, 6, 0x0a, ' ) + aadd( txt_, ' 87, 6, 6, 6, 0x0a, ' ) + aadd( txt_, ' 97, 6, 6, 6, 0x0a, ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' 0 // eod ' ) + aadd( txt_, '}; ' ) + aadd( txt_, ' ' ) + aadd( txt_, 'static const char qt_meta_stringdata_Slots[] = { ' ) + aadd( txt_, ' "Slots\0\0clicked()\0triggered()\0checked\0" ' ) + aadd( txt_, ' "triggered(bool)\0hovered()\0state\0" ' ) + aadd( txt_, ' "stateChanged(int)\0pressed()\0released()\0" ' ) + aadd( txt_, '}; ' ) + aadd( txt_, ' ' ) + aadd( txt_, 'const QMetaObject Slots::staticMetaObject = { ' ) + aadd( txt_, ' { &QObject::staticMetaObject, qt_meta_stringdata_Slots, ' ) + aadd( txt_, ' qt_meta_data_Slots, 0 } ' ) + aadd( txt_, '}; ' ) + aadd( txt_, ' ' ) + aadd( txt_, 'const QMetaObject *Slots::metaObject() const ' ) + aadd( txt_, '{ ' ) + aadd( txt_, ' return &staticMetaObject; ' ) + aadd( txt_, '} ' ) + aadd( txt_, ' ' ) + aadd( txt_, 'void *Slots::qt_metacast(const char *_clname) ' ) + aadd( txt_, '{ ' ) + aadd( txt_, ' if (!_clname) return 0; ' ) + aadd( txt_, ' if (!strcmp(_clname, qt_meta_stringdata_Slots)) ' ) + aadd( txt_, ' return static_cast(const_cast< Slots*>(this)); ' ) + aadd( txt_, ' return QObject::qt_metacast(_clname); ' ) + aadd( txt_, '} ' ) + aadd( txt_, ' ' ) + aadd( txt_, 'int Slots::qt_metacall(QMetaObject::Call _c, int _id, void **_a) ' ) + aadd( txt_, '{ ' ) + aadd( txt_, ' _id = QObject::qt_metacall(_c, _id, _a); ' ) + aadd( txt_, ' if (_id < 0) ' ) + aadd( txt_, ' return _id; ' ) + aadd( txt_, ' if (_c == QMetaObject::InvokeMetaMethod) { ' ) + aadd( txt_, ' switch (_id) { ' ) + aadd( txt_, ' case 0: clicked(); break; ' ) + aadd( txt_, ' case 1: triggered(); break; ' ) + aadd( txt_, ' case 2: triggered((*reinterpret_cast< bool(*)>(_a[1]))); break; ' ) + aadd( txt_, ' case 3: hovered(); break; ' ) + aadd( txt_, ' case 4: stateChanged((*reinterpret_cast< int(*)>(_a[1]))); break; ' ) + aadd( txt_, ' case 5: pressed(); break; ' ) + aadd( txt_, ' case 6: released(); break; ' ) + aadd( txt_, ' default: ; ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' _id -= 7; ' ) + aadd( txt_, ' } ' ) + aadd( txt_, ' return _id; ' ) + aadd( txt_, '} ' ) + aadd( txt_, 'QT_END_MOC_NAMESPACE ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' ' ) + aadd( txt_, '#endif ' ) + aadd( txt_, ' ' ) + + RETURN CreateTarget( cFile, txt_ ) + +/*----------------------------------------------------------------------*/ + +STATIC FUNCTION Build_Demo( cPathOut ) + LOCAL cFile := '..\tests\demoqt.prg' + LOCAL txt_:={} + + BuildHeader( @txt_, 2 ) + + aadd( txt_, '#define QT_PTROF( oObj ) ( oObj:pPtr ) ' ) + aadd( txt_, ' ' ) + aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) + aadd( txt_, ' ' ) + aadd( txt_, 'INIT PROCEDURE Qt_Start() ' ) + aadd( txt_, ' qt_qapplication() ' ) + aadd( txt_, ' RETURN ' ) + aadd( txt_, ' ' ) + aadd( txt_, 'EXIT PROCEDURE Qt_End() ' ) + aadd( txt_, ' qt_qapplication_exec() ' ) + aadd( txt_, ' RETURN ' ) + aadd( txt_, ' ' ) + aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) + aadd( txt_, ' ' ) + aadd( txt_, 'PROCEDURE Main() ' ) + aadd( txt_, ' Local oLabel ' ) + aadd( txt_, ' Local oWnd ' ) + aadd( txt_, ' Local oMenuBar ' ) + aadd( txt_, ' Local oMenuA ' ) + aadd( txt_, ' LOCAL oPS, oPPrv, oMB, oWZ, oCD, oWP ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' oWnd := QMainWindow():New() ' ) + aadd( txt_, ' oWnd:SetWindowTitle("Testing - QMainWindow, QMenu, QMenuBar and QLabel" ) ' ) + aadd( txt_, ' oWnd:Resize( { 640, 400 } ) ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' oMenuBar := QMenuBar():new( QT_PTROF( oWnd ) ) ' ) + aadd( txt_, ' oMenuBar:resize( { oWnd:width(), 20 } ) ' ) + aadd( txt_, ' oMenuBar:addAction( "First" ) ' ) + aadd( txt_, ' oMenuBar:addSeparator() ' ) + aadd( txt_, ' oMenuBar:addAction( "Second" ) ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' oMenuA := QMenu():new( QT_PTROF( oMenuBar ) ) ' ) + aadd( txt_, ' oMenuA:setTitle( "New" ) ' ) + aadd( txt_, ' oMenuA:addAction( "File" ) ' ) + aadd( txt_, ' oMenuA:addAction( "Open" ) ' ) + aadd( txt_, ' oMenuA:addSeparator() ' ) + aadd( txt_, ' oMenuA:addAction( "Close" ) ' ) + aadd( txt_, ' oMenuBar:addMenu( QT_PTROF( oMenuA ) ) ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' oLabel := QLabel():New( QT_PTROF( oWnd ) ) ' ) + aadd( txt_, ' oLabel:SetText( "Testing Harbour + Qt" ) ' ) + aadd( txt_, ' oLabel:move( { 100,100 } ) ' ) + aadd( txt_, ' oLabel:Show() ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' oWnd:Show() ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' oPS := QPageSetupDialog():new() ' ) + aadd( txt_, ' oPS:setWindowTitle( "Harbour-QT PageSetup Dialog" ) ' ) + aadd( txt_, ' oPS:show() ' ) + aadd( txt_, ' oPPrv := QPrintPreviewDialog():new() ' ) + aadd( txt_, ' oPPrv:setWindowTitle( "Harbour-QT Preview Preview Dialog" ) ' ) + aadd( txt_, ' oPPrv:show() ' ) + aadd( txt_, ' oWZ := QWizard():new() ' ) + aadd( txt_, ' oWZ:setWindowTitle( "Harbour-QT Wizard to Show Slides etc." ) ' ) + aadd( txt_, ' oWZ:show() ' ) + aadd( txt_, ' oCD := QColorDialog():new() ' ) + aadd( txt_, ' oCD:setWindowTitle( "Harbour-QT Color Selection Dialog" ) ' ) + aadd( txt_, ' oCD:show() ' ) + aadd( txt_, ' oWP := QWebView():new() ' ) + aadd( txt_, ' oWP:setWindowTitle( "Harbour-QT Web Page Navigator" ) ' ) + aadd( txt_, ' oWP:show() ' ) + aadd( txt_, ' ' ) + aadd( txt_, ' RETURN ' ) + aadd( txt_, ' ' ) + aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) + aadd( txt_, ' ' ) + aadd( txt_, 'PROCEDURE HB_GtSys() ' ) + aadd( txt_, ' HB_GT_GUI_DEFAULT() ' ) + aadd( txt_, ' RETURN ' ) + aadd( txt_, ' ' ) + aadd( txt_, '/*----------------------------------------------------------------------*/ ' ) + aadd( txt_, ' ' ) + + RETURN CreateTarget( cFile, txt_ ) + +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/generator/qt45.qtp b/harbour/contrib/hbqt/generator/qt45.qtp index 75690e1816..8972f71a05 100644 --- a/harbour/contrib/hbqt/generator/qt45.qtp +++ b/harbour/contrib/hbqt/generator/qt45.qtp @@ -55,12 +55,14 @@ QMenu.qth QMenuBar.qth QMessageBox.qth QObject.qth +QPaintDevice.qth QPageSetupDialog.qth QPainter.qth QPen.qth QPrintDialog.qth QPrintPreviewDialog.qth QProgressBar.qth +QProgressDialog.qth QPushButton.qth QRadioButton.qth QScrollArea.qth @@ -83,6 +85,9 @@ QTreeView.qth QTreeWidget.qth QTreeWidgetItem.qth QVBoxLayout.qth +QWebPage.qth QWidget.qth +QWizard.qth +QWebView.qth diff --git a/harbour/contrib/hbqt/hbqt.h b/harbour/contrib/hbqt/hbqt.h index 6dff786cf9..10cde9bbd9 100644 --- a/harbour/contrib/hbqt/hbqt.h +++ b/harbour/contrib/hbqt/hbqt.h @@ -6,6 +6,7 @@ * Harbour Project source code: * QT wrapper main header * + * Copyright 2009 Marcos Antonio Gambeta * Copyright 2009 Pritpal Bedi * www - http://www.harbour-project.org * @@ -49,10 +50,13 @@ * If you do not wish that, delete this exception notice. * */ +/*----------------------------------------------------------------------*/ + #ifndef __HBQT_H #define __HBQT_H + #define QT_VERSION 0x040500 #include @@ -114,6 +118,7 @@ #define hbqt_par_QMenu( n ) ( ( QMenu* ) hb_parptr( n ) ) #define hbqt_par_QMenuBar( n ) ( ( QMenuBar* ) hb_parptr( n ) ) #define hbqt_par_QMessageBox( n ) ( ( QMessageBox* ) hb_parptr( n ) ) +#define hbqt_par_QMovie( n ) ( ( QMovie* ) hb_parptr( n ) ) #define hbqt_par_QObject( n ) ( ( QObject* ) hb_parptr( n ) ) #define hbqt_par_QPageSetupDialog( n ) ( ( QPageSetupDialog* ) hb_parptr( n ) ) #define hbqt_par_QPainter( n ) ( ( QPainter* ) hb_parptr( n ) ) @@ -125,6 +130,7 @@ #define hbqt_par_QPrintPreviewDialog( n ) ( ( QPrintPreviewDialog* ) hb_parptr( n ) ) #define hbqt_par_QPrinter( n ) ( ( QPrinter* ) hb_parptr( n ) ) #define hbqt_par_QProgressBar( n ) ( ( QProgressBar* ) hb_parptr( n ) ) +#define hbqt_par_QProgressDialog( n ) ( ( QProgressDialog* ) hb_parptr( n ) ) #define hbqt_par_QPushButton( n ) ( ( QPushButton* ) hb_parptr( n ) ) #define hbqt_par_QRect( n ) ( ( QRect* ) hb_parptr( n ) ) #define hbqt_par_QRectF( n ) ( ( QRectF* ) hb_parptr( n ) ) @@ -154,7 +160,13 @@ #define hbqt_par_QWebView( n ) ( ( QWebView* ) hb_parptr( n ) ) #define hbqt_par_QWidget( n ) ( ( QWidget* ) hb_parptr( n ) ) #define hbqt_par_QWindowSurface( n ) ( ( QWindowSurface* ) hb_parptr( n ) ) +#define hbqt_par_QWizard( n ) ( ( QWizard* ) hb_parptr( n ) ) +#define hbqt_par_QWizardPage( n ) ( ( QWizardPage* ) hb_parptr( n ) ) #define hbqt_par_QWSEvent( n ) ( ( QWSEvent* ) hb_parptr( n ) ) +#define hbqt_par_QWebPage( n ) ( ( QWebPage* ) hb_parptr( n ) ) +#define hbqt_par_QNetworkAccessManager( n ) ( ( QNetworkAccessManager* ) hb_parptr( n ) ) +#define hbqt_par_QWebPluginFactory( n ) ( ( QWebPluginFactory* ) hb_parptr( n ) ) +#define hbqt_par_QContextMenuEvent( n ) ( ( QContextMenuEvent* ) hb_parptr( n ) ) #define hbqt_par_QIcon( n ) ( ( QIcon ) hb_parc( n ) ) #define hbqt_par_QString( n ) ( ( QString ) hb_parc( n ) ) @@ -177,6 +189,9 @@ QRect hbqt_const_QRect( int ); QSize hbqt_const_QSize( int ); QPoint hbqt_const_QPoint( int ); +void hb_ToOutDebug( const char * sTraceMsg, ... ); + #endif #endif /* __HBQT_H */ + diff --git a/harbour/contrib/hbqt/hbqt_base.cpp b/harbour/contrib/hbqt/hbqt_base.cpp index ab40d29aee..5f26f4f9e1 100644 --- a/harbour/contrib/hbqt/hbqt_base.cpp +++ b/harbour/contrib/hbqt/hbqt_base.cpp @@ -4,9 +4,10 @@ /* * Harbour Project source code: - * QT base routines + * QT wrapper main header * - * Copyright 2009 Viktor Szakats + * 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 @@ -49,6 +50,7 @@ * If you do not wish that, delete this exception notice. * */ +/*----------------------------------------------------------------------*/ #include "hbapi.h" @@ -63,3 +65,4 @@ HB_FUNC( QT_VERSION_STR ) { hb_retc_const( QT_VERSION_STR ); } + diff --git a/harbour/contrib/hbqt/hbqt_qabstractbutton.cpp b/harbour/contrib/hbqt/hbqt_qabstractbutton.cpp index 24d2b891cf..0914467cb9 100644 --- a/harbour/contrib/hbqt/hbqt_qabstractbutton.cpp +++ b/harbour/contrib/hbqt/hbqt_qabstractbutton.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,181 +55,181 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 18/21 [ 85.71% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * QIcon icon () const + * void setShortcut ( const QKeySequence & key ) + * QKeySequence shortcut () const + */ + #include -/*----------------------------------------------------------------------*/ + /* -bool autoExclusive () const -*/ + * QAbstractButton ( QWidget * parent = 0 ) + * ~QAbstractButton () + */ +HB_FUNC( QT_QABSTRACTBUTTON ) +{ + +} + +/* + * bool autoExclusive () const + */ HB_FUNC( QT_QABSTRACTBUTTON_AUTOEXCLUSIVE ) { - hb_retl( hbqt_par_QAbstractButton( 1 )->autoExclusive() ); + hb_retl( hbqt_par_QAbstractButton( 1 )->autoExclusive( ) ); } /* -bool autoRepeat () const -*/ + * bool autoRepeat () const + */ HB_FUNC( QT_QABSTRACTBUTTON_AUTOREPEAT ) { - hb_retl( hbqt_par_QAbstractButton( 1 )->autoRepeat() ); + hb_retl( hbqt_par_QAbstractButton( 1 )->autoRepeat( ) ); } /* -int autoRepeatDelay () const -*/ + * int autoRepeatDelay () const + */ HB_FUNC( QT_QABSTRACTBUTTON_AUTOREPEATDELAY ) { - hb_retni( hbqt_par_QAbstractButton( 1 )->autoRepeatDelay() ); + hb_retni( hbqt_par_QAbstractButton( 1 )->autoRepeatDelay( ) ); } /* -int autoRepeatInterval () const -*/ + * int autoRepeatInterval () const + */ HB_FUNC( QT_QABSTRACTBUTTON_AUTOREPEATINTERVAL ) { - hb_retni( hbqt_par_QAbstractButton( 1 )->autoRepeatInterval() ); + hb_retni( hbqt_par_QAbstractButton( 1 )->autoRepeatInterval( ) ); } /* -QButtonGroup * group () const -*/ + * QButtonGroup * group () const + */ HB_FUNC( QT_QABSTRACTBUTTON_GROUP ) { - hb_retptr( ( QButtonGroup* ) hbqt_par_QAbstractButton( 1 )->group() ); + hb_retptr( ( QButtonGroup* ) hbqt_par_QAbstractButton( 1 )->group( ) ); } /* -bool isCheckable () const -*/ + * QSize iconSize () const + */ +HB_FUNC( QT_QABSTRACTBUTTON_ICONSIZE ) +{ + hbqt_ret_QSize( hbqt_par_QAbstractButton( 1 )->iconSize( ) ); +} + +/* + * bool isCheckable () const + */ HB_FUNC( QT_QABSTRACTBUTTON_ISCHECKABLE ) { - hb_retl( hbqt_par_QAbstractButton( 1 )->isCheckable() ); + hb_retl( hbqt_par_QAbstractButton( 1 )->isCheckable( ) ); } /* -bool isChecked () const -*/ + * bool isChecked () const + */ HB_FUNC( QT_QABSTRACTBUTTON_ISCHECKED ) { - hb_retl( hbqt_par_QAbstractButton( 1 )->isChecked() ); + hb_retl( hbqt_par_QAbstractButton( 1 )->isChecked( ) ); } /* -bool isDown () const -*/ + * bool isDown () const + */ HB_FUNC( QT_QABSTRACTBUTTON_ISDOWN ) { - hb_retl( hbqt_par_QAbstractButton( 1 )->isDown() ); + hb_retl( hbqt_par_QAbstractButton( 1 )->isDown( ) ); } /* -void setAutoExclusive ( bool ) -*/ + * void setAutoExclusive ( bool ) + */ HB_FUNC( QT_QABSTRACTBUTTON_SETAUTOEXCLUSIVE ) { hbqt_par_QAbstractButton( 1 )->setAutoExclusive( hb_parl( 2 ) ); } /* -void setAutoRepeat ( bool ) -*/ + * void setAutoRepeat ( bool ) + */ HB_FUNC( QT_QABSTRACTBUTTON_SETAUTOREPEAT ) { hbqt_par_QAbstractButton( 1 )->setAutoRepeat( hb_parl( 2 ) ); } /* -void setAutoRepeatDelay ( int ) -*/ + * void setAutoRepeatDelay ( int ) + */ HB_FUNC( QT_QABSTRACTBUTTON_SETAUTOREPEATDELAY ) { - hbqt_par_QAbstractButton( 1 )->setAutoRepeatDelay( hb_parni( 2 ) ); + hbqt_par_QAbstractButton( 1 )->setAutoRepeatDelay( hb_parni( 2 ) ); } /* -void setAutoRepeatInterval ( int ) -*/ + * void setAutoRepeatInterval ( int ) + */ HB_FUNC( QT_QABSTRACTBUTTON_SETAUTOREPEATINTERVAL ) { - hbqt_par_QAbstractButton( 1 )->setAutoRepeatInterval( hb_parni( 2 ) ); + hbqt_par_QAbstractButton( 1 )->setAutoRepeatInterval( hb_parni( 2 ) ); } /* -void setCheckable ( bool ) -*/ + * void setCheckable ( bool ) + */ HB_FUNC( QT_QABSTRACTBUTTON_SETCHECKABLE ) { - hbqt_par_QAbstractButton( 1 )->setCheckable( hb_parl( 2 ) ); + hbqt_par_QAbstractButton( 1 )->setCheckable( hb_parl( 2 ) ); } /* -void setDown ( bool ) -*/ + * void setDown ( bool ) + */ HB_FUNC( QT_QABSTRACTBUTTON_SETDOWN ) { hbqt_par_QAbstractButton( 1 )->setDown( hb_parl( 2 ) ); } /* -void setIcon ( const QIcon & icon ) -*/ + * void setIcon ( const QIcon & icon ) + */ HB_FUNC( QT_QABSTRACTBUTTON_SETICON ) { hbqt_par_QAbstractButton( 1 )->setIcon( QIcon( hbqt_par_QString( 2 ) ) ); } /* -void setText ( const QString & text ) -*/ + * void setText ( const QString & text ) + */ HB_FUNC( QT_QABSTRACTBUTTON_SETTEXT ) { hbqt_par_QAbstractButton( 1 )->setText( hbqt_par_QString( 2 ) ); } /* -QString text () const -*/ + * QString text () const + */ HB_FUNC( QT_QABSTRACTBUTTON_TEXT ) { - QString str1 = hbqt_par_QAbstractButton( 1 )->text(); - QByteArray ba = str1.toLatin1(); - const char * c_str2 = ba.data(); - hb_retc( c_str2 ); + hb_retc( hbqt_par_QAbstractButton( 1 )->text( ).toLatin1().data() ); } -/* -void animateClick ( int msec = 100 ) -*/ -HB_FUNC( QT_QABSTRACTBUTTON_ANIMATECLICK ) -{ - hbqt_par_QAbstractButton( 1 )->animateClick( hb_parni( 2 ) ); -} - -/* -void click () -*/ -HB_FUNC( QT_QABSTRACTBUTTON_CLICK ) -{ - hbqt_par_QAbstractButton( 1 )->click(); -} - -/* -void setChecked ( bool ) -*/ -HB_FUNC( QT_QABSTRACTBUTTON_SETCHECKED ) -{ - hbqt_par_QAbstractButton( 1 )->setChecked( hb_parl( 2 ) ); -} - -/* -void toggle () -*/ -HB_FUNC( QT_QABSTRACTBUTTON_TOGGLE ) -{ - hbqt_par_QAbstractButton( 1 )->toggle(); -} /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qabstractitemview.cpp b/harbour/contrib/hbqt/hbqt_qabstractitemview.cpp index 59b7fe2a82..a83bf5c6d3 100644 --- a/harbour/contrib/hbqt/hbqt_qabstractitemview.cpp +++ b/harbour/contrib/hbqt/hbqt_qabstractitemview.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,322 +55,389 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 43/54 [ 79.63% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * void closePersistentEditor ( const QModelIndex & index ) + * QModelIndex currentIndex () const + * virtual QModelIndex indexAt ( const QPoint & point ) const = 0 + * QWidget * indexWidget ( const QModelIndex & index ) const + * QAbstractItemDelegate * itemDelegate ( const QModelIndex & index ) const + * void openPersistentEditor ( const QModelIndex & index ) + * QModelIndex rootIndex () const + * virtual void scrollTo ( const QModelIndex & index, ScrollHint hint = EnsureVisible ) = 0 + * void setIndexWidget ( const QModelIndex & index, QWidget * widget ) + * QSize sizeHintForIndex ( const QModelIndex & index ) const + * virtual QRect visualRect ( const QModelIndex & index ) const = 0 + */ + #include -/*----------------------------------------------------------------------*/ + /* -bool alternatingRowColors () const -*/ + * QAbstractItemView ( QWidget * parent = 0 ) + * ~QAbstractItemView () + */ +HB_FUNC( QT_QABSTRACTITEMVIEW ) +{ + +} + +/* + * bool alternatingRowColors () const + */ HB_FUNC( QT_QABSTRACTITEMVIEW_ALTERNATINGROWCOLORS ) { - hb_retl( hbqt_par_QAbstractItemView( 1 )->alternatingRowColors() ); + hb_retl( hbqt_par_QAbstractItemView( 1 )->alternatingRowColors( ) ); } /* -int autoScrollMargin () const -*/ + * int autoScrollMargin () const + */ HB_FUNC( QT_QABSTRACTITEMVIEW_AUTOSCROLLMARGIN ) { - hb_retni( hbqt_par_QAbstractItemView( 1 )->autoScrollMargin() ); + hb_retni( hbqt_par_QAbstractItemView( 1 )->autoScrollMargin( ) ); } /* -DragDropMode dragDropMode () const -*/ + * DragDropMode dragDropMode () const + */ HB_FUNC( QT_QABSTRACTITEMVIEW_DRAGDROPMODE ) { - hb_retni( hbqt_par_QAbstractItemView( 1 )->dragDropMode() ); + hb_retni( hbqt_par_QAbstractItemView( 1 )->dragDropMode( ) ); } /* -bool dragDropOverwriteMode () const -*/ + * bool dragDropOverwriteMode () const + */ HB_FUNC( QT_QABSTRACTITEMVIEW_DRAGDROPOVERWRITEMODE ) { - hb_retl( hbqt_par_QAbstractItemView( 1 )->dragDropOverwriteMode() ); + hb_retl( hbqt_par_QAbstractItemView( 1 )->dragDropOverwriteMode( ) ); } /* -bool dragEnabled () const -*/ + * bool dragEnabled () const + */ HB_FUNC( QT_QABSTRACTITEMVIEW_DRAGENABLED ) { - hb_retl( hbqt_par_QAbstractItemView( 1 )->dragEnabled() ); + hb_retl( hbqt_par_QAbstractItemView( 1 )->dragEnabled( ) ); } /* -EditTriggers editTriggers () const -*/ + * EditTriggers editTriggers () const + */ HB_FUNC( QT_QABSTRACTITEMVIEW_EDITTRIGGERS ) { - hb_retni( hbqt_par_QAbstractItemView( 1 )->editTriggers() ); + hb_retni( hbqt_par_QAbstractItemView( 1 )->editTriggers( ) ); } /* -bool hasAutoScroll () const -*/ + * bool hasAutoScroll () const + */ HB_FUNC( QT_QABSTRACTITEMVIEW_HASAUTOSCROLL ) { - hb_retl( hbqt_par_QAbstractItemView( 1 )->hasAutoScroll() ); + hb_retl( hbqt_par_QAbstractItemView( 1 )->hasAutoScroll( ) ); } /* -ScrollMode horizontalScrollMode () const -*/ + * ScrollMode horizontalScrollMode () const + */ HB_FUNC( QT_QABSTRACTITEMVIEW_HORIZONTALSCROLLMODE ) { - hb_retni( hbqt_par_QAbstractItemView( 1 )->horizontalScrollMode() ); + hb_retni( hbqt_par_QAbstractItemView( 1 )->horizontalScrollMode( ) ); } /* -QAbstractItemDelegate * itemDelegate () const -*/ + * QSize iconSize () const + */ +HB_FUNC( QT_QABSTRACTITEMVIEW_ICONSIZE ) +{ + hbqt_ret_QSize( hbqt_par_QAbstractItemView( 1 )->iconSize( ) ); +} + +/* + * QAbstractItemDelegate * itemDelegate () const + */ HB_FUNC( QT_QABSTRACTITEMVIEW_ITEMDELEGATE ) { - hbqt_ret_QAbstractItemDelegate( hbqt_par_QAbstractItemView( 1 )->itemDelegate() ); + hb_retptr( ( QAbstractItemDelegate* ) hbqt_par_QAbstractItemView( 1 )->itemDelegate( ) ); } /* -QAbstractItemDelegate * itemDelegateForColumn ( int column ) const -*/ + * QAbstractItemDelegate * itemDelegateForColumn ( int column ) const + */ HB_FUNC( QT_QABSTRACTITEMVIEW_ITEMDELEGATEFORCOLUMN ) { - hbqt_ret_QAbstractItemDelegate( hbqt_par_QAbstractItemView( 1 )->itemDelegateForColumn( hb_parni( 2 ) ) ); + hb_retptr( ( QAbstractItemDelegate* ) hbqt_par_QAbstractItemView( 1 )->itemDelegateForColumn( hb_parni( 2 ) ) ); } /* -QAbstractItemDelegate * itemDelegateForRow ( int row ) const -*/ + * QAbstractItemDelegate * itemDelegateForRow ( int row ) const + */ HB_FUNC( QT_QABSTRACTITEMVIEW_ITEMDELEGATEFORROW ) { - hbqt_ret_QAbstractItemDelegate( hbqt_par_QAbstractItemView( 1 )->itemDelegateForRow( hb_parni( 2 ) ) ); + hb_retptr( ( QAbstractItemDelegate* ) hbqt_par_QAbstractItemView( 1 )->itemDelegateForRow( hb_parni( 2 ) ) ); } /* -QAbstractItemModel * model () const -*/ + * virtual void keyboardSearch ( const QString & search ) + */ +HB_FUNC( QT_QABSTRACTITEMVIEW_KEYBOARDSEARCH ) +{ + hbqt_par_QAbstractItemView( 1 )->keyboardSearch( hbqt_par_QString( 2 ) ); +} + +/* + * QAbstractItemModel * model () const + */ HB_FUNC( QT_QABSTRACTITEMVIEW_MODEL ) { - hbqt_ret_QAbstractItemModel( hbqt_par_QAbstractItemView( 1 )->model() ); + hb_retptr( ( QAbstractItemModel* ) hbqt_par_QAbstractItemView( 1 )->model( ) ); } /* -QAbstractItemView::SelectionBehavior selectionBehavior () const -*/ + * QAbstractItemView::SelectionBehavior selectionBehavior () const + */ HB_FUNC( QT_QABSTRACTITEMVIEW_SELECTIONBEHAVIOR ) { - hb_retni( hbqt_par_QAbstractItemView( 1 )->selectionBehavior() ); + hb_retni( hbqt_par_QAbstractItemView( 1 )->selectionBehavior( ) ); } /* -QAbstractItemView::SelectionMode selectionMode () const -*/ + * QAbstractItemView::SelectionMode selectionMode () const + */ HB_FUNC( QT_QABSTRACTITEMVIEW_SELECTIONMODE ) { - hb_retni( hbqt_par_QAbstractItemView( 1 )->selectionMode() ); + hb_retni( hbqt_par_QAbstractItemView( 1 )->selectionMode( ) ); } /* -QItemSelectionModel * selectionModel () const -*/ + * QItemSelectionModel * selectionModel () const + */ HB_FUNC( QT_QABSTRACTITEMVIEW_SELECTIONMODEL ) { - hb_retptr( ( QItemSelectionModel* ) hbqt_par_QAbstractItemView( 1 )->selectionModel() ); + hb_retptr( ( QItemSelectionModel* ) hbqt_par_QAbstractItemView( 1 )->selectionModel( ) ); } /* -void setAlternatingRowColors ( bool enable ) -*/ + * void setAlternatingRowColors ( bool enable ) + */ HB_FUNC( QT_QABSTRACTITEMVIEW_SETALTERNATINGROWCOLORS ) { hbqt_par_QAbstractItemView( 1 )->setAlternatingRowColors( hb_parl( 2 ) ); } /* -void setAutoScroll ( bool enable ) -*/ + * void setAutoScroll ( bool enable ) + */ HB_FUNC( QT_QABSTRACTITEMVIEW_SETAUTOSCROLL ) { hbqt_par_QAbstractItemView( 1 )->setAutoScroll( hb_parl( 2 ) ); } /* -void setAutoScrollMargin ( int margin ) -*/ + * void setAutoScrollMargin ( int margin ) + */ HB_FUNC( QT_QABSTRACTITEMVIEW_SETAUTOSCROLLMARGIN ) { hbqt_par_QAbstractItemView( 1 )->setAutoScrollMargin( hb_parni( 2 ) ); } /* -void setDragDropMode ( DragDropMode behavior ) -*/ + * void setDragDropMode ( DragDropMode behavior ) + */ HB_FUNC( QT_QABSTRACTITEMVIEW_SETDRAGDROPMODE ) { hbqt_par_QAbstractItemView( 1 )->setDragDropMode( ( QAbstractItemView::DragDropMode ) hb_parni( 2 ) ); } /* -void setDragDropOverwriteMode ( bool overwrite ) -*/ + * void setDragDropOverwriteMode ( bool overwrite ) + */ HB_FUNC( QT_QABSTRACTITEMVIEW_SETDRAGDROPOVERWRITEMODE ) { hbqt_par_QAbstractItemView( 1 )->setDragDropOverwriteMode( hb_parl( 2 ) ); } /* -void setDragEnabled ( bool enable ) -*/ + * void setDragEnabled ( bool enable ) + */ HB_FUNC( QT_QABSTRACTITEMVIEW_SETDRAGENABLED ) { hbqt_par_QAbstractItemView( 1 )->setDragEnabled( hb_parl( 2 ) ); } /* -void setDropIndicatorShown ( bool enable ) -*/ + * void setDropIndicatorShown ( bool enable ) + */ HB_FUNC( QT_QABSTRACTITEMVIEW_SETDROPINDICATORSHOWN ) { hbqt_par_QAbstractItemView( 1 )->setDropIndicatorShown( hb_parl( 2 ) ); } /* -void setEditTriggers ( EditTriggers triggers ) -*/ + * void setEditTriggers ( EditTriggers triggers ) + */ HB_FUNC( QT_QABSTRACTITEMVIEW_SETEDITTRIGGERS ) { - hbqt_par_QAbstractItemView( 1 )->setEditTriggers( ( QAbstractItemView::EditTrigger ) hb_parni( 2 ) ); + hbqt_par_QAbstractItemView( 1 )->setEditTriggers( ( QAbstractItemView::EditTriggers ) hb_parni( 2 ) ); } /* -void setHorizontalScrollMode ( ScrollMode mode ) -*/ + * void setHorizontalScrollMode ( ScrollMode mode ) + */ HB_FUNC( QT_QABSTRACTITEMVIEW_SETHORIZONTALSCROLLMODE ) { hbqt_par_QAbstractItemView( 1 )->setHorizontalScrollMode( ( QAbstractItemView::ScrollMode ) hb_parni( 2 ) ); } /* -void setItemDelegate ( QAbstractItemDelegate * delegate ) -*/ + * void setIconSize ( const QSize & size ) + */ +HB_FUNC( QT_QABSTRACTITEMVIEW_SETICONSIZE ) +{ + hbqt_par_QAbstractItemView( 1 )->setIconSize( hbqt_const_QSize( 2 ) ); +} + +/* + * void setItemDelegate ( QAbstractItemDelegate * delegate ) + */ HB_FUNC( QT_QABSTRACTITEMVIEW_SETITEMDELEGATE ) { hbqt_par_QAbstractItemView( 1 )->setItemDelegate( hbqt_par_QAbstractItemDelegate( 2 ) ); } /* -void setItemDelegateForColumn ( int column, QAbstractItemDelegate * delegate ) -*/ + * void setItemDelegateForColumn ( int column, QAbstractItemDelegate * delegate ) + */ HB_FUNC( QT_QABSTRACTITEMVIEW_SETITEMDELEGATEFORCOLUMN ) { hbqt_par_QAbstractItemView( 1 )->setItemDelegateForColumn( hb_parni( 2 ), hbqt_par_QAbstractItemDelegate( 3 ) ); } /* -void setItemDelegateForRow ( int row, QAbstractItemDelegate * delegate ) -*/ + * void setItemDelegateForRow ( int row, QAbstractItemDelegate * delegate ) + */ HB_FUNC( QT_QABSTRACTITEMVIEW_SETITEMDELEGATEFORROW ) { - hbqt_par_QAbstractItemView( 1 )->setItemDelegateForRow( hb_parni(2), hbqt_par_QAbstractItemDelegate( 3 ) ); + hbqt_par_QAbstractItemView( 1 )->setItemDelegateForRow( hb_parni( 2 ), hbqt_par_QAbstractItemDelegate( 3 ) ); } /* -void setSelectionBehavior ( QAbstractItemView::SelectionBehavior behavior ) -*/ + * virtual void setModel ( QAbstractItemModel * model ) + */ +HB_FUNC( QT_QABSTRACTITEMVIEW_SETMODEL ) +{ + hbqt_par_QAbstractItemView( 1 )->setModel( hbqt_par_QAbstractItemModel( 2 ) ); +} + +/* + * void setSelectionBehavior ( QAbstractItemView::SelectionBehavior behavior ) + */ HB_FUNC( QT_QABSTRACTITEMVIEW_SETSELECTIONBEHAVIOR ) { hbqt_par_QAbstractItemView( 1 )->setSelectionBehavior( ( QAbstractItemView::SelectionBehavior ) hb_parni( 2 ) ); } /* -void setSelectionMode ( QAbstractItemView::SelectionMode mode ) -*/ + * void setSelectionMode ( QAbstractItemView::SelectionMode mode ) + */ HB_FUNC( QT_QABSTRACTITEMVIEW_SETSELECTIONMODE ) { hbqt_par_QAbstractItemView( 1 )->setSelectionMode( ( QAbstractItemView::SelectionMode ) hb_parni( 2 ) ); } /* -void setTabKeyNavigation ( bool enable ) -*/ + * virtual void setSelectionModel ( QItemSelectionModel * selectionModel ) + */ +HB_FUNC( QT_QABSTRACTITEMVIEW_SETSELECTIONMODEL ) +{ + hbqt_par_QAbstractItemView( 1 )->setSelectionModel( hbqt_par_QItemSelectionModel( 2 ) ); +} + +/* + * void setTabKeyNavigation ( bool enable ) + */ HB_FUNC( QT_QABSTRACTITEMVIEW_SETTABKEYNAVIGATION ) { hbqt_par_QAbstractItemView( 1 )->setTabKeyNavigation( hb_parl( 2 ) ); } /* -void setTextElideMode ( Qt::TextElideMode mode ) -*/ + * void setTextElideMode ( Qt::TextElideMode mode ) + */ HB_FUNC( QT_QABSTRACTITEMVIEW_SETTEXTELIDEMODE ) { hbqt_par_QAbstractItemView( 1 )->setTextElideMode( ( Qt::TextElideMode ) hb_parni( 2 ) ); } /* -void setVerticalScrollMode ( ScrollMode mode ) -*/ + * void setVerticalScrollMode ( ScrollMode mode ) + */ HB_FUNC( QT_QABSTRACTITEMVIEW_SETVERTICALSCROLLMODE ) { hbqt_par_QAbstractItemView( 1 )->setVerticalScrollMode( ( QAbstractItemView::ScrollMode ) hb_parni( 2 ) ); } /* -bool showDropIndicator () const -*/ + * bool showDropIndicator () const + */ HB_FUNC( QT_QABSTRACTITEMVIEW_SHOWDROPINDICATOR ) { - hb_retl( hbqt_par_QAbstractItemView( 1 )->showDropIndicator() ); + hb_retl( hbqt_par_QAbstractItemView( 1 )->showDropIndicator( ) ); } /* -bool tabKeyNavigation () const -*/ + * virtual int sizeHintForColumn ( int column ) const + */ +HB_FUNC( QT_QABSTRACTITEMVIEW_SIZEHINTFORCOLUMN ) +{ + hb_retni( hbqt_par_QAbstractItemView( 1 )->sizeHintForColumn( hb_parni( 2 ) ) ); +} + +/* + * virtual int sizeHintForRow ( int row ) const + */ +HB_FUNC( QT_QABSTRACTITEMVIEW_SIZEHINTFORROW ) +{ + hb_retni( hbqt_par_QAbstractItemView( 1 )->sizeHintForRow( hb_parni( 2 ) ) ); +} + +/* + * bool tabKeyNavigation () const + */ HB_FUNC( QT_QABSTRACTITEMVIEW_TABKEYNAVIGATION ) { - hb_retl( hbqt_par_QAbstractItemView( 1 )->tabKeyNavigation() ); + hb_retl( hbqt_par_QAbstractItemView( 1 )->tabKeyNavigation( ) ); } /* -Qt::TextElideMode textElideMode () const -*/ + * Qt::TextElideMode textElideMode () const + */ HB_FUNC( QT_QABSTRACTITEMVIEW_TEXTELIDEMODE ) { - hb_retni( hbqt_par_QAbstractItemView( 1 )->textElideMode() ); + hb_retni( hbqt_par_QAbstractItemView( 1 )->textElideMode( ) ); } /* -ScrollMode verticalScrollMode () const -*/ + * ScrollMode verticalScrollMode () const + */ HB_FUNC( QT_QABSTRACTITEMVIEW_VERTICALSCROLLMODE ) { - hb_retni( hbqt_par_QAbstractItemView( 1 )->verticalScrollMode() ); + hb_retni( hbqt_par_QAbstractItemView( 1 )->verticalScrollMode( ) ); } -/* -void clearSelection () -*/ -HB_FUNC( QT_QABSTRACTITEMVIEW_CLEARSELECTION ) -{ - hbqt_par_QAbstractItemView( 1 )->clearSelection(); -} - -/* -void scrollToBottom () -*/ -HB_FUNC( QT_QABSTRACTITEMVIEW_SCROLLTOBOTTOM ) -{ - hbqt_par_QAbstractItemView( 1 )->scrollToBottom(); -} - -/* -void scrollToTop () -*/ -HB_FUNC( QT_QABSTRACTITEMVIEW_SCROLLTOTOP ) -{ - hbqt_par_QAbstractItemView( 1 )->scrollToTop(); -} /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qabstractprintdialog.cpp b/harbour/contrib/hbqt/hbqt_qabstractprintdialog.cpp index 789ce00b15..0b773f45f3 100644 --- a/harbour/contrib/hbqt/hbqt_qabstractprintdialog.cpp +++ b/harbour/contrib/hbqt/hbqt_qabstractprintdialog.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,82 +55,114 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 10/11 [ 90.91% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * void setOptionTabs ( const QList & tabs ) + */ + #include -/*----------------------------------------------------------------------*/ + /* -int fromPage () const -*/ + * QAbstractPrintDialog ( QPrinter * printer, QWidget * parent = 0 ) + */ +HB_FUNC( QT_QABSTRACTPRINTDIALOG ) +{ + +} + +/* + * virtual int exec () = 0 + */ +HB_FUNC( QT_QABSTRACTPRINTDIALOG_EXEC ) +{ + hb_retni( hbqt_par_QAbstractPrintDialog( 1 )->exec( ) ); +} + +/* + * int fromPage () const + */ HB_FUNC( QT_QABSTRACTPRINTDIALOG_FROMPAGE ) { - hb_retni( hbqt_par_QAbstractPrintDialog( 1 )->fromPage() ); + hb_retni( hbqt_par_QAbstractPrintDialog( 1 )->fromPage( ) ); } /* -int maxPage () const -*/ + * int maxPage () const + */ HB_FUNC( QT_QABSTRACTPRINTDIALOG_MAXPAGE ) { - hb_retni( hbqt_par_QAbstractPrintDialog( 1 )->maxPage() ); + hb_retni( hbqt_par_QAbstractPrintDialog( 1 )->maxPage( ) ); } /* -int minPage () const -*/ + * int minPage () const + */ HB_FUNC( QT_QABSTRACTPRINTDIALOG_MINPAGE ) { - hb_retni( hbqt_par_QAbstractPrintDialog( 1 )->minPage() ); + hb_retni( hbqt_par_QAbstractPrintDialog( 1 )->minPage( ) ); } /* -PrintRange printRange () const -*/ + * PrintRange printRange () const + */ HB_FUNC( QT_QABSTRACTPRINTDIALOG_PRINTRANGE ) { - hb_retni( hbqt_par_QAbstractPrintDialog( 1 )->printRange() ); + hb_retni( hbqt_par_QAbstractPrintDialog( 1 )->printRange( ) ); } /* -QPrinter * printer () const -*/ + * QPrinter * printer () const + */ HB_FUNC( QT_QABSTRACTPRINTDIALOG_PRINTER ) { - hbqt_ret_QPrinter( hbqt_par_QAbstractPrintDialog( 1 )->printer() ); + hb_retptr( ( QPrinter* ) hbqt_par_QAbstractPrintDialog( 1 )->printer( ) ); } /* -void setFromTo ( int from, int to ) -*/ + * void setFromTo ( int from, int to ) + */ HB_FUNC( QT_QABSTRACTPRINTDIALOG_SETFROMTO ) { hbqt_par_QAbstractPrintDialog( 1 )->setFromTo( hb_parni( 2 ), hb_parni( 3 ) ); } /* -void setMinMax ( int min, int max ) -*/ + * void setMinMax ( int min, int max ) + */ HB_FUNC( QT_QABSTRACTPRINTDIALOG_SETMINMAX ) { hbqt_par_QAbstractPrintDialog( 1 )->setMinMax( hb_parni( 2 ), hb_parni( 3 ) ); } /* -void setPrintRange ( PrintRange range ) -*/ + * void setPrintRange ( PrintRange range ) + */ HB_FUNC( QT_QABSTRACTPRINTDIALOG_SETPRINTRANGE ) { hbqt_par_QAbstractPrintDialog( 1 )->setPrintRange( ( QAbstractPrintDialog::PrintRange ) hb_parni( 2 ) ); } /* -int toPage () const -*/ + * int toPage () const + */ HB_FUNC( QT_QABSTRACTPRINTDIALOG_TOPAGE ) { - hb_retni( hbqt_par_QAbstractPrintDialog( 1 )->toPage() ); + hb_retni( hbqt_par_QAbstractPrintDialog( 1 )->toPage( ) ); } + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qabstractscrollarea.cpp b/harbour/contrib/hbqt/hbqt_qabstractscrollarea.cpp index 00b62bf885..09ee9dc72c 100644 --- a/harbour/contrib/hbqt/hbqt_qabstractscrollarea.cpp +++ b/harbour/contrib/hbqt/hbqt_qabstractscrollarea.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,117 +55,147 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 14/15 [ 93.33% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * QWidgetList scrollBarWidgets ( Qt::Alignment alignment ) + */ + #include -/*----------------------------------------------------------------------*/ /* -void addScrollBarWidget ( QWidget * widget, Qt::Alignment alignment ) -*/ + * QAbstractScrollArea ( QWidget * parent = 0 ) + * ~QAbstractScrollArea () + */ +HB_FUNC( QT_QABSTRACTSCROLLAREA ) +{ + +} + +/* + * void addScrollBarWidget ( QWidget * widget, Qt::Alignment alignment ) + */ HB_FUNC( QT_QABSTRACTSCROLLAREA_ADDSCROLLBARWIDGET ) { - QWidget * par2 = ( QWidget * ) hb_parptr( 2 ); - int par3 = hb_parni( 3 ); - hbqt_par_QAbstractScrollArea( 1 )->addScrollBarWidget ( par2, ( Qt::Alignment ) par3 ); + hbqt_par_QAbstractScrollArea( 1 )->addScrollBarWidget( hbqt_par_QWidget( 2 ), ( Qt::Alignment ) hb_parni( 3 ) ); } /* -QWidget * cornerWidget () const -*/ + * QWidget * cornerWidget () const + */ HB_FUNC( QT_QABSTRACTSCROLLAREA_CORNERWIDGET ) { - hb_retptr( ( QWidget* ) hbqt_par_QAbstractScrollArea( 1 )->cornerWidget() ); + hb_retptr( ( QWidget* ) hbqt_par_QAbstractScrollArea( 1 )->cornerWidget( ) ); } /* -QScrollBar * horizontalScrollBar () const -*/ + * QScrollBar * horizontalScrollBar () const + */ HB_FUNC( QT_QABSTRACTSCROLLAREA_HORIZONTALSCROLLBAR ) { - hb_retptr( ( QScrollBar* ) hbqt_par_QAbstractScrollArea( 1 )->horizontalScrollBar() ); + hb_retptr( ( QScrollBar* ) hbqt_par_QAbstractScrollArea( 1 )->horizontalScrollBar( ) ); } /* -Qt::ScrollBarPolicy horizontalScrollBarPolicy () const -*/ + * Qt::ScrollBarPolicy horizontalScrollBarPolicy () const + */ HB_FUNC( QT_QABSTRACTSCROLLAREA_HORIZONTALSCROLLBARPOLICY ) { - hb_retni( hbqt_par_QAbstractScrollArea( 1 )->horizontalScrollBarPolicy() ); + hb_retni( hbqt_par_QAbstractScrollArea( 1 )->horizontalScrollBarPolicy( ) ); } /* -void setCornerWidget ( QWidget * widget ) -*/ + * QSize maximumViewportSize () const + */ +HB_FUNC( QT_QABSTRACTSCROLLAREA_MAXIMUMVIEWPORTSIZE ) +{ + hbqt_ret_QSize( hbqt_par_QAbstractScrollArea( 1 )->maximumViewportSize( ) ); +} + +/* + * void setCornerWidget ( QWidget * widget ) + */ HB_FUNC( QT_QABSTRACTSCROLLAREA_SETCORNERWIDGET ) { hbqt_par_QAbstractScrollArea( 1 )->setCornerWidget( hbqt_par_QWidget( 2 ) ); } /* -void setHorizontalScrollBar ( QScrollBar * scrollBar ) -*/ + * void setHorizontalScrollBar ( QScrollBar * scrollBar ) + */ HB_FUNC( QT_QABSTRACTSCROLLAREA_SETHORIZONTALSCROLLBAR ) { hbqt_par_QAbstractScrollArea( 1 )->setHorizontalScrollBar( hbqt_par_QScrollBar( 2 ) ); } /* -void setHorizontalScrollBarPolicy ( Qt::ScrollBarPolicy ) -*/ + * void setHorizontalScrollBarPolicy ( Qt::ScrollBarPolicy ) + */ HB_FUNC( QT_QABSTRACTSCROLLAREA_SETHORIZONTALSCROLLBARPOLICY ) { hbqt_par_QAbstractScrollArea( 1 )->setHorizontalScrollBarPolicy( ( Qt::ScrollBarPolicy ) hb_parni( 2 ) ); } /* -void setVerticalScrollBar ( QScrollBar * scrollBar ) -*/ + * void setVerticalScrollBar ( QScrollBar * scrollBar ) + */ HB_FUNC( QT_QABSTRACTSCROLLAREA_SETVERTICALSCROLLBAR ) { hbqt_par_QAbstractScrollArea( 1 )->setVerticalScrollBar( hbqt_par_QScrollBar( 2 ) ); } /* -void setVerticalScrollBarPolicy ( Qt::ScrollBarPolicy ) -*/ + * void setVerticalScrollBarPolicy ( Qt::ScrollBarPolicy ) + */ HB_FUNC( QT_QABSTRACTSCROLLAREA_SETVERTICALSCROLLBARPOLICY ) { hbqt_par_QAbstractScrollArea( 1 )->setVerticalScrollBarPolicy( ( Qt::ScrollBarPolicy ) hb_parni( 2 ) ); } /* -void setViewport ( QWidget * widget ) -*/ + * void setViewport ( QWidget * widget ) + */ HB_FUNC( QT_QABSTRACTSCROLLAREA_SETVIEWPORT ) { hbqt_par_QAbstractScrollArea( 1 )->setViewport( hbqt_par_QWidget( 2 ) ); } /* -QScrollBar * verticalScrollBar () const -*/ + * QScrollBar * verticalScrollBar () const + */ HB_FUNC( QT_QABSTRACTSCROLLAREA_VERTICALSCROLLBAR ) { - hb_retptr( ( QScrollBar* ) hbqt_par_QAbstractScrollArea( 1 )->verticalScrollBar() ); + hb_retptr( ( QScrollBar* ) hbqt_par_QAbstractScrollArea( 1 )->verticalScrollBar( ) ); } /* -Qt::ScrollBarPolicy verticalScrollBarPolicy () const -*/ + * Qt::ScrollBarPolicy verticalScrollBarPolicy () const + */ HB_FUNC( QT_QABSTRACTSCROLLAREA_VERTICALSCROLLBARPOLICY ) { - hb_retni( hbqt_par_QAbstractScrollArea( 1 )->verticalScrollBarPolicy() ); + hb_retni( hbqt_par_QAbstractScrollArea( 1 )->verticalScrollBarPolicy( ) ); } /* -QWidget * viewport () const -*/ + * QWidget * viewport () const + */ HB_FUNC( QT_QABSTRACTSCROLLAREA_VIEWPORT ) { - hb_retptr( ( QWidget* ) hbqt_par_QAbstractScrollArea( 1 )->viewport() ); + hb_retptr( ( QWidget* ) hbqt_par_QAbstractScrollArea( 1 )->viewport( ) ); } + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qabstractslider.cpp b/harbour/contrib/hbqt/hbqt_qabstractslider.cpp index b6034723a8..3dfe0ed0eb 100644 --- a/harbour/contrib/hbqt/hbqt_qabstractslider.cpp +++ b/harbour/contrib/hbqt/hbqt_qabstractslider.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,203 +55,202 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ /* -bool hasTracking () const -*/ + * QAbstractSlider ( QWidget * parent = 0 ) + * ~QAbstractSlider () + */ +HB_FUNC( QT_QABSTRACTSLIDER ) +{ + +} + +/* + * bool hasTracking () const + */ HB_FUNC( QT_QABSTRACTSLIDER_HASTRACKING ) { - hb_retl( hbqt_par_QAbstractSlider( 1 )->hasTracking() ); + hb_retl( hbqt_par_QAbstractSlider( 1 )->hasTracking( ) ); } /* -bool invertedAppearance () const -*/ + * bool invertedAppearance () const + */ HB_FUNC( QT_QABSTRACTSLIDER_INVERTEDAPPEARANCE ) { - hb_retl( hbqt_par_QAbstractSlider( 1 )->invertedAppearance() ); + hb_retl( hbqt_par_QAbstractSlider( 1 )->invertedAppearance( ) ); } /* -bool invertedControls () const -*/ + * bool invertedControls () const + */ HB_FUNC( QT_QABSTRACTSLIDER_INVERTEDCONTROLS ) { - hb_retl( hbqt_par_QAbstractSlider( 1 )->invertedControls() ); + hb_retl( hbqt_par_QAbstractSlider( 1 )->invertedControls( ) ); } /* -bool isSliderDown () const -*/ + * bool isSliderDown () const + */ HB_FUNC( QT_QABSTRACTSLIDER_ISSLIDERDOWN ) { - hb_retl( hbqt_par_QAbstractSlider( 1 )->isSliderDown() ); + hb_retl( hbqt_par_QAbstractSlider( 1 )->isSliderDown( ) ); } /* -int maximum () const -*/ + * int maximum () const + */ HB_FUNC( QT_QABSTRACTSLIDER_MAXIMUM ) { - hb_retni( hbqt_par_QAbstractSlider( 1 )->maximum() ); + hb_retni( hbqt_par_QAbstractSlider( 1 )->maximum( ) ); } /* -int minimum () const -*/ + * int minimum () const + */ HB_FUNC( QT_QABSTRACTSLIDER_MINIMUM ) { - hb_retni( hbqt_par_QAbstractSlider( 1 )->minimum() ); + hb_retni( hbqt_par_QAbstractSlider( 1 )->minimum( ) ); } /* -Qt::Orientation orientation () const -*/ + * Qt::Orientation orientation () const + */ HB_FUNC( QT_QABSTRACTSLIDER_ORIENTATION ) { - hb_retni( hbqt_par_QAbstractSlider( 1 )->orientation() ); + hb_retni( hbqt_par_QAbstractSlider( 1 )->orientation( ) ); } /* -int pageStep () const -*/ + * int pageStep () const + */ HB_FUNC( QT_QABSTRACTSLIDER_PAGESTEP ) { - hb_retni( hbqt_par_QAbstractSlider( 1 )->pageStep() ); + hb_retni( hbqt_par_QAbstractSlider( 1 )->pageStep( ) ); } /* -void setInvertedAppearance ( bool ) -*/ + * void setInvertedAppearance ( bool ) + */ HB_FUNC( QT_QABSTRACTSLIDER_SETINVERTEDAPPEARANCE ) { hbqt_par_QAbstractSlider( 1 )->setInvertedAppearance( hb_parl( 2 ) ); } /* -void setInvertedControls ( bool ) -*/ + * void setInvertedControls ( bool ) + */ HB_FUNC( QT_QABSTRACTSLIDER_SETINVERTEDCONTROLS ) { hbqt_par_QAbstractSlider( 1 )->setInvertedControls( hb_parl( 2 ) ); } /* -void setMaximum ( int ) -*/ + * void setMaximum ( int ) + */ HB_FUNC( QT_QABSTRACTSLIDER_SETMAXIMUM ) { hbqt_par_QAbstractSlider( 1 )->setMaximum( hb_parni( 2 ) ); } /* -void setMinimum ( int ) -*/ + * void setMinimum ( int ) + */ HB_FUNC( QT_QABSTRACTSLIDER_SETMINIMUM ) { hbqt_par_QAbstractSlider( 1 )->setMinimum( hb_parni( 2 ) ); } /* -void setPageStep ( int ) -*/ + * void setPageStep ( int ) + */ HB_FUNC( QT_QABSTRACTSLIDER_SETPAGESTEP ) { hbqt_par_QAbstractSlider( 1 )->setPageStep( hb_parni( 2 ) ); } /* -void setRange ( int min, int max ) -*/ + * void setRange ( int min, int max ) + */ HB_FUNC( QT_QABSTRACTSLIDER_SETRANGE ) { hbqt_par_QAbstractSlider( 1 )->setRange( hb_parni( 2 ), hb_parni( 3 ) ); } /* -void setSingleStep ( int ) -*/ + * void setSingleStep ( int ) + */ HB_FUNC( QT_QABSTRACTSLIDER_SETSINGLESTEP ) { hbqt_par_QAbstractSlider( 1 )->setSingleStep( hb_parni( 2 ) ); } /* -void setSliderDown ( bool ) -*/ + * void setSliderDown ( bool ) + */ HB_FUNC( QT_QABSTRACTSLIDER_SETSLIDERDOWN ) { hbqt_par_QAbstractSlider( 1 )->setSliderDown( hb_parl( 2 ) ); } /* -void setSliderPosition ( int ) -*/ + * void setSliderPosition ( int ) + */ HB_FUNC( QT_QABSTRACTSLIDER_SETSLIDERPOSITION ) { hbqt_par_QAbstractSlider( 1 )->setSliderPosition( hb_parni( 2 ) ); } /* -void setTracking ( bool enable ) -*/ + * void setTracking ( bool enable ) + */ HB_FUNC( QT_QABSTRACTSLIDER_SETTRACKING ) { hbqt_par_QAbstractSlider( 1 )->setTracking( hb_parl( 2 ) ); } /* -int singleStep () const -*/ + * int singleStep () const + */ HB_FUNC( QT_QABSTRACTSLIDER_SINGLESTEP ) { - hb_retni( hbqt_par_QAbstractSlider( 1 )->singleStep() ); + hb_retni( hbqt_par_QAbstractSlider( 1 )->singleStep( ) ); } /* -int sliderPosition () const -*/ + * int sliderPosition () const + */ HB_FUNC( QT_QABSTRACTSLIDER_SLIDERPOSITION ) { - hb_retni( hbqt_par_QAbstractSlider( 1 )->sliderPosition() ); + hb_retni( hbqt_par_QAbstractSlider( 1 )->sliderPosition( ) ); } /* -void triggerAction ( SliderAction action ) -*/ + * void triggerAction ( SliderAction action ) + */ HB_FUNC( QT_QABSTRACTSLIDER_TRIGGERACTION ) { hbqt_par_QAbstractSlider( 1 )->triggerAction( ( QAbstractSlider::SliderAction ) hb_parni( 2 ) ); } /* -int value () const -*/ + * int value () const + */ HB_FUNC( QT_QABSTRACTSLIDER_VALUE ) { - hb_retni( hbqt_par_QAbstractSlider( 1 )->value() ); + hb_retni( hbqt_par_QAbstractSlider( 1 )->value( ) ); } -/* -void setOrientation ( Qt::Orientation ) -*/ -HB_FUNC( QT_QABSTRACTSLIDER_SETORIENTATION ) -{ - hbqt_par_QAbstractSlider( 1 )->setOrientation( ( Qt::Orientation ) hb_parni( 2 ) ); -} - -/* -void setValue ( int ) -*/ -HB_FUNC( QT_QABSTRACTSLIDER_SETVALUE ) -{ - hbqt_par_QAbstractSlider( 1 )->setValue( hb_parni( 2 ) ); -} /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qabstractspinbox.cpp b/harbour/contrib/hbqt/hbqt_qabstractspinbox.cpp index 56530a3261..c711b9f8aa 100644 --- a/harbour/contrib/hbqt/hbqt_qabstractspinbox.cpp +++ b/harbour/contrib/hbqt/hbqt_qabstractspinbox.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,240 +55,202 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -Qt::Alignment alignment () const -*/ + * QAbstractSpinBox ( QWidget * parent = 0 ) + * ~QAbstractSpinBox () + */ +HB_FUNC( QT_QABSTRACTSPINBOX ) +{ + +} + +/* + * Qt::Alignment alignment () const + */ HB_FUNC( QT_QABSTRACTSPINBOX_ALIGNMENT ) { - hb_retni( hbqt_par_QAbstractSpinBox( 1 )->alignment() ); + hb_retni( hbqt_par_QAbstractSpinBox( 1 )->alignment( ) ); } /* -ButtonSymbols buttonSymbols () const -*/ + * ButtonSymbols buttonSymbols () const + */ HB_FUNC( QT_QABSTRACTSPINBOX_BUTTONSYMBOLS ) { - hb_retni( hbqt_par_QAbstractSpinBox( 1 )->buttonSymbols() ); + hb_retni( hbqt_par_QAbstractSpinBox( 1 )->buttonSymbols( ) ); } /* -CorrectionMode correctionMode () const -*/ + * CorrectionMode correctionMode () const + */ HB_FUNC( QT_QABSTRACTSPINBOX_CORRECTIONMODE ) { - hb_retni( hbqt_par_QAbstractSpinBox( 1 )->correctionMode() ); + hb_retni( hbqt_par_QAbstractSpinBox( 1 )->correctionMode( ) ); } /* -virtual void fixup ( QString & input ) const -*/ -HB_FUNC( QT_QABSTRACTSPINBOX_FIXUP ) -{ - QString par2 = hb_parc( 2 ); - hbqt_par_QAbstractSpinBox( 1 )->fixup( par2 ); -} - -/* -bool hasAcceptableInput () const -*/ + * bool hasAcceptableInput () const + */ HB_FUNC( QT_QABSTRACTSPINBOX_HASACCEPTABLEINPUT ) { - hb_retl( hbqt_par_QAbstractSpinBox( 1 )->hasAcceptableInput() ); + hb_retl( hbqt_par_QAbstractSpinBox( 1 )->hasAcceptableInput( ) ); } /* -bool hasFrame () const -*/ + * bool hasFrame () const + */ HB_FUNC( QT_QABSTRACTSPINBOX_HASFRAME ) { - hb_retl( hbqt_par_QAbstractSpinBox( 1 )->hasFrame() ); + hb_retl( hbqt_par_QAbstractSpinBox( 1 )->hasFrame( ) ); } /* -void interpretText () -*/ + * void interpretText () + */ HB_FUNC( QT_QABSTRACTSPINBOX_INTERPRETTEXT ) { - hbqt_par_QAbstractSpinBox( 1 )->interpretText(); + hbqt_par_QAbstractSpinBox( 1 )->interpretText( ); } /* -bool isAccelerated () const -*/ + * bool isAccelerated () const + */ HB_FUNC( QT_QABSTRACTSPINBOX_ISACCELERATED ) { - hb_retl( hbqt_par_QAbstractSpinBox( 1 )->isAccelerated() ); + hb_retl( hbqt_par_QAbstractSpinBox( 1 )->isAccelerated( ) ); } /* -bool isReadOnly () const -*/ + * bool isReadOnly () const + */ HB_FUNC( QT_QABSTRACTSPINBOX_ISREADONLY ) { - hb_retl( hbqt_par_QAbstractSpinBox( 1 )->isReadOnly() ); + hb_retl( hbqt_par_QAbstractSpinBox( 1 )->isReadOnly( ) ); } /* -bool keyboardTracking () const -*/ + * bool keyboardTracking () const + */ HB_FUNC( QT_QABSTRACTSPINBOX_KEYBOARDTRACKING ) { - hb_retl( hbqt_par_QAbstractSpinBox( 1 )->keyboardTracking() ); + hb_retl( hbqt_par_QAbstractSpinBox( 1 )->keyboardTracking( ) ); } /* -void setAccelerated ( bool on ) -*/ + * void setAccelerated ( bool on ) + */ HB_FUNC( QT_QABSTRACTSPINBOX_SETACCELERATED ) { hbqt_par_QAbstractSpinBox( 1 )->setAccelerated( hb_parl( 2 ) ); } /* -void setAlignment ( Qt::Alignment flag ) -*/ + * void setAlignment ( Qt::Alignment flag ) + */ HB_FUNC( QT_QABSTRACTSPINBOX_SETALIGNMENT ) { hbqt_par_QAbstractSpinBox( 1 )->setAlignment( ( Qt::Alignment ) hb_parni( 2 ) ); } /* -void setButtonSymbols ( ButtonSymbols bs ) -*/ + * void setButtonSymbols ( ButtonSymbols bs ) + */ HB_FUNC( QT_QABSTRACTSPINBOX_SETBUTTONSYMBOLS ) { hbqt_par_QAbstractSpinBox( 1 )->setButtonSymbols( ( QAbstractSpinBox::ButtonSymbols ) hb_parni( 2 ) ); } /* -void setCorrectionMode ( CorrectionMode cm ) -*/ + * void setCorrectionMode ( CorrectionMode cm ) + */ HB_FUNC( QT_QABSTRACTSPINBOX_SETCORRECTIONMODE ) { hbqt_par_QAbstractSpinBox( 1 )->setCorrectionMode( ( QAbstractSpinBox::CorrectionMode ) hb_parni( 2 ) ); } /* -void setFrame ( bool ) -*/ + * void setFrame ( bool ) + */ HB_FUNC( QT_QABSTRACTSPINBOX_SETFRAME ) { hbqt_par_QAbstractSpinBox( 1 )->setFrame( hb_parl( 2 ) ); } /* -void setKeyboardTracking ( bool kt ) -*/ + * void setKeyboardTracking ( bool kt ) + */ HB_FUNC( QT_QABSTRACTSPINBOX_SETKEYBOARDTRACKING ) { hbqt_par_QAbstractSpinBox( 1 )->setKeyboardTracking( hb_parl( 2 ) ); } /* -void setReadOnly ( bool r ) -*/ + * void setReadOnly ( bool r ) + */ HB_FUNC( QT_QABSTRACTSPINBOX_SETREADONLY ) { hbqt_par_QAbstractSpinBox( 1 )->setReadOnly( hb_parl( 2 ) ); } /* -void setSpecialValueText ( const QString & txt ) -*/ + * void setSpecialValueText ( const QString & txt ) + */ HB_FUNC( QT_QABSTRACTSPINBOX_SETSPECIALVALUETEXT ) { - QString par2 = hb_parc( 2 ); - hbqt_par_QAbstractSpinBox( 1 )->setSpecialValueText( par2 ); + hbqt_par_QAbstractSpinBox( 1 )->setSpecialValueText( hbqt_par_QString( 2 ) ); } /* -void setWrapping ( bool w ) -*/ + * void setWrapping ( bool w ) + */ HB_FUNC( QT_QABSTRACTSPINBOX_SETWRAPPING ) { hbqt_par_QAbstractSpinBox( 1 )->setWrapping( hb_parl( 2 ) ); } /* -QString specialValueText () const -*/ + * QString specialValueText () const + */ HB_FUNC( QT_QABSTRACTSPINBOX_SPECIALVALUETEXT ) { - hb_retc( hbqt_par_QAbstractSpinBox( 1 )->specialValueText().toLatin1().data() ); + hb_retc( hbqt_par_QAbstractSpinBox( 1 )->specialValueText( ).toLatin1().data() ); } /* -virtual void stepBy ( int steps ) -*/ + * virtual void stepBy ( int steps ) + */ HB_FUNC( QT_QABSTRACTSPINBOX_STEPBY ) { - hbqt_par_QAbstractSpinBox( 1 )->stepBy( hb_parni(2) ); + hbqt_par_QAbstractSpinBox( 1 )->stepBy( hb_parni( 2 ) ); } /* -QString text () const -*/ + * QString text () const + */ HB_FUNC( QT_QABSTRACTSPINBOX_TEXT ) { - hb_retc( hbqt_par_QAbstractSpinBox( 1 )->text().toLatin1().data() ); + hb_retc( hbqt_par_QAbstractSpinBox( 1 )->text( ).toLatin1().data() ); } /* -virtual QValidator::State validate ( QString & input, int & pos ) const -*/ -HB_FUNC( QT_QABSTRACTSPINBOX_VALIDATE ) -{ - QAbstractSpinBox * par1 = ( QAbstractSpinBox * ) hb_parptr( 1 ); - QString par2 = hb_parc( 2 ); - int par3 = hb_parni( 3 ); - int i = par1->validate( par2, par3 ); - hb_retni( i ); -} - -/* -bool wrapping () const -*/ + * bool wrapping () const + */ HB_FUNC( QT_QABSTRACTSPINBOX_WRAPPING ) { - hb_retl( hbqt_par_QAbstractSpinBox( 1 )->wrapping() ); + hb_retl( hbqt_par_QAbstractSpinBox( 1 )->wrapping( ) ); } -/* -virtual void clear () -*/ -HB_FUNC( QT_QABSTRACTSPINBOX_CLEAR ) -{ - hbqt_par_QAbstractSpinBox( 1 )->clear(); -} - -/* -void selectAll () -*/ -HB_FUNC( QT_QABSTRACTSPINBOX_SELECTALL ) -{ - hbqt_par_QAbstractSpinBox( 1 )->selectAll(); -} - -/* -void stepDown () -*/ -HB_FUNC( QT_QABSTRACTSPINBOX_STEPDOWN ) -{ - hbqt_par_QAbstractSpinBox( 1 )->stepDown(); -} - -/* -void stepUp () -*/ -HB_FUNC( QT_QABSTRACTSPINBOX_STEPUP ) -{ - hbqt_par_QAbstractSpinBox( 1 )->stepUp(); -} /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qaction.cpp b/harbour/contrib/hbqt/hbqt_qaction.cpp index 1433abe496..66b22c1a50 100644 --- a/harbour/contrib/hbqt/hbqt_qaction.cpp +++ b/harbour/contrib/hbqt/hbqt_qaction.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,369 +55,324 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 34/45 [ 75.56% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * QList associatedGraphicsWidgets () const + * QList associatedWidgets () const + * QVariant data () const + * QFont font () const + * QIcon icon () const + * void setData ( const QVariant & userData ) + * void setFont ( const QFont & font ) + * void setShortcut ( const QKeySequence & shortcut ) + * void setShortcuts ( const QList & shortcuts ) + * QKeySequence shortcut () const + * QList shortcuts () const + */ + #include -/*----------------------------------------------------------------------*/ + /* -QAction ( QObject * parent ) [1] -QAction ( const QString & text, QObject * parent ) [2] -QAction ( const QIcon & icon, const QString & text, QObject * parent ) [3] -*/ + * QAction ( QObject * parent ) + * QAction ( const QString & text, QObject * parent ) + * QAction ( const QIcon & icon, const QString & text, QObject * parent ) + * ~QAction () + */ HB_FUNC( QT_QACTION ) { - if( hb_param( 1, HB_IT_POINTER ) ) + if( HB_ISPOINTER( 1 ) ) hb_retptr( new QAction( hbqt_par_QObject( 1 ) ) ); - else if( hb_param( 2, HB_IT_POINTER ) ) + else if( HB_ISPOINTER( 2 ) ) hb_retptr( new QAction( hbqt_par_QString( 1 ), hbqt_par_QObject( 2 ) ) ); - else if( hb_param( 3, HB_IT_POINTER ) ) + else if( HB_ISPOINTER( 3 ) ) hb_retptr( new QAction( hbqt_par_QIcon( 1 ), hbqt_par_QString( 2 ), hbqt_par_QObject( 3 ) ) ); } -#if 0 -HB_FUNC( QT_QACTION_1 ) -{ - hb_retptr( new QAction( hbqt_par_QObject( 1 ) ) ); -} -HB_FUNC( QT_QACTION_2 ) -{ - QAction * action = NULL; - QString text = hb_parc( 1 ); - QObject * parent = ( QObject * ) hb_parptr( 2 ); - action = new QAction ( text, parent ); - hb_retptr( ( QAction * ) action ); -} -HB_FUNC( QT_QACTION_3 ) -{ - QAction * action = NULL; - QString icon = hb_parc( 1 ); - QString text = hb_parc( 2 ); - QObject * parent = ( QObject * ) hb_parptr( 3 ); - action = new QAction ( QIcon( icon ), text, parent ); - hb_retptr( ( QAction * ) action ); -} -#endif - /* -QActionGroup * actionGroup () const -*/ + * QActionGroup * actionGroup () const + */ HB_FUNC( QT_QACTION_ACTIONGROUP ) { - hb_retptr( ( QActionGroup* ) hbqt_par_QAction( 1 )->actionGroup() ); + hb_retptr( ( QActionGroup* ) hbqt_par_QAction( 1 )->actionGroup( ) ); } /* -void activate ( ActionEvent event ) -*/ + * void activate ( ActionEvent event ) + */ HB_FUNC( QT_QACTION_ACTIVATE ) { hbqt_par_QAction( 1 )->activate( ( QAction::ActionEvent ) hb_parni( 2 ) ); } /* -bool autoRepeat () const -*/ + * bool autoRepeat () const + */ HB_FUNC( QT_QACTION_AUTOREPEAT ) { - hb_retl( hbqt_par_QAction( 1 )->autoRepeat() ); + hb_retl( hbqt_par_QAction( 1 )->autoRepeat( ) ); } /* -QString iconText () const -*/ + * QString iconText () const + */ HB_FUNC( QT_QACTION_ICONTEXT ) { - hb_retc( hbqt_par_QAction( 1 )->iconText().toLatin1().data() ); + hb_retc( hbqt_par_QAction( 1 )->iconText( ).toLatin1().data() ); } /* -bool isCheckable () const -*/ + * bool isCheckable () const + */ HB_FUNC( QT_QACTION_ISCHECKABLE ) { - hb_retl( hbqt_par_QAction( 1 )->isCheckable() ); + hb_retl( hbqt_par_QAction( 1 )->isCheckable( ) ); } /* -bool isChecked () const -*/ + * bool isChecked () const + */ HB_FUNC( QT_QACTION_ISCHECKED ) { - hb_retl( hbqt_par_QAction( 1 )->isChecked() ); + hb_retl( hbqt_par_QAction( 1 )->isChecked( ) ); } /* -bool isEnabled () const -*/ + * bool isEnabled () const + */ HB_FUNC( QT_QACTION_ISENABLED ) { - hb_retl( hbqt_par_QAction( 1 )->isEnabled() ); + hb_retl( hbqt_par_QAction( 1 )->isEnabled( ) ); } /* -bool isIconVisibleInMenu () const -*/ + * bool isIconVisibleInMenu () const + */ HB_FUNC( QT_QACTION_ISICONVISIBLEINMENU ) { - hb_retl( hbqt_par_QAction( 1 )->isIconVisibleInMenu() ); + hb_retl( hbqt_par_QAction( 1 )->isIconVisibleInMenu( ) ); } /* -bool isSeparator () const -*/ + * bool isSeparator () const + */ HB_FUNC( QT_QACTION_ISSEPARATOR ) { - hb_retl( hbqt_par_QAction( 1 )->isSeparator() ); + hb_retl( hbqt_par_QAction( 1 )->isSeparator( ) ); } /* -bool isVisible () const -*/ + * bool isVisible () const + */ HB_FUNC( QT_QACTION_ISVISIBLE ) { - hb_retl( hbqt_par_QAction( 1 )->isVisible() ); + hb_retl( hbqt_par_QAction( 1 )->isVisible( ) ); } /* -QMenu * menu () const -*/ + * QMenu * menu () const + */ HB_FUNC( QT_QACTION_MENU ) { - hb_retptr( ( QMenu* ) hbqt_par_QAction( 1 )->menu() ); + hb_retptr( ( QMenu* ) hbqt_par_QAction( 1 )->menu( ) ); } /* -MenuRole menuRole () const -*/ + * MenuRole menuRole () const + */ HB_FUNC( QT_QACTION_MENUROLE ) { - hb_retni( hbqt_par_QAction( 1 )->menuRole() ); + hb_retni( hbqt_par_QAction( 1 )->menuRole( ) ); } /* -QWidget * parentWidget () const -*/ + * QWidget * parentWidget () const + */ HB_FUNC( QT_QACTION_PARENTWIDGET ) { - hb_retptr( ( QWidget* ) hbqt_par_QAction( 1 )->parentWidget() ); + hb_retptr( ( QWidget* ) hbqt_par_QAction( 1 )->parentWidget( ) ); } /* -void setActionGroup ( QActionGroup * group ) -*/ + * void setActionGroup ( QActionGroup * group ) + */ HB_FUNC( QT_QACTION_SETACTIONGROUP ) { hbqt_par_QAction( 1 )->setActionGroup( hbqt_par_QActionGroup( 2 ) ); } /* -void setAutoRepeat ( bool ) -*/ + * void setAutoRepeat ( bool ) + */ HB_FUNC( QT_QACTION_SETAUTOREPEAT ) { hbqt_par_QAction( 1 )->setAutoRepeat( hb_parl( 2 ) ); } /* -void setCheckable ( bool ) -*/ + * void setCheckable ( bool ) + */ HB_FUNC( QT_QACTION_SETCHECKABLE ) { hbqt_par_QAction( 1 )->setCheckable( hb_parl( 2 ) ); } /* -void setIconText ( const QString & text ) -*/ + * void setIcon ( const QIcon & icon ) + */ +HB_FUNC( QT_QACTION_SETICON ) +{ + hbqt_par_QAction( 1 )->setIcon( QIcon( hbqt_par_QString( 2 ) ) ); +} + +/* + * void setIconText ( const QString & text ) + */ HB_FUNC( QT_QACTION_SETICONTEXT ) { hbqt_par_QAction( 1 )->setIconText( hbqt_par_QString( 2 ) ); } /* -void setIconVisibleInMenu ( bool visible ) -*/ + * void setIconVisibleInMenu ( bool visible ) + */ HB_FUNC( QT_QACTION_SETICONVISIBLEINMENU ) { hbqt_par_QAction( 1 )->setIconVisibleInMenu( hb_parl( 2 ) ); } /* -void setMenu ( QMenu * menu ) -*/ + * void setMenu ( QMenu * menu ) + */ HB_FUNC( QT_QACTION_SETMENU ) { hbqt_par_QAction( 1 )->setMenu( hbqt_par_QMenu( 2 ) ); } /* -void setMenuRole ( MenuRole menuRole ) -*/ + * void setMenuRole ( MenuRole menuRole ) + */ HB_FUNC( QT_QACTION_SETMENUROLE ) { hbqt_par_QAction( 1 )->setMenuRole( ( QAction::MenuRole ) hb_parni( 2 ) ); } /* -void setSeparator ( bool b ) -*/ + * void setSeparator ( bool b ) + */ HB_FUNC( QT_QACTION_SETSEPARATOR ) { hbqt_par_QAction( 1 )->setSeparator( hb_parl( 2 ) ); } /* -void setShortcutContext ( Qt::ShortcutContext context ) -*/ + * void setShortcutContext ( Qt::ShortcutContext context ) + */ HB_FUNC( QT_QACTION_SETSHORTCUTCONTEXT ) { hbqt_par_QAction( 1 )->setShortcutContext( ( Qt::ShortcutContext ) hb_parni( 2 ) ); } /* -void setShortcuts ( QKeySequence::StandardKey key ) -*/ + * void setShortcuts ( QKeySequence::StandardKey key ) + */ HB_FUNC( QT_QACTION_SETSHORTCUTS ) { hbqt_par_QAction( 1 )->setShortcuts( ( QKeySequence::StandardKey ) hb_parni( 2 ) ); } /* -void setStatusTip ( const QString & statusTip ) -*/ + * void setStatusTip ( const QString & statusTip ) + */ HB_FUNC( QT_QACTION_SETSTATUSTIP ) { hbqt_par_QAction( 1 )->setStatusTip( hbqt_par_QString( 2 ) ); } /* -void setText ( const QString & text ) -*/ + * void setText ( const QString & text ) + */ HB_FUNC( QT_QACTION_SETTEXT ) { hbqt_par_QAction( 1 )->setText( hbqt_par_QString( 2 ) ); } /* -void setToolTip ( const QString & tip ) -*/ + * void setToolTip ( const QString & tip ) + */ HB_FUNC( QT_QACTION_SETTOOLTIP ) { hbqt_par_QAction( 1 )->setToolTip( hbqt_par_QString( 2 ) ); } /* -void setWhatsThis ( const QString & what ) -*/ + * void setWhatsThis ( const QString & what ) + */ HB_FUNC( QT_QACTION_SETWHATSTHIS ) { hbqt_par_QAction( 1 )->setWhatsThis( hbqt_par_QString( 2 ) ); } /* -Qt::ShortcutContext shortcutContext () const -*/ + * Qt::ShortcutContext shortcutContext () const + */ HB_FUNC( QT_QACTION_SHORTCUTCONTEXT ) { - hb_retni( hbqt_par_QAction( 1 )->shortcutContext() ); + hb_retni( hbqt_par_QAction( 1 )->shortcutContext( ) ); } /* -bool showStatusText ( QWidget * widget = 0 ) -*/ + * bool showStatusText ( QWidget * widget = 0 ) + */ HB_FUNC( QT_QACTION_SHOWSTATUSTEXT ) { hb_retl( hbqt_par_QAction( 1 )->showStatusText( hbqt_par_QWidget( 2 ) ) ); } /* -QString statusTip () const -*/ + * QString statusTip () const + */ HB_FUNC( QT_QACTION_STATUSTIP ) { - hb_retc( hbqt_par_QAction( 1 )->statusTip().toLatin1().data() ); + hb_retc( hbqt_par_QAction( 1 )->statusTip( ).toLatin1().data() ); } /* -QString text () const -*/ + * QString text () const + */ HB_FUNC( QT_QACTION_TEXT ) { - hb_retc( hbqt_par_QAction( 1 )->text().toLatin1().data() ); + hb_retc( hbqt_par_QAction( 1 )->text( ).toLatin1().data() ); } /* -QString toolTip () const -*/ + * QString toolTip () const + */ HB_FUNC( QT_QACTION_TOOLTIP ) { - hb_retc( hbqt_par_QAction( 1 )->toolTip().toLatin1().data() ); + hb_retc( hbqt_par_QAction( 1 )->toolTip( ).toLatin1().data() ); } /* -QString whatsThis () const -*/ + * QString whatsThis () const + */ HB_FUNC( QT_QACTION_WHATSTHIS ) { - hb_retc( hbqt_par_QAction( 1 )->whatsThis().toLatin1().data() ); + hb_retc( hbqt_par_QAction( 1 )->whatsThis( ).toLatin1().data() ); } -/* -void hover () -*/ -HB_FUNC( QT_QACTION_HOVER ) -{ - hbqt_par_QAction( 1 )->hover(); -} - -/* -void setChecked ( bool ) -*/ -HB_FUNC( QT_QACTION_SETCHECKED ) -{ - hbqt_par_QAction( 1 )->setChecked( hb_parl( 2 ) ); -} - -/* -void setDisabled ( bool b ) -*/ -HB_FUNC( QT_QACTION_SETDISABLED ) -{ - hbqt_par_QAction( 1 )->setDisabled( hb_parl( 2 ) ); -} - -/* -void setEnabled ( bool ) -*/ -HB_FUNC( QT_QACTION_SETENABLED ) -{ - hbqt_par_QAction( 1 )->setEnabled( hb_parl( 2 ) ); -} - -/* -void setVisible ( bool ) -*/ -HB_FUNC( QT_QACTION_SETVISIBLE ) -{ - hbqt_par_QAction( 1 )->setVisible( hb_parl( 2 ) ); -} - -/* -void toggle () -*/ -HB_FUNC( QT_QACTION_TOGGLE ) -{ - hbqt_par_QAction( 1 )->toggle(); -} - -/* -void trigger () -*/ -HB_FUNC( QT_QACTION_TRIGGER ) -{ - hbqt_par_QAction( 1 )->trigger(); -} /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qapplication.cpp b/harbour/contrib/hbqt/hbqt_qapplication.cpp index c96eaf823e..4d458cbe86 100644 --- a/harbour/contrib/hbqt/hbqt_qapplication.cpp +++ b/harbour/contrib/hbqt/hbqt_qapplication.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -53,6 +53,32 @@ /*----------------------------------------------------------------------*/ #include "hbapi.h" +#include "hbqt.h" + +/*----------------------------------------------------------------------*/ +#if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 6/9 [ 66.67% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * virtual void commitData ( QSessionManager & manager ) + * virtual bool macEventFilter ( EventHandlerCallRef, EventRef ) + * virtual void saveState ( QSessionManager & manager ) + * + * *** Commented out protos which construct fine but do not compile *** + * + * // virtual bool qwsEventFilter ( QWSEvent * ) + * // int qwsProcessEvent ( QWSEvent * ) + * // void qwsSetCustomColors ( QRgb * colortable, int start, int numColors ) + */ + + + #include "hbapi.h" #include "hbinit.h" #include "hbdefs.h" @@ -63,19 +89,22 @@ #include "hbdate.h" #include "hbapierr.h" -#include "hbqt.h" - -#if QT_VERSION >= 0x040500 - #include -/*----------------------------------------------------------------------*/ - void release_codeblocks(); static QApplication * app = NULL; static bool hbqtinit = false; +/* + * QApplication ( int & argc, char ** argv ) + * QApplication ( int & argc, char ** argv, bool GUIenabled ) + * QApplication ( int & argc, char ** argv, Type type ) + * QApplication ( Display * display, Qt::HANDLE visual = 0, Qt::HANDLE colormap = 0 ) + * QApplication ( Display * display, int & argc, char ** argv, Qt::HANDLE visual = 0, Qt::HANDLE colormap = 0 ) + * virtual ~QApplication () +*/ + #if 0 HB_FUNC( QT_QAPPLICATION ) { @@ -98,29 +127,6 @@ HB_FUNC( QT_QAPPLICATION ) hb_retptr( ( QApplication * ) app ); } -HB_FUNC( QT_QAPPLICATION_EXEC ) -{ - hb_retni( app->exec() ); -} - -HB_FUNC( QT_QAPPLICATION_SETSTYLE ) -{ - app->setStyle( hb_parc( 2 ) ); -} - -HB_FUNC( QT_QAPPLICATION_QUIT ) -{ - app->quit(); -} - -/* -void aboutQt () -*/ -HB_FUNC( QT_QAPPLICATION_ABOUTQT ) -{ - app->aboutQt(); -} - static void hbqt_Exit( void * cargo ) { HB_SYMBOL_UNUSED( cargo ); @@ -166,5 +172,77 @@ HB_CALL_ON_STARTUP_END( _hb_hbqt_init_ ) #pragma data_seg() #endif +HB_FUNC( QT_QAPPLICATION_EXEC ) +{ + hb_retni( app->exec() ); +} + +HB_FUNC( QT_QAPPLICATION_SETSTYLE ) +{ + app->setStyle( hb_parc( 2 ) ); +} + +HB_FUNC( QT_QAPPLICATION_QUIT ) +{ + app->quit(); +} + +HB_FUNC( QT_QAPPLICATION_ABOUTQT ) +{ + app->aboutQt(); +} + + +/* + * QInputContext * inputContext () const + */ +HB_FUNC( QT_QAPPLICATION_INPUTCONTEXT ) +{ + hb_retptr( ( QInputContext* ) hbqt_par_QApplication( 1 )->inputContext( ) ); +} + +/* + * bool isSessionRestored () const + */ +HB_FUNC( QT_QAPPLICATION_ISSESSIONRESTORED ) +{ + hb_retl( hbqt_par_QApplication( 1 )->isSessionRestored( ) ); +} + +/* + * QString sessionId () const + */ +HB_FUNC( QT_QAPPLICATION_SESSIONID ) +{ + hb_retc( hbqt_par_QApplication( 1 )->sessionId( ).toLatin1().data() ); +} + +/* + * QString sessionKey () const + */ +HB_FUNC( QT_QAPPLICATION_SESSIONKEY ) +{ + hb_retc( hbqt_par_QApplication( 1 )->sessionKey( ).toLatin1().data() ); +} + +/* + * void setInputContext ( QInputContext * inputContext ) + */ +HB_FUNC( QT_QAPPLICATION_SETINPUTCONTEXT ) +{ + hbqt_par_QApplication( 1 )->setInputContext( hbqt_par_QInputContext( 2 ) ); +} + +/* + * QString styleSheet () const + */ +HB_FUNC( QT_QAPPLICATION_STYLESHEET ) +{ + hb_retc( hbqt_par_QApplication( 1 )->styleSheet( ).toLatin1().data() ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qboxlayout.cpp b/harbour/contrib/hbqt/hbqt_qboxlayout.cpp index 1d5765f728..93eeddb78d 100644 --- a/harbour/contrib/hbqt/hbqt_qboxlayout.cpp +++ b/harbour/contrib/hbqt/hbqt_qboxlayout.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,162 +55,187 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -QBoxLayout ( Direction dir, QWidget * parent = 0 ) -*/ + * QBoxLayout ( Direction dir, QWidget * parent = 0 ) + * ~QBoxLayout () + */ HB_FUNC( QT_QBOXLAYOUT ) { - hb_retptr( ( QBoxLayout* ) new QBoxLayout( ( QBoxLayout::Direction ) hb_parni( 1 ), hbqt_par_QWidget( 2 ) ) ); + hb_retptr( ( QBoxLayout* ) new QBoxLayout( ( QBoxLayout::Direction ) hb_parni( 1 ), + hbqt_par_QWidget( 2 ) ) ); } /* -void addLayout ( QLayout * layout, int stretch = 0 ) -*/ + * void addLayout ( QLayout * layout, int stretch = 0 ) + */ HB_FUNC( QT_QBOXLAYOUT_ADDLAYOUT ) { hbqt_par_QBoxLayout( 1 )->addLayout( hbqt_par_QLayout( 2 ), hb_parni( 3 ) ); } /* -void addSpacerItem ( QSpacerItem * spacerItem ) -*/ + * void addSpacerItem ( QSpacerItem * spacerItem ) + */ HB_FUNC( QT_QBOXLAYOUT_ADDSPACERITEM ) { hbqt_par_QBoxLayout( 1 )->addSpacerItem( hbqt_par_QSpacerItem( 2 ) ); } /* -void addSpacing ( int size ) -*/ + * void addSpacing ( int size ) + */ HB_FUNC( QT_QBOXLAYOUT_ADDSPACING ) { hbqt_par_QBoxLayout( 1 )->addSpacing( hb_parni( 2 ) ); } /* -void addStretch ( int stretch = 0 ) -*/ + * void addStretch ( int stretch = 0 ) + */ HB_FUNC( QT_QBOXLAYOUT_ADDSTRETCH ) { hbqt_par_QBoxLayout( 1 )->addStretch( hb_parni( 2 ) ); } /* -void addStrut ( int size ) -*/ + * void addStrut ( int size ) + */ HB_FUNC( QT_QBOXLAYOUT_ADDSTRUT ) { hbqt_par_QBoxLayout( 1 )->addStrut( hb_parni( 2 ) ); } /* -void addWidget ( QWidget * widget, int stretch = 0, Qt::Alignment alignment = 0 ) -*/ + * void addWidget ( QWidget * widget, int stretch = 0, Qt::Alignment alignment = 0 ) + */ HB_FUNC( QT_QBOXLAYOUT_ADDWIDGET ) { hbqt_par_QBoxLayout( 1 )->addWidget( hbqt_par_QWidget( 2 ), hb_parni( 3 ), ( Qt::Alignment ) hb_parni( 4 ) ); } /* -Direction direction () const -*/ + * Direction direction () const + */ HB_FUNC( QT_QBOXLAYOUT_DIRECTION ) { - hb_retni( hbqt_par_QBoxLayout( 1 )->direction() ); + hb_retni( hbqt_par_QBoxLayout( 1 )->direction( ) ); } /* -void insertLayout ( int index, QLayout * layout, int stretch = 0 ) -*/ + * void insertLayout ( int index, QLayout * layout, int stretch = 0 ) + */ HB_FUNC( QT_QBOXLAYOUT_INSERTLAYOUT ) { hbqt_par_QBoxLayout( 1 )->insertLayout( hb_parni( 2 ), hbqt_par_QLayout( 3 ), hb_parni( 4 ) ); } /* -void insertSpacerItem ( int index, QSpacerItem * spacerItem ) -*/ + * void insertSpacerItem ( int index, QSpacerItem * spacerItem ) + */ HB_FUNC( QT_QBOXLAYOUT_INSERTSPACERITEM ) { hbqt_par_QBoxLayout( 1 )->insertSpacerItem( hb_parni( 2 ), hbqt_par_QSpacerItem( 3 ) ); } /* -void insertSpacing ( int index, int size ) -*/ + * void insertSpacing ( int index, int size ) + */ HB_FUNC( QT_QBOXLAYOUT_INSERTSPACING ) { hbqt_par_QBoxLayout( 1 )->insertSpacing( hb_parni( 2 ), hb_parni( 3 ) ); } /* -void insertStretch ( int index, int stretch = 0 ) -*/ + * void insertStretch ( int index, int stretch = 0 ) + */ HB_FUNC( QT_QBOXLAYOUT_INSERTSTRETCH ) { hbqt_par_QBoxLayout( 1 )->insertStretch( hb_parni( 2 ), hb_parni( 3 ) ); } /* -void insertWidget ( int index, QWidget * widget, int stretch = 0, Qt::Alignment alignment = 0 ) -*/ + * void insertWidget ( int index, QWidget * widget, int stretch = 0, Qt::Alignment alignment = 0 ) + */ HB_FUNC( QT_QBOXLAYOUT_INSERTWIDGET ) { - hbqt_par_QBoxLayout( 1 )->insertWidget( hb_parni( 2 ), hbqt_par_QWidget( 3 ), hb_parni( 5 ), ( Qt::Alignment ) hb_parni( 6 ) ); + hbqt_par_QBoxLayout( 1 )->insertWidget( hb_parni( 2 ), hbqt_par_QWidget( 3 ), hb_parni( 4 ), ( Qt::Alignment ) hb_parni( 5 ) ); } /* -void setDirection ( Direction direction ) -*/ + * virtual void invalidate () + */ +HB_FUNC( QT_QBOXLAYOUT_INVALIDATE ) +{ + hbqt_par_QBoxLayout( 1 )->invalidate( ); +} + +/* + * void setDirection ( Direction direction ) + */ HB_FUNC( QT_QBOXLAYOUT_SETDIRECTION ) { hbqt_par_QBoxLayout( 1 )->setDirection( ( QBoxLayout::Direction ) hb_parni( 2 ) ); } /* -void setSpacing ( int spacing ) -*/ + * void setSpacing ( int spacing ) + */ HB_FUNC( QT_QBOXLAYOUT_SETSPACING ) { hbqt_par_QBoxLayout( 1 )->setSpacing( hb_parni( 2 ) ); } /* -void setStretch ( int index, int stretch ) -*/ + * void setStretch ( int index, int stretch ) + */ HB_FUNC( QT_QBOXLAYOUT_SETSTRETCH ) { hbqt_par_QBoxLayout( 1 )->setStretch( hb_parni( 2 ), hb_parni( 3 ) ); } /* -bool setStretchFactor ( QWidget * widget, int stretch ) -*/ + * bool setStretchFactor ( QWidget * widget, int stretch ) + */ HB_FUNC( QT_QBOXLAYOUT_SETSTRETCHFACTOR ) { hb_retl( hbqt_par_QBoxLayout( 1 )->setStretchFactor( hbqt_par_QWidget( 2 ), hb_parni( 3 ) ) ); } /* -int spacing () const -*/ -HB_FUNC( QT_QBOXLAYOUT_SPACING ) + * bool setStretchFactor ( QLayout * layout, int stretch ) + */ +HB_FUNC( QT_QBOXLAYOUT_SETSTRETCHFACTOR_1 ) { - hb_retni( hbqt_par_QBoxLayout( 1 )->spacing() ); + hb_retl( hbqt_par_QBoxLayout( 1 )->setStretchFactor( hbqt_par_QLayout( 2 ), hb_parni( 3 ) ) ); } /* -int stretch ( int index ) const -*/ + * int spacing () const + */ +HB_FUNC( QT_QBOXLAYOUT_SPACING ) +{ + hb_retni( hbqt_par_QBoxLayout( 1 )->spacing( ) ); +} + +/* + * int stretch ( int index ) const + */ HB_FUNC( QT_QBOXLAYOUT_STRETCH ) { hb_retni( hbqt_par_QBoxLayout( 1 )->stretch( hb_parni( 2 ) ) ); } + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qbrush.cpp b/harbour/contrib/hbqt/hbqt_qbrush.cpp new file mode 100644 index 0000000000..e0433d1be2 --- /dev/null +++ b/harbour/contrib/hbqt/hbqt_qbrush.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 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 4/14 [ 28.57% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * const QColor & color () const + * const QMatrix & matrix () const + * void setColor ( const QColor & color ) + * void setMatrix ( const QMatrix & matrix ) + * void setTexture ( const QPixmap & pixmap ) + * void setTextureImage ( const QImage & image ) + * void setTransform ( const QTransform & matrix ) + * QPixmap texture () const + * QImage textureImage () const + * QTransform transform () const + * + * *** Commented out protos which construct fine but do not compile *** + * + * //const QGradient * gradient () const + */ + + +#include + + +/* + * QBrush () + * QBrush ( Qt::BrushStyle style ) + * QBrush ( const QColor & color, Qt::BrushStyle style = Qt::SolidPattern ) + * QBrush ( Qt::GlobalColor color, Qt::BrushStyle style = Qt::SolidPattern ) + * QBrush ( const QColor & color, const QPixmap & pixmap ) + * QBrush ( Qt::GlobalColor color, const QPixmap & pixmap ) + * QBrush ( const QPixmap & pixmap ) + * QBrush ( const QImage & image ) + * QBrush ( const QBrush & other ) + * QBrush ( const QGradient & gradient ) + * ~QBrush () + */ +HB_FUNC( QT_QBRUSH ) +{ + hb_retptr( ( QBrush* ) new QBrush() ); +} + +/* + * bool isOpaque () const + */ +HB_FUNC( QT_QBRUSH_ISOPAQUE ) +{ + hb_retl( hbqt_par_QBrush( 1 )->isOpaque( ) ); +} + +/* + * void setColor ( Qt::GlobalColor color ) + */ +HB_FUNC( QT_QBRUSH_SETCOLOR ) +{ + hbqt_par_QBrush( 1 )->setColor( ( Qt::GlobalColor ) hb_parni( 2 ) ); +} + +/* + * void setStyle ( Qt::BrushStyle style ) + */ +HB_FUNC( QT_QBRUSH_SETSTYLE ) +{ + hbqt_par_QBrush( 1 )->setStyle( ( Qt::BrushStyle ) hb_parni( 2 ) ); +} + +/* + * Qt::BrushStyle style () const + */ +HB_FUNC( QT_QBRUSH_STYLE ) +{ + hb_retni( hbqt_par_QBrush( 1 )->style( ) ); +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qcalendarwidget.cpp b/harbour/contrib/hbqt/hbqt_qcalendarwidget.cpp index 59a38f96e3..61efa54da6 100644 --- a/harbour/contrib/hbqt/hbqt_qcalendarwidget.cpp +++ b/harbour/contrib/hbqt/hbqt_qcalendarwidget.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,218 +55,174 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 16/28 [ 57.14% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * QMap dateTextFormat () const + * QTextCharFormat dateTextFormat ( const QDate & date ) const + * QTextCharFormat headerTextFormat () const + * QDate maximumDate () const + * QDate minimumDate () const + * QDate selectedDate () const + * void setDateTextFormat ( const QDate & date, const QTextCharFormat & format ) + * void setHeaderTextFormat ( const QTextCharFormat & format ) + * void setMaximumDate ( const QDate & date ) + * void setMinimumDate ( const QDate & date ) + * void setWeekdayTextFormat ( Qt::DayOfWeek dayOfWeek, const QTextCharFormat & format ) + * QTextCharFormat weekdayTextFormat ( Qt::DayOfWeek dayOfWeek ) const + */ + #include -/*----------------------------------------------------------------------*/ + /* -QCalendarWidget( QWidget * parent = 0 ) -*/ + * QCalendarWidget ( QWidget * parent = 0 ) + * ~QCalendarWidget () + */ HB_FUNC( QT_QCALENDARWIDGET ) { hb_retptr( ( QCalendarWidget* ) new QCalendarWidget( hbqt_par_QWidget( 1 ) ) ); } /* -int dateEditAcceptDelay () const -*/ + * int dateEditAcceptDelay () const + */ HB_FUNC( QT_QCALENDARWIDGET_DATEEDITACCEPTDELAY ) { - hb_retni( hbqt_par_QCalendarWidget( 1 )->dateEditAcceptDelay() ); + hb_retni( hbqt_par_QCalendarWidget( 1 )->dateEditAcceptDelay( ) ); } /* -Qt::DayOfWeek firstDayOfWeek () const -*/ + * Qt::DayOfWeek firstDayOfWeek () const + */ HB_FUNC( QT_QCALENDARWIDGET_FIRSTDAYOFWEEK ) { - hb_retni( hbqt_par_QCalendarWidget( 1 )->firstDayOfWeek() ); + hb_retni( hbqt_par_QCalendarWidget( 1 )->firstDayOfWeek( ) ); } /* -HorizontalHeaderFormat horizontalHeaderFormat () const -*/ + * HorizontalHeaderFormat horizontalHeaderFormat () const + */ HB_FUNC( QT_QCALENDARWIDGET_HORIZONTALHEADERFORMAT ) { - hb_retni( hbqt_par_QCalendarWidget( 1 )->horizontalHeaderFormat() ); + hb_retni( hbqt_par_QCalendarWidget( 1 )->horizontalHeaderFormat( ) ); } /* -bool isDateEditEnabled () const -*/ + * bool isDateEditEnabled () const + */ HB_FUNC( QT_QCALENDARWIDGET_ISDATEEDITENABLED ) { - hb_retl( hbqt_par_QCalendarWidget( 1 )->isDateEditEnabled() ); + hb_retl( hbqt_par_QCalendarWidget( 1 )->isDateEditEnabled( ) ); } /* -bool isGridVisible () const -*/ + * bool isGridVisible () const + */ HB_FUNC( QT_QCALENDARWIDGET_ISGRIDVISIBLE ) { - hb_retl( hbqt_par_QCalendarWidget( 1 )->isGridVisible() ); + hb_retl( hbqt_par_QCalendarWidget( 1 )->isGridVisible( ) ); } /* -bool isNavigationBarVisible () const -*/ + * bool isNavigationBarVisible () const + */ HB_FUNC( QT_QCALENDARWIDGET_ISNAVIGATIONBARVISIBLE ) { - hb_retl( hbqt_par_QCalendarWidget( 1 )->isNavigationBarVisible() ); + hb_retl( hbqt_par_QCalendarWidget( 1 )->isNavigationBarVisible( ) ); } /* -int monthShown () const -*/ + * int monthShown () const + */ HB_FUNC( QT_QCALENDARWIDGET_MONTHSHOWN ) { - hb_retni( hbqt_par_QCalendarWidget( 1 )->monthShown() ); + hb_retni( hbqt_par_QCalendarWidget( 1 )->monthShown( ) ); } /* -SelectionMode selectionMode () const -*/ + * SelectionMode selectionMode () const + */ HB_FUNC( QT_QCALENDARWIDGET_SELECTIONMODE ) { - hb_retni( hbqt_par_QCalendarWidget( 1 )->selectionMode() ); + hb_retni( hbqt_par_QCalendarWidget( 1 )->selectionMode( ) ); } /* -void setDateEditAcceptDelay( int delay ) -*/ + * void setDateEditAcceptDelay ( int delay ) + */ HB_FUNC( QT_QCALENDARWIDGET_SETDATEEDITACCEPTDELAY ) { hbqt_par_QCalendarWidget( 1 )->setDateEditAcceptDelay( hb_parni( 2 ) ); } /* -void setDateEditEnabled( bool enable ) -*/ + * void setDateEditEnabled ( bool enable ) + */ HB_FUNC( QT_QCALENDARWIDGET_SETDATEEDITENABLED ) { hbqt_par_QCalendarWidget( 1 )->setDateEditEnabled( hb_parl( 2 ) ); } /* -void setFirstDayOfWeek( Qt::DayOfWeek dayOfWeek ) -*/ + * void setFirstDayOfWeek ( Qt::DayOfWeek dayOfWeek ) + */ HB_FUNC( QT_QCALENDARWIDGET_SETFIRSTDAYOFWEEK ) { - hbqt_par_QCalendarWidget( 1 )->setFirstDayOfWeek( (Qt::DayOfWeek) hb_parni( 2 ) ); + hbqt_par_QCalendarWidget( 1 )->setFirstDayOfWeek( ( Qt::DayOfWeek ) hb_parni( 2 ) ); } /* -void setHorizontalHeaderFormat( HorizontalHeaderFormat format ) -*/ + * void setHorizontalHeaderFormat ( HorizontalHeaderFormat format ) + */ HB_FUNC( QT_QCALENDARWIDGET_SETHORIZONTALHEADERFORMAT ) { hbqt_par_QCalendarWidget( 1 )->setHorizontalHeaderFormat( ( QCalendarWidget::HorizontalHeaderFormat ) hb_parni( 2 ) ); } /* -void setSelectionMode( SelectionMode mode ) -*/ + * void setSelectionMode ( SelectionMode mode ) + */ HB_FUNC( QT_QCALENDARWIDGET_SETSELECTIONMODE ) { - hbqt_par_QCalendarWidget( 1 )->setSelectionMode( (QCalendarWidget::SelectionMode) hb_parni( 2 ) ); + hbqt_par_QCalendarWidget( 1 )->setSelectionMode( ( QCalendarWidget::SelectionMode ) hb_parni( 2 ) ); } /* -void setVerticalHeaderFormat( VerticalHeaderFormat format ) -*/ + * void setVerticalHeaderFormat ( VerticalHeaderFormat format ) + */ HB_FUNC( QT_QCALENDARWIDGET_SETVERTICALHEADERFORMAT ) { hbqt_par_QCalendarWidget( 1 )->setVerticalHeaderFormat( ( QCalendarWidget::VerticalHeaderFormat ) hb_parni( 2 ) ); } /* -VerticalHeaderFormat verticalHeaderFormat () const -*/ + * VerticalHeaderFormat verticalHeaderFormat () const + */ HB_FUNC( QT_QCALENDARWIDGET_VERTICALHEADERFORMAT ) { - hb_retni( hbqt_par_QCalendarWidget( 1 )->verticalHeaderFormat() ); + hb_retni( hbqt_par_QCalendarWidget( 1 )->verticalHeaderFormat( ) ); } /* -int yearShown () const -*/ + * int yearShown () const + */ HB_FUNC( QT_QCALENDARWIDGET_YEARSHOWN ) { - hb_retni( hbqt_par_QCalendarWidget( 1 )->yearShown() ); + hb_retni( hbqt_par_QCalendarWidget( 1 )->yearShown( ) ); } -/* -void setCurrentPage( int year, int month ) -*/ -HB_FUNC( QT_QCALENDARWIDGET_SETCURRENTPAGE ) -{ - hbqt_par_QCalendarWidget( 1 )->setCurrentPage( hb_parni( 2 ), hb_parni( 3 ) ); -} - -/* -void setGridVisible( bool show ) -*/ -HB_FUNC( QT_QCALENDARWIDGET_SETGRIDVISIBLE ) -{ - hbqt_par_QCalendarWidget( 1 )->setGridVisible( hb_parl( 2 ) ); -} - -/* -void setNavigationBarVisible( bool visible ) -*/ -HB_FUNC( QT_QCALENDARWIDGET_SETNAVIGATIONBARVISIBLE ) -{ - hbqt_par_QCalendarWidget( 1 )->setNavigationBarVisible( hb_parl( 2 ) ); -} - -/* -void showNextMonth () -*/ -HB_FUNC( QT_QCALENDARWIDGET_SHOWNEXTMONTH ) -{ - hbqt_par_QCalendarWidget( 1 )->showNextMonth(); -} - -/* -void showNextYear () -*/ -HB_FUNC( QT_QCALENDARWIDGET_SHOWNEXTYEAR ) -{ - hbqt_par_QCalendarWidget( 1 )->showNextYear(); -} - -/* -void showPreviousMonth () -*/ -HB_FUNC( QT_QCALENDARWIDGET_SHOWPREVIOUSMONTH ) -{ - hbqt_par_QCalendarWidget( 1 )->showPreviousMonth(); -} - -/* -void showPreviousYear () -*/ -HB_FUNC( QT_QCALENDARWIDGET_SHOWPREVIOUSYEAR ) -{ - hbqt_par_QCalendarWidget( 1 )->showPreviousYear(); -} - -/* -void showSelectedDate () -*/ -HB_FUNC( QT_QCALENDARWIDGET_SHOWSELECTEDDATE ) -{ - hbqt_par_QCalendarWidget( 1 )->showSelectedDate(); -} - -/* -void showToday () -*/ -HB_FUNC( QT_QCALENDARWIDGET_SHOWTODAY ) -{ - hbqt_par_QCalendarWidget( 1 )->showToday(); -} /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qcheckbox.cpp b/harbour/contrib/hbqt/hbqt_qcheckbox.cpp index fd20d0ddbb..5a320483fe 100644 --- a/harbour/contrib/hbqt/hbqt_qcheckbox.cpp +++ b/harbour/contrib/hbqt/hbqt_qcheckbox.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,51 +55,65 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -QCheckBox ( QWidget * parent = 0 ) -QCheckBox ( const QString & text, QWidget * parent = 0 ) -*/ + * QCheckBox ( QWidget * parent = 0 ) + * QCheckBox ( const QString & text, QWidget * parent = 0 ) + */ HB_FUNC( QT_QCHECKBOX ) { - hb_retptr( ( QCheckBox* ) new QCheckBox( hbqt_par_QWidget( 1 ) ) ); + if( hb_pcount() >= 1 && HB_ISCHAR( 1 ) ) + { + hb_retptr( ( QCheckBox* ) new QCheckBox( hbqt_par_QString( 1 ), hbqt_par_QWidget( 2 ) ) ); + } + else + { + hb_retptr( ( QCheckBox* ) new QCheckBox( hbqt_par_QWidget( 1 ) ) ); + } } /* -Qt::CheckState checkState () const -*/ + * Qt::CheckState checkState () const + */ HB_FUNC( QT_QCHECKBOX_CHECKSTATE ) { - hb_retni( hbqt_par_QCheckBox( 1 )->checkState() ); + hb_retni( hbqt_par_QCheckBox( 1 )->checkState( ) ); } /* -bool isTristate () const -*/ + * bool isTristate () const + */ HB_FUNC( QT_QCHECKBOX_ISTRISTATE ) { - hb_retl( hbqt_par_QCheckBox( 1 )->isTristate() ); + hb_retl( hbqt_par_QCheckBox( 1 )->isTristate( ) ); } /* -void setCheckState ( Qt::CheckState state ) -*/ + * void setCheckState ( Qt::CheckState state ) + */ HB_FUNC( QT_QCHECKBOX_SETCHECKSTATE ) { hbqt_par_QCheckBox( 1 )->setCheckState( ( Qt::CheckState ) hb_parni( 2 ) ); } /* -void setTristate ( bool y = true ) -*/ + * void setTristate ( bool y = true ) + */ HB_FUNC( QT_QCHECKBOX_SETTRISTATE ) { hbqt_par_QCheckBox( 1 )->setTristate( hb_parl( 2 ) ); } + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qcolor.cpp b/harbour/contrib/hbqt/hbqt_qcolor.cpp new file mode 100644 index 0000000000..9c933fc187 --- /dev/null +++ b/harbour/contrib/hbqt/hbqt_qcolor.cpp @@ -0,0 +1,428 @@ +/* + * $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 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 40/56 [ 71.43% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * QColor convertTo ( Spec colorSpec ) const + * QColor darker ( int factor = 200 ) const + * void getCmyk ( int * c, int * m, int * y, int * k, int * a = 0 ) + * void getCmykF ( qreal * c, qreal * m, qreal * y, qreal * k, qreal * a = 0 ) + * void getHsv ( int * h, int * s, int * v, int * a = 0 ) const + * void getHsvF ( qreal * h, qreal * s, qreal * v, qreal * a = 0 ) const + * void getRgb ( int * r, int * g, int * b, int * a = 0 ) const + * void getRgbF ( qreal * r, qreal * g, qreal * b, qreal * a = 0 ) const + * QColor lighter ( int factor = 150 ) const + * QRgb rgb () const + * QRgb rgba () const + * void setRgb ( QRgb rgb ) + * void setRgba ( QRgb rgba ) + * QColor toCmyk () const + * QColor toHsv () const + * QColor toRgb () const + */ + + +#include + +/* +QColor () +QColor ( int r, int g, int b, int a = 255 ) +QColor ( QRgb color ) +QColor ( const QString & name ) +QColor ( const char * name ) +QColor ( const QColor & color ) +QColor ( Qt::GlobalColor color ) + */ +HB_FUNC( QT_QCOLOR ) +{ + +} + +/* + * int alpha () const + */ +HB_FUNC( QT_QCOLOR_ALPHA ) +{ + hb_retni( hbqt_par_QColor( 1 )->alpha( ) ); +} + +/* + * qreal alphaF () const + */ +HB_FUNC( QT_QCOLOR_ALPHAF ) +{ + hb_retnd( hbqt_par_QColor( 1 )->alphaF( ) ); +} + +/* + * int black () const + */ +HB_FUNC( QT_QCOLOR_BLACK ) +{ + hb_retni( hbqt_par_QColor( 1 )->black( ) ); +} + +/* + * qreal blackF () const + */ +HB_FUNC( QT_QCOLOR_BLACKF ) +{ + hb_retnd( hbqt_par_QColor( 1 )->blackF( ) ); +} + +/* + * int blue () const + */ +HB_FUNC( QT_QCOLOR_BLUE ) +{ + hb_retni( hbqt_par_QColor( 1 )->blue( ) ); +} + +/* + * qreal blueF () const + */ +HB_FUNC( QT_QCOLOR_BLUEF ) +{ + hb_retnd( hbqt_par_QColor( 1 )->blueF( ) ); +} + +/* + * int cyan () const + */ +HB_FUNC( QT_QCOLOR_CYAN ) +{ + hb_retni( hbqt_par_QColor( 1 )->cyan( ) ); +} + +/* + * qreal cyanF () const + */ +HB_FUNC( QT_QCOLOR_CYANF ) +{ + hb_retnd( hbqt_par_QColor( 1 )->cyanF( ) ); +} + +/* + * int green () const + */ +HB_FUNC( QT_QCOLOR_GREEN ) +{ + hb_retni( hbqt_par_QColor( 1 )->green( ) ); +} + +/* + * qreal greenF () const + */ +HB_FUNC( QT_QCOLOR_GREENF ) +{ + hb_retnd( hbqt_par_QColor( 1 )->greenF( ) ); +} + +/* + * int hue () const + */ +HB_FUNC( QT_QCOLOR_HUE ) +{ + hb_retni( hbqt_par_QColor( 1 )->hue( ) ); +} + +/* + * qreal hueF () const + */ +HB_FUNC( QT_QCOLOR_HUEF ) +{ + hb_retnd( hbqt_par_QColor( 1 )->hueF( ) ); +} + +/* + * bool isValid () const + */ +HB_FUNC( QT_QCOLOR_ISVALID ) +{ + hb_retl( hbqt_par_QColor( 1 )->isValid( ) ); +} + +/* + * int magenta () const + */ +HB_FUNC( QT_QCOLOR_MAGENTA ) +{ + hb_retni( hbqt_par_QColor( 1 )->magenta( ) ); +} + +/* + * qreal magentaF () const + */ +HB_FUNC( QT_QCOLOR_MAGENTAF ) +{ + hb_retnd( hbqt_par_QColor( 1 )->magentaF( ) ); +} + +/* + * QString name () const + */ +HB_FUNC( QT_QCOLOR_NAME ) +{ + hb_retc( hbqt_par_QColor( 1 )->name( ).toLatin1().data() ); +} + +/* + * int red () const + */ +HB_FUNC( QT_QCOLOR_RED ) +{ + hb_retni( hbqt_par_QColor( 1 )->red( ) ); +} + +/* + * qreal redF () const + */ +HB_FUNC( QT_QCOLOR_REDF ) +{ + hb_retnd( hbqt_par_QColor( 1 )->redF( ) ); +} + +/* + * int saturation () const + */ +HB_FUNC( QT_QCOLOR_SATURATION ) +{ + hb_retni( hbqt_par_QColor( 1 )->saturation( ) ); +} + +/* + * qreal saturationF () const + */ +HB_FUNC( QT_QCOLOR_SATURATIONF ) +{ + hb_retnd( hbqt_par_QColor( 1 )->saturationF( ) ); +} + +/* + * void setAlpha ( int alpha ) + */ +HB_FUNC( QT_QCOLOR_SETALPHA ) +{ + hbqt_par_QColor( 1 )->setAlpha( hb_parni( 2 ) ); +} + +/* + * void setAlphaF ( qreal alpha ) + */ +HB_FUNC( QT_QCOLOR_SETALPHAF ) +{ + hbqt_par_QColor( 1 )->setAlphaF( hb_parnd( 2 ) ); +} + +/* + * void setBlue ( int blue ) + */ +HB_FUNC( QT_QCOLOR_SETBLUE ) +{ + hbqt_par_QColor( 1 )->setBlue( hb_parni( 2 ) ); +} + +/* + * void setBlueF ( qreal blue ) + */ +HB_FUNC( QT_QCOLOR_SETBLUEF ) +{ + hbqt_par_QColor( 1 )->setBlueF( hb_parnd( 2 ) ); +} + +/* + * void setCmyk ( int c, int m, int y, int k, int a = 255 ) + */ +HB_FUNC( QT_QCOLOR_SETCMYK ) +{ + hbqt_par_QColor( 1 )->setCmyk( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), hb_parni( 6 ) ); +} + +/* + * void setCmykF ( qreal c, qreal m, qreal y, qreal k, qreal a = 1.0 ) + */ +HB_FUNC( QT_QCOLOR_SETCMYKF ) +{ + hbqt_par_QColor( 1 )->setCmykF( hb_parnd( 2 ), hb_parnd( 3 ), hb_parnd( 4 ), hb_parnd( 5 ), hb_parnd( 6 ) ); +} + +/* + * void setGreen ( int green ) + */ +HB_FUNC( QT_QCOLOR_SETGREEN ) +{ + hbqt_par_QColor( 1 )->setGreen( hb_parni( 2 ) ); +} + +/* + * void setGreenF ( qreal green ) + */ +HB_FUNC( QT_QCOLOR_SETGREENF ) +{ + hbqt_par_QColor( 1 )->setGreenF( hb_parnd( 2 ) ); +} + +/* + * void setHsv ( int h, int s, int v, int a = 255 ) + */ +HB_FUNC( QT_QCOLOR_SETHSV ) +{ + hbqt_par_QColor( 1 )->setHsv( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ) ); +} + +/* + * void setHsvF ( qreal h, qreal s, qreal v, qreal a = 1.0 ) + */ +HB_FUNC( QT_QCOLOR_SETHSVF ) +{ + hbqt_par_QColor( 1 )->setHsvF( hb_parnd( 2 ), hb_parnd( 3 ), hb_parnd( 4 ), hb_parnd( 5 ) ); +} + +/* + * void setNamedColor ( const QString & name ) + */ +HB_FUNC( QT_QCOLOR_SETNAMEDCOLOR ) +{ + hbqt_par_QColor( 1 )->setNamedColor( hbqt_par_QString( 2 ) ); +} + +/* + * void setRed ( int red ) + */ +HB_FUNC( QT_QCOLOR_SETRED ) +{ + hbqt_par_QColor( 1 )->setRed( hb_parni( 2 ) ); +} + +/* + * void setRedF ( qreal red ) + */ +HB_FUNC( QT_QCOLOR_SETREDF ) +{ + hbqt_par_QColor( 1 )->setRedF( hb_parnd( 2 ) ); +} + +/* + * void setRgb ( int r, int g, int b, int a = 255 ) + */ +HB_FUNC( QT_QCOLOR_SETRGB ) +{ + hbqt_par_QColor( 1 )->setRgb( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ) ); +} + +/* + * void setRgbF ( qreal r, qreal g, qreal b, qreal a = 1.0 ) + */ +HB_FUNC( QT_QCOLOR_SETRGBF ) +{ + hbqt_par_QColor( 1 )->setRgbF( hb_parnd( 2 ), hb_parnd( 3 ), hb_parnd( 4 ), hb_parnd( 5 ) ); +} + +/* + * Spec spec () const + */ +HB_FUNC( QT_QCOLOR_SPEC ) +{ + hb_retni( hbqt_par_QColor( 1 )->spec( ) ); +} + +/* + * int value () const + */ +HB_FUNC( QT_QCOLOR_VALUE ) +{ + hb_retni( hbqt_par_QColor( 1 )->value( ) ); +} + +/* + * qreal valueF () const + */ +HB_FUNC( QT_QCOLOR_VALUEF ) +{ + hb_retnd( hbqt_par_QColor( 1 )->valueF( ) ); +} + +/* + * int yellow () const + */ +HB_FUNC( QT_QCOLOR_YELLOW ) +{ + hb_retni( hbqt_par_QColor( 1 )->yellow( ) ); +} + +/* + * qreal yellowF () const + */ +HB_FUNC( QT_QCOLOR_YELLOWF ) +{ + hb_retnd( hbqt_par_QColor( 1 )->yellowF( ) ); +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qcolordialog.cpp b/harbour/contrib/hbqt/hbqt_qcolordialog.cpp index 63d5c96c80..596af6888e 100644 --- a/harbour/contrib/hbqt/hbqt_qcolordialog.cpp +++ b/harbour/contrib/hbqt/hbqt_qcolordialog.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,59 +55,101 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 7/10 [ 70.00% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * QColor currentColor () const + * QColor selectedColor () const + * void setCurrentColor ( const QColor & color ) + */ + #include -/*----------------------------------------------------------------------*/ /* -QColorDialog ( QWidget * parent = 0 ) -QColorDialog ( const QColor & initial, QWidget * parent = 0 ) -*/ + * QColorDialog ( QWidget * parent = 0 ) + * QColorDialog ( const QColor & initial, QWidget * parent = 0 ) + * ~QColorDialog () + */ HB_FUNC( QT_QCOLORDIALOG ) { - hb_retptr( ( QColorDialog* ) new QColorDialog( hbqt_par_QWidget( 1 ) ) ); + if( hb_pcount() >= 1 && HB_ISNUM( 1 ) ) + { + hb_retptr( ( QColorDialog* ) new QColorDialog( hb_parni( 1 ), + hbqt_par_QWidget( 2 ) ) ); + } + else + { + hb_retptr( ( QColorDialog* ) new QColorDialog( hbqt_par_QWidget( 1 ) ) ); + } } /* -void open () -*/ + * void open () + */ HB_FUNC( QT_QCOLORDIALOG_OPEN ) { - hbqt_par_QColorDialog( 1 )->open ( ); + hbqt_par_QColorDialog( 1 )->open( ); } /* -ColorDialogOptions options () const -*/ + * void open ( QObject * receiver, const char * member ) + */ +HB_FUNC( QT_QCOLORDIALOG_OPEN_1 ) +{ + hbqt_par_QColorDialog( 1 )->open( hbqt_par_QObject( 2 ), hbqt_par_char( 3 ) ); +} + +/* + * ColorDialogOptions options () const + */ HB_FUNC( QT_QCOLORDIALOG_OPTIONS ) { - hb_retni( hbqt_par_QColorDialog( 1 )->options() ); + hb_retni( hbqt_par_QColorDialog( 1 )->options( ) ); } /* -void setOption ( ColorDialogOption option, bool on = true ) -*/ + * void setOption ( ColorDialogOption option, bool on = true ) + */ HB_FUNC( QT_QCOLORDIALOG_SETOPTION ) { hbqt_par_QColorDialog( 1 )->setOption( ( QColorDialog::ColorDialogOption ) hb_parni( 2 ), hb_parl( 3 ) ); } /* -void setOptions ( ColorDialogOptions options ) -*/ + * void setOptions ( ColorDialogOptions options ) + */ HB_FUNC( QT_QCOLORDIALOG_SETOPTIONS ) { hbqt_par_QColorDialog( 1 )->setOptions( ( QColorDialog::ColorDialogOptions ) hb_parni( 2 ) ); } /* -bool testOption ( ColorDialogOption option ) const -*/ + * virtual void setVisible ( bool visible ) + */ +HB_FUNC( QT_QCOLORDIALOG_SETVISIBLE ) +{ + hbqt_par_QColorDialog( 1 )->setVisible( hb_parl( 2 ) ); +} + +/* + * bool testOption ( ColorDialogOption option ) const + */ HB_FUNC( QT_QCOLORDIALOG_TESTOPTION ) { hb_retl( hbqt_par_QColorDialog( 1 )->testOption( ( QColorDialog::ColorDialogOption ) hb_parni( 2 ) ) ); } + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qcombobox.cpp b/harbour/contrib/hbqt/hbqt_qcombobox.cpp index ff6b9afbd1..32eaa5e161 100644 --- a/harbour/contrib/hbqt/hbqt_qcombobox.cpp +++ b/harbour/contrib/hbqt/hbqt_qcombobox.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,323 +55,381 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 42/53 [ 79.25% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * void addItem ( const QString & text, const QVariant & userData = QVariant() ) + * void addItem ( const QIcon & icon, const QString & text, const QVariant & userData = QVariant() ) + * void addItems ( const QStringList & texts ) + * void insertItem ( int index, const QString & text, const QVariant & userData = QVariant() ) + * void insertItem ( int index, const QIcon & icon, const QString & text, const QVariant & userData = QVariant() ) + * void insertItems ( int index, const QStringList & list ) + * QVariant itemData ( int index, int role = Qt::UserRole ) const + * QIcon itemIcon ( int index ) const + * QModelIndex rootModelIndex () const + * void setItemData ( int index, const QVariant & value, int role = Qt::UserRole ) + * void setRootModelIndex ( const QModelIndex & index ) + */ + #include -/*----------------------------------------------------------------------*/ + /* -QComboBox( QWidget * parent = 0 ) -*/ + * QComboBox ( QWidget * parent = 0 ) + * ~QComboBox () + */ HB_FUNC( QT_QCOMBOBOX ) { hb_retptr( ( QComboBox* ) new QComboBox( hbqt_par_QWidget( 1 ) ) ); } /* -void addItem( const QString & text, const QVariant & userData = QVariant() ) -void addItem( const QIcon & icon, const QString & text, const QVariant & userData = QVariant() ) -*/ -HB_FUNC( QT_QCOMBOBOX_ADDITEM ) + * QCompleter * completer () const + */ +HB_FUNC( QT_QCOMBOBOX_COMPLETER ) { - hbqt_par_QComboBox( 1 )->addItem( hbqt_par_QString( 2 ) ); + hb_retptr( ( QCompleter* ) hbqt_par_QComboBox( 1 )->completer( ) ); } /* -int count () const -*/ + * int count () const + */ HB_FUNC( QT_QCOMBOBOX_COUNT ) { - hb_retni( hbqt_par_QComboBox( 1 )->count() ); + hb_retni( hbqt_par_QComboBox( 1 )->count( ) ); } /* -int currentIndex () const -*/ + * int currentIndex () const + */ HB_FUNC( QT_QCOMBOBOX_CURRENTINDEX ) { - hb_retni( hbqt_par_QComboBox( 1 )->currentIndex() ); + hb_retni( hbqt_par_QComboBox( 1 )->currentIndex( ) ); } /* -QString currentText () const -*/ + * QString currentText () const + */ HB_FUNC( QT_QCOMBOBOX_CURRENTTEXT ) { - hb_retc( hbqt_par_QComboBox( 1 )->currentText().toLatin1().data() ); + hb_retc( hbqt_par_QComboBox( 1 )->currentText( ).toLatin1().data() ); } /* -bool duplicatesEnabled () const -*/ + * bool duplicatesEnabled () const + */ HB_FUNC( QT_QCOMBOBOX_DUPLICATESENABLED ) { - hb_retl( hbqt_par_QComboBox( 1 )->duplicatesEnabled() ); + hb_retl( hbqt_par_QComboBox( 1 )->duplicatesEnabled( ) ); } /* -bool hasFrame () const -*/ + * bool hasFrame () const + */ HB_FUNC( QT_QCOMBOBOX_HASFRAME ) { - hb_retl( hbqt_par_QComboBox( 1 )->hasFrame() ); + hb_retl( hbqt_par_QComboBox( 1 )->hasFrame( ) ); } /* -InsertPolicy insertPolicy () const -*/ + * virtual void hidePopup () + */ +HB_FUNC( QT_QCOMBOBOX_HIDEPOPUP ) +{ + hbqt_par_QComboBox( 1 )->hidePopup( ); +} + +/* + * QSize iconSize () const + */ +HB_FUNC( QT_QCOMBOBOX_ICONSIZE ) +{ + hbqt_ret_QSize( hbqt_par_QComboBox( 1 )->iconSize( ) ); +} + +/* + * InsertPolicy insertPolicy () const + */ HB_FUNC( QT_QCOMBOBOX_INSERTPOLICY ) { - hb_retni( hbqt_par_QComboBox( 1 )->insertPolicy() ); + hb_retni( hbqt_par_QComboBox( 1 )->insertPolicy( ) ); } /* -void insertSeparator( int index ) -*/ + * void insertSeparator ( int index ) + */ HB_FUNC( QT_QCOMBOBOX_INSERTSEPARATOR ) { hbqt_par_QComboBox( 1 )->insertSeparator( hb_parni( 2 ) ); } /* -bool isEditable () const -*/ + * bool isEditable () const + */ HB_FUNC( QT_QCOMBOBOX_ISEDITABLE ) { - hb_retl( hbqt_par_QComboBox( 1 )->isEditable() ); + hb_retl( hbqt_par_QComboBox( 1 )->isEditable( ) ); } /* -QAbstractItemDelegate * itemDelegate () const -*/ + * QAbstractItemDelegate * itemDelegate () const + */ HB_FUNC( QT_QCOMBOBOX_ITEMDELEGATE ) { - hb_retptr( ( QAbstractItemDelegate * ) hbqt_par_QComboBox( 1 )->itemDelegate() ); + hb_retptr( ( QAbstractItemDelegate* ) hbqt_par_QComboBox( 1 )->itemDelegate( ) ); } /* -QString itemText( int index ) const -*/ + * QString itemText ( int index ) const + */ HB_FUNC( QT_QCOMBOBOX_ITEMTEXT ) { - hb_retc( hbqt_par_QComboBox( 1 )->itemText( hb_parni( 2 ) ).toLatin1().data() ); + hb_retc( hbqt_par_QComboBox( 1 )->itemText( hb_parni( 2 )).toLatin1().data() ); } /* -QLineEdit * lineEdit () const -*/ + * QLineEdit * lineEdit () const + */ HB_FUNC( QT_QCOMBOBOX_LINEEDIT ) { - hb_retptr( ( QLineEdit* ) hbqt_par_QComboBox( 1 )->lineEdit() ); + hb_retptr( ( QLineEdit* ) hbqt_par_QComboBox( 1 )->lineEdit( ) ); } /* -int maxCount () const -*/ + * int maxCount () const + */ HB_FUNC( QT_QCOMBOBOX_MAXCOUNT ) { - hb_retni( hbqt_par_QComboBox( 1 )->maxCount() ); + hb_retni( hbqt_par_QComboBox( 1 )->maxCount( ) ); } /* -int maxVisibleItems () const -*/ + * int maxVisibleItems () const + */ HB_FUNC( QT_QCOMBOBOX_MAXVISIBLEITEMS ) { - hb_retni( hbqt_par_QComboBox( 1 )->maxVisibleItems() ); + hb_retni( hbqt_par_QComboBox( 1 )->maxVisibleItems( ) ); } /* -int minimumContentsLength () const -*/ + * int minimumContentsLength () const + */ HB_FUNC( QT_QCOMBOBOX_MINIMUMCONTENTSLENGTH ) { - hb_retni( hbqt_par_QComboBox( 1 )->minimumContentsLength() ); + hb_retni( hbqt_par_QComboBox( 1 )->minimumContentsLength( ) ); } /* -QAbstractItemModel * model () const -*/ + * QAbstractItemModel * model () const + */ HB_FUNC( QT_QCOMBOBOX_MODEL ) { - hb_retptr( ( QAbstractItemModel* ) hbqt_par_QComboBox( 1 )->model() ); + hb_retptr( ( QAbstractItemModel* ) hbqt_par_QComboBox( 1 )->model( ) ); } /* -int modelColumn () const -*/ + * int modelColumn () const + */ HB_FUNC( QT_QCOMBOBOX_MODELCOLUMN ) { - hb_retni( hbqt_par_QComboBox( 1 )->modelColumn() ); + hb_retni( hbqt_par_QComboBox( 1 )->modelColumn( ) ); } /* -void removeItem( int index ) -*/ + * void removeItem ( int index ) + */ HB_FUNC( QT_QCOMBOBOX_REMOVEITEM ) { - hbqt_par_QComboBox( 1 )->removeItem ( hb_parni( 2 ) ); + hbqt_par_QComboBox( 1 )->removeItem( hb_parni( 2 ) ); } /* -void setDuplicatesEnabled( bool enable ) -*/ + * void setCompleter ( QCompleter * completer ) + */ +HB_FUNC( QT_QCOMBOBOX_SETCOMPLETER ) +{ + hbqt_par_QComboBox( 1 )->setCompleter( hbqt_par_QCompleter( 2 ) ); +} + +/* + * void setDuplicatesEnabled ( bool enable ) + */ HB_FUNC( QT_QCOMBOBOX_SETDUPLICATESENABLED ) { hbqt_par_QComboBox( 1 )->setDuplicatesEnabled( hb_parl( 2 ) ); } /* -void setEditable( bool editable ) -*/ + * void setEditable ( bool editable ) + */ HB_FUNC( QT_QCOMBOBOX_SETEDITABLE ) { hbqt_par_QComboBox( 1 )->setEditable( hb_parl( 2 ) ); } /* -void setFrame( bool ) -*/ + * void setFrame ( bool ) + */ HB_FUNC( QT_QCOMBOBOX_SETFRAME ) { hbqt_par_QComboBox( 1 )->setFrame( hb_parl( 2 ) ); } /* -void setInsertPolicy( InsertPolicy policy ) -*/ + * void setIconSize ( const QSize & size ) + */ +HB_FUNC( QT_QCOMBOBOX_SETICONSIZE ) +{ + hbqt_par_QComboBox( 1 )->setIconSize( hbqt_const_QSize( 2 ) ); +} + +/* + * void setInsertPolicy ( InsertPolicy policy ) + */ HB_FUNC( QT_QCOMBOBOX_SETINSERTPOLICY ) { hbqt_par_QComboBox( 1 )->setInsertPolicy( ( QComboBox::InsertPolicy ) hb_parni( 2 ) ); } /* -void setItemDelegate( QAbstractItemDelegate * delegate ) -*/ + * void setItemDelegate ( QAbstractItemDelegate * delegate ) + */ HB_FUNC( QT_QCOMBOBOX_SETITEMDELEGATE ) { hbqt_par_QComboBox( 1 )->setItemDelegate( hbqt_par_QAbstractItemDelegate( 2 ) ); } /* -void setItemText( int index, const QString & text ) -*/ + * void setItemIcon ( int index, const QIcon & icon ) + */ +HB_FUNC( QT_QCOMBOBOX_SETITEMICON ) +{ + hbqt_par_QComboBox( 1 )->setItemIcon( hb_parni( 2 ), QIcon( hbqt_par_QString( 3 ) ) ); +} + +/* + * void setItemText ( int index, const QString & text ) + */ HB_FUNC( QT_QCOMBOBOX_SETITEMTEXT ) { hbqt_par_QComboBox( 1 )->setItemText( hb_parni( 2 ), hbqt_par_QString( 3 ) ); } /* -void setLineEdit( QLineEdit * edit ) -*/ + * void setLineEdit ( QLineEdit * edit ) + */ HB_FUNC( QT_QCOMBOBOX_SETLINEEDIT ) { hbqt_par_QComboBox( 1 )->setLineEdit( hbqt_par_QLineEdit( 2 ) ); } /* -void setMaxCount( int max ) -*/ + * void setMaxCount ( int max ) + */ HB_FUNC( QT_QCOMBOBOX_SETMAXCOUNT ) { hbqt_par_QComboBox( 1 )->setMaxCount( hb_parni( 2 ) ); } /* -void setMaxVisibleItems( int maxItems ) -*/ + * void setMaxVisibleItems ( int maxItems ) + */ HB_FUNC( QT_QCOMBOBOX_SETMAXVISIBLEITEMS ) { hbqt_par_QComboBox( 1 )->setMaxVisibleItems( hb_parni( 2 ) ); } /* -void setMinimumContentsLength( int characters ) -*/ + * void setMinimumContentsLength ( int characters ) + */ HB_FUNC( QT_QCOMBOBOX_SETMINIMUMCONTENTSLENGTH ) { hbqt_par_QComboBox( 1 )->setMinimumContentsLength( hb_parni( 2 ) ); } /* -void setModel( QAbstractItemModel * model ) -*/ + * void setModel ( QAbstractItemModel * model ) + */ HB_FUNC( QT_QCOMBOBOX_SETMODEL ) { hbqt_par_QComboBox( 1 )->setModel( hbqt_par_QAbstractItemModel( 2 ) ); } /* -void setModelColumn( int visibleColumn ) -*/ + * void setModelColumn ( int visibleColumn ) + */ HB_FUNC( QT_QCOMBOBOX_SETMODELCOLUMN ) { hbqt_par_QComboBox( 1 )->setModelColumn( hb_parni( 2 ) ); } /* -void setSizeAdjustPolicy( SizeAdjustPolicy policy ) -*/ + * void setSizeAdjustPolicy ( SizeAdjustPolicy policy ) + */ HB_FUNC( QT_QCOMBOBOX_SETSIZEADJUSTPOLICY ) { hbqt_par_QComboBox( 1 )->setSizeAdjustPolicy( ( QComboBox::SizeAdjustPolicy ) hb_parni( 2 ) ); } /* -void setView( QAbstractItemView * itemView ) -*/ + * void setValidator ( const QValidator * validator ) + */ +HB_FUNC( QT_QCOMBOBOX_SETVALIDATOR ) +{ + hbqt_par_QComboBox( 1 )->setValidator( hbqt_par_QValidator( 2 ) ); +} + +/* + * void setView ( QAbstractItemView * itemView ) + */ HB_FUNC( QT_QCOMBOBOX_SETVIEW ) { hbqt_par_QComboBox( 1 )->setView( hbqt_par_QAbstractItemView( 2 ) ); } /* -SizeAdjustPolicy sizeAdjustPolicy () const -*/ + * virtual void showPopup () + */ +HB_FUNC( QT_QCOMBOBOX_SHOWPOPUP ) +{ + hbqt_par_QComboBox( 1 )->showPopup( ); +} + +/* + * SizeAdjustPolicy sizeAdjustPolicy () const + */ HB_FUNC( QT_QCOMBOBOX_SIZEADJUSTPOLICY ) { - hb_retni( hbqt_par_QComboBox( 1 )->sizeAdjustPolicy() ); + hb_retni( hbqt_par_QComboBox( 1 )->sizeAdjustPolicy( ) ); } /* -QAbstractItemView * view () const -*/ + * const QValidator * validator () const + */ +HB_FUNC( QT_QCOMBOBOX_VALIDATOR ) +{ + hb_retptr( ( QValidator* ) hbqt_par_QComboBox( 1 )->validator( ) ); +} + +/* + * QAbstractItemView * view () const + */ HB_FUNC( QT_QCOMBOBOX_VIEW ) { - hb_retptr( ( QAbstractItemView* ) hbqt_par_QComboBox( 1 )->view() ); + hb_retptr( ( QAbstractItemView* ) hbqt_par_QComboBox( 1 )->view( ) ); } -/* -void clear () -*/ -HB_FUNC( QT_QCOMBOBOX_CLEAR ) -{ - hbqt_par_QComboBox( 1 )->clear(); -} - -/* -void clearEditText () -*/ -HB_FUNC( QT_QCOMBOBOX_CLEAREDITTEXT ) -{ - hbqt_par_QComboBox( 1 )->clearEditText(); -} - -/* -void setCurrentIndex( int index ) -*/ -HB_FUNC( QT_QCOMBOBOX_SETCURRENTINDEX ) -{ - hbqt_par_QComboBox( 1 )->setCurrentIndex( hb_parni( 2 ) ); -} - -/* -void setEditText( const QString & text ) -*/ -HB_FUNC( QT_QCOMBOBOX_SETEDITTEXT ) -{ - hbqt_par_QComboBox( 1 )->setEditText( hbqt_par_QString( 2 ) ); -} /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qcommandlinkbutton.cpp b/harbour/contrib/hbqt/hbqt_qcommandlinkbutton.cpp index 8ee1766e71..518aaf3ab3 100644 --- a/harbour/contrib/hbqt/hbqt_qcommandlinkbutton.cpp +++ b/harbour/contrib/hbqt/hbqt_qcommandlinkbutton.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,52 +55,43 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -QCommandLinkButton ( QWidget * parent = 0 ) -QCommandLinkButton ( const QString & text, QWidget * parent = 0 ) -QCommandLinkButton ( const QString & text, const QString & description, QWidget * parent = 0 ) -*/ + * QCommandLinkButton ( QWidget * parent = 0 ) + * QCommandLinkButton ( const QString & text, QWidget * parent = 0 ) + * QCommandLinkButton ( const QString & text, const QString & description, QWidget * parent = 0 ) + */ HB_FUNC( QT_QCOMMANDLINKBUTTON ) { hb_retptr( ( QCommandLinkButton* ) new QCommandLinkButton( hbqt_par_QWidget( 1 ) ) ); } /* -QString description () const -*/ + * QString description () const + */ HB_FUNC( QT_QCOMMANDLINKBUTTON_DESCRIPTION ) { - hb_retc( hbqt_par_QCommandLinkButton( 1 )->description().toLatin1().data() ); + hb_retc( hbqt_par_QCommandLinkButton( 1 )->description( ).toLatin1().data() ); } /* -void setDescription ( const QString & description ) -*/ + * void setDescription ( const QString & description ) + */ HB_FUNC( QT_QCOMMANDLINKBUTTON_SETDESCRIPTION ) { hbqt_par_QCommandLinkButton( 1 )->setDescription( hbqt_par_QString( 2 ) ); } -/* -bool isFlat () const -*/ -HB_FUNC( QT_QCOMMANDLINKBUTTON_ISFLAT ) -{ - hb_retl( hbqt_par_QCommandLinkButton( 1 )->isFlat() ); -} - -/* -void setFlat ( bool ) -*/ -HB_FUNC( QT_QCOMMANDLINKBUTTON_SETFLAT ) -{ - hbqt_par_QCommandLinkButton( 1 )->setFlat( hb_parl( 2 ) ); -} /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qcoreapplication.cpp b/harbour/contrib/hbqt/hbqt_qcoreapplication.cpp index 5502775755..8ea0877ee7 100644 --- a/harbour/contrib/hbqt/hbqt_qcoreapplication.cpp +++ b/harbour/contrib/hbqt/hbqt_qcoreapplication.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,9 +55,50 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 1/2 [ 50.00% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * EventFilter setEventFilter ( EventFilter filter ) + * + * *** Commented out protos which construct fine but do not compile *** + * + * // bool filterEvent ( void * message, long * result ) + * // virtual bool winEventFilter ( MSG * msg, long * result ) + */ + #include -/*----------------------------------------------------------------------*/ + +/* + * QCoreApplication ( int & argc, char ** argv ) + * ~QCoreApplication () + */ +#if 0 +HB_FUNC( QT_QCOREAPPLICATION ) +{ + +} #endif + +/* + * virtual bool notify ( QObject * receiver, QEvent * event ) + */ +HB_FUNC( QT_QCOREAPPLICATION_NOTIFY ) +{ + hb_retl( hbqt_par_QCoreApplication( 1 )->notify( hbqt_par_QObject( 2 ), hbqt_par_QEvent( 3 ) ) ); +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qcqlendarwidget.cpp b/harbour/contrib/hbqt/hbqt_qcqlendarwidget.cpp deleted file mode 100644 index 0830306721..0000000000 --- a/harbour/contrib/hbqt/hbqt_qcqlendarwidget.cpp +++ /dev/null @@ -1,320 +0,0 @@ -/* - * $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 - -/*----------------------------------------------------------------------*/ -/* -QCalendarWidget( QWidget * parent = 0 ) -*/ -HB_FUNC( QT_QCALENDARWIDGET ) -{ - QCalendarWidget * cal = NULL; - QWidget * parent = ( QWidget* ) hb_parptr( 1 ); - cal = new QCalendarWidget( parent ); - hb_retptr( ( QCalendarWidget* ) cal ); -} - -/* -int dateEditAcceptDelay () const -*/ -HB_FUNC( QT_QCALENDARWIDGET_DATEEDITACCEPTDELAY ) -{ - QCalendarWidget * par1 = ( QCalendarWidget * ) hb_parptr( 1 ); - int i = par1->dateEditAcceptDelay(); - hb_retni( i ); -} - -/* -Qt::DayOfWeek firstDayOfWeek () const -*/ -HB_FUNC( QT_QCALENDARWIDGET_FIRSTDAYOFWEEK ) -{ - QCalendarWidget * par1 = ( QCalendarWidget * ) hb_parptr( 1 ); - int i = par1->firstDayOfWeek(); - hb_retni( i ); -} - -/* -HorizontalHeaderFormat horizontalHeaderFormat () const -*/ -HB_FUNC( QT_QCALENDARWIDGET_HORIZONTALHEADERFORMAT ) -{ - QCalendarWidget * par1 = ( QCalendarWidget * ) hb_parptr( 1 ); - int i = par1->horizontalHeaderFormat(); - hb_retni( i ); -} - -/* -bool isDateEditEnabled () const -*/ -HB_FUNC( QT_QCALENDARWIDGET_ISDATEEDITENABLED ) -{ - QCalendarWidget * par1 = ( QCalendarWidget * ) hb_parptr( 1 ); - bool b = par1->isDateEditEnabled(); - hb_retl( b ); -} - -/* -bool isGridVisible () const -*/ -HB_FUNC( QT_QCALENDARWIDGET_ISGRIDVISIBLE ) -{ - QCalendarWidget * par1 = ( QCalendarWidget * ) hb_parptr( 1 ); - bool b = par1->isGridVisible(); - hb_retl( b ); -} - -/* -bool isNavigationBarVisible () const -*/ -HB_FUNC( QT_QCALENDARWIDGET_ISNAVIGATIONBARVISIBLE ) -{ - QCalendarWidget * par1 = ( QCalendarWidget * ) hb_parptr( 1 ); - bool b = par1->isNavigationBarVisible(); - hb_retl( b ); -} - -/* -int monthShown () const -*/ -HB_FUNC( QT_QCALENDARWIDGET_MONTHSHOWN ) -{ - QCalendarWidget * par1 = ( QCalendarWidget * ) hb_parptr( 1 ); - int i = par1->monthShown(); - hb_retni( i ); -} - -/* -SelectionMode selectionMode () const -*/ -HB_FUNC( QT_QCALENDARWIDGET_SELECTIONMODE ) -{ - QCalendarWidget * par1 = ( QCalendarWidget * ) hb_parptr( 1 ); - int i = par1->selectionMode(); - hb_retni( i ); -} - -/* -void setDateEditAcceptDelay( int delay ) -*/ -HB_FUNC( QT_QCALENDARWIDGET_SETDATEEDITACCEPTDELAY ) -{ - QCalendarWidget * par1 = ( QCalendarWidget * ) hb_parptr( 1 ); - int par2 = hb_parni( 2 ); - par1->setDateEditAcceptDelay( par2 ); -} - -/* -void setDateEditEnabled( bool enable ) -*/ -HB_FUNC( QT_QCALENDARWIDGET_SETDATEEDITENABLED ) -{ - QCalendarWidget * par1 = ( QCalendarWidget * ) hb_parptr( 1 ); - bool par2 = hb_parl( 2 ); - par1->setDateEditEnabled( par2 ); -} - -/* -void setFirstDayOfWeek( Qt::DayOfWeek dayOfWeek ) -*/ -HB_FUNC( QT_QCALENDARWIDGET_SETFIRSTDAYOFWEEK ) -{ - QCalendarWidget * par1 = ( QCalendarWidget * ) hb_parptr( 1 ); - int par2 = hb_parni( 2 ); - par1->setFirstDayOfWeek( ( Qt::DayOfWeek ) par2 ); -} - -/* -void setHorizontalHeaderFormat( HorizontalHeaderFormat format ) -*/ -HB_FUNC( QT_QCALENDARWIDGET_SETHORIZONTALHEADERFORMAT ) -{ - QCalendarWidget * par1 = ( QCalendarWidget * ) hb_parptr( 1 ); - int par2 = hb_parni( 2 ); - par1->setHorizontalHeaderFormat( ( QCalendarWidget::HorizontalHeaderFormat ) par2 ); -} - -/* -void setSelectionMode( SelectionMode mode ) -*/ -HB_FUNC( QT_QCALENDARWIDGET_SETSELECTIONMODE ) -{ - QCalendarWidget * par1 = ( QCalendarWidget * ) hb_parptr( 1 ); - int par2 = hb_parni( 2 ); - par1->setSelectionMode( ( QCalendarWidget::SelectionMode ) par2 ); -} - -/* -void setVerticalHeaderFormat( VerticalHeaderFormat format ) -*/ -HB_FUNC( QT_QCALENDARWIDGET_SETVERTICALHEADERFORMAT ) -{ - QCalendarWidget * par1 = ( QCalendarWidget * ) hb_parptr( 1 ); - int par2 = hb_parni( 2 ); - par1->setVerticalHeaderFormat( ( QCalendarWidget::VerticalHeaderFormat ) par2 ); -} - -/* -VerticalHeaderFormat verticalHeaderFormat () const -*/ -HB_FUNC( QT_QCALENDARWIDGET_VERTICALHEADERFORMAT ) -{ - QCalendarWidget * par1 = ( QCalendarWidget * ) hb_parptr( 1 ); - int i = par1->verticalHeaderFormat(); - hb_retni( i ); -} - -/* -int yearShown () const -*/ -HB_FUNC( QT_QCALENDARWIDGET_YEARSHOWN ) -{ - QCalendarWidget * par1 = ( QCalendarWidget * ) hb_parptr( 1 ); - int i = par1->yearShown(); - hb_retni( i ); -} - -/* -void setCurrentPage( int year, int month ) -*/ -HB_FUNC( QT_QCALENDARWIDGET_SETCURRENTPAGE ) -{ - QCalendarWidget * par1 = ( QCalendarWidget * ) hb_parptr( 1 ); - int par2 = hb_parni( 2 ); - int par3 = hb_parni( 3 ); - par1->setCurrentPage( par2, par3 ); -} - -/* -void setGridVisible( bool show ) -*/ -HB_FUNC( QT_QCALENDARWIDGET_SETGRIDVISIBLE ) -{ - QCalendarWidget * par1 = ( QCalendarWidget * ) hb_parptr( 1 ); - bool par2 = hb_parl( 2 ); - par1->setGridVisible( par2 ); -} - -/* -void setNavigationBarVisible( bool visible ) -*/ -HB_FUNC( QT_QCALENDARWIDGET_SETNAVIGATIONBARVISIBLE ) -{ - QCalendarWidget * par1 = ( QCalendarWidget * ) hb_parptr( 1 ); - bool par2 = hb_parl( 2 ); - par1->setNavigationBarVisible( par2 ); -} - -/* -void showNextMonth () -*/ -HB_FUNC( QT_QCALENDARWIDGET_SHOWNEXTMONTH ) -{ - QCalendarWidget * par1 = ( QCalendarWidget * ) hb_parptr( 1 ); - par1->showNextMonth(); -} - -/* -void showNextYear () -*/ -HB_FUNC( QT_QCALENDARWIDGET_SHOWNEXTYEAR ) -{ - QCalendarWidget * par1 = ( QCalendarWidget * ) hb_parptr( 1 ); - par1->showNextYear(); -} - -/* -void showPreviousMonth () -*/ -HB_FUNC( QT_QCALENDARWIDGET_SHOWPREVIOUSMONTH ) -{ - QCalendarWidget * par1 = ( QCalendarWidget * ) hb_parptr( 1 ); - par1->showPreviousMonth(); -} - -/* -void showPreviousYear () -*/ -HB_FUNC( QT_QCALENDARWIDGET_SHOWPREVIOUSYEAR ) -{ - QCalendarWidget * par1 = ( QCalendarWidget * ) hb_parptr( 1 ); - par1->showPreviousYear(); -} - -/* -void showSelectedDate () -*/ -HB_FUNC( QT_QCALENDARWIDGET_SHOWSELECTEDDATE ) -{ - QCalendarWidget * par1 = ( QCalendarWidget * ) hb_parptr( 1 ); - par1->showSelectedDate(); -} - -/* -void showToday () -*/ -HB_FUNC( QT_QCALENDARWIDGET_SHOWTODAY ) -{ - QCalendarWidget * par1 = ( QCalendarWidget * ) hb_parptr( 1 ); - par1->showToday(); -} - -/*----------------------------------------------------------------------*/ -#endif diff --git a/harbour/contrib/hbqt/hbqt_qdateedit.cpp b/harbour/contrib/hbqt/hbqt_qdateedit.cpp index ff75ead9b8..a9d6bda96b 100644 --- a/harbour/contrib/hbqt/hbqt_qdateedit.cpp +++ b/harbour/contrib/hbqt/hbqt_qdateedit.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,19 +55,26 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -QDateEdit ( QWidget * parent = 0 ) -QDateEdit ( const QDate & date, QWidget * parent = 0 ) -*/ + * QDateEdit ( QWidget * parent = 0 ) + * QDateEdit ( const QDate & date, QWidget * parent = 0 ) + */ HB_FUNC( QT_QDATEEDIT ) { hb_retptr( ( QDateEdit* ) new QDateEdit( hbqt_par_QWidget( 1 ) ) ); } + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qdatetimeedit.cpp b/harbour/contrib/hbqt/hbqt_qdatetimeedit.cpp index 3c09344f5f..f782773d5b 100644 --- a/harbour/contrib/hbqt/hbqt_qdatetimeedit.cpp +++ b/harbour/contrib/hbqt/hbqt_qdatetimeedit.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,21 +55,238 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 23/41 [ 56.10% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * QDate date () const + * QDateTime dateTime () const + * QDate maximumDate () const + * QDateTime maximumDateTime () const + * QTime maximumTime () const + * QDate minimumDate () const + * QDateTime minimumDateTime () const + * QTime minimumTime () const + * void setDateRange ( const QDate & min, const QDate & max ) + * void setDateTimeRange ( const QDateTime & min, const QDateTime & max ) + * void setMaximumDate ( const QDate & max ) + * void setMaximumDateTime ( const QDateTime & dt ) + * void setMaximumTime ( const QTime & max ) + * void setMinimumDate ( const QDate & min ) + * void setMinimumDateTime ( const QDateTime & dt ) + * void setMinimumTime ( const QTime & min ) + * void setTimeRange ( const QTime & min, const QTime & max ) + * QTime time () const + */ + #include -/*----------------------------------------------------------------------*/ + /* -QDateTimeEdit ( QWidget * parent = 0 ) -QDateTimeEdit ( const QDateTime & datetime, QWidget * parent = 0 ) -QDateTimeEdit ( const QDate & date, QWidget * parent = 0 ) -QDateTimeEdit ( const QTime & time, QWidget * parent = 0 ) -*/ + * QDateTimeEdit ( QWidget * parent = 0 ) + * QDateTimeEdit ( const QDateTime & datetime, QWidget * parent = 0 ) + * QDateTimeEdit ( const QDate & date, QWidget * parent = 0 ) + * QDateTimeEdit ( const QTime & time, QWidget * parent = 0 ) + */ HB_FUNC( QT_QDATETIMEEDIT ) { hb_retptr( ( QDateTimeEdit* ) new QDateTimeEdit( hbqt_par_QWidget( 1 ) ) ); } +/* + * bool calendarPopup () const + */ +HB_FUNC( QT_QDATETIMEEDIT_CALENDARPOPUP ) +{ + hb_retl( hbqt_par_QDateTimeEdit( 1 )->calendarPopup( ) ); +} + +/* + * QCalendarWidget * calendarWidget () const + */ +HB_FUNC( QT_QDATETIMEEDIT_CALENDARWIDGET ) +{ + hb_retptr( ( QCalendarWidget* ) hbqt_par_QDateTimeEdit( 1 )->calendarWidget( ) ); +} + +/* + * void clearMaximumDate () + */ +HB_FUNC( QT_QDATETIMEEDIT_CLEARMAXIMUMDATE ) +{ + hbqt_par_QDateTimeEdit( 1 )->clearMaximumDate( ); +} + +/* + * void clearMaximumDateTime () + */ +HB_FUNC( QT_QDATETIMEEDIT_CLEARMAXIMUMDATETIME ) +{ + hbqt_par_QDateTimeEdit( 1 )->clearMaximumDateTime( ); +} + +/* + * void clearMaximumTime () + */ +HB_FUNC( QT_QDATETIMEEDIT_CLEARMAXIMUMTIME ) +{ + hbqt_par_QDateTimeEdit( 1 )->clearMaximumTime( ); +} + +/* + * void clearMinimumDate () + */ +HB_FUNC( QT_QDATETIMEEDIT_CLEARMINIMUMDATE ) +{ + hbqt_par_QDateTimeEdit( 1 )->clearMinimumDate( ); +} + +/* + * void clearMinimumDateTime () + */ +HB_FUNC( QT_QDATETIMEEDIT_CLEARMINIMUMDATETIME ) +{ + hbqt_par_QDateTimeEdit( 1 )->clearMinimumDateTime( ); +} + +/* + * void clearMinimumTime () + */ +HB_FUNC( QT_QDATETIMEEDIT_CLEARMINIMUMTIME ) +{ + hbqt_par_QDateTimeEdit( 1 )->clearMinimumTime( ); +} + +/* + * Section currentSection () const + */ +HB_FUNC( QT_QDATETIMEEDIT_CURRENTSECTION ) +{ + hb_retni( hbqt_par_QDateTimeEdit( 1 )->currentSection( ) ); +} + +/* + * int currentSectionIndex () const + */ +HB_FUNC( QT_QDATETIMEEDIT_CURRENTSECTIONINDEX ) +{ + hb_retni( hbqt_par_QDateTimeEdit( 1 )->currentSectionIndex( ) ); +} + +/* + * QString displayFormat () const + */ +HB_FUNC( QT_QDATETIMEEDIT_DISPLAYFORMAT ) +{ + hb_retc( hbqt_par_QDateTimeEdit( 1 )->displayFormat( ).toLatin1().data() ); +} + +/* + * Sections displayedSections () const + */ +HB_FUNC( QT_QDATETIMEEDIT_DISPLAYEDSECTIONS ) +{ + hb_retni( hbqt_par_QDateTimeEdit( 1 )->displayedSections( ) ); +} + +/* + * Section sectionAt ( int index ) const + */ +HB_FUNC( QT_QDATETIMEEDIT_SECTIONAT ) +{ + hb_retni( hbqt_par_QDateTimeEdit( 1 )->sectionAt( hb_parni( 2 ) ) ); +} + +/* + * int sectionCount () const + */ +HB_FUNC( QT_QDATETIMEEDIT_SECTIONCOUNT ) +{ + hb_retni( hbqt_par_QDateTimeEdit( 1 )->sectionCount( ) ); +} + +/* + * QString sectionText ( Section section ) const + */ +HB_FUNC( QT_QDATETIMEEDIT_SECTIONTEXT ) +{ + hb_retc( hbqt_par_QDateTimeEdit( 1 )->sectionText( ( QDateTimeEdit::Section ) hb_parni( 2 )).toLatin1().data() ); +} + +/* + * void setCalendarPopup ( bool enable ) + */ +HB_FUNC( QT_QDATETIMEEDIT_SETCALENDARPOPUP ) +{ + hbqt_par_QDateTimeEdit( 1 )->setCalendarPopup( hb_parl( 2 ) ); +} + +/* + * void setCalendarWidget ( QCalendarWidget * calendarWidget ) + */ +HB_FUNC( QT_QDATETIMEEDIT_SETCALENDARWIDGET ) +{ + hbqt_par_QDateTimeEdit( 1 )->setCalendarWidget( hbqt_par_QCalendarWidget( 2 ) ); +} + +/* + * void setCurrentSection ( Section section ) + */ +HB_FUNC( QT_QDATETIMEEDIT_SETCURRENTSECTION ) +{ + hbqt_par_QDateTimeEdit( 1 )->setCurrentSection( ( QDateTimeEdit::Section ) hb_parni( 2 ) ); +} + +/* + * void setCurrentSectionIndex ( int index ) + */ +HB_FUNC( QT_QDATETIMEEDIT_SETCURRENTSECTIONINDEX ) +{ + hbqt_par_QDateTimeEdit( 1 )->setCurrentSectionIndex( hb_parni( 2 ) ); +} + +/* + * void setDisplayFormat ( const QString & format ) + */ +HB_FUNC( QT_QDATETIMEEDIT_SETDISPLAYFORMAT ) +{ + hbqt_par_QDateTimeEdit( 1 )->setDisplayFormat( hbqt_par_QString( 2 ) ); +} + +/* + * void setSelectedSection ( Section section ) + */ +HB_FUNC( QT_QDATETIMEEDIT_SETSELECTEDSECTION ) +{ + hbqt_par_QDateTimeEdit( 1 )->setSelectedSection( ( QDateTimeEdit::Section ) hb_parni( 2 ) ); +} + +/* + * void setTimeSpec ( Qt::TimeSpec spec ) + */ +HB_FUNC( QT_QDATETIMEEDIT_SETTIMESPEC ) +{ + hbqt_par_QDateTimeEdit( 1 )->setTimeSpec( ( Qt::TimeSpec ) hb_parni( 2 ) ); +} + +/* + * Qt::TimeSpec timeSpec () const + */ +HB_FUNC( QT_QDATETIMEEDIT_TIMESPEC ) +{ + hb_retni( hbqt_par_QDateTimeEdit( 1 )->timeSpec( ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qdial.cpp b/harbour/contrib/hbqt/hbqt_qdial.cpp index 98573d945a..24d0d39aaa 100644 --- a/harbour/contrib/hbqt/hbqt_qdial.cpp +++ b/harbour/contrib/hbqt/hbqt_qdial.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,18 +55,66 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -QDial ( QWidget * parent = 0 ) -*/ + * QDial ( QWidget * parent = 0 ) + * ~QDial () + */ HB_FUNC( QT_QDIAL ) { hb_retptr( ( QDial* ) new QDial( hbqt_par_QWidget( 1 ) ) ); } +/* + * int notchSize () const + */ +HB_FUNC( QT_QDIAL_NOTCHSIZE ) +{ + hb_retni( hbqt_par_QDial( 1 )->notchSize( ) ); +} + +/* + * qreal notchTarget () const + */ +HB_FUNC( QT_QDIAL_NOTCHTARGET ) +{ + hb_retnd( hbqt_par_QDial( 1 )->notchTarget( ) ); +} + +/* + * bool notchesVisible () const + */ +HB_FUNC( QT_QDIAL_NOTCHESVISIBLE ) +{ + hb_retl( hbqt_par_QDial( 1 )->notchesVisible( ) ); +} + +/* + * void setNotchTarget ( double target ) + */ +HB_FUNC( QT_QDIAL_SETNOTCHTARGET ) +{ + hbqt_par_QDial( 1 )->setNotchTarget( hb_parnd( 2 ) ); +} + +/* + * bool wrapping () const + */ +HB_FUNC( QT_QDIAL_WRAPPING ) +{ + hb_retl( hbqt_par_QDial( 1 )->wrapping( ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qdialog.cpp b/harbour/contrib/hbqt/hbqt_qdialog.cpp index 21028ef0c2..54a64bf5eb 100644 --- a/harbour/contrib/hbqt/hbqt_qdialog.cpp +++ b/harbour/contrib/hbqt/hbqt_qdialog.cpp @@ -1,41 +1,42 @@ /* * $Id$ */ - -/* + +/* * Harbour Project source code: * QT wrapper main header - * - * Copyright 2009 {list of individual authors and e-mail addresses} + * + * 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 @@ -43,7 +44,7 @@ * 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. @@ -54,106 +55,106 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -QDialog ( QWidget * parent = 0, Qt::WindowFlags f = 0 ) -*/ + * QDialog ( QWidget * parent = 0, Qt::WindowFlags f = 0 ) + * ~QDialog () + */ HB_FUNC( QT_QDIALOG ) { hb_retptr( new QDialog( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ); } /* -bool isModal () const -*/ -HB_FUNC( QT_QDIALOG_ISMODAL ) + * bool isSizeGripEnabled () const + */ +HB_FUNC( QT_QDIALOG_ISSIZEGRIPENABLED ) { - hb_retl( hbqt_par_QDialog( 1 )->isModal() ); + hb_retl( hbqt_par_QDialog( 1 )->isSizeGripEnabled( ) ); } /* -void setModal ( bool modal ) -*/ + * int result () const + */ +HB_FUNC( QT_QDIALOG_RESULT ) +{ + hb_retni( hbqt_par_QDialog( 1 )->result( ) ); +} + +/* + * void setModal ( bool modal ) + */ HB_FUNC( QT_QDIALOG_SETMODAL ) { hbqt_par_QDialog( 1 )->setModal( hb_parl( 2 ) ); } /* -bool isSizeGripEnabled () const -*/ -HB_FUNC( QT_QDIALOG_ISSIZEGRIPENABLED ) + * void setResult ( int i ) + */ +HB_FUNC( QT_QDIALOG_SETRESULT ) { - hb_retl( hbqt_par_QDialog( 1 )->isSizeGripEnabled() ); + hbqt_par_QDialog( 1 )->setResult( hb_parni( 2 ) ); } /* -void setSizeGripEnabled ( bool ) -*/ + * void setSizeGripEnabled ( bool ) + */ HB_FUNC( QT_QDIALOG_SETSIZEGRIPENABLED ) { hbqt_par_QDialog( 1 )->setSizeGripEnabled( hb_parl( 2 ) ); } /* -void QDialog::accept () [virtual slot] -*/ + * virtual void accept () + */ HB_FUNC( QT_QDIALOG_ACCEPT ) { - hbqt_par_QDialog( 1 )->accept(); + hbqt_par_QDialog( 1 )->accept( ); } /* -void QDialog::done ( int r ) [virtual slot] -*/ + * virtual void done ( int r ) + */ HB_FUNC( QT_QDIALOG_DONE ) { hbqt_par_QDialog( 1 )->done( hb_parni( 2 ) ); } /* -int QDialog::exec () [slot] -*/ + * int exec () + */ HB_FUNC( QT_QDIALOG_EXEC ) { - hb_retni( hbqt_par_QDialog( 1 )->exec() ); + hb_retni( hbqt_par_QDialog( 1 )->exec( ) ); } /* -void QDialog::open () [slot] -*/ + * void open () + */ HB_FUNC( QT_QDIALOG_OPEN ) { - hbqt_par_QDialog( 1 )->open(); + hbqt_par_QDialog( 1 )->open( ); } /* -void QDialog::reject () [virtual slot] -*/ + * virtual void reject () + */ HB_FUNC( QT_QDIALOG_REJECT ) { - hbqt_par_QDialog( 1 )->reject(); + hbqt_par_QDialog( 1 )->reject( ); } -/* -int QDialog::result () const -*/ -HB_FUNC( QT_QDIALOG_RESULT ) -{ - hb_retni( hbqt_par_QDialog( 1 )->result() ); -} - -/* -void QDialog::setResult ( int i ) -*/ -HB_FUNC( QT_QDIALOG_SETRESULT ) -{ - hbqt_par_QDialog( 1 )->setResult( hb_parni( 2 ) ); -} /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qdoublespinbox.cpp b/harbour/contrib/hbqt/hbqt_qdoublespinbox.cpp index 4bb4e592c3..1f765e947b 100644 --- a/harbour/contrib/hbqt/hbqt_qdoublespinbox.cpp +++ b/harbour/contrib/hbqt/hbqt_qdoublespinbox.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,18 +55,161 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -QDoubleSpinBox ( QWidget * parent = 0 ) -*/ + * QDoubleSpinBox ( QWidget * parent = 0 ) + */ HB_FUNC( QT_QDOUBLESPINBOX ) { hb_retptr( ( QDoubleSpinBox* ) new QDoubleSpinBox( hbqt_par_QWidget( 1 ) ) ); } +/* + * QString cleanText () const + */ +HB_FUNC( QT_QDOUBLESPINBOX_CLEANTEXT ) +{ + hb_retc( hbqt_par_QDoubleSpinBox( 1 )->cleanText( ).toLatin1().data() ); +} + +/* + * int decimals () const + */ +HB_FUNC( QT_QDOUBLESPINBOX_DECIMALS ) +{ + hb_retni( hbqt_par_QDoubleSpinBox( 1 )->decimals( ) ); +} + +/* + * double maximum () const + */ +HB_FUNC( QT_QDOUBLESPINBOX_MAXIMUM ) +{ + hb_retnd( hbqt_par_QDoubleSpinBox( 1 )->maximum( ) ); +} + +/* + * double minimum () const + */ +HB_FUNC( QT_QDOUBLESPINBOX_MINIMUM ) +{ + hb_retnd( hbqt_par_QDoubleSpinBox( 1 )->minimum( ) ); +} + +/* + * QString prefix () const + */ +HB_FUNC( QT_QDOUBLESPINBOX_PREFIX ) +{ + hb_retc( hbqt_par_QDoubleSpinBox( 1 )->prefix( ).toLatin1().data() ); +} + +/* + * void setDecimals ( int prec ) + */ +HB_FUNC( QT_QDOUBLESPINBOX_SETDECIMALS ) +{ + hbqt_par_QDoubleSpinBox( 1 )->setDecimals( hb_parni( 2 ) ); +} + +/* + * void setMaximum ( double max ) + */ +HB_FUNC( QT_QDOUBLESPINBOX_SETMAXIMUM ) +{ + hbqt_par_QDoubleSpinBox( 1 )->setMaximum( hb_parnd( 2 ) ); +} + +/* + * void setMinimum ( double min ) + */ +HB_FUNC( QT_QDOUBLESPINBOX_SETMINIMUM ) +{ + hbqt_par_QDoubleSpinBox( 1 )->setMinimum( hb_parnd( 2 ) ); +} + +/* + * void setPrefix ( const QString & prefix ) + */ +HB_FUNC( QT_QDOUBLESPINBOX_SETPREFIX ) +{ + hbqt_par_QDoubleSpinBox( 1 )->setPrefix( hbqt_par_QString( 2 ) ); +} + +/* + * void setRange ( double minimum, double maximum ) + */ +HB_FUNC( QT_QDOUBLESPINBOX_SETRANGE ) +{ + hbqt_par_QDoubleSpinBox( 1 )->setRange( hb_parnd( 2 ), hb_parnd( 3 ) ); +} + +/* + * void setSingleStep ( double val ) + */ +HB_FUNC( QT_QDOUBLESPINBOX_SETSINGLESTEP ) +{ + hbqt_par_QDoubleSpinBox( 1 )->setSingleStep( hb_parnd( 2 ) ); +} + +/* + * void setSuffix ( const QString & suffix ) + */ +HB_FUNC( QT_QDOUBLESPINBOX_SETSUFFIX ) +{ + hbqt_par_QDoubleSpinBox( 1 )->setSuffix( hbqt_par_QString( 2 ) ); +} + +/* + * double singleStep () const + */ +HB_FUNC( QT_QDOUBLESPINBOX_SINGLESTEP ) +{ + hb_retnd( hbqt_par_QDoubleSpinBox( 1 )->singleStep( ) ); +} + +/* + * QString suffix () const + */ +HB_FUNC( QT_QDOUBLESPINBOX_SUFFIX ) +{ + hb_retc( hbqt_par_QDoubleSpinBox( 1 )->suffix( ).toLatin1().data() ); +} + +/* + * virtual QString textFromValue ( double value ) const + */ +HB_FUNC( QT_QDOUBLESPINBOX_TEXTFROMVALUE ) +{ + hb_retc( hbqt_par_QDoubleSpinBox( 1 )->textFromValue( hb_parnd( 2 )).toLatin1().data() ); +} + +/* + * double value () const + */ +HB_FUNC( QT_QDOUBLESPINBOX_VALUE ) +{ + hb_retnd( hbqt_par_QDoubleSpinBox( 1 )->value( ) ); +} + +/* + * virtual double valueFromText ( const QString & text ) const + */ +HB_FUNC( QT_QDOUBLESPINBOX_VALUEFROMTEXT ) +{ + hb_retnd( hbqt_par_QDoubleSpinBox( 1 )->valueFromText( hbqt_par_QString( 2 ) ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qerrormessage.cpp b/harbour/contrib/hbqt/hbqt_qerrormessage.cpp index db39b9e48f..5cd7e6de3a 100644 --- a/harbour/contrib/hbqt/hbqt_qerrormessage.cpp +++ b/harbour/contrib/hbqt/hbqt_qerrormessage.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,18 +55,26 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -QErrorMessage ( QWidget * parent = 0 ) -*/ + * QErrorMessage ( QWidget * parent = 0 ) + * ~QErrorMessage () + */ HB_FUNC( QT_QERRORMESSAGE ) { hb_retptr( ( QErrorMessage* ) new QErrorMessage( hbqt_par_QWidget( 1 ) ) ); } + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qfiledialog.cpp b/harbour/contrib/hbqt/hbqt_qfiledialog.cpp index fe12936f75..132994e6dc 100644 --- a/harbour/contrib/hbqt/hbqt_qfiledialog.cpp +++ b/harbour/contrib/hbqt/hbqt_qfiledialog.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,19 +55,334 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 36/47 [ 76.60% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * QDir directory () const + * QStringList history () const + * QStringList nameFilters () const + * bool restoreState ( const QByteArray & state ) + * QByteArray saveState () const + * QStringList selectedFiles () const + * void setDirectory ( const QDir & directory ) + * void setHistory ( const QStringList & paths ) + * void setNameFilters ( const QStringList & filters ) + * void setSidebarUrls ( const QList & urls ) + * QList sidebarUrls () const + */ + #include -/*----------------------------------------------------------------------*/ + /* -QFileDialog ( QWidget * parent, Qt::WindowFlags flags ) -QFileDialog ( QWidget * parent = 0, const QString & caption = QString(), const QString & directory = QString(), const QString & filter = QString() ) -*/ + * QFileDialog ( QWidget * parent, Qt::WindowFlags flags ) + * QFileDialog ( QWidget * parent = 0, const QString & caption = QString(), const QString & directory = QString(), const QString & filter = QString() ) + * ~QFileDialog () + */ HB_FUNC( QT_QFILEDIALOG ) { hb_retptr( ( QFileDialog* ) new QFileDialog( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ); } +/* + * AcceptMode acceptMode () const + */ +HB_FUNC( QT_QFILEDIALOG_ACCEPTMODE ) +{ + hb_retni( hbqt_par_QFileDialog( 1 )->acceptMode( ) ); +} + +/* + * bool confirmOverwrite () const + */ +HB_FUNC( QT_QFILEDIALOG_CONFIRMOVERWRITE ) +{ + hb_retl( hbqt_par_QFileDialog( 1 )->confirmOverwrite( ) ); +} + +/* + * QString defaultSuffix () const + */ +HB_FUNC( QT_QFILEDIALOG_DEFAULTSUFFIX ) +{ + hb_retc( hbqt_par_QFileDialog( 1 )->defaultSuffix( ).toLatin1().data() ); +} + +/* + * FileMode fileMode () const + */ +HB_FUNC( QT_QFILEDIALOG_FILEMODE ) +{ + hb_retni( hbqt_par_QFileDialog( 1 )->fileMode( ) ); +} + +/* + * QDir::Filters filter () const + */ +HB_FUNC( QT_QFILEDIALOG_FILTER ) +{ + hb_retni( hbqt_par_QFileDialog( 1 )->filter( ) ); +} + +/* + * QFileIconProvider * iconProvider () const + */ +HB_FUNC( QT_QFILEDIALOG_ICONPROVIDER ) +{ + hb_retptr( ( QFileIconProvider* ) hbqt_par_QFileDialog( 1 )->iconProvider( ) ); +} + +/* + * bool isNameFilterDetailsVisible () const + */ +HB_FUNC( QT_QFILEDIALOG_ISNAMEFILTERDETAILSVISIBLE ) +{ + hb_retl( hbqt_par_QFileDialog( 1 )->isNameFilterDetailsVisible( ) ); +} + +/* + * bool isReadOnly () const + */ +HB_FUNC( QT_QFILEDIALOG_ISREADONLY ) +{ + hb_retl( hbqt_par_QFileDialog( 1 )->isReadOnly( ) ); +} + +/* + * QAbstractItemDelegate * itemDelegate () const + */ +HB_FUNC( QT_QFILEDIALOG_ITEMDELEGATE ) +{ + hb_retptr( ( QAbstractItemDelegate* ) hbqt_par_QFileDialog( 1 )->itemDelegate( ) ); +} + +/* + * QString labelText ( DialogLabel label ) const + */ +HB_FUNC( QT_QFILEDIALOG_LABELTEXT ) +{ + hb_retc( hbqt_par_QFileDialog( 1 )->labelText( ( QFileDialog::DialogLabel ) hb_parni( 2 )).toLatin1().data() ); +} + +/* + * void open ( QObject * receiver, const char * member ) + */ +HB_FUNC( QT_QFILEDIALOG_OPEN ) +{ + hbqt_par_QFileDialog( 1 )->open( hbqt_par_QObject( 2 ), hbqt_par_char( 3 ) ); +} + +/* + * Options options () const + */ +HB_FUNC( QT_QFILEDIALOG_OPTIONS ) +{ + hb_retni( hbqt_par_QFileDialog( 1 )->options( ) ); +} + +/* + * QAbstractProxyModel * proxyModel () const + */ +HB_FUNC( QT_QFILEDIALOG_PROXYMODEL ) +{ + hb_retptr( ( QAbstractProxyModel* ) hbqt_par_QFileDialog( 1 )->proxyModel( ) ); +} + +/* + * bool resolveSymlinks () const + */ +HB_FUNC( QT_QFILEDIALOG_RESOLVESYMLINKS ) +{ + hb_retl( hbqt_par_QFileDialog( 1 )->resolveSymlinks( ) ); +} + +/* + * void selectFile ( const QString & filename ) + */ +HB_FUNC( QT_QFILEDIALOG_SELECTFILE ) +{ + hbqt_par_QFileDialog( 1 )->selectFile( hbqt_par_QString( 2 ) ); +} + +/* + * void selectNameFilter ( const QString & filter ) + */ +HB_FUNC( QT_QFILEDIALOG_SELECTNAMEFILTER ) +{ + hbqt_par_QFileDialog( 1 )->selectNameFilter( hbqt_par_QString( 2 ) ); +} + +/* + * QString selectedNameFilter () const + */ +HB_FUNC( QT_QFILEDIALOG_SELECTEDNAMEFILTER ) +{ + hb_retc( hbqt_par_QFileDialog( 1 )->selectedNameFilter( ).toLatin1().data() ); +} + +/* + * void setAcceptMode ( AcceptMode mode ) + */ +HB_FUNC( QT_QFILEDIALOG_SETACCEPTMODE ) +{ + hbqt_par_QFileDialog( 1 )->setAcceptMode( ( QFileDialog::AcceptMode ) hb_parni( 2 ) ); +} + +/* + * void setConfirmOverwrite ( bool enabled ) + */ +HB_FUNC( QT_QFILEDIALOG_SETCONFIRMOVERWRITE ) +{ + hbqt_par_QFileDialog( 1 )->setConfirmOverwrite( hb_parl( 2 ) ); +} + +/* + * void setDefaultSuffix ( const QString & suffix ) + */ +HB_FUNC( QT_QFILEDIALOG_SETDEFAULTSUFFIX ) +{ + hbqt_par_QFileDialog( 1 )->setDefaultSuffix( hbqt_par_QString( 2 ) ); +} + +/* + * void setDirectory ( const QString & directory ) + */ +HB_FUNC( QT_QFILEDIALOG_SETDIRECTORY ) +{ + hbqt_par_QFileDialog( 1 )->setDirectory( hbqt_par_QString( 2 ) ); +} + +/* + * void setFileMode ( FileMode mode ) + */ +HB_FUNC( QT_QFILEDIALOG_SETFILEMODE ) +{ + hbqt_par_QFileDialog( 1 )->setFileMode( ( QFileDialog::FileMode ) hb_parni( 2 ) ); +} + +/* + * void setFilter ( QDir::Filters filters ) + */ +HB_FUNC( QT_QFILEDIALOG_SETFILTER ) +{ + hbqt_par_QFileDialog( 1 )->setFilter( ( QDir::Filters ) hb_parni( 2 ) ); +} + +/* + * void setIconProvider ( QFileIconProvider * provider ) + */ +HB_FUNC( QT_QFILEDIALOG_SETICONPROVIDER ) +{ + hbqt_par_QFileDialog( 1 )->setIconProvider( hbqt_par_QFileIconProvider( 2 ) ); +} + +/* + * void setItemDelegate ( QAbstractItemDelegate * delegate ) + */ +HB_FUNC( QT_QFILEDIALOG_SETITEMDELEGATE ) +{ + hbqt_par_QFileDialog( 1 )->setItemDelegate( hbqt_par_QAbstractItemDelegate( 2 ) ); +} + +/* + * void setLabelText ( DialogLabel label, const QString & text ) + */ +HB_FUNC( QT_QFILEDIALOG_SETLABELTEXT ) +{ + hbqt_par_QFileDialog( 1 )->setLabelText( ( QFileDialog::DialogLabel ) hb_parni( 2 ), hbqt_par_QString( 3 ) ); +} + +/* + * void setNameFilter ( const QString & filter ) + */ +HB_FUNC( QT_QFILEDIALOG_SETNAMEFILTER ) +{ + hbqt_par_QFileDialog( 1 )->setNameFilter( hbqt_par_QString( 2 ) ); +} + +/* + * void setNameFilterDetailsVisible ( bool enabled ) + */ +HB_FUNC( QT_QFILEDIALOG_SETNAMEFILTERDETAILSVISIBLE ) +{ + hbqt_par_QFileDialog( 1 )->setNameFilterDetailsVisible( hb_parl( 2 ) ); +} + +/* + * void setOption ( Option option, bool on = true ) + */ +HB_FUNC( QT_QFILEDIALOG_SETOPTION ) +{ + hbqt_par_QFileDialog( 1 )->setOption( ( QFileDialog::Option ) hb_parni( 2 ), hb_parl( 3 ) ); +} + +/* + * void setOptions ( Options options ) + */ +HB_FUNC( QT_QFILEDIALOG_SETOPTIONS ) +{ + hbqt_par_QFileDialog( 1 )->setOptions( ( QFileDialog::Options ) hb_parni( 2 ) ); +} + +/* + * void setProxyModel ( QAbstractProxyModel * proxyModel ) + */ +HB_FUNC( QT_QFILEDIALOG_SETPROXYMODEL ) +{ + hbqt_par_QFileDialog( 1 )->setProxyModel( hbqt_par_QAbstractProxyModel( 2 ) ); +} + +/* + * void setReadOnly ( bool enabled ) + */ +HB_FUNC( QT_QFILEDIALOG_SETREADONLY ) +{ + hbqt_par_QFileDialog( 1 )->setReadOnly( hb_parl( 2 ) ); +} + +/* + * void setResolveSymlinks ( bool enabled ) + */ +HB_FUNC( QT_QFILEDIALOG_SETRESOLVESYMLINKS ) +{ + hbqt_par_QFileDialog( 1 )->setResolveSymlinks( hb_parl( 2 ) ); +} + +/* + * void setViewMode ( ViewMode mode ) + */ +HB_FUNC( QT_QFILEDIALOG_SETVIEWMODE ) +{ + hbqt_par_QFileDialog( 1 )->setViewMode( ( QFileDialog::ViewMode ) hb_parni( 2 ) ); +} + +/* + * bool testOption ( Option option ) const + */ +HB_FUNC( QT_QFILEDIALOG_TESTOPTION ) +{ + hb_retl( hbqt_par_QFileDialog( 1 )->testOption( ( QFileDialog::Option ) hb_parni( 2 ) ) ); +} + +/* + * ViewMode viewMode () const + */ +HB_FUNC( QT_QFILEDIALOG_VIEWMODE ) +{ + hb_retni( hbqt_par_QFileDialog( 1 )->viewMode( ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qfocusframe.cpp b/harbour/contrib/hbqt/hbqt_qfocusframe.cpp index 7352d04a71..49f9c02b77 100644 --- a/harbour/contrib/hbqt/hbqt_qfocusframe.cpp +++ b/harbour/contrib/hbqt/hbqt_qfocusframe.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,18 +55,42 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -QFocusFrame ( QWidget * parent = 0 ) -*/ + * QFocusFrame ( QWidget * parent = 0 ) + * ~QFocusFrame () + */ HB_FUNC( QT_QFOCUSFRAME ) { hb_retptr( ( QFocusFrame* ) new QFocusFrame( hbqt_par_QWidget( 1 ) ) ); } +/* + * void setWidget ( QWidget * widget ) + */ +HB_FUNC( QT_QFOCUSFRAME_SETWIDGET ) +{ + hbqt_par_QFocusFrame( 1 )->setWidget( hbqt_par_QWidget( 2 ) ); +} + +/* + * QWidget * widget () const + */ +HB_FUNC( QT_QFOCUSFRAME_WIDGET ) +{ + hb_retptr( ( QWidget* ) hbqt_par_QFocusFrame( 1 )->widget( ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qfont.cpp b/harbour/contrib/hbqt/hbqt_qfont.cpp index 867d86073d..2f831f1303 100644 --- a/harbour/contrib/hbqt/hbqt_qfont.cpp +++ b/harbour/contrib/hbqt/hbqt_qfont.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -57,20 +57,34 @@ /*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ +/* + * Constructed[ 50/53 [ 94.34% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * FT_Face freetypeFace () const + * HFONT handle () const + * QFont resolve ( const QFont & other ) const + * + * *** Commented out protos which construct fine but do not compile *** + * + * //bool isCopyOf ( const QFont & f ) const + * //quint32 macFontID () const + */ + #include - - - /* -QFont () -QFont ( const QString & family, int pointSize = -1, int weight = -1, bool italic = false ) -QFont ( const QFont & font, QPaintDevice * pd ) -QFont ( const QFont & font ) -*/ + * QFont () + * QFont ( const QString & family, int pointSize = -1, int weight = -1, bool italic = false ) + * QFont ( const QFont & font, QPaintDevice * pd ) + * QFont ( const QFont & font ) + */ HB_FUNC( QT_QFONT ) { if( HB_IS_STRING( 1 ) ) @@ -80,433 +94,414 @@ HB_FUNC( QT_QFONT ) else { hb_retptr( ( QFont* ) new QFont( hbqt_par_QString( 1 ), - HB_IS_NUMERIC( 2 ) ? hb_parni( 2 ) : -1, - HB_IS_NUMERIC( 3 ) ? hb_parni( 3 ) : -1, + HB_ISNUM( 2 ) ? hb_parni( 2 ) : -1, + HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1, hb_parl( 4 ) ) ); } } - /* -bool bold () const -*/ + * bool bold () const + */ HB_FUNC( QT_QFONT_BOLD ) { - hb_retl( hbqt_par_QFont( 1 )->bold() ); + hb_retl( hbqt_par_QFont( 1 )->bold( ) ); } /* -Capitalization capitalization () const -*/ + * Capitalization capitalization () const + */ HB_FUNC( QT_QFONT_CAPITALIZATION ) { - hb_retni( hbqt_par_QFont( 1 )->capitalization() ); + hb_retni( hbqt_par_QFont( 1 )->capitalization( ) ); } /* -QString defaultFamily () const -*/ + * QString defaultFamily () const + */ HB_FUNC( QT_QFONT_DEFAULTFAMILY ) { hb_retc( hbqt_par_QFont( 1 )->defaultFamily( ).toLatin1().data() ); } /* -bool exactMatch () const -*/ + * bool exactMatch () const + */ HB_FUNC( QT_QFONT_EXACTMATCH ) { - hb_retl( hbqt_par_QFont( 1 )->exactMatch() ); + hb_retl( hbqt_par_QFont( 1 )->exactMatch( ) ); } /* -QString family () const -*/ + * QString family () const + */ HB_FUNC( QT_QFONT_FAMILY ) { hb_retc( hbqt_par_QFont( 1 )->family( ).toLatin1().data() ); } /* -bool fixedPitch () const -*/ + * bool fixedPitch () const + */ HB_FUNC( QT_QFONT_FIXEDPITCH ) { - hb_retl( hbqt_par_QFont( 1 )->fixedPitch() ); + hb_retl( hbqt_par_QFont( 1 )->fixedPitch( ) ); } /* -FT_Face freetypeFace () const -*/ -HB_FUNC( QT_QFONT_FREETYPEFACE ) -{ -} - -/* -bool fromString ( const QString & descrip ) -*/ + * bool fromString ( const QString & descrip ) + */ HB_FUNC( QT_QFONT_FROMSTRING ) { - hb_retl( hbqt_par_QFont( 1 )->fromString( hbqt_par_QString( 1 ) ) ); + hb_retl( hbqt_par_QFont( 1 )->fromString( hbqt_par_QString( 2 ) ) ); } /* -HFONT handle () const -*/ -HB_FUNC( QT_QFONT_HANDLE ) -{ -} - -/* -bool italic () const -*/ + * bool italic () const + */ HB_FUNC( QT_QFONT_ITALIC ) { - hb_retl( hbqt_par_QFont( 1 )->italic() ); + hb_retl( hbqt_par_QFont( 1 )->italic( ) ); } /* -bool kerning () const -*/ + * bool kerning () const + */ HB_FUNC( QT_QFONT_KERNING ) { - hb_retl( hbqt_par_QFont( 1 )->kerning() ); + hb_retl( hbqt_par_QFont( 1 )->kerning( ) ); } /* -QString key () const -*/ + * QString key () const + */ HB_FUNC( QT_QFONT_KEY ) { hb_retc( hbqt_par_QFont( 1 )->key( ).toLatin1().data() ); } /* -QString lastResortFamily () const -*/ + * QString lastResortFamily () const + */ HB_FUNC( QT_QFONT_LASTRESORTFAMILY ) { hb_retc( hbqt_par_QFont( 1 )->lastResortFamily( ).toLatin1().data() ); } /* -QString lastResortFont () const -*/ + * QString lastResortFont () const + */ HB_FUNC( QT_QFONT_LASTRESORTFONT ) { hb_retc( hbqt_par_QFont( 1 )->lastResortFont( ).toLatin1().data() ); } /* -qreal letterSpacing () const -*/ + * qreal letterSpacing () const + */ HB_FUNC( QT_QFONT_LETTERSPACING ) { - hb_retnd( hbqt_par_QFont( 1 )->letterSpacing() ); + hb_retnd( hbqt_par_QFont( 1 )->letterSpacing( ) ); } /* -SpacingType letterSpacingType () const -*/ + * SpacingType letterSpacingType () const + */ HB_FUNC( QT_QFONT_LETTERSPACINGTYPE ) { - hb_retni( hbqt_par_QFont( 1 )->letterSpacingType() ); + hb_retni( hbqt_par_QFont( 1 )->letterSpacingType( ) ); } /* -bool overline () const -*/ + * bool overline () const + */ HB_FUNC( QT_QFONT_OVERLINE ) { - hb_retl( hbqt_par_QFont( 1 )->overline() ); + hb_retl( hbqt_par_QFont( 1 )->overline( ) ); } /* -int pixelSize () const -*/ + * int pixelSize () const + */ HB_FUNC( QT_QFONT_PIXELSIZE ) { - hb_retni( hbqt_par_QFont( 1 )->pixelSize() ); + hb_retni( hbqt_par_QFont( 1 )->pixelSize( ) ); } /* -int pointSize () const -*/ + * int pointSize () const + */ HB_FUNC( QT_QFONT_POINTSIZE ) { - hb_retni( hbqt_par_QFont( 1 )->pointSize() ); + hb_retni( hbqt_par_QFont( 1 )->pointSize( ) ); } /* -qreal pointSizeF () const -*/ + * qreal pointSizeF () const + */ HB_FUNC( QT_QFONT_POINTSIZEF ) { - hb_retnd( hbqt_par_QFont( 1 )->pointSizeF() ); + hb_retnd( hbqt_par_QFont( 1 )->pointSizeF( ) ); } /* -bool rawMode () const -*/ + * bool rawMode () const + */ HB_FUNC( QT_QFONT_RAWMODE ) { - hb_retl( hbqt_par_QFont( 1 )->rawMode() ); + hb_retl( hbqt_par_QFont( 1 )->rawMode( ) ); } /* -QString rawName () const -*/ + * QString rawName () const + */ HB_FUNC( QT_QFONT_RAWNAME ) { hb_retc( hbqt_par_QFont( 1 )->rawName( ).toLatin1().data() ); } /* -QFont resolve ( const QFont & other ) const -*/ -HB_FUNC( QT_QFONT_RESOLVE ) -{ -} - -/* -void setBold ( bool enable ) -*/ + * void setBold ( bool enable ) + */ HB_FUNC( QT_QFONT_SETBOLD ) { - hbqt_par_QFont( 1 )->setBold( hb_parl( 1 ) ); + hbqt_par_QFont( 1 )->setBold( hb_parl( 2 ) ); } /* -void setCapitalization ( Capitalization caps ) -*/ + * void setCapitalization ( Capitalization caps ) + */ HB_FUNC( QT_QFONT_SETCAPITALIZATION ) { - hbqt_par_QFont( 1 )->setCapitalization( ( QFont::Capitalization ) hb_parni( 1 ) ); + hbqt_par_QFont( 1 )->setCapitalization( ( QFont::Capitalization ) hb_parni( 2 ) ); } /* -void setFamily ( const QString & family ) -*/ + * void setFamily ( const QString & family ) + */ HB_FUNC( QT_QFONT_SETFAMILY ) { - hbqt_par_QFont( 1 )->setFamily( hbqt_par_QString( 1 ) ); + hbqt_par_QFont( 1 )->setFamily( hbqt_par_QString( 2 ) ); } /* -void setFixedPitch ( bool enable ) -*/ + * void setFixedPitch ( bool enable ) + */ HB_FUNC( QT_QFONT_SETFIXEDPITCH ) { - hbqt_par_QFont( 1 )->setFixedPitch( hb_parl( 1 ) ); + hbqt_par_QFont( 1 )->setFixedPitch( hb_parl( 2 ) ); } /* -void setItalic ( bool enable ) -*/ + * void setItalic ( bool enable ) + */ HB_FUNC( QT_QFONT_SETITALIC ) { - hbqt_par_QFont( 1 )->setItalic( hb_parl( 1 ) ); + hbqt_par_QFont( 1 )->setItalic( hb_parl( 2 ) ); } /* -void setKerning ( bool enable ) -*/ + * void setKerning ( bool enable ) + */ HB_FUNC( QT_QFONT_SETKERNING ) { - hbqt_par_QFont( 1 )->setKerning( hb_parl( 1 ) ); + hbqt_par_QFont( 1 )->setKerning( hb_parl( 2 ) ); } /* -void setLetterSpacing ( SpacingType type, qreal spacing ) -*/ + * void setLetterSpacing ( SpacingType type, qreal spacing ) + */ HB_FUNC( QT_QFONT_SETLETTERSPACING ) { - hbqt_par_QFont( 1 )->setLetterSpacing( ( QFont::SpacingType ) hb_parni( 1 ), hb_parnd( 2 ) ); + hbqt_par_QFont( 1 )->setLetterSpacing( ( QFont::SpacingType ) hb_parni( 2 ), hb_parnd( 3 ) ); } /* -void setOverline ( bool enable ) -*/ + * void setOverline ( bool enable ) + */ HB_FUNC( QT_QFONT_SETOVERLINE ) { - hbqt_par_QFont( 1 )->setOverline( hb_parl( 1 ) ); + hbqt_par_QFont( 1 )->setOverline( hb_parl( 2 ) ); } /* -void setPixelSize ( int pixelSize ) -*/ + * void setPixelSize ( int pixelSize ) + */ HB_FUNC( QT_QFONT_SETPIXELSIZE ) { - hbqt_par_QFont( 1 )->setPixelSize( hb_parni( 1 ) ); + hbqt_par_QFont( 1 )->setPixelSize( hb_parni( 2 ) ); } /* -void setPointSize ( int pointSize ) -*/ + * void setPointSize ( int pointSize ) + */ HB_FUNC( QT_QFONT_SETPOINTSIZE ) { - hbqt_par_QFont( 1 )->setPointSize( hb_parni( 1 ) ); + hbqt_par_QFont( 1 )->setPointSize( hb_parni( 2 ) ); } /* -void setPointSizeF ( qreal pointSize ) -*/ + * void setPointSizeF ( qreal pointSize ) + */ HB_FUNC( QT_QFONT_SETPOINTSIZEF ) { - hbqt_par_QFont( 1 )->setPointSizeF( hb_parnd( 1 ) ); + hbqt_par_QFont( 1 )->setPointSizeF( hb_parnd( 2 ) ); } /* -void setRawMode ( bool enable ) -*/ + * void setRawMode ( bool enable ) + */ HB_FUNC( QT_QFONT_SETRAWMODE ) { - hbqt_par_QFont( 1 )->setRawMode( hb_parl( 1 ) ); + hbqt_par_QFont( 1 )->setRawMode( hb_parl( 2 ) ); } /* -void setRawName ( const QString & name ) -*/ + * void setRawName ( const QString & name ) + */ HB_FUNC( QT_QFONT_SETRAWNAME ) { - hbqt_par_QFont( 1 )->setRawName( hbqt_par_QString( 1 ) ); + hbqt_par_QFont( 1 )->setRawName( hbqt_par_QString( 2 ) ); } /* -void setStretch ( int factor ) -*/ + * void setStretch ( int factor ) + */ HB_FUNC( QT_QFONT_SETSTRETCH ) { - hbqt_par_QFont( 1 )->setStretch( hb_parni( 1 ) ); + hbqt_par_QFont( 1 )->setStretch( hb_parni( 2 ) ); } /* -void setStrikeOut ( bool enable ) -*/ + * void setStrikeOut ( bool enable ) + */ HB_FUNC( QT_QFONT_SETSTRIKEOUT ) { - hbqt_par_QFont( 1 )->setStrikeOut( hb_parl( 1 ) ); + hbqt_par_QFont( 1 )->setStrikeOut( hb_parl( 2 ) ); } /* -void setStyle ( Style style ) -*/ + * void setStyle ( Style style ) + */ HB_FUNC( QT_QFONT_SETSTYLE ) { - hbqt_par_QFont( 1 )->setStyle( ( QFont::Style ) hb_parni( 1 ) ); + hbqt_par_QFont( 1 )->setStyle( ( QFont::Style ) hb_parni( 2 ) ); } /* -void setStyleHint ( StyleHint hint, StyleStrategy strategy = PreferDefault ) -*/ + * void setStyleHint ( StyleHint hint, StyleStrategy strategy = PreferDefault ) + */ HB_FUNC( QT_QFONT_SETSTYLEHINT ) { - hbqt_par_QFont( 1 )->setStyleHint( ( QFont::StyleHint ) hb_parni( 1 ), ( QFont::StyleStrategy ) hb_parni( 2 ) ); + hbqt_par_QFont( 1 )->setStyleHint( ( QFont::StyleHint ) hb_parni( 2 ), ( QFont::StyleStrategy ) hb_parni( 3 ) ); } /* -void setStyleStrategy ( StyleStrategy s ) -*/ + * void setStyleStrategy ( StyleStrategy s ) + */ HB_FUNC( QT_QFONT_SETSTYLESTRATEGY ) { - hbqt_par_QFont( 1 )->setStyleStrategy( ( QFont::StyleStrategy ) hb_parni( 1 ) ); + hbqt_par_QFont( 1 )->setStyleStrategy( ( QFont::StyleStrategy ) hb_parni( 2 ) ); } /* -void setUnderline ( bool enable ) -*/ + * void setUnderline ( bool enable ) + */ HB_FUNC( QT_QFONT_SETUNDERLINE ) { - hbqt_par_QFont( 1 )->setUnderline( hb_parl( 1 ) ); + hbqt_par_QFont( 1 )->setUnderline( hb_parl( 2 ) ); } /* -void setWeight ( int weight ) -*/ + * void setWeight ( int weight ) + */ HB_FUNC( QT_QFONT_SETWEIGHT ) { - hbqt_par_QFont( 1 )->setWeight( hb_parni( 1 ) ); + hbqt_par_QFont( 1 )->setWeight( hb_parni( 2 ) ); } /* -void setWordSpacing ( qreal spacing ) -*/ + * void setWordSpacing ( qreal spacing ) + */ HB_FUNC( QT_QFONT_SETWORDSPACING ) { - hbqt_par_QFont( 1 )->setWordSpacing( hb_parnd( 1 ) ); + hbqt_par_QFont( 1 )->setWordSpacing( hb_parnd( 2 ) ); } /* -int stretch () const -*/ + * int stretch () const + */ HB_FUNC( QT_QFONT_STRETCH ) { - hb_retni( hbqt_par_QFont( 1 )->stretch() ); + hb_retni( hbqt_par_QFont( 1 )->stretch( ) ); } /* -bool strikeOut () const -*/ + * bool strikeOut () const + */ HB_FUNC( QT_QFONT_STRIKEOUT ) { - hb_retl( hbqt_par_QFont( 1 )->strikeOut() ); + hb_retl( hbqt_par_QFont( 1 )->strikeOut( ) ); } /* -Style style () const -*/ + * Style style () const + */ HB_FUNC( QT_QFONT_STYLE ) { - hb_retni( hbqt_par_QFont( 1 )->style() ); + hb_retni( hbqt_par_QFont( 1 )->style( ) ); } /* -StyleHint styleHint () const -*/ + * StyleHint styleHint () const + */ HB_FUNC( QT_QFONT_STYLEHINT ) { - hb_retni( hbqt_par_QFont( 1 )->styleHint() ); + hb_retni( hbqt_par_QFont( 1 )->styleHint( ) ); } /* -StyleStrategy styleStrategy () const -*/ + * StyleStrategy styleStrategy () const + */ HB_FUNC( QT_QFONT_STYLESTRATEGY ) { - hb_retni( hbqt_par_QFont( 1 )->styleStrategy() ); + hb_retni( hbqt_par_QFont( 1 )->styleStrategy( ) ); } /* -QString toString () const -*/ + * QString toString () const + */ HB_FUNC( QT_QFONT_TOSTRING ) { hb_retc( hbqt_par_QFont( 1 )->toString( ).toLatin1().data() ); } /* -bool underline () const -*/ + * bool underline () const + */ HB_FUNC( QT_QFONT_UNDERLINE ) { - hb_retl( hbqt_par_QFont( 1 )->underline() ); + hb_retl( hbqt_par_QFont( 1 )->underline( ) ); } /* -int weight () const -*/ + * int weight () const + */ HB_FUNC( QT_QFONT_WEIGHT ) { - hb_retni( hbqt_par_QFont( 1 )->weight() ); + hb_retni( hbqt_par_QFont( 1 )->weight( ) ); } /* -qreal wordSpacing () const -*/ + * qreal wordSpacing () const + */ HB_FUNC( QT_QFONT_WORDSPACING ) { - hb_retnd( hbqt_par_QFont( 1 )->wordSpacing() ); + hb_retnd( hbqt_par_QFont( 1 )->wordSpacing( ) ); } -#endif + /*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qfontcombobox.cpp b/harbour/contrib/hbqt/hbqt_qfontcombobox.cpp index 5797278636..7298aaf684 100644 --- a/harbour/contrib/hbqt/hbqt_qfontcombobox.cpp +++ b/harbour/contrib/hbqt/hbqt_qfontcombobox.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,18 +55,67 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 4/5 [ 80.00% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * QFont currentFont () const + */ + #include -/*----------------------------------------------------------------------*/ + /* -QFontComboBox ( QWidget * parent = 0 ) -*/ + * QFontComboBox ( QWidget * parent = 0 ) + * ~QFontComboBox () + */ HB_FUNC( QT_QFONTCOMBOBOX ) { hb_retptr( ( QFontComboBox * ) new QFontComboBox( hbqt_par_QWidget( 1 ) ) ); } +/* + * FontFilters fontFilters () const + */ +HB_FUNC( QT_QFONTCOMBOBOX_FONTFILTERS ) +{ + hb_retni( hbqt_par_QFontComboBox( 1 )->fontFilters( ) ); +} + +/* + * void setFontFilters ( FontFilters filters ) + */ +HB_FUNC( QT_QFONTCOMBOBOX_SETFONTFILTERS ) +{ + hbqt_par_QFontComboBox( 1 )->setFontFilters( ( QFontComboBox::FontFilters ) hb_parni( 2 ) ); +} + +/* + * void setWritingSystem ( QFontDatabase::WritingSystem script ) + */ +HB_FUNC( QT_QFONTCOMBOBOX_SETWRITINGSYSTEM ) +{ + hbqt_par_QFontComboBox( 1 )->setWritingSystem( ( QFontDatabase::WritingSystem ) hb_parni( 2 ) ); +} + +/* + * QFontDatabase::WritingSystem writingSystem () const + */ +HB_FUNC( QT_QFONTCOMBOBOX_WRITINGSYSTEM ) +{ + hb_retni( hbqt_par_QFontComboBox( 1 )->writingSystem( ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qfontdialog.cpp b/harbour/contrib/hbqt/hbqt_qfontdialog.cpp index 483597aead..f2ef1ac2e3 100644 --- a/harbour/contrib/hbqt/hbqt_qfontdialog.cpp +++ b/harbour/contrib/hbqt/hbqt_qfontdialog.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,19 +55,77 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 5/8 [ 62.50% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * QFont currentFont () const + * QFont selectedFont () const + * void setCurrentFont ( const QFont & font ) + */ + #include -/*----------------------------------------------------------------------*/ + /* -QFontDialog ( QWidget * parent = 0 ) -QFontDialog ( const QFont & initial, QWidget * parent = 0 ) -*/ + * QFontDialog ( QWidget * parent = 0 ) + * QFontDialog ( const QFont & initial, QWidget * parent = 0 ) + */ HB_FUNC( QT_QFONTDIALOG ) { hb_retptr( ( QFontDialog * ) new QFontDialog( hbqt_par_QWidget( 1 ) ) ); } +/* + * void open ( QObject * receiver, const char * member ) + */ +HB_FUNC( QT_QFONTDIALOG_OPEN ) +{ + hbqt_par_QFontDialog( 1 )->open( hbqt_par_QObject( 2 ), hbqt_par_char( 3 ) ); +} + +/* + * FontDialogOptions options () const + */ +HB_FUNC( QT_QFONTDIALOG_OPTIONS ) +{ + hb_retni( hbqt_par_QFontDialog( 1 )->options( ) ); +} + +/* + * void setOption ( FontDialogOption option, bool on = true ) + */ +HB_FUNC( QT_QFONTDIALOG_SETOPTION ) +{ + hbqt_par_QFontDialog( 1 )->setOption( ( QFontDialog::FontDialogOption ) hb_parni( 2 ), hb_parl( 3 ) ); +} + +/* + * void setOptions ( FontDialogOptions options ) + */ +HB_FUNC( QT_QFONTDIALOG_SETOPTIONS ) +{ + hbqt_par_QFontDialog( 1 )->setOptions( ( QFontDialog::FontDialogOptions ) hb_parni( 2 ) ); +} + +/* + * bool testOption ( FontDialogOption option ) const + */ +HB_FUNC( QT_QFONTDIALOG_TESTOPTION ) +{ + hb_retl( hbqt_par_QFontDialog( 1 )->testOption( ( QFontDialog::FontDialogOption ) hb_parni( 2 ) ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qformlayout.cpp b/harbour/contrib/hbqt/hbqt_qformlayout.cpp index ee9750d228..44275d7e35 100644 --- a/harbour/contrib/hbqt/hbqt_qformlayout.cpp +++ b/harbour/contrib/hbqt/hbqt_qformlayout.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,375 +55,301 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 33/36 [ 91.67% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * void getItemPosition ( int index, int * rowPtr, ItemRole * rolePtr ) const + * void getLayoutPosition ( QLayout * layout, int * rowPtr, ItemRole * rolePtr ) const + * void getWidgetPosition ( QWidget * widget, int * rowPtr, ItemRole * rolePtr ) const + */ + #include -/*----------------------------------------------------------------------*/ + /* -QFormLayout ( QWidget * parent = 0 ) -*/ + * QFormLayout ( QWidget * parent = 0 ) + * ~QFormLayout () + */ HB_FUNC( QT_QFORMLAYOUT ) { - QFormLayout *formlayout = NULL; - QWidget* parent = ( QWidget * ) hb_parptr( 1 ); - formlayout = new QFormLayout( parent ); - hb_retptr( ( QFormLayout * ) formlayout); + hb_retptr( ( QFormLayout * ) new QFormLayout( hbqt_par_QWidget( 1 ) ) ); } /* -void addRow ( QWidget * label, QWidget * field ) -*/ + * void addRow ( QWidget * label, QWidget * field ) + */ +HB_FUNC( QT_QFORMLAYOUT_ADDROW ) +{ + hbqt_par_QFormLayout( 1 )->addRow( hbqt_par_QWidget( 2 ), hbqt_par_QWidget( 3 ) ); +} + +/* + * void addRow ( QWidget * label, QLayout * field ) + */ HB_FUNC( QT_QFORMLAYOUT_ADDROW_1 ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - QWidget * par2 = ( QWidget * ) hb_parptr( 2 ); - QWidget * par3 = ( QWidget * ) hb_parptr( 3 ); - par1->addRow( par2, par3 ); + hbqt_par_QFormLayout( 1 )->addRow( hbqt_par_QWidget( 2 ), hbqt_par_QLayout( 3 ) ); } /* -void addRow ( QWidget * label, QLayout * field ) -*/ + * void addRow ( const QString & labelText, QWidget * field ) + */ HB_FUNC( QT_QFORMLAYOUT_ADDROW_2 ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - QWidget * par2 = ( QWidget * ) hb_parptr( 2 ); - QLayout * par3 = ( QLayout * ) hb_parptr( 3 ); - par1->addRow( par2, par3 ); + hbqt_par_QFormLayout( 1 )->addRow( hbqt_par_QString( 2 ), hbqt_par_QWidget( 3 ) ); } /* -void addRow ( const QString & labelText, QWidget * field ) -*/ + * void addRow ( const QString & labelText, QLayout * field ) + */ HB_FUNC( QT_QFORMLAYOUT_ADDROW_3 ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - QString par2 = hb_parc( 2 ); - QWidget * par3 = ( QWidget * ) hb_parptr( 3 ); - par1->addRow( par2, par3 ); + hbqt_par_QFormLayout( 1 )->addRow( hbqt_par_QString( 2 ), hbqt_par_QLayout( 3 ) ); } /* -void addRow ( const QString & labelText, QLayout * field ) -*/ + * void addRow ( QWidget * widget ) + */ HB_FUNC( QT_QFORMLAYOUT_ADDROW_4 ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - QString par2 = hb_parc( 2 ); - QLayout * par3 = ( QLayout *) hb_parptr( 3 ); - par1->addRow( par2, par3 ); + hbqt_par_QFormLayout( 1 )->addRow( hbqt_par_QWidget( 2 ) ); } /* -void addRow ( QWidget * widget ) -*/ + * void addRow ( QLayout * layout ) + */ HB_FUNC( QT_QFORMLAYOUT_ADDROW_5 ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - QWidget * par2 = ( QWidget * ) hb_parptr( 2 ); - par1->addRow( par2 ); + hbqt_par_QFormLayout( 1 )->addRow( hbqt_par_QLayout( 2 ) ); } /* -void addRow ( QLayout * layout ) -*/ -HB_FUNC( QT_QFORMLAYOUT_ADDROW_6 ) -{ - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - QLayout * par2 = ( QLayout * ) hb_parptr( 2 ); - par1->addRow( par2 ); -} - -/* -FieldGrowthPolicy fieldGrowthPolicy () const -*/ + * FieldGrowthPolicy fieldGrowthPolicy () const + */ HB_FUNC( QT_QFORMLAYOUT_FIELDGROWTHPOLICY ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - int i = par1->fieldGrowthPolicy(); - hb_retni( i ); + hb_retni( hbqt_par_QFormLayout( 1 )->fieldGrowthPolicy( ) ); } /* -Qt::Alignment formAlignment () const -*/ + * Qt::Alignment formAlignment () const + */ HB_FUNC( QT_QFORMLAYOUT_FORMALIGNMENT ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - int i = par1->formAlignment(); - hb_retni( i ); + hb_retni( hbqt_par_QFormLayout( 1 )->formAlignment( ) ); } /* -int horizontalSpacing () const -*/ + * int horizontalSpacing () const + */ HB_FUNC( QT_QFORMLAYOUT_HORIZONTALSPACING ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - int i = par1->horizontalSpacing(); - hb_retni( i ); + hb_retni( hbqt_par_QFormLayout( 1 )->horizontalSpacing( ) ); } /* -void insertRow ( int row, QWidget * label, QWidget * field ) -*/ + * void insertRow ( int row, QWidget * label, QWidget * field ) + */ +HB_FUNC( QT_QFORMLAYOUT_INSERTROW ) +{ + hbqt_par_QFormLayout( 1 )->insertRow( hb_parni( 2 ), hbqt_par_QWidget( 3 ), hbqt_par_QWidget( 4 ) ); +} + +/* + * void insertRow ( int row, QWidget * label, QLayout * field ) + */ HB_FUNC( QT_QFORMLAYOUT_INSERTROW_1 ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - int par2 = hb_parni( 2 ); - QWidget * par3 = ( QWidget * ) hb_parptr( 3 ); - QWidget * par4 = ( QWidget * ) hb_parptr( 4 ); - par1->insertRow( par2, par3, par4 ); + hbqt_par_QFormLayout( 1 )->insertRow( hb_parni( 2 ), hbqt_par_QWidget( 3 ), hbqt_par_QLayout( 4 ) ); } /* -void insertRow ( int row, QWidget * label, QLayout * field ) -*/ + * void insertRow ( int row, const QString & labelText, QWidget * field ) + */ HB_FUNC( QT_QFORMLAYOUT_INSERTROW_2 ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - int par2 = hb_parni( 2 ); - QWidget * par3 = ( QWidget * ) hb_parptr( 3 ); - QLayout * par4 = ( QLayout * ) hb_parptr( 4 ); - par1->insertRow( par2, par3, par4 ); + hbqt_par_QFormLayout( 1 )->insertRow( hb_parni( 2 ), hbqt_par_QString( 3 ), hbqt_par_QWidget( 4 ) ); } /* -void insertRow ( int row, const QString & labelText, QWidget * field ) -*/ + * void insertRow ( int row, const QString & labelText, QLayout * field ) + */ HB_FUNC( QT_QFORMLAYOUT_INSERTROW_3 ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - int par2 = hb_parni( 2 ); - QString par3 = hb_parc( 3 ); - QWidget * par4 = ( QWidget * ) hb_parptr( 4 ); - par1->insertRow( par2, par3, par4 ); + hbqt_par_QFormLayout( 1 )->insertRow( hb_parni( 2 ), hbqt_par_QString( 3 ), hbqt_par_QLayout( 4 ) ); } /* -void insertRow ( int row, const QString & labelText, QLayout * field ) -*/ + * void insertRow ( int row, QWidget * widget ) + */ HB_FUNC( QT_QFORMLAYOUT_INSERTROW_4 ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - int par2 = hb_parni( 2 ); - QString par3 = hb_parc( 3 ); - QLayout * par4 = ( QLayout * ) hb_parptr( 4 ); - par1->insertRow( par2, par3, par4 ); + hbqt_par_QFormLayout( 1 )->insertRow( hb_parni( 2 ), hbqt_par_QWidget( 3 ) ); } /* -void insertRow ( int row, QWidget * widget ) -*/ + * void insertRow ( int row, QLayout * layout ) + */ HB_FUNC( QT_QFORMLAYOUT_INSERTROW_5 ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - int par2 = hb_parni( 2 ); - QWidget * par3 = ( QWidget * ) hb_parptr( 3 ); - par1->insertRow( par2, par3 ); + hbqt_par_QFormLayout( 1 )->insertRow( hb_parni( 2 ), hbqt_par_QLayout( 3 ) ); } /* -void insertRow ( int row, QLayout * layout ) -*/ -HB_FUNC( QT_QFORMLAYOUT_INSERTROW_6 ) -{ - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - int par2 = hb_parni( 2 ); - QLayout * par3 = ( QLayout * ) hb_parptr( 3 ); - par1->insertRow( par2, par3 ); -} - -/* -QLayoutItem * itemAt ( int row, ItemRole role ) const -*/ + * QLayoutItem * itemAt ( int row, ItemRole role ) const + */ HB_FUNC( QT_QFORMLAYOUT_ITEMAT ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - int par2 = hb_parni( 2 ); - int par3 = hb_parni( 3 ); - QLayoutItem * ptr = par1->itemAt( par2, ( QFormLayout::ItemRole ) par3 ); - hb_retptr( ( QLayoutItem * ) ptr ); + hb_retptr( ( QLayoutItem* ) hbqt_par_QFormLayout( 1 )->itemAt( hb_parni( 2 ), ( QFormLayout::ItemRole ) hb_parni( 3 ) ) ); } /* -Qt::Alignment labelAlignment () const -*/ + * Qt::Alignment labelAlignment () const + */ HB_FUNC( QT_QFORMLAYOUT_LABELALIGNMENT ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - int i = par1->labelAlignment(); - hb_retni( i ); + hb_retni( hbqt_par_QFormLayout( 1 )->labelAlignment( ) ); } /* -QWidget * labelForField ( QWidget * field ) const -*/ + * QWidget * labelForField ( QWidget * field ) const + */ +HB_FUNC( QT_QFORMLAYOUT_LABELFORFIELD ) +{ + hb_retptr( ( QWidget* ) hbqt_par_QFormLayout( 1 )->labelForField( hbqt_par_QWidget( 2 ) ) ); +} + +/* + * QWidget * labelForField ( QLayout * field ) const + */ HB_FUNC( QT_QFORMLAYOUT_LABELFORFIELD_1 ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - QWidget * par2 = ( QWidget * ) hb_parptr( 2 ); - QWidget * ptr = par1->labelForField( par2 ); - hb_retptr( ( QWidget * ) ptr ); + hb_retptr( ( QWidget* ) hbqt_par_QFormLayout( 1 )->labelForField( hbqt_par_QLayout( 2 ) ) ); } /* -QWidget * labelForField ( QLayout * field ) const -*/ -HB_FUNC( QT_QFORMLAYOUT_LABELFORFIELD_2 ) -{ - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - QLayout * par2 = ( QLayout * ) hb_parptr( 2 ); - QWidget * ptr = par1->labelForField( par2 ); - hb_retptr( ( QWidget * ) ptr ); -} - -/* -int rowCount () const -*/ + * int rowCount () const + */ HB_FUNC( QT_QFORMLAYOUT_ROWCOUNT ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - int i = par1->rowCount(); - hb_retni( i ); + hb_retni( hbqt_par_QFormLayout( 1 )->rowCount( ) ); } /* -RowWrapPolicy rowWrapPolicy () const -*/ + * RowWrapPolicy rowWrapPolicy () const + */ HB_FUNC( QT_QFORMLAYOUT_ROWWRAPPOLICY ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - int i = par1->rowWrapPolicy(); - hb_retni( i ); + hb_retni( hbqt_par_QFormLayout( 1 )->rowWrapPolicy( ) ); } /* -void setFieldGrowthPolicy ( FieldGrowthPolicy policy ) -*/ + * void setFieldGrowthPolicy ( FieldGrowthPolicy policy ) + */ HB_FUNC( QT_QFORMLAYOUT_SETFIELDGROWTHPOLICY ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - int par2 = hb_parni( 2 ); - par1->setFieldGrowthPolicy( ( QFormLayout::FieldGrowthPolicy ) par2 ); + hbqt_par_QFormLayout( 1 )->setFieldGrowthPolicy( ( QFormLayout::FieldGrowthPolicy ) hb_parni( 2 ) ); } /* -void setFormAlignment ( Qt::Alignment alignment ) -*/ + * void setFormAlignment ( Qt::Alignment alignment ) + */ HB_FUNC( QT_QFORMLAYOUT_SETFORMALIGNMENT ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - int par2 = hb_parni( 2 ); - par1->setFormAlignment( ( Qt::Alignment ) par2 ); + hbqt_par_QFormLayout( 1 )->setFormAlignment( ( Qt::Alignment ) hb_parni( 2 ) ); } /* -void setHorizontalSpacing ( int spacing ) -*/ + * void setHorizontalSpacing ( int spacing ) + */ HB_FUNC( QT_QFORMLAYOUT_SETHORIZONTALSPACING ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - int par2 = hb_parni( 2 ); - par1->setHorizontalSpacing( par2 ); + hbqt_par_QFormLayout( 1 )->setHorizontalSpacing( hb_parni( 2 ) ); } /* -void setItem ( int row, ItemRole role, QLayoutItem * item ) -*/ + * void setItem ( int row, ItemRole role, QLayoutItem * item ) + */ HB_FUNC( QT_QFORMLAYOUT_SETITEM ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - int par2 = hb_parni( 2 ); - int par3 = hb_parni( 3 ); - QLayout * par4 = ( QLayout * ) hb_parptr( 4 ); - par1->setItem( par2, ( QFormLayout::ItemRole ) par3, par4 ); + hbqt_par_QFormLayout( 1 )->setItem( hb_parni( 2 ), ( QFormLayout::ItemRole ) hb_parni( 3 ), hbqt_par_QLayoutItem( 4 ) ); } /* -void setLabelAlignment ( Qt::Alignment alignment ) -*/ + * void setLabelAlignment ( Qt::Alignment alignment ) + */ HB_FUNC( QT_QFORMLAYOUT_SETLABELALIGNMENT ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - int par2 = hb_parni( 2 ); - par1->setLabelAlignment( ( Qt::Alignment ) par2 ); + hbqt_par_QFormLayout( 1 )->setLabelAlignment( ( Qt::Alignment ) hb_parni( 2 ) ); } /* -void setLayout ( int row, ItemRole role, QLayout * layout ) -*/ + * void setLayout ( int row, ItemRole role, QLayout * layout ) + */ HB_FUNC( QT_QFORMLAYOUT_SETLAYOUT ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - int par2 = hb_parni( 2 ); - int par3 = hb_parni( 3 ); - QLayout * par4 = ( QLayout * ) hb_parptr( 4 ); - par1->setLayout( par2, ( QFormLayout::ItemRole ) par3, par4 ); + hbqt_par_QFormLayout( 1 )->setLayout( hb_parni( 2 ), ( QFormLayout::ItemRole ) hb_parni( 3 ), hbqt_par_QLayout( 4 ) ); } /* -void setRowWrapPolicy ( RowWrapPolicy policy ) -*/ + * void setRowWrapPolicy ( RowWrapPolicy policy ) + */ HB_FUNC( QT_QFORMLAYOUT_SETROWWRAPPOLICY ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - int par2 = hb_parni( 2 ); - par1->setRowWrapPolicy( ( QFormLayout::RowWrapPolicy ) par2 ); + hbqt_par_QFormLayout( 1 )->setRowWrapPolicy( ( QFormLayout::RowWrapPolicy ) hb_parni( 2 ) ); } /* -void setSpacing ( int spacing ) -*/ + * void setSpacing ( int spacing ) + */ HB_FUNC( QT_QFORMLAYOUT_SETSPACING ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - int par2 = hb_parni( 2 ); - par1->setSpacing( par2 ); + hbqt_par_QFormLayout( 1 )->setSpacing( hb_parni( 2 ) ); } /* -void setVerticalSpacing ( int spacing ) -*/ + * void setVerticalSpacing ( int spacing ) + */ HB_FUNC( QT_QFORMLAYOUT_SETVERTICALSPACING ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - int par2 = hb_parni( 2 ); - par1->setVerticalSpacing( par2 ); + hbqt_par_QFormLayout( 1 )->setVerticalSpacing( hb_parni( 2 ) ); } /* -void setWidget ( int row, ItemRole role, QWidget * widget ) -*/ + * void setWidget ( int row, ItemRole role, QWidget * widget ) + */ HB_FUNC( QT_QFORMLAYOUT_SETWIDGET ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - int par2 = hb_parni( 2 ); - int par3 = hb_parni( 3 ); - QWidget * par4 = ( QWidget * ) hb_parptr( 4 ); - par1->setWidget( par2, (QFormLayout::ItemRole) par3, par4 ); + hbqt_par_QFormLayout( 1 )->setWidget( hb_parni( 2 ), ( QFormLayout::ItemRole ) hb_parni( 3 ), hbqt_par_QWidget( 4 ) ); } /* -int spacing () const -*/ + * int spacing () const + */ HB_FUNC( QT_QFORMLAYOUT_SPACING ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - int i = par1->spacing(); - hb_retni( i ); + hb_retni( hbqt_par_QFormLayout( 1 )->spacing( ) ); } /* -int verticalSpacing () const -*/ + * int verticalSpacing () const + */ HB_FUNC( QT_QFORMLAYOUT_VERTICALSPACING ) { - QFormLayout * par1 = ( QFormLayout * ) hb_parptr( 1 ); - int i = par1->verticalSpacing(); - hb_retni( i ); + hb_retni( hbqt_par_QFormLayout( 1 )->verticalSpacing( ) ); } + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qframe.cpp b/harbour/contrib/hbqt/hbqt_qframe.cpp index 5451ee53a0..7f8e4a6d23 100644 --- a/harbour/contrib/hbqt/hbqt_qframe.cpp +++ b/harbour/contrib/hbqt/hbqt_qframe.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,106 +55,130 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -QFrame ( QWidget * parent = 0, Qt::WindowFlags f = 0 ) -*/ + * QFrame ( QWidget * parent = 0, Qt::WindowFlags f = 0 ) + * ~QFrame () + */ HB_FUNC( QT_QFRAME ) { - hb_retptr( ( QFrame * ) new QFrame( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ); + hb_retptr( new QFrame( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ); } /* -Shadow frameShadow () const -*/ + * QRect frameRect () const + */ +HB_FUNC( QT_QFRAME_FRAMERECT ) +{ + hbqt_ret_QRect( hbqt_par_QFrame( 1 )->frameRect( ) ); +} + +/* + * Shadow frameShadow () const + */ HB_FUNC( QT_QFRAME_FRAMESHADOW ) { - hb_retni( hbqt_par_QFrame( 1 )->frameShadow() ); + hb_retni( hbqt_par_QFrame( 1 )->frameShadow( ) ); } /* -Shape frameShape () const -*/ + * Shape frameShape () const + */ HB_FUNC( QT_QFRAME_FRAMESHAPE ) { - hb_retni( hbqt_par_QFrame( 1 )->frameShape() ); + hb_retni( hbqt_par_QFrame( 1 )->frameShape( ) ); } /* -int frameStyle () const -*/ + * int frameStyle () const + */ HB_FUNC( QT_QFRAME_FRAMESTYLE ) { - hb_retni( hbqt_par_QFrame( 1 )->frameStyle() ); + hb_retni( hbqt_par_QFrame( 1 )->frameStyle( ) ); } /* -int frameWidth () const -*/ + * int frameWidth () const + */ HB_FUNC( QT_QFRAME_FRAMEWIDTH ) { - hb_retni( hbqt_par_QFrame( 1 )->frameWidth() ); + hb_retni( hbqt_par_QFrame( 1 )->frameWidth( ) ); } /* -int lineWidth () const -*/ + * int lineWidth () const + */ HB_FUNC( QT_QFRAME_LINEWIDTH ) { - hb_retni( hbqt_par_QFrame( 1 )->lineWidth() ); + hb_retni( hbqt_par_QFrame( 1 )->lineWidth( ) ); } /* -int midLineWidth () const -*/ + * int midLineWidth () const + */ HB_FUNC( QT_QFRAME_MIDLINEWIDTH ) { - hb_retni( hbqt_par_QFrame( 1 )->midLineWidth() ); + hb_retni( hbqt_par_QFrame( 1 )->midLineWidth( ) ); } /* -void setFrameShadow ( Shadow ) -*/ + * void setFrameRect ( const QRect & ) + */ +HB_FUNC( QT_QFRAME_SETFRAMERECT ) +{ + hbqt_par_QFrame( 1 )->setFrameRect( hbqt_const_QRect( 2 ) ); +} + +/* + * void setFrameShadow ( Shadow ) + */ HB_FUNC( QT_QFRAME_SETFRAMESHADOW ) { hbqt_par_QFrame( 1 )->setFrameShadow( ( QFrame::Shadow ) hb_parni( 2 ) ); } /* -void setFrameShape ( Shape ) -*/ + * void setFrameShape ( Shape ) + */ HB_FUNC( QT_QFRAME_SETFRAMESHAPE ) { hbqt_par_QFrame( 1 )->setFrameShape( ( QFrame::Shape ) hb_parni( 2 ) ); } /* -void setFrameStyle ( int style ) -*/ + * void setFrameStyle ( int style ) + */ HB_FUNC( QT_QFRAME_SETFRAMESTYLE ) { hbqt_par_QFrame( 1 )->setFrameStyle( hb_parni( 2 ) ); } /* -void setLineWidth ( int ) -*/ + * void setLineWidth ( int ) + */ HB_FUNC( QT_QFRAME_SETLINEWIDTH ) { hbqt_par_QFrame( 1 )->setLineWidth( hb_parni( 2 ) ); } /* -void setMidLineWidth ( int ) -*/ + * void setMidLineWidth ( int ) + */ HB_FUNC( QT_QFRAME_SETMIDLINEWIDTH ) { hbqt_par_QFrame( 1 )->setMidLineWidth( hb_parni( 2 ) ); } + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qgroupbox.cpp b/harbour/contrib/hbqt/hbqt_qgroupbox.cpp index 15de630e2a..711e93793d 100644 --- a/harbour/contrib/hbqt/hbqt_qgroupbox.cpp +++ b/harbour/contrib/hbqt/hbqt_qgroupbox.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,19 +55,99 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -QGroupBox ( QWidget * parent = 0 ) -QGroupBox ( const QString & title, QWidget * parent = 0 ) -*/ + * QGroupBox ( QWidget * parent = 0 ) + * QGroupBox ( const QString & title, QWidget * parent = 0 ) + * ~QGroupBox () + */ HB_FUNC( QT_QGROUPBOX ) { hb_retptr( ( QGroupBox * ) new QGroupBox( hbqt_par_QWidget( 1 ) ) ); } +/* + * Qt::Alignment alignment () const + */ +HB_FUNC( QT_QGROUPBOX_ALIGNMENT ) +{ + hb_retni( hbqt_par_QGroupBox( 1 )->alignment( ) ); +} + +/* + * bool isCheckable () const + */ +HB_FUNC( QT_QGROUPBOX_ISCHECKABLE ) +{ + hb_retl( hbqt_par_QGroupBox( 1 )->isCheckable( ) ); +} + +/* + * bool isChecked () const + */ +HB_FUNC( QT_QGROUPBOX_ISCHECKED ) +{ + hb_retl( hbqt_par_QGroupBox( 1 )->isChecked( ) ); +} + +/* + * bool isFlat () const + */ +HB_FUNC( QT_QGROUPBOX_ISFLAT ) +{ + hb_retl( hbqt_par_QGroupBox( 1 )->isFlat( ) ); +} + +/* + * void setAlignment ( int alignment ) + */ +HB_FUNC( QT_QGROUPBOX_SETALIGNMENT ) +{ + hbqt_par_QGroupBox( 1 )->setAlignment( hb_parni( 2 ) ); +} + +/* + * void setCheckable ( bool checkable ) + */ +HB_FUNC( QT_QGROUPBOX_SETCHECKABLE ) +{ + hbqt_par_QGroupBox( 1 )->setCheckable( hb_parl( 2 ) ); +} + +/* + * void setFlat ( bool flat ) + */ +HB_FUNC( QT_QGROUPBOX_SETFLAT ) +{ + hbqt_par_QGroupBox( 1 )->setFlat( hb_parl( 2 ) ); +} + +/* + * void setTitle ( const QString & title ) + */ +HB_FUNC( QT_QGROUPBOX_SETTITLE ) +{ + hbqt_par_QGroupBox( 1 )->setTitle( hbqt_par_QString( 2 ) ); +} + +/* + * QString title () const + */ +HB_FUNC( QT_QGROUPBOX_TITLE ) +{ + hb_retc( hbqt_par_QGroupBox( 1 )->title( ).toLatin1().data() ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qhboxlayout.cpp b/harbour/contrib/hbqt/hbqt_qhboxlayout.cpp index 2917ade4ec..50f6d07683 100644 --- a/harbour/contrib/hbqt/hbqt_qhboxlayout.cpp +++ b/harbour/contrib/hbqt/hbqt_qhboxlayout.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,19 +55,27 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -QHBoxLayout () -QHBoxLayout ( QWidget * parent ) -*/ + * QHBoxLayout () + * QHBoxLayout ( QWidget * parent ) + * ~QHBoxLayout () + */ HB_FUNC( QT_QHBOXLAYOUT ) { hb_retptr( ( QHBoxLayout * ) new QHBoxLayout( hbqt_par_QWidget( 1 ) ) ); } + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qinputdialog.cpp b/harbour/contrib/hbqt/hbqt_qinputdialog.cpp index 7f67d6385b..2d0337ebb6 100644 --- a/harbour/contrib/hbqt/hbqt_qinputdialog.cpp +++ b/harbour/contrib/hbqt/hbqt_qinputdialog.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,18 +55,340 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 38/40 [ 95.00% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * QStringList comboBoxItems () const + * void setComboBoxItems ( const QStringList & items ) + */ + #include -/*----------------------------------------------------------------------*/ + /* -QInputDialog ( QWidget * parent = 0, Qt::WindowFlags flags = 0 ) -*/ + * QInputDialog ( QWidget * parent = 0, Qt::WindowFlags flags = 0 ) + * ~QInputDialog () + */ HB_FUNC( QT_QINPUTDIALOG ) { hb_retptr( ( QInputDialog * ) new QInputDialog( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ); } +/* + * QString cancelButtonText () const + */ +HB_FUNC( QT_QINPUTDIALOG_CANCELBUTTONTEXT ) +{ + hb_retc( hbqt_par_QInputDialog( 1 )->cancelButtonText( ).toLatin1().data() ); +} + +/* + * virtual void done ( int result ) + */ +HB_FUNC( QT_QINPUTDIALOG_DONE ) +{ + hbqt_par_QInputDialog( 1 )->done( hb_parni( 2 ) ); +} + +/* + * int doubleDecimals () const + */ +HB_FUNC( QT_QINPUTDIALOG_DOUBLEDECIMALS ) +{ + hb_retni( hbqt_par_QInputDialog( 1 )->doubleDecimals( ) ); +} + +/* + * double doubleMaximum () const + */ +HB_FUNC( QT_QINPUTDIALOG_DOUBLEMAXIMUM ) +{ + hb_retnd( hbqt_par_QInputDialog( 1 )->doubleMaximum( ) ); +} + +/* + * double doubleMinimum () const + */ +HB_FUNC( QT_QINPUTDIALOG_DOUBLEMINIMUM ) +{ + hb_retnd( hbqt_par_QInputDialog( 1 )->doubleMinimum( ) ); +} + +/* + * double doubleValue () const + */ +HB_FUNC( QT_QINPUTDIALOG_DOUBLEVALUE ) +{ + hb_retnd( hbqt_par_QInputDialog( 1 )->doubleValue( ) ); +} + +/* + * InputMode inputMode () const + */ +HB_FUNC( QT_QINPUTDIALOG_INPUTMODE ) +{ + hb_retni( hbqt_par_QInputDialog( 1 )->inputMode( ) ); +} + +/* + * int intMaximum () const + */ +HB_FUNC( QT_QINPUTDIALOG_INTMAXIMUM ) +{ + hb_retni( hbqt_par_QInputDialog( 1 )->intMaximum( ) ); +} + +/* + * int intMinimum () const + */ +HB_FUNC( QT_QINPUTDIALOG_INTMINIMUM ) +{ + hb_retni( hbqt_par_QInputDialog( 1 )->intMinimum( ) ); +} + +/* + * int intStep () const + */ +HB_FUNC( QT_QINPUTDIALOG_INTSTEP ) +{ + hb_retni( hbqt_par_QInputDialog( 1 )->intStep( ) ); +} + +/* + * int intValue () const + */ +HB_FUNC( QT_QINPUTDIALOG_INTVALUE ) +{ + hb_retni( hbqt_par_QInputDialog( 1 )->intValue( ) ); +} + +/* + * bool isComboBoxEditable () const + */ +HB_FUNC( QT_QINPUTDIALOG_ISCOMBOBOXEDITABLE ) +{ + hb_retl( hbqt_par_QInputDialog( 1 )->isComboBoxEditable( ) ); +} + +/* + * QString labelText () const + */ +HB_FUNC( QT_QINPUTDIALOG_LABELTEXT ) +{ + hb_retc( hbqt_par_QInputDialog( 1 )->labelText( ).toLatin1().data() ); +} + +/* + * QString okButtonText () const + */ +HB_FUNC( QT_QINPUTDIALOG_OKBUTTONTEXT ) +{ + hb_retc( hbqt_par_QInputDialog( 1 )->okButtonText( ).toLatin1().data() ); +} + +/* + * void open ( QObject * receiver, const char * member ) + */ +HB_FUNC( QT_QINPUTDIALOG_OPEN ) +{ + hbqt_par_QInputDialog( 1 )->open( hbqt_par_QObject( 2 ), hbqt_par_char( 3 ) ); +} + +/* + * InputDialogOptions options () const + */ +HB_FUNC( QT_QINPUTDIALOG_OPTIONS ) +{ + hb_retni( hbqt_par_QInputDialog( 1 )->options( ) ); +} + +/* + * void setCancelButtonText ( const QString & text ) + */ +HB_FUNC( QT_QINPUTDIALOG_SETCANCELBUTTONTEXT ) +{ + hbqt_par_QInputDialog( 1 )->setCancelButtonText( hbqt_par_QString( 2 ) ); +} + +/* + * void setComboBoxEditable ( bool editable ) + */ +HB_FUNC( QT_QINPUTDIALOG_SETCOMBOBOXEDITABLE ) +{ + hbqt_par_QInputDialog( 1 )->setComboBoxEditable( hb_parl( 2 ) ); +} + +/* + * void setDoubleDecimals ( int decimals ) + */ +HB_FUNC( QT_QINPUTDIALOG_SETDOUBLEDECIMALS ) +{ + hbqt_par_QInputDialog( 1 )->setDoubleDecimals( hb_parni( 2 ) ); +} + +/* + * void setDoubleMaximum ( double max ) + */ +HB_FUNC( QT_QINPUTDIALOG_SETDOUBLEMAXIMUM ) +{ + hbqt_par_QInputDialog( 1 )->setDoubleMaximum( hb_parnd( 2 ) ); +} + +/* + * void setDoubleMinimum ( double min ) + */ +HB_FUNC( QT_QINPUTDIALOG_SETDOUBLEMINIMUM ) +{ + hbqt_par_QInputDialog( 1 )->setDoubleMinimum( hb_parnd( 2 ) ); +} + +/* + * void setDoubleRange ( double min, double max ) + */ +HB_FUNC( QT_QINPUTDIALOG_SETDOUBLERANGE ) +{ + hbqt_par_QInputDialog( 1 )->setDoubleRange( hb_parnd( 2 ), hb_parnd( 3 ) ); +} + +/* + * void setDoubleValue ( double value ) + */ +HB_FUNC( QT_QINPUTDIALOG_SETDOUBLEVALUE ) +{ + hbqt_par_QInputDialog( 1 )->setDoubleValue( hb_parnd( 2 ) ); +} + +/* + * void setInputMode ( InputMode mode ) + */ +HB_FUNC( QT_QINPUTDIALOG_SETINPUTMODE ) +{ + hbqt_par_QInputDialog( 1 )->setInputMode( ( QInputDialog::InputMode ) hb_parni( 2 ) ); +} + +/* + * void setIntMaximum ( int max ) + */ +HB_FUNC( QT_QINPUTDIALOG_SETINTMAXIMUM ) +{ + hbqt_par_QInputDialog( 1 )->setIntMaximum( hb_parni( 2 ) ); +} + +/* + * void setIntMinimum ( int min ) + */ +HB_FUNC( QT_QINPUTDIALOG_SETINTMINIMUM ) +{ + hbqt_par_QInputDialog( 1 )->setIntMinimum( hb_parni( 2 ) ); +} + +/* + * void setIntRange ( int min, int max ) + */ +HB_FUNC( QT_QINPUTDIALOG_SETINTRANGE ) +{ + hbqt_par_QInputDialog( 1 )->setIntRange( hb_parni( 2 ), hb_parni( 3 ) ); +} + +/* + * void setIntStep ( int step ) + */ +HB_FUNC( QT_QINPUTDIALOG_SETINTSTEP ) +{ + hbqt_par_QInputDialog( 1 )->setIntStep( hb_parni( 2 ) ); +} + +/* + * void setIntValue ( int value ) + */ +HB_FUNC( QT_QINPUTDIALOG_SETINTVALUE ) +{ + hbqt_par_QInputDialog( 1 )->setIntValue( hb_parni( 2 ) ); +} + +/* + * void setLabelText ( const QString & text ) + */ +HB_FUNC( QT_QINPUTDIALOG_SETLABELTEXT ) +{ + hbqt_par_QInputDialog( 1 )->setLabelText( hbqt_par_QString( 2 ) ); +} + +/* + * void setOkButtonText ( const QString & text ) + */ +HB_FUNC( QT_QINPUTDIALOG_SETOKBUTTONTEXT ) +{ + hbqt_par_QInputDialog( 1 )->setOkButtonText( hbqt_par_QString( 2 ) ); +} + +/* + * void setOption ( InputDialogOption option, bool on = true ) + */ +HB_FUNC( QT_QINPUTDIALOG_SETOPTION ) +{ + hbqt_par_QInputDialog( 1 )->setOption( ( QInputDialog::InputDialogOption ) hb_parni( 2 ), hb_parl( 3 ) ); +} + +/* + * void setOptions ( InputDialogOptions options ) + */ +HB_FUNC( QT_QINPUTDIALOG_SETOPTIONS ) +{ + hbqt_par_QInputDialog( 1 )->setOptions( ( QInputDialog::InputDialogOptions ) hb_parni( 2 ) ); +} + +/* + * void setTextEchoMode ( QLineEdit::EchoMode mode ) + */ +HB_FUNC( QT_QINPUTDIALOG_SETTEXTECHOMODE ) +{ + hbqt_par_QInputDialog( 1 )->setTextEchoMode( ( QLineEdit::EchoMode ) hb_parni( 2 ) ); +} + +/* + * void setTextValue ( const QString & text ) + */ +HB_FUNC( QT_QINPUTDIALOG_SETTEXTVALUE ) +{ + hbqt_par_QInputDialog( 1 )->setTextValue( hbqt_par_QString( 2 ) ); +} + +/* + * bool testOption ( InputDialogOption option ) const + */ +HB_FUNC( QT_QINPUTDIALOG_TESTOPTION ) +{ + hb_retl( hbqt_par_QInputDialog( 1 )->testOption( ( QInputDialog::InputDialogOption ) hb_parni( 2 ) ) ); +} + +/* + * QLineEdit::EchoMode textEchoMode () const + */ +HB_FUNC( QT_QINPUTDIALOG_TEXTECHOMODE ) +{ + hb_retni( hbqt_par_QInputDialog( 1 )->textEchoMode( ) ); +} + +/* + * QString textValue () const + */ +HB_FUNC( QT_QINPUTDIALOG_TEXTVALUE ) +{ + hb_retc( hbqt_par_QInputDialog( 1 )->textValue( ).toLatin1().data() ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qlabel.cpp b/harbour/contrib/hbqt/hbqt_qlabel.cpp index 109a43150c..530c107b9c 100644 --- a/harbour/contrib/hbqt/hbqt_qlabel.cpp +++ b/harbour/contrib/hbqt/hbqt_qlabel.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,198 +55,245 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 26/28 [ 92.86% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * void setPicture ( const QPicture & picture ) + * void setPixmap ( const QPixmap & ) + */ + #include -/*----------------------------------------------------------------------*/ + /* -QLabel ( QWidget * parent = 0, Qt::WindowFlags f = 0 ) -QLabel ( const QString & text, QWidget * parent = 0, Qt::WindowFlags f = 0 ) -*/ + * QLabel ( QWidget * parent = 0, Qt::WindowFlags f = 0 ) + * QLabel ( const QString & text, QWidget * parent = 0, Qt::WindowFlags f = 0 ) + * ~QLabel () + */ HB_FUNC( QT_QLABEL ) { hb_retptr( ( QLabel* ) new QLabel( hbqt_par_QWidget( 1 ) ) ); } /* -Qt::Alignment alignment () const -*/ + * Qt::Alignment alignment () const + */ HB_FUNC( QT_QLABEL_ALIGNMENT ) { - hb_retni( hbqt_par_QLabel( 1 )->alignment() ); + hb_retni( hbqt_par_QLabel( 1 )->alignment( ) ); } /* -QWidget * buddy () const -*/ + * QWidget * buddy () const + */ HB_FUNC( QT_QLABEL_BUDDY ) { - hb_retptr( ( QWidget* ) hbqt_par_QLabel( 1 )->buddy() ); + hb_retptr( ( QWidget* ) hbqt_par_QLabel( 1 )->buddy( ) ); } /* -bool hasScaledContents () const -*/ + * bool hasScaledContents () const + */ HB_FUNC( QT_QLABEL_HASSCALEDCONTENTS ) { - hb_retl( hbqt_par_QLabel( 1 )->hasScaledContents() ); + hb_retl( hbqt_par_QLabel( 1 )->hasScaledContents( ) ); } /* -int indent () const -*/ + * int indent () const + */ HB_FUNC( QT_QLABEL_INDENT ) { - hb_retni( hbqt_par_QLabel( 1 )->indent() ); + hb_retni( hbqt_par_QLabel( 1 )->indent( ) ); } /* -int margin () const -*/ + * int margin () const + */ HB_FUNC( QT_QLABEL_MARGIN ) { - hb_retni( hbqt_par_QLabel( 1 )->margin() ); + hb_retni( hbqt_par_QLabel( 1 )->margin( ) ); } /* -bool openExternalLinks () const -*/ + * QMovie * movie () const + */ +HB_FUNC( QT_QLABEL_MOVIE ) +{ + hb_retptr( ( QMovie* ) hbqt_par_QLabel( 1 )->movie( ) ); +} + +/* + * bool openExternalLinks () const + */ HB_FUNC( QT_QLABEL_OPENEXTERNALLINKS ) { - hb_retl( hbqt_par_QLabel( 1 )->openExternalLinks() ); + hb_retl( hbqt_par_QLabel( 1 )->openExternalLinks( ) ); } /* -void setAlignment ( Qt::Alignment ) -*/ + * const QPicture * picture () const + */ +HB_FUNC( QT_QLABEL_PICTURE ) +{ + hb_retptr( ( QPicture* ) hbqt_par_QLabel( 1 )->picture( ) ); +} + +/* + * const QPixmap * pixmap () const + */ +HB_FUNC( QT_QLABEL_PIXMAP ) +{ + hb_retptr( ( QPixmap* ) hbqt_par_QLabel( 1 )->pixmap( ) ); +} + +/* + * void setAlignment ( Qt::Alignment ) + */ HB_FUNC( QT_QLABEL_SETALIGNMENT ) { hbqt_par_QLabel( 1 )->setAlignment( ( Qt::Alignment ) hb_parni( 2 ) ); } /* -void setBuddy ( QWidget * buddy ) -*/ + * void setBuddy ( QWidget * buddy ) + */ HB_FUNC( QT_QLABEL_SETBUDDY ) { - hbqt_par_QLabel( 1 )->setBuddy( hbqt_par_QWidget( 1 ) ); + hbqt_par_QLabel( 1 )->setBuddy( hbqt_par_QWidget( 2 ) ); } /* -void setIndent ( int ) -*/ + * void setIndent ( int ) + */ HB_FUNC( QT_QLABEL_SETINDENT ) { hbqt_par_QLabel( 1 )->setIndent( hb_parni( 2 ) ); } /* -void setMargin ( int ) -*/ + * void setMargin ( int ) + */ HB_FUNC( QT_QLABEL_SETMARGIN ) { hbqt_par_QLabel( 1 )->setMargin( hb_parni( 2 ) ); } /* -void setOpenExternalLinks ( bool open ) -*/ + * void setOpenExternalLinks ( bool open ) + */ HB_FUNC( QT_QLABEL_SETOPENEXTERNALLINKS ) { hbqt_par_QLabel( 1 )->setOpenExternalLinks( hb_parl( 2 ) ); } /* -void setScaledContents ( bool ) -*/ + * void setScaledContents ( bool ) + */ HB_FUNC( QT_QLABEL_SETSCALEDCONTENTS ) { hbqt_par_QLabel( 1 )->setScaledContents( hb_parl( 2 ) ); } /* -void setTextFormat ( Qt::TextFormat ) -*/ + * void setTextFormat ( Qt::TextFormat ) + */ HB_FUNC( QT_QLABEL_SETTEXTFORMAT ) { hbqt_par_QLabel( 1 )->setTextFormat( ( Qt::TextFormat ) hb_parni( 2 ) ); } /* -void setTextInteractionFlags ( Qt::TextInteractionFlags flags ) -*/ -HB_FUNC( QT_QLABEL_SETTEXTINTERACTIONFLAGS ) -{ - hbqt_par_QLabel( 1 )->setTextInteractionFlags( ( Qt::TextInteractionFlags ) hb_parni( 2 ) ); -} - -/* -void setWordWrap ( bool on ) -*/ + * void setWordWrap ( bool on ) + */ HB_FUNC( QT_QLABEL_SETWORDWRAP ) { hbqt_par_QLabel( 1 )->setWordWrap( hb_parl( 2 ) ); } /* -QString text () const -*/ + * QString text () const + */ HB_FUNC( QT_QLABEL_TEXT ) { - hb_retc( hbqt_par_QLabel( 1 )->text().toLatin1().data() ); + hb_retc( hbqt_par_QLabel( 1 )->text( ).toLatin1().data() ); } /* -Qt::TextFormat textFormat () const -*/ + * Qt::TextFormat textFormat () const + */ HB_FUNC( QT_QLABEL_TEXTFORMAT ) { - hb_retni( hbqt_par_QLabel( 1 )->textFormat() ); + hb_retni( hbqt_par_QLabel( 1 )->textFormat( ) ); } /* -Qt::TextInteractionFlags textInteractionFlags () const -*/ + * Qt::TextInteractionFlags textInteractionFlags () const + */ HB_FUNC( QT_QLABEL_TEXTINTERACTIONFLAGS ) { - hb_retni( hbqt_par_QLabel( 1 )->textInteractionFlags() ); + hb_retni( hbqt_par_QLabel( 1 )->textInteractionFlags( ) ); } /* -bool wordWrap () const -*/ + * bool wordWrap () const + */ HB_FUNC( QT_QLABEL_WORDWRAP ) { - hb_retl( hbqt_par_QLabel( 1 )->wordWrap() ); + hb_retl( hbqt_par_QLabel( 1 )->wordWrap( ) ); } /* -void clear () -*/ + * void clear () + */ HB_FUNC( QT_QLABEL_CLEAR ) { - hbqt_par_QLabel( 1 )->clear(); -} - - -HB_FUNC( QT_QLABEL_SETNUM ) -{ - PHB_ITEM num = hb_param( 2, HB_IT_ANY ); - - if( HB_IS_DOUBLE( num ) ) - hbqt_par_QLabel( 1 )->setNum( ( double ) hb_parnd( 2 ) ); - else if( HB_IS_NUMBER(num) ) - hbqt_par_QLabel( 1 )->setNum( ( int ) hb_parni( 2 ) ); + hbqt_par_QLabel( 1 )->clear( ); } /* -void setText ( const QString & ) -*/ + * void setMovie ( QMovie * movie ) + */ +HB_FUNC( QT_QLABEL_SETMOVIE ) +{ + hbqt_par_QLabel( 1 )->setMovie( hbqt_par_QMovie( 2 ) ); +} + +/* + * void setNum ( int num ) + */ +HB_FUNC( QT_QLABEL_SETNUM ) +{ + hbqt_par_QLabel( 1 )->setNum( hb_parni( 2 ) ); +} + +/* + * void setNum ( double num ) + */ +HB_FUNC( QT_QLABEL_SETNUM_1 ) +{ + hbqt_par_QLabel( 1 )->setNum( hb_parnd( 2 ) ); +} + +/* + * void setText ( const QString & ) + */ HB_FUNC( QT_QLABEL_SETTEXT ) { hbqt_par_QLabel( 1 )->setText( hbqt_par_QString( 2 ) ); } + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qlayout.cpp b/harbour/contrib/hbqt/hbqt_qlayout.cpp index 9764969ccc..be6814cd52 100644 --- a/harbour/contrib/hbqt/hbqt_qlayout.cpp +++ b/harbour/contrib/hbqt/hbqt_qlayout.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,154 +55,251 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 27/28 [ 96.43% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * void getContentsMargins ( int * left, int * top, int * right, int * bottom ) const + */ + #include -/*----------------------------------------------------------------------*/ + /* -bool activate () -*/ -HB_FUNC( QT_QLAYOUT_ACTIVATE ) + * QLayout ( QWidget * parent ) + * QLayout () + */ +HB_FUNC( QT_QLAYOUT ) { - hb_retl( hbqt_par_QLayout( 1 )->activate() ); + } /* -void addWidget ( QWidget * w ) -*/ + * bool activate () + */ +HB_FUNC( QT_QLAYOUT_ACTIVATE ) +{ + hb_retl( hbqt_par_QLayout( 1 )->activate( ) ); +} + +/* + * virtual void addItem ( QLayoutItem * item ) = 0 + */ +HB_FUNC( QT_QLAYOUT_ADDITEM ) +{ + hbqt_par_QLayout( 1 )->addItem( hbqt_par_QLayoutItem( 2 ) ); +} + +/* + * void addWidget ( QWidget * w ) + */ HB_FUNC( QT_QLAYOUT_ADDWIDGET ) { hbqt_par_QLayout( 1 )->addWidget( hbqt_par_QWidget( 2 ) ); } /* -bool isEnabled () const -*/ + * QRect contentsRect () const + */ +HB_FUNC( QT_QLAYOUT_CONTENTSRECT ) +{ + hbqt_ret_QRect( hbqt_par_QLayout( 1 )->contentsRect( ) ); +} + +/* + * virtual int count () const = 0 + */ +HB_FUNC( QT_QLAYOUT_COUNT ) +{ + hb_retni( hbqt_par_QLayout( 1 )->count( ) ); +} + +/* + * virtual Qt::Orientations expandingDirections () const + */ +HB_FUNC( QT_QLAYOUT_EXPANDINGDIRECTIONS ) +{ + hb_retni( hbqt_par_QLayout( 1 )->expandingDirections( ) ); +} + +/* + * virtual int indexOf ( QWidget * widget ) const + */ +HB_FUNC( QT_QLAYOUT_INDEXOF ) +{ + hb_retni( hbqt_par_QLayout( 1 )->indexOf( hbqt_par_QWidget( 2 ) ) ); +} + +/* + * bool isEnabled () const + */ HB_FUNC( QT_QLAYOUT_ISENABLED ) { - hb_retl( hbqt_par_QLayout( 1 )->isEnabled() ); + hb_retl( hbqt_par_QLayout( 1 )->isEnabled( ) ); } /* -QWidget * menuBar () const -*/ + * virtual QLayoutItem * itemAt ( int index ) const = 0 + */ +HB_FUNC( QT_QLAYOUT_ITEMAT ) +{ + hb_retptr( ( QLayoutItem* ) hbqt_par_QLayout( 1 )->itemAt( hb_parni( 2 ) ) ); +} + +/* + * virtual QSize maximumSize () const + */ +HB_FUNC( QT_QLAYOUT_MAXIMUMSIZE ) +{ + hbqt_ret_QSize( hbqt_par_QLayout( 1 )->maximumSize( ) ); +} + +/* + * QWidget * menuBar () const + */ HB_FUNC( QT_QLAYOUT_MENUBAR ) { - hb_retptr( ( QWidget* ) hbqt_par_QLayout( 1 )->menuBar() ); + hb_retptr( ( QWidget* ) hbqt_par_QLayout( 1 )->menuBar( ) ); } /* -QWidget * parentWidget () const -*/ + * virtual QSize minimumSize () const + */ +HB_FUNC( QT_QLAYOUT_MINIMUMSIZE ) +{ + hbqt_ret_QSize( hbqt_par_QLayout( 1 )->minimumSize( ) ); +} + +/* + * QWidget * parentWidget () const + */ HB_FUNC( QT_QLAYOUT_PARENTWIDGET ) { - hb_retptr( ( QWidget* ) hbqt_par_QLayout( 1 )->parentWidget() ); + hb_retptr( ( QWidget* ) hbqt_par_QLayout( 1 )->parentWidget( ) ); } /* -void removeItem ( QLayoutItem * item ) -*/ + * void removeItem ( QLayoutItem * item ) + */ HB_FUNC( QT_QLAYOUT_REMOVEITEM ) { hbqt_par_QLayout( 1 )->removeItem( hbqt_par_QLayoutItem( 2 ) ); } /* -void removeWidget ( QWidget * widget ) -*/ + * void removeWidget ( QWidget * widget ) + */ HB_FUNC( QT_QLAYOUT_REMOVEWIDGET ) { hbqt_par_QLayout( 1 )->removeWidget( hbqt_par_QWidget( 2 ) ); } /* -bool setAlignment ( QWidget * w, Qt::Alignment alignment ) -*/ -HB_FUNC( QT_QLAYOUT_SETALIGNMENT_1 ) + * bool setAlignment ( QWidget * w, Qt::Alignment alignment ) + */ +HB_FUNC( QT_QLAYOUT_SETALIGNMENT ) { hb_retl( hbqt_par_QLayout( 1 )->setAlignment( hbqt_par_QWidget( 2 ), ( Qt::Alignment ) hb_parni( 3 ) ) ); } /* -void setAlignment ( Qt::Alignment alignment ) -*/ -HB_FUNC( QT_QLAYOUT_SETALIGNMENT_2 ) + * void setAlignment ( Qt::Alignment alignment ) + */ +HB_FUNC( QT_QLAYOUT_SETALIGNMENT_1 ) { hbqt_par_QLayout( 1 )->setAlignment( ( Qt::Alignment ) hb_parni( 2 ) ); } /* -bool setAlignment ( QLayout * l, Qt::Alignment alignment ) -*/ -HB_FUNC( QT_QLAYOUT_SETALIGNMENT_3 ) + * bool setAlignment ( QLayout * l, Qt::Alignment alignment ) + */ +HB_FUNC( QT_QLAYOUT_SETALIGNMENT_2 ) { hb_retl( hbqt_par_QLayout( 1 )->setAlignment( hbqt_par_QLayout( 2 ), ( Qt::Alignment ) hb_parni( 3 ) ) ); } /* -void setContentsMargins ( int left, int top, int right, int bottom ) -*/ + * void setContentsMargins ( int left, int top, int right, int bottom ) + */ HB_FUNC( QT_QLAYOUT_SETCONTENTSMARGINS ) { hbqt_par_QLayout( 1 )->setContentsMargins( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ) ); } /* -void setEnabled ( bool enable ) -*/ + * void setEnabled ( bool enable ) + */ HB_FUNC( QT_QLAYOUT_SETENABLED ) { hbqt_par_QLayout( 1 )->setEnabled( hb_parl( 2 ) ); } /* -void setMenuBar ( QWidget * widget ) -*/ + * void setMenuBar ( QWidget * widget ) + */ HB_FUNC( QT_QLAYOUT_SETMENUBAR ) { hbqt_par_QLayout( 1 )->setMenuBar( hbqt_par_QWidget( 2 ) ); } /* -void setSizeConstraint ( SizeConstraint ) -*/ + * void setSizeConstraint ( SizeConstraint ) + */ HB_FUNC( QT_QLAYOUT_SETSIZECONSTRAINT ) { hbqt_par_QLayout( 1 )->setSizeConstraint( ( QLayout::SizeConstraint ) hb_parni( 2 ) ); } /* -void setSpacing ( int ) -*/ + * void setSpacing ( int ) + */ HB_FUNC( QT_QLAYOUT_SETSPACING ) { hbqt_par_QLayout( 1 )->setSpacing( hb_parni( 2 ) ); } /* -SizeConstraint sizeConstraint () const -*/ + * SizeConstraint sizeConstraint () const + */ HB_FUNC( QT_QLAYOUT_SIZECONSTRAINT ) { - hb_retni( hbqt_par_QLayout( 1 )->sizeConstraint() ); + hb_retni( hbqt_par_QLayout( 1 )->sizeConstraint( ) ); } /* -int spacing () const -*/ + * int spacing () const + */ HB_FUNC( QT_QLAYOUT_SPACING ) { - hb_retni( hbqt_par_QLayout( 1 )->spacing() ); + hb_retni( hbqt_par_QLayout( 1 )->spacing( ) ); } /* -void update () -*/ -HB_FUNC( QT_QLAYOUT_UPDATE ) + * virtual QLayoutItem * takeAt ( int index ) = 0 + */ +HB_FUNC( QT_QLAYOUT_TAKEAT ) { - hbqt_par_QLayout( 1 )->update(); + hb_retptr( ( QLayoutItem* ) hbqt_par_QLayout( 1 )->takeAt( hb_parni( 2 ) ) ); } +/* + * void update () + */ +HB_FUNC( QT_QLAYOUT_UPDATE ) +{ + hbqt_par_QLayout( 1 )->update( ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qlayoutitem.cpp b/harbour/contrib/hbqt/hbqt_qlayoutitem.cpp index 9c6ed89f51..cb676e4c61 100644 --- a/harbour/contrib/hbqt/hbqt_qlayoutitem.cpp +++ b/harbour/contrib/hbqt/hbqt_qlayoutitem.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,34 +55,161 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -Qt::Alignment alignment () const -*/ + + */ +HB_FUNC( QT_QLAYOUTITEM ) +{ + +} + +/* + * Qt::Alignment alignment () const + */ HB_FUNC( QT_QLAYOUTITEM_ALIGNMENT ) { - hb_retni( hbqt_par_QLayoutItem( 1 )->alignment() ); + hb_retni( hbqt_par_QLayoutItem( 1 )->alignment( ) ); } /* -QSizePolicy::ControlTypes controlTypes () const -*/ + * QSizePolicy::ControlTypes controlTypes () const + */ HB_FUNC( QT_QLAYOUTITEM_CONTROLTYPES ) { - hb_retni( hbqt_par_QLayoutItem( 1 )->controlTypes() ); + hb_retni( hbqt_par_QLayoutItem( 1 )->controlTypes( ) ); } /* -void setAlignment ( Qt::Alignment alignment ) -*/ + * virtual Qt::Orientations expandingDirections () const = 0 + */ +HB_FUNC( QT_QLAYOUTITEM_EXPANDINGDIRECTIONS ) +{ + hb_retni( hbqt_par_QLayoutItem( 1 )->expandingDirections( ) ); +} + +/* + * virtual QRect geometry () const = 0 + */ +HB_FUNC( QT_QLAYOUTITEM_GEOMETRY ) +{ + hbqt_ret_QRect( hbqt_par_QLayoutItem( 1 )->geometry( ) ); +} + +/* + * virtual bool hasHeightForWidth () const + */ +HB_FUNC( QT_QLAYOUTITEM_HASHEIGHTFORWIDTH ) +{ + hb_retl( hbqt_par_QLayoutItem( 1 )->hasHeightForWidth( ) ); +} + +/* + * virtual int heightForWidth ( int w ) const + */ +HB_FUNC( QT_QLAYOUTITEM_HEIGHTFORWIDTH ) +{ + hb_retni( hbqt_par_QLayoutItem( 1 )->heightForWidth( hb_parni( 2 ) ) ); +} + +/* + * virtual void invalidate () + */ +HB_FUNC( QT_QLAYOUTITEM_INVALIDATE ) +{ + hbqt_par_QLayoutItem( 1 )->invalidate( ); +} + +/* + * virtual bool isEmpty () const = 0 + */ +HB_FUNC( QT_QLAYOUTITEM_ISEMPTY ) +{ + hb_retl( hbqt_par_QLayoutItem( 1 )->isEmpty( ) ); +} + +/* + * virtual QLayout * layout () + */ +HB_FUNC( QT_QLAYOUTITEM_LAYOUT ) +{ + hb_retptr( ( QLayout* ) hbqt_par_QLayoutItem( 1 )->layout( ) ); +} + +/* + * virtual QSize maximumSize () const = 0 + */ +HB_FUNC( QT_QLAYOUTITEM_MAXIMUMSIZE ) +{ + hbqt_ret_QSize( hbqt_par_QLayoutItem( 1 )->maximumSize( ) ); +} + +/* + * virtual int minimumHeightForWidth ( int w ) const + */ +HB_FUNC( QT_QLAYOUTITEM_MINIMUMHEIGHTFORWIDTH ) +{ + hb_retni( hbqt_par_QLayoutItem( 1 )->minimumHeightForWidth( hb_parni( 2 ) ) ); +} + +/* + * virtual QSize minimumSize () const = 0 + */ +HB_FUNC( QT_QLAYOUTITEM_MINIMUMSIZE ) +{ + hbqt_ret_QSize( hbqt_par_QLayoutItem( 1 )->minimumSize( ) ); +} + +/* + * void setAlignment ( Qt::Alignment alignment ) + */ HB_FUNC( QT_QLAYOUTITEM_SETALIGNMENT ) { hbqt_par_QLayoutItem( 1 )->setAlignment( ( Qt::Alignment ) hb_parni( 2 ) ); } +/* + * virtual void setGeometry ( const QRect & r ) = 0 + */ +HB_FUNC( QT_QLAYOUTITEM_SETGEOMETRY ) +{ + hbqt_par_QLayoutItem( 1 )->setGeometry( hbqt_const_QRect( 2 ) ); +} + +/* + * virtual QSize sizeHint () const = 0 + */ +HB_FUNC( QT_QLAYOUTITEM_SIZEHINT ) +{ + hbqt_ret_QSize( hbqt_par_QLayoutItem( 1 )->sizeHint( ) ); +} + +/* + * virtual QSpacerItem * spacerItem () + */ +HB_FUNC( QT_QLAYOUTITEM_SPACERITEM ) +{ + hb_retptr( ( QSpacerItem* ) hbqt_par_QLayoutItem( 1 )->spacerItem( ) ); +} + +/* + * virtual QWidget * widget () + */ +HB_FUNC( QT_QLAYOUTITEM_WIDGET ) +{ + hb_retptr( ( QWidget* ) hbqt_par_QLayoutItem( 1 )->widget( ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qlcdnumber.cpp b/harbour/contrib/hbqt/hbqt_qlcdnumber.cpp index b31b60b6db..a387b89e7a 100644 --- a/harbour/contrib/hbqt/hbqt_qlcdnumber.cpp +++ b/harbour/contrib/hbqt/hbqt_qlcdnumber.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,19 +55,115 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -QLCDNumber ( QWidget * parent = 0 ) -QLCDNumber ( uint numDigits, QWidget * parent = 0 ) -*/ + * QLCDNumber ( QWidget * parent = 0 ) + * QLCDNumber ( uint numDigits, QWidget * parent = 0 ) + * ~QLCDNumber () + */ HB_FUNC( QT_QLCDNUMBER ) { hb_retptr( ( QLCDNumber * ) new QLCDNumber( hbqt_par_QWidget( 1 ) ) ); } +/* + * bool checkOverflow ( double num ) const + */ +HB_FUNC( QT_QLCDNUMBER_CHECKOVERFLOW ) +{ + hb_retl( hbqt_par_QLCDNumber( 1 )->checkOverflow( hb_parnd( 2 ) ) ); +} + +/* + * bool checkOverflow ( int num ) const + */ +HB_FUNC( QT_QLCDNUMBER_CHECKOVERFLOW_1 ) +{ + hb_retl( hbqt_par_QLCDNumber( 1 )->checkOverflow( hb_parni( 2 ) ) ); +} + +/* + * int intValue () const + */ +HB_FUNC( QT_QLCDNUMBER_INTVALUE ) +{ + hb_retni( hbqt_par_QLCDNumber( 1 )->intValue( ) ); +} + +/* + * Mode mode () const + */ +HB_FUNC( QT_QLCDNUMBER_MODE ) +{ + hb_retni( hbqt_par_QLCDNumber( 1 )->mode( ) ); +} + +/* + * int numDigits () const + */ +HB_FUNC( QT_QLCDNUMBER_NUMDIGITS ) +{ + hb_retni( hbqt_par_QLCDNumber( 1 )->numDigits( ) ); +} + +/* + * SegmentStyle segmentStyle () const + */ +HB_FUNC( QT_QLCDNUMBER_SEGMENTSTYLE ) +{ + hb_retni( hbqt_par_QLCDNumber( 1 )->segmentStyle( ) ); +} + +/* + * void setMode ( Mode ) + */ +HB_FUNC( QT_QLCDNUMBER_SETMODE ) +{ + hbqt_par_QLCDNumber( 1 )->setMode( ( QLCDNumber::Mode ) hb_parni( 2 ) ); +} + +/* + * void setNumDigits ( int nDigits ) + */ +HB_FUNC( QT_QLCDNUMBER_SETNUMDIGITS ) +{ + hbqt_par_QLCDNumber( 1 )->setNumDigits( hb_parni( 2 ) ); +} + +/* + * void setSegmentStyle ( SegmentStyle ) + */ +HB_FUNC( QT_QLCDNUMBER_SETSEGMENTSTYLE ) +{ + hbqt_par_QLCDNumber( 1 )->setSegmentStyle( ( QLCDNumber::SegmentStyle ) hb_parni( 2 ) ); +} + +/* + * bool smallDecimalPoint () const + */ +HB_FUNC( QT_QLCDNUMBER_SMALLDECIMALPOINT ) +{ + hb_retl( hbqt_par_QLCDNumber( 1 )->smallDecimalPoint( ) ); +} + +/* + * double value () const + */ +HB_FUNC( QT_QLCDNUMBER_VALUE ) +{ + hb_retnd( hbqt_par_QLCDNumber( 1 )->value( ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qlineedit.cpp b/harbour/contrib/hbqt/hbqt_qlineedit.cpp index 58e4cf22be..33a337a8a8 100644 --- a/harbour/contrib/hbqt/hbqt_qlineedit.cpp +++ b/harbour/contrib/hbqt/hbqt_qlineedit.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,403 +55,404 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 46/47 [ 97.87% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * void getTextMargins ( int * left, int * top, int * right, int * bottom ) const + */ + #include -/*----------------------------------------------------------------------*/ + /* -QLineEdit( QWidget * parent = 0 ) -QLineEdit( const QString & contents, QWidget * parent = 0 ) -*/ + * QLineEdit ( QWidget * parent = 0 ) + * QLineEdit ( const QString & contents, QWidget * parent = 0 ) + * ~QLineEdit () + */ HB_FUNC( QT_QLINEEDIT ) { hb_retptr( ( QLineEdit* ) new QLineEdit( hbqt_par_QWidget( 1 ) ) ); } /* -Qt::Alignment alignment () const -*/ + * Qt::Alignment alignment () const + */ HB_FUNC( QT_QLINEEDIT_ALIGNMENT ) { - hb_retni( hbqt_par_QLineEdit( 1 )->alignment() ); + hb_retni( hbqt_par_QLineEdit( 1 )->alignment( ) ); } /* -void backspace () -*/ + * void backspace () + */ HB_FUNC( QT_QLINEEDIT_BACKSPACE ) { - hbqt_par_QLineEdit( 1 )->backspace(); + hbqt_par_QLineEdit( 1 )->backspace( ); } /* -QCompleter * completer () const -*/ + * QCompleter * completer () const + */ HB_FUNC( QT_QLINEEDIT_COMPLETER ) { - hb_retptr( ( QCompleter* ) hbqt_par_QLineEdit( 1 )->completer() ); + hb_retptr( ( QCompleter* ) hbqt_par_QLineEdit( 1 )->completer( ) ); } /* -QMenu * createStandardContextMenu () -*/ + * QMenu * createStandardContextMenu () + */ HB_FUNC( QT_QLINEEDIT_CREATESTANDARDCONTEXTMENU ) { - hb_retptr( ( QMenu* ) hbqt_par_QLineEdit( 1 )->createStandardContextMenu() ); + hb_retptr( ( QMenu* ) hbqt_par_QLineEdit( 1 )->createStandardContextMenu( ) ); } /* -void cursorBackward( bool mark, int steps = 1 ) -*/ + * void cursorBackward ( bool mark, int steps = 1 ) + */ HB_FUNC( QT_QLINEEDIT_CURSORBACKWARD ) { hbqt_par_QLineEdit( 1 )->cursorBackward( hb_parl( 2 ), hb_parni( 3 ) ); } /* -void cursorForward( bool mark, int steps = 1 ) -*/ + * void cursorForward ( bool mark, int steps = 1 ) + */ HB_FUNC( QT_QLINEEDIT_CURSORFORWARD ) { hbqt_par_QLineEdit( 1 )->cursorForward( hb_parl( 2 ), hb_parni( 3 ) ); } /* -int cursorPosition () const -*/ + * int cursorPosition () const + */ HB_FUNC( QT_QLINEEDIT_CURSORPOSITION ) { - hb_retni( hbqt_par_QLineEdit( 1 )->cursorPosition() ); + hb_retni( hbqt_par_QLineEdit( 1 )->cursorPosition( ) ); } /* -void cursorWordBackward( bool mark ) -*/ + * int cursorPositionAt ( const QPoint & pos ) + */ +HB_FUNC( QT_QLINEEDIT_CURSORPOSITIONAT ) +{ + hb_retni( hbqt_par_QLineEdit( 1 )->cursorPositionAt( hbqt_const_QPoint( 2 ) ) ); +} + +/* + * void cursorWordBackward ( bool mark ) + */ HB_FUNC( QT_QLINEEDIT_CURSORWORDBACKWARD ) { hbqt_par_QLineEdit( 1 )->cursorWordBackward( hb_parl( 2 ) ); } /* -void cursorWordForward( bool mark ) -*/ + * void cursorWordForward ( bool mark ) + */ HB_FUNC( QT_QLINEEDIT_CURSORWORDFORWARD ) { hbqt_par_QLineEdit( 1 )->cursorWordForward( hb_parl( 2 ) ); } /* -void del () -*/ + * void del () + */ HB_FUNC( QT_QLINEEDIT_DEL ) { - hbqt_par_QLineEdit( 1 )->del(); + hbqt_par_QLineEdit( 1 )->del( ); } /* -void deselect () -*/ + * void deselect () + */ HB_FUNC( QT_QLINEEDIT_DESELECT ) { - hbqt_par_QLineEdit( 1 )->deselect(); + hbqt_par_QLineEdit( 1 )->deselect( ); } /* -QString displayText () const -*/ + * QString displayText () const + */ HB_FUNC( QT_QLINEEDIT_DISPLAYTEXT ) { - hb_retc( hbqt_par_QLineEdit( 1 )->displayText().toLatin1().data() ); + hb_retc( hbqt_par_QLineEdit( 1 )->displayText( ).toLatin1().data() ); } /* -bool dragEnabled () const -*/ + * bool dragEnabled () const + */ HB_FUNC( QT_QLINEEDIT_DRAGENABLED ) { - hb_retl( hbqt_par_QLineEdit( 1 )->dragEnabled() ); + hb_retl( hbqt_par_QLineEdit( 1 )->dragEnabled( ) ); } /* -EchoMode echoMode () const -*/ + * EchoMode echoMode () const + */ HB_FUNC( QT_QLINEEDIT_ECHOMODE ) { - hb_retni( hbqt_par_QLineEdit( 1 )->echoMode() ); + hb_retni( hbqt_par_QLineEdit( 1 )->echoMode( ) ); } /* -void end( bool mark ) -*/ + * void end ( bool mark ) + */ HB_FUNC( QT_QLINEEDIT_END ) { hbqt_par_QLineEdit( 1 )->end( hb_parl( 2 ) ); } /* -bool hasAcceptableInput () const -*/ + * bool hasAcceptableInput () const + */ HB_FUNC( QT_QLINEEDIT_HASACCEPTABLEINPUT ) { - hb_retl( hbqt_par_QLineEdit( 1 )->hasAcceptableInput() ); + hb_retl( hbqt_par_QLineEdit( 1 )->hasAcceptableInput( ) ); } /* -bool hasFrame () const -*/ + * bool hasFrame () const + */ HB_FUNC( QT_QLINEEDIT_HASFRAME ) { - hb_retl( hbqt_par_QLineEdit( 1 )->hasFrame() ); + hb_retl( hbqt_par_QLineEdit( 1 )->hasFrame( ) ); } /* -bool hasSelectedText () const -*/ + * bool hasSelectedText () const + */ HB_FUNC( QT_QLINEEDIT_HASSELECTEDTEXT ) { - hb_retl( hbqt_par_QLineEdit( 1 )->hasSelectedText() ); + hb_retl( hbqt_par_QLineEdit( 1 )->hasSelectedText( ) ); } /* -void home( bool mark ) -*/ + * void home ( bool mark ) + */ HB_FUNC( QT_QLINEEDIT_HOME ) { hbqt_par_QLineEdit( 1 )->home( hb_parl( 2 ) ); } /* -QString inputMask () const -*/ + * QString inputMask () const + */ HB_FUNC( QT_QLINEEDIT_INPUTMASK ) { - hb_retc( hbqt_par_QLineEdit( 1 )->inputMask().toLatin1().data() ); + hb_retc( hbqt_par_QLineEdit( 1 )->inputMask( ).toLatin1().data() ); } /* -void insert( const QString & newText ) -*/ + * void insert ( const QString & newText ) + */ HB_FUNC( QT_QLINEEDIT_INSERT ) { hbqt_par_QLineEdit( 1 )->insert( hbqt_par_QString( 2 ) ); } /* -bool isModified () const -*/ + * bool isModified () const + */ HB_FUNC( QT_QLINEEDIT_ISMODIFIED ) { - hb_retl( hbqt_par_QLineEdit( 1 )->isModified() ); + hb_retl( hbqt_par_QLineEdit( 1 )->isModified( ) ); } /* -bool isReadOnly () const -*/ + * bool isReadOnly () const + */ HB_FUNC( QT_QLINEEDIT_ISREADONLY ) { - hb_retl( hbqt_par_QLineEdit( 1 )->isReadOnly() ); + hb_retl( hbqt_par_QLineEdit( 1 )->isReadOnly( ) ); } /* -bool isRedoAvailable () const -*/ + * bool isRedoAvailable () const + */ HB_FUNC( QT_QLINEEDIT_ISREDOAVAILABLE ) { - hb_retl( hbqt_par_QLineEdit( 1 )->isRedoAvailable() ); + hb_retl( hbqt_par_QLineEdit( 1 )->isRedoAvailable( ) ); } /* -bool isUndoAvailable () const -*/ + * bool isUndoAvailable () const + */ HB_FUNC( QT_QLINEEDIT_ISUNDOAVAILABLE ) { - hb_retl( hbqt_par_QLineEdit( 1 )->isUndoAvailable() ); + hb_retl( hbqt_par_QLineEdit( 1 )->isUndoAvailable( ) ); } /* -int maxLength () const -*/ + * int maxLength () const + */ HB_FUNC( QT_QLINEEDIT_MAXLENGTH ) { - hb_retni( hbqt_par_QLineEdit( 1 )->maxLength() ); + hb_retni( hbqt_par_QLineEdit( 1 )->maxLength( ) ); } /* -QString selectedText () const -*/ + * virtual QSize minimumSizeHint () const + */ +HB_FUNC( QT_QLINEEDIT_MINIMUMSIZEHINT ) +{ + hbqt_ret_QSize( hbqt_par_QLineEdit( 1 )->minimumSizeHint( ) ); +} + +/* + * QString selectedText () const + */ HB_FUNC( QT_QLINEEDIT_SELECTEDTEXT ) { - hb_retc( hbqt_par_QLineEdit( 1 )->selectedText().toLatin1().data() ); + hb_retc( hbqt_par_QLineEdit( 1 )->selectedText( ).toLatin1().data() ); } /* -int selectionStart () const -*/ + * int selectionStart () const + */ HB_FUNC( QT_QLINEEDIT_SELECTIONSTART ) { - hb_retni( hbqt_par_QLineEdit( 1 )->selectionStart() ); + hb_retni( hbqt_par_QLineEdit( 1 )->selectionStart( ) ); } /* -void setAlignment( Qt::Alignment flag ) -*/ + * void setAlignment ( Qt::Alignment flag ) + */ HB_FUNC( QT_QLINEEDIT_SETALIGNMENT ) { hbqt_par_QLineEdit( 1 )->setAlignment( ( Qt::Alignment ) hb_parni( 2 ) ); } /* -void setCompleter( QCompleter * c ) -*/ + * void setCompleter ( QCompleter * c ) + */ HB_FUNC( QT_QLINEEDIT_SETCOMPLETER ) { hbqt_par_QLineEdit( 1 )->setCompleter( hbqt_par_QCompleter( 2 ) ); } /* -void setCursorPosition( int ) -*/ + * void setCursorPosition ( int ) + */ HB_FUNC( QT_QLINEEDIT_SETCURSORPOSITION ) { hbqt_par_QLineEdit( 1 )->setCursorPosition( hb_parni( 2 ) ); } /* -void setDragEnabled( bool b ) -*/ + * void setDragEnabled ( bool b ) + */ HB_FUNC( QT_QLINEEDIT_SETDRAGENABLED ) { hbqt_par_QLineEdit( 1 )->setDragEnabled( hb_parl( 2 ) ); } /* -void setEchoMode( EchoMode ) -*/ + * void setEchoMode ( EchoMode ) + */ HB_FUNC( QT_QLINEEDIT_SETECHOMODE ) { hbqt_par_QLineEdit( 1 )->setEchoMode( ( QLineEdit::EchoMode ) hb_parni( 2 ) ); } /* -void setFrame( bool ) -*/ + * void setFrame ( bool ) + */ HB_FUNC( QT_QLINEEDIT_SETFRAME ) { hbqt_par_QLineEdit( 1 )->setFrame( hb_parl( 2 ) ); } /* -void setInputMask( const QString & inputMask ) -*/ + * void setInputMask ( const QString & inputMask ) + */ HB_FUNC( QT_QLINEEDIT_SETINPUTMASK ) { hbqt_par_QLineEdit( 1 )->setInputMask( hbqt_par_QString( 2 ) ); } /* -void setMaxLength( int ) -*/ + * void setMaxLength ( int ) + */ HB_FUNC( QT_QLINEEDIT_SETMAXLENGTH ) { hbqt_par_QLineEdit( 1 )->setMaxLength( hb_parni( 2 ) ); } /* -void setModified( bool ) -*/ + * void setModified ( bool ) + */ HB_FUNC( QT_QLINEEDIT_SETMODIFIED ) { hbqt_par_QLineEdit( 1 )->setModified( hb_parl( 2 ) ); } /* -void setReadOnly( bool ) -*/ + * void setReadOnly ( bool ) + */ HB_FUNC( QT_QLINEEDIT_SETREADONLY ) { hbqt_par_QLineEdit( 1 )->setReadOnly( hb_parl( 2 ) ); } /* -void setSelection( int start, int length ) -*/ + * void setSelection ( int start, int length ) + */ HB_FUNC( QT_QLINEEDIT_SETSELECTION ) { hbqt_par_QLineEdit( 1 )->setSelection( hb_parni( 2 ), hb_parni( 3 ) ); } /* -void setTextMargins( int left, int top, int right, int bottom ) -*/ + * void setTextMargins ( int left, int top, int right, int bottom ) + */ HB_FUNC( QT_QLINEEDIT_SETTEXTMARGINS ) { hbqt_par_QLineEdit( 1 )->setTextMargins( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ) ); } /* -QString text () const -*/ + * void setValidator ( const QValidator * v ) + */ +HB_FUNC( QT_QLINEEDIT_SETVALIDATOR ) +{ + hbqt_par_QLineEdit( 1 )->setValidator( hbqt_par_QValidator( 2 ) ); +} + +/* + * virtual QSize sizeHint () const + */ +HB_FUNC( QT_QLINEEDIT_SIZEHINT ) +{ + hbqt_ret_QSize( hbqt_par_QLineEdit( 1 )->sizeHint( ) ); +} + +/* + * QString text () const + */ HB_FUNC( QT_QLINEEDIT_TEXT ) { - hb_retc( hbqt_par_QLineEdit( 1 )->text().toLatin1().data() ); + hb_retc( hbqt_par_QLineEdit( 1 )->text( ).toLatin1().data() ); } /* -void copy () const -*/ -HB_FUNC( QT_QLINEEDIT_COPY ) + * const QValidator * validator () const + */ +HB_FUNC( QT_QLINEEDIT_VALIDATOR ) { - hbqt_par_QLineEdit( 1 )->copy(); + hb_retptr( ( QValidator* ) hbqt_par_QLineEdit( 1 )->validator( ) ); } -/* -void cut () -*/ -HB_FUNC( QT_QLINEEDIT_CUT ) -{ - hbqt_par_QLineEdit( 1 )->cut(); -} - -/* -void paste () -*/ -HB_FUNC( QT_QLINEEDIT_PASTE ) -{ - hbqt_par_QLineEdit( 1 )->paste(); -} - -/* -void redo () -*/ -HB_FUNC( QT_QLINEEDIT_REDO ) -{ - hbqt_par_QLineEdit( 1 )->redo(); -} - -/* -void selectAll () -*/ -HB_FUNC( QT_QLINEEDIT_SELECTALL ) -{ - hbqt_par_QLineEdit( 1 )->selectAll(); -} - -/* -void setText( const QString & ) -*/ -HB_FUNC( QT_QLINEEDIT_SETTEXT ) -{ - hbqt_par_QLineEdit( 1 )->setText( hbqt_par_QString( 2 ) ); -} - -/* -void undo () -*/ -HB_FUNC( QT_QLINEEDIT_UNDO ) -{ - hbqt_par_QLineEdit( 1 )->undo(); -} /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qlistview.cpp b/harbour/contrib/hbqt/hbqt_qlistview.cpp index afcb233da4..784a234af5 100644 --- a/harbour/contrib/hbqt/hbqt_qlistview.cpp +++ b/harbour/contrib/hbqt/hbqt_qlistview.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,18 +55,258 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -QListView ( QWidget * parent = 0 ) -*/ + * QListView ( QWidget * parent = 0 ) + * ~QListView () + */ HB_FUNC( QT_QLISTVIEW ) { hb_retptr( ( QListView * ) new QListView( hbqt_par_QWidget( 1 ) ) ); } +/* + * int batchSize () const + */ +HB_FUNC( QT_QLISTVIEW_BATCHSIZE ) +{ + hb_retni( hbqt_par_QListView( 1 )->batchSize( ) ); +} + +/* + * void clearPropertyFlags () + */ +HB_FUNC( QT_QLISTVIEW_CLEARPROPERTYFLAGS ) +{ + hbqt_par_QListView( 1 )->clearPropertyFlags( ); +} + +/* + * Flow flow () const + */ +HB_FUNC( QT_QLISTVIEW_FLOW ) +{ + hb_retni( hbqt_par_QListView( 1 )->flow( ) ); +} + +/* + * QSize gridSize () const + */ +HB_FUNC( QT_QLISTVIEW_GRIDSIZE ) +{ + hbqt_ret_QSize( hbqt_par_QListView( 1 )->gridSize( ) ); +} + +/* + * bool isRowHidden ( int row ) const + */ +HB_FUNC( QT_QLISTVIEW_ISROWHIDDEN ) +{ + hb_retl( hbqt_par_QListView( 1 )->isRowHidden( hb_parni( 2 ) ) ); +} + +/* + * bool isSelectionRectVisible () const + */ +HB_FUNC( QT_QLISTVIEW_ISSELECTIONRECTVISIBLE ) +{ + hb_retl( hbqt_par_QListView( 1 )->isSelectionRectVisible( ) ); +} + +/* + * bool isWrapping () const + */ +HB_FUNC( QT_QLISTVIEW_ISWRAPPING ) +{ + hb_retl( hbqt_par_QListView( 1 )->isWrapping( ) ); +} + +/* + * LayoutMode layoutMode () const + */ +HB_FUNC( QT_QLISTVIEW_LAYOUTMODE ) +{ + hb_retni( hbqt_par_QListView( 1 )->layoutMode( ) ); +} + +/* + * int modelColumn () const + */ +HB_FUNC( QT_QLISTVIEW_MODELCOLUMN ) +{ + hb_retni( hbqt_par_QListView( 1 )->modelColumn( ) ); +} + +/* + * Movement movement () const + */ +HB_FUNC( QT_QLISTVIEW_MOVEMENT ) +{ + hb_retni( hbqt_par_QListView( 1 )->movement( ) ); +} + +/* + * ResizeMode resizeMode () const + */ +HB_FUNC( QT_QLISTVIEW_RESIZEMODE ) +{ + hb_retni( hbqt_par_QListView( 1 )->resizeMode( ) ); +} + +/* + * void setBatchSize ( int batchSize ) + */ +HB_FUNC( QT_QLISTVIEW_SETBATCHSIZE ) +{ + hbqt_par_QListView( 1 )->setBatchSize( hb_parni( 2 ) ); +} + +/* + * void setFlow ( Flow flow ) + */ +HB_FUNC( QT_QLISTVIEW_SETFLOW ) +{ + hbqt_par_QListView( 1 )->setFlow( ( QListView::Flow ) hb_parni( 2 ) ); +} + +/* + * void setGridSize ( const QSize & size ) + */ +HB_FUNC( QT_QLISTVIEW_SETGRIDSIZE ) +{ + hbqt_par_QListView( 1 )->setGridSize( hbqt_const_QSize( 2 ) ); +} + +/* + * void setLayoutMode ( LayoutMode mode ) + */ +HB_FUNC( QT_QLISTVIEW_SETLAYOUTMODE ) +{ + hbqt_par_QListView( 1 )->setLayoutMode( ( QListView::LayoutMode ) hb_parni( 2 ) ); +} + +/* + * void setModelColumn ( int column ) + */ +HB_FUNC( QT_QLISTVIEW_SETMODELCOLUMN ) +{ + hbqt_par_QListView( 1 )->setModelColumn( hb_parni( 2 ) ); +} + +/* + * void setMovement ( Movement movement ) + */ +HB_FUNC( QT_QLISTVIEW_SETMOVEMENT ) +{ + hbqt_par_QListView( 1 )->setMovement( ( QListView::Movement ) hb_parni( 2 ) ); +} + +/* + * void setResizeMode ( ResizeMode mode ) + */ +HB_FUNC( QT_QLISTVIEW_SETRESIZEMODE ) +{ + hbqt_par_QListView( 1 )->setResizeMode( ( QListView::ResizeMode ) hb_parni( 2 ) ); +} + +/* + * void setRowHidden ( int row, bool hide ) + */ +HB_FUNC( QT_QLISTVIEW_SETROWHIDDEN ) +{ + hbqt_par_QListView( 1 )->setRowHidden( hb_parni( 2 ), hb_parl( 3 ) ); +} + +/* + * void setSelectionRectVisible ( bool show ) + */ +HB_FUNC( QT_QLISTVIEW_SETSELECTIONRECTVISIBLE ) +{ + hbqt_par_QListView( 1 )->setSelectionRectVisible( hb_parl( 2 ) ); +} + +/* + * void setSpacing ( int space ) + */ +HB_FUNC( QT_QLISTVIEW_SETSPACING ) +{ + hbqt_par_QListView( 1 )->setSpacing( hb_parni( 2 ) ); +} + +/* + * void setUniformItemSizes ( bool enable ) + */ +HB_FUNC( QT_QLISTVIEW_SETUNIFORMITEMSIZES ) +{ + hbqt_par_QListView( 1 )->setUniformItemSizes( hb_parl( 2 ) ); +} + +/* + * void setViewMode ( ViewMode mode ) + */ +HB_FUNC( QT_QLISTVIEW_SETVIEWMODE ) +{ + hbqt_par_QListView( 1 )->setViewMode( ( QListView::ViewMode ) hb_parni( 2 ) ); +} + +/* + * void setWordWrap ( bool on ) + */ +HB_FUNC( QT_QLISTVIEW_SETWORDWRAP ) +{ + hbqt_par_QListView( 1 )->setWordWrap( hb_parl( 2 ) ); +} + +/* + * void setWrapping ( bool enable ) + */ +HB_FUNC( QT_QLISTVIEW_SETWRAPPING ) +{ + hbqt_par_QListView( 1 )->setWrapping( hb_parl( 2 ) ); +} + +/* + * int spacing () const + */ +HB_FUNC( QT_QLISTVIEW_SPACING ) +{ + hb_retni( hbqt_par_QListView( 1 )->spacing( ) ); +} + +/* + * bool uniformItemSizes () const + */ +HB_FUNC( QT_QLISTVIEW_UNIFORMITEMSIZES ) +{ + hb_retl( hbqt_par_QListView( 1 )->uniformItemSizes( ) ); +} + +/* + * ViewMode viewMode () const + */ +HB_FUNC( QT_QLISTVIEW_VIEWMODE ) +{ + hb_retni( hbqt_par_QListView( 1 )->viewMode( ) ); +} + +/* + * bool wordWrap () const + */ +HB_FUNC( QT_QLISTVIEW_WORDWRAP ) +{ + hb_retl( hbqt_par_QListView( 1 )->wordWrap( ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qmainwindow.cpp b/harbour/contrib/hbqt/hbqt_qmainwindow.cpp index 54b5464cca..09cbf3f3ab 100644 --- a/harbour/contrib/hbqt/hbqt_qmainwindow.cpp +++ b/harbour/contrib/hbqt/hbqt_qmainwindow.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,370 +55,405 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 46/49 [ 93.88% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * bool restoreState ( const QByteArray & state, int version = 0 ) + * QByteArray saveState ( int version = 0 ) const + * QList tabifiedDockWidgets ( QDockWidget * dockwidget ) const + */ + #include -/*----------------------------------------------------------------------*/ + /* -QMainWindow( QWidget * parent = 0, Qt::WindowFlags flags = 0 ) -*/ + * QMainWindow ( QWidget * parent = 0, Qt::WindowFlags flags = 0 ) + * ~QMainWindow () + */ HB_FUNC( QT_QMAINWINDOW ) { hb_retptr( ( QMainWindow* ) new QMainWindow( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ); } /* -void addDockWidget( Qt::DockWidgetArea area, QDockWidget * dockwidget ) -*/ -HB_FUNC( QT_QMAINWINDOW_ADDDOCKWIDGET_1 ) + * void addDockWidget ( Qt::DockWidgetArea area, QDockWidget * dockwidget ) + */ +HB_FUNC( QT_QMAINWINDOW_ADDDOCKWIDGET ) { hbqt_par_QMainWindow( 1 )->addDockWidget( ( Qt::DockWidgetArea ) hb_parni( 2 ), hbqt_par_QDockWidget( 3 ) ); } /* -void addDockWidget( Qt::DockWidgetArea area, QDockWidget * dockwidget, Qt::Orientation orientation ) -*/ -HB_FUNC( QT_QMAINWINDOW_ADDDOCKWIDGET_2 ) + * void addDockWidget ( Qt::DockWidgetArea area, QDockWidget * dockwidget, Qt::Orientation orientation ) + */ +HB_FUNC( QT_QMAINWINDOW_ADDDOCKWIDGET_1 ) { - hbqt_par_QMainWindow( 1 )->addDockWidget( ( Qt::DockWidgetArea ) hb_parni( 2 ), hbqt_par_QDockWidget( 3 ), ( Qt::Orientation ) hb_parni(4) ); + hbqt_par_QMainWindow( 1 )->addDockWidget( ( Qt::DockWidgetArea ) hb_parni( 2 ), hbqt_par_QDockWidget( 3 ), ( Qt::Orientation ) hb_parni( 4 ) ); } /* -void addToolBar( Qt::ToolBarArea area, QToolBar * toolbar ) -*/ -HB_FUNC( QT_QMAINWINDOW_ADDTOOLBAR_1 ) + * void addToolBar ( Qt::ToolBarArea area, QToolBar * toolbar ) + */ +HB_FUNC( QT_QMAINWINDOW_ADDTOOLBAR ) { hbqt_par_QMainWindow( 1 )->addToolBar( ( Qt::ToolBarArea ) hb_parni( 2 ), hbqt_par_QToolBar( 3 ) ); } /* -void addToolBar( QToolBar * toolbar ) -*/ -HB_FUNC( QT_QMAINWINDOW_ADDTOOLBAR_2 ) + * void addToolBar ( QToolBar * toolbar ) + */ +HB_FUNC( QT_QMAINWINDOW_ADDTOOLBAR_1 ) { hbqt_par_QMainWindow( 1 )->addToolBar( hbqt_par_QToolBar( 2 ) ); } /* -QToolBar * addToolBar( const QString & title ) -*/ -HB_FUNC( QT_QMAINWINDOW_ADDTOOLBAR_3 ) + * QToolBar * addToolBar ( const QString & title ) + */ +HB_FUNC( QT_QMAINWINDOW_ADDTOOLBAR_2 ) { - hb_retptr( (QToolBar *) hbqt_par_QMainWindow( 1 )->addToolBar( hbqt_par_QString( 2 ) ) ); + hb_retptr( ( QToolBar* ) hbqt_par_QMainWindow( 1 )->addToolBar( hbqt_par_QString( 2 ) ) ); } /* -void addToolBarBreak( Qt::ToolBarArea area = Qt::TopToolBarArea ) -*/ + * void addToolBarBreak ( Qt::ToolBarArea area = Qt::TopToolBarArea ) + */ HB_FUNC( QT_QMAINWINDOW_ADDTOOLBARBREAK ) { hbqt_par_QMainWindow( 1 )->addToolBarBreak( ( Qt::ToolBarArea ) hb_parni( 2 ) ); } /* -QWidget * centralWidget () const -*/ + * QWidget * centralWidget () const + */ HB_FUNC( QT_QMAINWINDOW_CENTRALWIDGET ) { - hb_retptr( (QWidget *) hbqt_par_QMainWindow( 1 )->centralWidget() ); + hb_retptr( ( QWidget* ) hbqt_par_QMainWindow( 1 )->centralWidget( ) ); } /* -Qt::DockWidgetArea corner( Qt::Corner corner ) const -*/ + * Qt::DockWidgetArea corner ( Qt::Corner corner ) const + */ HB_FUNC( QT_QMAINWINDOW_CORNER ) { hb_retni( hbqt_par_QMainWindow( 1 )->corner( ( Qt::Corner ) hb_parni( 2 ) ) ); } /* -virtual QMenu * createPopupMenu () -*/ + * virtual QMenu * createPopupMenu () + */ HB_FUNC( QT_QMAINWINDOW_CREATEPOPUPMENU ) { - hb_retptr( (QMenu *) hbqt_par_QMainWindow( 1 )->createPopupMenu() ); + hb_retptr( ( QMenu* ) hbqt_par_QMainWindow( 1 )->createPopupMenu( ) ); } /* -DockOptions dockOptions () const -*/ + * DockOptions dockOptions () const + */ HB_FUNC( QT_QMAINWINDOW_DOCKOPTIONS ) { - hb_retni( hbqt_par_QMainWindow( 1 )->dockOptions() ); + hb_retni( hbqt_par_QMainWindow( 1 )->dockOptions( ) ); } /* -Qt::DockWidgetArea dockWidgetArea( QDockWidget * dockwidget ) const -*/ + * Qt::DockWidgetArea dockWidgetArea ( QDockWidget * dockwidget ) const + */ HB_FUNC( QT_QMAINWINDOW_DOCKWIDGETAREA ) { hb_retni( hbqt_par_QMainWindow( 1 )->dockWidgetArea( hbqt_par_QDockWidget( 2 ) ) ); } /* -bool documentMode () const -*/ + * bool documentMode () const + */ HB_FUNC( QT_QMAINWINDOW_DOCUMENTMODE ) { - hb_retl( hbqt_par_QMainWindow( 1 )->documentMode() ); + hb_retl( hbqt_par_QMainWindow( 1 )->documentMode( ) ); } /* -void insertToolBar( QToolBar * before, QToolBar * toolbar ) -*/ + * QSize iconSize () const + */ +HB_FUNC( QT_QMAINWINDOW_ICONSIZE ) +{ + hbqt_ret_QSize( hbqt_par_QMainWindow( 1 )->iconSize( ) ); +} + +/* + * void insertToolBar ( QToolBar * before, QToolBar * toolbar ) + */ HB_FUNC( QT_QMAINWINDOW_INSERTTOOLBAR ) { hbqt_par_QMainWindow( 1 )->insertToolBar( hbqt_par_QToolBar( 2 ), hbqt_par_QToolBar( 3 ) ); } /* -void insertToolBarBreak( QToolBar * before ) -*/ + * void insertToolBarBreak ( QToolBar * before ) + */ HB_FUNC( QT_QMAINWINDOW_INSERTTOOLBARBREAK ) { hbqt_par_QMainWindow( 1 )->insertToolBarBreak( hbqt_par_QToolBar( 2 ) ); } /* -bool isAnimated () const -*/ + * bool isAnimated () const + */ HB_FUNC( QT_QMAINWINDOW_ISANIMATED ) { - hb_retl( hbqt_par_QMainWindow( 1 )->isAnimated() ); + hb_retl( hbqt_par_QMainWindow( 1 )->isAnimated( ) ); } /* -bool isDockNestingEnabled () const -*/ + * bool isDockNestingEnabled () const + */ HB_FUNC( QT_QMAINWINDOW_ISDOCKNESTINGENABLED ) { - hb_retl( hbqt_par_QMainWindow( 1 )->isDockNestingEnabled() ); + hb_retl( hbqt_par_QMainWindow( 1 )->isDockNestingEnabled( ) ); } /* -QMenuBar * menuBar () const -*/ + * QMenuBar * menuBar () const + */ HB_FUNC( QT_QMAINWINDOW_MENUBAR ) { - hb_retptr( (QMenuBar *) hbqt_par_QMainWindow( 1 )->menuBar() ); + hb_retptr( ( QMenuBar* ) hbqt_par_QMainWindow( 1 )->menuBar( ) ); } /* -QWidget * menuWidget () const -*/ + * QWidget * menuWidget () const + */ HB_FUNC( QT_QMAINWINDOW_MENUWIDGET ) { - hb_retptr( (QWidget *) hbqt_par_QMainWindow( 1 )->menuWidget() ); + hb_retptr( ( QWidget* ) hbqt_par_QMainWindow( 1 )->menuWidget( ) ); } /* -void removeDockWidget( QDockWidget * dockwidget ) -*/ + * void removeDockWidget ( QDockWidget * dockwidget ) + */ HB_FUNC( QT_QMAINWINDOW_REMOVEDOCKWIDGET ) { hbqt_par_QMainWindow( 1 )->removeDockWidget( hbqt_par_QDockWidget( 2 ) ); } /* -void removeToolBar( QToolBar * toolbar ) -*/ + * void removeToolBar ( QToolBar * toolbar ) + */ HB_FUNC( QT_QMAINWINDOW_REMOVETOOLBAR ) { hbqt_par_QMainWindow( 1 )->removeToolBar( hbqt_par_QToolBar( 2 ) ); } /* -void removeToolBarBreak( QToolBar * before ) -*/ + * void removeToolBarBreak ( QToolBar * before ) + */ HB_FUNC( QT_QMAINWINDOW_REMOVETOOLBARBREAK ) { hbqt_par_QMainWindow( 1 )->removeToolBarBreak( hbqt_par_QToolBar( 2 ) ); } /* -bool restoreDockWidget( QDockWidget * dockwidget ) -*/ + * bool restoreDockWidget ( QDockWidget * dockwidget ) + */ HB_FUNC( QT_QMAINWINDOW_RESTOREDOCKWIDGET ) { hb_retl( hbqt_par_QMainWindow( 1 )->restoreDockWidget( hbqt_par_QDockWidget( 2 ) ) ); } /* -void setCentralWidget( QWidget * widget ) -*/ + * void setCentralWidget ( QWidget * widget ) + */ HB_FUNC( QT_QMAINWINDOW_SETCENTRALWIDGET ) { hbqt_par_QMainWindow( 1 )->setCentralWidget( hbqt_par_QWidget( 2 ) ); } /* -void setCorner( Qt::Corner corner, Qt::DockWidgetArea area ) -*/ + * void setCorner ( Qt::Corner corner, Qt::DockWidgetArea area ) + */ HB_FUNC( QT_QMAINWINDOW_SETCORNER ) { - hbqt_par_QMainWindow( 1 )->setCorner( ( Qt::Corner) hb_parni( 2 ), ( Qt::DockWidgetArea ) hb_parni(3) ); + hbqt_par_QMainWindow( 1 )->setCorner( ( Qt::Corner ) hb_parni( 2 ), ( Qt::DockWidgetArea ) hb_parni( 3 ) ); } /* -void setDockOptions( DockOptions options ) -*/ + * void setDockOptions ( DockOptions options ) + */ HB_FUNC( QT_QMAINWINDOW_SETDOCKOPTIONS ) { hbqt_par_QMainWindow( 1 )->setDockOptions( ( QMainWindow::DockOptions ) hb_parni( 2 ) ); } /* -void setDocumentMode( bool enabled ) -*/ + * void setDocumentMode ( bool enabled ) + */ HB_FUNC( QT_QMAINWINDOW_SETDOCUMENTMODE ) { hbqt_par_QMainWindow( 1 )->setDocumentMode( hb_parl( 2 ) ); } /* -void setMenuBar( QMenuBar * menuBar ) -*/ + * void setIconSize ( const QSize & iconSize ) + */ +HB_FUNC( QT_QMAINWINDOW_SETICONSIZE ) +{ + hbqt_par_QMainWindow( 1 )->setIconSize( hbqt_const_QSize( 2 ) ); +} + +/* + * void setMenuBar ( QMenuBar * menuBar ) + */ HB_FUNC( QT_QMAINWINDOW_SETMENUBAR ) { hbqt_par_QMainWindow( 1 )->setMenuBar( hbqt_par_QMenuBar( 2 ) ); } /* -void setMenuWidget( QWidget * menuBar ) -*/ + * void setMenuWidget ( QWidget * menuBar ) + */ HB_FUNC( QT_QMAINWINDOW_SETMENUWIDGET ) { hbqt_par_QMainWindow( 1 )->setMenuWidget( hbqt_par_QWidget( 2 ) ); } /* -void setStatusBar( QStatusBar * statusbar ) -*/ + * void setStatusBar ( QStatusBar * statusbar ) + */ HB_FUNC( QT_QMAINWINDOW_SETSTATUSBAR ) { hbqt_par_QMainWindow( 1 )->setStatusBar( hbqt_par_QStatusBar( 2 ) ); } /* -void setTabPosition( Qt::DockWidgetAreas areas, QTabWidget::TabPosition tabPosition ) -*/ + * void setTabPosition ( Qt::DockWidgetAreas areas, QTabWidget::TabPosition tabPosition ) + */ HB_FUNC( QT_QMAINWINDOW_SETTABPOSITION ) { - hbqt_par_QMainWindow( 1 )->setTabPosition( ( Qt::DockWidgetAreas) hb_parni( 2 ), ( QTabWidget::TabPosition ) hb_parni(3) ); + hbqt_par_QMainWindow( 1 )->setTabPosition( ( Qt::DockWidgetAreas ) hb_parni( 2 ), ( QTabWidget::TabPosition ) hb_parni( 3 ) ); } /* -void setTabShape( QTabWidget::TabShape tabShape ) -*/ + * void setTabShape ( QTabWidget::TabShape tabShape ) + */ HB_FUNC( QT_QMAINWINDOW_SETTABSHAPE ) { hbqt_par_QMainWindow( 1 )->setTabShape( ( QTabWidget::TabShape ) hb_parni( 2 ) ); } /* -void setToolButtonStyle( Qt::ToolButtonStyle toolButtonStyle ) -*/ + * void setToolButtonStyle ( Qt::ToolButtonStyle toolButtonStyle ) + */ HB_FUNC( QT_QMAINWINDOW_SETTOOLBUTTONSTYLE ) { hbqt_par_QMainWindow( 1 )->setToolButtonStyle( ( Qt::ToolButtonStyle ) hb_parni( 2 ) ); } /* -void setUnifiedTitleAndToolBarOnMac( bool set ) -*/ + * void setUnifiedTitleAndToolBarOnMac ( bool set ) + */ HB_FUNC( QT_QMAINWINDOW_SETUNIFIEDTITLEANDTOOLBARONMAC ) { hbqt_par_QMainWindow( 1 )->setUnifiedTitleAndToolBarOnMac( hb_parl( 2 ) ); } /* -void splitDockWidget( QDockWidget * first, QDockWidget * second, Qt::Orientation orientation ) -*/ + * void splitDockWidget ( QDockWidget * first, QDockWidget * second, Qt::Orientation orientation ) + */ HB_FUNC( QT_QMAINWINDOW_SPLITDOCKWIDGET ) { - hbqt_par_QMainWindow( 1 )->splitDockWidget( hbqt_par_QDockWidget( 2 ), hbqt_par_QDockWidget( 3 ), (Qt::Orientation) hb_parni(4) ); + hbqt_par_QMainWindow( 1 )->splitDockWidget( hbqt_par_QDockWidget( 2 ), hbqt_par_QDockWidget( 3 ), ( Qt::Orientation ) hb_parni( 4 ) ); } /* -QStatusBar * statusBar () const -*/ + * QStatusBar * statusBar () const + */ HB_FUNC( QT_QMAINWINDOW_STATUSBAR ) { - hb_retptr( (QStatusBar *) hbqt_par_QMainWindow( 1 )->statusBar() ); + hb_retptr( ( QStatusBar* ) hbqt_par_QMainWindow( 1 )->statusBar( ) ); } /* -QTabWidget::TabPosition tabPosition( Qt::DockWidgetArea area ) const -*/ + * QTabWidget::TabPosition tabPosition ( Qt::DockWidgetArea area ) const + */ HB_FUNC( QT_QMAINWINDOW_TABPOSITION ) { hb_retni( hbqt_par_QMainWindow( 1 )->tabPosition( ( Qt::DockWidgetArea ) hb_parni( 2 ) ) ); } /* -QTabWidget::TabShape tabShape () const -*/ + * QTabWidget::TabShape tabShape () const + */ HB_FUNC( QT_QMAINWINDOW_TABSHAPE ) { - hb_retni( hbqt_par_QMainWindow( 1 )->tabShape() ); + hb_retni( hbqt_par_QMainWindow( 1 )->tabShape( ) ); } /* -void tabifyDockWidget( QDockWidget * first, QDockWidget * second ) -*/ + * void tabifyDockWidget ( QDockWidget * first, QDockWidget * second ) + */ HB_FUNC( QT_QMAINWINDOW_TABIFYDOCKWIDGET ) { hbqt_par_QMainWindow( 1 )->tabifyDockWidget( hbqt_par_QDockWidget( 2 ), hbqt_par_QDockWidget( 3 ) ); } /* -Qt::ToolBarArea toolBarArea( QToolBar * toolbar ) const -*/ + * Qt::ToolBarArea toolBarArea ( QToolBar * toolbar ) const + */ HB_FUNC( QT_QMAINWINDOW_TOOLBARAREA ) { hb_retni( hbqt_par_QMainWindow( 1 )->toolBarArea( hbqt_par_QToolBar( 2 ) ) ); } /* -bool toolBarBreak( QToolBar * toolbar ) const -*/ + * bool toolBarBreak ( QToolBar * toolbar ) const + */ HB_FUNC( QT_QMAINWINDOW_TOOLBARBREAK ) { hb_retl( hbqt_par_QMainWindow( 1 )->toolBarBreak( hbqt_par_QToolBar( 2 ) ) ); } /* -Qt::ToolButtonStyle toolButtonStyle () const -*/ + * Qt::ToolButtonStyle toolButtonStyle () const + */ HB_FUNC( QT_QMAINWINDOW_TOOLBUTTONSTYLE ) { - hb_retni( hbqt_par_QMainWindow( 1 )->toolButtonStyle() ); + hb_retni( hbqt_par_QMainWindow( 1 )->toolButtonStyle( ) ); } /* -bool unifiedTitleAndToolBarOnMac () const -*/ + * bool unifiedTitleAndToolBarOnMac () const + */ HB_FUNC( QT_QMAINWINDOW_UNIFIEDTITLEANDTOOLBARONMAC ) { - hb_retl( hbqt_par_QMainWindow( 1 )->unifiedTitleAndToolBarOnMac() ); + hb_retl( hbqt_par_QMainWindow( 1 )->unifiedTitleAndToolBarOnMac( ) ); } /* -void setAnimated( bool enabled ) -*/ + * void setAnimated ( bool enabled ) + */ HB_FUNC( QT_QMAINWINDOW_SETANIMATED ) { hbqt_par_QMainWindow( 1 )->setAnimated( hb_parl( 2 ) ); } /* -void setDockNestingEnabled( bool enabled ) const -*/ + * void setDockNestingEnabled ( bool enabled ) + */ HB_FUNC( QT_QMAINWINDOW_SETDOCKNESTINGENABLED ) { hbqt_par_QMainWindow( 1 )->setDockNestingEnabled( hb_parl( 2 ) ); } + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qmenu.cpp b/harbour/contrib/hbqt/hbqt_qmenu.cpp index f3a08f18f1..78b6aa919e 100644 --- a/harbour/contrib/hbqt/hbqt_qmenu.cpp +++ b/harbour/contrib/hbqt/hbqt_qmenu.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,259 +55,287 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 30/35 [ 85.71% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * QAction * addAction ( const QString & text, const QObject * receiver, const char * member, const QKeySequence & shortcut = 0 ) + * QAction * addAction ( const QIcon & icon, const QString & text, const QObject * receiver, const char * member, const QKeySequence & shortcut = 0 ) + * QIcon icon () const + * OSMenuRef macMenu ( OSMenuRef merge = 0 ) + * HMENU wceMenu ( bool create = false ) + */ + #include -/*----------------------------------------------------------------------*/ + /* -QMenu ( QWidget * parent = 0 ) [1] -QMenu ( const QString & title, QWidget * parent = 0 ) [2] -*/ + * QMenu ( QWidget * parent = 0 ) + * QMenu ( const QString & title, QWidget * parent = 0 ) + * ~QMenu () + */ HB_FUNC( QT_QMENU ) { - if( hb_param( 1, HB_IT_POINTER ) ) - hb_retptr( ( QMenu* ) new QMenu( hbqt_par_QWidget( 1 ) ) ); - else if( hb_param( 1, HB_IT_STRING ) && hb_param( 2, HB_IT_POINTER ) ) + if( hb_pcount() >= 1 && HB_ISCHAR( 1 ) ) + { hb_retptr( ( QMenu* ) new QMenu( hbqt_par_QString( 1 ), hbqt_par_QWidget( 2 ) ) ); + } else - hb_retptr( NULL ); + { + hb_retptr( ( QMenu* ) new QMenu( hbqt_par_QWidget( 1 ) ) ); + } } -#if 0 -HB_FUNC( QT_QMENU_2 ) -{ - hb_retptr( ( QMenu* ) new QMenu( hbqt_par_QString( 1 ), hbqt_par_QWidget( 2 ) ) ); -} -#endif /* -QAction * activeAction () const -*/ + * QAction * actionAt ( const QPoint & pt ) const + */ +HB_FUNC( QT_QMENU_ACTIONAT ) +{ + hb_retptr( ( QAction* ) hbqt_par_QMenu( 1 )->actionAt( hbqt_const_QPoint( 2 ) ) ); +} + +/* + * QRect actionGeometry ( QAction * act ) const + */ +HB_FUNC( QT_QMENU_ACTIONGEOMETRY ) +{ + hbqt_ret_QRect( hbqt_par_QMenu( 1 )->actionGeometry( hbqt_par_QAction( 2 ) ) ); +} + +/* + * QAction * activeAction () const + */ HB_FUNC( QT_QMENU_ACTIVEACTION ) { - hb_retptr( ( QAction* ) hbqt_par_QMenu( 1 )->activeAction() ); + hb_retptr( ( QAction* ) hbqt_par_QMenu( 1 )->activeAction( ) ); } /* -QAction * addAction ( const QString & text ) -*/ + * QAction * addAction ( const QString & text ) + */ HB_FUNC( QT_QMENU_ADDACTION ) { - if( hb_pcount() == 2 && hb_param( 2, HB_IT_STRING ) ) - hb_retptr( ( QAction* ) hbqt_par_QMenu( 1 )->addAction( hbqt_par_QString( 2 ) ) ); - else if( hb_pcount() == 2 && hb_param( 2, HB_IT_POINTER ) ) - hbqt_par_QMenu( 1 )->addAction( hbqt_par_QAction( 2 ) ); - else if( hb_pcount() == 3 && hb_param( 2, HB_IT_STRING ) && hb_param( 3, HB_IT_STRING ) ) - hb_retptr( ( QAction* ) hbqt_par_QMenu( 1 )->addAction( QIcon( hbqt_par_QString( 2 ) ), hbqt_par_QString( 3 ) ) ); + hb_retptr( ( QAction* ) hbqt_par_QMenu( 1 )->addAction( hbqt_par_QString( 2 ) ) ); } -#if 0 /* -QAction * addAction ( const QIcon & icon, const QString & text ) -*/ -HB_FUNC( QT_QMENU_ADDACTION_2 ) + * QAction * addAction ( const QIcon & icon, const QString & text ) + */ +HB_FUNC( QT_QMENU_ADDACTION_1 ) { hb_retptr( ( QAction* ) hbqt_par_QMenu( 1 )->addAction( QIcon( hbqt_par_QString( 2 ) ), hbqt_par_QString( 3 ) ) ); } /* -void addAction ( QAction * action ) -*/ -HB_FUNC( QT_QMENU_ADDACTION_5 ) + * void addAction ( QAction * action ) + */ +HB_FUNC( QT_QMENU_ADDACTION_2 ) { hbqt_par_QMenu( 1 )->addAction( hbqt_par_QAction( 2 ) ); } -#endif -HB_FUNC( QT_QMENU_ADDMENU ) -{ - if( hb_pcount() == 2 && hb_param( 2, HB_IT_POINTER ) ) - hb_retptr( ( QAction * ) hbqt_par_QMenu( 1 )->addMenu( hbqt_par_QMenu( 2 ) ) ); - else if( hb_pcount() == 2 && hb_param( 2, HB_IT_STRING ) ) - hb_retptr( ( QMenu * ) hbqt_par_QMenu( 1 )->addMenu( hbqt_par_QString( 2 ) ) ); - else if( hb_pcount() == 3 && hb_param( 2, HB_IT_STRING ) && hb_param( 3, HB_IT_STRING ) ) - hb_retptr( ( QMenu * ) hbqt_par_QMenu( 1 )->addMenu ( QIcon( hbqt_par_QString( 2 ) ), hbqt_par_QString( 3 ) ) ); - else - hb_retptr( NULL ); -} - -#if 0 /* -QAction * addMenu ( QMenu * menu ) -*/ -HB_FUNC( QT_QMENU_ADDMENU_1 ) + * QAction * addMenu ( QMenu * menu ) + */ +HB_FUNC( QT_QMENU_ADDMENU ) { hb_retptr( ( QAction* ) hbqt_par_QMenu( 1 )->addMenu( hbqt_par_QMenu( 2 ) ) ); } /* -QMenu * addMenu ( const QString & title ) -*/ -HB_FUNC( QT_QMENU_ADDMENU_2 ) + * QMenu * addMenu ( const QString & title ) + */ +HB_FUNC( QT_QMENU_ADDMENU_1 ) { hb_retptr( ( QMenu* ) hbqt_par_QMenu( 1 )->addMenu( hbqt_par_QString( 2 ) ) ); } /* -QMenu * addMenu ( const QIcon & icon, const QString & title ) -*/ -HB_FUNC( QT_QMENU_ADDMENU_3 ) + * QMenu * addMenu ( const QIcon & icon, const QString & title ) + */ +HB_FUNC( QT_QMENU_ADDMENU_2 ) { - hb_retptr( (QMenu *) hbqt_par_QMenu( 1 )->addMenu ( QIcon( hbqt_par_QString( 2 ) ), hbqt_par_QString( 3 ) ) ); + hb_retptr( ( QMenu* ) hbqt_par_QMenu( 1 )->addMenu( QIcon( hbqt_par_QString( 2 ) ), hbqt_par_QString( 3 ) ) ); } -#endif /* -QAction * addSeparator () -*/ + * QAction * addSeparator () + */ HB_FUNC( QT_QMENU_ADDSEPARATOR ) { - hb_retptr( ( QAction* ) hbqt_par_QMenu( 1 )->addSeparator() ); + hb_retptr( ( QAction* ) hbqt_par_QMenu( 1 )->addSeparator( ) ); } /* -void clear () -*/ + * void clear () + */ HB_FUNC( QT_QMENU_CLEAR ) { - hbqt_par_QMenu( 1 )->clear(); + hbqt_par_QMenu( 1 )->clear( ); } /* -QAction * defaultAction () const -*/ + * QAction * defaultAction () const + */ HB_FUNC( QT_QMENU_DEFAULTACTION ) { - hb_retptr( ( QAction* ) hbqt_par_QMenu( 1 )->defaultAction() ); + hb_retptr( ( QAction* ) hbqt_par_QMenu( 1 )->defaultAction( ) ); } /* -QAction * exec () -*/ + * QAction * exec () + */ +HB_FUNC( QT_QMENU_EXEC ) +{ + hb_retptr( ( QAction* ) hbqt_par_QMenu( 1 )->exec( ) ); +} + +/* + * QAction * exec ( const QPoint & p, QAction * action = 0 ) + */ HB_FUNC( QT_QMENU_EXEC_1 ) { - hb_retptr( (QAction *) hbqt_par_QMenu( 1 )->exec() ); + hb_retptr( ( QAction* ) hbqt_par_QMenu( 1 )->exec( hbqt_const_QPoint( 2 ), hbqt_par_QAction( 3 ) ) ); } /* -void hideTearOffMenu () -*/ + * void hideTearOffMenu () + */ HB_FUNC( QT_QMENU_HIDETEAROFFMENU ) { - hbqt_par_QMenu( 1 )->hideTearOffMenu ( ); + hbqt_par_QMenu( 1 )->hideTearOffMenu( ); } /* -QAction * insertMenu ( QAction * before, QMenu * menu ) -*/ + * QAction * insertMenu ( QAction * before, QMenu * menu ) + */ HB_FUNC( QT_QMENU_INSERTMENU ) { hb_retptr( ( QAction* ) hbqt_par_QMenu( 1 )->insertMenu( hbqt_par_QAction( 2 ), hbqt_par_QMenu( 3 ) ) ); } /* -QAction * insertSeparator ( QAction * before ) -*/ + * QAction * insertSeparator ( QAction * before ) + */ HB_FUNC( QT_QMENU_INSERTSEPARATOR ) { hb_retptr( ( QAction* ) hbqt_par_QMenu( 1 )->insertSeparator( hbqt_par_QAction( 2 ) ) ); } /* -bool isEmpty () const -*/ + * bool isEmpty () const + */ HB_FUNC( QT_QMENU_ISEMPTY ) { - hb_retl( hbqt_par_QMenu( 1 )->isEmpty() ); + hb_retl( hbqt_par_QMenu( 1 )->isEmpty( ) ); } /* -bool isTearOffEnabled () const -*/ + * bool isTearOffEnabled () const + */ HB_FUNC( QT_QMENU_ISTEAROFFENABLED ) { - hb_retl( hbqt_par_QMenu( 1 )->isTearOffEnabled() ); + hb_retl( hbqt_par_QMenu( 1 )->isTearOffEnabled( ) ); } /* -bool isTearOffMenuVisible () const -*/ + * bool isTearOffMenuVisible () const + */ HB_FUNC( QT_QMENU_ISTEAROFFMENUVISIBLE ) { - hb_retl( hbqt_par_QMenu( 1 )->isTearOffMenuVisible() ); + hb_retl( hbqt_par_QMenu( 1 )->isTearOffMenuVisible( ) ); } /* -QAction * menuAction () const -*/ + * QAction * menuAction () const + */ HB_FUNC( QT_QMENU_MENUACTION ) { - hb_retptr( ( QAction* ) hbqt_par_QMenu( 1 )->menuAction() ); + hb_retptr( ( QAction* ) hbqt_par_QMenu( 1 )->menuAction( ) ); } /* -bool separatorsCollapsible () const -*/ + * void popup ( const QPoint & p, QAction * atAction = 0 ) + */ +HB_FUNC( QT_QMENU_POPUP ) +{ + hbqt_par_QMenu( 1 )->popup( hbqt_const_QPoint( 2 ), hbqt_par_QAction( 3 ) ); +} + +/* + * bool separatorsCollapsible () const + */ HB_FUNC( QT_QMENU_SEPARATORSCOLLAPSIBLE ) { - hb_retl( hbqt_par_QMenu( 1 )->separatorsCollapsible() ); + hb_retl( hbqt_par_QMenu( 1 )->separatorsCollapsible( ) ); } /* -void setActiveAction ( QAction * act ) -*/ + * void setActiveAction ( QAction * act ) + */ HB_FUNC( QT_QMENU_SETACTIVEACTION ) { hbqt_par_QMenu( 1 )->setActiveAction( hbqt_par_QAction( 2 ) ); } /* -void setDefaultAction ( QAction * act ) -*/ + * void setDefaultAction ( QAction * act ) + */ HB_FUNC( QT_QMENU_SETDEFAULTACTION ) { hbqt_par_QMenu( 1 )->setDefaultAction( hbqt_par_QAction( 2 ) ); } /* -void setIcon ( const QIcon & icon ) -*/ + * void setIcon ( const QIcon & icon ) + */ HB_FUNC( QT_QMENU_SETICON ) { hbqt_par_QMenu( 1 )->setIcon( QIcon( hbqt_par_QString( 2 ) ) ); } /* -void setSeparatorsCollapsible ( bool collapse ) -*/ + * void setSeparatorsCollapsible ( bool collapse ) + */ HB_FUNC( QT_QMENU_SETSEPARATORSCOLLAPSIBLE ) { hbqt_par_QMenu( 1 )->setSeparatorsCollapsible( hb_parl( 2 ) ); } /* -void setTearOffEnabled ( bool ) -*/ + * void setTearOffEnabled ( bool ) + */ HB_FUNC( QT_QMENU_SETTEAROFFENABLED ) { hbqt_par_QMenu( 1 )->setTearOffEnabled( hb_parl( 2 ) ); } /* -void setTitle ( const QString & title ) -*/ + * void setTitle ( const QString & title ) + */ HB_FUNC( QT_QMENU_SETTITLE ) { hbqt_par_QMenu( 1 )->setTitle( hbqt_par_QString( 2 ) ); } /* -QString title () const -*/ + * QString title () const + */ HB_FUNC( QT_QMENU_TITLE ) { - hb_retc( hbqt_par_QMenu( 1 )->title().toLatin1().data() ); + hb_retc( hbqt_par_QMenu( 1 )->title( ).toLatin1().data() ); } + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qmenubar.cpp b/harbour/contrib/hbqt/hbqt_qmenubar.cpp index cf67257a19..134a5cf3cc 100644 --- a/harbour/contrib/hbqt/hbqt_qmenubar.cpp +++ b/harbour/contrib/hbqt/hbqt_qmenubar.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,144 +55,152 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 14/15 [ 93.33% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * OSMenuRef macMenu () + * + * *** Commented out protos which construct fine but do not compile *** + * + * // QAction * defaultAction () const + * // void setDefaultAction ( QAction * act ) + */ + #include -/*----------------------------------------------------------------------*/ + /* -QMenuBar ( QWidget * parent = 0 ) -*/ + * QMenuBar ( QWidget * parent = 0 ) + * ~QMenuBar () + */ HB_FUNC( QT_QMENUBAR ) { hb_retptr( ( QMenuBar* ) new QMenuBar( hbqt_par_QWidget( 1 ) ) ); } /* -QAction * activeAction () const -*/ + * QAction * activeAction () const + */ HB_FUNC( QT_QMENUBAR_ACTIVEACTION ) { - hb_retptr( ( QAction* ) hbqt_par_QMenuBar( 1 )->activeAction() ); + hb_retptr( ( QAction* ) hbqt_par_QMenuBar( 1 )->activeAction( ) ); } +/* + * QAction * addAction ( const QString & text ) + */ HB_FUNC( QT_QMENUBAR_ADDACTION ) { - if( hb_pcount() == 2 && hb_param( 2, HB_IT_STRING ) ) - hb_retptr( (QAction *) hbqt_par_QMenuBar( 1 )->addAction( hbqt_par_QString( 2 ) ) ); - else if( hb_pcount() == 2 && hb_param( 2, HB_IT_POINTER ) ) - hbqt_par_QMenuBar( 1 )->addAction ( hbqt_par_QAction( 2 ) ); - else - hb_retptr( NULL ); + hb_retptr( ( QAction* ) hbqt_par_QMenuBar( 1 )->addAction( hbqt_par_QString( 2 ) ) ); } /* -QAction * addAction ( const QString & text ) -*/ + * QAction * addAction ( const QString & text, const QObject * receiver, const char * member ) + */ HB_FUNC( QT_QMENUBAR_ADDACTION_1 ) { - hb_retptr( (QAction *) hbqt_par_QMenuBar( 1 )->addAction( hbqt_par_QString( 2 ) ) ); + hb_retptr( ( QAction* ) hbqt_par_QMenuBar( 1 )->addAction( hbqt_par_QString( 2 ), hbqt_par_QObject( 3 ), hbqt_par_char( 4 ) ) ); } /* -void addAction ( QAction * action ) -*/ + * void addAction ( QAction * action ) + */ HB_FUNC( QT_QMENUBAR_ADDACTION_2 ) { - hbqt_par_QMenuBar( 1 )->addAction ( hbqt_par_QAction( 2 ) ); -} - -HB_FUNC( QT_QMENUBAR_ADDMENU ) -{ - if( hb_pcount() == 2 && hb_param( 2, HB_IT_POINTER ) ) - hb_retptr( ( QAction* ) hbqt_par_QMenuBar( 1 )->addMenu( hbqt_par_QMenu( 2 ) ) ); - else if( hb_pcount() == 2 && hb_param( 2, HB_IT_STRING ) ) - hb_retptr( (QMenu *) hbqt_par_QMenuBar( 1 )->addMenu( hbqt_par_QString( 2 ) ) ); - else if( hb_pcount() == 3 && hb_param( 2, HB_IT_STRING ) && hb_param( 3, HB_IT_STRING ) ) - hb_retptr( ( QMenu* ) hbqt_par_QMenuBar( 1 )->addMenu( QIcon( hbqt_par_QString( 2 ) ), hbqt_par_QString( 3 ) ) ); - else - hb_retptr( NULL ); + hbqt_par_QMenuBar( 1 )->addAction( hbqt_par_QAction( 2 ) ); } /* -QAction * addMenu ( QMenu * menu ) -*/ -HB_FUNC( QT_QMENUBAR_ADDMENU_1 ) + * QAction * addMenu ( QMenu * menu ) + */ +HB_FUNC( QT_QMENUBAR_ADDMENU ) { hb_retptr( ( QAction* ) hbqt_par_QMenuBar( 1 )->addMenu( hbqt_par_QMenu( 2 ) ) ); } /* -QMenu * addMenu ( const QString & title ) -*/ -HB_FUNC( QT_QMENUBAR_ADDMENU_2 ) + * QMenu * addMenu ( const QString & title ) + */ +HB_FUNC( QT_QMENUBAR_ADDMENU_1 ) { - hb_retptr( (QMenu *) hbqt_par_QMenuBar( 1 )->addMenu( hbqt_par_QString( 2 ) ) ); + hb_retptr( ( QMenu* ) hbqt_par_QMenuBar( 1 )->addMenu( hbqt_par_QString( 2 ) ) ); } /* -QMenu * addMenu ( const QIcon & icon, const QString & title ) -*/ -HB_FUNC( QT_QMENUBAR_ADDMENU_3 ) + * QMenu * addMenu ( const QIcon & icon, const QString & title ) + */ +HB_FUNC( QT_QMENUBAR_ADDMENU_2 ) { hb_retptr( ( QMenu* ) hbqt_par_QMenuBar( 1 )->addMenu( QIcon( hbqt_par_QString( 2 ) ), hbqt_par_QString( 3 ) ) ); } /* -QAction * addSeparator () -*/ + * QAction * addSeparator () + */ HB_FUNC( QT_QMENUBAR_ADDSEPARATOR ) { - hb_retptr( ( QAction* ) hbqt_par_QMenuBar( 1 )->addSeparator() ); + hb_retptr( ( QAction* ) hbqt_par_QMenuBar( 1 )->addSeparator( ) ); } /* -void clear () -*/ + * void clear () + */ HB_FUNC( QT_QMENUBAR_CLEAR ) { - hbqt_par_QMenuBar( 1 )->clear(); + hbqt_par_QMenuBar( 1 )->clear( ); } /* -QAction * insertMenu ( QAction * before, QMenu * menu ) -*/ + * QAction * insertMenu ( QAction * before, QMenu * menu ) + */ HB_FUNC( QT_QMENUBAR_INSERTMENU ) { hb_retptr( ( QAction* ) hbqt_par_QMenuBar( 1 )->insertMenu( hbqt_par_QAction( 2 ), hbqt_par_QMenu( 3 ) ) ); } /* -QAction * insertSeparator ( QAction * before ) -*/ + * QAction * insertSeparator ( QAction * before ) + */ HB_FUNC( QT_QMENUBAR_INSERTSEPARATOR ) { hb_retptr( ( QAction* ) hbqt_par_QMenuBar( 1 )->insertSeparator( hbqt_par_QAction( 2 ) ) ); } /* -bool isDefaultUp () const -*/ + * bool isDefaultUp () const + */ HB_FUNC( QT_QMENUBAR_ISDEFAULTUP ) { - hb_retl( hbqt_par_QMenuBar( 1 )->isDefaultUp() ); + hb_retl( hbqt_par_QMenuBar( 1 )->isDefaultUp( ) ); } /* -void setActiveAction ( QAction * act ) -*/ + * void setActiveAction ( QAction * act ) + */ HB_FUNC( QT_QMENUBAR_SETACTIVEACTION ) { hbqt_par_QMenuBar( 1 )->setActiveAction( hbqt_par_QAction( 2 ) ); } /* -void setDefaultUp ( bool ) -*/ + * void setDefaultUp ( bool ) + */ HB_FUNC( QT_QMENUBAR_SETDEFAULTUP ) { - hbqt_par_QMenuBar( 1 )->setDefaultUp( hb_parl(2) ); + hbqt_par_QMenuBar( 1 )->setDefaultUp( hb_parl( 2 ) ); } + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qmessagebox.cpp b/harbour/contrib/hbqt/hbqt_qmessagebox.cpp index 0529cf9463..c397d0d4bc 100644 --- a/harbour/contrib/hbqt/hbqt_qmessagebox.cpp +++ b/harbour/contrib/hbqt/hbqt_qmessagebox.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,25 +55,270 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 29/32 [ 90.63% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * QList buttons () const + * QPixmap iconPixmap () const + * void setIconPixmap ( const QPixmap & pixmap ) + */ + #include -/*----------------------------------------------------------------------*/ +/* + * QMessageBox ( QWidget * parent = 0 ) + * QMessageBox ( Icon icon, const QString & title, const QString & text, StandardButtons buttons = NoButton, QWidget * parent = 0, Qt::WindowFlags f = Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint ) + * ~QMessageBox () + */ HB_FUNC( QT_QMESSAGEBOX ) { hb_retptr( ( QMessageBox* ) new QMessageBox() ); } -// function added only for tests -// a better implementation will be done -HB_FUNC( MSGINFO ) +/* + * void addButton ( QAbstractButton * button, ButtonRole role ) + */ +HB_FUNC( QT_QMESSAGEBOX_ADDBUTTON ) { - QMessageBox msgBox; - msgBox.setText( hb_parc( 1 ) ); - msgBox.exec(); + hbqt_par_QMessageBox( 1 )->addButton( hbqt_par_QAbstractButton( 2 ), ( QMessageBox::ButtonRole ) hb_parni( 3 ) ); } +/* + * QPushButton * addButton ( const QString & text, ButtonRole role ) + */ +HB_FUNC( QT_QMESSAGEBOX_ADDBUTTON_1 ) +{ + hb_retptr( ( QPushButton* ) hbqt_par_QMessageBox( 1 )->addButton( hbqt_par_QString( 2 ), ( QMessageBox::ButtonRole ) hb_parni( 3 ) ) ); +} + +/* + * QPushButton * addButton ( StandardButton button ) + */ +HB_FUNC( QT_QMESSAGEBOX_ADDBUTTON_2 ) +{ + hb_retptr( ( QPushButton* ) hbqt_par_QMessageBox( 1 )->addButton( ( QMessageBox::StandardButton ) hb_parni( 2 ) ) ); +} + +/* + * QAbstractButton * button ( StandardButton which ) const + */ +HB_FUNC( QT_QMESSAGEBOX_BUTTON ) +{ + hb_retptr( ( QAbstractButton* ) hbqt_par_QMessageBox( 1 )->button( ( QMessageBox::StandardButton ) hb_parni( 2 ) ) ); +} + +/* + * ButtonRole buttonRole ( QAbstractButton * button ) const + */ +HB_FUNC( QT_QMESSAGEBOX_BUTTONROLE ) +{ + hb_retni( hbqt_par_QMessageBox( 1 )->buttonRole( hbqt_par_QAbstractButton( 2 ) ) ); +} + +/* + * QAbstractButton * clickedButton () const + */ +HB_FUNC( QT_QMESSAGEBOX_CLICKEDBUTTON ) +{ + hb_retptr( ( QAbstractButton* ) hbqt_par_QMessageBox( 1 )->clickedButton( ) ); +} + +/* + * QPushButton * defaultButton () const + */ +HB_FUNC( QT_QMESSAGEBOX_DEFAULTBUTTON ) +{ + hb_retptr( ( QPushButton* ) hbqt_par_QMessageBox( 1 )->defaultButton( ) ); +} + +/* + * QString detailedText () const + */ +HB_FUNC( QT_QMESSAGEBOX_DETAILEDTEXT ) +{ + hb_retc( hbqt_par_QMessageBox( 1 )->detailedText( ).toLatin1().data() ); +} + +/* + * QAbstractButton * escapeButton () const + */ +HB_FUNC( QT_QMESSAGEBOX_ESCAPEBUTTON ) +{ + hb_retptr( ( QAbstractButton* ) hbqt_par_QMessageBox( 1 )->escapeButton( ) ); +} + +/* + * Icon icon () const + */ +HB_FUNC( QT_QMESSAGEBOX_ICON ) +{ + hb_retni( hbqt_par_QMessageBox( 1 )->icon( ) ); +} + +/* + * QString informativeText () const + */ +HB_FUNC( QT_QMESSAGEBOX_INFORMATIVETEXT ) +{ + hb_retc( hbqt_par_QMessageBox( 1 )->informativeText( ).toLatin1().data() ); +} + +/* + * void open ( QObject * receiver, const char * member ) + */ +HB_FUNC( QT_QMESSAGEBOX_OPEN ) +{ + hbqt_par_QMessageBox( 1 )->open( hbqt_par_QObject( 2 ), hbqt_par_char( 3 ) ); +} + +/* + * void removeButton ( QAbstractButton * button ) + */ +HB_FUNC( QT_QMESSAGEBOX_REMOVEBUTTON ) +{ + hbqt_par_QMessageBox( 1 )->removeButton( hbqt_par_QAbstractButton( 2 ) ); +} + +/* + * void setDefaultButton ( QPushButton * button ) + */ +HB_FUNC( QT_QMESSAGEBOX_SETDEFAULTBUTTON ) +{ + hbqt_par_QMessageBox( 1 )->setDefaultButton( hbqt_par_QPushButton( 2 ) ); +} + +/* + * void setDefaultButton ( StandardButton button ) + */ +HB_FUNC( QT_QMESSAGEBOX_SETDEFAULTBUTTON_1 ) +{ + hbqt_par_QMessageBox( 1 )->setDefaultButton( ( QMessageBox::StandardButton ) hb_parni( 2 ) ); +} + +/* + * void setDetailedText ( const QString & text ) + */ +HB_FUNC( QT_QMESSAGEBOX_SETDETAILEDTEXT ) +{ + hbqt_par_QMessageBox( 1 )->setDetailedText( hbqt_par_QString( 2 ) ); +} + +/* + * void setEscapeButton ( QAbstractButton * button ) + */ +HB_FUNC( QT_QMESSAGEBOX_SETESCAPEBUTTON ) +{ + hbqt_par_QMessageBox( 1 )->setEscapeButton( hbqt_par_QAbstractButton( 2 ) ); +} + +/* + * void setEscapeButton ( StandardButton button ) + */ +HB_FUNC( QT_QMESSAGEBOX_SETESCAPEBUTTON_1 ) +{ + hbqt_par_QMessageBox( 1 )->setEscapeButton( ( QMessageBox::StandardButton ) hb_parni( 2 ) ); +} + +/* + * void setIcon ( Icon ) + */ +HB_FUNC( QT_QMESSAGEBOX_SETICON ) +{ + hbqt_par_QMessageBox( 1 )->setIcon( ( QMessageBox::Icon ) hb_parni( 2 ) ); +} + +/* + * void setInformativeText ( const QString & text ) + */ +HB_FUNC( QT_QMESSAGEBOX_SETINFORMATIVETEXT ) +{ + hbqt_par_QMessageBox( 1 )->setInformativeText( hbqt_par_QString( 2 ) ); +} + +/* + * void setStandardButtons ( StandardButtons buttons ) + */ +HB_FUNC( QT_QMESSAGEBOX_SETSTANDARDBUTTONS ) +{ + hbqt_par_QMessageBox( 1 )->setStandardButtons( ( QMessageBox::StandardButtons ) hb_parni( 2 ) ); +} + +/* + * void setText ( const QString & text ) + */ +HB_FUNC( QT_QMESSAGEBOX_SETTEXT ) +{ + hbqt_par_QMessageBox( 1 )->setText( hbqt_par_QString( 2 ) ); +} + +/* + * void setTextFormat ( Qt::TextFormat format ) + */ +HB_FUNC( QT_QMESSAGEBOX_SETTEXTFORMAT ) +{ + hbqt_par_QMessageBox( 1 )->setTextFormat( ( Qt::TextFormat ) hb_parni( 2 ) ); +} + +/* + * void setWindowModality ( Qt::WindowModality windowModality ) + */ +HB_FUNC( QT_QMESSAGEBOX_SETWINDOWMODALITY ) +{ + hbqt_par_QMessageBox( 1 )->setWindowModality( ( Qt::WindowModality ) hb_parni( 2 ) ); +} + +/* + * void setWindowTitle ( const QString & title ) + */ +HB_FUNC( QT_QMESSAGEBOX_SETWINDOWTITLE ) +{ + hbqt_par_QMessageBox( 1 )->setWindowTitle( hbqt_par_QString( 2 ) ); +} + +/* + * StandardButton standardButton ( QAbstractButton * button ) const + */ +HB_FUNC( QT_QMESSAGEBOX_STANDARDBUTTON ) +{ + hb_retni( hbqt_par_QMessageBox( 1 )->standardButton( hbqt_par_QAbstractButton( 2 ) ) ); +} + +/* + * StandardButtons standardButtons () const + */ +HB_FUNC( QT_QMESSAGEBOX_STANDARDBUTTONS ) +{ + hb_retni( hbqt_par_QMessageBox( 1 )->standardButtons( ) ); +} + +/* + * QString text () const + */ +HB_FUNC( QT_QMESSAGEBOX_TEXT ) +{ + hb_retc( hbqt_par_QMessageBox( 1 )->text( ).toLatin1().data() ); +} + +/* + * Qt::TextFormat textFormat () const + */ +HB_FUNC( QT_QMESSAGEBOX_TEXTFORMAT ) +{ + hb_retni( hbqt_par_QMessageBox( 1 )->textFormat( ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qobject.cpp b/harbour/contrib/hbqt/hbqt_qobject.cpp index 4ad02b635c..9e2247b8df 100644 --- a/harbour/contrib/hbqt/hbqt_qobject.cpp +++ b/harbour/contrib/hbqt/hbqt_qobject.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,16 +55,217 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 22/29 [ 75.86% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * const QObjectList & children () const + * QList dynamicPropertyNames () const + * T findChild ( const QString & name = QString() ) const + * QList findChildren ( const QString & name = QString() ) const + * QList findChildren ( const QRegExp & regExp ) const + * QVariant property ( const char * name ) const + * bool setProperty ( const char * name, const QVariant & value ) + */ + #include -/*----------------------------------------------------------------------*/ +/* + * Q_INVOKABLE QObject ( QObject * parent = 0 ) + * virtual ~QObject () + */ HB_FUNC( QT_QOBJECT ) { - hb_retptr( ( QObject* ) new QObject() ); + hb_retptr( ( QObject* ) new QObject( hbqt_par_QWidget( 1 ) ) ); } +/* + * bool blockSignals ( bool block ) + */ +HB_FUNC( QT_QOBJECT_BLOCKSIGNALS ) +{ + hb_retl( hbqt_par_QObject( 1 )->blockSignals( hb_parl( 2 ) ) ); +} + +/* + * bool connect ( const QObject * sender, const char * signal, const char * method, Qt::ConnectionType type = Qt::AutoConnection ) const + */ +HB_FUNC( QT_QOBJECT_CONNECT ) +{ + hb_retl( hbqt_par_QObject( 1 )->connect( hbqt_par_QObject( 2 ), hbqt_par_char( 3 ), hbqt_par_char( 4 ), ( Qt::ConnectionType ) hb_parni( 5 ) ) ); +} + +/* + * bool disconnect ( const char * signal = 0, const QObject * receiver = 0, const char * method = 0 ) + */ +HB_FUNC( QT_QOBJECT_DISCONNECT ) +{ + hb_retl( hbqt_par_QObject( 1 )->disconnect( hbqt_par_char( 2 ), hbqt_par_QObject( 3 ), hbqt_par_char( 4 ) ) ); +} + +/* + * bool disconnect ( const QObject * receiver, const char * method = 0 ) + */ +HB_FUNC( QT_QOBJECT_DISCONNECT_1 ) +{ + hb_retl( hbqt_par_QObject( 1 )->disconnect( hbqt_par_QObject( 2 ), hbqt_par_char( 3 ) ) ); +} + +/* + * void dumpObjectInfo () + */ +HB_FUNC( QT_QOBJECT_DUMPOBJECTINFO ) +{ + hbqt_par_QObject( 1 )->dumpObjectInfo( ); +} + +/* + * void dumpObjectTree () + */ +HB_FUNC( QT_QOBJECT_DUMPOBJECTTREE ) +{ + hbqt_par_QObject( 1 )->dumpObjectTree( ); +} + +/* + * virtual bool event ( QEvent * e ) + */ +HB_FUNC( QT_QOBJECT_EVENT ) +{ + hb_retl( hbqt_par_QObject( 1 )->event( hbqt_par_QEvent( 2 ) ) ); +} + +/* + * virtual bool eventFilter ( QObject * watched, QEvent * event ) + */ +HB_FUNC( QT_QOBJECT_EVENTFILTER ) +{ + hb_retl( hbqt_par_QObject( 1 )->eventFilter( hbqt_par_QObject( 2 ), hbqt_par_QEvent( 3 ) ) ); +} + +/* + * bool inherits ( const char * className ) const + */ +HB_FUNC( QT_QOBJECT_INHERITS ) +{ + hb_retl( hbqt_par_QObject( 1 )->inherits( hbqt_par_char( 2 ) ) ); +} + +/* + * void installEventFilter ( QObject * filterObj ) + */ +HB_FUNC( QT_QOBJECT_INSTALLEVENTFILTER ) +{ + hbqt_par_QObject( 1 )->installEventFilter( hbqt_par_QObject( 2 ) ); +} + +/* + * bool isWidgetType () const + */ +HB_FUNC( QT_QOBJECT_ISWIDGETTYPE ) +{ + hb_retl( hbqt_par_QObject( 1 )->isWidgetType( ) ); +} + +/* + * void killTimer ( int id ) + */ +HB_FUNC( QT_QOBJECT_KILLTIMER ) +{ + hbqt_par_QObject( 1 )->killTimer( hb_parni( 2 ) ); +} + +/* + * virtual const QMetaObject * metaObject () const + */ +HB_FUNC( QT_QOBJECT_METAOBJECT ) +{ + hb_retptr( ( QMetaObject* ) hbqt_par_QObject( 1 )->metaObject( ) ); +} + +/* + * void moveToThread ( QThread * targetThread ) + */ +HB_FUNC( QT_QOBJECT_MOVETOTHREAD ) +{ + hbqt_par_QObject( 1 )->moveToThread( hbqt_par_QThread( 2 ) ); +} + +/* + * QString objectName () const + */ +HB_FUNC( QT_QOBJECT_OBJECTNAME ) +{ + hb_retc( hbqt_par_QObject( 1 )->objectName( ).toLatin1().data() ); +} + +/* + * QObject * parent () const + */ +HB_FUNC( QT_QOBJECT_PARENT ) +{ + hb_retptr( ( QObject* ) hbqt_par_QObject( 1 )->parent( ) ); +} + +/* + * void removeEventFilter ( QObject * obj ) + */ +HB_FUNC( QT_QOBJECT_REMOVEEVENTFILTER ) +{ + hbqt_par_QObject( 1 )->removeEventFilter( hbqt_par_QObject( 2 ) ); +} + +/* + * void setObjectName ( const QString & name ) + */ +HB_FUNC( QT_QOBJECT_SETOBJECTNAME ) +{ + hbqt_par_QObject( 1 )->setObjectName( hbqt_par_QString( 2 ) ); +} + +/* + * void setParent ( QObject * parent ) + */ +HB_FUNC( QT_QOBJECT_SETPARENT ) +{ + hbqt_par_QObject( 1 )->setParent( hbqt_par_QObject( 2 ) ); +} + +/* + * bool signalsBlocked () const + */ +HB_FUNC( QT_QOBJECT_SIGNALSBLOCKED ) +{ + hb_retl( hbqt_par_QObject( 1 )->signalsBlocked( ) ); +} + +/* + * int startTimer ( int interval ) + */ +HB_FUNC( QT_QOBJECT_STARTTIMER ) +{ + hb_retni( hbqt_par_QObject( 1 )->startTimer( hb_parni( 2 ) ) ); +} + +/* + * QThread * thread () const + */ +HB_FUNC( QT_QOBJECT_THREAD ) +{ + hb_retptr( ( QThread* ) hbqt_par_QObject( 1 )->thread( ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qpagesetupdialog.cpp b/harbour/contrib/hbqt/hbqt_qpagesetupdialog.cpp index 711ec6a62f..0f6a8dd623 100644 --- a/harbour/contrib/hbqt/hbqt_qpagesetupdialog.cpp +++ b/harbour/contrib/hbqt/hbqt_qpagesetupdialog.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,18 +55,93 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -QPageSetupDialog ( QPrinter * printer, QWidget * parent = 0 ) -*/ + * QPageSetupDialog ( QPrinter * printer, QWidget * parent = 0 ) + * QPageSetupDialog ( QWidget * parent = 0 ) + */ HB_FUNC( QT_QPAGESETUPDIALOG ) { - hb_retptr( ( QPageSetupDialog* ) new QPageSetupDialog( hbqt_par_QPrinter( 1 ), hbqt_par_QWidget( 1 ) ) ); + if( hb_pcount() >= 2 ) + hb_retptr( ( QPageSetupDialog* ) new QPageSetupDialog( hbqt_par_QPrinter( 1 ), hbqt_par_QWidget( 1 ) ) ); + else + hb_retptr( ( QPageSetupDialog* ) new QPageSetupDialog( hbqt_par_QWidget( 1 ) ) ); } +/* + * virtual int exec () + */ +HB_FUNC( QT_QPAGESETUPDIALOG_EXEC ) +{ + hb_retni( hbqt_par_QPageSetupDialog( 1 )->exec( ) ); +} + +/* + * void open ( QObject * receiver, const char * member ) + */ +HB_FUNC( QT_QPAGESETUPDIALOG_OPEN ) +{ + hbqt_par_QPageSetupDialog( 1 )->open( hbqt_par_QObject( 2 ), hbqt_par_char( 3 ) ); +} + +/* + * PageSetupDialogOptions options () const + */ +HB_FUNC( QT_QPAGESETUPDIALOG_OPTIONS ) +{ + hb_retni( hbqt_par_QPageSetupDialog( 1 )->options( ) ); +} + +/* + * QPrinter * printer () + */ +HB_FUNC( QT_QPAGESETUPDIALOG_PRINTER ) +{ + hb_retptr( ( QPrinter* ) hbqt_par_QPageSetupDialog( 1 )->printer( ) ); +} + +/* + * void setOption ( PageSetupDialogOption option, bool on = true ) + */ +HB_FUNC( QT_QPAGESETUPDIALOG_SETOPTION ) +{ + hbqt_par_QPageSetupDialog( 1 )->setOption( ( QPageSetupDialog::PageSetupDialogOption ) hb_parni( 2 ), hb_parl( 3 ) ); +} + +/* + * void setOptions ( PageSetupDialogOptions options ) + */ +HB_FUNC( QT_QPAGESETUPDIALOG_SETOPTIONS ) +{ + hbqt_par_QPageSetupDialog( 1 )->setOptions( ( QPageSetupDialog::PageSetupDialogOptions ) hb_parni( 2 ) ); +} + +/* + * virtual void setVisible ( bool visible ) + */ +HB_FUNC( QT_QPAGESETUPDIALOG_SETVISIBLE ) +{ + hbqt_par_QPageSetupDialog( 1 )->setVisible( hb_parl( 2 ) ); +} + +/* + * bool testOption ( PageSetupDialogOption option ) const + */ +HB_FUNC( QT_QPAGESETUPDIALOG_TESTOPTION ) +{ + hb_retl( hbqt_par_QPageSetupDialog( 1 )->testOption( ( QPageSetupDialog::PageSetupDialogOption ) hb_parni( 2 ) ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qpaintdevice.cpp b/harbour/contrib/hbqt/hbqt_qpaintdevice.cpp new file mode 100644 index 0000000000..dad7ca2aaf --- /dev/null +++ b/harbour/contrib/hbqt/hbqt_qpaintdevice.cpp @@ -0,0 +1,174 @@ +/* + * $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 + +/* + * virtual ~QPaintDevice () + */ +HB_FUNC( QT_QPAINTDEVICE ) +{ + +} + +/* + * int depth () const + */ +HB_FUNC( QT_QPAINTDEVICE_DEPTH ) +{ + hb_retni( hbqt_par_QPaintDevice( 1 )->depth( ) ); +} + +/* + * int height () const + */ +HB_FUNC( QT_QPAINTDEVICE_HEIGHT ) +{ + hb_retni( hbqt_par_QPaintDevice( 1 )->height( ) ); +} + +/* + * int heightMM () const + */ +HB_FUNC( QT_QPAINTDEVICE_HEIGHTMM ) +{ + hb_retni( hbqt_par_QPaintDevice( 1 )->heightMM( ) ); +} + +/* + * int logicalDpiX () const + */ +HB_FUNC( QT_QPAINTDEVICE_LOGICALDPIX ) +{ + hb_retni( hbqt_par_QPaintDevice( 1 )->logicalDpiX( ) ); +} + +/* + * int logicalDpiY () const + */ +HB_FUNC( QT_QPAINTDEVICE_LOGICALDPIY ) +{ + hb_retni( hbqt_par_QPaintDevice( 1 )->logicalDpiY( ) ); +} + +/* + * int numColors () const + */ +HB_FUNC( QT_QPAINTDEVICE_NUMCOLORS ) +{ + hb_retni( hbqt_par_QPaintDevice( 1 )->numColors( ) ); +} + +/* + * virtual QPaintEngine * paintEngine () const = 0 + */ +HB_FUNC( QT_QPAINTDEVICE_PAINTENGINE ) +{ + hb_retptr( ( QPaintEngine* ) hbqt_par_QPaintDevice( 1 )->paintEngine( ) ); +} + +/* + * bool paintingActive () const + */ +HB_FUNC( QT_QPAINTDEVICE_PAINTINGACTIVE ) +{ + hb_retl( hbqt_par_QPaintDevice( 1 )->paintingActive( ) ); +} + +/* + * int physicalDpiX () const + */ +HB_FUNC( QT_QPAINTDEVICE_PHYSICALDPIX ) +{ + hb_retni( hbqt_par_QPaintDevice( 1 )->physicalDpiX( ) ); +} + +/* + * int physicalDpiY () const + */ +HB_FUNC( QT_QPAINTDEVICE_PHYSICALDPIY ) +{ + hb_retni( hbqt_par_QPaintDevice( 1 )->physicalDpiY( ) ); +} + +/* + * int width () const + */ +HB_FUNC( QT_QPAINTDEVICE_WIDTH ) +{ + hb_retni( hbqt_par_QPaintDevice( 1 )->width( ) ); +} + +/* + * int widthMM () const + */ +HB_FUNC( QT_QPAINTDEVICE_WIDTHMM ) +{ + hb_retni( hbqt_par_QPaintDevice( 1 )->widthMM( ) ); +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qpainter.cpp b/harbour/contrib/hbqt/hbqt_qpainter.cpp new file mode 100644 index 0000000000..29cbb084ba --- /dev/null +++ b/harbour/contrib/hbqt/hbqt_qpainter.cpp @@ -0,0 +1,828 @@ +/* + * $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 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 79/180 [ 43.89% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * const QBrush & background () const + * QRectF boundingRect ( const QRectF & rectangle, int flags, const QString & text ) + * QRectF boundingRect ( const QRectF & rectangle, const QString & text, const QTextOption & option = QTextOption() ) + * const QBrush & brush () const + * QPainterPath clipPath () const + * QRegion clipRegion () const + * QMatrix combinedMatrix () const + * QTransform combinedTransform () const + * const QMatrix & deviceMatrix () const + * const QTransform & deviceTransform () const + * void drawArc ( const QRectF & rectangle, int startAngle, int spanAngle ) + * void drawChord ( const QRectF & rectangle, int startAngle, int spanAngle ) + * void drawConvexPolygon ( const QPoint * points, int pointCount ) + * void drawConvexPolygon ( const QPolygonF & polygon ) + * void drawConvexPolygon ( const QPolygon & polygon ) + * void drawEllipse ( const QRectF & rectangle ) + * void drawEllipse ( const QPointF & center, qreal rx, qreal ry ) + * void drawImage ( const QPointF & point, const QImage & image ) + * void drawImage ( const QPoint & point, const QImage & image ) + * void drawImage ( const QRectF & rectangle, const QImage & image ) + * void drawImage ( const QRect & rectangle, const QImage & image ) + * void drawLine ( const QLineF & line ) + * void drawLine ( const QLine & line ) + * void drawLine ( const QPointF & p1, const QPointF & p2 ) + * void drawLines ( const QPoint * pointPairs, int lineCount ) + * void drawLines ( const QVector & pointPairs ) + * void drawLines ( const QVector & pointPairs ) + * void drawLines ( const QVector & lines ) + * void drawLines ( const QVector & lines ) + * void drawPath ( const QPainterPath & path ) + * void drawPicture ( const QPointF & point, const QPicture & picture ) + * void drawPicture ( const QPoint & point, const QPicture & picture ) + * void drawPicture ( int x, int y, const QPicture & picture ) + * void drawPie ( const QRectF & rectangle, int startAngle, int spanAngle ) + * void drawPixmap ( const QRectF & target, const QPixmap & pixmap, const QRectF & source ) + * void drawPixmap ( const QRect & target, const QPixmap & pixmap, const QRect & source ) + * void drawPixmap ( const QPointF & point, const QPixmap & pixmap, const QRectF & source ) + * void drawPixmap ( const QPoint & point, const QPixmap & pixmap, const QRect & source ) + * void drawPixmap ( const QPointF & point, const QPixmap & pixmap ) + * void drawPixmap ( const QPoint & point, const QPixmap & pixmap ) + * void drawPixmap ( int x, int y, const QPixmap & pixmap ) + * void drawPixmap ( const QRect & rectangle, const QPixmap & pixmap ) + * void drawPixmap ( int x, int y, int width, int height, const QPixmap & pixmap ) + * void drawPixmap ( int x, int y, int w, int h, const QPixmap & pixmap, int sx, int sy, int sw, int sh ) + * void drawPixmap ( int x, int y, const QPixmap & pixmap, int sx, int sy, int sw, int sh ) + * void drawPoint ( const QPointF & position ) + * void drawPoints ( const QPoint * points, int pointCount ) + * void drawPoints ( const QPolygonF & points ) + * void drawPoints ( const QPolygon & points ) + * void drawPolygon ( const QPoint * points, int pointCount, Qt::FillRule fillRule = Qt::OddEvenFill ) + * void drawPolygon ( const QPolygonF & points, Qt::FillRule fillRule = Qt::OddEvenFill ) + * void drawPolygon ( const QPolygon & points, Qt::FillRule fillRule = Qt::OddEvenFill ) + * void drawPolyline ( const QPoint * points, int pointCount ) + * void drawPolyline ( const QPolygonF & points ) + * void drawPolyline ( const QPolygon & points ) + * void drawRect ( const QRectF & rectangle ) + * void drawRects ( const QRect * rectangles, int rectCount ) + * void drawRects ( const QVector & rectangles ) + * void drawRects ( const QVector & rectangles ) + * void drawRoundedRect ( const QRectF & rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode = Qt::AbsoluteSize ) + * void drawText ( const QPointF & position, const QString & text ) + * void drawText ( const QRectF & rectangle, int flags, const QString & text, QRectF * boundingRect = 0 ) + * void drawText ( const QRect & rectangle, int flags, const QString & text, QRect * boundingRect = 0 ) + * void drawText ( int x, int y, int width, int height, int flags, const QString & text, QRect * boundingRect = 0 ) + * void drawText ( const QRectF & rectangle, const QString & text, const QTextOption & option = QTextOption() ) + * void drawTiledPixmap ( const QRectF & rectangle, const QPixmap & pixmap, const QPointF & position = QPointF() ) + * void drawTiledPixmap ( const QRect & rectangle, const QPixmap & pixmap, const QPoint & position = QPoint() ) + * void drawTiledPixmap ( int x, int y, int width, int height, const QPixmap & pixmap, int sx = 0, int sy = 0 ) + * void eraseRect ( const QRectF & rectangle ) + * void fillPath ( const QPainterPath & path, const QBrush & brush ) + * void fillRect ( const QRectF & rectangle, const QBrush & brush ) + * void fillRect ( const QRectF & rectangle, Qt::BrushStyle style ) + * void fillRect ( const QRect & rectangle, const QBrush & brush ) + * void fillRect ( const QRect & rectangle, const QColor & color ) + * void fillRect ( const QRectF & rectangle, const QColor & color ) + * void fillRect ( int x, int y, int width, int height, const QBrush & brush ) + * void fillRect ( int x, int y, int width, int height, const QColor & color ) + * void fillRect ( const QRectF & rectangle, Qt::GlobalColor color ) + * const QFont & font () const + * QFontInfo fontInfo () const + * QFontMetrics fontMetrics () const + * const QPen & pen () const + * RenderHints renderHints () const + * void setBackground ( const QBrush & brush ) + * void setBrush ( const QBrush & brush ) + * void setBrushOrigin ( const QPointF & position ) + * void setClipPath ( const QPainterPath & path, Qt::ClipOperation operation = Qt::ReplaceClip ) + * void setClipRect ( const QRectF & rectangle, Qt::ClipOperation operation = Qt::ReplaceClip ) + * void setClipRegion ( const QRegion & region, Qt::ClipOperation operation = Qt::ReplaceClip ) + * void setFont ( const QFont & font ) + * void setPen ( const QPen & pen ) + * void setPen ( const QColor & color ) + * void setRenderHints ( RenderHints hints, bool on = true ) + * void setTransform ( const QTransform & transform, bool combine = false ) + * void setWorldMatrix ( const QMatrix & matrix, bool combine = false ) + * void setWorldTransform ( const QTransform & matrix, bool combine = false ) + * void strokePath ( const QPainterPath & path, const QPen & pen ) + * const QTransform & transform () const + * void translate ( const QPointF & offset ) + * const QMatrix & worldMatrix () const + * const QTransform & worldTransform () const + */ + + +#include + +/* + * QPainter () + * QPainter ( QPaintDevice * device ) + * ~QPainter () + */ +HB_FUNC( QT_QPAINTER ) +{ + if( hb_pcount() >= 1 && HB_ISPOINTER( 1 ) ) + { + hb_retptr( ( QPainter* ) new QPainter( hbqt_par_QPaintDevice( 1 ) ) ); + } + else + { + hb_retptr( ( QPainter* ) new QPainter() ); + } +} + +/* + * Qt::BGMode backgroundMode () const + */ +HB_FUNC( QT_QPAINTER_BACKGROUNDMODE ) +{ + hb_retni( hbqt_par_QPainter( 1 )->backgroundMode( ) ); +} + +/* + * bool begin ( QPaintDevice * device ) + */ +HB_FUNC( QT_QPAINTER_BEGIN ) +{ + hb_retl( hbqt_par_QPainter( 1 )->begin( hbqt_par_QPaintDevice( 2 ) ) ); +} + +/* + * QRect boundingRect ( const QRect & rectangle, int flags, const QString & text ) + */ +HB_FUNC( QT_QPAINTER_BOUNDINGRECT ) +{ + hbqt_ret_QRect( hbqt_par_QPainter( 1 )->boundingRect( hbqt_const_QRect( 2 ), hb_parni( 3 ), hbqt_par_QString( 4 ) ) ); +} + +/* + * QRect boundingRect ( int x, int y, int w, int h, int flags, const QString & text ) + */ +HB_FUNC( QT_QPAINTER_BOUNDINGRECT_1 ) +{ + hbqt_ret_QRect( hbqt_par_QPainter( 1 )->boundingRect( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), hb_parni( 6 ), hbqt_par_QString( 7 ) ) ); +} + +/* + * QPoint brushOrigin () const + */ +HB_FUNC( QT_QPAINTER_BRUSHORIGIN ) +{ + hbqt_ret_QPoint( hbqt_par_QPainter( 1 )->brushOrigin( ) ); +} + +/* + * CompositionMode compositionMode () const + */ +HB_FUNC( QT_QPAINTER_COMPOSITIONMODE ) +{ + hb_retni( hbqt_par_QPainter( 1 )->compositionMode( ) ); +} + +/* + * QPaintDevice * device () const + */ +HB_FUNC( QT_QPAINTER_DEVICE ) +{ + hb_retptr( ( QPaintDevice* ) hbqt_par_QPainter( 1 )->device( ) ); +} + +/* + * void drawArc ( const QRect & rectangle, int startAngle, int spanAngle ) + */ +HB_FUNC( QT_QPAINTER_DRAWARC ) +{ + hbqt_par_QPainter( 1 )->drawArc( hbqt_const_QRect( 2 ), hb_parni( 3 ), hb_parni( 4 ) ); +} + +/* + * void drawArc ( int x, int y, int width, int height, int startAngle, int spanAngle ) + */ +HB_FUNC( QT_QPAINTER_DRAWARC_1 ) +{ + hbqt_par_QPainter( 1 )->drawArc( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), hb_parni( 6 ), hb_parni( 7 ) ); +} + +/* + * void drawChord ( const QRect & rectangle, int startAngle, int spanAngle ) + */ +HB_FUNC( QT_QPAINTER_DRAWCHORD ) +{ + hbqt_par_QPainter( 1 )->drawChord( hbqt_const_QRect( 2 ), hb_parni( 3 ), hb_parni( 4 ) ); +} + +/* + * void drawChord ( int x, int y, int width, int height, int startAngle, int spanAngle ) + */ +HB_FUNC( QT_QPAINTER_DRAWCHORD_1 ) +{ + hbqt_par_QPainter( 1 )->drawChord( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), hb_parni( 6 ), hb_parni( 7 ) ); +} + +/* + * void drawConvexPolygon ( const QPointF * points, int pointCount ) + */ +HB_FUNC( QT_QPAINTER_DRAWCONVEXPOLYGON ) +{ + hbqt_par_QPainter( 1 )->drawConvexPolygon( hbqt_par_QPointF( 2 ), hb_parni( 3 ) ); +} + +/* + * void drawEllipse ( const QRect & rectangle ) + */ +HB_FUNC( QT_QPAINTER_DRAWELLIPSE ) +{ + hbqt_par_QPainter( 1 )->drawEllipse( hbqt_const_QRect( 2 ) ); +} + +/* + * void drawEllipse ( int x, int y, int width, int height ) + */ +HB_FUNC( QT_QPAINTER_DRAWELLIPSE_1 ) +{ + hbqt_par_QPainter( 1 )->drawEllipse( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ) ); +} + +/* + * void drawEllipse ( const QPoint & center, int rx, int ry ) + */ +HB_FUNC( QT_QPAINTER_DRAWELLIPSE_2 ) +{ + hbqt_par_QPainter( 1 )->drawEllipse( hbqt_const_QPoint( 2 ), hb_parni( 3 ), hb_parni( 4 ) ); +} + +/* + * void drawLine ( const QPoint & p1, const QPoint & p2 ) + */ +HB_FUNC( QT_QPAINTER_DRAWLINE ) +{ + hbqt_par_QPainter( 1 )->drawLine( hbqt_const_QPoint( 2 ), hbqt_const_QPoint( 3 ) ); +} + +/* + * void drawLine ( int x1, int y1, int x2, int y2 ) + */ +HB_FUNC( QT_QPAINTER_DRAWLINE_1 ) +{ + hbqt_par_QPainter( 1 )->drawLine( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ) ); +} + +/* + * void drawLines ( const QLineF * lines, int lineCount ) + */ +HB_FUNC( QT_QPAINTER_DRAWLINES ) +{ + hbqt_par_QPainter( 1 )->drawLines( hbqt_par_QLineF( 2 ), hb_parni( 3 ) ); +} + +/* + * void drawLines ( const QLine * lines, int lineCount ) + */ +HB_FUNC( QT_QPAINTER_DRAWLINES_1 ) +{ + hbqt_par_QPainter( 1 )->drawLines( hbqt_par_QLine( 2 ), hb_parni( 3 ) ); +} + +/* + * void drawLines ( const QPointF * pointPairs, int lineCount ) + */ +HB_FUNC( QT_QPAINTER_DRAWLINES_2 ) +{ + hbqt_par_QPainter( 1 )->drawLines( hbqt_par_QPointF( 2 ), hb_parni( 3 ) ); +} + +/* + * void drawPie ( const QRect & rectangle, int startAngle, int spanAngle ) + */ +HB_FUNC( QT_QPAINTER_DRAWPIE ) +{ + hbqt_par_QPainter( 1 )->drawPie( hbqt_const_QRect( 2 ), hb_parni( 3 ), hb_parni( 4 ) ); +} + +/* + * void drawPie ( int x, int y, int width, int height, int startAngle, int spanAngle ) + */ +HB_FUNC( QT_QPAINTER_DRAWPIE_1 ) +{ + hbqt_par_QPainter( 1 )->drawPie( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), hb_parni( 6 ), hb_parni( 7 ) ); +} + +/* + * void drawPoint ( const QPoint & position ) + */ +HB_FUNC( QT_QPAINTER_DRAWPOINT ) +{ + hbqt_par_QPainter( 1 )->drawPoint( hbqt_const_QPoint( 2 ) ); +} + +/* + * void drawPoint ( int x, int y ) + */ +HB_FUNC( QT_QPAINTER_DRAWPOINT_1 ) +{ + hbqt_par_QPainter( 1 )->drawPoint( hb_parni( 2 ), hb_parni( 3 ) ); +} + +/* + * void drawPoints ( const QPointF * points, int pointCount ) + */ +HB_FUNC( QT_QPAINTER_DRAWPOINTS ) +{ + hbqt_par_QPainter( 1 )->drawPoints( hbqt_par_QPointF( 2 ), hb_parni( 3 ) ); +} + +/* + * void drawPolygon ( const QPointF * points, int pointCount, Qt::FillRule fillRule = Qt::OddEvenFill ) + */ +HB_FUNC( QT_QPAINTER_DRAWPOLYGON ) +{ + hbqt_par_QPainter( 1 )->drawPolygon( hbqt_par_QPointF( 2 ), hb_parni( 3 ), ( Qt::FillRule ) hb_parni( 4 ) ); +} + +/* + * void drawPolyline ( const QPointF * points, int pointCount ) + */ +HB_FUNC( QT_QPAINTER_DRAWPOLYLINE ) +{ + hbqt_par_QPainter( 1 )->drawPolyline( hbqt_par_QPointF( 2 ), hb_parni( 3 ) ); +} + +/* + * void drawRect ( const QRect & rectangle ) + */ +HB_FUNC( QT_QPAINTER_DRAWRECT ) +{ + hbqt_par_QPainter( 1 )->drawRect( hbqt_const_QRect( 2 ) ); +} + +/* + * void drawRect ( int x, int y, int width, int height ) + */ +HB_FUNC( QT_QPAINTER_DRAWRECT_1 ) +{ + hbqt_par_QPainter( 1 )->drawRect( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ) ); +} + +/* + * void drawRects ( const QRectF * rectangles, int rectCount ) + */ +HB_FUNC( QT_QPAINTER_DRAWRECTS ) +{ + hbqt_par_QPainter( 1 )->drawRects( hbqt_par_QRectF( 2 ), hb_parni( 3 ) ); +} + +/* + * void drawRoundedRect ( const QRect & rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode = Qt::AbsoluteSize ) + */ +HB_FUNC( QT_QPAINTER_DRAWROUNDEDRECT ) +{ + hbqt_par_QPainter( 1 )->drawRoundedRect( hbqt_const_QRect( 2 ), hb_parnd( 3 ), hb_parnd( 4 ), ( Qt::SizeMode ) hb_parni( 5 ) ); +} + +/* + * void drawRoundedRect ( int x, int y, int w, int h, qreal xRadius, qreal yRadius, Qt::SizeMode mode = Qt::AbsoluteSize ) + */ +HB_FUNC( QT_QPAINTER_DRAWROUNDEDRECT_1 ) +{ + hbqt_par_QPainter( 1 )->drawRoundedRect( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), hb_parnd( 6 ), hb_parnd( 7 ), ( Qt::SizeMode ) hb_parni( 8 ) ); +} + +/* + * void drawText ( const QPoint & position, const QString & text ) + */ +HB_FUNC( QT_QPAINTER_DRAWTEXT ) +{ + hbqt_par_QPainter( 1 )->drawText( hbqt_const_QPoint( 2 ), hbqt_par_QString( 3 ) ); +} + +/* + * void drawText ( int x, int y, const QString & text ) + */ +HB_FUNC( QT_QPAINTER_DRAWTEXT_1 ) +{ + hbqt_par_QPainter( 1 )->drawText( hb_parni( 2 ), hb_parni( 3 ), hbqt_par_QString( 4 ) ); +} + +/* + * bool end () + */ +HB_FUNC( QT_QPAINTER_END ) +{ + hb_retl( hbqt_par_QPainter( 1 )->end( ) ); +} + +/* + * void eraseRect ( const QRect & rectangle ) + */ +HB_FUNC( QT_QPAINTER_ERASERECT ) +{ + hbqt_par_QPainter( 1 )->eraseRect( hbqt_const_QRect( 2 ) ); +} + +/* + * void eraseRect ( int x, int y, int width, int height ) + */ +HB_FUNC( QT_QPAINTER_ERASERECT_1 ) +{ + hbqt_par_QPainter( 1 )->eraseRect( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ) ); +} + +/* + * void fillRect ( int x, int y, int width, int height, Qt::BrushStyle style ) + */ +HB_FUNC( QT_QPAINTER_FILLRECT ) +{ + hbqt_par_QPainter( 1 )->fillRect( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), ( Qt::BrushStyle ) hb_parni( 6 ) ); +} + +/* + * void fillRect ( const QRect & rectangle, Qt::BrushStyle style ) + */ +HB_FUNC( QT_QPAINTER_FILLRECT_1 ) +{ + hbqt_par_QPainter( 1 )->fillRect( hbqt_const_QRect( 2 ), ( Qt::BrushStyle ) hb_parni( 3 ) ); +} + +/* + * void fillRect ( int x, int y, int width, int height, Qt::GlobalColor color ) + */ +HB_FUNC( QT_QPAINTER_FILLRECT_2 ) +{ + hbqt_par_QPainter( 1 )->fillRect( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), ( Qt::GlobalColor ) hb_parni( 6 ) ); +} + +/* + * void fillRect ( const QRect & rectangle, Qt::GlobalColor color ) + */ +HB_FUNC( QT_QPAINTER_FILLRECT_3 ) +{ + hbqt_par_QPainter( 1 )->fillRect( hbqt_const_QRect( 2 ), ( Qt::GlobalColor ) hb_parni( 3 ) ); +} + +/* + * bool hasClipping () const + */ +HB_FUNC( QT_QPAINTER_HASCLIPPING ) +{ + hb_retl( hbqt_par_QPainter( 1 )->hasClipping( ) ); +} + +/* + * void initFrom ( const QWidget * widget ) + */ +HB_FUNC( QT_QPAINTER_INITFROM ) +{ + hbqt_par_QPainter( 1 )->initFrom( hbqt_par_QWidget( 2 ) ); +} + +/* + * bool isActive () const + */ +HB_FUNC( QT_QPAINTER_ISACTIVE ) +{ + hb_retl( hbqt_par_QPainter( 1 )->isActive( ) ); +} + +/* + * Qt::LayoutDirection layoutDirection () const + */ +HB_FUNC( QT_QPAINTER_LAYOUTDIRECTION ) +{ + hb_retni( hbqt_par_QPainter( 1 )->layoutDirection( ) ); +} + +/* + * qreal opacity () const + */ +HB_FUNC( QT_QPAINTER_OPACITY ) +{ + hb_retnd( hbqt_par_QPainter( 1 )->opacity( ) ); +} + +/* + * QPaintEngine * paintEngine () const + */ +HB_FUNC( QT_QPAINTER_PAINTENGINE ) +{ + hb_retptr( ( QPaintEngine* ) hbqt_par_QPainter( 1 )->paintEngine( ) ); +} + +/* + * void resetMatrix () + */ +HB_FUNC( QT_QPAINTER_RESETMATRIX ) +{ + hbqt_par_QPainter( 1 )->resetMatrix( ); +} + +/* + * void resetTransform () + */ +HB_FUNC( QT_QPAINTER_RESETTRANSFORM ) +{ + hbqt_par_QPainter( 1 )->resetTransform( ); +} + +/* + * void restore () + */ +HB_FUNC( QT_QPAINTER_RESTORE ) +{ + hbqt_par_QPainter( 1 )->restore( ); +} + +/* + * void rotate ( qreal angle ) + */ +HB_FUNC( QT_QPAINTER_ROTATE ) +{ + hbqt_par_QPainter( 1 )->rotate( hb_parnd( 2 ) ); +} + +/* + * void save () + */ +HB_FUNC( QT_QPAINTER_SAVE ) +{ + hbqt_par_QPainter( 1 )->save( ); +} + +/* + * void scale ( qreal sx, qreal sy ) + */ +HB_FUNC( QT_QPAINTER_SCALE ) +{ + hbqt_par_QPainter( 1 )->scale( hb_parnd( 2 ), hb_parnd( 3 ) ); +} + +/* + * void setBackgroundMode ( Qt::BGMode mode ) + */ +HB_FUNC( QT_QPAINTER_SETBACKGROUNDMODE ) +{ + hbqt_par_QPainter( 1 )->setBackgroundMode( ( Qt::BGMode ) hb_parni( 2 ) ); +} + +/* + * void setBrush ( Qt::BrushStyle style ) + */ +HB_FUNC( QT_QPAINTER_SETBRUSH ) +{ + hbqt_par_QPainter( 1 )->setBrush( ( Qt::BrushStyle ) hb_parni( 2 ) ); +} + +/* + * void setBrushOrigin ( const QPoint & position ) + */ +HB_FUNC( QT_QPAINTER_SETBRUSHORIGIN ) +{ + hbqt_par_QPainter( 1 )->setBrushOrigin( hbqt_const_QPoint( 2 ) ); +} + +/* + * void setBrushOrigin ( int x, int y ) + */ +HB_FUNC( QT_QPAINTER_SETBRUSHORIGIN_1 ) +{ + hbqt_par_QPainter( 1 )->setBrushOrigin( hb_parni( 2 ), hb_parni( 3 ) ); +} + +/* + * void setClipRect ( int x, int y, int width, int height, Qt::ClipOperation operation = Qt::ReplaceClip ) + */ +HB_FUNC( QT_QPAINTER_SETCLIPRECT ) +{ + hbqt_par_QPainter( 1 )->setClipRect( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), ( Qt::ClipOperation ) hb_parni( 6 ) ); +} + +/* + * void setClipRect ( const QRect & rectangle, Qt::ClipOperation operation = Qt::ReplaceClip ) + */ +HB_FUNC( QT_QPAINTER_SETCLIPRECT_1 ) +{ + hbqt_par_QPainter( 1 )->setClipRect( hbqt_const_QRect( 2 ), ( Qt::ClipOperation ) hb_parni( 3 ) ); +} + +/* + * void setClipping ( bool enable ) + */ +HB_FUNC( QT_QPAINTER_SETCLIPPING ) +{ + hbqt_par_QPainter( 1 )->setClipping( hb_parl( 2 ) ); +} + +/* + * void setCompositionMode ( CompositionMode mode ) + */ +HB_FUNC( QT_QPAINTER_SETCOMPOSITIONMODE ) +{ + hbqt_par_QPainter( 1 )->setCompositionMode( ( QPainter::CompositionMode ) hb_parni( 2 ) ); +} + +/* + * void setLayoutDirection ( Qt::LayoutDirection direction ) + */ +HB_FUNC( QT_QPAINTER_SETLAYOUTDIRECTION ) +{ + hbqt_par_QPainter( 1 )->setLayoutDirection( ( Qt::LayoutDirection ) hb_parni( 2 ) ); +} + +/* + * void setOpacity ( qreal opacity ) + */ +HB_FUNC( QT_QPAINTER_SETOPACITY ) +{ + hbqt_par_QPainter( 1 )->setOpacity( hb_parnd( 2 ) ); +} + +/* + * void setPen ( Qt::PenStyle style ) + */ +HB_FUNC( QT_QPAINTER_SETPEN ) +{ + hbqt_par_QPainter( 1 )->setPen( ( Qt::PenStyle ) hb_parni( 2 ) ); +} + +/* + * void setRenderHint ( RenderHint hint, bool on = true ) + */ +HB_FUNC( QT_QPAINTER_SETRENDERHINT ) +{ + hbqt_par_QPainter( 1 )->setRenderHint( ( QPainter::RenderHint ) hb_parni( 2 ), hb_parl( 3 ) ); +} + +/* + * void setViewTransformEnabled ( bool enable ) + */ +HB_FUNC( QT_QPAINTER_SETVIEWTRANSFORMENABLED ) +{ + hbqt_par_QPainter( 1 )->setViewTransformEnabled( hb_parl( 2 ) ); +} + +/* + * void setViewport ( const QRect & rectangle ) + */ +HB_FUNC( QT_QPAINTER_SETVIEWPORT ) +{ + hbqt_par_QPainter( 1 )->setViewport( hbqt_const_QRect( 2 ) ); +} + +/* + * void setViewport ( int x, int y, int width, int height ) + */ +HB_FUNC( QT_QPAINTER_SETVIEWPORT_1 ) +{ + hbqt_par_QPainter( 1 )->setViewport( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ) ); +} + +/* + * void setWindow ( const QRect & rectangle ) + */ +HB_FUNC( QT_QPAINTER_SETWINDOW ) +{ + hbqt_par_QPainter( 1 )->setWindow( hbqt_const_QRect( 2 ) ); +} + +/* + * void setWindow ( int x, int y, int width, int height ) + */ +HB_FUNC( QT_QPAINTER_SETWINDOW_1 ) +{ + hbqt_par_QPainter( 1 )->setWindow( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ) ); +} + +/* + * void setWorldMatrixEnabled ( bool enable ) + */ +HB_FUNC( QT_QPAINTER_SETWORLDMATRIXENABLED ) +{ + hbqt_par_QPainter( 1 )->setWorldMatrixEnabled( hb_parl( 2 ) ); +} + +/* + * void shear ( qreal sh, qreal sv ) + */ +HB_FUNC( QT_QPAINTER_SHEAR ) +{ + hbqt_par_QPainter( 1 )->shear( hb_parnd( 2 ), hb_parnd( 3 ) ); +} + +/* + * bool testRenderHint ( RenderHint hint ) const + */ +HB_FUNC( QT_QPAINTER_TESTRENDERHINT ) +{ + hb_retl( hbqt_par_QPainter( 1 )->testRenderHint( ( QPainter::RenderHint ) hb_parni( 2 ) ) ); +} + +/* + * void translate ( const QPoint & offset ) + */ +HB_FUNC( QT_QPAINTER_TRANSLATE ) +{ + hbqt_par_QPainter( 1 )->translate( hbqt_const_QPoint( 2 ) ); +} + +/* + * void translate ( qreal dx, qreal dy ) + */ +HB_FUNC( QT_QPAINTER_TRANSLATE_1 ) +{ + hbqt_par_QPainter( 1 )->translate( hb_parnd( 2 ), hb_parnd( 3 ) ); +} + +/* + * bool viewTransformEnabled () const + */ +HB_FUNC( QT_QPAINTER_VIEWTRANSFORMENABLED ) +{ + hb_retl( hbqt_par_QPainter( 1 )->viewTransformEnabled( ) ); +} + +/* + * QRect viewport () const + */ +HB_FUNC( QT_QPAINTER_VIEWPORT ) +{ + hbqt_ret_QRect( hbqt_par_QPainter( 1 )->viewport( ) ); +} + +/* + * QRect window () const + */ +HB_FUNC( QT_QPAINTER_WINDOW ) +{ + hbqt_ret_QRect( hbqt_par_QPainter( 1 )->window( ) ); +} + +/* + * bool worldMatrixEnabled () const + */ +HB_FUNC( QT_QPAINTER_WORLDMATRIXENABLED ) +{ + hb_retl( hbqt_par_QPainter( 1 )->worldMatrixEnabled( ) ); +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qpen.cpp b/harbour/contrib/hbqt/hbqt_qpen.cpp new file mode 100644 index 0000000000..e621ab1623 --- /dev/null +++ b/harbour/contrib/hbqt/hbqt_qpen.cpp @@ -0,0 +1,241 @@ +/* + * $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 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 17/23 [ 73.91% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * QBrush brush () const + * QColor color () const + * QVector dashPattern () const + * void setBrush ( const QBrush & brush ) + * void setColor ( const QColor & color ) + * void setDashPattern ( const QVector & pattern ) + */ + + +#include + + +/* + * QPen () + * QPen ( Qt::PenStyle style ) + * QPen ( const QColor & color ) + * QPen ( const QBrush & brush, qreal width, Qt::PenStyle style = Qt::SolidLine, Qt::PenCapStyle cap = Qt::SquareCap, Qt::PenJoinStyle join = Qt::BevelJoin ) + * QPen ( const QPen & pen ) + * ~QPen () + */ +HB_FUNC( QT_QPEN ) +{ + if( hb_pcount() == 1 && HB_ISNUM( 1 ) ) + { + hb_retptr( ( QPen* ) new QPen() ); + } + else + { + hb_retptr( ( QPen* ) new QPen() ); + } +} + +/* + * Qt::PenCapStyle capStyle () const + */ +HB_FUNC( QT_QPEN_CAPSTYLE ) +{ + hb_retni( hbqt_par_QPen( 1 )->capStyle( ) ); +} + +/* + * qreal dashOffset () const + */ +HB_FUNC( QT_QPEN_DASHOFFSET ) +{ + hb_retnd( hbqt_par_QPen( 1 )->dashOffset( ) ); +} + +/* + * bool isCosmetic () const + */ +HB_FUNC( QT_QPEN_ISCOSMETIC ) +{ + hb_retl( hbqt_par_QPen( 1 )->isCosmetic( ) ); +} + +/* + * bool isSolid () const + */ +HB_FUNC( QT_QPEN_ISSOLID ) +{ + hb_retl( hbqt_par_QPen( 1 )->isSolid( ) ); +} + +/* + * Qt::PenJoinStyle joinStyle () const + */ +HB_FUNC( QT_QPEN_JOINSTYLE ) +{ + hb_retni( hbqt_par_QPen( 1 )->joinStyle( ) ); +} + +/* + * qreal miterLimit () const + */ +HB_FUNC( QT_QPEN_MITERLIMIT ) +{ + hb_retnd( hbqt_par_QPen( 1 )->miterLimit( ) ); +} + +/* + * void setCapStyle ( Qt::PenCapStyle style ) + */ +HB_FUNC( QT_QPEN_SETCAPSTYLE ) +{ + hbqt_par_QPen( 1 )->setCapStyle( ( Qt::PenCapStyle ) hb_parni( 2 ) ); +} + +/* + * void setCosmetic ( bool cosmetic ) + */ +HB_FUNC( QT_QPEN_SETCOSMETIC ) +{ + hbqt_par_QPen( 1 )->setCosmetic( hb_parl( 2 ) ); +} + +/* + * void setDashOffset ( qreal offset ) + */ +HB_FUNC( QT_QPEN_SETDASHOFFSET ) +{ + hbqt_par_QPen( 1 )->setDashOffset( hb_parnd( 2 ) ); +} + +/* + * void setJoinStyle ( Qt::PenJoinStyle style ) + */ +HB_FUNC( QT_QPEN_SETJOINSTYLE ) +{ + hbqt_par_QPen( 1 )->setJoinStyle( ( Qt::PenJoinStyle ) hb_parni( 2 ) ); +} + +/* + * void setMiterLimit ( qreal limit ) + */ +HB_FUNC( QT_QPEN_SETMITERLIMIT ) +{ + hbqt_par_QPen( 1 )->setMiterLimit( hb_parnd( 2 ) ); +} + +/* + * void setStyle ( Qt::PenStyle style ) + */ +HB_FUNC( QT_QPEN_SETSTYLE ) +{ + hbqt_par_QPen( 1 )->setStyle( ( Qt::PenStyle ) hb_parni( 2 ) ); +} + +/* + * void setWidth ( int width ) + */ +HB_FUNC( QT_QPEN_SETWIDTH ) +{ + hbqt_par_QPen( 1 )->setWidth( hb_parni( 2 ) ); +} + +/* + * void setWidthF ( qreal width ) + */ +HB_FUNC( QT_QPEN_SETWIDTHF ) +{ + hbqt_par_QPen( 1 )->setWidthF( hb_parnd( 2 ) ); +} + +/* + * Qt::PenStyle style () const + */ +HB_FUNC( QT_QPEN_STYLE ) +{ + hb_retni( hbqt_par_QPen( 1 )->style( ) ); +} + +/* + * int width () const + */ +HB_FUNC( QT_QPEN_WIDTH ) +{ + hb_retni( hbqt_par_QPen( 1 )->width( ) ); +} + +/* + * qreal widthF () const + */ +HB_FUNC( QT_QPEN_WIDTHF ) +{ + hb_retnd( hbqt_par_QPen( 1 )->widthF( ) ); +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qprintdialog.cpp b/harbour/contrib/hbqt/hbqt_qprintdialog.cpp index 14b3998d6f..eb054207b0 100644 --- a/harbour/contrib/hbqt/hbqt_qprintdialog.cpp +++ b/harbour/contrib/hbqt/hbqt_qprintdialog.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,19 +55,99 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -QPrintDialog::QPrintDialog ( QPrinter * printer, QWidget * parent = 0 ) -QPrintDialog::QPrintDialog ( QWidget * parent = 0 ) -*/ + * QPrintDialog ( QPrinter * printer, QWidget * parent = 0 ) + * QPrintDialog ( QWidget * parent = 0 ) + * ~QPrintDialog () + */ HB_FUNC( QT_QPRINTDIALOG ) { hb_retptr( ( QPrintDialog* ) new QPrintDialog ( hbqt_par_QWidget( 1 ) ) ); } +/* + * virtual void done ( int result ) + */ +HB_FUNC( QT_QPRINTDIALOG_DONE ) +{ + hbqt_par_QPrintDialog( 1 )->done( hb_parni( 2 ) ); +} + +/* + * void open ( QObject * receiver, const char * member ) + */ +HB_FUNC( QT_QPRINTDIALOG_OPEN ) +{ + hbqt_par_QPrintDialog( 1 )->open( hbqt_par_QObject( 2 ), hbqt_par_char( 3 ) ); +} + +/* + * PrintDialogOptions options () const + */ +HB_FUNC( QT_QPRINTDIALOG_OPTIONS ) +{ + hb_retni( hbqt_par_QPrintDialog( 1 )->options( ) ); +} + +/* + * QPrinter * printer () const + */ +HB_FUNC( QT_QPRINTDIALOG_PRINTER ) +{ + hb_retptr( ( QPrinter* ) hbqt_par_QPrintDialog( 1 )->printer( ) ); +} + +/* + * QPrinter * printer () + */ +HB_FUNC( QT_QPRINTDIALOG_PRINTER_1 ) +{ + hb_retptr( ( QPrinter* ) hbqt_par_QPrintDialog( 1 )->printer( ) ); +} + +/* + * void setOption ( PrintDialogOption option, bool on = true ) + */ +HB_FUNC( QT_QPRINTDIALOG_SETOPTION ) +{ + hbqt_par_QPrintDialog( 1 )->setOption( ( QPrintDialog::PrintDialogOption ) hb_parni( 2 ), hb_parl( 3 ) ); +} + +/* + * void setOptions ( PrintDialogOptions options ) + */ +HB_FUNC( QT_QPRINTDIALOG_SETOPTIONS ) +{ + hbqt_par_QPrintDialog( 1 )->setOptions( ( QPrintDialog::PrintDialogOptions ) hb_parni( 2 ) ); +} + +/* + * virtual void setVisible ( bool visible ) + */ +HB_FUNC( QT_QPRINTDIALOG_SETVISIBLE ) +{ + hbqt_par_QPrintDialog( 1 )->setVisible( hb_parl( 2 ) ); +} + +/* + * bool testOption ( PrintDialogOption option ) const + */ +HB_FUNC( QT_QPRINTDIALOG_TESTOPTION ) +{ + hb_retl( hbqt_par_QPrintDialog( 1 )->testOption( ( QPrintDialog::PrintDialogOption ) hb_parni( 2 ) ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qprintpreviewdialog.cpp b/harbour/contrib/hbqt/hbqt_qprintpreviewdialog.cpp index 99e7c61731..d68ab85e2a 100644 --- a/harbour/contrib/hbqt/hbqt_qprintpreviewdialog.cpp +++ b/harbour/contrib/hbqt/hbqt_qprintpreviewdialog.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,24 +55,48 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -QPrintPreviewDialog ( QPrinter * printer, QWidget * parent = 0, Qt::WindowFlags flags = 0 ) -QPrintPreviewDialog ( QWidget * parent = 0, Qt::WindowFlags flags = 0 ) -*/ + * QPrintPreviewDialog ( QPrinter * printer, QWidget * parent = 0, Qt::WindowFlags flags = 0 ) + * QPrintPreviewDialog ( QWidget * parent = 0, Qt::WindowFlags flags = 0 ) + * ~QPrintPreviewDialog () + */ HB_FUNC( QT_QPRINTPREVIEWDIALOG ) { - if( hb_param( 2, HB_IT_POINTER ) ) + if( hb_pcount() >= 2 && HB_ISPOINTER( 2 ) ) hb_retptr( ( QPrintPreviewDialog* ) new QPrintPreviewDialog( hbqt_par_QPrinter( 1 ), hbqt_par_QWidget( 2 ), ( Qt::WindowFlags ) hb_parni( 3 ) ) ); else - hb_retptr( ( QPrintPreviewDialog* ) new QPrintPreviewDialog( hbqt_par_QWidget( 2 ), - ( Qt::WindowFlags ) hb_parni( 3 ) ) ); + hb_retptr( ( QPrintPreviewDialog* ) new QPrintPreviewDialog( hbqt_par_QWidget( 1 ), + ( Qt::WindowFlags ) hb_parni( 2 ) ) ); } +/* + * void open ( QObject * receiver, const char * member ) + */ +HB_FUNC( QT_QPRINTPREVIEWDIALOG_OPEN ) +{ + hbqt_par_QPrintPreviewDialog( 1 )->open( hbqt_par_QObject( 2 ), hbqt_par_char( 3 ) ); +} + +/* + * QPrinter * printer () + */ +HB_FUNC( QT_QPRINTPREVIEWDIALOG_PRINTER ) +{ + hb_retptr( ( QPrinter* ) hbqt_par_QPrintPreviewDialog( 1 )->printer( ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qprogressbar.cpp b/harbour/contrib/hbqt/hbqt_qprogressbar.cpp index cecc491703..7d543e438b 100644 --- a/harbour/contrib/hbqt/hbqt_qprogressbar.cpp +++ b/harbour/contrib/hbqt/hbqt_qprogressbar.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,18 +55,145 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -QProgressBar ( QWidget * parent = 0 ) -*/ + * QProgressBar ( QWidget * parent = 0 ) + */ HB_FUNC( QT_QPROGRESSBAR ) { hb_retptr( ( QProgressBar* ) new QProgressBar( hbqt_par_QWidget( 1 ) ) ); } +/* + * Qt::Alignment alignment () const + */ +HB_FUNC( QT_QPROGRESSBAR_ALIGNMENT ) +{ + hb_retni( hbqt_par_QProgressBar( 1 )->alignment( ) ); +} + +/* + * QString format () const + */ +HB_FUNC( QT_QPROGRESSBAR_FORMAT ) +{ + hb_retc( hbqt_par_QProgressBar( 1 )->format( ).toLatin1().data() ); +} + +/* + * bool invertedAppearance () + */ +HB_FUNC( QT_QPROGRESSBAR_INVERTEDAPPEARANCE ) +{ + hb_retl( hbqt_par_QProgressBar( 1 )->invertedAppearance( ) ); +} + +/* + * bool isTextVisible () const + */ +HB_FUNC( QT_QPROGRESSBAR_ISTEXTVISIBLE ) +{ + hb_retl( hbqt_par_QProgressBar( 1 )->isTextVisible( ) ); +} + +/* + * int maximum () const + */ +HB_FUNC( QT_QPROGRESSBAR_MAXIMUM ) +{ + hb_retni( hbqt_par_QProgressBar( 1 )->maximum( ) ); +} + +/* + * int minimum () const + */ +HB_FUNC( QT_QPROGRESSBAR_MINIMUM ) +{ + hb_retni( hbqt_par_QProgressBar( 1 )->minimum( ) ); +} + +/* + * Qt::Orientation orientation () const + */ +HB_FUNC( QT_QPROGRESSBAR_ORIENTATION ) +{ + hb_retni( hbqt_par_QProgressBar( 1 )->orientation( ) ); +} + +/* + * void setAlignment ( Qt::Alignment alignment ) + */ +HB_FUNC( QT_QPROGRESSBAR_SETALIGNMENT ) +{ + hbqt_par_QProgressBar( 1 )->setAlignment( ( Qt::Alignment ) hb_parni( 2 ) ); +} + +/* + * void setFormat ( const QString & format ) + */ +HB_FUNC( QT_QPROGRESSBAR_SETFORMAT ) +{ + hbqt_par_QProgressBar( 1 )->setFormat( hbqt_par_QString( 2 ) ); +} + +/* + * void setInvertedAppearance ( bool invert ) + */ +HB_FUNC( QT_QPROGRESSBAR_SETINVERTEDAPPEARANCE ) +{ + hbqt_par_QProgressBar( 1 )->setInvertedAppearance( hb_parl( 2 ) ); +} + +/* + * void setTextDirection ( QProgressBar::Direction textDirection ) + */ +HB_FUNC( QT_QPROGRESSBAR_SETTEXTDIRECTION ) +{ + hbqt_par_QProgressBar( 1 )->setTextDirection( ( QProgressBar::Direction ) hb_parni( 2 ) ); +} + +/* + * void setTextVisible ( bool visible ) + */ +HB_FUNC( QT_QPROGRESSBAR_SETTEXTVISIBLE ) +{ + hbqt_par_QProgressBar( 1 )->setTextVisible( hb_parl( 2 ) ); +} + +/* + * virtual QString text () const + */ +HB_FUNC( QT_QPROGRESSBAR_TEXT ) +{ + hb_retc( hbqt_par_QProgressBar( 1 )->text( ).toLatin1().data() ); +} + +/* + * QProgressBar::Direction textDirection () + */ +HB_FUNC( QT_QPROGRESSBAR_TEXTDIRECTION ) +{ + hb_retni( hbqt_par_QProgressBar( 1 )->textDirection( ) ); +} + +/* + * int value () const + */ +HB_FUNC( QT_QPROGRESSBAR_VALUE ) +{ + hb_retni( hbqt_par_QProgressBar( 1 )->value( ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qprogressdialog.cpp b/harbour/contrib/hbqt/hbqt_qprogressdialog.cpp index f4f6412216..169f6b2306 100644 --- a/harbour/contrib/hbqt/hbqt_qprogressdialog.cpp +++ b/harbour/contrib/hbqt/hbqt_qprogressdialog.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,19 +55,219 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -QProgressDialog ( QWidget * parent = 0, Qt::WindowFlags f = 0 ) -QProgressDialog ( const QString & labelText, const QString & cancelButtonText, int minimum, int maximum, QWidget * parent = 0, Qt::WindowFlags f = 0 ) -*/ + * QProgressDialog ( QWidget * parent = 0, Qt::WindowFlags f = 0 ) + * QProgressDialog ( const QString & labelText, const QString & cancelButtonText, int minimum, int maximum, QWidget * parent = 0, Qt::WindowFlags f = 0 ) + * ~QProgressDialog () + */ HB_FUNC( QT_QPROGRESSDIALOG ) { - hb_retptr( ( QProgressDialog* ) new QProgressDialog( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ); + hb_retptr( new QProgressDialog( hbqt_par_QWidget( 1 ) ) ); } +/* + * bool autoClose () const + */ +HB_FUNC( QT_QPROGRESSDIALOG_AUTOCLOSE ) +{ + hb_retl( hbqt_par_QProgressDialog( 1 )->autoClose( ) ); +} + +/* + * bool autoReset () const + */ +HB_FUNC( QT_QPROGRESSDIALOG_AUTORESET ) +{ + hb_retl( hbqt_par_QProgressDialog( 1 )->autoReset( ) ); +} + +/* + * QString labelText () const + */ +HB_FUNC( QT_QPROGRESSDIALOG_LABELTEXT ) +{ + hb_retc( hbqt_par_QProgressDialog( 1 )->labelText( ).toLatin1().data() ); +} + +/* + * int maximum () const + */ +HB_FUNC( QT_QPROGRESSDIALOG_MAXIMUM ) +{ + hb_retni( hbqt_par_QProgressDialog( 1 )->maximum( ) ); +} + +/* + * int minimum () const + */ +HB_FUNC( QT_QPROGRESSDIALOG_MINIMUM ) +{ + hb_retni( hbqt_par_QProgressDialog( 1 )->minimum( ) ); +} + +/* + * int minimumDuration () const + */ +HB_FUNC( QT_QPROGRESSDIALOG_MINIMUMDURATION ) +{ + hb_retni( hbqt_par_QProgressDialog( 1 )->minimumDuration( ) ); +} + +/* + * void open ( QObject * receiver, const char * member ) + */ +HB_FUNC( QT_QPROGRESSDIALOG_OPEN ) +{ + hbqt_par_QProgressDialog( 1 )->open( hbqt_par_QObject( 2 ), hbqt_par_char( 3 ) ); +} + +/* + * void setAutoClose ( bool close ) + */ +HB_FUNC( QT_QPROGRESSDIALOG_SETAUTOCLOSE ) +{ + hbqt_par_QProgressDialog( 1 )->setAutoClose( hb_parl( 2 ) ); +} + +/* + * void setAutoReset ( bool reset ) + */ +HB_FUNC( QT_QPROGRESSDIALOG_SETAUTORESET ) +{ + hbqt_par_QProgressDialog( 1 )->setAutoReset( hb_parl( 2 ) ); +} + +/* + * void setBar ( QProgressBar * bar ) + */ +HB_FUNC( QT_QPROGRESSDIALOG_SETBAR ) +{ + hbqt_par_QProgressDialog( 1 )->setBar( hbqt_par_QProgressBar( 2 ) ); +} + +/* + * void setCancelButton ( QPushButton * cancelButton ) + */ +HB_FUNC( QT_QPROGRESSDIALOG_SETCANCELBUTTON ) +{ + hbqt_par_QProgressDialog( 1 )->setCancelButton( hbqt_par_QPushButton( 2 ) ); +} + +/* + * void setLabel ( QLabel * label ) + */ +HB_FUNC( QT_QPROGRESSDIALOG_SETLABEL ) +{ + hbqt_par_QProgressDialog( 1 )->setLabel( hbqt_par_QLabel( 2 ) ); +} + +/* + * virtual QSize sizeHint () const + */ +HB_FUNC( QT_QPROGRESSDIALOG_SIZEHINT ) +{ + hbqt_ret_QSize( hbqt_par_QProgressDialog( 1 )->sizeHint( ) ); +} + +/* + * int value () const + */ +HB_FUNC( QT_QPROGRESSDIALOG_VALUE ) +{ + hb_retni( hbqt_par_QProgressDialog( 1 )->value( ) ); +} + +/* + * bool wasCanceled () const + */ +HB_FUNC( QT_QPROGRESSDIALOG_WASCANCELED ) +{ + hb_retl( hbqt_par_QProgressDialog( 1 )->wasCanceled( ) ); +} + +/* + * void cancel () + */ +HB_FUNC( QT_QPROGRESSDIALOG_CANCEL ) +{ + hbqt_par_QProgressDialog( 1 )->cancel( ); +} + +/* + * void reset () + */ +HB_FUNC( QT_QPROGRESSDIALOG_RESET ) +{ + hbqt_par_QProgressDialog( 1 )->reset( ); +} + +/* + * void setCancelButtonText ( const QString & cancelButtonText ) + */ +HB_FUNC( QT_QPROGRESSDIALOG_SETCANCELBUTTONTEXT ) +{ + hbqt_par_QProgressDialog( 1 )->setCancelButtonText( hbqt_par_QString( 2 ) ); +} + +/* + * void setLabelText ( const QString & text ) + */ +HB_FUNC( QT_QPROGRESSDIALOG_SETLABELTEXT ) +{ + hbqt_par_QProgressDialog( 1 )->setLabelText( hbqt_par_QString( 2 ) ); +} + +/* + * void setMaximum ( int maximum ) + */ +HB_FUNC( QT_QPROGRESSDIALOG_SETMAXIMUM ) +{ + hbqt_par_QProgressDialog( 1 )->setMaximum( hb_parni( 2 ) ); +} + +/* + * void setMinimum ( int minimum ) + */ +HB_FUNC( QT_QPROGRESSDIALOG_SETMINIMUM ) +{ + hbqt_par_QProgressDialog( 1 )->setMinimum( hb_parni( 2 ) ); +} + +/* + * void setMinimumDuration ( int ms ) + */ +HB_FUNC( QT_QPROGRESSDIALOG_SETMINIMUMDURATION ) +{ + hbqt_par_QProgressDialog( 1 )->setMinimumDuration( hb_parni( 2 ) ); +} + +/* + * void setRange ( int minimum, int maximum ) + */ +HB_FUNC( QT_QPROGRESSDIALOG_SETRANGE ) +{ + hbqt_par_QProgressDialog( 1 )->setRange( hb_parni( 2 ), hb_parni( 3 ) ); +} + +/* + * void setValue ( int progress ) + */ +HB_FUNC( QT_QPROGRESSDIALOG_SETVALUE ) +{ + hbqt_par_QProgressDialog( 1 )->setValue( hb_parni( 2 ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qpushbutton.cpp b/harbour/contrib/hbqt/hbqt_qpushbutton.cpp index 5fa08c3ef0..30a99e4299 100644 --- a/harbour/contrib/hbqt/hbqt_qpushbutton.cpp +++ b/harbour/contrib/hbqt/hbqt_qpushbutton.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,13 +55,22 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ -HB_FUNC( QT_PUSHBUTTON ) +/* + * QPushButton ( QWidget * parent = 0 ) + * QPushButton ( const QString & text, QWidget * parent = 0 ) + * QPushButton ( const QIcon & icon, const QString & text, QWidget * parent = 0 ) + * ~QPushButton () + */ +HB_FUNC( QT_QPUSHBUTTON ) { if( hb_pcount() >= 2 ) hb_retptr( ( QPushButton* ) new QPushButton( QIcon( hbqt_par_QString( 2 ) ), hbqt_par_QString( 2 ), hbqt_par_QWidget( 3 ) ) ); @@ -72,96 +81,71 @@ HB_FUNC( QT_PUSHBUTTON ) } /* -QPushButton ( QWidget * parent = 0 ) [1] -QPushButton ( const QString & text, QWidget * parent = 0 ) [2] -QPushButton ( const QIcon & icon, const QString & text, QWidget * parent = 0 ) [3] -*/ -HB_FUNC( QT_QPUSHBUTTON_1 ) -{ - hb_retptr( ( QPushButton* ) new QPushButton( hbqt_par_QWidget( 1 ) ) ); -} - -HB_FUNC( QT_QPUSHBUTTON_2 ) -{ - hb_retptr( ( QPushButton* ) new QPushButton( hbqt_par_QString( 1 ), hbqt_par_QWidget( 2 ) ) ); -} - -HB_FUNC( QT_QPUSHBUTTON_3 ) -{ - hb_retptr( ( QPushButton* ) new QPushButton( QIcon( hbqt_par_QString( 2 ) ), hbqt_par_QString( 2 ), hbqt_par_QWidget( 3 ) ) ); -} - -/* -bool autoDefault () const -*/ + * bool autoDefault () const + */ HB_FUNC( QT_QPUSHBUTTON_AUTODEFAULT ) { - hb_retl( hbqt_par_QPushButton( 1 )->autoDefault() ); + hb_retl( hbqt_par_QPushButton( 1 )->autoDefault( ) ); } /* -bool isDefault () const -*/ + * bool isDefault () const + */ HB_FUNC( QT_QPUSHBUTTON_ISDEFAULT ) { - hb_retl( hbqt_par_QPushButton( 1 )->isDefault() ); + hb_retl( hbqt_par_QPushButton( 1 )->isDefault( ) ); } /* -bool isFlat () const -*/ + * bool isFlat () const + */ HB_FUNC( QT_QPUSHBUTTON_ISFLAT ) { - hb_retl( hbqt_par_QPushButton( 1 )->isFlat() ); + hb_retl( hbqt_par_QPushButton( 1 )->isFlat( ) ); } /* -QMenu * menu () const -*/ + * QMenu * menu () const + */ HB_FUNC( QT_QPUSHBUTTON_MENU ) { - hb_retptr( ( QMenu* ) hbqt_par_QPushButton( 1 )->menu() ); + hb_retptr( ( QMenu* ) hbqt_par_QPushButton( 1 )->menu( ) ); } /* -void setAutoDefault ( bool ) -*/ + * void setAutoDefault ( bool ) + */ HB_FUNC( QT_QPUSHBUTTON_SETAUTODEFAULT ) { hbqt_par_QPushButton( 1 )->setAutoDefault( hb_parl( 2 ) ); } /* -void setDefault ( bool ) -*/ + * void setDefault ( bool ) + */ HB_FUNC( QT_QPUSHBUTTON_SETDEFAULT ) { hbqt_par_QPushButton( 1 )->setDefault( hb_parl( 2 ) ); } /* -void setFlat ( bool ) -*/ + * void setFlat ( bool ) + */ HB_FUNC( QT_QPUSHBUTTON_SETFLAT ) { hbqt_par_QPushButton( 1 )->setFlat( hb_parl( 2 ) ); } /* -void setMenu ( QMenu * menu ) -*/ + * void setMenu ( QMenu * menu ) + */ HB_FUNC( QT_QPUSHBUTTON_SETMENU ) { hbqt_par_QPushButton( 1 )->setMenu( hbqt_par_QMenu( 2 ) ); } -/* -void showMenu () -*/ -HB_FUNC( QT_QPUSHBUTTON_SHOWMENU ) -{ - hbqt_par_QPushButton( 1 )->showMenu(); -} /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qradiobutton.cpp b/harbour/contrib/hbqt/hbqt_qradiobutton.cpp index a659dc67db..a183ff6749 100644 --- a/harbour/contrib/hbqt/hbqt_qradiobutton.cpp +++ b/harbour/contrib/hbqt/hbqt_qradiobutton.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,12 +55,19 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ +/* + * QRadioButton ( QWidget * parent = 0 ) + * QRadioButton ( const QString & text, QWidget * parent = 0 ) + */ HB_FUNC( QT_QRADIOBUTTON ) { if( ISCHAR( 1 ) ) @@ -69,18 +76,8 @@ HB_FUNC( QT_QRADIOBUTTON ) hb_retptr( ( QRadioButton* ) new QRadioButton( hbqt_par_QWidget( 1 ) ) ); } -/* -QRadioButton ( QWidget * parent = 0 ) [1] -QRadioButton ( const QString & text, QWidget * parent = 0 ) [2] -*/ -HB_FUNC( QT_QRADIOBUTTON_1 ) -{ - hb_retptr( ( QRadioButton* ) new QRadioButton( hbqt_par_QWidget( 1 ) ) ); -} -HB_FUNC( QT_QRADIOBUTTON_2 ) -{ - hb_retptr( ( QRadioButton* ) new QRadioButton( hbqt_par_QString( 1 ), hbqt_par_QWidget( 2 ) ) ); -} /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qscrollarea.cpp b/harbour/contrib/hbqt/hbqt_qscrollarea.cpp index f3d0ef5afb..221c2273f2 100644 --- a/harbour/contrib/hbqt/hbqt_qscrollarea.cpp +++ b/harbour/contrib/hbqt/hbqt_qscrollarea.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,18 +55,98 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -QScrollArea ( QWidget * parent = 0 ) -*/ + * QScrollArea ( QWidget * parent = 0 ) + * ~QScrollArea () + */ HB_FUNC( QT_QSCROLLAREA ) { hb_retptr( ( QScrollArea* ) new QScrollArea( hbqt_par_QWidget( 1 ) ) ); } +/* + * Qt::Alignment alignment () const + */ +HB_FUNC( QT_QSCROLLAREA_ALIGNMENT ) +{ + hb_retni( hbqt_par_QScrollArea( 1 )->alignment( ) ); +} + +/* + * void ensureVisible ( int x, int y, int xmargin = 50, int ymargin = 50 ) + */ +HB_FUNC( QT_QSCROLLAREA_ENSUREVISIBLE ) +{ + hbqt_par_QScrollArea( 1 )->ensureVisible( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ) ); +} + +/* + * void ensureWidgetVisible ( QWidget * childWidget, int xmargin = 50, int ymargin = 50 ) + */ +HB_FUNC( QT_QSCROLLAREA_ENSUREWIDGETVISIBLE ) +{ + hbqt_par_QScrollArea( 1 )->ensureWidgetVisible( hbqt_par_QWidget( 2 ), hb_parni( 3 ), hb_parni( 4 ) ); +} + +/* + * void setAlignment ( Qt::Alignment ) + */ +HB_FUNC( QT_QSCROLLAREA_SETALIGNMENT ) +{ + hbqt_par_QScrollArea( 1 )->setAlignment( ( Qt::Alignment ) hb_parni( 2 ) ); +} + +/* + * void setWidget ( QWidget * widget ) + */ +HB_FUNC( QT_QSCROLLAREA_SETWIDGET ) +{ + hbqt_par_QScrollArea( 1 )->setWidget( hbqt_par_QWidget( 2 ) ); +} + +/* + * void setWidgetResizable ( bool resizable ) + */ +HB_FUNC( QT_QSCROLLAREA_SETWIDGETRESIZABLE ) +{ + hbqt_par_QScrollArea( 1 )->setWidgetResizable( hb_parl( 2 ) ); +} + +/* + * QWidget * takeWidget () + */ +HB_FUNC( QT_QSCROLLAREA_TAKEWIDGET ) +{ + hb_retptr( ( QWidget* ) hbqt_par_QScrollArea( 1 )->takeWidget( ) ); +} + +/* + * QWidget * widget () const + */ +HB_FUNC( QT_QSCROLLAREA_WIDGET ) +{ + hb_retptr( ( QWidget* ) hbqt_par_QScrollArea( 1 )->widget( ) ); +} + +/* + * bool widgetResizable () const + */ +HB_FUNC( QT_QSCROLLAREA_WIDGETRESIZABLE ) +{ + hb_retl( hbqt_par_QScrollArea( 1 )->widgetResizable( ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qscrollbar.cpp b/harbour/contrib/hbqt/hbqt_qscrollbar.cpp index 95215d82e5..be8016e3d5 100644 --- a/harbour/contrib/hbqt/hbqt_qscrollbar.cpp +++ b/harbour/contrib/hbqt/hbqt_qscrollbar.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,18 +55,27 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -QScrollBar ( QWidget * parent = 0 ) -*/ + * QScrollBar ( QWidget * parent = 0 ) + * QScrollBar ( Qt::Orientation orientation, QWidget * parent = 0 ) + * ~QScrollBar () + */ HB_FUNC( QT_QSCROLLBAR ) { hb_retptr( ( QScrollBar* ) new QScrollBar( hbqt_par_QWidget( 1 ) ) ); } + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qsizegrip.cpp b/harbour/contrib/hbqt/hbqt_qsizegrip.cpp index da91970fed..9446d769a0 100644 --- a/harbour/contrib/hbqt/hbqt_qsizegrip.cpp +++ b/harbour/contrib/hbqt/hbqt_qsizegrip.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,18 +55,26 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -QSizeGrip ( QWidget * parent ) -*/ + * QSizeGrip ( QWidget * parent ) + * ~QSizeGrip () + */ HB_FUNC( QT_QSIZEGRIP ) { hb_retptr( ( QSizeGrip* ) new QSizeGrip( hbqt_par_QWidget( 1 ) ) ); } + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qslider.cpp b/harbour/contrib/hbqt/hbqt_qslider.cpp index 06170eaf83..dd01a995e6 100644 --- a/harbour/contrib/hbqt/hbqt_qslider.cpp +++ b/harbour/contrib/hbqt/hbqt_qslider.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,33 +55,62 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ +/* + * QSlider ( QWidget * parent = 0 ) + * QSlider ( Qt::Orientation orientation, QWidget * parent = 0 ) + * ~QSlider () + */ HB_FUNC( QT_QSLIDER ) { - if( ISNUM( 1 ) ) + if( hb_pcount() >= 1 && HB_ISNUM( 1 ) ) hb_retptr( ( QSlider* ) new QSlider( ( Qt::Orientation ) hb_parni( 1 ), hbqt_par_QWidget( 2 ) ) ); else hb_retptr( ( QSlider* ) new QSlider( hbqt_par_QWidget( 1 ) ) ); } /* -QSlider ( QWidget * parent = 0 ) -QSlider ( Qt::Orientation orientation, QWidget * parent = 0 ) -*/ -HB_FUNC( QT_QSLIDER_1 ) + * void setTickInterval ( int ti ) + */ +HB_FUNC( QT_QSLIDER_SETTICKINTERVAL ) { - hb_retptr( ( QSlider* ) new QSlider( hbqt_par_QWidget( 1 ) ) ); + hbqt_par_QSlider( 1 )->setTickInterval( hb_parni( 2 ) ); } -HB_FUNC( QT_QSLIDER_2 ) +/* + * void setTickPosition ( TickPosition position ) + */ +HB_FUNC( QT_QSLIDER_SETTICKPOSITION ) { - hb_retptr( ( QSlider* ) new QSlider( ( Qt::Orientation ) hb_parni( 1 ), hbqt_par_QWidget( 2 ) ) ); + hbqt_par_QSlider( 1 )->setTickPosition( ( QSlider::TickPosition ) hb_parni( 2 ) ); } +/* + * int tickInterval () const + */ +HB_FUNC( QT_QSLIDER_TICKINTERVAL ) +{ + hb_retni( hbqt_par_QSlider( 1 )->tickInterval( ) ); +} + +/* + * TickPosition tickPosition () const + */ +HB_FUNC( QT_QSLIDER_TICKPOSITION ) +{ + hb_retni( hbqt_par_QSlider( 1 )->tickPosition( ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qspinbox.cpp b/harbour/contrib/hbqt/hbqt_qspinbox.cpp index 243f067064..85a93a9687 100644 --- a/harbour/contrib/hbqt/hbqt_qspinbox.cpp +++ b/harbour/contrib/hbqt/hbqt_qspinbox.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,18 +55,129 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -QSpinBox ( QWidget * parent = 0 ) -*/ + * QSpinBox ( QWidget * parent = 0 ) + */ HB_FUNC( QT_QSPINBOX ) { hb_retptr( ( QSpinBox* ) new QSpinBox( hbqt_par_QWidget( 1 ) ) ); } +/* + * QString cleanText () const + */ +HB_FUNC( QT_QSPINBOX_CLEANTEXT ) +{ + hb_retc( hbqt_par_QSpinBox( 1 )->cleanText( ).toLatin1().data() ); +} + +/* + * int maximum () const + */ +HB_FUNC( QT_QSPINBOX_MAXIMUM ) +{ + hb_retni( hbqt_par_QSpinBox( 1 )->maximum( ) ); +} + +/* + * int minimum () const + */ +HB_FUNC( QT_QSPINBOX_MINIMUM ) +{ + hb_retni( hbqt_par_QSpinBox( 1 )->minimum( ) ); +} + +/* + * QString prefix () const + */ +HB_FUNC( QT_QSPINBOX_PREFIX ) +{ + hb_retc( hbqt_par_QSpinBox( 1 )->prefix( ).toLatin1().data() ); +} + +/* + * void setMaximum ( int max ) + */ +HB_FUNC( QT_QSPINBOX_SETMAXIMUM ) +{ + hbqt_par_QSpinBox( 1 )->setMaximum( hb_parni( 2 ) ); +} + +/* + * void setMinimum ( int min ) + */ +HB_FUNC( QT_QSPINBOX_SETMINIMUM ) +{ + hbqt_par_QSpinBox( 1 )->setMinimum( hb_parni( 2 ) ); +} + +/* + * void setPrefix ( const QString & prefix ) + */ +HB_FUNC( QT_QSPINBOX_SETPREFIX ) +{ + hbqt_par_QSpinBox( 1 )->setPrefix( hbqt_par_QString( 2 ) ); +} + +/* + * void setRange ( int minimum, int maximum ) + */ +HB_FUNC( QT_QSPINBOX_SETRANGE ) +{ + hbqt_par_QSpinBox( 1 )->setRange( hb_parni( 2 ), hb_parni( 3 ) ); +} + +/* + * void setSingleStep ( int val ) + */ +HB_FUNC( QT_QSPINBOX_SETSINGLESTEP ) +{ + hbqt_par_QSpinBox( 1 )->setSingleStep( hb_parni( 2 ) ); +} + +/* + * void setSuffix ( const QString & suffix ) + */ +HB_FUNC( QT_QSPINBOX_SETSUFFIX ) +{ + hbqt_par_QSpinBox( 1 )->setSuffix( hbqt_par_QString( 2 ) ); +} + +/* + * int singleStep () const + */ +HB_FUNC( QT_QSPINBOX_SINGLESTEP ) +{ + hb_retni( hbqt_par_QSpinBox( 1 )->singleStep( ) ); +} + +/* + * QString suffix () const + */ +HB_FUNC( QT_QSPINBOX_SUFFIX ) +{ + hb_retc( hbqt_par_QSpinBox( 1 )->suffix( ).toLatin1().data() ); +} + +/* + * int value () const + */ +HB_FUNC( QT_QSPINBOX_VALUE ) +{ + hb_retni( hbqt_par_QSpinBox( 1 )->value( ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qsplitter.cpp b/harbour/contrib/hbqt/hbqt_qsplitter.cpp index 66cfb0923a..3cb06d1587 100644 --- a/harbour/contrib/hbqt/hbqt_qsplitter.cpp +++ b/harbour/contrib/hbqt/hbqt_qsplitter.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,32 +55,187 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 18/23 [ 78.26% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * void getRange ( int index, int * min, int * max ) const + * bool restoreState ( const QByteArray & state ) + * QByteArray saveState () const + * void setSizes ( const QList & list ) + * QList sizes () const + */ + #include -/*----------------------------------------------------------------------*/ +/* + * QSplitter ( QWidget * parent = 0 ) + * QSplitter ( Qt::Orientation orientation, QWidget * parent = 0 ) + * ~QSplitter () + */ HB_FUNC( QT_QSPLITTER ) { - if( hb_param( 1, HB_IT_NUMERIC ) ) + if( hb_pcount() >= 1 && HB_ISNUM( 1 ) ) hb_retptr( ( QSplitter* ) new QSplitter( ( Qt::Orientation ) hb_parni( 1 ), hbqt_par_QWidget( 2 ) ) ); else hb_retptr( ( QSplitter* ) new QSplitter( hbqt_par_QWidget( 1 ) ) ); } /* -QSplitter ( QWidget * parent = 0 ) [1] -QSplitter ( Qt::Orientation orientation, QWidget * parent = 0 ) [2] -*/ -HB_FUNC( QT_QSPLITTER_1 ) + * void addWidget ( QWidget * widget ) + */ +HB_FUNC( QT_QSPLITTER_ADDWIDGET ) { - hb_retptr( ( QSplitter* ) new QSplitter( hbqt_par_QWidget( 1 ) ) ); -} -HB_FUNC( QT_QSPLITTER_2 ) -{ - hb_retptr( ( QSplitter* ) new QSplitter( ( Qt::Orientation ) hb_parni( 1 ), hbqt_par_QWidget( 2 ) ) ); + hbqt_par_QSplitter( 1 )->addWidget( hbqt_par_QWidget( 2 ) ); } +/* + * bool childrenCollapsible () const + */ +HB_FUNC( QT_QSPLITTER_CHILDRENCOLLAPSIBLE ) +{ + hb_retl( hbqt_par_QSplitter( 1 )->childrenCollapsible( ) ); +} + +/* + * int count () const + */ +HB_FUNC( QT_QSPLITTER_COUNT ) +{ + hb_retni( hbqt_par_QSplitter( 1 )->count( ) ); +} + +/* + * QSplitterHandle * handle ( int index ) const + */ +HB_FUNC( QT_QSPLITTER_HANDLE ) +{ + hb_retptr( ( QSplitterHandle* ) hbqt_par_QSplitter( 1 )->handle( hb_parni( 2 ) ) ); +} + +/* + * int handleWidth () const + */ +HB_FUNC( QT_QSPLITTER_HANDLEWIDTH ) +{ + hb_retni( hbqt_par_QSplitter( 1 )->handleWidth( ) ); +} + +/* + * int indexOf ( QWidget * widget ) const + */ +HB_FUNC( QT_QSPLITTER_INDEXOF ) +{ + hb_retni( hbqt_par_QSplitter( 1 )->indexOf( hbqt_par_QWidget( 2 ) ) ); +} + +/* + * void insertWidget ( int index, QWidget * widget ) + */ +HB_FUNC( QT_QSPLITTER_INSERTWIDGET ) +{ + hbqt_par_QSplitter( 1 )->insertWidget( hb_parni( 2 ), hbqt_par_QWidget( 3 ) ); +} + +/* + * bool isCollapsible ( int index ) const + */ +HB_FUNC( QT_QSPLITTER_ISCOLLAPSIBLE ) +{ + hb_retl( hbqt_par_QSplitter( 1 )->isCollapsible( hb_parni( 2 ) ) ); +} + +/* + * bool opaqueResize () const + */ +HB_FUNC( QT_QSPLITTER_OPAQUERESIZE ) +{ + hb_retl( hbqt_par_QSplitter( 1 )->opaqueResize( ) ); +} + +/* + * Qt::Orientation orientation () const + */ +HB_FUNC( QT_QSPLITTER_ORIENTATION ) +{ + hb_retni( hbqt_par_QSplitter( 1 )->orientation( ) ); +} + +/* + * void refresh () + */ +HB_FUNC( QT_QSPLITTER_REFRESH ) +{ + hbqt_par_QSplitter( 1 )->refresh( ); +} + +/* + * void setChildrenCollapsible ( bool ) + */ +HB_FUNC( QT_QSPLITTER_SETCHILDRENCOLLAPSIBLE ) +{ + hbqt_par_QSplitter( 1 )->setChildrenCollapsible( hb_parl( 2 ) ); +} + +/* + * void setCollapsible ( int index, bool collapse ) + */ +HB_FUNC( QT_QSPLITTER_SETCOLLAPSIBLE ) +{ + hbqt_par_QSplitter( 1 )->setCollapsible( hb_parni( 2 ), hb_parl( 3 ) ); +} + +/* + * void setHandleWidth ( int ) + */ +HB_FUNC( QT_QSPLITTER_SETHANDLEWIDTH ) +{ + hbqt_par_QSplitter( 1 )->setHandleWidth( hb_parni( 2 ) ); +} + +/* + * void setOpaqueResize ( bool opaque = true ) + */ +HB_FUNC( QT_QSPLITTER_SETOPAQUERESIZE ) +{ + hbqt_par_QSplitter( 1 )->setOpaqueResize( hb_parl( 2 ) ); +} + +/* + * void setOrientation ( Qt::Orientation ) + */ +HB_FUNC( QT_QSPLITTER_SETORIENTATION ) +{ + hbqt_par_QSplitter( 1 )->setOrientation( ( Qt::Orientation ) hb_parni( 2 ) ); +} + +/* + * void setStretchFactor ( int index, int stretch ) + */ +HB_FUNC( QT_QSPLITTER_SETSTRETCHFACTOR ) +{ + hbqt_par_QSplitter( 1 )->setStretchFactor( hb_parni( 2 ), hb_parni( 3 ) ); +} + +/* + * QWidget * widget ( int index ) const + */ +HB_FUNC( QT_QSPLITTER_WIDGET ) +{ + hb_retptr( ( QWidget* ) hbqt_par_QSplitter( 1 )->widget( hb_parni( 2 ) ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qtabbar.cpp b/harbour/contrib/hbqt/hbqt_qtabbar.cpp index e14ba63e04..6b5ca8f163 100644 --- a/harbour/contrib/hbqt/hbqt_qtabbar.cpp +++ b/harbour/contrib/hbqt/hbqt_qtabbar.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,18 +55,349 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 38/43 [ 88.37% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * void setTabData ( int index, const QVariant & data ) + * void setTabTextColor ( int index, const QColor & color ) + * QVariant tabData ( int index ) const + * QIcon tabIcon ( int index ) const + * QColor tabTextColor ( int index ) const + * + * *** Commented out protos which construct fine but do not compile *** + * + * // int addTab ( const QIcon & icon, const QString & text ) + * // int insertTab ( int index, const QIcon & icon, const QString & text ) + * // void setTabIcon ( int index, const QIcon & icon ) + */ + #include -/*----------------------------------------------------------------------*/ + /* -QTabBar ( QWidget * parent = 0 ) -*/ + * QTabBar ( QWidget * parent = 0 ) + * ~QTabBar () + */ HB_FUNC( QT_QTABBAR ) { hb_retptr( ( QTabBar* ) new QTabBar( hbqt_par_QWidget( 1 ) ) ); } +/* + * int addTab ( const QString & text ) + */ +HB_FUNC( QT_QTABBAR_ADDTAB ) +{ + hb_retni( hbqt_par_QTabBar( 1 )->addTab( hbqt_par_QString( 2 ) ) ); +} + +/* + * int count () const + */ +HB_FUNC( QT_QTABBAR_COUNT ) +{ + hb_retni( hbqt_par_QTabBar( 1 )->count( ) ); +} + +/* + * int currentIndex () const + */ +HB_FUNC( QT_QTABBAR_CURRENTINDEX ) +{ + hb_retni( hbqt_par_QTabBar( 1 )->currentIndex( ) ); +} + +/* + * bool documentMode () const + */ +HB_FUNC( QT_QTABBAR_DOCUMENTMODE ) +{ + hb_retl( hbqt_par_QTabBar( 1 )->documentMode( ) ); +} + +/* + * bool drawBase () const + */ +HB_FUNC( QT_QTABBAR_DRAWBASE ) +{ + hb_retl( hbqt_par_QTabBar( 1 )->drawBase( ) ); +} + +/* + * Qt::TextElideMode elideMode () const + */ +HB_FUNC( QT_QTABBAR_ELIDEMODE ) +{ + hb_retni( hbqt_par_QTabBar( 1 )->elideMode( ) ); +} + +/* + * bool expanding () const + */ +HB_FUNC( QT_QTABBAR_EXPANDING ) +{ + hb_retl( hbqt_par_QTabBar( 1 )->expanding( ) ); +} + +/* + * QSize iconSize () const + */ +HB_FUNC( QT_QTABBAR_ICONSIZE ) +{ + hbqt_ret_QSize( hbqt_par_QTabBar( 1 )->iconSize( ) ); +} + +/* + * int insertTab ( int index, const QString & text ) + */ +HB_FUNC( QT_QTABBAR_INSERTTAB ) +{ + hb_retni( hbqt_par_QTabBar( 1 )->insertTab( hb_parni( 2 ), hbqt_par_QString( 3 ) ) ); +} + +/* + * bool isMovable () const + */ +HB_FUNC( QT_QTABBAR_ISMOVABLE ) +{ + hb_retl( hbqt_par_QTabBar( 1 )->isMovable( ) ); +} + +/* + * bool isTabEnabled ( int index ) const + */ +HB_FUNC( QT_QTABBAR_ISTABENABLED ) +{ + hb_retl( hbqt_par_QTabBar( 1 )->isTabEnabled( hb_parni( 2 ) ) ); +} + +/* + * void moveTab ( int from, int to ) + */ +HB_FUNC( QT_QTABBAR_MOVETAB ) +{ + hbqt_par_QTabBar( 1 )->moveTab( hb_parni( 2 ), hb_parni( 3 ) ); +} + +/* + * void removeTab ( int index ) + */ +HB_FUNC( QT_QTABBAR_REMOVETAB ) +{ + hbqt_par_QTabBar( 1 )->removeTab( hb_parni( 2 ) ); +} + +/* + * SelectionBehavior selectionBehaviorOnRemove () const + */ +HB_FUNC( QT_QTABBAR_SELECTIONBEHAVIORONREMOVE ) +{ + hb_retni( hbqt_par_QTabBar( 1 )->selectionBehaviorOnRemove( ) ); +} + +/* + * void setDocumentMode ( bool set ) + */ +HB_FUNC( QT_QTABBAR_SETDOCUMENTMODE ) +{ + hbqt_par_QTabBar( 1 )->setDocumentMode( hb_parl( 2 ) ); +} + +/* + * void setDrawBase ( bool drawTheBase ) + */ +HB_FUNC( QT_QTABBAR_SETDRAWBASE ) +{ + hbqt_par_QTabBar( 1 )->setDrawBase( hb_parl( 2 ) ); +} + +/* + * void setElideMode ( Qt::TextElideMode ) + */ +HB_FUNC( QT_QTABBAR_SETELIDEMODE ) +{ + hbqt_par_QTabBar( 1 )->setElideMode( ( Qt::TextElideMode ) hb_parni( 2 ) ); +} + +/* + * void setExpanding ( bool enabled ) + */ +HB_FUNC( QT_QTABBAR_SETEXPANDING ) +{ + hbqt_par_QTabBar( 1 )->setExpanding( hb_parl( 2 ) ); +} + +/* + * void setIconSize ( const QSize & size ) + */ +HB_FUNC( QT_QTABBAR_SETICONSIZE ) +{ + hbqt_par_QTabBar( 1 )->setIconSize( hbqt_const_QSize( 2 ) ); +} + +/* + * void setMovable ( bool movable ) + */ +HB_FUNC( QT_QTABBAR_SETMOVABLE ) +{ + hbqt_par_QTabBar( 1 )->setMovable( hb_parl( 2 ) ); +} + +/* + * void setSelectionBehaviorOnRemove ( SelectionBehavior behavior ) + */ +HB_FUNC( QT_QTABBAR_SETSELECTIONBEHAVIORONREMOVE ) +{ + hbqt_par_QTabBar( 1 )->setSelectionBehaviorOnRemove( ( QTabBar::SelectionBehavior ) hb_parni( 2 ) ); +} + +/* + * void setShape ( Shape shape ) + */ +HB_FUNC( QT_QTABBAR_SETSHAPE ) +{ + hbqt_par_QTabBar( 1 )->setShape( ( QTabBar::Shape ) hb_parni( 2 ) ); +} + +/* + * void setTabButton ( int index, ButtonPosition position, QWidget * widget ) + */ +HB_FUNC( QT_QTABBAR_SETTABBUTTON ) +{ + hbqt_par_QTabBar( 1 )->setTabButton( hb_parni( 2 ), ( QTabBar::ButtonPosition ) hb_parni( 3 ), hbqt_par_QWidget( 4 ) ); +} + +/* + * void setTabEnabled ( int index, bool enabled ) + */ +HB_FUNC( QT_QTABBAR_SETTABENABLED ) +{ + hbqt_par_QTabBar( 1 )->setTabEnabled( hb_parni( 2 ), hb_parl( 3 ) ); +} + +/* + * void setTabText ( int index, const QString & text ) + */ +HB_FUNC( QT_QTABBAR_SETTABTEXT ) +{ + hbqt_par_QTabBar( 1 )->setTabText( hb_parni( 2 ), hbqt_par_QString( 3 ) ); +} + +/* + * void setTabToolTip ( int index, const QString & tip ) + */ +HB_FUNC( QT_QTABBAR_SETTABTOOLTIP ) +{ + hbqt_par_QTabBar( 1 )->setTabToolTip( hb_parni( 2 ), hbqt_par_QString( 3 ) ); +} + +/* + * void setTabWhatsThis ( int index, const QString & text ) + */ +HB_FUNC( QT_QTABBAR_SETTABWHATSTHIS ) +{ + hbqt_par_QTabBar( 1 )->setTabWhatsThis( hb_parni( 2 ), hbqt_par_QString( 3 ) ); +} + +/* + * void setTabsClosable ( bool closable ) + */ +HB_FUNC( QT_QTABBAR_SETTABSCLOSABLE ) +{ + hbqt_par_QTabBar( 1 )->setTabsClosable( hb_parl( 2 ) ); +} + +/* + * void setUsesScrollButtons ( bool useButtons ) + */ +HB_FUNC( QT_QTABBAR_SETUSESSCROLLBUTTONS ) +{ + hbqt_par_QTabBar( 1 )->setUsesScrollButtons( hb_parl( 2 ) ); +} + +/* + * Shape shape () const + */ +HB_FUNC( QT_QTABBAR_SHAPE ) +{ + hb_retni( hbqt_par_QTabBar( 1 )->shape( ) ); +} + +/* + * int tabAt ( const QPoint & position ) const + */ +HB_FUNC( QT_QTABBAR_TABAT ) +{ + hb_retni( hbqt_par_QTabBar( 1 )->tabAt( hbqt_const_QPoint( 2 ) ) ); +} + +/* + * QWidget * tabButton ( int index, ButtonPosition position ) const + */ +HB_FUNC( QT_QTABBAR_TABBUTTON ) +{ + hb_retptr( ( QWidget* ) hbqt_par_QTabBar( 1 )->tabButton( hb_parni( 2 ), ( QTabBar::ButtonPosition ) hb_parni( 3 ) ) ); +} + +/* + * QRect tabRect ( int index ) const + */ +HB_FUNC( QT_QTABBAR_TABRECT ) +{ + hbqt_ret_QRect( hbqt_par_QTabBar( 1 )->tabRect( hb_parni( 2 ) ) ); +} + +/* + * QString tabText ( int index ) const + */ +HB_FUNC( QT_QTABBAR_TABTEXT ) +{ + hb_retc( hbqt_par_QTabBar( 1 )->tabText( hb_parni( 2 )).toLatin1().data() ); +} + +/* + * QString tabToolTip ( int index ) const + */ +HB_FUNC( QT_QTABBAR_TABTOOLTIP ) +{ + hb_retc( hbqt_par_QTabBar( 1 )->tabToolTip( hb_parni( 2 )).toLatin1().data() ); +} + +/* + * QString tabWhatsThis ( int index ) const + */ +HB_FUNC( QT_QTABBAR_TABWHATSTHIS ) +{ + hb_retc( hbqt_par_QTabBar( 1 )->tabWhatsThis( hb_parni( 2 )).toLatin1().data() ); +} + +/* + * bool tabsClosable () const + */ +HB_FUNC( QT_QTABBAR_TABSCLOSABLE ) +{ + hb_retl( hbqt_par_QTabBar( 1 )->tabsClosable( ) ); +} + +/* + * bool usesScrollButtons () const + */ +HB_FUNC( QT_QTABBAR_USESSCROLLBUTTONS ) +{ + hb_retl( hbqt_par_QTabBar( 1 )->usesScrollButtons( ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qtableview.cpp b/harbour/contrib/hbqt/hbqt_qtableview.cpp index 77e94ef1a6..eb92954839 100644 --- a/harbour/contrib/hbqt/hbqt_qtableview.cpp +++ b/harbour/contrib/hbqt/hbqt_qtableview.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,18 +55,275 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 30/31 [ 96.77% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * virtual QModelIndex indexAt ( const QPoint & pos ) const + */ + #include -/*----------------------------------------------------------------------*/ + /* -QTableView ( QWidget * parent = 0 ) -*/ + * QTableView ( QWidget * parent = 0 ) + * ~QTableView () + */ HB_FUNC( QT_QTABLEVIEW ) { hb_retptr( ( QTableView* ) new QTableView( hbqt_par_QWidget( 1 ) ) ); } +/* + * void clearSpans () + */ +HB_FUNC( QT_QTABLEVIEW_CLEARSPANS ) +{ + hbqt_par_QTableView( 1 )->clearSpans( ); +} + +/* + * int columnAt ( int x ) const + */ +HB_FUNC( QT_QTABLEVIEW_COLUMNAT ) +{ + hb_retni( hbqt_par_QTableView( 1 )->columnAt( hb_parni( 2 ) ) ); +} + +/* + * int columnSpan ( int row, int column ) const + */ +HB_FUNC( QT_QTABLEVIEW_COLUMNSPAN ) +{ + hb_retni( hbqt_par_QTableView( 1 )->columnSpan( hb_parni( 2 ), hb_parni( 3 ) ) ); +} + +/* + * int columnViewportPosition ( int column ) const + */ +HB_FUNC( QT_QTABLEVIEW_COLUMNVIEWPORTPOSITION ) +{ + hb_retni( hbqt_par_QTableView( 1 )->columnViewportPosition( hb_parni( 2 ) ) ); +} + +/* + * int columnWidth ( int column ) const + */ +HB_FUNC( QT_QTABLEVIEW_COLUMNWIDTH ) +{ + hb_retni( hbqt_par_QTableView( 1 )->columnWidth( hb_parni( 2 ) ) ); +} + +/* + * Qt::PenStyle gridStyle () const + */ +HB_FUNC( QT_QTABLEVIEW_GRIDSTYLE ) +{ + hb_retni( hbqt_par_QTableView( 1 )->gridStyle( ) ); +} + +/* + * QHeaderView * horizontalHeader () const + */ +HB_FUNC( QT_QTABLEVIEW_HORIZONTALHEADER ) +{ + hb_retptr( ( QHeaderView* ) hbqt_par_QTableView( 1 )->horizontalHeader( ) ); +} + +/* + * bool isColumnHidden ( int column ) const + */ +HB_FUNC( QT_QTABLEVIEW_ISCOLUMNHIDDEN ) +{ + hb_retl( hbqt_par_QTableView( 1 )->isColumnHidden( hb_parni( 2 ) ) ); +} + +/* + * bool isCornerButtonEnabled () const + */ +HB_FUNC( QT_QTABLEVIEW_ISCORNERBUTTONENABLED ) +{ + hb_retl( hbqt_par_QTableView( 1 )->isCornerButtonEnabled( ) ); +} + +/* + * bool isRowHidden ( int row ) const + */ +HB_FUNC( QT_QTABLEVIEW_ISROWHIDDEN ) +{ + hb_retl( hbqt_par_QTableView( 1 )->isRowHidden( hb_parni( 2 ) ) ); +} + +/* + * bool isSortingEnabled () const + */ +HB_FUNC( QT_QTABLEVIEW_ISSORTINGENABLED ) +{ + hb_retl( hbqt_par_QTableView( 1 )->isSortingEnabled( ) ); +} + +/* + * int rowAt ( int y ) const + */ +HB_FUNC( QT_QTABLEVIEW_ROWAT ) +{ + hb_retni( hbqt_par_QTableView( 1 )->rowAt( hb_parni( 2 ) ) ); +} + +/* + * int rowHeight ( int row ) const + */ +HB_FUNC( QT_QTABLEVIEW_ROWHEIGHT ) +{ + hb_retni( hbqt_par_QTableView( 1 )->rowHeight( hb_parni( 2 ) ) ); +} + +/* + * int rowSpan ( int row, int column ) const + */ +HB_FUNC( QT_QTABLEVIEW_ROWSPAN ) +{ + hb_retni( hbqt_par_QTableView( 1 )->rowSpan( hb_parni( 2 ), hb_parni( 3 ) ) ); +} + +/* + * int rowViewportPosition ( int row ) const + */ +HB_FUNC( QT_QTABLEVIEW_ROWVIEWPORTPOSITION ) +{ + hb_retni( hbqt_par_QTableView( 1 )->rowViewportPosition( hb_parni( 2 ) ) ); +} + +/* + * void setColumnHidden ( int column, bool hide ) + */ +HB_FUNC( QT_QTABLEVIEW_SETCOLUMNHIDDEN ) +{ + hbqt_par_QTableView( 1 )->setColumnHidden( hb_parni( 2 ), hb_parl( 3 ) ); +} + +/* + * void setColumnWidth ( int column, int width ) + */ +HB_FUNC( QT_QTABLEVIEW_SETCOLUMNWIDTH ) +{ + hbqt_par_QTableView( 1 )->setColumnWidth( hb_parni( 2 ), hb_parni( 3 ) ); +} + +/* + * void setCornerButtonEnabled ( bool enable ) + */ +HB_FUNC( QT_QTABLEVIEW_SETCORNERBUTTONENABLED ) +{ + hbqt_par_QTableView( 1 )->setCornerButtonEnabled( hb_parl( 2 ) ); +} + +/* + * void setGridStyle ( Qt::PenStyle style ) + */ +HB_FUNC( QT_QTABLEVIEW_SETGRIDSTYLE ) +{ + hbqt_par_QTableView( 1 )->setGridStyle( ( Qt::PenStyle ) hb_parni( 2 ) ); +} + +/* + * void setHorizontalHeader ( QHeaderView * header ) + */ +HB_FUNC( QT_QTABLEVIEW_SETHORIZONTALHEADER ) +{ + hbqt_par_QTableView( 1 )->setHorizontalHeader( hbqt_par_QHeaderView( 2 ) ); +} + +/* + * void setRowHeight ( int row, int height ) + */ +HB_FUNC( QT_QTABLEVIEW_SETROWHEIGHT ) +{ + hbqt_par_QTableView( 1 )->setRowHeight( hb_parni( 2 ), hb_parni( 3 ) ); +} + +/* + * void setRowHidden ( int row, bool hide ) + */ +HB_FUNC( QT_QTABLEVIEW_SETROWHIDDEN ) +{ + hbqt_par_QTableView( 1 )->setRowHidden( hb_parni( 2 ), hb_parl( 3 ) ); +} + +/* + * void setSortingEnabled ( bool enable ) + */ +HB_FUNC( QT_QTABLEVIEW_SETSORTINGENABLED ) +{ + hbqt_par_QTableView( 1 )->setSortingEnabled( hb_parl( 2 ) ); +} + +/* + * void setSpan ( int row, int column, int rowSpanCount, int columnSpanCount ) + */ +HB_FUNC( QT_QTABLEVIEW_SETSPAN ) +{ + hbqt_par_QTableView( 1 )->setSpan( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ) ); +} + +/* + * void setVerticalHeader ( QHeaderView * header ) + */ +HB_FUNC( QT_QTABLEVIEW_SETVERTICALHEADER ) +{ + hbqt_par_QTableView( 1 )->setVerticalHeader( hbqt_par_QHeaderView( 2 ) ); +} + +/* + * void setWordWrap ( bool on ) + */ +HB_FUNC( QT_QTABLEVIEW_SETWORDWRAP ) +{ + hbqt_par_QTableView( 1 )->setWordWrap( hb_parl( 2 ) ); +} + +/* + * bool showGrid () const + */ +HB_FUNC( QT_QTABLEVIEW_SHOWGRID ) +{ + hb_retl( hbqt_par_QTableView( 1 )->showGrid( ) ); +} + +/* + * void sortByColumn ( int column, Qt::SortOrder order ) + */ +HB_FUNC( QT_QTABLEVIEW_SORTBYCOLUMN ) +{ + hbqt_par_QTableView( 1 )->sortByColumn( hb_parni( 2 ), ( Qt::SortOrder ) hb_parni( 3 ) ); +} + +/* + * QHeaderView * verticalHeader () const + */ +HB_FUNC( QT_QTABLEVIEW_VERTICALHEADER ) +{ + hb_retptr( ( QHeaderView* ) hbqt_par_QTableView( 1 )->verticalHeader( ) ); +} + +/* + * bool wordWrap () const + */ +HB_FUNC( QT_QTABLEVIEW_WORDWRAP ) +{ + hb_retl( hbqt_par_QTableView( 1 )->wordWrap( ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qtablewidget.cpp b/harbour/contrib/hbqt/hbqt_qtablewidget.cpp index 5d1d5408b7..c991000884 100644 --- a/harbour/contrib/hbqt/hbqt_qtablewidget.cpp +++ b/harbour/contrib/hbqt/hbqt_qtablewidget.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,33 +55,331 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 36/41 [ 87.80% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * QList selectedItems () + * QList selectedRanges () const + * void setHorizontalHeaderLabels ( const QStringList & labels ) + * void setRangeSelected ( const QTableWidgetSelectionRange & range, bool select ) + * void setVerticalHeaderLabels ( const QStringList & labels ) + */ + #include -/*----------------------------------------------------------------------*/ +/* + * QTableWidget ( QWidget * parent = 0 ) + * QTableWidget ( int rows, int columns, QWidget * parent = 0 ) + * ~QTableWidget () + */ HB_FUNC( QT_QTABLEWIDGET ) { - if( hb_param( 1, HB_IT_NUMERIC ) && hb_param( 2, HB_IT_NUMERIC ) ) + if( hb_pcount() >= 2 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) ) hb_retptr( ( QTableWidget* ) new QTableWidget( hb_parni( 1 ), hb_parni( 2 ), hbqt_par_QWidget( 3 ) ) ); else hb_retptr( ( QTableWidget* ) new QTableWidget( hbqt_par_QWidget( 1 ) ) ); } /* -QTableWidget ( QWidget * parent = 0 ) [1] -QTableWidget ( int rows, int columns, QWidget * parent = 0 ) [2] -*/ -HB_FUNC( QT_QTABLEWIDGET_1 ) + * QWidget * cellWidget ( int row, int column ) const + */ +HB_FUNC( QT_QTABLEWIDGET_CELLWIDGET ) { - hb_retptr( ( QTableWidget* ) new QTableWidget( hbqt_par_QWidget( 1 ) ) ); + hb_retptr( ( QWidget* ) hbqt_par_QTableWidget( 1 )->cellWidget( hb_parni( 2 ), hb_parni( 3 ) ) ); } -HB_FUNC( QT_QTABLEWIDGET_2 ) +/* + * void closePersistentEditor ( QTableWidgetItem * item ) + */ +HB_FUNC( QT_QTABLEWIDGET_CLOSEPERSISTENTEDITOR ) { - hb_retptr( ( QTableWidget* ) new QTableWidget( hb_parni( 1 ), hb_parni( 2 ), hbqt_par_QWidget( 3 ) ) ); + hbqt_par_QTableWidget( 1 )->closePersistentEditor( hbqt_par_QTableWidgetItem( 2 ) ); } +/* + * int column ( const QTableWidgetItem * item ) const + */ +HB_FUNC( QT_QTABLEWIDGET_COLUMN ) +{ + hb_retni( hbqt_par_QTableWidget( 1 )->column( hbqt_par_QTableWidgetItem( 2 ) ) ); +} + +/* + * int columnCount () const + */ +HB_FUNC( QT_QTABLEWIDGET_COLUMNCOUNT ) +{ + hb_retni( hbqt_par_QTableWidget( 1 )->columnCount( ) ); +} + +/* + * int currentColumn () const + */ +HB_FUNC( QT_QTABLEWIDGET_CURRENTCOLUMN ) +{ + hb_retni( hbqt_par_QTableWidget( 1 )->currentColumn( ) ); +} + +/* + * QTableWidgetItem * currentItem () const + */ +HB_FUNC( QT_QTABLEWIDGET_CURRENTITEM ) +{ + hb_retptr( ( QTableWidgetItem* ) hbqt_par_QTableWidget( 1 )->currentItem( ) ); +} + +/* + * int currentRow () const + */ +HB_FUNC( QT_QTABLEWIDGET_CURRENTROW ) +{ + hb_retni( hbqt_par_QTableWidget( 1 )->currentRow( ) ); +} + +/* + * void editItem ( QTableWidgetItem * item ) + */ +HB_FUNC( QT_QTABLEWIDGET_EDITITEM ) +{ + hbqt_par_QTableWidget( 1 )->editItem( hbqt_par_QTableWidgetItem( 2 ) ); +} + +/* + * QTableWidgetItem * horizontalHeaderItem ( int column ) const + */ +HB_FUNC( QT_QTABLEWIDGET_HORIZONTALHEADERITEM ) +{ + hb_retptr( ( QTableWidgetItem* ) hbqt_par_QTableWidget( 1 )->horizontalHeaderItem( hb_parni( 2 ) ) ); +} + +/* + * QTableWidgetItem * item ( int row, int column ) const + */ +HB_FUNC( QT_QTABLEWIDGET_ITEM ) +{ + hb_retptr( ( QTableWidgetItem* ) hbqt_par_QTableWidget( 1 )->item( hb_parni( 2 ), hb_parni( 3 ) ) ); +} + +/* + * QTableWidgetItem * itemAt ( const QPoint & point ) const + */ +HB_FUNC( QT_QTABLEWIDGET_ITEMAT ) +{ + hb_retptr( ( QTableWidgetItem* ) hbqt_par_QTableWidget( 1 )->itemAt( hbqt_const_QPoint( 2 ) ) ); +} + +/* + * QTableWidgetItem * itemAt ( int ax, int ay ) const + */ +HB_FUNC( QT_QTABLEWIDGET_ITEMAT_1 ) +{ + hb_retptr( ( QTableWidgetItem* ) hbqt_par_QTableWidget( 1 )->itemAt( hb_parni( 2 ), hb_parni( 3 ) ) ); +} + +/* + * const QTableWidgetItem * itemPrototype () const + */ +HB_FUNC( QT_QTABLEWIDGET_ITEMPROTOTYPE ) +{ + hb_retptr( ( QTableWidgetItem* ) hbqt_par_QTableWidget( 1 )->itemPrototype( ) ); +} + +/* + * void openPersistentEditor ( QTableWidgetItem * item ) + */ +HB_FUNC( QT_QTABLEWIDGET_OPENPERSISTENTEDITOR ) +{ + hbqt_par_QTableWidget( 1 )->openPersistentEditor( hbqt_par_QTableWidgetItem( 2 ) ); +} + +/* + * void removeCellWidget ( int row, int column ) + */ +HB_FUNC( QT_QTABLEWIDGET_REMOVECELLWIDGET ) +{ + hbqt_par_QTableWidget( 1 )->removeCellWidget( hb_parni( 2 ), hb_parni( 3 ) ); +} + +/* + * int row ( const QTableWidgetItem * item ) const + */ +HB_FUNC( QT_QTABLEWIDGET_ROW ) +{ + hb_retni( hbqt_par_QTableWidget( 1 )->row( hbqt_par_QTableWidgetItem( 2 ) ) ); +} + +/* + * int rowCount () const + */ +HB_FUNC( QT_QTABLEWIDGET_ROWCOUNT ) +{ + hb_retni( hbqt_par_QTableWidget( 1 )->rowCount( ) ); +} + +/* + * void setCellWidget ( int row, int column, QWidget * widget ) + */ +HB_FUNC( QT_QTABLEWIDGET_SETCELLWIDGET ) +{ + hbqt_par_QTableWidget( 1 )->setCellWidget( hb_parni( 2 ), hb_parni( 3 ), hbqt_par_QWidget( 4 ) ); +} + +/* + * void setColumnCount ( int columns ) + */ +HB_FUNC( QT_QTABLEWIDGET_SETCOLUMNCOUNT ) +{ + hbqt_par_QTableWidget( 1 )->setColumnCount( hb_parni( 2 ) ); +} + +/* + * void setCurrentCell ( int row, int column ) + */ +HB_FUNC( QT_QTABLEWIDGET_SETCURRENTCELL ) +{ + hbqt_par_QTableWidget( 1 )->setCurrentCell( hb_parni( 2 ), hb_parni( 3 ) ); +} + +/* + * void setCurrentCell ( int row, int column, QItemSelectionModel::SelectionFlags command ) + */ +HB_FUNC( QT_QTABLEWIDGET_SETCURRENTCELL_1 ) +{ + hbqt_par_QTableWidget( 1 )->setCurrentCell( hb_parni( 2 ), hb_parni( 3 ), ( QItemSelectionModel::SelectionFlags ) hb_parni( 4 ) ); +} + +/* + * void setCurrentItem ( QTableWidgetItem * item ) + */ +HB_FUNC( QT_QTABLEWIDGET_SETCURRENTITEM ) +{ + hbqt_par_QTableWidget( 1 )->setCurrentItem( hbqt_par_QTableWidgetItem( 2 ) ); +} + +/* + * void setCurrentItem ( QTableWidgetItem * item, QItemSelectionModel::SelectionFlags command ) + */ +HB_FUNC( QT_QTABLEWIDGET_SETCURRENTITEM_1 ) +{ + hbqt_par_QTableWidget( 1 )->setCurrentItem( hbqt_par_QTableWidgetItem( 2 ), ( QItemSelectionModel::SelectionFlags ) hb_parni( 3 ) ); +} + +/* + * void setHorizontalHeaderItem ( int column, QTableWidgetItem * item ) + */ +HB_FUNC( QT_QTABLEWIDGET_SETHORIZONTALHEADERITEM ) +{ + hbqt_par_QTableWidget( 1 )->setHorizontalHeaderItem( hb_parni( 2 ), hbqt_par_QTableWidgetItem( 3 ) ); +} + +/* + * void setItem ( int row, int column, QTableWidgetItem * item ) + */ +HB_FUNC( QT_QTABLEWIDGET_SETITEM ) +{ + hbqt_par_QTableWidget( 1 )->setItem( hb_parni( 2 ), hb_parni( 3 ), hbqt_par_QTableWidgetItem( 4 ) ); +} + +/* + * void setItemPrototype ( const QTableWidgetItem * item ) + */ +HB_FUNC( QT_QTABLEWIDGET_SETITEMPROTOTYPE ) +{ + hbqt_par_QTableWidget( 1 )->setItemPrototype( hbqt_par_QTableWidgetItem( 2 ) ); +} + +/* + * void setRowCount ( int rows ) + */ +HB_FUNC( QT_QTABLEWIDGET_SETROWCOUNT ) +{ + hbqt_par_QTableWidget( 1 )->setRowCount( hb_parni( 2 ) ); +} + +/* + * void setVerticalHeaderItem ( int row, QTableWidgetItem * item ) + */ +HB_FUNC( QT_QTABLEWIDGET_SETVERTICALHEADERITEM ) +{ + hbqt_par_QTableWidget( 1 )->setVerticalHeaderItem( hb_parni( 2 ), hbqt_par_QTableWidgetItem( 3 ) ); +} + +/* + * void sortItems ( int column, Qt::SortOrder order = Qt::AscendingOrder ) + */ +HB_FUNC( QT_QTABLEWIDGET_SORTITEMS ) +{ + hbqt_par_QTableWidget( 1 )->sortItems( hb_parni( 2 ), ( Qt::SortOrder ) hb_parni( 3 ) ); +} + +/* + * QTableWidgetItem * takeHorizontalHeaderItem ( int column ) + */ +HB_FUNC( QT_QTABLEWIDGET_TAKEHORIZONTALHEADERITEM ) +{ + hb_retptr( ( QTableWidgetItem* ) hbqt_par_QTableWidget( 1 )->takeHorizontalHeaderItem( hb_parni( 2 ) ) ); +} + +/* + * QTableWidgetItem * takeItem ( int row, int column ) + */ +HB_FUNC( QT_QTABLEWIDGET_TAKEITEM ) +{ + hb_retptr( ( QTableWidgetItem* ) hbqt_par_QTableWidget( 1 )->takeItem( hb_parni( 2 ), hb_parni( 3 ) ) ); +} + +/* + * QTableWidgetItem * takeVerticalHeaderItem ( int row ) + */ +HB_FUNC( QT_QTABLEWIDGET_TAKEVERTICALHEADERITEM ) +{ + hb_retptr( ( QTableWidgetItem* ) hbqt_par_QTableWidget( 1 )->takeVerticalHeaderItem( hb_parni( 2 ) ) ); +} + +/* + * QTableWidgetItem * verticalHeaderItem ( int row ) const + */ +HB_FUNC( QT_QTABLEWIDGET_VERTICALHEADERITEM ) +{ + hb_retptr( ( QTableWidgetItem* ) hbqt_par_QTableWidget( 1 )->verticalHeaderItem( hb_parni( 2 ) ) ); +} + +/* + * int visualColumn ( int logicalColumn ) const + */ +HB_FUNC( QT_QTABLEWIDGET_VISUALCOLUMN ) +{ + hb_retni( hbqt_par_QTableWidget( 1 )->visualColumn( hb_parni( 2 ) ) ); +} + +/* + * QRect visualItemRect ( const QTableWidgetItem * item ) const + */ +HB_FUNC( QT_QTABLEWIDGET_VISUALITEMRECT ) +{ + hbqt_ret_QRect( hbqt_par_QTableWidget( 1 )->visualItemRect( hbqt_par_QTableWidgetItem( 2 ) ) ); +} + +/* + * int visualRow ( int logicalRow ) const + */ +HB_FUNC( QT_QTABLEWIDGET_VISUALROW ) +{ + hb_retni( hbqt_par_QTableWidget( 1 )->visualRow( hb_parni( 2 ) ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qtablewidgetitem.cpp b/harbour/contrib/hbqt/hbqt_qtablewidgetitem.cpp index 26f481dc7c..cd88173968 100644 --- a/harbour/contrib/hbqt/hbqt_qtablewidgetitem.cpp +++ b/harbour/contrib/hbqt/hbqt_qtablewidgetitem.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,46 +55,236 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 22/33 [ 66.67% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * QBrush background () const + * virtual QVariant data ( int role ) const + * QFont font () const + * QBrush foreground () const + * QIcon icon () const + * virtual void read ( QDataStream & in ) + * void setBackground ( const QBrush & brush ) + * virtual void setData ( int role, const QVariant & value ) + * void setFont ( const QFont & font ) + * void setForeground ( const QBrush & brush ) + * virtual void write ( QDataStream & out ) const + */ + #include -/*----------------------------------------------------------------------*/ + /* -QTableWidgetItem ( int type = Type ) [1] -QTableWidgetItem ( const QString & text, int type = Type ) [2] -QTableWidgetItem ( const QIcon & icon, const QString & text, int type = Type ) [3] -QTableWidgetItem ( const QTableWidgetItem & other ) [4] -*/ -HB_FUNC( QT_QTABLEWIDGETITEM_1 ) -{ - hb_retptr( ( QTableWidgetItem* ) new QTableWidgetItem( hb_parni( 1 ) ) ); -} - -HB_FUNC( QT_QTABLEWIDGETITEM_2 ) -{ - hb_retptr( ( QTableWidgetItem* ) new QTableWidgetItem( hbqt_par_QString( 1 ), hb_parni( 2 ) ) ); -} - -HB_FUNC( QT_QTABLEWIDGETITEM_3 ) + * QTableWidgetItem ( int type = Type ) + * QTableWidgetItem ( const QString & text, int type = Type ) + * QTableWidgetItem ( const QIcon & icon, const QString & text, int type = Type ) + * QTableWidgetItem ( const QTableWidgetItem & other ) + * virtual ~QTableWidgetItem () + */ +HB_FUNC( QT_QTABLEWIDGETITEM ) { + if( hb_pcount() >= 2 && HB_ISCHAR( 1 ) ) + { + hb_retptr( ( QTableWidgetItem* ) new QTableWidgetItem( hbqt_par_QString( 1 ), hb_parni( 2 ) ) ); + } + else + { + hb_retptr( ( QTableWidgetItem* ) new QTableWidgetItem( hb_parni( 1 ) ) ); + } + + #if 0 hb_retptr( ( QTableWidgetItem* ) new QTableWidgetItem( QIcon( hbqt_par_QString( 1 ) ),hbqt_par_QString( 2 ), hb_parni( 3 ) ) ); -} - -#if 0 -HB_FUNC( QT_QTABLEWIDGETITEM_4 ) -{ hb_retptr( ( QTableWidgetItem* ) new QTableWidgetItem( hbqt_par_QTableWidgetItem( 1 ) ) ); + #endif } -HB_FUNC( QT_QTABLEWIDGETITEM_4 ) +/* + * Qt::CheckState checkState () const + */ +HB_FUNC( QT_QTABLEWIDGETITEM_CHECKSTATE ) { - QTableWidgetItem * twi = NULL; - QTableWidgetItem * other = ( QTableWidgetItem * ) hb_parptr( 1 ); - twi = new QTableWidgetItem ( ( QTableWidgetItem * ) other ); - hb_retptr( ( QTableWidgetItem * ) twi ); + hb_retni( hbqt_par_QTableWidgetItem( 1 )->checkState( ) ); } -#endif + +/* + * virtual QTableWidgetItem * clone () const + */ +HB_FUNC( QT_QTABLEWIDGETITEM_CLONE ) +{ + hb_retptr( ( QTableWidgetItem* ) hbqt_par_QTableWidgetItem( 1 )->clone( ) ); +} + +/* + * int column () const + */ +HB_FUNC( QT_QTABLEWIDGETITEM_COLUMN ) +{ + hb_retni( hbqt_par_QTableWidgetItem( 1 )->column( ) ); +} + +/* + * bool isSelected () const + */ +HB_FUNC( QT_QTABLEWIDGETITEM_ISSELECTED ) +{ + hb_retl( hbqt_par_QTableWidgetItem( 1 )->isSelected( ) ); +} + +/* + * int row () const + */ +HB_FUNC( QT_QTABLEWIDGETITEM_ROW ) +{ + hb_retni( hbqt_par_QTableWidgetItem( 1 )->row( ) ); +} + +/* + * void setCheckState ( Qt::CheckState state ) + */ +HB_FUNC( QT_QTABLEWIDGETITEM_SETCHECKSTATE ) +{ + hbqt_par_QTableWidgetItem( 1 )->setCheckState( ( Qt::CheckState ) hb_parni( 2 ) ); +} + +/* + * void setIcon ( const QIcon & icon ) + */ +HB_FUNC( QT_QTABLEWIDGETITEM_SETICON ) +{ + hbqt_par_QTableWidgetItem( 1 )->setIcon( QIcon( hbqt_par_QString( 2 ) ) ); +} + +/* + * void setSelected ( bool select ) + */ +HB_FUNC( QT_QTABLEWIDGETITEM_SETSELECTED ) +{ + hbqt_par_QTableWidgetItem( 1 )->setSelected( hb_parl( 2 ) ); +} + +/* + * void setSizeHint ( const QSize & size ) + */ +HB_FUNC( QT_QTABLEWIDGETITEM_SETSIZEHINT ) +{ + hbqt_par_QTableWidgetItem( 1 )->setSizeHint( hbqt_const_QSize( 2 ) ); +} + +/* + * void setStatusTip ( const QString & statusTip ) + */ +HB_FUNC( QT_QTABLEWIDGETITEM_SETSTATUSTIP ) +{ + hbqt_par_QTableWidgetItem( 1 )->setStatusTip( hbqt_par_QString( 2 ) ); +} + +/* + * void setText ( const QString & text ) + */ +HB_FUNC( QT_QTABLEWIDGETITEM_SETTEXT ) +{ + hbqt_par_QTableWidgetItem( 1 )->setText( hbqt_par_QString( 2 ) ); +} + +/* + * void setTextAlignment ( int alignment ) + */ +HB_FUNC( QT_QTABLEWIDGETITEM_SETTEXTALIGNMENT ) +{ + hbqt_par_QTableWidgetItem( 1 )->setTextAlignment( hb_parni( 2 ) ); +} + +/* + * void setToolTip ( const QString & toolTip ) + */ +HB_FUNC( QT_QTABLEWIDGETITEM_SETTOOLTIP ) +{ + hbqt_par_QTableWidgetItem( 1 )->setToolTip( hbqt_par_QString( 2 ) ); +} + +/* + * void setWhatsThis ( const QString & whatsThis ) + */ +HB_FUNC( QT_QTABLEWIDGETITEM_SETWHATSTHIS ) +{ + hbqt_par_QTableWidgetItem( 1 )->setWhatsThis( hbqt_par_QString( 2 ) ); +} + +/* + * QSize sizeHint () const + */ +HB_FUNC( QT_QTABLEWIDGETITEM_SIZEHINT ) +{ + hbqt_ret_QSize( hbqt_par_QTableWidgetItem( 1 )->sizeHint( ) ); +} + +/* + * QString statusTip () const + */ +HB_FUNC( QT_QTABLEWIDGETITEM_STATUSTIP ) +{ + hb_retc( hbqt_par_QTableWidgetItem( 1 )->statusTip( ).toLatin1().data() ); +} + +/* + * QTableWidget * tableWidget () const + */ +HB_FUNC( QT_QTABLEWIDGETITEM_TABLEWIDGET ) +{ + hb_retptr( ( QTableWidget* ) hbqt_par_QTableWidgetItem( 1 )->tableWidget( ) ); +} + +/* + * QString text () const + */ +HB_FUNC( QT_QTABLEWIDGETITEM_TEXT ) +{ + hb_retc( hbqt_par_QTableWidgetItem( 1 )->text( ).toLatin1().data() ); +} + +/* + * int textAlignment () const + */ +HB_FUNC( QT_QTABLEWIDGETITEM_TEXTALIGNMENT ) +{ + hb_retni( hbqt_par_QTableWidgetItem( 1 )->textAlignment( ) ); +} + +/* + * QString toolTip () const + */ +HB_FUNC( QT_QTABLEWIDGETITEM_TOOLTIP ) +{ + hb_retc( hbqt_par_QTableWidgetItem( 1 )->toolTip( ).toLatin1().data() ); +} + +/* + * int type () const + */ +HB_FUNC( QT_QTABLEWIDGETITEM_TYPE ) +{ + hb_retni( hbqt_par_QTableWidgetItem( 1 )->type( ) ); +} + +/* + * QString whatsThis () const + */ +HB_FUNC( QT_QTABLEWIDGETITEM_WHATSTHIS ) +{ + hb_retc( hbqt_par_QTableWidgetItem( 1 )->whatsThis( ).toLatin1().data() ); +} + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qtabwidget.cpp b/harbour/contrib/hbqt/hbqt_qtabwidget.cpp index 165bf04d58..21ad9f64fa 100644 --- a/harbour/contrib/hbqt/hbqt_qtabwidget.cpp +++ b/harbour/contrib/hbqt/hbqt_qtabwidget.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,18 +55,339 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 38/39 [ 97.44% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * QIcon tabIcon ( int index ) const + */ + #include -/*----------------------------------------------------------------------*/ + /* -QTabWidget ( QWidget * parent = 0 ) -*/ + * QTabWidget ( QWidget * parent = 0 ) + * ~QTabWidget () + */ HB_FUNC( QT_QTABWIDGET ) { hb_retptr( ( QTabWidget* ) new QTabWidget( hbqt_par_QWidget( 1 ) ) ); } +/* + * int addTab ( QWidget * page, const QString & label ) + */ +HB_FUNC( QT_QTABWIDGET_ADDTAB ) +{ + hb_retni( hbqt_par_QTabWidget( 1 )->addTab( hbqt_par_QWidget( 2 ), hbqt_par_QString( 3 ) ) ); +} + +/* + * int addTab ( QWidget * page, const QIcon & icon, const QString & label ) + */ +HB_FUNC( QT_QTABWIDGET_ADDTAB_1 ) +{ + hb_retni( hbqt_par_QTabWidget( 1 )->addTab( hbqt_par_QWidget( 2 ), QIcon( hbqt_par_QString( 3 ) ), hbqt_par_QString( 4 ) ) ); +} + +/* + * void clear () + */ +HB_FUNC( QT_QTABWIDGET_CLEAR ) +{ + hbqt_par_QTabWidget( 1 )->clear( ); +} + +/* + * QWidget * cornerWidget ( Qt::Corner corner = Qt::TopRightCorner ) const + */ +HB_FUNC( QT_QTABWIDGET_CORNERWIDGET ) +{ + hb_retptr( ( QWidget* ) hbqt_par_QTabWidget( 1 )->cornerWidget( ( Qt::Corner ) hb_parni( 2 ) ) ); +} + +/* + * int count () const + */ +HB_FUNC( QT_QTABWIDGET_COUNT ) +{ + hb_retni( hbqt_par_QTabWidget( 1 )->count( ) ); +} + +/* + * int currentIndex () const + */ +HB_FUNC( QT_QTABWIDGET_CURRENTINDEX ) +{ + hb_retni( hbqt_par_QTabWidget( 1 )->currentIndex( ) ); +} + +/* + * QWidget * currentWidget () const + */ +HB_FUNC( QT_QTABWIDGET_CURRENTWIDGET ) +{ + hb_retptr( ( QWidget* ) hbqt_par_QTabWidget( 1 )->currentWidget( ) ); +} + +/* + * bool documentMode () const + */ +HB_FUNC( QT_QTABWIDGET_DOCUMENTMODE ) +{ + hb_retl( hbqt_par_QTabWidget( 1 )->documentMode( ) ); +} + +/* + * Qt::TextElideMode elideMode () const + */ +HB_FUNC( QT_QTABWIDGET_ELIDEMODE ) +{ + hb_retni( hbqt_par_QTabWidget( 1 )->elideMode( ) ); +} + +/* + * QSize iconSize () const + */ +HB_FUNC( QT_QTABWIDGET_ICONSIZE ) +{ + hbqt_ret_QSize( hbqt_par_QTabWidget( 1 )->iconSize( ) ); +} + +/* + * int indexOf ( QWidget * w ) const + */ +HB_FUNC( QT_QTABWIDGET_INDEXOF ) +{ + hb_retni( hbqt_par_QTabWidget( 1 )->indexOf( hbqt_par_QWidget( 2 ) ) ); +} + +/* + * int insertTab ( int index, QWidget * page, const QString & label ) + */ +HB_FUNC( QT_QTABWIDGET_INSERTTAB ) +{ + hb_retni( hbqt_par_QTabWidget( 1 )->insertTab( hb_parni( 2 ), hbqt_par_QWidget( 3 ), hbqt_par_QString( 4 ) ) ); +} + +/* + * int insertTab ( int index, QWidget * page, const QIcon & icon, const QString & label ) + */ +HB_FUNC( QT_QTABWIDGET_INSERTTAB_1 ) +{ + hb_retni( hbqt_par_QTabWidget( 1 )->insertTab( hb_parni( 2 ), hbqt_par_QWidget( 3 ), QIcon( hbqt_par_QString( 4 ) ), hbqt_par_QString( 5 ) ) ); +} + +/* + * bool isMovable () const + */ +HB_FUNC( QT_QTABWIDGET_ISMOVABLE ) +{ + hb_retl( hbqt_par_QTabWidget( 1 )->isMovable( ) ); +} + +/* + * bool isTabEnabled ( int index ) const + */ +HB_FUNC( QT_QTABWIDGET_ISTABENABLED ) +{ + hb_retl( hbqt_par_QTabWidget( 1 )->isTabEnabled( hb_parni( 2 ) ) ); +} + +/* + * void removeTab ( int index ) + */ +HB_FUNC( QT_QTABWIDGET_REMOVETAB ) +{ + hbqt_par_QTabWidget( 1 )->removeTab( hb_parni( 2 ) ); +} + +/* + * void setCornerWidget ( QWidget * widget, Qt::Corner corner = Qt::TopRightCorner ) + */ +HB_FUNC( QT_QTABWIDGET_SETCORNERWIDGET ) +{ + hbqt_par_QTabWidget( 1 )->setCornerWidget( hbqt_par_QWidget( 2 ), ( Qt::Corner ) hb_parni( 3 ) ); +} + +/* + * void setDocumentMode ( bool set ) + */ +HB_FUNC( QT_QTABWIDGET_SETDOCUMENTMODE ) +{ + hbqt_par_QTabWidget( 1 )->setDocumentMode( hb_parl( 2 ) ); +} + +/* + * void setElideMode ( Qt::TextElideMode ) + */ +HB_FUNC( QT_QTABWIDGET_SETELIDEMODE ) +{ + hbqt_par_QTabWidget( 1 )->setElideMode( ( Qt::TextElideMode ) hb_parni( 2 ) ); +} + +/* + * void setIconSize ( const QSize & size ) + */ +HB_FUNC( QT_QTABWIDGET_SETICONSIZE ) +{ + hbqt_par_QTabWidget( 1 )->setIconSize( hbqt_const_QSize( 2 ) ); +} + +/* + * void setMovable ( bool movable ) + */ +HB_FUNC( QT_QTABWIDGET_SETMOVABLE ) +{ + hbqt_par_QTabWidget( 1 )->setMovable( hb_parl( 2 ) ); +} + +/* + * void setTabEnabled ( int index, bool enable ) + */ +HB_FUNC( QT_QTABWIDGET_SETTABENABLED ) +{ + hbqt_par_QTabWidget( 1 )->setTabEnabled( hb_parni( 2 ), hb_parl( 3 ) ); +} + +/* + * void setTabIcon ( int index, const QIcon & icon ) + */ +HB_FUNC( QT_QTABWIDGET_SETTABICON ) +{ + hbqt_par_QTabWidget( 1 )->setTabIcon( hb_parni( 2 ), QIcon( hbqt_par_QString( 3 ) ) ); +} + +/* + * void setTabPosition ( TabPosition ) + */ +HB_FUNC( QT_QTABWIDGET_SETTABPOSITION ) +{ + hbqt_par_QTabWidget( 1 )->setTabPosition( ( QTabWidget::TabPosition ) hb_parni( 2 ) ); +} + +/* + * void setTabShape ( TabShape s ) + */ +HB_FUNC( QT_QTABWIDGET_SETTABSHAPE ) +{ + hbqt_par_QTabWidget( 1 )->setTabShape( ( QTabWidget::TabShape ) hb_parni( 2 ) ); +} + +/* + * void setTabText ( int index, const QString & label ) + */ +HB_FUNC( QT_QTABWIDGET_SETTABTEXT ) +{ + hbqt_par_QTabWidget( 1 )->setTabText( hb_parni( 2 ), hbqt_par_QString( 3 ) ); +} + +/* + * void setTabToolTip ( int index, const QString & tip ) + */ +HB_FUNC( QT_QTABWIDGET_SETTABTOOLTIP ) +{ + hbqt_par_QTabWidget( 1 )->setTabToolTip( hb_parni( 2 ), hbqt_par_QString( 3 ) ); +} + +/* + * void setTabWhatsThis ( int index, const QString & text ) + */ +HB_FUNC( QT_QTABWIDGET_SETTABWHATSTHIS ) +{ + hbqt_par_QTabWidget( 1 )->setTabWhatsThis( hb_parni( 2 ), hbqt_par_QString( 3 ) ); +} + +/* + * void setTabsClosable ( bool closeable ) + */ +HB_FUNC( QT_QTABWIDGET_SETTABSCLOSABLE ) +{ + hbqt_par_QTabWidget( 1 )->setTabsClosable( hb_parl( 2 ) ); +} + +/* + * void setUsesScrollButtons ( bool useButtons ) + */ +HB_FUNC( QT_QTABWIDGET_SETUSESSCROLLBUTTONS ) +{ + hbqt_par_QTabWidget( 1 )->setUsesScrollButtons( hb_parl( 2 ) ); +} + +/* + * TabPosition tabPosition () const + */ +HB_FUNC( QT_QTABWIDGET_TABPOSITION ) +{ + hb_retni( hbqt_par_QTabWidget( 1 )->tabPosition( ) ); +} + +/* + * TabShape tabShape () const + */ +HB_FUNC( QT_QTABWIDGET_TABSHAPE ) +{ + hb_retni( hbqt_par_QTabWidget( 1 )->tabShape( ) ); +} + +/* + * QString tabText ( int index ) const + */ +HB_FUNC( QT_QTABWIDGET_TABTEXT ) +{ + hb_retc( hbqt_par_QTabWidget( 1 )->tabText( hb_parni( 2 )).toLatin1().data() ); +} + +/* + * QString tabToolTip ( int index ) const + */ +HB_FUNC( QT_QTABWIDGET_TABTOOLTIP ) +{ + hb_retc( hbqt_par_QTabWidget( 1 )->tabToolTip( hb_parni( 2 )).toLatin1().data() ); +} + +/* + * QString tabWhatsThis ( int index ) const + */ +HB_FUNC( QT_QTABWIDGET_TABWHATSTHIS ) +{ + hb_retc( hbqt_par_QTabWidget( 1 )->tabWhatsThis( hb_parni( 2 )).toLatin1().data() ); +} + +/* + * bool tabsClosable () const + */ +HB_FUNC( QT_QTABWIDGET_TABSCLOSABLE ) +{ + hb_retl( hbqt_par_QTabWidget( 1 )->tabsClosable( ) ); +} + +/* + * bool usesScrollButtons () const + */ +HB_FUNC( QT_QTABWIDGET_USESSCROLLBUTTONS ) +{ + hb_retl( hbqt_par_QTabWidget( 1 )->usesScrollButtons( ) ); +} + +/* + * QWidget * widget ( int index ) const + */ +HB_FUNC( QT_QTABWIDGET_WIDGET ) +{ + hb_retptr( ( QWidget* ) hbqt_par_QTabWidget( 1 )->widget( hb_parni( 2 ) ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qtextedit.cpp b/harbour/contrib/hbqt/hbqt_qtextedit.cpp index d8f17038fa..58c345d02b 100644 --- a/harbour/contrib/hbqt/hbqt_qtextedit.cpp +++ b/harbour/contrib/hbqt/hbqt_qtextedit.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,33 +55,401 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 44/60 [ 73.33% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * QTextCharFormat currentCharFormat () const + * QFont currentFont () const + * QTextCursor cursorForPosition ( const QPoint & pos ) const + * QRect cursorRect ( const QTextCursor & cursor ) const + * QList extraSelections () const + * virtual QVariant loadResource ( int type, const QUrl & name ) + * void mergeCurrentCharFormat ( const QTextCharFormat & modifier ) + * void setCurrentCharFormat ( const QTextCharFormat & format ) + * void setExtraSelections ( const QList & selections ) + * void setTextCursor ( const QTextCursor & cursor ) + * QColor textBackgroundColor () const + * QColor textColor () const + * QTextCursor textCursor () const + */ + #include -/*----------------------------------------------------------------------*/ +/* + + */ HB_FUNC( QT_QTEXTEDIT ) { - if( hb_param( 1, HB_IT_STRING ) ) + if( hb_pcount() >= 1 && HB_ISCHAR( 1 ) ) hb_retptr( ( QTextEdit* ) new QTextEdit( hbqt_par_QString( 1 ), hbqt_par_QWidget( 2 ) ) ); else hb_retptr( ( QTextEdit* ) new QTextEdit( hbqt_par_QWidget( 1 ) ) ); } /* -QTextEdit ( QWidget * parent = 0 ) [1] -QTextEdit ( const QString & text, QWidget * parent = 0 ) [2] -*/ -HB_FUNC( QT_QTEXTEDIT_1 ) + * bool acceptRichText () const + */ +HB_FUNC( QT_QTEXTEDIT_ACCEPTRICHTEXT ) { - hb_retptr( ( QTextEdit* ) new QTextEdit( hbqt_par_QWidget( 1 ) ) ); + hb_retl( hbqt_par_QTextEdit( 1 )->acceptRichText( ) ); } -HB_FUNC( QT_QTEXTEDIT_2 ) +/* + * Qt::Alignment alignment () const + */ +HB_FUNC( QT_QTEXTEDIT_ALIGNMENT ) { - hb_retptr( ( QTextEdit* ) new QTextEdit( hbqt_par_QString( 1 ), hbqt_par_QWidget( 2 ) ) ); + hb_retni( hbqt_par_QTextEdit( 1 )->alignment( ) ); } +/* + * QString anchorAt ( const QPoint & pos ) const + */ +HB_FUNC( QT_QTEXTEDIT_ANCHORAT ) +{ + hb_retc( hbqt_par_QTextEdit( 1 )->anchorAt( hbqt_const_QPoint( 2 )).toLatin1().data() ); +} + +/* + * AutoFormatting autoFormatting () const + */ +HB_FUNC( QT_QTEXTEDIT_AUTOFORMATTING ) +{ + hb_retni( hbqt_par_QTextEdit( 1 )->autoFormatting( ) ); +} + +/* + * bool canPaste () const + */ +HB_FUNC( QT_QTEXTEDIT_CANPASTE ) +{ + hb_retl( hbqt_par_QTextEdit( 1 )->canPaste( ) ); +} + +/* + * QMenu * createStandardContextMenu () + */ +HB_FUNC( QT_QTEXTEDIT_CREATESTANDARDCONTEXTMENU ) +{ + hb_retptr( ( QMenu* ) hbqt_par_QTextEdit( 1 )->createStandardContextMenu( ) ); +} + +/* + * QMenu * createStandardContextMenu ( const QPoint & position ) + */ +HB_FUNC( QT_QTEXTEDIT_CREATESTANDARDCONTEXTMENU_1 ) +{ + hb_retptr( ( QMenu* ) hbqt_par_QTextEdit( 1 )->createStandardContextMenu( hbqt_const_QPoint( 2 ) ) ); +} + +/* + * QRect cursorRect () const + */ +HB_FUNC( QT_QTEXTEDIT_CURSORRECT ) +{ + hbqt_ret_QRect( hbqt_par_QTextEdit( 1 )->cursorRect( ) ); +} + +/* + * int cursorWidth () const + */ +HB_FUNC( QT_QTEXTEDIT_CURSORWIDTH ) +{ + hb_retni( hbqt_par_QTextEdit( 1 )->cursorWidth( ) ); +} + +/* + * QTextDocument * document () const + */ +HB_FUNC( QT_QTEXTEDIT_DOCUMENT ) +{ + hb_retptr( ( QTextDocument* ) hbqt_par_QTextEdit( 1 )->document( ) ); +} + +/* + * QString documentTitle () const + */ +HB_FUNC( QT_QTEXTEDIT_DOCUMENTTITLE ) +{ + hb_retc( hbqt_par_QTextEdit( 1 )->documentTitle( ).toLatin1().data() ); +} + +/* + * void ensureCursorVisible () + */ +HB_FUNC( QT_QTEXTEDIT_ENSURECURSORVISIBLE ) +{ + hbqt_par_QTextEdit( 1 )->ensureCursorVisible( ); +} + +/* + * bool find ( const QString & exp, QTextDocument::FindFlags options = 0 ) + */ +HB_FUNC( QT_QTEXTEDIT_FIND ) +{ + hb_retl( hbqt_par_QTextEdit( 1 )->find( hbqt_par_QString( 2 ), ( QTextDocument::FindFlags ) hb_parni( 3 ) ) ); +} + +/* + * QString fontFamily () const + */ +HB_FUNC( QT_QTEXTEDIT_FONTFAMILY ) +{ + hb_retc( hbqt_par_QTextEdit( 1 )->fontFamily( ).toLatin1().data() ); +} + +/* + * bool fontItalic () const + */ +HB_FUNC( QT_QTEXTEDIT_FONTITALIC ) +{ + hb_retl( hbqt_par_QTextEdit( 1 )->fontItalic( ) ); +} + +/* + * qreal fontPointSize () const + */ +HB_FUNC( QT_QTEXTEDIT_FONTPOINTSIZE ) +{ + hb_retnd( hbqt_par_QTextEdit( 1 )->fontPointSize( ) ); +} + +/* + * bool fontUnderline () const + */ +HB_FUNC( QT_QTEXTEDIT_FONTUNDERLINE ) +{ + hb_retl( hbqt_par_QTextEdit( 1 )->fontUnderline( ) ); +} + +/* + * int fontWeight () const + */ +HB_FUNC( QT_QTEXTEDIT_FONTWEIGHT ) +{ + hb_retni( hbqt_par_QTextEdit( 1 )->fontWeight( ) ); +} + +/* + * bool isReadOnly () const + */ +HB_FUNC( QT_QTEXTEDIT_ISREADONLY ) +{ + hb_retl( hbqt_par_QTextEdit( 1 )->isReadOnly( ) ); +} + +/* + * bool isUndoRedoEnabled () const + */ +HB_FUNC( QT_QTEXTEDIT_ISUNDOREDOENABLED ) +{ + hb_retl( hbqt_par_QTextEdit( 1 )->isUndoRedoEnabled( ) ); +} + +/* + * int lineWrapColumnOrWidth () const + */ +HB_FUNC( QT_QTEXTEDIT_LINEWRAPCOLUMNORWIDTH ) +{ + hb_retni( hbqt_par_QTextEdit( 1 )->lineWrapColumnOrWidth( ) ); +} + +/* + * LineWrapMode lineWrapMode () const + */ +HB_FUNC( QT_QTEXTEDIT_LINEWRAPMODE ) +{ + hb_retni( hbqt_par_QTextEdit( 1 )->lineWrapMode( ) ); +} + +/* + * void moveCursor ( QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode = QTextCursor::MoveAnchor ) + */ +HB_FUNC( QT_QTEXTEDIT_MOVECURSOR ) +{ + hbqt_par_QTextEdit( 1 )->moveCursor( ( QTextCursor::MoveOperation ) hb_parni( 2 ), ( QTextCursor::MoveMode ) hb_parni( 3 ) ); +} + +/* + * bool overwriteMode () const + */ +HB_FUNC( QT_QTEXTEDIT_OVERWRITEMODE ) +{ + hb_retl( hbqt_par_QTextEdit( 1 )->overwriteMode( ) ); +} + +/* + * void print ( QPrinter * printer ) const + */ +HB_FUNC( QT_QTEXTEDIT_PRINT ) +{ + hbqt_par_QTextEdit( 1 )->print( hbqt_par_QPrinter( 2 ) ); +} + +/* + * void setAcceptRichText ( bool accept ) + */ +HB_FUNC( QT_QTEXTEDIT_SETACCEPTRICHTEXT ) +{ + hbqt_par_QTextEdit( 1 )->setAcceptRichText( hb_parl( 2 ) ); +} + +/* + * void setAutoFormatting ( AutoFormatting features ) + */ +HB_FUNC( QT_QTEXTEDIT_SETAUTOFORMATTING ) +{ + hbqt_par_QTextEdit( 1 )->setAutoFormatting( ( QTextEdit::AutoFormatting ) hb_parni( 2 ) ); +} + +/* + * void setCursorWidth ( int width ) + */ +HB_FUNC( QT_QTEXTEDIT_SETCURSORWIDTH ) +{ + hbqt_par_QTextEdit( 1 )->setCursorWidth( hb_parni( 2 ) ); +} + +/* + * void setDocument ( QTextDocument * document ) + */ +HB_FUNC( QT_QTEXTEDIT_SETDOCUMENT ) +{ + hbqt_par_QTextEdit( 1 )->setDocument( hbqt_par_QTextDocument( 2 ) ); +} + +/* + * void setDocumentTitle ( const QString & title ) + */ +HB_FUNC( QT_QTEXTEDIT_SETDOCUMENTTITLE ) +{ + hbqt_par_QTextEdit( 1 )->setDocumentTitle( hbqt_par_QString( 2 ) ); +} + +/* + * void setLineWrapColumnOrWidth ( int w ) + */ +HB_FUNC( QT_QTEXTEDIT_SETLINEWRAPCOLUMNORWIDTH ) +{ + hbqt_par_QTextEdit( 1 )->setLineWrapColumnOrWidth( hb_parni( 2 ) ); +} + +/* + * void setLineWrapMode ( LineWrapMode mode ) + */ +HB_FUNC( QT_QTEXTEDIT_SETLINEWRAPMODE ) +{ + hbqt_par_QTextEdit( 1 )->setLineWrapMode( ( QTextEdit::LineWrapMode ) hb_parni( 2 ) ); +} + +/* + * void setOverwriteMode ( bool overwrite ) + */ +HB_FUNC( QT_QTEXTEDIT_SETOVERWRITEMODE ) +{ + hbqt_par_QTextEdit( 1 )->setOverwriteMode( hb_parl( 2 ) ); +} + +/* + * void setReadOnly ( bool ro ) + */ +HB_FUNC( QT_QTEXTEDIT_SETREADONLY ) +{ + hbqt_par_QTextEdit( 1 )->setReadOnly( hb_parl( 2 ) ); +} + +/* + * void setTabChangesFocus ( bool b ) + */ +HB_FUNC( QT_QTEXTEDIT_SETTABCHANGESFOCUS ) +{ + hbqt_par_QTextEdit( 1 )->setTabChangesFocus( hb_parl( 2 ) ); +} + +/* + * void setTabStopWidth ( int width ) + */ +HB_FUNC( QT_QTEXTEDIT_SETTABSTOPWIDTH ) +{ + hbqt_par_QTextEdit( 1 )->setTabStopWidth( hb_parni( 2 ) ); +} + +/* + * void setUndoRedoEnabled ( bool enable ) + */ +HB_FUNC( QT_QTEXTEDIT_SETUNDOREDOENABLED ) +{ + hbqt_par_QTextEdit( 1 )->setUndoRedoEnabled( hb_parl( 2 ) ); +} + +/* + * void setWordWrapMode ( QTextOption::WrapMode policy ) + */ +HB_FUNC( QT_QTEXTEDIT_SETWORDWRAPMODE ) +{ + hbqt_par_QTextEdit( 1 )->setWordWrapMode( ( QTextOption::WrapMode ) hb_parni( 2 ) ); +} + +/* + * bool tabChangesFocus () const + */ +HB_FUNC( QT_QTEXTEDIT_TABCHANGESFOCUS ) +{ + hb_retl( hbqt_par_QTextEdit( 1 )->tabChangesFocus( ) ); +} + +/* + * int tabStopWidth () const + */ +HB_FUNC( QT_QTEXTEDIT_TABSTOPWIDTH ) +{ + hb_retni( hbqt_par_QTextEdit( 1 )->tabStopWidth( ) ); +} + +/* + * Qt::TextInteractionFlags textInteractionFlags () const + */ +HB_FUNC( QT_QTEXTEDIT_TEXTINTERACTIONFLAGS ) +{ + hb_retni( hbqt_par_QTextEdit( 1 )->textInteractionFlags( ) ); +} + +/* + * QString toHtml () const + */ +HB_FUNC( QT_QTEXTEDIT_TOHTML ) +{ + hb_retc( hbqt_par_QTextEdit( 1 )->toHtml( ).toLatin1().data() ); +} + +/* + * QString toPlainText () const + */ +HB_FUNC( QT_QTEXTEDIT_TOPLAINTEXT ) +{ + hb_retc( hbqt_par_QTextEdit( 1 )->toPlainText( ).toLatin1().data() ); +} + +/* + * QTextOption::WrapMode wordWrapMode () const + */ +HB_FUNC( QT_QTEXTEDIT_WORDWRAPMODE ) +{ + hb_retni( hbqt_par_QTextEdit( 1 )->wordWrapMode( ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qtimeedit.cpp b/harbour/contrib/hbqt/hbqt_qtimeedit.cpp index 98ecfcf21d..ed2040d56d 100644 --- a/harbour/contrib/hbqt/hbqt_qtimeedit.cpp +++ b/harbour/contrib/hbqt/hbqt_qtimeedit.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,26 +55,29 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -QTimeEdit ( QWidget * parent = 0 ) [1] -QTimeEdit ( const QTime & time, QWidget * parent = 0 ) [2] -*/ -HB_FUNC( QT_QTIMEEDIT_1 ) + * QTimeEdit ( QWidget * parent = 0 ) + * QTimeEdit ( const QTime & time, QWidget * parent = 0 ) + */ +HB_FUNC( QT_QTIMEEDIT ) { hb_retptr( ( QTimeEdit* ) new QTimeEdit( hbqt_par_QWidget( 1 ) ) ); + #if 0 + hb_retptr( (QTimeEdit *) new QTimeEdit( QTime( hbqt_par_QString( 1 ) ), hbqt_par_QWidget( 2 ) ) ); + #endif } -#if 0 -HB_FUNC( QT_QTIMEEDIT_2 ) -{ - hb_retptr( (QTimeEdit *) new QTimeEdit( QTime( hbqt_par_QString( 1 ) ), hbqt_par_QWidget( 2 ) ) ); -} -#endif /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qtoolbar.cpp b/harbour/contrib/hbqt/hbqt_qtoolbar.cpp index 33150756d0..25ad2fc693 100644 --- a/harbour/contrib/hbqt/hbqt_qtoolbar.cpp +++ b/harbour/contrib/hbqt/hbqt_qtoolbar.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,13 +55,20 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include #include -/*----------------------------------------------------------------------*/ +/* QToolBar ( const QString & title, QWidget * parent = 0 ) + * QToolBar ( QWidget * parent = 0 ) + * ~QToolBar () + */ HB_FUNC( QT_QTOOLBAR ) { if( hb_param( 1, HB_IT_STRING ) ) @@ -71,202 +78,215 @@ HB_FUNC( QT_QTOOLBAR ) } /* -QToolBar ( const QString & title, QWidget * parent = 0 ) [1] -QToolBar ( QWidget * parent = 0 ) [2] -*/ -HB_FUNC( QT_QTOOLBAR_1 ) + * QAction * actionAt ( const QPoint & p ) const + */ +HB_FUNC( QT_QTOOLBAR_ACTIONAT ) { - hb_retptr( ( QToolBar* ) new QToolBar( hbqt_par_QString( 1 ), hbqt_par_QWidget( 2 ) ) ); -} - -HB_FUNC( QT_QTOOLBAR_2 ) -{ - hb_retptr( ( QToolBar* ) new QToolBar( hbqt_par_QWidget( 1 ) ) ); + hb_retptr( ( QAction* ) hbqt_par_QToolBar( 1 )->actionAt( hbqt_const_QPoint( 2 ) ) ); } /* -QAction * actionAt ( int x, int y ) const -*/ + * QAction * actionAt ( int x, int y ) const + */ HB_FUNC( QT_QTOOLBAR_ACTIONAT_1 ) { - hb_retptr( ( QAction* ) hbqt_par_QToolBar( 1 )->actionAt( hb_parni(2), hb_parni(3) ) ); + hb_retptr( ( QAction* ) hbqt_par_QToolBar( 1 )->actionAt( hb_parni( 2 ), hb_parni( 3 ) ) ); } /* -void addAction ( QAction * action ) -*/ -HB_FUNC( QT_QTOOLBAR_ADDACTION_1 ) + * void addAction ( QAction * action ) + */ +HB_FUNC( QT_QTOOLBAR_ADDACTION ) { hbqt_par_QToolBar( 1 )->addAction( hbqt_par_QAction( 2 ) ); } /* -QAction * addAction ( const QString & text ) -*/ -HB_FUNC( QT_QTOOLBAR_ADDACTION_2 ) + * QAction * addAction ( const QString & text ) + */ +HB_FUNC( QT_QTOOLBAR_ADDACTION_1 ) { hb_retptr( ( QAction* ) hbqt_par_QToolBar( 1 )->addAction( hbqt_par_QString( 2 ) ) ); } /* -QAction * addAction ( const QIcon & icon, const QString & text ) -*/ -HB_FUNC( QT_QTOOLBAR_ADDACTION_3 ) + * QAction * addAction ( const QIcon & icon, const QString & text ) + */ +HB_FUNC( QT_QTOOLBAR_ADDACTION_2 ) { hb_retptr( ( QAction* ) hbqt_par_QToolBar( 1 )->addAction( QIcon( hbqt_par_QString( 2 ) ), hbqt_par_QString( 3 ) ) ); } /* -QAction * addSeparator () -*/ -HB_FUNC( QT_QTOOLBAR_ADDSEPARATOR ) + * QAction * addAction ( const QString & text, const QObject * receiver, const char * member ) + */ +HB_FUNC( QT_QTOOLBAR_ADDACTION_3 ) { - hb_retptr( ( QAction* ) hbqt_par_QToolBar( 1 )->addSeparator() ); + hb_retptr( ( QAction* ) hbqt_par_QToolBar( 1 )->addAction( hbqt_par_QString( 2 ), hbqt_par_QObject( 3 ), hbqt_par_char( 4 ) ) ); } /* -QAction * addWidget ( QWidget * widget ) -*/ + * QAction * addAction ( const QIcon & icon, const QString & text, const QObject * receiver, const char * member ) + */ +HB_FUNC( QT_QTOOLBAR_ADDACTION_4 ) +{ + hb_retptr( ( QAction* ) hbqt_par_QToolBar( 1 )->addAction( QIcon( hbqt_par_QString( 2 ) ), hbqt_par_QString( 3 ), hbqt_par_QObject( 4 ), hbqt_par_char( 5 ) ) ); +} + +/* + * QAction * addSeparator () + */ +HB_FUNC( QT_QTOOLBAR_ADDSEPARATOR ) +{ + hb_retptr( ( QAction* ) hbqt_par_QToolBar( 1 )->addSeparator( ) ); +} + +/* + * QAction * addWidget ( QWidget * widget ) + */ HB_FUNC( QT_QTOOLBAR_ADDWIDGET ) { hb_retptr( ( QAction* ) hbqt_par_QToolBar( 1 )->addWidget( hbqt_par_QWidget( 2 ) ) ); } /* -Qt::ToolBarAreas allowedAreas () const -*/ + * Qt::ToolBarAreas allowedAreas () const + */ HB_FUNC( QT_QTOOLBAR_ALLOWEDAREAS ) { - hb_retni( hbqt_par_QToolBar( 1 )->allowedAreas() ); + hb_retni( hbqt_par_QToolBar( 1 )->allowedAreas( ) ); } /* -void clear () -*/ + * void clear () + */ HB_FUNC( QT_QTOOLBAR_CLEAR ) { - hbqt_par_QToolBar( 1 )->clear(); + hbqt_par_QToolBar( 1 )->clear( ); } /* -QAction * insertSeparator ( QAction * before ) -*/ + * QSize iconSize () const + */ +HB_FUNC( QT_QTOOLBAR_ICONSIZE ) +{ + hbqt_ret_QSize( hbqt_par_QToolBar( 1 )->iconSize( ) ); +} + +/* + * QAction * insertSeparator ( QAction * before ) + */ HB_FUNC( QT_QTOOLBAR_INSERTSEPARATOR ) { hb_retptr( ( QAction* ) hbqt_par_QToolBar( 1 )->insertSeparator( hbqt_par_QAction( 2 ) ) ); } /* -QAction * insertWidget ( QAction * before, QWidget * widget ) -*/ + * QAction * insertWidget ( QAction * before, QWidget * widget ) + */ HB_FUNC( QT_QTOOLBAR_INSERTWIDGET ) { hb_retptr( ( QAction* ) hbqt_par_QToolBar( 1 )->insertWidget( hbqt_par_QAction( 2 ), hbqt_par_QWidget( 3 ) ) ); } /* -bool isAreaAllowed( Qt::ToolBarArea area ) const -*/ + * bool isAreaAllowed ( Qt::ToolBarArea area ) const + */ HB_FUNC( QT_QTOOLBAR_ISAREAALLOWED ) { - hb_retl( hbqt_par_QToolBar( 1 )->isAreaAllowed( ( Qt::ToolBarArea ) hb_parni(2) ) ); + hb_retl( hbqt_par_QToolBar( 1 )->isAreaAllowed( ( Qt::ToolBarArea ) hb_parni( 2 ) ) ); } /* -bool isFloatable () const -*/ + * bool isFloatable () const + */ HB_FUNC( QT_QTOOLBAR_ISFLOATABLE ) { - hb_retl( hbqt_par_QToolBar( 1 )->isFloatable() ); + hb_retl( hbqt_par_QToolBar( 1 )->isFloatable( ) ); } /* -bool isFloating () const -*/ + * bool isFloating () const + */ HB_FUNC( QT_QTOOLBAR_ISFLOATING ) { - hb_retl( hbqt_par_QToolBar( 1 )->isFloating() ); + hb_retl( hbqt_par_QToolBar( 1 )->isFloating( ) ); } /* -bool isMovable () const -*/ + * bool isMovable () const + */ HB_FUNC( QT_QTOOLBAR_ISMOVABLE ) { - hb_retl( hbqt_par_QToolBar( 1 )->isMovable() ); + hb_retl( hbqt_par_QToolBar( 1 )->isMovable( ) ); } /* -Qt::Orientation orientation () const -*/ + * Qt::Orientation orientation () const + */ HB_FUNC( QT_QTOOLBAR_ORIENTATION ) { - hb_retni( hbqt_par_QToolBar( 1 )->orientation() ); + hb_retni( hbqt_par_QToolBar( 1 )->orientation( ) ); } /* -void setAllowedAreas( Qt::ToolBarAreas areas ) -*/ + * void setAllowedAreas ( Qt::ToolBarAreas areas ) + */ HB_FUNC( QT_QTOOLBAR_SETALLOWEDAREAS ) { - hbqt_par_QToolBar( 1 )->setAllowedAreas( ( Qt::ToolBarAreas ) hb_parni(2) ); + hbqt_par_QToolBar( 1 )->setAllowedAreas( ( Qt::ToolBarAreas ) hb_parni( 2 ) ); } /* -void setFloatable ( bool floatable ) -*/ + * void setFloatable ( bool floatable ) + */ HB_FUNC( QT_QTOOLBAR_SETFLOATABLE ) { - hbqt_par_QToolBar( 1 )->setFloatable( hb_parl(2) ); + hbqt_par_QToolBar( 1 )->setFloatable( hb_parl( 2 ) ); } /* -void setMovable ( bool movable ) -*/ + * void setMovable ( bool movable ) + */ HB_FUNC( QT_QTOOLBAR_SETMOVABLE ) { - hbqt_par_QToolBar( 1 )->setMovable( hb_parl(2) ); + hbqt_par_QToolBar( 1 )->setMovable( hb_parl( 2 ) ); } /* -void setOrientation ( Qt::Orientation orientation ) -*/ + * void setOrientation ( Qt::Orientation orientation ) + */ HB_FUNC( QT_QTOOLBAR_SETORIENTATION ) { - hbqt_par_QToolBar( 1 )->setOrientation( ( Qt::Orientation ) hb_parni(2) ); + hbqt_par_QToolBar( 1 )->setOrientation( ( Qt::Orientation ) hb_parni( 2 ) ); } /* -QAction * toggleViewAction () const -*/ + * QAction * toggleViewAction () const + */ HB_FUNC( QT_QTOOLBAR_TOGGLEVIEWACTION ) { - hb_retptr( ( QAction* ) hbqt_par_QToolBar( 1 )->toggleViewAction() ); + hb_retptr( ( QAction* ) hbqt_par_QToolBar( 1 )->toggleViewAction( ) ); } /* -Qt::ToolButtonStyle toolButtonStyle () const -*/ + * Qt::ToolButtonStyle toolButtonStyle () const + */ HB_FUNC( QT_QTOOLBAR_TOOLBUTTONSTYLE ) { - hb_retni( hbqt_par_QToolBar( 1 )->toolButtonStyle() ); + hb_retni( hbqt_par_QToolBar( 1 )->toolButtonStyle( ) ); } /* -QWidget * widgetForAction ( QAction * action ) const -*/ + * QWidget * widgetForAction ( QAction * action ) const + */ HB_FUNC( QT_QTOOLBAR_WIDGETFORACTION ) { hb_retptr( ( QWidget* ) hbqt_par_QToolBar( 1 )->widgetForAction( hbqt_par_QAction( 2 ) ) ); } -/* -void setToolButtonStyle ( Qt::ToolButtonStyle toolButtonStyle ) -*/ -HB_FUNC( QT_QTOOLBAR_SETTOOLBUTTONSTYLE ) -{ - hbqt_par_QToolBar( 1 )->setToolButtonStyle( ( Qt::ToolButtonStyle ) hb_parni(2) ); -} /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qtoolbox.cpp b/harbour/contrib/hbqt/hbqt_qtoolbox.cpp index 3b9118d5f4..657b584d39 100644 --- a/harbour/contrib/hbqt/hbqt_qtoolbox.cpp +++ b/harbour/contrib/hbqt/hbqt_qtoolbox.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,18 +55,171 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 17/18 [ 94.44% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * QIcon itemIcon ( int index ) const + */ + #include -/*----------------------------------------------------------------------*/ + /* -QToolBox ( QWidget * parent = 0, Qt::WindowFlags f = 0 ) -*/ + * QToolBox ( QWidget * parent = 0, Qt::WindowFlags f = 0 ) + * ~QToolBox () + */ HB_FUNC( QT_QTOOLBOX ) { hb_retptr( ( QToolBox* ) new QToolBox( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ); } +/* + * int addItem ( QWidget * widget, const QIcon & iconSet, const QString & text ) + */ +HB_FUNC( QT_QTOOLBOX_ADDITEM ) +{ + hb_retni( hbqt_par_QToolBox( 1 )->addItem( hbqt_par_QWidget( 2 ), QIcon( hbqt_par_QString( 3 ) ), hbqt_par_QString( 4 ) ) ); +} + +/* + * int addItem ( QWidget * w, const QString & text ) + */ +HB_FUNC( QT_QTOOLBOX_ADDITEM_1 ) +{ + hb_retni( hbqt_par_QToolBox( 1 )->addItem( hbqt_par_QWidget( 2 ), hbqt_par_QString( 3 ) ) ); +} + +/* + * int count () const + */ +HB_FUNC( QT_QTOOLBOX_COUNT ) +{ + hb_retni( hbqt_par_QToolBox( 1 )->count( ) ); +} + +/* + * int currentIndex () const + */ +HB_FUNC( QT_QTOOLBOX_CURRENTINDEX ) +{ + hb_retni( hbqt_par_QToolBox( 1 )->currentIndex( ) ); +} + +/* + * QWidget * currentWidget () const + */ +HB_FUNC( QT_QTOOLBOX_CURRENTWIDGET ) +{ + hb_retptr( ( QWidget* ) hbqt_par_QToolBox( 1 )->currentWidget( ) ); +} + +/* + * int indexOf ( QWidget * widget ) const + */ +HB_FUNC( QT_QTOOLBOX_INDEXOF ) +{ + hb_retni( hbqt_par_QToolBox( 1 )->indexOf( hbqt_par_QWidget( 2 ) ) ); +} + +/* + * int insertItem ( int index, QWidget * widget, const QIcon & icon, const QString & text ) + */ +HB_FUNC( QT_QTOOLBOX_INSERTITEM ) +{ + hb_retni( hbqt_par_QToolBox( 1 )->insertItem( hb_parni( 2 ), hbqt_par_QWidget( 3 ), QIcon( hbqt_par_QString( 4 ) ), hbqt_par_QString( 5 ) ) ); +} + +/* + * int insertItem ( int index, QWidget * widget, const QString & text ) + */ +HB_FUNC( QT_QTOOLBOX_INSERTITEM_1 ) +{ + hb_retni( hbqt_par_QToolBox( 1 )->insertItem( hb_parni( 2 ), hbqt_par_QWidget( 3 ), hbqt_par_QString( 4 ) ) ); +} + +/* + * bool isItemEnabled ( int index ) const + */ +HB_FUNC( QT_QTOOLBOX_ISITEMENABLED ) +{ + hb_retl( hbqt_par_QToolBox( 1 )->isItemEnabled( hb_parni( 2 ) ) ); +} + +/* + * QString itemText ( int index ) const + */ +HB_FUNC( QT_QTOOLBOX_ITEMTEXT ) +{ + hb_retc( hbqt_par_QToolBox( 1 )->itemText( hb_parni( 2 )).toLatin1().data() ); +} + +/* + * QString itemToolTip ( int index ) const + */ +HB_FUNC( QT_QTOOLBOX_ITEMTOOLTIP ) +{ + hb_retc( hbqt_par_QToolBox( 1 )->itemToolTip( hb_parni( 2 )).toLatin1().data() ); +} + +/* + * void removeItem ( int index ) + */ +HB_FUNC( QT_QTOOLBOX_REMOVEITEM ) +{ + hbqt_par_QToolBox( 1 )->removeItem( hb_parni( 2 ) ); +} + +/* + * void setItemEnabled ( int index, bool enabled ) + */ +HB_FUNC( QT_QTOOLBOX_SETITEMENABLED ) +{ + hbqt_par_QToolBox( 1 )->setItemEnabled( hb_parni( 2 ), hb_parl( 3 ) ); +} + +/* + * void setItemIcon ( int index, const QIcon & icon ) + */ +HB_FUNC( QT_QTOOLBOX_SETITEMICON ) +{ + hbqt_par_QToolBox( 1 )->setItemIcon( hb_parni( 2 ), QIcon( hbqt_par_QString( 3 ) ) ); +} + +/* + * void setItemText ( int index, const QString & text ) + */ +HB_FUNC( QT_QTOOLBOX_SETITEMTEXT ) +{ + hbqt_par_QToolBox( 1 )->setItemText( hb_parni( 2 ), hbqt_par_QString( 3 ) ); +} + +/* + * void setItemToolTip ( int index, const QString & toolTip ) + */ +HB_FUNC( QT_QTOOLBOX_SETITEMTOOLTIP ) +{ + hbqt_par_QToolBox( 1 )->setItemToolTip( hb_parni( 2 ), hbqt_par_QString( 3 ) ); +} + +/* + * QWidget * widget ( int index ) const + */ +HB_FUNC( QT_QTOOLBOX_WIDGET ) +{ + hb_retptr( ( QWidget* ) hbqt_par_QToolBox( 1 )->widget( hb_parni( 2 ) ) ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qtoolbutton.cpp b/harbour/contrib/hbqt/hbqt_qtoolbutton.cpp index 65550b5172..21e75382f1 100644 --- a/harbour/contrib/hbqt/hbqt_qtoolbutton.cpp +++ b/harbour/contrib/hbqt/hbqt_qtoolbutton.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,122 +55,106 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -QToolButton ( QWidget * parent = 0 ) -*/ + * QToolButton ( QWidget * parent = 0 ) + * ~QToolButton () + */ HB_FUNC( QT_QTOOLBUTTON ) { hb_retptr( ( QToolButton* ) new QToolButton( hbqt_par_QWidget( 1 ) ) ); } /* -Qt::ArrowType arrowType () const -*/ + * Qt::ArrowType arrowType () const + */ HB_FUNC( QT_QTOOLBUTTON_ARROWTYPE ) { - hb_retni( hbqt_par_QToolButton( 1 )->arrowType() ); + hb_retni( hbqt_par_QToolButton( 1 )->arrowType( ) ); } /* -bool autoRaise () const -*/ + * bool autoRaise () const + */ HB_FUNC( QT_QTOOLBUTTON_AUTORAISE ) { - hb_retl( hbqt_par_QToolButton( 1 )->autoRaise() ); + hb_retl( hbqt_par_QToolButton( 1 )->autoRaise( ) ); } /* -QAction * defaultAction () const -*/ + * QAction * defaultAction () const + */ HB_FUNC( QT_QTOOLBUTTON_DEFAULTACTION ) { - hb_retptr( ( QAction* ) hbqt_par_QToolButton( 1 )->defaultAction() ); + hb_retptr( ( QAction* ) hbqt_par_QToolButton( 1 )->defaultAction( ) ); } /* -QMenu * menu () const -*/ + * QMenu * menu () const + */ HB_FUNC( QT_QTOOLBUTTON_MENU ) { - hb_retptr( ( QMenu* ) hbqt_par_QToolButton( 1 )->menu() ); + hb_retptr( ( QMenu* ) hbqt_par_QToolButton( 1 )->menu( ) ); } /* -ToolButtonPopupMode popupMode () const -*/ + * ToolButtonPopupMode popupMode () const + */ HB_FUNC( QT_QTOOLBUTTON_POPUPMODE ) { - hb_retni( hbqt_par_QToolButton( 1 )->popupMode() ); + hb_retni( hbqt_par_QToolButton( 1 )->popupMode( ) ); } /* -void setArrowType ( Qt::ArrowType type ) -*/ + * void setArrowType ( Qt::ArrowType type ) + */ HB_FUNC( QT_QTOOLBUTTON_SETARROWTYPE ) { - hbqt_par_QToolButton( 1 )->setArrowType( ( Qt::ArrowType ) hb_parni(2) ); + hbqt_par_QToolButton( 1 )->setArrowType( ( Qt::ArrowType ) hb_parni( 2 ) ); } /* -void setAutoRaise ( bool enable ) -*/ + * void setAutoRaise ( bool enable ) + */ HB_FUNC( QT_QTOOLBUTTON_SETAUTORAISE ) { - hbqt_par_QToolButton( 1 )->setAutoRaise( hb_parl(2) ); + hbqt_par_QToolButton( 1 )->setAutoRaise( hb_parl( 2 ) ); } /* -void setMenu ( QMenu * menu ) -*/ + * void setMenu ( QMenu * menu ) + */ HB_FUNC( QT_QTOOLBUTTON_SETMENU ) { hbqt_par_QToolButton( 1 )->setMenu( hbqt_par_QMenu( 2 ) ); } /* -void setPopupMode ( ToolButtonPopupMode mode ) -*/ + * void setPopupMode ( ToolButtonPopupMode mode ) + */ HB_FUNC( QT_QTOOLBUTTON_SETPOPUPMODE ) { - hbqt_par_QToolButton( 1 )->setPopupMode( ( QToolButton::ToolButtonPopupMode ) hb_parni(2) ); + hbqt_par_QToolButton( 1 )->setPopupMode( ( QToolButton::ToolButtonPopupMode ) hb_parni( 2 ) ); } /* -Qt::ToolButtonStyle toolButtonStyle () const -*/ + * Qt::ToolButtonStyle toolButtonStyle () const + */ HB_FUNC( QT_QTOOLBUTTON_TOOLBUTTONSTYLE ) { - hb_retni( hbqt_par_QToolButton( 1 )->toolButtonStyle() ); + hb_retni( hbqt_par_QToolButton( 1 )->toolButtonStyle( ) ); } -/* -void setDefaultAction ( QAction * action ) -*/ -HB_FUNC( QT_QTOOLBUTTON_SETDEFAULTACTION ) -{ - hbqt_par_QToolButton( 1 )->setDefaultAction( hbqt_par_QAction( 2 ) ); -} - -/* -void setToolButtonStyle ( Qt::ToolButtonStyle style ) -*/ -HB_FUNC( QT_QTOOLBUTTON_SETTOOLBUTTONSTYLE ) -{ - hbqt_par_QToolButton( 1 )->setToolButtonStyle( ( Qt::ToolButtonStyle ) hb_parni(2) ); -} - -/* -void showMenu () -*/ -HB_FUNC( QT_QTOOLBUTTON_SHOWMENU ) -{ - hbqt_par_QToolButton( 1 )->showMenu(); -} /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qtreeview.cpp b/harbour/contrib/hbqt/hbqt_qtreeview.cpp index 2c4da2f8e9..d719886256 100644 --- a/harbour/contrib/hbqt/hbqt_qtreeview.cpp +++ b/harbour/contrib/hbqt/hbqt_qtreeview.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -57,13 +57,31 @@ /*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ +/* + * Constructed[ 31/41 [ 75.61% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * QModelIndex indexAbove ( const QModelIndex & index ) const + * QModelIndex indexBelow ( const QModelIndex & index ) const + * bool isExpanded ( const QModelIndex & index ) const + * bool isFirstColumnSpanned ( int row, const QModelIndex & parent ) const + * bool isRowHidden ( int row, const QModelIndex & parent ) const + * virtual void scrollTo ( const QModelIndex & index, ScrollHint hint = EnsureVisible ) + * void setExpanded ( const QModelIndex & index, bool expanded ) + * void setFirstColumnSpanned ( int row, const QModelIndex & parent, bool span ) + * void setRowHidden ( int row, const QModelIndex & parent, bool hide ) + * virtual QRect visualRect ( const QModelIndex & index ) const + */ + #include - /* * QTreeView ( QWidget * parent = 0 ) * ~QTreeView () @@ -73,7 +91,6 @@ HB_FUNC( QT_QTREEVIEW ) hb_retptr( ( QTreeView* ) new QTreeView( hbqt_par_QWidget( 1 ) ) ); } - /* * bool allColumnsShowFocus () const */ @@ -95,7 +112,7 @@ HB_FUNC( QT_QTREEVIEW_AUTOEXPANDDELAY ) */ HB_FUNC( QT_QTREEVIEW_COLUMNAT ) { - hb_retni( hbqt_par_QTreeView( 1 )->columnAt( hb_parni( 1 ) ) ); + hb_retni( hbqt_par_QTreeView( 1 )->columnAt( hb_parni( 2 ) ) ); } /* @@ -103,7 +120,7 @@ HB_FUNC( QT_QTREEVIEW_COLUMNAT ) */ HB_FUNC( QT_QTREEVIEW_COLUMNVIEWPORTPOSITION ) { - hb_retni( hbqt_par_QTreeView( 1 )->columnViewportPosition( hb_parni( 1 ) ) ); + hb_retni( hbqt_par_QTreeView( 1 )->columnViewportPosition( hb_parni( 2 ) ) ); } /* @@ -111,7 +128,7 @@ HB_FUNC( QT_QTREEVIEW_COLUMNVIEWPORTPOSITION ) */ HB_FUNC( QT_QTREEVIEW_COLUMNWIDTH ) { - hb_retni( hbqt_par_QTreeView( 1 )->columnWidth( hb_parni( 1 ) ) ); + hb_retni( hbqt_par_QTreeView( 1 )->columnWidth( hb_parni( 2 ) ) ); } /* @@ -151,7 +168,7 @@ HB_FUNC( QT_QTREEVIEW_ISANIMATED ) */ HB_FUNC( QT_QTREEVIEW_ISCOLUMNHIDDEN ) { - hb_retl( hbqt_par_QTreeView( 1 )->isColumnHidden( hb_parni( 1 ) ) ); + hb_retl( hbqt_par_QTreeView( 1 )->isColumnHidden( hb_parni( 2 ) ) ); } /* @@ -191,7 +208,7 @@ HB_FUNC( QT_QTREEVIEW_ROOTISDECORATED ) */ HB_FUNC( QT_QTREEVIEW_SETALLCOLUMNSSHOWFOCUS ) { - hbqt_par_QTreeView( 1 )->setAllColumnsShowFocus( hb_parl( 1 ) ); + hbqt_par_QTreeView( 1 )->setAllColumnsShowFocus( hb_parl( 2 ) ); } /* @@ -199,7 +216,7 @@ HB_FUNC( QT_QTREEVIEW_SETALLCOLUMNSSHOWFOCUS ) */ HB_FUNC( QT_QTREEVIEW_SETANIMATED ) { - hbqt_par_QTreeView( 1 )->setAnimated( hb_parl( 1 ) ); + hbqt_par_QTreeView( 1 )->setAnimated( hb_parl( 2 ) ); } /* @@ -207,7 +224,7 @@ HB_FUNC( QT_QTREEVIEW_SETANIMATED ) */ HB_FUNC( QT_QTREEVIEW_SETAUTOEXPANDDELAY ) { - hbqt_par_QTreeView( 1 )->setAutoExpandDelay( hb_parni( 1 ) ); + hbqt_par_QTreeView( 1 )->setAutoExpandDelay( hb_parni( 2 ) ); } /* @@ -215,7 +232,7 @@ HB_FUNC( QT_QTREEVIEW_SETAUTOEXPANDDELAY ) */ HB_FUNC( QT_QTREEVIEW_SETCOLUMNHIDDEN ) { - hbqt_par_QTreeView( 1 )->setColumnHidden( hb_parni( 1 ), hb_parl( 2 ) ); + hbqt_par_QTreeView( 1 )->setColumnHidden( hb_parni( 2 ), hb_parl( 3 ) ); } /* @@ -223,7 +240,7 @@ HB_FUNC( QT_QTREEVIEW_SETCOLUMNHIDDEN ) */ HB_FUNC( QT_QTREEVIEW_SETCOLUMNWIDTH ) { - hbqt_par_QTreeView( 1 )->setColumnWidth( hb_parni( 1 ), hb_parni( 2 ) ); + hbqt_par_QTreeView( 1 )->setColumnWidth( hb_parni( 2 ), hb_parni( 3 ) ); } /* @@ -231,7 +248,7 @@ HB_FUNC( QT_QTREEVIEW_SETCOLUMNWIDTH ) */ HB_FUNC( QT_QTREEVIEW_SETEXPANDSONDOUBLECLICK ) { - hbqt_par_QTreeView( 1 )->setExpandsOnDoubleClick( hb_parl( 1 ) ); + hbqt_par_QTreeView( 1 )->setExpandsOnDoubleClick( hb_parl( 2 ) ); } /* @@ -239,7 +256,7 @@ HB_FUNC( QT_QTREEVIEW_SETEXPANDSONDOUBLECLICK ) */ HB_FUNC( QT_QTREEVIEW_SETHEADER ) { - hbqt_par_QTreeView( 1 )->setHeader( hbqt_par_QHeaderView( 1 ) ); + hbqt_par_QTreeView( 1 )->setHeader( hbqt_par_QHeaderView( 2 ) ); } /* @@ -247,7 +264,7 @@ HB_FUNC( QT_QTREEVIEW_SETHEADER ) */ HB_FUNC( QT_QTREEVIEW_SETHEADERHIDDEN ) { - hbqt_par_QTreeView( 1 )->setHeaderHidden( hb_parl( 1 ) ); + hbqt_par_QTreeView( 1 )->setHeaderHidden( hb_parl( 2 ) ); } /* @@ -255,7 +272,7 @@ HB_FUNC( QT_QTREEVIEW_SETHEADERHIDDEN ) */ HB_FUNC( QT_QTREEVIEW_SETINDENTATION ) { - hbqt_par_QTreeView( 1 )->setIndentation( hb_parni( 1 ) ); + hbqt_par_QTreeView( 1 )->setIndentation( hb_parni( 2 ) ); } /* @@ -263,7 +280,7 @@ HB_FUNC( QT_QTREEVIEW_SETINDENTATION ) */ HB_FUNC( QT_QTREEVIEW_SETITEMSEXPANDABLE ) { - hbqt_par_QTreeView( 1 )->setItemsExpandable( hb_parl( 1 ) ); + hbqt_par_QTreeView( 1 )->setItemsExpandable( hb_parl( 2 ) ); } /* @@ -271,7 +288,7 @@ HB_FUNC( QT_QTREEVIEW_SETITEMSEXPANDABLE ) */ HB_FUNC( QT_QTREEVIEW_SETROOTISDECORATED ) { - hbqt_par_QTreeView( 1 )->setRootIsDecorated( hb_parl( 1 ) ); + hbqt_par_QTreeView( 1 )->setRootIsDecorated( hb_parl( 2 ) ); } /* @@ -279,7 +296,7 @@ HB_FUNC( QT_QTREEVIEW_SETROOTISDECORATED ) */ HB_FUNC( QT_QTREEVIEW_SETSORTINGENABLED ) { - hbqt_par_QTreeView( 1 )->setSortingEnabled( hb_parl( 1 ) ); + hbqt_par_QTreeView( 1 )->setSortingEnabled( hb_parl( 2 ) ); } /* @@ -287,7 +304,7 @@ HB_FUNC( QT_QTREEVIEW_SETSORTINGENABLED ) */ HB_FUNC( QT_QTREEVIEW_SETUNIFORMROWHEIGHTS ) { - hbqt_par_QTreeView( 1 )->setUniformRowHeights( hb_parl( 1 ) ); + hbqt_par_QTreeView( 1 )->setUniformRowHeights( hb_parl( 2 ) ); } /* @@ -295,7 +312,7 @@ HB_FUNC( QT_QTREEVIEW_SETUNIFORMROWHEIGHTS ) */ HB_FUNC( QT_QTREEVIEW_SETWORDWRAP ) { - hbqt_par_QTreeView( 1 )->setWordWrap( hb_parl( 1 ) ); + hbqt_par_QTreeView( 1 )->setWordWrap( hb_parl( 2 ) ); } /* @@ -303,7 +320,7 @@ HB_FUNC( QT_QTREEVIEW_SETWORDWRAP ) */ HB_FUNC( QT_QTREEVIEW_SORTBYCOLUMN ) { - hbqt_par_QTreeView( 1 )->sortByColumn( hb_parni( 1 ), ( Qt::SortOrder ) hb_parni( 2 ) ); + hbqt_par_QTreeView( 1 )->sortByColumn( hb_parni( 2 ), ( Qt::SortOrder ) hb_parni( 3 ) ); } /* @@ -323,7 +340,7 @@ HB_FUNC( QT_QTREEVIEW_WORDWRAP ) } - -#endif +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ /*----------------------------------------------------------------------*/ diff --git a/harbour/contrib/hbqt/hbqt_qtreewidget.cpp b/harbour/contrib/hbqt/hbqt_qtreewidget.cpp index 67f6c2dd59..53fd77594e 100644 --- a/harbour/contrib/hbqt/hbqt_qtreewidget.cpp +++ b/harbour/contrib/hbqt/hbqt_qtreewidget.cpp @@ -57,13 +57,26 @@ /*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ +/* + * Constructed[ 32/37 [ 86.49% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * void addTopLevelItems ( const QList & items ) + * QList findItems ( const QString & text, Qt::MatchFlags flags, int column = 0 ) const + * void insertTopLevelItems ( int index, const QList & items ) + * QList selectedItems () const + * void setHeaderLabels ( const QStringList & labels ) + */ + #include - /* * QTreeWidget ( QWidget * parent = 0 ) * ~QTreeWidget () @@ -73,13 +86,12 @@ HB_FUNC( QT_QTREEWIDGET ) hb_retptr( ( QTreeWidget* ) new QTreeWidget( hbqt_par_QWidget( 1 ) ) ); } - /* * void addTopLevelItem ( QTreeWidgetItem * item ) */ HB_FUNC( QT_QTREEWIDGET_ADDTOPLEVELITEM ) { - hbqt_par_QTreeWidget( 1 )->addTopLevelItem( hbqt_par_QTreeWidgetItem( 1 ) ); + hbqt_par_QTreeWidget( 1 )->addTopLevelItem( hbqt_par_QTreeWidgetItem( 2 ) ); } /* @@ -87,7 +99,7 @@ HB_FUNC( QT_QTREEWIDGET_ADDTOPLEVELITEM ) */ HB_FUNC( QT_QTREEWIDGET_CLOSEPERSISTENTEDITOR ) { - hbqt_par_QTreeWidget( 1 )->closePersistentEditor( hbqt_par_QTreeWidgetItem( 1 ), hb_parni( 2 ) ); + hbqt_par_QTreeWidget( 1 )->closePersistentEditor( hbqt_par_QTreeWidgetItem( 2 ), hb_parni( 3 ) ); } /* @@ -119,7 +131,7 @@ HB_FUNC( QT_QTREEWIDGET_CURRENTITEM ) */ HB_FUNC( QT_QTREEWIDGET_EDITITEM ) { - hbqt_par_QTreeWidget( 1 )->editItem( hbqt_par_QTreeWidgetItem( 1 ), hb_parni( 2 ) ); + hbqt_par_QTreeWidget( 1 )->editItem( hbqt_par_QTreeWidgetItem( 2 ), hb_parni( 3 ) ); } /* @@ -135,7 +147,7 @@ HB_FUNC( QT_QTREEWIDGET_HEADERITEM ) */ HB_FUNC( QT_QTREEWIDGET_INDEXOFTOPLEVELITEM ) { - hb_retni( hbqt_par_QTreeWidget( 1 )->indexOfTopLevelItem( hbqt_par_QTreeWidgetItem( 1 ) ) ); + hb_retni( hbqt_par_QTreeWidget( 1 )->indexOfTopLevelItem( hbqt_par_QTreeWidgetItem( 2 ) ) ); } /* @@ -143,7 +155,7 @@ HB_FUNC( QT_QTREEWIDGET_INDEXOFTOPLEVELITEM ) */ HB_FUNC( QT_QTREEWIDGET_INSERTTOPLEVELITEM ) { - hbqt_par_QTreeWidget( 1 )->insertTopLevelItem( hb_parni( 1 ), hbqt_par_QTreeWidgetItem( 2 ) ); + hbqt_par_QTreeWidget( 1 )->insertTopLevelItem( hb_parni( 2 ), hbqt_par_QTreeWidgetItem( 3 ) ); } /* @@ -159,7 +171,7 @@ HB_FUNC( QT_QTREEWIDGET_INVISIBLEROOTITEM ) */ HB_FUNC( QT_QTREEWIDGET_ISFIRSTITEMCOLUMNSPANNED ) { - hb_retl( hbqt_par_QTreeWidget( 1 )->isFirstItemColumnSpanned( hbqt_par_QTreeWidgetItem( 1 ) ) ); + hb_retl( hbqt_par_QTreeWidget( 1 )->isFirstItemColumnSpanned( hbqt_par_QTreeWidgetItem( 2 ) ) ); } /* @@ -167,15 +179,23 @@ HB_FUNC( QT_QTREEWIDGET_ISFIRSTITEMCOLUMNSPANNED ) */ HB_FUNC( QT_QTREEWIDGET_ITEMABOVE ) { - hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidget( 1 )->itemAbove( hbqt_par_QTreeWidgetItem( 1 ) ) ); + hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidget( 1 )->itemAbove( hbqt_par_QTreeWidgetItem( 2 ) ) ); +} + +/* + * QTreeWidgetItem * itemAt ( const QPoint & p ) const + */ +HB_FUNC( QT_QTREEWIDGET_ITEMAT ) +{ + hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidget( 1 )->itemAt( hbqt_const_QPoint( 2 ) ) ); } /* * QTreeWidgetItem * itemAt ( int x, int y ) const */ -HB_FUNC( QT_QTREEWIDGET_ITEMAT ) +HB_FUNC( QT_QTREEWIDGET_ITEMAT_1 ) { - hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidget( 1 )->itemAt( hb_parni( 1 ), hb_parni( 2 ) ) ); + hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidget( 1 )->itemAt( hb_parni( 2 ), hb_parni( 3 ) ) ); } /* @@ -183,7 +203,7 @@ HB_FUNC( QT_QTREEWIDGET_ITEMAT ) */ HB_FUNC( QT_QTREEWIDGET_ITEMBELOW ) { - hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidget( 1 )->itemBelow( hbqt_par_QTreeWidgetItem( 1 ) ) ); + hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidget( 1 )->itemBelow( hbqt_par_QTreeWidgetItem( 2 ) ) ); } /* @@ -191,7 +211,7 @@ HB_FUNC( QT_QTREEWIDGET_ITEMBELOW ) */ HB_FUNC( QT_QTREEWIDGET_ITEMWIDGET ) { - hb_retptr( ( QWidget* ) hbqt_par_QTreeWidget( 1 )->itemWidget( hbqt_par_QTreeWidgetItem( 1 ), hb_parni( 2 ) ) ); + hb_retptr( ( QWidget* ) hbqt_par_QTreeWidget( 1 )->itemWidget( hbqt_par_QTreeWidgetItem( 2 ), hb_parni( 3 ) ) ); } /* @@ -199,7 +219,7 @@ HB_FUNC( QT_QTREEWIDGET_ITEMWIDGET ) */ HB_FUNC( QT_QTREEWIDGET_OPENPERSISTENTEDITOR ) { - hbqt_par_QTreeWidget( 1 )->openPersistentEditor( hbqt_par_QTreeWidgetItem( 1 ), hb_parni( 2 ) ); + hbqt_par_QTreeWidget( 1 )->openPersistentEditor( hbqt_par_QTreeWidgetItem( 2 ), hb_parni( 3 ) ); } /* @@ -207,7 +227,7 @@ HB_FUNC( QT_QTREEWIDGET_OPENPERSISTENTEDITOR ) */ HB_FUNC( QT_QTREEWIDGET_REMOVEITEMWIDGET ) { - hbqt_par_QTreeWidget( 1 )->removeItemWidget( hbqt_par_QTreeWidgetItem( 1 ), hb_parni( 2 ) ); + hbqt_par_QTreeWidget( 1 )->removeItemWidget( hbqt_par_QTreeWidgetItem( 2 ), hb_parni( 3 ) ); } /* @@ -215,7 +235,7 @@ HB_FUNC( QT_QTREEWIDGET_REMOVEITEMWIDGET ) */ HB_FUNC( QT_QTREEWIDGET_SETCOLUMNCOUNT ) { - hbqt_par_QTreeWidget( 1 )->setColumnCount( hb_parni( 1 ) ); + hbqt_par_QTreeWidget( 1 )->setColumnCount( hb_parni( 2 ) ); } /* @@ -223,7 +243,7 @@ HB_FUNC( QT_QTREEWIDGET_SETCOLUMNCOUNT ) */ HB_FUNC( QT_QTREEWIDGET_SETCURRENTITEM ) { - hbqt_par_QTreeWidget( 1 )->setCurrentItem( hbqt_par_QTreeWidgetItem( 1 ) ); + hbqt_par_QTreeWidget( 1 )->setCurrentItem( hbqt_par_QTreeWidgetItem( 2 ) ); } /* @@ -231,7 +251,7 @@ HB_FUNC( QT_QTREEWIDGET_SETCURRENTITEM ) */ HB_FUNC( QT_QTREEWIDGET_SETCURRENTITEM_1 ) { - hbqt_par_QTreeWidget( 1 )->setCurrentItem( hbqt_par_QTreeWidgetItem( 1 ), hb_parni( 2 ) ); + hbqt_par_QTreeWidget( 1 )->setCurrentItem( hbqt_par_QTreeWidgetItem( 2 ), hb_parni( 3 ) ); } /* @@ -239,7 +259,7 @@ HB_FUNC( QT_QTREEWIDGET_SETCURRENTITEM_1 ) */ HB_FUNC( QT_QTREEWIDGET_SETCURRENTITEM_2 ) { - hbqt_par_QTreeWidget( 1 )->setCurrentItem( hbqt_par_QTreeWidgetItem( 1 ), hb_parni( 2 ), ( QItemSelectionModel::SelectionFlags ) hb_parni( 3 ) ); + hbqt_par_QTreeWidget( 1 )->setCurrentItem( hbqt_par_QTreeWidgetItem( 2 ), hb_parni( 3 ), ( QItemSelectionModel::SelectionFlags ) hb_parni( 4 ) ); } /* @@ -247,7 +267,7 @@ HB_FUNC( QT_QTREEWIDGET_SETCURRENTITEM_2 ) */ HB_FUNC( QT_QTREEWIDGET_SETFIRSTITEMCOLUMNSPANNED ) { - hbqt_par_QTreeWidget( 1 )->setFirstItemColumnSpanned( hbqt_par_QTreeWidgetItem( 1 ), hb_parl( 2 ) ); + hbqt_par_QTreeWidget( 1 )->setFirstItemColumnSpanned( hbqt_par_QTreeWidgetItem( 2 ), hb_parl( 3 ) ); } /* @@ -255,7 +275,7 @@ HB_FUNC( QT_QTREEWIDGET_SETFIRSTITEMCOLUMNSPANNED ) */ HB_FUNC( QT_QTREEWIDGET_SETHEADERITEM ) { - hbqt_par_QTreeWidget( 1 )->setHeaderItem( hbqt_par_QTreeWidgetItem( 1 ) ); + hbqt_par_QTreeWidget( 1 )->setHeaderItem( hbqt_par_QTreeWidgetItem( 2 ) ); } /* @@ -263,7 +283,7 @@ HB_FUNC( QT_QTREEWIDGET_SETHEADERITEM ) */ HB_FUNC( QT_QTREEWIDGET_SETHEADERLABEL ) { - hbqt_par_QTreeWidget( 1 )->setHeaderLabel( hbqt_par_QString( 1 ) ); + hbqt_par_QTreeWidget( 1 )->setHeaderLabel( hbqt_par_QString( 2 ) ); } /* @@ -271,7 +291,7 @@ HB_FUNC( QT_QTREEWIDGET_SETHEADERLABEL ) */ HB_FUNC( QT_QTREEWIDGET_SETITEMWIDGET ) { - hbqt_par_QTreeWidget( 1 )->setItemWidget( hbqt_par_QTreeWidgetItem( 1 ), hb_parni( 2 ), hbqt_par_QWidget( 3 ) ); + hbqt_par_QTreeWidget( 1 )->setItemWidget( hbqt_par_QTreeWidgetItem( 2 ), hb_parni( 3 ), hbqt_par_QWidget( 4 ) ); } /* @@ -287,7 +307,7 @@ HB_FUNC( QT_QTREEWIDGET_SORTCOLUMN ) */ HB_FUNC( QT_QTREEWIDGET_SORTITEMS ) { - hbqt_par_QTreeWidget( 1 )->sortItems( hb_parni( 1 ), ( Qt::SortOrder ) hb_parni( 2 ) ); + hbqt_par_QTreeWidget( 1 )->sortItems( hb_parni( 2 ), ( Qt::SortOrder ) hb_parni( 3 ) ); } /* @@ -295,7 +315,7 @@ HB_FUNC( QT_QTREEWIDGET_SORTITEMS ) */ HB_FUNC( QT_QTREEWIDGET_TAKETOPLEVELITEM ) { - hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidget( 1 )->takeTopLevelItem( hb_parni( 1 ) ) ); + hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidget( 1 )->takeTopLevelItem( hb_parni( 2 ) ) ); } /* @@ -303,7 +323,7 @@ HB_FUNC( QT_QTREEWIDGET_TAKETOPLEVELITEM ) */ HB_FUNC( QT_QTREEWIDGET_TOPLEVELITEM ) { - hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidget( 1 )->topLevelItem( hb_parni( 1 ) ) ); + hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidget( 1 )->topLevelItem( hb_parni( 2 ) ) ); } /* @@ -314,8 +334,16 @@ HB_FUNC( QT_QTREEWIDGET_TOPLEVELITEMCOUNT ) hb_retni( hbqt_par_QTreeWidget( 1 )->topLevelItemCount( ) ); } +/* + * QRect visualItemRect ( const QTreeWidgetItem * item ) const + */ +HB_FUNC( QT_QTREEWIDGET_VISUALITEMRECT ) +{ + hbqt_ret_QRect( hbqt_par_QTreeWidget( 1 )->visualItemRect( hbqt_par_QTreeWidgetItem( 2 ) ) ); +} -#endif +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ /*----------------------------------------------------------------------*/ diff --git a/harbour/contrib/hbqt/hbqt_qtreewidgetitem.cpp b/harbour/contrib/hbqt/hbqt_qtreewidgetitem.cpp index c6214f616e..967dd63b09 100644 --- a/harbour/contrib/hbqt/hbqt_qtreewidgetitem.cpp +++ b/harbour/contrib/hbqt/hbqt_qtreewidgetitem.cpp @@ -57,14 +57,34 @@ /*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ +/* + * Constructed[ 40/53 [ 75.47% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * void addChildren ( const QList & children ) + * QBrush background ( int column ) const + * virtual QVariant data ( int column, int role ) const + * QFont font ( int column ) const + * QBrush foreground ( int column ) const + * QIcon icon ( int column ) const + * void insertChildren ( int index, const QList & children ) + * virtual void read ( QDataStream & in ) + * void setBackground ( int column, const QBrush & brush ) + * virtual void setData ( int column, int role, const QVariant & value ) + * void setFont ( int column, const QFont & font ) + * void setForeground ( int column, const QBrush & brush ) + * QList takeChildren () + */ + #include - - /* * QTreeWidgetItem ( int type = Type ) * QTreeWidgetItem ( const QStringList & strings, int type = Type ) @@ -89,13 +109,12 @@ HB_FUNC( QT_QTREEWIDGETITEM ) } } - /* * void addChild ( QTreeWidgetItem * child ) */ HB_FUNC( QT_QTREEWIDGETITEM_ADDCHILD ) { - hbqt_par_QTreeWidgetItem( 1 )->addChild( hbqt_par_QTreeWidgetItem( 1 ) ); + hbqt_par_QTreeWidgetItem( 1 )->addChild( hbqt_par_QTreeWidgetItem( 2 ) ); } /* @@ -103,7 +122,7 @@ HB_FUNC( QT_QTREEWIDGETITEM_ADDCHILD ) */ HB_FUNC( QT_QTREEWIDGETITEM_CHECKSTATE ) { - hb_retni( hbqt_par_QTreeWidgetItem( 1 )->checkState( hb_parni( 1 ) ) ); + hb_retni( hbqt_par_QTreeWidgetItem( 1 )->checkState( hb_parni( 2 ) ) ); } /* @@ -111,7 +130,7 @@ HB_FUNC( QT_QTREEWIDGETITEM_CHECKSTATE ) */ HB_FUNC( QT_QTREEWIDGETITEM_CHILD ) { - hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidgetItem( 1 )->child( hb_parni( 1 ) ) ); + hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidgetItem( 1 )->child( hb_parni( 2 ) ) ); } /* @@ -130,6 +149,14 @@ HB_FUNC( QT_QTREEWIDGETITEM_CHILDINDICATORPOLICY ) hb_retni( hbqt_par_QTreeWidgetItem( 1 )->childIndicatorPolicy( ) ); } +/* + * virtual QTreeWidgetItem * clone () const + */ +HB_FUNC( QT_QTREEWIDGETITEM_CLONE ) +{ + hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidgetItem( 1 )->clone( ) ); +} + /* * int columnCount () const */ @@ -138,20 +165,12 @@ HB_FUNC( QT_QTREEWIDGETITEM_COLUMNCOUNT ) hb_retni( hbqt_par_QTreeWidgetItem( 1 )->columnCount( ) ); } -/* - * Qt::ItemFlags flags () const - */ -HB_FUNC( QT_QTREEWIDGETITEM_FLAGS ) -{ - hb_retni( hbqt_par_QTreeWidgetItem( 1 )->flags( ) ); -} - /* * int indexOfChild ( QTreeWidgetItem * child ) const */ HB_FUNC( QT_QTREEWIDGETITEM_INDEXOFCHILD ) { - hb_retni( hbqt_par_QTreeWidgetItem( 1 )->indexOfChild( hbqt_par_QTreeWidgetItem( 1 ) ) ); + hb_retni( hbqt_par_QTreeWidgetItem( 1 )->indexOfChild( hbqt_par_QTreeWidgetItem( 2 ) ) ); } /* @@ -159,7 +178,7 @@ HB_FUNC( QT_QTREEWIDGETITEM_INDEXOFCHILD ) */ HB_FUNC( QT_QTREEWIDGETITEM_INSERTCHILD ) { - hbqt_par_QTreeWidgetItem( 1 )->insertChild( hb_parni( 1 ), hbqt_par_QTreeWidgetItem( 2 ) ); + hbqt_par_QTreeWidgetItem( 1 )->insertChild( hb_parni( 2 ), hbqt_par_QTreeWidgetItem( 3 ) ); } /* @@ -215,7 +234,7 @@ HB_FUNC( QT_QTREEWIDGETITEM_PARENT ) */ HB_FUNC( QT_QTREEWIDGETITEM_REMOVECHILD ) { - hbqt_par_QTreeWidgetItem( 1 )->removeChild( hbqt_par_QTreeWidgetItem( 1 ) ); + hbqt_par_QTreeWidgetItem( 1 )->removeChild( hbqt_par_QTreeWidgetItem( 2 ) ); } /* @@ -223,7 +242,7 @@ HB_FUNC( QT_QTREEWIDGETITEM_REMOVECHILD ) */ HB_FUNC( QT_QTREEWIDGETITEM_SETCHECKSTATE ) { - hbqt_par_QTreeWidgetItem( 1 )->setCheckState( hb_parni( 1 ), ( Qt::CheckState ) hb_parni( 2 ) ); + hbqt_par_QTreeWidgetItem( 1 )->setCheckState( hb_parni( 2 ), ( Qt::CheckState ) hb_parni( 3 ) ); } /* @@ -231,7 +250,7 @@ HB_FUNC( QT_QTREEWIDGETITEM_SETCHECKSTATE ) */ HB_FUNC( QT_QTREEWIDGETITEM_SETCHILDINDICATORPOLICY ) { - hbqt_par_QTreeWidgetItem( 1 )->setChildIndicatorPolicy( ( QTreeWidgetItem::ChildIndicatorPolicy ) hb_parni( 1 ) ); + hbqt_par_QTreeWidgetItem( 1 )->setChildIndicatorPolicy( ( QTreeWidgetItem::ChildIndicatorPolicy ) hb_parni( 2 ) ); } /* @@ -239,7 +258,7 @@ HB_FUNC( QT_QTREEWIDGETITEM_SETCHILDINDICATORPOLICY ) */ HB_FUNC( QT_QTREEWIDGETITEM_SETDISABLED ) { - hbqt_par_QTreeWidgetItem( 1 )->setDisabled( hb_parl( 1 ) ); + hbqt_par_QTreeWidgetItem( 1 )->setDisabled( hb_parl( 2 ) ); } /* @@ -247,7 +266,7 @@ HB_FUNC( QT_QTREEWIDGETITEM_SETDISABLED ) */ HB_FUNC( QT_QTREEWIDGETITEM_SETEXPANDED ) { - hbqt_par_QTreeWidgetItem( 1 )->setExpanded( hb_parl( 1 ) ); + hbqt_par_QTreeWidgetItem( 1 )->setExpanded( hb_parl( 2 ) ); } /* @@ -255,15 +274,7 @@ HB_FUNC( QT_QTREEWIDGETITEM_SETEXPANDED ) */ HB_FUNC( QT_QTREEWIDGETITEM_SETFIRSTCOLUMNSPANNED ) { - hbqt_par_QTreeWidgetItem( 1 )->setFirstColumnSpanned( hb_parl( 1 ) ); -} - -/* - * void setFlags ( Qt::ItemFlags flags ) - */ -HB_FUNC( QT_QTREEWIDGETITEM_SETFLAGS ) -{ - hbqt_par_QTreeWidgetItem( 1 )->setFlags( ( Qt::ItemFlags ) hb_parni( 1 ) ); + hbqt_par_QTreeWidgetItem( 1 )->setFirstColumnSpanned( hb_parl( 2 ) ); } /* @@ -271,7 +282,7 @@ HB_FUNC( QT_QTREEWIDGETITEM_SETFLAGS ) */ HB_FUNC( QT_QTREEWIDGETITEM_SETHIDDEN ) { - hbqt_par_QTreeWidgetItem( 1 )->setHidden( hb_parl( 1 ) ); + hbqt_par_QTreeWidgetItem( 1 )->setHidden( hb_parl( 2 ) ); } /* @@ -279,7 +290,7 @@ HB_FUNC( QT_QTREEWIDGETITEM_SETHIDDEN ) */ HB_FUNC( QT_QTREEWIDGETITEM_SETICON ) { - hbqt_par_QTreeWidgetItem( 1 )->setIcon( hb_parni( 1 ), QIcon( hbqt_par_QString( 2 ) ) ); + hbqt_par_QTreeWidgetItem( 1 )->setIcon( hb_parni( 2 ), QIcon( hbqt_par_QString( 3 ) ) ); } /* @@ -287,7 +298,15 @@ HB_FUNC( QT_QTREEWIDGETITEM_SETICON ) */ HB_FUNC( QT_QTREEWIDGETITEM_SETSELECTED ) { - hbqt_par_QTreeWidgetItem( 1 )->setSelected( hb_parl( 1 ) ); + hbqt_par_QTreeWidgetItem( 1 )->setSelected( hb_parl( 2 ) ); +} + +/* + * void setSizeHint ( int column, const QSize & size ) + */ +HB_FUNC( QT_QTREEWIDGETITEM_SETSIZEHINT ) +{ + hbqt_par_QTreeWidgetItem( 1 )->setSizeHint( hb_parni( 2 ), hbqt_const_QSize( 3 ) ); } /* @@ -295,7 +314,7 @@ HB_FUNC( QT_QTREEWIDGETITEM_SETSELECTED ) */ HB_FUNC( QT_QTREEWIDGETITEM_SETSTATUSTIP ) { - hbqt_par_QTreeWidgetItem( 1 )->setStatusTip( hb_parni( 1 ), hbqt_par_QString( 2 ) ); + hbqt_par_QTreeWidgetItem( 1 )->setStatusTip( hb_parni( 2 ), hbqt_par_QString( 3 ) ); } /* @@ -303,7 +322,7 @@ HB_FUNC( QT_QTREEWIDGETITEM_SETSTATUSTIP ) */ HB_FUNC( QT_QTREEWIDGETITEM_SETTEXT ) { - hbqt_par_QTreeWidgetItem( 1 )->setText( hb_parni( 1 ), hbqt_par_QString( 2 ) ); + hbqt_par_QTreeWidgetItem( 1 )->setText( hb_parni( 2 ), hbqt_par_QString( 3 ) ); } /* @@ -311,7 +330,7 @@ HB_FUNC( QT_QTREEWIDGETITEM_SETTEXT ) */ HB_FUNC( QT_QTREEWIDGETITEM_SETTEXTALIGNMENT ) { - hbqt_par_QTreeWidgetItem( 1 )->setTextAlignment( hb_parni( 1 ), hb_parni( 2 ) ); + hbqt_par_QTreeWidgetItem( 1 )->setTextAlignment( hb_parni( 2 ), hb_parni( 3 ) ); } /* @@ -319,7 +338,7 @@ HB_FUNC( QT_QTREEWIDGETITEM_SETTEXTALIGNMENT ) */ HB_FUNC( QT_QTREEWIDGETITEM_SETTOOLTIP ) { - hbqt_par_QTreeWidgetItem( 1 )->setToolTip( hb_parni( 1 ), hbqt_par_QString( 2 ) ); + hbqt_par_QTreeWidgetItem( 1 )->setToolTip( hb_parni( 2 ), hbqt_par_QString( 3 ) ); } /* @@ -327,7 +346,15 @@ HB_FUNC( QT_QTREEWIDGETITEM_SETTOOLTIP ) */ HB_FUNC( QT_QTREEWIDGETITEM_SETWHATSTHIS ) { - hbqt_par_QTreeWidgetItem( 1 )->setWhatsThis( hb_parni( 1 ), hbqt_par_QString( 2 ) ); + hbqt_par_QTreeWidgetItem( 1 )->setWhatsThis( hb_parni( 2 ), hbqt_par_QString( 3 ) ); +} + +/* + * QSize sizeHint ( int column ) const + */ +HB_FUNC( QT_QTREEWIDGETITEM_SIZEHINT ) +{ + hbqt_ret_QSize( hbqt_par_QTreeWidgetItem( 1 )->sizeHint( hb_parni( 2 ) ) ); } /* @@ -335,7 +362,7 @@ HB_FUNC( QT_QTREEWIDGETITEM_SETWHATSTHIS ) */ HB_FUNC( QT_QTREEWIDGETITEM_SORTCHILDREN ) { - hbqt_par_QTreeWidgetItem( 1 )->sortChildren( hb_parni( 1 ), ( Qt::SortOrder ) hb_parni( 2 ) ); + hbqt_par_QTreeWidgetItem( 1 )->sortChildren( hb_parni( 2 ), ( Qt::SortOrder ) hb_parni( 3 ) ); } /* @@ -343,7 +370,7 @@ HB_FUNC( QT_QTREEWIDGETITEM_SORTCHILDREN ) */ HB_FUNC( QT_QTREEWIDGETITEM_STATUSTIP ) { - hb_retc( hbqt_par_QTreeWidgetItem( 1 )->statusTip( hb_parni( 1 )).toLatin1().data() ); + hb_retc( hbqt_par_QTreeWidgetItem( 1 )->statusTip( hb_parni( 2 )).toLatin1().data() ); } /* @@ -351,7 +378,7 @@ HB_FUNC( QT_QTREEWIDGETITEM_STATUSTIP ) */ HB_FUNC( QT_QTREEWIDGETITEM_TAKECHILD ) { - hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidgetItem( 1 )->takeChild( hb_parni( 1 ) ) ); + hb_retptr( ( QTreeWidgetItem* ) hbqt_par_QTreeWidgetItem( 1 )->takeChild( hb_parni( 2 ) ) ); } /* @@ -359,7 +386,7 @@ HB_FUNC( QT_QTREEWIDGETITEM_TAKECHILD ) */ HB_FUNC( QT_QTREEWIDGETITEM_TEXT ) { - hb_retc( hbqt_par_QTreeWidgetItem( 1 )->text( hb_parni( 1 )).toLatin1().data() ); + hb_retc( hbqt_par_QTreeWidgetItem( 1 )->text( hb_parni( 2 )).toLatin1().data() ); } /* @@ -367,7 +394,7 @@ HB_FUNC( QT_QTREEWIDGETITEM_TEXT ) */ HB_FUNC( QT_QTREEWIDGETITEM_TEXTALIGNMENT ) { - hb_retni( hbqt_par_QTreeWidgetItem( 1 )->textAlignment( hb_parni( 1 ) ) ); + hb_retni( hbqt_par_QTreeWidgetItem( 1 )->textAlignment( hb_parni( 2 ) ) ); } /* @@ -375,7 +402,7 @@ HB_FUNC( QT_QTREEWIDGETITEM_TEXTALIGNMENT ) */ HB_FUNC( QT_QTREEWIDGETITEM_TOOLTIP ) { - hb_retc( hbqt_par_QTreeWidgetItem( 1 )->toolTip( hb_parni( 1 )).toLatin1().data() ); + hb_retc( hbqt_par_QTreeWidgetItem( 1 )->toolTip( hb_parni( 2 )).toLatin1().data() ); } /* @@ -399,11 +426,11 @@ HB_FUNC( QT_QTREEWIDGETITEM_TYPE ) */ HB_FUNC( QT_QTREEWIDGETITEM_WHATSTHIS ) { - hb_retc( hbqt_par_QTreeWidgetItem( 1 )->whatsThis( hb_parni( 1 )).toLatin1().data() ); + hb_retc( hbqt_par_QTreeWidgetItem( 1 )->whatsThis( hb_parni( 2 )).toLatin1().data() ); } - -#endif +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ /*----------------------------------------------------------------------*/ diff --git a/harbour/contrib/hbqt/hbqt_qvboxlayout.cpp b/harbour/contrib/hbqt/hbqt_qvboxlayout.cpp index 604c151d49..a2fbf178ee 100644 --- a/harbour/contrib/hbqt/hbqt_qvboxlayout.cpp +++ b/harbour/contrib/hbqt/hbqt_qvboxlayout.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,19 +55,27 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + #include -/*----------------------------------------------------------------------*/ + /* -QVBoxLayout () -QVBoxLayout ( QWidget * parent ) -*/ + * QVBoxLayout () + * QVBoxLayout ( QWidget * parent ) + * ~QVBoxLayout () + */ HB_FUNC( QT_QVBOXLAYOUT ) { hb_retptr( ( QVBoxLayout* ) new QVBoxLayout( hbqt_par_QWidget( 1 ) ) ); } + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qwebpage.cpp b/harbour/contrib/hbqt/hbqt_qwebpage.cpp new file mode 100644 index 0000000000..29256d494c --- /dev/null +++ b/harbour/contrib/hbqt/hbqt_qwebpage.cpp @@ -0,0 +1,330 @@ +/* + * $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 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 29/34 [ 85.29% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * quint64 bytesReceived () const + * QVariant inputMethodQuery ( Qt::InputMethodQuery property ) const + * QPalette palette () const + * void setPalette ( const QPalette & palette ) + * quint64 totalBytes () const + * + * *** Commented out protos which construct fine but do not compile *** + * + * // virtual bool extension ( Extension extension, const ExtensionOption * option = 0, ExtensionReturn * output = 0 ) + */ + + +#include + + + +/* + * QWebPage ( QObject * parent = 0 ) + * ~QWebPage () + */ +HB_FUNC( QT_QWEBPAGE ) +{ + hb_retptr( new QWebPage( hbqt_par_QWidget( 2 ) ) ); +} + +/* + * QAction * action ( WebAction action ) const + */ +HB_FUNC( QT_QWEBPAGE_ACTION ) +{ + hb_retptr( ( QAction* ) hbqt_par_QWebPage( 1 )->action( ( QWebPage::WebAction ) hb_parni( 2 ) ) ); +} + +/* + * QMenu * createStandardContextMenu () + */ +HB_FUNC( QT_QWEBPAGE_CREATESTANDARDCONTEXTMENU ) +{ + hb_retptr( ( QMenu* ) hbqt_par_QWebPage( 1 )->createStandardContextMenu( ) ); +} + +/* + * QWebFrame * currentFrame () const + */ +HB_FUNC( QT_QWEBPAGE_CURRENTFRAME ) +{ + hb_retptr( ( QWebFrame* ) hbqt_par_QWebPage( 1 )->currentFrame( ) ); +} + +/* + * bool findText ( const QString & subString, FindFlags options = 0 ) + */ +HB_FUNC( QT_QWEBPAGE_FINDTEXT ) +{ + hb_retl( hbqt_par_QWebPage( 1 )->findText( hbqt_par_QString( 2 ), ( QWebPage::FindFlags ) hb_parni( 3 ) ) ); +} + +/* + * bool focusNextPrevChild ( bool next ) + */ +HB_FUNC( QT_QWEBPAGE_FOCUSNEXTPREVCHILD ) +{ + hb_retl( hbqt_par_QWebPage( 1 )->focusNextPrevChild( hb_parl( 2 ) ) ); +} + +/* + * bool forwardUnsupportedContent () const + */ +HB_FUNC( QT_QWEBPAGE_FORWARDUNSUPPORTEDCONTENT ) +{ + hb_retl( hbqt_par_QWebPage( 1 )->forwardUnsupportedContent( ) ); +} + +/* + * QWebHistory * history () const + */ +HB_FUNC( QT_QWEBPAGE_HISTORY ) +{ + hb_retptr( ( QWebHistory* ) hbqt_par_QWebPage( 1 )->history( ) ); +} + +/* + * bool isContentEditable () const + */ +HB_FUNC( QT_QWEBPAGE_ISCONTENTEDITABLE ) +{ + hb_retl( hbqt_par_QWebPage( 1 )->isContentEditable( ) ); +} + +/* + * bool isModified () const + */ +HB_FUNC( QT_QWEBPAGE_ISMODIFIED ) +{ + hb_retl( hbqt_par_QWebPage( 1 )->isModified( ) ); +} + +/* + * LinkDelegationPolicy linkDelegationPolicy () const + */ +HB_FUNC( QT_QWEBPAGE_LINKDELEGATIONPOLICY ) +{ + hb_retni( hbqt_par_QWebPage( 1 )->linkDelegationPolicy( ) ); +} + +/* + * QWebFrame * mainFrame () const + */ +HB_FUNC( QT_QWEBPAGE_MAINFRAME ) +{ + hb_retptr( ( QWebFrame* ) hbqt_par_QWebPage( 1 )->mainFrame( ) ); +} + +/* + * QNetworkAccessManager * networkAccessManager () const + */ +HB_FUNC( QT_QWEBPAGE_NETWORKACCESSMANAGER ) +{ + hb_retptr( ( QNetworkAccessManager* ) hbqt_par_QWebPage( 1 )->networkAccessManager( ) ); +} + +/* + * QWebPluginFactory * pluginFactory () const + */ +HB_FUNC( QT_QWEBPAGE_PLUGINFACTORY ) +{ + hb_retptr( ( QWebPluginFactory* ) hbqt_par_QWebPage( 1 )->pluginFactory( ) ); +} + +/* + * QString selectedText () const + */ +HB_FUNC( QT_QWEBPAGE_SELECTEDTEXT ) +{ + hb_retc( hbqt_par_QWebPage( 1 )->selectedText( ).toLatin1().data() ); +} + +/* + * void setContentEditable ( bool editable ) + */ +HB_FUNC( QT_QWEBPAGE_SETCONTENTEDITABLE ) +{ + hbqt_par_QWebPage( 1 )->setContentEditable( hb_parl( 2 ) ); +} + +/* + * void setForwardUnsupportedContent ( bool forward ) + */ +HB_FUNC( QT_QWEBPAGE_SETFORWARDUNSUPPORTEDCONTENT ) +{ + hbqt_par_QWebPage( 1 )->setForwardUnsupportedContent( hb_parl( 2 ) ); +} + +/* + * void setLinkDelegationPolicy ( LinkDelegationPolicy policy ) + */ +HB_FUNC( QT_QWEBPAGE_SETLINKDELEGATIONPOLICY ) +{ + hbqt_par_QWebPage( 1 )->setLinkDelegationPolicy( ( QWebPage::LinkDelegationPolicy ) hb_parni( 2 ) ); +} + +/* + * void setNetworkAccessManager ( QNetworkAccessManager * manager ) + */ +HB_FUNC( QT_QWEBPAGE_SETNETWORKACCESSMANAGER ) +{ + hbqt_par_QWebPage( 1 )->setNetworkAccessManager( hbqt_par_QNetworkAccessManager( 2 ) ); +} + +/* + * void setPluginFactory ( QWebPluginFactory * factory ) + */ +HB_FUNC( QT_QWEBPAGE_SETPLUGINFACTORY ) +{ + hbqt_par_QWebPage( 1 )->setPluginFactory( hbqt_par_QWebPluginFactory( 2 ) ); +} + +/* + * void setView ( QWidget * view ) + */ +HB_FUNC( QT_QWEBPAGE_SETVIEW ) +{ + hbqt_par_QWebPage( 1 )->setView( hbqt_par_QWidget( 2 ) ); +} + +/* + * void setViewportSize ( const QSize & size ) const + */ +HB_FUNC( QT_QWEBPAGE_SETVIEWPORTSIZE ) +{ + hbqt_par_QWebPage( 1 )->setViewportSize( hbqt_const_QSize( 2 ) ); +} + +/* + * QWebSettings * settings () const + */ +HB_FUNC( QT_QWEBPAGE_SETTINGS ) +{ + hb_retptr( ( QWebSettings* ) hbqt_par_QWebPage( 1 )->settings( ) ); +} + +/* + * virtual bool supportsExtension ( Extension extension ) const + */ +HB_FUNC( QT_QWEBPAGE_SUPPORTSEXTENSION ) +{ + hb_retl( hbqt_par_QWebPage( 1 )->supportsExtension( ( QWebPage::Extension ) hb_parni( 2 ) ) ); +} + +/* + * bool swallowContextMenuEvent ( QContextMenuEvent * event ) + */ +HB_FUNC( QT_QWEBPAGE_SWALLOWCONTEXTMENUEVENT ) +{ + hb_retl( hbqt_par_QWebPage( 1 )->swallowContextMenuEvent( hbqt_par_QContextMenuEvent( 2 ) ) ); +} + +/* + * virtual void triggerAction ( WebAction action, bool checked = false ) + */ +HB_FUNC( QT_QWEBPAGE_TRIGGERACTION ) +{ + hbqt_par_QWebPage( 1 )->triggerAction( ( QWebPage::WebAction ) hb_parni( 2 ), hb_parl( 3 ) ); +} + +/* + * QUndoStack * undoStack () const + */ +HB_FUNC( QT_QWEBPAGE_UNDOSTACK ) +{ + hb_retptr( ( QUndoStack* ) hbqt_par_QWebPage( 1 )->undoStack( ) ); +} + +/* + * void updatePositionDependentActions ( const QPoint & pos ) + */ +HB_FUNC( QT_QWEBPAGE_UPDATEPOSITIONDEPENDENTACTIONS ) +{ + hbqt_par_QWebPage( 1 )->updatePositionDependentActions( hbqt_const_QPoint( 2 ) ); +} + +/* + * QWidget * view () const + */ +HB_FUNC( QT_QWEBPAGE_VIEW ) +{ + hb_retptr( ( QWidget* ) hbqt_par_QWebPage( 1 )->view( ) ); +} + +/* + * QSize viewportSize () const + */ +HB_FUNC( QT_QWEBPAGE_VIEWPORTSIZE ) +{ + hbqt_ret_QSize( hbqt_par_QWebPage( 1 )->viewportSize( ) ); +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qwebview.cpp b/harbour/contrib/hbqt/hbqt_qwebview.cpp index 8a950fd0f8..7db3d0a2e7 100644 --- a/harbour/contrib/hbqt/hbqt_qwebview.cpp +++ b/harbour/contrib/hbqt/hbqt_qwebview.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,42 +55,194 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 19/26 [ 73.08% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * QIcon icon () const + * void load ( const QUrl & url ) + * void load ( const QNetworkRequest & request, QNetworkAccessManager::Operation operation = QNetworkAccessManager::GetOperation, const QByteArray & body = QByteArray() ) + * void setContent ( const QByteArray & data, const QString & mimeType = QString(), const QUrl & baseUrl = QUrl() ) + * void setHtml ( const QString & html, const QUrl & baseUrl = QUrl() ) + * void setUrl ( const QUrl & url ) + * QUrl url () const + */ + #include -#include -#include -/*----------------------------------------------------------------------*/ + + /* -QWebView ( QWidget * parent = 0 ) -*/ + * QWebView ( QWidget * parent = 0 ) + * virtual ~QWebView () + */ HB_FUNC( QT_QWEBVIEW ) { - hb_retptr( ( QWebView* ) new QWebView( hbqt_par_QWidget( 1 ) ) ); + hb_retptr( new QWebView( hbqt_par_QWidget( 1 ) ) ); } /* -void load ( const QUrl & url ) -*/ -HB_FUNC( QT_QWEBVIEW_LOAD ) + * bool findText ( const QString & subString, QWebPage::FindFlags options = 0 ) + */ +HB_FUNC( QT_QWEBVIEW_FINDTEXT ) { - hbqt_par_QWebView( 1 )->load( QUrl( hbqt_par_QString( 2 ) ) ); + hb_retl( hbqt_par_QWebView( 1 )->findText( hbqt_par_QString( 2 ), ( QWebPage::FindFlags ) hb_parni( 3 ) ) ); } /* -QUrl url () const -void setUrl ( const QUrl & url ) -*/ -HB_FUNC( QT_QWEBVIEW_URL ) + * QWebHistory * history () const + */ +HB_FUNC( QT_QWEBVIEW_HISTORY ) { - /* QWebView * webview = (QWebView *) hb_parptr(1); */ + hb_retptr( ( QWebHistory* ) hbqt_par_QWebView( 1 )->history( ) ); } -HB_FUNC( QT_QWEBVIEW_SETURL ) +/* + * bool isModified () const + */ +HB_FUNC( QT_QWEBVIEW_ISMODIFIED ) { - hbqt_par_QWebView( 1 )->setUrl( QUrl( hbqt_par_QString( 2 ) ) ); + hb_retl( hbqt_par_QWebView( 1 )->isModified( ) ); } +/* + * QWebPage * page () const + */ +HB_FUNC( QT_QWEBVIEW_PAGE ) +{ + hb_retptr( ( QWebPage* ) hbqt_par_QWebView( 1 )->page( ) ); +} + +/* + * QAction * pageAction ( QWebPage::WebAction action ) const + */ +HB_FUNC( QT_QWEBVIEW_PAGEACTION ) +{ + hb_retptr( ( QAction* ) hbqt_par_QWebView( 1 )->pageAction( ( QWebPage::WebAction ) hb_parni( 2 ) ) ); +} + +/* + * QString selectedText () const + */ +HB_FUNC( QT_QWEBVIEW_SELECTEDTEXT ) +{ + hb_retc( hbqt_par_QWebView( 1 )->selectedText( ).toLatin1().data() ); +} + +/* + * void setPage ( QWebPage * page ) + */ +HB_FUNC( QT_QWEBVIEW_SETPAGE ) +{ + hbqt_par_QWebView( 1 )->setPage( hbqt_par_QWebPage( 2 ) ); +} + +/* + * void setTextSizeMultiplier ( qreal factor ) + */ +HB_FUNC( QT_QWEBVIEW_SETTEXTSIZEMULTIPLIER ) +{ + hbqt_par_QWebView( 1 )->setTextSizeMultiplier( hb_parnd( 2 ) ); +} + +/* + * void setZoomFactor ( qreal factor ) + */ +HB_FUNC( QT_QWEBVIEW_SETZOOMFACTOR ) +{ + hbqt_par_QWebView( 1 )->setZoomFactor( hb_parnd( 2 ) ); +} + +/* + * QWebSettings * settings () const + */ +HB_FUNC( QT_QWEBVIEW_SETTINGS ) +{ + hb_retptr( ( QWebSettings* ) hbqt_par_QWebView( 1 )->settings( ) ); +} + +/* + * qreal textSizeMultiplier () const + */ +HB_FUNC( QT_QWEBVIEW_TEXTSIZEMULTIPLIER ) +{ + hb_retnd( hbqt_par_QWebView( 1 )->textSizeMultiplier( ) ); +} + +/* + * QString title () const + */ +HB_FUNC( QT_QWEBVIEW_TITLE ) +{ + hb_retc( hbqt_par_QWebView( 1 )->title( ).toLatin1().data() ); +} + +/* + * void triggerPageAction ( QWebPage::WebAction action, bool checked = false ) + */ +HB_FUNC( QT_QWEBVIEW_TRIGGERPAGEACTION ) +{ + hbqt_par_QWebView( 1 )->triggerPageAction( ( QWebPage::WebAction ) hb_parni( 2 ), hb_parl( 3 ) ); +} + +/* + * qreal zoomFactor () const + */ +HB_FUNC( QT_QWEBVIEW_ZOOMFACTOR ) +{ + hb_retnd( hbqt_par_QWebView( 1 )->zoomFactor( ) ); +} + +/* + * void back () + */ +HB_FUNC( QT_QWEBVIEW_BACK ) +{ + hbqt_par_QWebView( 1 )->back( ); +} + +/* + * void forward () + */ +HB_FUNC( QT_QWEBVIEW_FORWARD ) +{ + hbqt_par_QWebView( 1 )->forward( ); +} + +/* + * void print ( QPrinter * printer ) const + */ +HB_FUNC( QT_QWEBVIEW_PRINT ) +{ + hbqt_par_QWebView( 1 )->print( hbqt_par_QPrinter( 2 ) ); +} + +/* + * void reload () + */ +HB_FUNC( QT_QWEBVIEW_RELOAD ) +{ + hbqt_par_QWebView( 1 )->reload( ); +} + +/* + * void stop () + */ +HB_FUNC( QT_QWEBVIEW_STOP ) +{ + hbqt_par_QWebView( 1 )->stop( ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qwidget.cpp b/harbour/contrib/hbqt/hbqt_qwidget.cpp index 06a2f3504c..ccc04a00c7 100644 --- a/harbour/contrib/hbqt/hbqt_qwidget.cpp +++ b/harbour/contrib/hbqt/hbqt_qwidget.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,1188 +55,1535 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 182/219 [ 83.11% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * QList actions () const + * void addActions ( QList actions ) + * QRegion childrenRegion () const + * QCursor cursor () const + * WId effectiveWinId () const + * const QFont & font () const + * QFontInfo fontInfo () const + * QFontMetrics fontMetrics () const + * const QRect & geometry () const + * void getContentsMargins ( int * left, int * top, int * right, int * bottom ) const + * virtual HDC getDC () const + * void grabMouse ( const QCursor & cursor ) + * int grabShortcut ( const QKeySequence & key, Qt::ShortcutContext context = Qt::WindowShortcut ) + * virtual QVariant inputMethodQuery ( Qt::InputMethodQuery query ) const + * void insertActions ( QAction * before, QList actions ) + * QLocale locale () const + * QRegion mask () const + * const QPalette & palette () const + * virtual void releaseDC ( HDC hdc ) const + * void render ( QPaintDevice * target, const QPoint & targetOffset = QPoint(), const QRegion & sourceRegion = QRegion(), RenderFlags renderFlags = RenderFlags( DrawWindowBackground | DrawChildren ) ) + * void render ( QPainter * painter, const QPoint & targetOffset = QPoint(), const QRegion & sourceRegion = QRegion(), RenderFlags renderFlags = RenderFlags( DrawWindowBackground | DrawChildren ) ) + * void repaint ( const QRegion & rgn ) + * bool restoreGeometry ( const QByteArray & geometry ) + * QByteArray saveGeometry () const + * void setCursor ( const QCursor & ) + * void setFont ( const QFont & ) + * void setLocale ( const QLocale & locale ) + * void setMask ( const QBitmap & bitmap ) + * void setMask ( const QRegion & region ) + * void setPalette ( const QPalette & ) + * void setSizePolicy ( QSizePolicy ) + * QSizePolicy sizePolicy () const + * void update ( const QRegion & rgn ) + * QRegion visibleRegion () const + * WId winId () const + * QIcon windowIcon () const + * QWindowSurface * windowSurface () const (preliminary) + * + * *** Commented out protos which construct fine but do not compile *** + * + * //bool hasEditFocus () const + * //Qt::HANDLE macCGHandle () const + * //Qt::HANDLE macQDHandle () const + * //void setEditFocus ( bool enable ) + * //Qt::HANDLE x11PictureHandle () const + */ + #include #include -/*----------------------------------------------------------------------*/ + /* -QWidget( QWidget * parent = 0, Qt::WindowFlags f = 0 ) -*/ + * QWidget( QWidget * parent = 0, Qt::WindowFlags f = 0 ) + */ HB_FUNC( QT_QWIDGET ) { hb_retptr( new QWidget( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ); } /* -bool acceptDrops () const -*/ + * bool acceptDrops () const + */ HB_FUNC( QT_QWIDGET_ACCEPTDROPS ) { - hb_retl( hbqt_par_QWidget( 1 )->acceptDrops() ); + hb_retl( hbqt_par_QWidget( 1 )->acceptDrops( ) ); } /* -QString accessibleDescription () const -*/ + * QString accessibleDescription () const + */ HB_FUNC( QT_QWIDGET_ACCESSIBLEDESCRIPTION ) { - hb_retc( hbqt_par_QWidget( 1 )->accessibleDescription().toLatin1().data() ); + hb_retc( hbqt_par_QWidget( 1 )->accessibleDescription( ).toLatin1().data() ); } /* -QString accessibleName () const -*/ + * QString accessibleName () const + */ HB_FUNC( QT_QWIDGET_ACCESSIBLENAME ) { - hb_retc( hbqt_par_QWidget( 1 )->accessibleName().toLatin1().data() ); + hb_retc( hbqt_par_QWidget( 1 )->accessibleName( ).toLatin1().data() ); } /* -void activateWindow () -*/ + * void activateWindow () + */ HB_FUNC( QT_QWIDGET_ACTIVATEWINDOW ) { - hbqt_par_QWidget( 1 )->activateWindow(); + hbqt_par_QWidget( 1 )->activateWindow( ); } /* -void addAction( QAction * action ) -*/ + * void addAction ( QAction * action ) + */ HB_FUNC( QT_QWIDGET_ADDACTION ) { hbqt_par_QWidget( 1 )->addAction( hbqt_par_QAction( 2 ) ); } /* -void adjustSize () -*/ + * void adjustSize () + */ HB_FUNC( QT_QWIDGET_ADJUSTSIZE ) { - hbqt_par_QWidget( 1 )->adjustSize(); + hbqt_par_QWidget( 1 )->adjustSize( ); } /* -bool autoFillBackground () const -*/ + * bool autoFillBackground () const + */ HB_FUNC( QT_QWIDGET_AUTOFILLBACKGROUND ) { - hb_retl( hbqt_par_QWidget( 1 )->autoFillBackground() ); + hb_retl( hbqt_par_QWidget( 1 )->autoFillBackground( ) ); } /* -QPalette::ColorRole backgroundRole () const -*/ + * QPalette::ColorRole backgroundRole () const + */ HB_FUNC( QT_QWIDGET_BACKGROUNDROLE ) { - hb_retni( hbqt_par_QWidget( 1 )->backgroundRole() ); + hb_retni( hbqt_par_QWidget( 1 )->backgroundRole( ) ); } /* -QWidget * childAt( int x, int y ) const -*/ + * QSize baseSize () const + */ +HB_FUNC( QT_QWIDGET_BASESIZE ) +{ + hbqt_ret_QSize( hbqt_par_QWidget( 1 )->baseSize( ) ); +} + +/* + * QWidget * childAt ( int x, int y ) const + */ HB_FUNC( QT_QWIDGET_CHILDAT ) { hb_retptr( ( QWidget* ) hbqt_par_QWidget( 1 )->childAt( hb_parni( 2 ), hb_parni( 3 ) ) ); } /* -void clearFocus () -*/ + * QWidget * childAt ( const QPoint & p ) const + */ +HB_FUNC( QT_QWIDGET_CHILDAT_1 ) +{ + hb_retptr( ( QWidget* ) hbqt_par_QWidget( 1 )->childAt( hbqt_const_QPoint( 2 ) ) ); +} + +/* + * QRect childrenRect () const + */ +HB_FUNC( QT_QWIDGET_CHILDRENRECT ) +{ + hbqt_ret_QRect( hbqt_par_QWidget( 1 )->childrenRect( ) ); +} + +/* + * void clearFocus () + */ HB_FUNC( QT_QWIDGET_CLEARFOCUS ) { - hbqt_par_QWidget( 1 )->clearFocus(); + hbqt_par_QWidget( 1 )->clearFocus( ); } /* -void clearMask () -*/ + * void clearMask () + */ HB_FUNC( QT_QWIDGET_CLEARMASK ) { - hbqt_par_QWidget( 1 )->clearMask(); + hbqt_par_QWidget( 1 )->clearMask( ); } /* -Qt::ContextMenuPolicy contextMenuPolicy () const -*/ + * QRect contentsRect () const + */ +HB_FUNC( QT_QWIDGET_CONTENTSRECT ) +{ + hbqt_ret_QRect( hbqt_par_QWidget( 1 )->contentsRect( ) ); +} + +/* + * Qt::ContextMenuPolicy contextMenuPolicy () const + */ HB_FUNC( QT_QWIDGET_CONTEXTMENUPOLICY ) { - hb_retni( hbqt_par_QWidget( 1 )->contextMenuPolicy() ); + hb_retni( hbqt_par_QWidget( 1 )->contextMenuPolicy( ) ); } /* -void ensurePolished () const -*/ + * void ensurePolished () const + */ HB_FUNC( QT_QWIDGET_ENSUREPOLISHED ) { - hbqt_par_QWidget( 1 )->ensurePolished(); + hbqt_par_QWidget( 1 )->ensurePolished( ); } /* -Qt::FocusPolicy focusPolicy () const -*/ + * Qt::FocusPolicy focusPolicy () const + */ HB_FUNC( QT_QWIDGET_FOCUSPOLICY ) { - hb_retni( hbqt_par_QWidget( 1 )->focusPolicy() ); + hb_retni( hbqt_par_QWidget( 1 )->focusPolicy( ) ); } /* -QWidget * focusProxy () const -*/ + * QWidget * focusProxy () const + */ HB_FUNC( QT_QWIDGET_FOCUSPROXY ) { - hb_retptr( ( QWidget* ) hbqt_par_QWidget( 1 )->focusProxy() ); + hb_retptr( ( QWidget* ) hbqt_par_QWidget( 1 )->focusProxy( ) ); } /* -QWidget * focusWidget () const -*/ + * QWidget * focusWidget () const + */ HB_FUNC( QT_QWIDGET_FOCUSWIDGET ) { - hb_retptr( ( QWidget* ) hbqt_par_QWidget( 1 )->focusWidget() ); + hb_retptr( ( QWidget* ) hbqt_par_QWidget( 1 )->focusWidget( ) ); } /* -QPalette::ColorRole foregroundRole () const -*/ + * QPalette::ColorRole foregroundRole () const + */ HB_FUNC( QT_QWIDGET_FOREGROUNDROLE ) { - hb_retni( hbqt_par_QWidget( 1 )->foregroundRole() ); + hb_retni( hbqt_par_QWidget( 1 )->foregroundRole( ) ); } /* -void grabKeyboard () -*/ + * QRect frameGeometry () const + */ +HB_FUNC( QT_QWIDGET_FRAMEGEOMETRY ) +{ + hbqt_ret_QRect( hbqt_par_QWidget( 1 )->frameGeometry( ) ); +} + +/* + * QSize frameSize () const + */ +HB_FUNC( QT_QWIDGET_FRAMESIZE ) +{ + hbqt_ret_QSize( hbqt_par_QWidget( 1 )->frameSize( ) ); +} + +/* + * void grabKeyboard () + */ HB_FUNC( QT_QWIDGET_GRABKEYBOARD ) { - hbqt_par_QWidget( 1 )->grabKeyboard(); + hbqt_par_QWidget( 1 )->grabKeyboard( ); } /* -void grabMouse () -*/ + * void grabMouse () + */ HB_FUNC( QT_QWIDGET_GRABMOUSE ) { - hbqt_par_QWidget( 1 )->grabMouse(); + hbqt_par_QWidget( 1 )->grabMouse( ); } /* -QGraphicsProxyWidget * graphicsProxyWidget () const -*/ + * QGraphicsProxyWidget * graphicsProxyWidget () const + */ HB_FUNC( QT_QWIDGET_GRAPHICSPROXYWIDGET ) { - hb_retptr( ( QGraphicsProxyWidget* ) hbqt_par_QWidget( 1 )->graphicsProxyWidget() ); + hb_retptr( ( QGraphicsProxyWidget* ) hbqt_par_QWidget( 1 )->graphicsProxyWidget( ) ); } /* -bool hasFocus () const -*/ + * bool hasFocus () const + */ HB_FUNC( QT_QWIDGET_HASFOCUS ) { - hb_retl( hbqt_par_QWidget( 1 )->hasFocus() ); + hb_retl( hbqt_par_QWidget( 1 )->hasFocus( ) ); } /* -bool hasMouseTracking () const -*/ + * bool hasMouseTracking () const + */ HB_FUNC( QT_QWIDGET_HASMOUSETRACKING ) { - hb_retl( hbqt_par_QWidget( 1 )->hasMouseTracking() ); + hb_retl( hbqt_par_QWidget( 1 )->hasMouseTracking( ) ); } /* -int height () const -*/ + * int height () const + */ HB_FUNC( QT_QWIDGET_HEIGHT ) { - hb_retni( hbqt_par_QWidget( 1 )->height() ); + hb_retni( hbqt_par_QWidget( 1 )->height( ) ); } /* -virtual int heightForWidth( int w ) const -*/ + * virtual int heightForWidth ( int w ) const + */ HB_FUNC( QT_QWIDGET_HEIGHTFORWIDTH ) { hb_retni( hbqt_par_QWidget( 1 )->heightForWidth( hb_parni( 2 ) ) ); } /* -QInputContext * inputContext () -*/ + * QInputContext * inputContext () + */ HB_FUNC( QT_QWIDGET_INPUTCONTEXT ) { - hb_retptr( ( QInputContext* ) hbqt_par_QWidget( 1 )->inputContext() ); + hb_retptr( ( QInputContext* ) hbqt_par_QWidget( 1 )->inputContext( ) ); } /* -void insertAction( QAction * before, QAction * action ) -*/ + * void insertAction ( QAction * before, QAction * action ) + */ HB_FUNC( QT_QWIDGET_INSERTACTION ) { hbqt_par_QWidget( 1 )->insertAction( hbqt_par_QAction( 2 ), hbqt_par_QAction( 3 ) ); } /* -bool isActiveWindow () const -*/ + * bool isActiveWindow () const + */ HB_FUNC( QT_QWIDGET_ISACTIVEWINDOW ) { - hb_retl( hbqt_par_QWidget( 1 )->isActiveWindow() ); + hb_retl( hbqt_par_QWidget( 1 )->isActiveWindow( ) ); } /* -bool isAncestorOf( const QWidget * child ) const -*/ + * bool isAncestorOf ( const QWidget * child ) const + */ HB_FUNC( QT_QWIDGET_ISANCESTOROF ) { hb_retl( hbqt_par_QWidget( 1 )->isAncestorOf( hbqt_par_QWidget( 2 ) ) ); } /* -bool isEnabled () const -*/ + * bool isEnabled () const + */ HB_FUNC( QT_QWIDGET_ISENABLED ) { - hb_retl( hbqt_par_QWidget( 1 )->isEnabled() ); + hb_retl( hbqt_par_QWidget( 1 )->isEnabled( ) ); } /* -bool isEnabledTo( QWidget * ancestor ) const -*/ + * bool isEnabledTo ( QWidget * ancestor ) const + */ HB_FUNC( QT_QWIDGET_ISENABLEDTO ) { hb_retl( hbqt_par_QWidget( 1 )->isEnabledTo( hbqt_par_QWidget( 2 ) ) ); } /* -bool isFullScreen () const -*/ + * bool isFullScreen () const + */ HB_FUNC( QT_QWIDGET_ISFULLSCREEN ) { - hb_retl( hbqt_par_QWidget( 1 )->isFullScreen() ); + hb_retl( hbqt_par_QWidget( 1 )->isFullScreen( ) ); } /* -bool isHidden () const -*/ + * bool isHidden () const + */ HB_FUNC( QT_QWIDGET_ISHIDDEN ) { - hb_retl( hbqt_par_QWidget( 1 )->isHidden() ); + hb_retl( hbqt_par_QWidget( 1 )->isHidden( ) ); } /* -bool isMaximized () const -*/ + * bool isMaximized () const + */ HB_FUNC( QT_QWIDGET_ISMAXIMIZED ) { - hb_retl( hbqt_par_QWidget( 1 )->isMaximized() ); + hb_retl( hbqt_par_QWidget( 1 )->isMaximized( ) ); } /* -bool isMinimized () const -*/ + * bool isMinimized () const + */ HB_FUNC( QT_QWIDGET_ISMINIMIZED ) { - hb_retl( hbqt_par_QWidget( 1 )->isMinimized() ); + hb_retl( hbqt_par_QWidget( 1 )->isMinimized( ) ); } /* -bool isModal () const -*/ + * bool isModal () const + */ HB_FUNC( QT_QWIDGET_ISMODAL ) { - hb_retl( hbqt_par_QWidget( 1 )->isModal() ); + hb_retl( hbqt_par_QWidget( 1 )->isModal( ) ); } /* -bool isVisible () const -*/ + * bool isVisible () const + */ HB_FUNC( QT_QWIDGET_ISVISIBLE ) { - hb_retl( hbqt_par_QWidget( 1 )->isVisible() ); + hb_retl( hbqt_par_QWidget( 1 )->isVisible( ) ); } /* -bool isVisibleTo( QWidget * ancestor ) const -*/ + * bool isVisibleTo ( QWidget * ancestor ) const + */ HB_FUNC( QT_QWIDGET_ISVISIBLETO ) { hb_retl( hbqt_par_QWidget( 1 )->isVisibleTo( hbqt_par_QWidget( 2 ) ) ); } /* -bool isWindow () const -*/ + * bool isWindow () const + */ HB_FUNC( QT_QWIDGET_ISWINDOW ) { - hb_retl( hbqt_par_QWidget( 1 )->isWindow() ); + hb_retl( hbqt_par_QWidget( 1 )->isWindow( ) ); } /* -bool isWindowModified () const -*/ + * bool isWindowModified () const + */ HB_FUNC( QT_QWIDGET_ISWINDOWMODIFIED ) { - hb_retl( hbqt_par_QWidget( 1 )->isWindowModified() ); + hb_retl( hbqt_par_QWidget( 1 )->isWindowModified( ) ); } /* -QLayout * layout () const -*/ + * QLayout * layout () const + */ HB_FUNC( QT_QWIDGET_LAYOUT ) { - hb_retptr( ( QLayout* ) hbqt_par_QWidget( 1 )->layout() ); + hb_retptr( ( QLayout* ) hbqt_par_QWidget( 1 )->layout( ) ); } /* -Qt::LayoutDirection layoutDirection () const -*/ + * Qt::LayoutDirection layoutDirection () const + */ HB_FUNC( QT_QWIDGET_LAYOUTDIRECTION ) { - hb_retni( hbqt_par_QWidget( 1 )->layoutDirection() ); + hb_retni( hbqt_par_QWidget( 1 )->layoutDirection( ) ); } /* -int maximumHeight () const -*/ + * QPoint mapFrom ( QWidget * parent, const QPoint & pos ) const + */ +HB_FUNC( QT_QWIDGET_MAPFROM ) +{ + hbqt_ret_QPoint( hbqt_par_QWidget( 1 )->mapFrom( hbqt_par_QWidget( 2 ), hbqt_const_QPoint( 3 ) ) ); +} + +/* + * QPoint mapFromGlobal ( const QPoint & pos ) const + */ +HB_FUNC( QT_QWIDGET_MAPFROMGLOBAL ) +{ + hbqt_ret_QPoint( hbqt_par_QWidget( 1 )->mapFromGlobal( hbqt_const_QPoint( 2 ) ) ); +} + +/* + * QPoint mapFromParent ( const QPoint & pos ) const + */ +HB_FUNC( QT_QWIDGET_MAPFROMPARENT ) +{ + hbqt_ret_QPoint( hbqt_par_QWidget( 1 )->mapFromParent( hbqt_const_QPoint( 2 ) ) ); +} + +/* + * QPoint mapTo ( QWidget * parent, const QPoint & pos ) const + */ +HB_FUNC( QT_QWIDGET_MAPTO ) +{ + hbqt_ret_QPoint( hbqt_par_QWidget( 1 )->mapTo( hbqt_par_QWidget( 2 ), hbqt_const_QPoint( 3 ) ) ); +} + +/* + * QPoint mapToGlobal ( const QPoint & pos ) const + */ +HB_FUNC( QT_QWIDGET_MAPTOGLOBAL ) +{ + hbqt_ret_QPoint( hbqt_par_QWidget( 1 )->mapToGlobal( hbqt_const_QPoint( 2 ) ) ); +} + +/* + * QPoint mapToParent ( const QPoint & pos ) const + */ +HB_FUNC( QT_QWIDGET_MAPTOPARENT ) +{ + hbqt_ret_QPoint( hbqt_par_QWidget( 1 )->mapToParent( hbqt_const_QPoint( 2 ) ) ); +} + +/* + * int maximumHeight () const + */ HB_FUNC( QT_QWIDGET_MAXIMUMHEIGHT ) { - hb_retni( hbqt_par_QWidget( 1 )->maximumHeight() ); + hb_retni( hbqt_par_QWidget( 1 )->maximumHeight( ) ); } /* -int maximumWidth () const -*/ + * QSize maximumSize () const + */ +HB_FUNC( QT_QWIDGET_MAXIMUMSIZE ) +{ + hbqt_ret_QSize( hbqt_par_QWidget( 1 )->maximumSize( ) ); +} + +/* + * int maximumWidth () const + */ HB_FUNC( QT_QWIDGET_MAXIMUMWIDTH ) { - hb_retni( hbqt_par_QWidget( 1 )->maximumWidth() ); + hb_retni( hbqt_par_QWidget( 1 )->maximumWidth( ) ); } /* -int minimumHeight () const -*/ + * int minimumHeight () const + */ HB_FUNC( QT_QWIDGET_MINIMUMHEIGHT ) { - hb_retni( hbqt_par_QWidget( 1 )->minimumHeight() ); + hb_retni( hbqt_par_QWidget( 1 )->minimumHeight( ) ); } /* -int minimumWidth () const -*/ + * QSize minimumSize () const + */ +HB_FUNC( QT_QWIDGET_MINIMUMSIZE ) +{ + hbqt_ret_QSize( hbqt_par_QWidget( 1 )->minimumSize( ) ); +} + +/* + * virtual QSize minimumSizeHint () const + */ +HB_FUNC( QT_QWIDGET_MINIMUMSIZEHINT ) +{ + hbqt_ret_QSize( hbqt_par_QWidget( 1 )->minimumSizeHint( ) ); +} + +/* + * int minimumWidth () const + */ HB_FUNC( QT_QWIDGET_MINIMUMWIDTH ) { - hb_retni( hbqt_par_QWidget( 1 )->minimumWidth() ); + hb_retni( hbqt_par_QWidget( 1 )->minimumWidth( ) ); } /* -void move( int x, int y ) -*/ + * void move ( const QPoint & ) + */ HB_FUNC( QT_QWIDGET_MOVE ) +{ + hbqt_par_QWidget( 1 )->move( hbqt_const_QPoint( 2 ) ); +} + +/* + * void move ( int x, int y ) + */ +HB_FUNC( QT_QWIDGET_MOVE_1 ) { hbqt_par_QWidget( 1 )->move( hb_parni( 2 ), hb_parni( 3 ) ); } /* -QWidget * nativeParentWidget () const -*/ + * QWidget * nativeParentWidget () const + */ HB_FUNC( QT_QWIDGET_NATIVEPARENTWIDGET ) { - hb_retptr( ( QWidget* ) hbqt_par_QWidget( 1 )->nativeParentWidget() ); + hb_retptr( ( QWidget* ) hbqt_par_QWidget( 1 )->nativeParentWidget( ) ); } /* -QWidget * nextInFocusChain () const -*/ + * QWidget * nextInFocusChain () const + */ HB_FUNC( QT_QWIDGET_NEXTINFOCUSCHAIN ) { - hb_retptr( ( QWidget* ) hbqt_par_QWidget( 1 )->nextInFocusChain() ); + hb_retptr( ( QWidget* ) hbqt_par_QWidget( 1 )->nextInFocusChain( ) ); } /* -virtual QPaintEngine * paintEngine () const -*/ + * QRect normalGeometry () const + */ +HB_FUNC( QT_QWIDGET_NORMALGEOMETRY ) +{ + hbqt_ret_QRect( hbqt_par_QWidget( 1 )->normalGeometry( ) ); +} + +/* + * virtual QPaintEngine * paintEngine () const + */ HB_FUNC( QT_QWIDGET_PAINTENGINE ) { - hb_retptr( ( QPaintEngine* ) hbqt_par_QWidget( 1 )->paintEngine() ); + hb_retptr( ( QPaintEngine* ) hbqt_par_QWidget( 1 )->paintEngine( ) ); } /* -QWidget * parentWidget () const -*/ + * QWidget * parentWidget () const + */ HB_FUNC( QT_QWIDGET_PARENTWIDGET ) { - hb_retptr( ( QWidget* ) hbqt_par_QWidget( 1 )->parentWidget() ); + hb_retptr( ( QWidget* ) hbqt_par_QWidget( 1 )->parentWidget( ) ); } /* -void releaseKeyboard () -*/ + * QPoint pos () const + */ +HB_FUNC( QT_QWIDGET_POS ) +{ + hbqt_ret_QPoint( hbqt_par_QWidget( 1 )->pos( ) ); +} + +/* + * QRect rect () const + */ +HB_FUNC( QT_QWIDGET_RECT ) +{ + hbqt_ret_QRect( hbqt_par_QWidget( 1 )->rect( ) ); +} + +/* + * void releaseKeyboard () + */ HB_FUNC( QT_QWIDGET_RELEASEKEYBOARD ) { - hbqt_par_QWidget( 1 )->releaseKeyboard(); + hbqt_par_QWidget( 1 )->releaseKeyboard( ); } /* -void releaseMouse () -*/ + * void releaseMouse () + */ HB_FUNC( QT_QWIDGET_RELEASEMOUSE ) { - hbqt_par_QWidget( 1 )->releaseMouse(); + hbqt_par_QWidget( 1 )->releaseMouse( ); } /* -void releaseShortcut( int id ) -*/ + * void releaseShortcut ( int id ) + */ HB_FUNC( QT_QWIDGET_RELEASESHORTCUT ) { hbqt_par_QWidget( 1 )->releaseShortcut( hb_parni( 2 ) ); } /* -void removeAction( QAction * action ) -*/ + * void removeAction ( QAction * action ) + */ HB_FUNC( QT_QWIDGET_REMOVEACTION ) { hbqt_par_QWidget( 1 )->removeAction( hbqt_par_QAction( 2 ) ); } /* -void resize( int w, int h ) -*/ + * void repaint ( int x, int y, int w, int h ) + */ +HB_FUNC( QT_QWIDGET_REPAINT ) +{ + hbqt_par_QWidget( 1 )->repaint( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ) ); +} + +/* + * void repaint ( const QRect & rect ) + */ +HB_FUNC( QT_QWIDGET_REPAINT_1 ) +{ + hbqt_par_QWidget( 1 )->repaint( hbqt_const_QRect( 2 ) ); +} + +/* + * void resize ( const QSize & ) + */ HB_FUNC( QT_QWIDGET_RESIZE ) +{ + hbqt_par_QWidget( 1 )->resize( hbqt_const_QSize( 2 ) ); +} + +/* + * void resize ( int w, int h ) + */ +HB_FUNC( QT_QWIDGET_RESIZE_1 ) { hbqt_par_QWidget( 1 )->resize( hb_parni( 2 ), hb_parni( 3 ) ); } /* -void scroll( int dx, int dy ) -*/ + * void scroll ( int dx, int dy ) + */ HB_FUNC( QT_QWIDGET_SCROLL ) { hbqt_par_QWidget( 1 )->scroll( hb_parni( 2 ), hb_parni( 3 ) ); } /* -void setAcceptDrops( bool on ) -*/ + * void scroll ( int dx, int dy, const QRect & r ) + */ +HB_FUNC( QT_QWIDGET_SCROLL_1 ) +{ + hbqt_par_QWidget( 1 )->scroll( hb_parni( 2 ), hb_parni( 3 ), hbqt_const_QRect( 4 ) ); +} + +/* + * void setAcceptDrops ( bool on ) + */ HB_FUNC( QT_QWIDGET_SETACCEPTDROPS ) { hbqt_par_QWidget( 1 )->setAcceptDrops( hb_parl( 2 ) ); } /* -void setAccessibleDescription( const QString & description ) -*/ + * void setAccessibleDescription ( const QString & description ) + */ HB_FUNC( QT_QWIDGET_SETACCESSIBLEDESCRIPTION ) { hbqt_par_QWidget( 1 )->setAccessibleDescription( hbqt_par_QString( 2 ) ); } /* -void setAccessibleName( const QString & name ) -*/ + * void setAccessibleName ( const QString & name ) + */ HB_FUNC( QT_QWIDGET_SETACCESSIBLENAME ) { hbqt_par_QWidget( 1 )->setAccessibleName( hbqt_par_QString( 2 ) ); } /* -void setAttribute( Qt::WidgetAttribute attribute, bool on = true ) -*/ + * void setAttribute ( Qt::WidgetAttribute attribute, bool on = true ) + */ HB_FUNC( QT_QWIDGET_SETATTRIBUTE ) { hbqt_par_QWidget( 1 )->setAttribute( ( Qt::WidgetAttribute ) hb_parni( 2 ), hb_parl( 3 ) ); } /* -void setAutoFillBackground( bool enabled ) -*/ + * void setAutoFillBackground ( bool enabled ) + */ HB_FUNC( QT_QWIDGET_SETAUTOFILLBACKGROUND ) { hbqt_par_QWidget( 1 )->setAutoFillBackground( hb_parl( 2 ) ); } /* -void setBackgroundRole( QPalette::ColorRole role ) -*/ + * void setBackgroundRole ( QPalette::ColorRole role ) + */ HB_FUNC( QT_QWIDGET_SETBACKGROUNDROLE ) { hbqt_par_QWidget( 1 )->setBackgroundRole( ( QPalette::ColorRole ) hb_parni( 2 ) ); } /* -void setBaseSize( int basew, int baseh ) -*/ + * void setBaseSize ( const QSize & ) + */ HB_FUNC( QT_QWIDGET_SETBASESIZE ) +{ + hbqt_par_QWidget( 1 )->setBaseSize( hbqt_const_QSize( 2 ) ); +} + +/* + * void setBaseSize ( int basew, int baseh ) + */ +HB_FUNC( QT_QWIDGET_SETBASESIZE_1 ) { hbqt_par_QWidget( 1 )->setBaseSize( hb_parni( 2 ), hb_parni( 3 ) ); } /* -void setContentsMargins( int left, int top, int right, int bottom ) -*/ + * void setContentsMargins ( int left, int top, int right, int bottom ) + */ HB_FUNC( QT_QWIDGET_SETCONTENTSMARGINS ) { hbqt_par_QWidget( 1 )->setContentsMargins( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ) ); } /* -void setContextMenuPolicy( Qt::ContextMenuPolicy policy ) -*/ + * void setContextMenuPolicy ( Qt::ContextMenuPolicy policy ) + */ HB_FUNC( QT_QWIDGET_SETCONTEXTMENUPOLICY ) { hbqt_par_QWidget( 1 )->setContextMenuPolicy( ( Qt::ContextMenuPolicy ) hb_parni( 2 ) ); } /* -void setFixedHeight( int h ) -*/ + * void setFixedHeight ( int h ) + */ HB_FUNC( QT_QWIDGET_SETFIXEDHEIGHT ) { hbqt_par_QWidget( 1 )->setFixedHeight( hb_parni( 2 ) ); } /* -void setFixedSize( int w, int h ) -*/ + * void setFixedSize ( const QSize & s ) + */ HB_FUNC( QT_QWIDGET_SETFIXEDSIZE ) +{ + hbqt_par_QWidget( 1 )->setFixedSize( hbqt_const_QSize( 2 ) ); +} + +/* + * void setFixedSize ( int w, int h ) + */ +HB_FUNC( QT_QWIDGET_SETFIXEDSIZE_1 ) { hbqt_par_QWidget( 1 )->setFixedSize( hb_parni( 2 ), hb_parni( 3 ) ); } /* -void setFixedWidth( int w ) -*/ + * void setFixedWidth ( int w ) + */ HB_FUNC( QT_QWIDGET_SETFIXEDWIDTH ) { hbqt_par_QWidget( 1 )->setFixedWidth( hb_parni( 2 ) ); } /* -void setFocusPolicy( Qt::FocusPolicy policy ) -*/ + * void setFocus ( Qt::FocusReason reason ) + */ +HB_FUNC( QT_QWIDGET_SETFOCUS ) +{ + hbqt_par_QWidget( 1 )->setFocus( ( Qt::FocusReason ) hb_parni( 2 ) ); +} + +/* + * void setFocusPolicy ( Qt::FocusPolicy policy ) + */ HB_FUNC( QT_QWIDGET_SETFOCUSPOLICY ) { hbqt_par_QWidget( 1 )->setFocusPolicy( ( Qt::FocusPolicy ) hb_parni( 2 ) ); } /* -void setFocusProxy( QWidget * w ) -*/ + * void setFocusProxy ( QWidget * w ) + */ HB_FUNC( QT_QWIDGET_SETFOCUSPROXY ) { hbqt_par_QWidget( 1 )->setFocusProxy( hbqt_par_QWidget( 2 ) ); } /* -void setForegroundRole( QPalette::ColorRole role ) -*/ + * void setForegroundRole ( QPalette::ColorRole role ) + */ HB_FUNC( QT_QWIDGET_SETFOREGROUNDROLE ) { hbqt_par_QWidget( 1 )->setForegroundRole( ( QPalette::ColorRole ) hb_parni( 2 ) ); } /* -void setGeometry( int x, int y, int w, int h ) -*/ + * void setGeometry ( const QRect & ) + */ HB_FUNC( QT_QWIDGET_SETGEOMETRY ) { - hbqt_par_QWidget( 1 )->setGeometry( hb_parni( 2 ), hb_parni( 2 ), hb_parni( 2 ), hb_parni( 2 ) ); + hbqt_par_QWidget( 1 )->setGeometry( hbqt_const_QRect( 2 ) ); } /* -void setInputContext( QInputContext * context ) -*/ + * void setGeometry ( int x, int y, int w, int h ) + */ +HB_FUNC( QT_QWIDGET_SETGEOMETRY_1 ) +{ + hbqt_par_QWidget( 1 )->setGeometry( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ) ); +} + +/* + * void setInputContext ( QInputContext * context ) + */ HB_FUNC( QT_QWIDGET_SETINPUTCONTEXT ) { hbqt_par_QWidget( 1 )->setInputContext( hbqt_par_QInputContext( 2 ) ); } /* -void setLayout( QLayout * layout ) -*/ + * void setLayout ( QLayout * layout ) + */ HB_FUNC( QT_QWIDGET_SETLAYOUT ) { hbqt_par_QWidget( 1 )->setLayout( hbqt_par_QLayout( 2 ) ); } /* -void setLayoutDirection( Qt::LayoutDirection direction ) -*/ + * void setLayoutDirection ( Qt::LayoutDirection direction ) + */ HB_FUNC( QT_QWIDGET_SETLAYOUTDIRECTION ) { hbqt_par_QWidget( 1 )->setLayoutDirection( ( Qt::LayoutDirection ) hb_parni( 2 ) ); } /* -void setMaximumHeight( int maxh ) -*/ + * void setMaximumHeight ( int maxh ) + */ HB_FUNC( QT_QWIDGET_SETMAXIMUMHEIGHT ) { hbqt_par_QWidget( 1 )->setMaximumHeight( hb_parni( 2 ) ); } /* -void setMaximumSize( int maxw, int maxh ) -*/ + * void setMaximumSize ( const QSize & ) + */ HB_FUNC( QT_QWIDGET_SETMAXIMUMSIZE ) +{ + hbqt_par_QWidget( 1 )->setMaximumSize( hbqt_const_QSize( 2 ) ); +} + +/* + * void setMaximumSize ( int maxw, int maxh ) + */ +HB_FUNC( QT_QWIDGET_SETMAXIMUMSIZE_1 ) { hbqt_par_QWidget( 1 )->setMaximumSize( hb_parni( 2 ), hb_parni( 3 ) ); } /* -void setMaximumWidth( int maxw ) -*/ + * void setMaximumWidth ( int maxw ) + */ HB_FUNC( QT_QWIDGET_SETMAXIMUMWIDTH ) { hbqt_par_QWidget( 1 )->setMaximumWidth( hb_parni( 2 ) ); } /* -void setMinimumHeight( int minh ) -*/ + * void setMinimumHeight ( int minh ) + */ HB_FUNC( QT_QWIDGET_SETMINIMUMHEIGHT ) { hbqt_par_QWidget( 1 )->setMinimumHeight( hb_parni( 2 ) ); } /* -void setMinimumSize( int minw, int minh ) -*/ + * void setMinimumSize ( const QSize & ) + */ HB_FUNC( QT_QWIDGET_SETMINIMUMSIZE ) { - hbqt_par_QWidget( 1 )->setMinimumSize( hb_parni( 2 ), hb_parni( 2 ) ); + hbqt_par_QWidget( 1 )->setMinimumSize( hbqt_const_QSize( 2 ) ); } /* -void setMinimumWidth( int minw ) -*/ + * void setMinimumSize ( int minw, int minh ) + */ +HB_FUNC( QT_QWIDGET_SETMINIMUMSIZE_1 ) +{ + hbqt_par_QWidget( 1 )->setMinimumSize( hb_parni( 2 ), hb_parni( 3 ) ); +} + +/* + * void setMinimumWidth ( int minw ) + */ HB_FUNC( QT_QWIDGET_SETMINIMUMWIDTH ) { hbqt_par_QWidget( 1 )->setMinimumWidth( hb_parni( 2 ) ); } /* -void setMouseTracking( bool enable ) -*/ + * void setMouseTracking ( bool enable ) + */ HB_FUNC( QT_QWIDGET_SETMOUSETRACKING ) { hbqt_par_QWidget( 1 )->setMouseTracking( hb_parl( 2 ) ); } /* -void setParent( QWidget * parent ) -*/ + * void setParent ( QWidget * parent ) + */ HB_FUNC( QT_QWIDGET_SETPARENT ) { hbqt_par_QWidget( 1 )->setParent( hbqt_par_QWidget( 2 ) ); } /* -void setShortcutAutoRepeat( int id, bool enable = true ) -*/ + * void setParent ( QWidget * parent, Qt::WindowFlags f ) + */ +HB_FUNC( QT_QWIDGET_SETPARENT_1 ) +{ + hbqt_par_QWidget( 1 )->setParent( hbqt_par_QWidget( 2 ), ( Qt::WindowFlags ) hb_parni( 3 ) ); +} + +/* + * void setShortcutAutoRepeat ( int id, bool enable = true ) + */ HB_FUNC( QT_QWIDGET_SETSHORTCUTAUTOREPEAT ) { hbqt_par_QWidget( 1 )->setShortcutAutoRepeat( hb_parni( 2 ), hb_parl( 3 ) ); } /* -void setShortcutEnabled( int id, bool enable = true ) -*/ + * void setShortcutEnabled ( int id, bool enable = true ) + */ HB_FUNC( QT_QWIDGET_SETSHORTCUTENABLED ) { hbqt_par_QWidget( 1 )->setShortcutEnabled( hb_parni( 2 ), hb_parl( 3 ) ); } /* -void setSizeIncrement( int w, int h ) -*/ + * void setSizeIncrement ( const QSize & ) + */ HB_FUNC( QT_QWIDGET_SETSIZEINCREMENT ) +{ + hbqt_par_QWidget( 1 )->setSizeIncrement( hbqt_const_QSize( 2 ) ); +} + +/* + * void setSizeIncrement ( int w, int h ) + */ +HB_FUNC( QT_QWIDGET_SETSIZEINCREMENT_1 ) { hbqt_par_QWidget( 1 )->setSizeIncrement( hb_parni( 2 ), hb_parni( 3 ) ); } /* -void setSizePolicy( QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical ) -*/ + * void setSizePolicy ( QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical ) + */ HB_FUNC( QT_QWIDGET_SETSIZEPOLICY ) { - hbqt_par_QWidget( 1 )->setSizePolicy( ( QSizePolicy::Policy ) hb_parni( 2 ), - ( QSizePolicy::Policy ) hb_parni( 3 ) ); + hbqt_par_QWidget( 1 )->setSizePolicy( ( QSizePolicy::Policy ) hb_parni( 2 ), ( QSizePolicy::Policy ) hb_parni( 3 ) ); } /* -void setStatusTip( const QString & ) -*/ + * void setStatusTip ( const QString & ) + */ HB_FUNC( QT_QWIDGET_SETSTATUSTIP ) { hbqt_par_QWidget( 1 )->setStatusTip( hbqt_par_QString( 2 ) ); } /* -void setStyle( QStyle * style ) -*/ + * void setStyle ( QStyle * style ) + */ HB_FUNC( QT_QWIDGET_SETSTYLE ) { hbqt_par_QWidget( 1 )->setStyle( hbqt_par_QStyle( 2 ) ); } /* -void setToolTip( const QString & ) -*/ + * void setToolTip ( const QString & ) + */ HB_FUNC( QT_QWIDGET_SETTOOLTIP ) { hbqt_par_QWidget( 1 )->setToolTip( hbqt_par_QString( 2 ) ); } /* -void setUpdatesEnabled( bool enable ) -*/ + * void setUpdatesEnabled ( bool enable ) + */ HB_FUNC( QT_QWIDGET_SETUPDATESENABLED ) { hbqt_par_QWidget( 1 )->setUpdatesEnabled( hb_parl( 2 ) ); } /* -void setWhatsThis( const QString & ) -*/ + * void setWhatsThis ( const QString & ) + */ HB_FUNC( QT_QWIDGET_SETWHATSTHIS ) { hbqt_par_QWidget( 1 )->setWhatsThis( hbqt_par_QString( 2 ) ); } /* -void setWindowFilePath( const QString & filePath ) -*/ + * void setWindowFilePath ( const QString & filePath ) + */ HB_FUNC( QT_QWIDGET_SETWINDOWFILEPATH ) { hbqt_par_QWidget( 1 )->setWindowFilePath( hbqt_par_QString( 2 ) ); } /* -void setWindowFlags( Qt::WindowFlags type ) -*/ + * void setWindowFlags ( Qt::WindowFlags type ) + */ HB_FUNC( QT_QWIDGET_SETWINDOWFLAGS ) { - hbqt_par_QWidget( 1 )->setWindowFlags( (Qt::WindowFlags) hb_parni( 2 ) ); + hbqt_par_QWidget( 1 )->setWindowFlags( ( Qt::WindowFlags ) hb_parni( 2 ) ); } /* -void setWindowIcon( const QIcon & icon ) -*/ + * void setWindowIcon ( const QIcon & icon ) + */ HB_FUNC( QT_QWIDGET_SETWINDOWICON ) { hbqt_par_QWidget( 1 )->setWindowIcon( QIcon( hbqt_par_QString( 2 ) ) ); } /* -void setWindowIconText( const QString & ) -*/ + * void setWindowIconText ( const QString & ) + */ HB_FUNC( QT_QWIDGET_SETWINDOWICONTEXT ) { hbqt_par_QWidget( 1 )->setWindowIconText( hbqt_par_QString( 2 ) ); } /* -void setWindowModality( Qt::WindowModality windowModality ) -*/ + * void setWindowModality ( Qt::WindowModality windowModality ) + */ HB_FUNC( QT_QWIDGET_SETWINDOWMODALITY ) { - hbqt_par_QWidget( 1 )->setWindowModality( (Qt::WindowModality) hb_parni( 2 ) ); + hbqt_par_QWidget( 1 )->setWindowModality( ( Qt::WindowModality ) hb_parni( 2 ) ); } /* -void setWindowRole( const QString & role ) -*/ + * void setWindowOpacity ( qreal level ) + */ +HB_FUNC( QT_QWIDGET_SETWINDOWOPACITY ) +{ + hbqt_par_QWidget( 1 )->setWindowOpacity( hb_parnd( 2 ) ); +} + +/* + * void setWindowRole ( const QString & role ) + */ HB_FUNC( QT_QWIDGET_SETWINDOWROLE ) { hbqt_par_QWidget( 1 )->setWindowRole( hbqt_par_QString( 2 ) ); } /* -void setWindowState( Qt::WindowStates windowState ) -*/ + * void setWindowState ( Qt::WindowStates windowState ) + */ HB_FUNC( QT_QWIDGET_SETWINDOWSTATE ) { - hbqt_par_QWidget( 1 )->setWindowState( (Qt::WindowStates) hb_parni( 2 ) ); + hbqt_par_QWidget( 1 )->setWindowState( ( Qt::WindowStates ) hb_parni( 2 ) ); } /* -void setWindowSurface( QWindowSurface * surface ) (preliminary) -*/ + * void setWindowSurface ( QWindowSurface * surface ) (preliminary) + */ HB_FUNC( QT_QWIDGET_SETWINDOWSURFACE ) { hbqt_par_QWidget( 1 )->setWindowSurface( hbqt_par_QWindowSurface( 2 ) ); } /* -void stackUnder( QWidget * w ) -*/ + * QSize size () const + */ +HB_FUNC( QT_QWIDGET_SIZE ) +{ + hbqt_ret_QSize( hbqt_par_QWidget( 1 )->size( ) ); +} + +/* + * virtual QSize sizeHint () const + */ +HB_FUNC( QT_QWIDGET_SIZEHINT ) +{ + hbqt_ret_QSize( hbqt_par_QWidget( 1 )->sizeHint( ) ); +} + +/* + * QSize sizeIncrement () const + */ +HB_FUNC( QT_QWIDGET_SIZEINCREMENT ) +{ + hbqt_ret_QSize( hbqt_par_QWidget( 1 )->sizeIncrement( ) ); +} + +/* + * void stackUnder ( QWidget * w ) + */ HB_FUNC( QT_QWIDGET_STACKUNDER ) { hbqt_par_QWidget( 1 )->stackUnder( hbqt_par_QWidget( 2 ) ); } /* -QString statusTip () const -*/ + * QString statusTip () const + */ HB_FUNC( QT_QWIDGET_STATUSTIP ) { - hb_retc( hbqt_par_QWidget( 1 )->statusTip().toLatin1().data() ); + hb_retc( hbqt_par_QWidget( 1 )->statusTip( ).toLatin1().data() ); } /* -QStyle * style () const -*/ + * QStyle * style () const + */ HB_FUNC( QT_QWIDGET_STYLE ) { - hb_retptr( ( QStyle* ) hbqt_par_QWidget( 1 )->style() ); + hb_retptr( ( QStyle* ) hbqt_par_QWidget( 1 )->style( ) ); } /* -QString styleSheet () const -*/ + * QString styleSheet () const + */ HB_FUNC( QT_QWIDGET_STYLESHEET ) { - hb_retc( hbqt_par_QWidget( 1 )->styleSheet().toLatin1().data() ); + hb_retc( hbqt_par_QWidget( 1 )->styleSheet( ).toLatin1().data() ); } /* -bool testAttribute( Qt::WidgetAttribute attribute ) const -*/ + * bool testAttribute ( Qt::WidgetAttribute attribute ) const + */ HB_FUNC( QT_QWIDGET_TESTATTRIBUTE ) { - hb_retl( hbqt_par_QWidget( 1 )->testAttribute( (Qt::WidgetAttribute) hb_parni( 2 ) ) ); + hb_retl( hbqt_par_QWidget( 1 )->testAttribute( ( Qt::WidgetAttribute ) hb_parni( 2 ) ) ); } /* -QString toolTip () const -*/ + * QString toolTip () const + */ HB_FUNC( QT_QWIDGET_TOOLTIP ) { - hb_retc( hbqt_par_QWidget( 1 )->toolTip().toLatin1().data() ); + hb_retc( hbqt_par_QWidget( 1 )->toolTip( ).toLatin1().data() ); } /* -bool underMouse () const -*/ + * bool underMouse () const + */ HB_FUNC( QT_QWIDGET_UNDERMOUSE ) { - hb_retl( hbqt_par_QWidget( 1 )->underMouse() ); + hb_retl( hbqt_par_QWidget( 1 )->underMouse( ) ); } /* -void unsetCursor () -*/ + * void unsetCursor () + */ HB_FUNC( QT_QWIDGET_UNSETCURSOR ) { - hbqt_par_QWidget( 1 )->unsetCursor(); + hbqt_par_QWidget( 1 )->unsetCursor( ); } /* -void unsetLayoutDirection () -*/ + * void unsetLayoutDirection () + */ HB_FUNC( QT_QWIDGET_UNSETLAYOUTDIRECTION ) { - hbqt_par_QWidget( 1 )->unsetLayoutDirection(); + hbqt_par_QWidget( 1 )->unsetLayoutDirection( ); } /* -void unsetLocale () -*/ + * void unsetLocale () + */ HB_FUNC( QT_QWIDGET_UNSETLOCALE ) { - hbqt_par_QWidget( 1 )->unsetLocale(); + hbqt_par_QWidget( 1 )->unsetLocale( ); } /* -void update( int x, int y, int w, int h ) -*/ -HB_FUNC( QT_QWIDGET_UPDATE_1 ) + * void update ( int x, int y, int w, int h ) + */ +HB_FUNC( QT_QWIDGET_UPDATE ) { hbqt_par_QWidget( 1 )->update( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ) ); } /* -void updateGeometry () -*/ + * void update ( const QRect & rect ) + */ +HB_FUNC( QT_QWIDGET_UPDATE_1 ) +{ + hbqt_par_QWidget( 1 )->update( hbqt_const_QRect( 2 ) ); +} + +/* + * void updateGeometry () + */ HB_FUNC( QT_QWIDGET_UPDATEGEOMETRY ) { - hbqt_par_QWidget( 1 )->updateGeometry(); + hbqt_par_QWidget( 1 )->updateGeometry( ); } /* -bool updatesEnabled () const -*/ + * bool updatesEnabled () const + */ HB_FUNC( QT_QWIDGET_UPDATESENABLED ) { - hb_retl( hbqt_par_QWidget( 1 )->updatesEnabled() ); + hb_retl( hbqt_par_QWidget( 1 )->updatesEnabled( ) ); } /* -QString whatsThis () const -*/ + * QString whatsThis () const + */ HB_FUNC( QT_QWIDGET_WHATSTHIS ) { - hb_retc( hbqt_par_QWidget( 1 )->whatsThis().toLatin1().data() ); + hb_retc( hbqt_par_QWidget( 1 )->whatsThis( ).toLatin1().data() ); } /* -int width () const -*/ + * int width () const + */ HB_FUNC( QT_QWIDGET_WIDTH ) { - hb_retni( hbqt_par_QWidget( 1 )->width() ); + hb_retni( hbqt_par_QWidget( 1 )->width( ) ); } /* -QWidget * window () const -*/ + * QWidget * window () const + */ HB_FUNC( QT_QWIDGET_WINDOW ) { - hb_retptr( ( QWidget* ) hbqt_par_QWidget( 1 )->window() ); + hb_retptr( ( QWidget* ) hbqt_par_QWidget( 1 )->window( ) ); } /* -QString windowFilePath () const -*/ + * QString windowFilePath () const + */ HB_FUNC( QT_QWIDGET_WINDOWFILEPATH ) { - hb_retc( hbqt_par_QWidget( 1 )->windowFilePath().toLatin1().data() ); + hb_retc( hbqt_par_QWidget( 1 )->windowFilePath( ).toLatin1().data() ); } /* -Qt::WindowFlags windowFlags () const -*/ + * Qt::WindowFlags windowFlags () const + */ HB_FUNC( QT_QWIDGET_WINDOWFLAGS ) { - hb_retni( hbqt_par_QWidget( 1 )->windowFlags() ); + hb_retni( hbqt_par_QWidget( 1 )->windowFlags( ) ); } /* -QString windowIconText () const -*/ + * QString windowIconText () const + */ HB_FUNC( QT_QWIDGET_WINDOWICONTEXT ) { - hb_retc( hbqt_par_QWidget( 1 )->windowIconText().toLatin1().data() ); + hb_retc( hbqt_par_QWidget( 1 )->windowIconText( ).toLatin1().data() ); } /* -Qt::WindowModality windowModality () const -*/ + * Qt::WindowModality windowModality () const + */ HB_FUNC( QT_QWIDGET_WINDOWMODALITY ) { - hb_retni( hbqt_par_QWidget( 1 )->windowModality() ); + hb_retni( hbqt_par_QWidget( 1 )->windowModality( ) ); } /* -QString windowRole () const -*/ + * qreal windowOpacity () const + */ +HB_FUNC( QT_QWIDGET_WINDOWOPACITY ) +{ + hb_retnd( hbqt_par_QWidget( 1 )->windowOpacity( ) ); +} + +/* + * QString windowRole () const + */ HB_FUNC( QT_QWIDGET_WINDOWROLE ) { - hb_retc( hbqt_par_QWidget( 1 )->windowRole().toLatin1().data() ); + hb_retc( hbqt_par_QWidget( 1 )->windowRole( ).toLatin1().data() ); } /* -Qt::WindowStates windowState () const -*/ + * Qt::WindowStates windowState () const + */ HB_FUNC( QT_QWIDGET_WINDOWSTATE ) { - hb_retni( hbqt_par_QWidget( 1 )->windowState() ); + hb_retni( hbqt_par_QWidget( 1 )->windowState( ) ); } /* -QWindowSurface * windowSurface () const (preliminary) -*/ -HB_FUNC( QT_QWIDGET_WINDOWSURFACE ) -{ - hb_retptr( ( QWindowSurface* ) hbqt_par_QWidget( 1 )->windowSurface() ); -} - -/* -QString windowTitle () const -*/ + * QString windowTitle () const + */ HB_FUNC( QT_QWIDGET_WINDOWTITLE ) { - hb_retc( hbqt_par_QWidget( 1 )->windowTitle().toLatin1().data() ); + hb_retc( hbqt_par_QWidget( 1 )->windowTitle( ).toLatin1().data() ); } /* -Qt::WindowType windowType () const -*/ + * Qt::WindowType windowType () const + */ HB_FUNC( QT_QWIDGET_WINDOWTYPE ) { - hb_retni( hbqt_par_QWidget( 1 )->windowType() ); + hb_retni( hbqt_par_QWidget( 1 )->windowType( ) ); } /* -int x () const -*/ + * int x () const + */ HB_FUNC( QT_QWIDGET_X ) { - hb_retni( hbqt_par_QWidget( 1 )->x() ); + hb_retni( hbqt_par_QWidget( 1 )->x( ) ); } /* -int y () const -*/ + * int y () const + */ HB_FUNC( QT_QWIDGET_Y ) { - hb_retni( hbqt_par_QWidget( 1 )->y() ); + hb_retni( hbqt_par_QWidget( 1 )->y( ) ); } /* -bool close () -*/ + * bool close () + */ HB_FUNC( QT_QWIDGET_CLOSE ) { - hb_retl( hbqt_par_QWidget( 1 )->close() ); + hb_retl( hbqt_par_QWidget( 1 )->close( ) ); } /* -void hide () -*/ + * void hide () + */ HB_FUNC( QT_QWIDGET_HIDE ) { - hbqt_par_QWidget( 1 )->hide(); + hbqt_par_QWidget( 1 )->hide( ); } /* -void lower () -*/ + * void lower () + */ HB_FUNC( QT_QWIDGET_LOWER ) { - hbqt_par_QWidget( 1 )->lower(); + hbqt_par_QWidget( 1 )->lower( ); } /* -void raise () -*/ + * void raise () + */ HB_FUNC( QT_QWIDGET_RAISE ) { - hbqt_par_QWidget( 1 )->raise(); + hbqt_par_QWidget( 1 )->raise( ); } /* -void repaint () -*/ -HB_FUNC( QT_QWIDGET_REPAINT ) + * void repaint () + */ +HB_FUNC( QT_QWIDGET_REPAINT_2 ) { - hbqt_par_QWidget( 1 )->repaint(); + hbqt_par_QWidget( 1 )->repaint( ); } /* -void setDisabled( bool disable ) -*/ + * void setDisabled ( bool disable ) + */ HB_FUNC( QT_QWIDGET_SETDISABLED ) { hbqt_par_QWidget( 1 )->setDisabled( hb_parl( 2 ) ); } /* -void setEnabled( bool ) -*/ + * void setEnabled ( bool enable ) + */ HB_FUNC( QT_QWIDGET_SETENABLED ) { hbqt_par_QWidget( 1 )->setEnabled( hb_parl( 2 ) ); } /* -void setFocus () -*/ -HB_FUNC( QT_QWIDGET_SETFOCUS ) + * void setFocus () + */ +HB_FUNC( QT_QWIDGET_SETFOCUS_1 ) { - hbqt_par_QWidget( 1 )->setFocus(); + hbqt_par_QWidget( 1 )->setFocus( ); } /* -void setHidden( bool hidden ) -*/ + * void setHidden ( bool hidden ) + */ HB_FUNC( QT_QWIDGET_SETHIDDEN ) { hbqt_par_QWidget( 1 )->setHidden( hb_parl( 2 ) ); } /* -void setStyleSheet( const QString & styleSheet ) -*/ + * void setStyleSheet ( const QString & styleSheet ) + */ HB_FUNC( QT_QWIDGET_SETSTYLESHEET ) { hbqt_par_QWidget( 1 )->setStyleSheet( hbqt_par_QString( 2 ) ); } /* -virtual void setVisible( bool visible ) -*/ + * virtual void setVisible ( bool visible ) + */ HB_FUNC( QT_QWIDGET_SETVISIBLE ) { hbqt_par_QWidget( 1 )->setVisible( hb_parl( 2 ) ); } /* -void setWindowModified( bool ) -*/ + * void setWindowModified ( bool modified ) + */ HB_FUNC( QT_QWIDGET_SETWINDOWMODIFIED ) { hbqt_par_QWidget( 1 )->setWindowModified( hb_parl( 2 ) ); } /* -void setWindowTitle( const QString & ) -*/ + * void setWindowTitle ( const QString & title ) + */ HB_FUNC( QT_QWIDGET_SETWINDOWTITLE ) { hbqt_par_QWidget( 1 )->setWindowTitle( hbqt_par_QString( 2 ) ); } /* -void show () -*/ + * void show () + */ HB_FUNC( QT_QWIDGET_SHOW ) { - hbqt_par_QWidget( 1 )->show(); + hbqt_par_QWidget( 1 )->show( ); } /* -void showFullScreen () -*/ + * void showFullScreen () + */ HB_FUNC( QT_QWIDGET_SHOWFULLSCREEN ) { - hbqt_par_QWidget( 1 )->showFullScreen(); + hbqt_par_QWidget( 1 )->showFullScreen( ); } /* -void showMaximized () -*/ + * void showMaximized () + */ HB_FUNC( QT_QWIDGET_SHOWMAXIMIZED ) { - hbqt_par_QWidget( 1 )->showMaximized(); + hbqt_par_QWidget( 1 )->showMaximized( ); } /* -void showMinimized () -*/ + * void showMinimized () + */ HB_FUNC( QT_QWIDGET_SHOWMINIMIZED ) { - hbqt_par_QWidget( 1 )->showMinimized(); + hbqt_par_QWidget( 1 )->showMinimized( ); } /* -void showNormal () -*/ + * void showNormal () + */ HB_FUNC( QT_QWIDGET_SHOWNORMAL ) { - hbqt_par_QWidget( 1 )->showNormal(); + hbqt_par_QWidget( 1 )->showNormal( ); } /* -void update () -*/ -HB_FUNC( QT_QWIDGET_UPDATE ) + * void update () + */ +HB_FUNC( QT_QWIDGET_UPDATE_2 ) { - hbqt_par_QWidget( 1 )->update(); + hbqt_par_QWidget( 1 )->update( ); } + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_qwizard.cpp b/harbour/contrib/hbqt/hbqt_qwizard.cpp index 5b9922ba40..db2246c9d0 100644 --- a/harbour/contrib/hbqt/hbqt_qwizard.cpp +++ b/harbour/contrib/hbqt/hbqt_qwizard.cpp @@ -1,42 +1,42 @@ /* * $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 @@ -44,7 +44,7 @@ * 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. @@ -55,18 +55,274 @@ #include "hbapi.h" #include "hbqt.h" +/*----------------------------------------------------------------------*/ #if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + + +/* + * Constructed[ 29/36 [ 80.56% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * QVariant field ( const QString & name ) const + * QList pageIds () const + * QPixmap pixmap ( WizardPixmap which ) const + * void setButtonLayout ( const QList & layout ) + * void setField ( const QString & name, const QVariant & value ) + * void setPixmap ( WizardPixmap which, const QPixmap & pixmap ) + * QList visitedPages () const + */ + #include -/*----------------------------------------------------------------------*/ + + /* -QWizard ( QWidget * parent = 0, Qt::WindowFlags flags = 0 ) -*/ + * QWizard ( QWidget * parent = 0, Qt::WindowFlags flags = 0 ) + * ~QWizard () + */ HB_FUNC( QT_QWIZARD ) { - hb_retptr( ( QWizard* ) new QWizard( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ); + hb_retptr( new QWizard( hbqt_par_QWidget( 2 ) ) ); } +/* + * int addPage ( QWizardPage * page ) + */ +HB_FUNC( QT_QWIZARD_ADDPAGE ) +{ + hb_retni( hbqt_par_QWizard( 1 )->addPage( hbqt_par_QWizardPage( 2 ) ) ); +} + +/* + * QAbstractButton * button ( WizardButton which ) const + */ +HB_FUNC( QT_QWIZARD_BUTTON ) +{ + hb_retptr( ( QAbstractButton* ) hbqt_par_QWizard( 1 )->button( ( QWizard::WizardButton ) hb_parni( 2 ) ) ); +} + +/* + * QString buttonText ( WizardButton which ) const + */ +HB_FUNC( QT_QWIZARD_BUTTONTEXT ) +{ + hb_retc( hbqt_par_QWizard( 1 )->buttonText( ( QWizard::WizardButton ) hb_parni( 2 )).toLatin1().data() ); +} + +/* + * int currentId () const + */ +HB_FUNC( QT_QWIZARD_CURRENTID ) +{ + hb_retni( hbqt_par_QWizard( 1 )->currentId( ) ); +} + +/* + * QWizardPage * currentPage () const + */ +HB_FUNC( QT_QWIZARD_CURRENTPAGE ) +{ + hb_retptr( ( QWizardPage* ) hbqt_par_QWizard( 1 )->currentPage( ) ); +} + +/* + * bool hasVisitedPage ( int id ) const + */ +HB_FUNC( QT_QWIZARD_HASVISITEDPAGE ) +{ + hb_retl( hbqt_par_QWizard( 1 )->hasVisitedPage( hb_parni( 2 ) ) ); +} + +/* + * virtual int nextId () const + */ +HB_FUNC( QT_QWIZARD_NEXTID ) +{ + hb_retni( hbqt_par_QWizard( 1 )->nextId( ) ); +} + +/* + * WizardOptions options () const + */ +HB_FUNC( QT_QWIZARD_OPTIONS ) +{ + hb_retni( hbqt_par_QWizard( 1 )->options( ) ); +} + +/* + * QWizardPage * page ( int id ) const + */ +HB_FUNC( QT_QWIZARD_PAGE ) +{ + hb_retptr( ( QWizardPage* ) hbqt_par_QWizard( 1 )->page( hb_parni( 2 ) ) ); +} + +/* + * void removePage ( int id ) + */ +HB_FUNC( QT_QWIZARD_REMOVEPAGE ) +{ + hbqt_par_QWizard( 1 )->removePage( hb_parni( 2 ) ); +} + +/* + * void setButton ( WizardButton which, QAbstractButton * button ) + */ +HB_FUNC( QT_QWIZARD_SETBUTTON ) +{ + hbqt_par_QWizard( 1 )->setButton( ( QWizard::WizardButton ) hb_parni( 2 ), hbqt_par_QAbstractButton( 3 ) ); +} + +/* + * void setButtonText ( WizardButton which, const QString & text ) + */ +HB_FUNC( QT_QWIZARD_SETBUTTONTEXT ) +{ + hbqt_par_QWizard( 1 )->setButtonText( ( QWizard::WizardButton ) hb_parni( 2 ), hbqt_par_QString( 3 ) ); +} + +/* + * void setDefaultProperty ( const char * className, const char * property, const char * changedSignal ) + */ +HB_FUNC( QT_QWIZARD_SETDEFAULTPROPERTY ) +{ + hbqt_par_QWizard( 1 )->setDefaultProperty( hbqt_par_char( 2 ), hbqt_par_char( 3 ), hbqt_par_char( 4 ) ); +} + +/* + * void setOption ( WizardOption option, bool on = true ) + */ +HB_FUNC( QT_QWIZARD_SETOPTION ) +{ + hbqt_par_QWizard( 1 )->setOption( ( QWizard::WizardOption ) hb_parni( 2 ), hb_parl( 3 ) ); +} + +/* + * void setOptions ( WizardOptions options ) + */ +HB_FUNC( QT_QWIZARD_SETOPTIONS ) +{ + hbqt_par_QWizard( 1 )->setOptions( ( QWizard::WizardOptions ) hb_parni( 2 ) ); +} + +/* + * void setPage ( int id, QWizardPage * page ) + */ +HB_FUNC( QT_QWIZARD_SETPAGE ) +{ + hbqt_par_QWizard( 1 )->setPage( hb_parni( 2 ), hbqt_par_QWizardPage( 3 ) ); +} + +/* + * void setStartId ( int id ) + */ +HB_FUNC( QT_QWIZARD_SETSTARTID ) +{ + hbqt_par_QWizard( 1 )->setStartId( hb_parni( 2 ) ); +} + +/* + * void setSubTitleFormat ( Qt::TextFormat format ) + */ +HB_FUNC( QT_QWIZARD_SETSUBTITLEFORMAT ) +{ + hbqt_par_QWizard( 1 )->setSubTitleFormat( ( Qt::TextFormat ) hb_parni( 2 ) ); +} + +/* + * void setTitleFormat ( Qt::TextFormat format ) + */ +HB_FUNC( QT_QWIZARD_SETTITLEFORMAT ) +{ + hbqt_par_QWizard( 1 )->setTitleFormat( ( Qt::TextFormat ) hb_parni( 2 ) ); +} + +/* + * void setWizardStyle ( WizardStyle style ) + */ +HB_FUNC( QT_QWIZARD_SETWIZARDSTYLE ) +{ + hbqt_par_QWizard( 1 )->setWizardStyle( ( QWizard::WizardStyle ) hb_parni( 2 ) ); +} + +/* + * int startId () const + */ +HB_FUNC( QT_QWIZARD_STARTID ) +{ + hb_retni( hbqt_par_QWizard( 1 )->startId( ) ); +} + +/* + * Qt::TextFormat subTitleFormat () const + */ +HB_FUNC( QT_QWIZARD_SUBTITLEFORMAT ) +{ + hb_retni( hbqt_par_QWizard( 1 )->subTitleFormat( ) ); +} + +/* + * bool testOption ( WizardOption option ) const + */ +HB_FUNC( QT_QWIZARD_TESTOPTION ) +{ + hb_retl( hbqt_par_QWizard( 1 )->testOption( ( QWizard::WizardOption ) hb_parni( 2 ) ) ); +} + +/* + * Qt::TextFormat titleFormat () const + */ +HB_FUNC( QT_QWIZARD_TITLEFORMAT ) +{ + hb_retni( hbqt_par_QWizard( 1 )->titleFormat( ) ); +} + +/* + * virtual bool validateCurrentPage () + */ +HB_FUNC( QT_QWIZARD_VALIDATECURRENTPAGE ) +{ + hb_retl( hbqt_par_QWizard( 1 )->validateCurrentPage( ) ); +} + +/* + * WizardStyle wizardStyle () const + */ +HB_FUNC( QT_QWIZARD_WIZARDSTYLE ) +{ + hb_retni( hbqt_par_QWizard( 1 )->wizardStyle( ) ); +} + +/* + * void back () + */ +HB_FUNC( QT_QWIZARD_BACK ) +{ + hbqt_par_QWizard( 1 )->back( ); +} + +/* + * void next () + */ +HB_FUNC( QT_QWIZARD_NEXT ) +{ + hbqt_par_QWizard( 1 )->next( ); +} + +/* + * void restart () + */ +HB_FUNC( QT_QWIZARD_RESTART ) +{ + hbqt_par_QWizard( 1 )->restart( ); +} + + /*----------------------------------------------------------------------*/ -#endif +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ + diff --git a/harbour/contrib/hbqt/hbqt_slots.cpp b/harbour/contrib/hbqt/hbqt_slots.cpp index dc3508e6d6..9a440f29d4 100644 --- a/harbour/contrib/hbqt/hbqt_slots.cpp +++ b/harbour/contrib/hbqt/hbqt_slots.cpp @@ -60,7 +60,7 @@ #if QT_VERSION >= 0x040500 -#include "slots.h" +#include "hbqt_slots.h" #include #include @@ -409,3 +409,4 @@ void release_codeblocks( void ) /*----------------------------------------------------------------------*/ #endif + diff --git a/harbour/contrib/hbqt/slots.h b/harbour/contrib/hbqt/hbqt_slots.h similarity index 99% rename from harbour/contrib/hbqt/slots.h rename to harbour/contrib/hbqt/hbqt_slots.h index 4e62952346..57c9973f2a 100644 --- a/harbour/contrib/hbqt/slots.h +++ b/harbour/contrib/hbqt/hbqt_slots.h @@ -52,6 +52,7 @@ */ /*----------------------------------------------------------------------*/ + #ifndef SLOTS_H #define SLOTS_H @@ -85,3 +86,4 @@ class Slots: public QObject }; #endif + diff --git a/harbour/contrib/hbqt/hbqt_utils.cpp b/harbour/contrib/hbqt/hbqt_utils.cpp index 907913fbf6..3550ef1f29 100644 --- a/harbour/contrib/hbqt/hbqt_utils.cpp +++ b/harbour/contrib/hbqt/hbqt_utils.cpp @@ -6,6 +6,7 @@ * Harbour Project source code: * QT wrapper main header * + * Copyright 2009 Marcos Antonio Gambeta * Copyright 2009 Pritpal Bedi * www - http://www.harbour-project.org * diff --git a/harbour/contrib/hbqt/moc_slots.cpp b/harbour/contrib/hbqt/moc_slots.cpp index e9ad5040e9..8e578ff7c9 100644 --- a/harbour/contrib/hbqt/moc_slots.cpp +++ b/harbour/contrib/hbqt/moc_slots.cpp @@ -1,5 +1,5 @@ /**************************************************************************** -** Meta object code from reading C++ file 'slots.h' +** Meta object code from reading C++ file "slots.h" ** ** Created: Wed 18. Mar 17:25:39 2009 ** by: The Qt Meta Object Compiler version 61 (Qt 4.5.0) @@ -12,9 +12,9 @@ #if QT_VERSION >= 0x040500 -#include "slots.h" +#include "hbqt_slots.h" #if !defined(Q_MOC_OUTPUT_REVISION) -#error "The header file 'slots.h' doesn't include ." +#error "The header file [slots.h] doesn,t include ." #elif Q_MOC_OUTPUT_REVISION != 61 #error "This file was generated using the moc from 4.5.0. It" #error "cannot be used with the include files from this version of Qt." @@ -93,3 +93,4 @@ QT_END_MOC_NAMESPACE #endif + diff --git a/harbour/contrib/hbqt/qth/QAbstractButton.qth b/harbour/contrib/hbqt/qth/QAbstractButton.qth index ce5b6a4fc5..266ee47655 100644 --- a/harbour/contrib/hbqt/qth/QAbstractButton.qth +++ b/harbour/contrib/hbqt/qth/QAbstractButton.qth @@ -1,3 +1,7 @@ + +Inherit = QWidget +New = pParent + @@ -8,12 +12,10 @@ * QAbstractButton ( QWidget * parent = 0 ) * ~QAbstractButton () */ -#if 0 HB_FUNC( QT_QABSTRACTBUTTON ) { - hb_retptr( new QAbstractButton( hbqt_par_QWidget( 1 ) ) ); + } -#endif diff --git a/harbour/contrib/hbqt/qth/QAbstractItemView.qth b/harbour/contrib/hbqt/qth/QAbstractItemView.qth index b4b4555e88..f23d1de51b 100644 --- a/harbour/contrib/hbqt/qth/QAbstractItemView.qth +++ b/harbour/contrib/hbqt/qth/QAbstractItemView.qth @@ -1,3 +1,7 @@ + +Inherit = QAbstractScrollArea +New = pParent + @@ -8,12 +12,10 @@ * QAbstractItemView ( QWidget * parent = 0 ) * ~QAbstractItemView () */ -#if 0 HB_FUNC( QT_QABSTRACTITEMVIEW ) { } -#endif diff --git a/harbour/contrib/hbqt/qth/QAbstractPrintDialog.qth b/harbour/contrib/hbqt/qth/QAbstractPrintDialog.qth index 5769fc8504..b40c35246a 100644 --- a/harbour/contrib/hbqt/qth/QAbstractPrintDialog.qth +++ b/harbour/contrib/hbqt/qth/QAbstractPrintDialog.qth @@ -1,4 +1,8 @@ + +Inherit = QDialog +New = + #include @@ -7,12 +11,10 @@ /* * QAbstractPrintDialog ( QPrinter * printer, QWidget * parent = 0 ) */ -#if 0 HB_FUNC( QT_QABSTRACTPRINTDIALOG ) { } -#endif enum PrintDialogOption { None, PrintToFile, PrintSelection, PrintPageRange, ..., PrintShowPageSize } diff --git a/harbour/contrib/hbqt/qth/QAbstractScrollArea.qth b/harbour/contrib/hbqt/qth/QAbstractScrollArea.qth index 48c3409f55..3fd6737343 100644 --- a/harbour/contrib/hbqt/qth/QAbstractScrollArea.qth +++ b/harbour/contrib/hbqt/qth/QAbstractScrollArea.qth @@ -1,4 +1,8 @@ + +Inherit = QFrame +New = + #include @@ -8,12 +12,10 @@ * QAbstractScrollArea ( QWidget * parent = 0 ) * ~QAbstractScrollArea () */ -#if 0 HB_FUNC( QT_QABSTRACTSCROLLAREA ) { } -#endif void addScrollBarWidget ( QWidget * widget, Qt::Alignment alignment ) diff --git a/harbour/contrib/hbqt/qth/QAbstractSlider.qth b/harbour/contrib/hbqt/qth/QAbstractSlider.qth index f7415c9873..0da950f54b 100644 --- a/harbour/contrib/hbqt/qth/QAbstractSlider.qth +++ b/harbour/contrib/hbqt/qth/QAbstractSlider.qth @@ -1,3 +1,7 @@ + +Inherit = QWidget +New = + @@ -8,12 +12,10 @@ * QAbstractSlider ( QWidget * parent = 0 ) * ~QAbstractSlider () */ -#if 0 HB_FUNC( QT_QABSTRACTSLIDER ) { } -#endif enum SliderAction { SliderNoAction, SliderSingleStepAdd, SliderSingleStepSub, SliderPageStepAdd, ..., SliderMove } diff --git a/harbour/contrib/hbqt/qth/QAbstractSpinBox.qth b/harbour/contrib/hbqt/qth/QAbstractSpinBox.qth index 62161d73e7..88cda6eb67 100644 --- a/harbour/contrib/hbqt/qth/QAbstractSpinBox.qth +++ b/harbour/contrib/hbqt/qth/QAbstractSpinBox.qth @@ -1,3 +1,7 @@ + +Inherit = QWidget +New = pParent + @@ -8,12 +12,10 @@ * QAbstractSpinBox ( QWidget * parent = 0 ) * ~QAbstractSpinBox () */ -#if 0 HB_FUNC( QT_QABSTRACTSPINBOX ) { } -#endif enum ButtonSymbols { UpDownArrows, PlusMinus, NoButtons } diff --git a/harbour/contrib/hbqt/qth/QAction.qth b/harbour/contrib/hbqt/qth/QAction.qth index ae40924b59..5a0faa3bcd 100644 --- a/harbour/contrib/hbqt/qth/QAction.qth +++ b/harbour/contrib/hbqt/qth/QAction.qth @@ -1,3 +1,10 @@ + + +Inherit = QObject +New = pParent +Calls = QT_QAction + + diff --git a/harbour/contrib/hbqt/qth/QBoxLayout.qth b/harbour/contrib/hbqt/qth/QBoxLayout.qth index f111a7f411..362ba46896 100644 --- a/harbour/contrib/hbqt/qth/QBoxLayout.qth +++ b/harbour/contrib/hbqt/qth/QBoxLayout.qth @@ -1,3 +1,10 @@ + + +Inherit = QLayout +New = nDirection, pParent +Calls = QT_QBoxLayout + + diff --git a/harbour/contrib/hbqt/qth/QCalendarWidget.qth b/harbour/contrib/hbqt/qth/QCalendarWidget.qth index ad970dc088..430200a67e 100644 --- a/harbour/contrib/hbqt/qth/QCalendarWidget.qth +++ b/harbour/contrib/hbqt/qth/QCalendarWidget.qth @@ -1,3 +1,10 @@ + + +Inherit = QWidget +New = pParent +Calls = QT_QCalendarWidget + + diff --git a/harbour/contrib/hbqt/qth/QCheckBox.qth b/harbour/contrib/hbqt/qth/QCheckBox.qth index 6b578ea8b9..87ff9b789b 100644 --- a/harbour/contrib/hbqt/qth/QCheckBox.qth +++ b/harbour/contrib/hbqt/qth/QCheckBox.qth @@ -1,3 +1,10 @@ + + +Inherit = QAbstractButton +New = pParent +Calls = QT_QCheckBox + + diff --git a/harbour/contrib/hbqt/qth/QColorDialog.qth b/harbour/contrib/hbqt/qth/QColorDialog.qth index abc3e5b11b..aeecb3ccfa 100644 --- a/harbour/contrib/hbqt/qth/QColorDialog.qth +++ b/harbour/contrib/hbqt/qth/QColorDialog.qth @@ -1,3 +1,10 @@ + + +Inherit = QDialog +New = pParent +Calls = QT_QColorDialog + + #include diff --git a/harbour/contrib/hbqt/qth/QComboBox.qth b/harbour/contrib/hbqt/qth/QComboBox.qth index e16cce4ae0..d91f114129 100644 --- a/harbour/contrib/hbqt/qth/QComboBox.qth +++ b/harbour/contrib/hbqt/qth/QComboBox.qth @@ -1,3 +1,10 @@ + + +Inherit = QWidget +New = pParent +Calls = QT_QComboBox + + @@ -8,7 +15,7 @@ * QComboBox ( QWidget * parent = 0 ) * ~QComboBox () */ -HB_FUNC( QT_COMBOBOX ) +HB_FUNC( QT_QCOMBOBOX ) { hb_retptr( ( QComboBox* ) new QComboBox( hbqt_par_QWidget( 1 ) ) ); } diff --git a/harbour/contrib/hbqt/qth/QCommandLinkButton.qth b/harbour/contrib/hbqt/qth/QCommandLinkButton.qth index 9fa1e295cd..1f7f5d291f 100644 --- a/harbour/contrib/hbqt/qth/QCommandLinkButton.qth +++ b/harbour/contrib/hbqt/qth/QCommandLinkButton.qth @@ -1,3 +1,10 @@ + + +Inherit = QPushButton +New = pParent +Calls = QT_QCommandLinkButton + + diff --git a/harbour/contrib/hbqt/qth/QDateEdit.qth b/harbour/contrib/hbqt/qth/QDateEdit.qth index e6df369928..c35a69aa78 100644 --- a/harbour/contrib/hbqt/qth/QDateEdit.qth +++ b/harbour/contrib/hbqt/qth/QDateEdit.qth @@ -1,3 +1,10 @@ + + +Inherit = QDateTimeEdit +New = pParent +Calls = QT_QDateEdit + + diff --git a/harbour/contrib/hbqt/qth/QDateTimeEdit.qth b/harbour/contrib/hbqt/qth/QDateTimeEdit.qth index c06a8cdd46..0ae061aa6b 100644 --- a/harbour/contrib/hbqt/qth/QDateTimeEdit.qth +++ b/harbour/contrib/hbqt/qth/QDateTimeEdit.qth @@ -1,3 +1,9 @@ + + +Inherit = QAbstractSpinBox +New = pParent + + diff --git a/harbour/contrib/hbqt/qth/QDial.qth b/harbour/contrib/hbqt/qth/QDial.qth index 81465f8ec5..0e2f12fe30 100644 --- a/harbour/contrib/hbqt/qth/QDial.qth +++ b/harbour/contrib/hbqt/qth/QDial.qth @@ -1,3 +1,9 @@ + + +Inherit = QAbstractSlider +New = pParent + + diff --git a/harbour/contrib/hbqt/qth/QDialog.qth b/harbour/contrib/hbqt/qth/QDialog.qth index 1c953c9e26..43f88ffabc 100644 --- a/harbour/contrib/hbqt/qth/QDialog.qth +++ b/harbour/contrib/hbqt/qth/QDialog.qth @@ -1,4 +1,11 @@ + + +Inherit = QWidget +New = pParent, nFlags +Calls = QT_QDialog + + #include @@ -23,3 +30,10 @@ void setModal ( bool modal ) void setResult ( int i ) void setSizeGripEnabled ( bool ) +# Slots + +virtual void accept () +virtual void done ( int r ) +int exec () +void open () +virtual void reject () diff --git a/harbour/contrib/hbqt/qth/QDoubleSpinBox.qth b/harbour/contrib/hbqt/qth/QDoubleSpinBox.qth index d49ca65dc4..4ef7be8c55 100644 --- a/harbour/contrib/hbqt/qth/QDoubleSpinBox.qth +++ b/harbour/contrib/hbqt/qth/QDoubleSpinBox.qth @@ -1,3 +1,9 @@ + + +Inherit = QAbstractSpinBox +New = pParent + + diff --git a/harbour/contrib/hbqt/qth/QErrorMessage.qth b/harbour/contrib/hbqt/qth/QErrorMessage.qth index 656ce98aa6..2a12aa7f11 100644 --- a/harbour/contrib/hbqt/qth/QErrorMessage.qth +++ b/harbour/contrib/hbqt/qth/QErrorMessage.qth @@ -1,3 +1,9 @@ + + +Inherit = QDialog +New = pParent + + diff --git a/harbour/contrib/hbqt/qth/QFileDialog.qth b/harbour/contrib/hbqt/qth/QFileDialog.qth index d6c978dee4..858b4d8ddb 100644 --- a/harbour/contrib/hbqt/qth/QFileDialog.qth +++ b/harbour/contrib/hbqt/qth/QFileDialog.qth @@ -1,3 +1,9 @@ + + +Inherit = QDialog +New = pParent, nFlags + + diff --git a/harbour/contrib/hbqt/qth/QFocusFrame.qth b/harbour/contrib/hbqt/qth/QFocusFrame.qth index 036e26f963..b1ef943871 100644 --- a/harbour/contrib/hbqt/qth/QFocusFrame.qth +++ b/harbour/contrib/hbqt/qth/QFocusFrame.qth @@ -1,3 +1,9 @@ + + +Inherit = QWidget +New = pParent + + diff --git a/harbour/contrib/hbqt/qth/QFontComboBox.qth b/harbour/contrib/hbqt/qth/QFontComboBox.qth index 2b3db6ae63..f0aa945d4d 100644 --- a/harbour/contrib/hbqt/qth/QFontComboBox.qth +++ b/harbour/contrib/hbqt/qth/QFontComboBox.qth @@ -1,3 +1,9 @@ + + +Inherit = QComboBox +New = pParent + + diff --git a/harbour/contrib/hbqt/qth/QFontDialog.qth b/harbour/contrib/hbqt/qth/QFontDialog.qth index f22c1bd628..d31b628799 100644 --- a/harbour/contrib/hbqt/qth/QFontDialog.qth +++ b/harbour/contrib/hbqt/qth/QFontDialog.qth @@ -1,3 +1,9 @@ + + +Inherit = QDialog +New = pParent + + diff --git a/harbour/contrib/hbqt/qth/QFormLayout.qth b/harbour/contrib/hbqt/qth/QFormLayout.qth index ed0447b65e..0ab3bacfe3 100644 --- a/harbour/contrib/hbqt/qth/QFormLayout.qth +++ b/harbour/contrib/hbqt/qth/QFormLayout.qth @@ -1,3 +1,9 @@ + + +Inherit = QLayout +New = pParent + + diff --git a/harbour/contrib/hbqt/qth/QFrame.qth b/harbour/contrib/hbqt/qth/QFrame.qth index b3ff753e4d..d845f1a25e 100644 --- a/harbour/contrib/hbqt/qth/QFrame.qth +++ b/harbour/contrib/hbqt/qth/QFrame.qth @@ -1,3 +1,9 @@ + + +Inherit = QWidget +New = pParent, nFlags + + #include diff --git a/harbour/contrib/hbqt/qth/QGroupBox.qth b/harbour/contrib/hbqt/qth/QGroupBox.qth index 525e8d33c3..792251d173 100644 --- a/harbour/contrib/hbqt/qth/QGroupBox.qth +++ b/harbour/contrib/hbqt/qth/QGroupBox.qth @@ -1,3 +1,9 @@ + + +Inherit = QWidget +New = pParent + + diff --git a/harbour/contrib/hbqt/qth/QHBoxLayout.qth b/harbour/contrib/hbqt/qth/QHBoxLayout.qth index 32eebfa5f4..c3977ec820 100644 --- a/harbour/contrib/hbqt/qth/QHBoxLayout.qth +++ b/harbour/contrib/hbqt/qth/QHBoxLayout.qth @@ -1,3 +1,9 @@ + + +Inherit = QBoxLayout +New = pParent + + @@ -9,7 +15,7 @@ * QHBoxLayout ( QWidget * parent ) * ~QHBoxLayout () */ -HB_FUNC( QT_ ) +HB_FUNC( QT_QHBOXLAYOUT ) { hb_retptr( ( QHBoxLayout * ) new QHBoxLayout( hbqt_par_QWidget( 1 ) ) ); } diff --git a/harbour/contrib/hbqt/qth/QInputDialog.qth b/harbour/contrib/hbqt/qth/QInputDialog.qth index 557fc37ad2..2c39c83a6a 100644 --- a/harbour/contrib/hbqt/qth/QInputDialog.qth +++ b/harbour/contrib/hbqt/qth/QInputDialog.qth @@ -1,3 +1,9 @@ + + +Inherit = QDialog +New = pParent, nFlags + + diff --git a/harbour/contrib/hbqt/qth/QLCDNumber.qth b/harbour/contrib/hbqt/qth/QLCDNumber.qth index a5605c82cb..a18e946857 100644 --- a/harbour/contrib/hbqt/qth/QLCDNumber.qth +++ b/harbour/contrib/hbqt/qth/QLCDNumber.qth @@ -1,3 +1,9 @@ + + +Inherit = QFrame +New = pParent + + diff --git a/harbour/contrib/hbqt/qth/QLabel.qth b/harbour/contrib/hbqt/qth/QLabel.qth index eae48a0fcb..153cf8b9d2 100644 --- a/harbour/contrib/hbqt/qth/QLabel.qth +++ b/harbour/contrib/hbqt/qth/QLabel.qth @@ -1,3 +1,9 @@ + + +Inherit = QFrame +New = pParent, nFlags + + @@ -38,3 +44,12 @@ Qt::TextFormat textFormat () const Qt::TextInteractionFlags textInteractionFlags () const bool wordWrap () const +# Slots + +void clear () +void setMovie ( QMovie * movie ) +void setNum ( int num ) +void setNum ( double num ) +void setPicture ( const QPicture & picture ) +void setPixmap ( const QPixmap & ) +void setText ( const QString & ) diff --git a/harbour/contrib/hbqt/qth/QLayout.qth b/harbour/contrib/hbqt/qth/QLayout.qth index 20ca4c1825..192434a340 100644 --- a/harbour/contrib/hbqt/qth/QLayout.qth +++ b/harbour/contrib/hbqt/qth/QLayout.qth @@ -1,3 +1,7 @@ + +Inherit = QObject, QLayoutItem +New = pParent + @@ -8,12 +12,10 @@ * QLayout ( QWidget * parent ) * QLayout () */ -#if 0 HB_FUNC( QT_QLAYOUT ) { - hb_retptr( ( QLayout* ) new QLayout( hbqt_par_QWidget( 1 ) ) ); + } -#endif diff --git a/harbour/contrib/hbqt/qth/QLayoutItem.qth b/harbour/contrib/hbqt/qth/QLayoutItem.qth index b5131d2b5d..5896279c90 100644 --- a/harbour/contrib/hbqt/qth/QLayoutItem.qth +++ b/harbour/contrib/hbqt/qth/QLayoutItem.qth @@ -1,3 +1,8 @@ + + +New = pParent + + @@ -7,12 +12,10 @@ /* */ -#if 0 HB_FUNC( QT_QLAYOUTITEM ) { } -#endif diff --git a/harbour/contrib/hbqt/qth/QLineEdit.qth b/harbour/contrib/hbqt/qth/QLineEdit.qth index 8a5ada8e2c..ed84348647 100644 --- a/harbour/contrib/hbqt/qth/QLineEdit.qth +++ b/harbour/contrib/hbqt/qth/QLineEdit.qth @@ -1,3 +1,9 @@ + + +Inherit = QWidget +New = pParent + + diff --git a/harbour/contrib/hbqt/qth/QListView.qth b/harbour/contrib/hbqt/qth/QListView.qth index 2eb9a4f42e..e3f0579813 100644 --- a/harbour/contrib/hbqt/qth/QListView.qth +++ b/harbour/contrib/hbqt/qth/QListView.qth @@ -1,3 +1,9 @@ + + +Inherit = QAbstractItemView +New = pParent + + diff --git a/harbour/contrib/hbqt/qth/QMainWindow.qth b/harbour/contrib/hbqt/qth/QMainWindow.qth index 6ace51a735..31e6a004a1 100644 --- a/harbour/contrib/hbqt/qth/QMainWindow.qth +++ b/harbour/contrib/hbqt/qth/QMainWindow.qth @@ -1,3 +1,9 @@ + + +Inherit = QWidget +New = pParent, nFlags + + @@ -66,3 +72,7 @@ bool toolBarBreak ( QToolBar * toolbar ) const Qt::ToolButtonStyle toolButtonStyle () const bool unifiedTitleAndToolBarOnMac () const +# Slots + +void setAnimated ( bool enabled ) +void setDockNestingEnabled ( bool enabled ) diff --git a/harbour/contrib/hbqt/qth/QMenu.qth b/harbour/contrib/hbqt/qth/QMenu.qth index 2ef1afc1ca..6c69d50e34 100644 --- a/harbour/contrib/hbqt/qth/QMenu.qth +++ b/harbour/contrib/hbqt/qth/QMenu.qth @@ -1,3 +1,9 @@ + + +Inherit = QWidget +New = pParent + + #include diff --git a/harbour/contrib/hbqt/qth/QMenuBar.qth b/harbour/contrib/hbqt/qth/QMenuBar.qth index d5ee06af0b..ef1c226ba7 100644 --- a/harbour/contrib/hbqt/qth/QMenuBar.qth +++ b/harbour/contrib/hbqt/qth/QMenuBar.qth @@ -1,3 +1,9 @@ + + +Inherit = QWidget +New = pParent + + #include diff --git a/harbour/contrib/hbqt/qth/QMessageBox.qth b/harbour/contrib/hbqt/qth/QMessageBox.qth index 7b20f8492e..d9f993083b 100644 --- a/harbour/contrib/hbqt/qth/QMessageBox.qth +++ b/harbour/contrib/hbqt/qth/QMessageBox.qth @@ -1,3 +1,9 @@ + + +Inherit = QDialog +New = pParent + + #include diff --git a/harbour/contrib/hbqt/qth/QObject.qth b/harbour/contrib/hbqt/qth/QObject.qth index 583fc855d8..adaf6c06fb 100644 --- a/harbour/contrib/hbqt/qth/QObject.qth +++ b/harbour/contrib/hbqt/qth/QObject.qth @@ -1,3 +1,9 @@ + + +New = pParent +Calls = QT_Qbject + + #include @@ -9,7 +15,7 @@ */ HB_FUNC( QT_QOBJECT ) { - hb_retptr( ( QObject* ) new QObject() ); + hb_retptr( ( QObject* ) new QObject( hbqt_par_QWidget( 1 ) ) ); } diff --git a/harbour/contrib/hbqt/qth/QPageSetupDialog.qth b/harbour/contrib/hbqt/qth/QPageSetupDialog.qth index 34df1531cb..f080e61334 100644 --- a/harbour/contrib/hbqt/qth/QPageSetupDialog.qth +++ b/harbour/contrib/hbqt/qth/QPageSetupDialog.qth @@ -1,3 +1,9 @@ + + +Inherit = QDialog +New = pParent + + @@ -10,7 +16,10 @@ */ HB_FUNC( QT_QPAGESETUPDIALOG ) { - hb_retptr( ( QPageSetupDialog* ) new QPageSetupDialog( hbqt_par_QPrinter( 1 ), hbqt_par_QWidget( 1 ) ) ); + if( hb_pcount() >= 2 ) + hb_retptr( ( QPageSetupDialog* ) new QPageSetupDialog( hbqt_par_QPrinter( 1 ), hbqt_par_QWidget( 1 ) ) ); + else + hb_retptr( ( QPageSetupDialog* ) new QPageSetupDialog( hbqt_par_QWidget( 1 ) ) ); } diff --git a/harbour/contrib/hbqt/qth/QPaintDevice.qth b/harbour/contrib/hbqt/qth/QPaintDevice.qth new file mode 100644 index 0000000000..33eaaf3277 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QPaintDevice.qth @@ -0,0 +1,33 @@ + + +New = pParent + + + + +#include + +/* + * virtual ~QPaintDevice () + */ +HB_FUNC( QT_QPAINTDEVICE ) +{ + +} + + + +enum PaintDeviceMetric { PdmWidth, PdmHeight, PdmWidthMM, PdmHeightMM, ..., PdmPhysicalDpiY } + +int depth () const +int height () const +int heightMM () const +int logicalDpiX () const +int logicalDpiY () const +int numColors () const +virtual QPaintEngine * paintEngine () const = 0 +bool paintingActive () const +int physicalDpiX () const +int physicalDpiY () const +int width () const +int widthMM () const diff --git a/harbour/contrib/hbqt/qth/QPainter.qth b/harbour/contrib/hbqt/qth/QPainter.qth index 65735861e2..2e91fe8feb 100644 --- a/harbour/contrib/hbqt/qth/QPainter.qth +++ b/harbour/contrib/hbqt/qth/QPainter.qth @@ -1,3 +1,8 @@ + + +New = pDevice + + #include diff --git a/harbour/contrib/hbqt/qth/QPrintDialog.qth b/harbour/contrib/hbqt/qth/QPrintDialog.qth index d883f63429..32fb5f0d52 100644 --- a/harbour/contrib/hbqt/qth/QPrintDialog.qth +++ b/harbour/contrib/hbqt/qth/QPrintDialog.qth @@ -1,3 +1,9 @@ + + +Inherit = QAbstractPrintDialog +New = pParent + + #include diff --git a/harbour/contrib/hbqt/qth/QPrintPreviewDialog.qth b/harbour/contrib/hbqt/qth/QPrintPreviewDialog.qth index b1eafd56fe..a4c4ec12f1 100644 --- a/harbour/contrib/hbqt/qth/QPrintPreviewDialog.qth +++ b/harbour/contrib/hbqt/qth/QPrintPreviewDialog.qth @@ -1,3 +1,9 @@ + + +Inherit = QDialog +New = pParent, nFlags + + diff --git a/harbour/contrib/hbqt/qth/QProgressBar.qth b/harbour/contrib/hbqt/qth/QProgressBar.qth index 79a07f3dbc..556212f6da 100644 --- a/harbour/contrib/hbqt/qth/QProgressBar.qth +++ b/harbour/contrib/hbqt/qth/QProgressBar.qth @@ -1,3 +1,9 @@ + + +Inherit = QWidget +New = pParent + + diff --git a/harbour/contrib/hbqt/qth/QProgressDialog.qth b/harbour/contrib/hbqt/qth/QProgressDialog.qth new file mode 100644 index 0000000000..575b4d500d --- /dev/null +++ b/harbour/contrib/hbqt/qth/QProgressDialog.qth @@ -0,0 +1,48 @@ + +Inherit = QDialog +New = pParent + + + +#include + + +/* + * QProgressDialog ( QWidget * parent = 0, Qt::WindowFlags f = 0 ) + * QProgressDialog ( const QString & labelText, const QString & cancelButtonText, int minimum, int maximum, QWidget * parent = 0, Qt::WindowFlags f = 0 ) + * ~QProgressDialog () + */ +HB_FUNC( QT_QPROGRESSDIALOG ) +{ + hb_retptr( new QProgressDialog( hbqt_par_QWidget( 1 ) ) ); +} + + + +bool autoClose () const +bool autoReset () const +QString labelText () const +int maximum () const +int minimum () const +int minimumDuration () const +void open ( QObject * receiver, const char * member ) +void setAutoClose ( bool close ) +void setAutoReset ( bool reset ) +void setBar ( QProgressBar * bar ) +void setCancelButton ( QPushButton * cancelButton ) +void setLabel ( QLabel * label ) +virtual QSize sizeHint () const +int value () const +bool wasCanceled () const + +# SLOTS + +void cancel () +void reset () +void setCancelButtonText ( const QString & cancelButtonText ) +void setLabelText ( const QString & text ) +void setMaximum ( int maximum ) +void setMinimum ( int minimum ) +void setMinimumDuration ( int ms ) +void setRange ( int minimum, int maximum ) +void setValue ( int progress ) diff --git a/harbour/contrib/hbqt/qth/QPushButton.qth b/harbour/contrib/hbqt/qth/QPushButton.qth index 688ca308f6..f3e4622b5e 100644 --- a/harbour/contrib/hbqt/qth/QPushButton.qth +++ b/harbour/contrib/hbqt/qth/QPushButton.qth @@ -1,3 +1,9 @@ + + +Inherit = QAbstractButton +New = pParent + + diff --git a/harbour/contrib/hbqt/qth/QRadioButton.qth b/harbour/contrib/hbqt/qth/QRadioButton.qth index a661321afb..009d9dc779 100644 --- a/harbour/contrib/hbqt/qth/QRadioButton.qth +++ b/harbour/contrib/hbqt/qth/QRadioButton.qth @@ -1,3 +1,9 @@ + + +Inherit = QAbstractButton +New = pParent + + diff --git a/harbour/contrib/hbqt/qth/QScrollArea.qth b/harbour/contrib/hbqt/qth/QScrollArea.qth index 6a917757db..ddc244b789 100644 --- a/harbour/contrib/hbqt/qth/QScrollArea.qth +++ b/harbour/contrib/hbqt/qth/QScrollArea.qth @@ -1,3 +1,9 @@ + + +Inherit = QAbstractScrollArea +New = pParent + + diff --git a/harbour/contrib/hbqt/qth/QScrollBar.qth b/harbour/contrib/hbqt/qth/QScrollBar.qth index 40bb853ada..324503ec13 100644 --- a/harbour/contrib/hbqt/qth/QScrollBar.qth +++ b/harbour/contrib/hbqt/qth/QScrollBar.qth @@ -1,3 +1,9 @@ + + +Inherit = QAbstractSlider +New = pParent + + @@ -9,7 +15,7 @@ * QScrollBar ( Qt::Orientation orientation, QWidget * parent = 0 ) * ~QScrollBar () */ -HB_FUNC( QT_ ) +HB_FUNC( QT_QSCROLLBAR ) { hb_retptr( ( QScrollBar* ) new QScrollBar( hbqt_par_QWidget( 1 ) ) ); } diff --git a/harbour/contrib/hbqt/qth/QSizeGrip.qth b/harbour/contrib/hbqt/qth/QSizeGrip.qth index 99b0f25162..36aff3dcf2 100644 --- a/harbour/contrib/hbqt/qth/QSizeGrip.qth +++ b/harbour/contrib/hbqt/qth/QSizeGrip.qth @@ -1,3 +1,9 @@ + + +Inherit = QWidget +New = pParent + + @@ -8,7 +14,7 @@ * QSizeGrip ( QWidget * parent ) * ~QSizeGrip () */ -HB_FUNC( QT_ ) +HB_FUNC( QT_QSIZEGRIP ) { hb_retptr( ( QSizeGrip* ) new QSizeGrip( hbqt_par_QWidget( 1 ) ) ); } diff --git a/harbour/contrib/hbqt/qth/QSlider.qth b/harbour/contrib/hbqt/qth/QSlider.qth index 87d5fe9813..24cbf440cb 100644 --- a/harbour/contrib/hbqt/qth/QSlider.qth +++ b/harbour/contrib/hbqt/qth/QSlider.qth @@ -1,3 +1,9 @@ + + +Inherit = QAbstractSlider +New = pParent + + @@ -9,7 +15,7 @@ * QSlider ( Qt::Orientation orientation, QWidget * parent = 0 ) * ~QSlider () */ -HB_FUNC( QT_ ) +HB_FUNC( QT_QSLIDER ) { if( hb_pcount() >= 1 && HB_ISNUM( 1 ) ) hb_retptr( ( QSlider* ) new QSlider( ( Qt::Orientation ) hb_parni( 1 ), hbqt_par_QWidget( 2 ) ) ); diff --git a/harbour/contrib/hbqt/qth/QSpinBox.qth b/harbour/contrib/hbqt/qth/QSpinBox.qth index 66c0d96738..b7185c158d 100644 --- a/harbour/contrib/hbqt/qth/QSpinBox.qth +++ b/harbour/contrib/hbqt/qth/QSpinBox.qth @@ -1,3 +1,9 @@ + + +Inherit = QAbstractSpinBox +New = pParent + + diff --git a/harbour/contrib/hbqt/qth/QSplitter.qth b/harbour/contrib/hbqt/qth/QSplitter.qth index 2f8970d64c..c50103fd13 100644 --- a/harbour/contrib/hbqt/qth/QSplitter.qth +++ b/harbour/contrib/hbqt/qth/QSplitter.qth @@ -1,3 +1,9 @@ + + +Inherit = QFrame +New = pParent + + @@ -9,7 +15,7 @@ * QSplitter ( Qt::Orientation orientation, QWidget * parent = 0 ) * ~QSplitter () */ -HB_FUNC( QT_SPLITTER ) +HB_FUNC( QT_QSPLITTER ) { if( hb_pcount() >= 1 && HB_ISNUM( 1 ) ) hb_retptr( ( QSplitter* ) new QSplitter( ( Qt::Orientation ) hb_parni( 1 ), hbqt_par_QWidget( 2 ) ) ); diff --git a/harbour/contrib/hbqt/qth/QTabBar.qth b/harbour/contrib/hbqt/qth/QTabBar.qth index b83b725d9b..5e5350cf44 100644 --- a/harbour/contrib/hbqt/qth/QTabBar.qth +++ b/harbour/contrib/hbqt/qth/QTabBar.qth @@ -1,3 +1,9 @@ + + +Inherit = QWidget +New = pParent + + diff --git a/harbour/contrib/hbqt/qth/QTabWidget.qth b/harbour/contrib/hbqt/qth/QTabWidget.qth index c59e7c6b29..60125ded7d 100644 --- a/harbour/contrib/hbqt/qth/QTabWidget.qth +++ b/harbour/contrib/hbqt/qth/QTabWidget.qth @@ -1,3 +1,9 @@ + + +Inherit = QWidget +New = pParent + + @@ -8,7 +14,7 @@ * QTabWidget ( QWidget * parent = 0 ) * ~QTabWidget () */ -HB_FUNC( QT_TABWIDGET ) +HB_FUNC( QT_QTABWIDGET ) { hb_retptr( ( QTabWidget* ) new QTabWidget( hbqt_par_QWidget( 1 ) ) ); } diff --git a/harbour/contrib/hbqt/qth/QTableView.qth b/harbour/contrib/hbqt/qth/QTableView.qth index 20aa362472..8e6ae13511 100644 --- a/harbour/contrib/hbqt/qth/QTableView.qth +++ b/harbour/contrib/hbqt/qth/QTableView.qth @@ -1,3 +1,9 @@ + + +Inherit = QAbstractItemView +New = pParent + + diff --git a/harbour/contrib/hbqt/qth/QTableWidget.qth b/harbour/contrib/hbqt/qth/QTableWidget.qth index 8b0d031eae..6ec9eac47c 100644 --- a/harbour/contrib/hbqt/qth/QTableWidget.qth +++ b/harbour/contrib/hbqt/qth/QTableWidget.qth @@ -1,3 +1,9 @@ + + +Inherit = QTableView +New = pParent + + diff --git a/harbour/contrib/hbqt/qth/QTableWidgetItem.qth b/harbour/contrib/hbqt/qth/QTableWidgetItem.qth index 8192c985fb..66a611fadc 100644 --- a/harbour/contrib/hbqt/qth/QTableWidgetItem.qth +++ b/harbour/contrib/hbqt/qth/QTableWidgetItem.qth @@ -1,3 +1,8 @@ + + +New = iType + + @@ -11,7 +16,7 @@ * QTableWidgetItem ( const QTableWidgetItem & other ) * virtual ~QTableWidgetItem () */ -HB_FUNC( QT_TABLEWIDGETITEM ) +HB_FUNC( QT_QTABLEWIDGETITEM ) { if( hb_pcount() >= 2 && HB_ISCHAR( 1 ) ) { diff --git a/harbour/contrib/hbqt/qth/QTextEdit.qth b/harbour/contrib/hbqt/qth/QTextEdit.qth index dc9b085022..48e263dec0 100644 --- a/harbour/contrib/hbqt/qth/QTextEdit.qth +++ b/harbour/contrib/hbqt/qth/QTextEdit.qth @@ -1,3 +1,9 @@ + + +Inherit = QAbstractScrollArea +New = pParent + + diff --git a/harbour/contrib/hbqt/qth/QTimeEdit.qth b/harbour/contrib/hbqt/qth/QTimeEdit.qth index 25b03e856f..1da08de1bf 100644 --- a/harbour/contrib/hbqt/qth/QTimeEdit.qth +++ b/harbour/contrib/hbqt/qth/QTimeEdit.qth @@ -1,3 +1,9 @@ + + +Inherit = QDateTimeEdit +New = pParent + + diff --git a/harbour/contrib/hbqt/qth/QToolBar.qth b/harbour/contrib/hbqt/qth/QToolBar.qth index 8eebc126ef..d695ca1ef1 100644 --- a/harbour/contrib/hbqt/qth/QToolBar.qth +++ b/harbour/contrib/hbqt/qth/QToolBar.qth @@ -1,3 +1,9 @@ + + +Inherit = QWidget +New = pParent + + #include diff --git a/harbour/contrib/hbqt/qth/QToolBox.qth b/harbour/contrib/hbqt/qth/QToolBox.qth index 2b839a9ab3..3b047fec95 100644 --- a/harbour/contrib/hbqt/qth/QToolBox.qth +++ b/harbour/contrib/hbqt/qth/QToolBox.qth @@ -1,3 +1,9 @@ + + +Inherit = QFrame +New = pParent, nFlags + + diff --git a/harbour/contrib/hbqt/qth/QToolButton.qth b/harbour/contrib/hbqt/qth/QToolButton.qth index d21cd0a92f..c410a16f43 100644 --- a/harbour/contrib/hbqt/qth/QToolButton.qth +++ b/harbour/contrib/hbqt/qth/QToolButton.qth @@ -1,3 +1,9 @@ + + +Inherit = QAbstractButton +New = pParent + + #include diff --git a/harbour/contrib/hbqt/qth/QTreeView.qth b/harbour/contrib/hbqt/qth/QTreeView.qth index edb863fa11..dd82ecfd47 100644 --- a/harbour/contrib/hbqt/qth/QTreeView.qth +++ b/harbour/contrib/hbqt/qth/QTreeView.qth @@ -1,3 +1,10 @@ + + +Inherit = QAbstractItemView +New = pParent + + + #include diff --git a/harbour/contrib/hbqt/qth/QTreeWidget.qth b/harbour/contrib/hbqt/qth/QTreeWidget.qth index ccf73ecc90..dc3431ab09 100644 --- a/harbour/contrib/hbqt/qth/QTreeWidget.qth +++ b/harbour/contrib/hbqt/qth/QTreeWidget.qth @@ -1,3 +1,10 @@ + + +Inherit = QTreeView +New = pParent + + + #include diff --git a/harbour/contrib/hbqt/qth/QTreeWidgetItem.qth b/harbour/contrib/hbqt/qth/QTreeWidgetItem.qth index 8425d08513..db37f22311 100644 --- a/harbour/contrib/hbqt/qth/QTreeWidgetItem.qth +++ b/harbour/contrib/hbqt/qth/QTreeWidgetItem.qth @@ -1,3 +1,8 @@ + + +New = iType + + #include diff --git a/harbour/contrib/hbqt/qth/QVBoxLayout.qth b/harbour/contrib/hbqt/qth/QVBoxLayout.qth index be29663a0a..92bc79e7e0 100644 --- a/harbour/contrib/hbqt/qth/QVBoxLayout.qth +++ b/harbour/contrib/hbqt/qth/QVBoxLayout.qth @@ -1,3 +1,9 @@ + + +Inherit = QBoxLayout +New = pParent + + diff --git a/harbour/contrib/hbqt/qth/QWebPage.qth b/harbour/contrib/hbqt/qth/QWebPage.qth new file mode 100644 index 0000000000..64fa89d355 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QWebPage.qth @@ -0,0 +1,66 @@ + +Inherit = QObject +New = pParent + + + +#include + + + +/* + * QWebPage ( QObject * parent = 0 ) + * ~QWebPage () + */ +HB_FUNC( QT_QWEBPAGE ) +{ + hb_retptr( new QWebPage( hbqt_par_QWidget( 2 ) ) ); +} + + + +enum Extension { ChooseMultipleFilesExtension } +enum FindFlag { FindBackward, FindCaseSensitively, FindWrapsAroundDocument } +enum LinkDelegationPolicy { DontDelegateLinks, DelegateExternalLinks, DelegateAllLinks } +enum NavigationType { NavigationTypeLinkClicked, NavigationTypeFormSubmitted, NavigationTypeBackOrForward, NavigationTypeReload, NavigationTypeFormResubmitted, NavigationTypeOther } +enum WebAction { NoWebAction, OpenLink, OpenLinkInNewWindow, OpenFrameInNewWindow, ..., SelectAll } +enum WebWindowType { WebBrowserWindow, WebModalDialog } + +flags FindFlags + +QAction * action ( WebAction action ) const +quint64 bytesReceived () const +QMenu * createStandardContextMenu () +QWebFrame * currentFrame () const +// virtual bool extension ( Extension extension, const ExtensionOption * option = 0, ExtensionReturn * output = 0 ) +bool findText ( const QString & subString, FindFlags options = 0 ) +bool focusNextPrevChild ( bool next ) +bool forwardUnsupportedContent () const +QWebHistory * history () const +QVariant inputMethodQuery ( Qt::InputMethodQuery property ) const +bool isContentEditable () const +bool isModified () const +LinkDelegationPolicy linkDelegationPolicy () const +QWebFrame * mainFrame () const +QNetworkAccessManager * networkAccessManager () const +QPalette palette () const +QWebPluginFactory * pluginFactory () const +QString selectedText () const +void setContentEditable ( bool editable ) +void setForwardUnsupportedContent ( bool forward ) +void setLinkDelegationPolicy ( LinkDelegationPolicy policy ) +void setNetworkAccessManager ( QNetworkAccessManager * manager ) +void setPalette ( const QPalette & palette ) +void setPluginFactory ( QWebPluginFactory * factory ) +void setView ( QWidget * view ) +void setViewportSize ( const QSize & size ) const +QWebSettings * settings () const +virtual bool supportsExtension ( Extension extension ) const +bool swallowContextMenuEvent ( QContextMenuEvent * event ) +quint64 totalBytes () const +virtual void triggerAction ( WebAction action, bool checked = false ) +QUndoStack * undoStack () const +void updatePositionDependentActions ( const QPoint & pos ) +QWidget * view () const +QSize viewportSize () const + diff --git a/harbour/contrib/hbqt/qth/QWebView.qth b/harbour/contrib/hbqt/qth/QWebView.qth new file mode 100644 index 0000000000..8bdc037988 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QWebView.qth @@ -0,0 +1,51 @@ + +Inherit = QWidget +New = pParent + + + +#include + + + +/* + * QWebView ( QWidget * parent = 0 ) + * virtual ~QWebView () + */ +HB_FUNC( QT_QWEBVIEW ) +{ + hb_retptr( new QWebView( hbqt_par_QWidget( 1 ) ) ); +} + + + +bool findText ( const QString & subString, QWebPage::FindFlags options = 0 ) +QWebHistory * history () const +QIcon icon () const +bool isModified () const +void load ( const QUrl & url ) +void load ( const QNetworkRequest & request, QNetworkAccessManager::Operation operation = QNetworkAccessManager::GetOperation, const QByteArray & body = QByteArray() ) +QWebPage * page () const +QAction * pageAction ( QWebPage::WebAction action ) const +QString selectedText () const +void setContent ( const QByteArray & data, const QString & mimeType = QString(), const QUrl & baseUrl = QUrl() ) +void setHtml ( const QString & html, const QUrl & baseUrl = QUrl() ) +void setPage ( QWebPage * page ) +void setTextSizeMultiplier ( qreal factor ) +void setUrl ( const QUrl & url ) +void setZoomFactor ( qreal factor ) +QWebSettings * settings () const +qreal textSizeMultiplier () const +QString title () const +void triggerPageAction ( QWebPage::WebAction action, bool checked = false ) +QUrl url () const +qreal zoomFactor () const + +# SLOTS + +void back () +void forward () +void print ( QPrinter * printer ) const +void reload () +void stop () + diff --git a/harbour/contrib/hbqt/qth/QWidget.qth b/harbour/contrib/hbqt/qth/QWidget.qth index 33ecd8e26d..62f06c4b51 100644 --- a/harbour/contrib/hbqt/qth/QWidget.qth +++ b/harbour/contrib/hbqt/qth/QWidget.qth @@ -1,3 +1,10 @@ + + +Inherit = QObject, QPaintDevice +New = pParent, nFlags +Calls = QT_QWidget + + #include @@ -221,3 +228,25 @@ Qt::WindowType windowType () const int x () const //Qt::HANDLE x11PictureHandle () const int y () const + +# Slots + +bool close () +void hide () +void lower () +void raise () +void repaint () +void setDisabled ( bool disable ) +void setEnabled ( bool enable ) +void setFocus () +void setHidden ( bool hidden ) +void setStyleSheet ( const QString & styleSheet ) +virtual void setVisible ( bool visible ) +void setWindowModified ( bool modified ) +void setWindowTitle ( const QString & title ) +void show () +void showFullScreen () +void showMaximized () +void showMinimized () +void showNormal () +void update () diff --git a/harbour/contrib/hbqt/qth/QWizard.qth b/harbour/contrib/hbqt/qth/QWizard.qth new file mode 100644 index 0000000000..ef143a7327 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QWizard.qth @@ -0,0 +1,68 @@ + +Inherit = QDialog +New = pParent + + + +#include + + + +/* + * QWizard ( QWidget * parent = 0, Qt::WindowFlags flags = 0 ) + * ~QWizard () + */ +HB_FUNC( QT_QWIZARD ) +{ + hb_retptr( new QWizard( hbqt_par_QWidget( 2 ) ) ); +} + + + +enum WizardButton { BackButton, NextButton, CommitButton, FinishButton, ..., Stretch } +enum WizardOption { IndependentPages, IgnoreSubTitles, ExtendedWatermarkPixmap, NoDefaultButton, ..., HaveCustomButton3 } +enum WizardPixmap { WatermarkPixmap, LogoPixmap, BannerPixmap, BackgroundPixmap } +enum WizardStyle { ClassicStyle, ModernStyle, MacStyle, AeroStyle } + +flags WizardOptions + +int addPage ( QWizardPage * page ) +QAbstractButton * button ( WizardButton which ) const +QString buttonText ( WizardButton which ) const +int currentId () const +QWizardPage * currentPage () const +QVariant field ( const QString & name ) const +bool hasVisitedPage ( int id ) const +virtual int nextId () const +WizardOptions options () const +QWizardPage * page ( int id ) const +QList pageIds () const +QPixmap pixmap ( WizardPixmap which ) const +void removePage ( int id ) +void setButton ( WizardButton which, QAbstractButton * button ) +void setButtonLayout ( const QList & layout ) +void setButtonText ( WizardButton which, const QString & text ) +void setDefaultProperty ( const char * className, const char * property, const char * changedSignal ) +void setField ( const QString & name, const QVariant & value ) +void setOption ( WizardOption option, bool on = true ) +void setOptions ( WizardOptions options ) +void setPage ( int id, QWizardPage * page ) +void setPixmap ( WizardPixmap which, const QPixmap & pixmap ) +void setStartId ( int id ) +void setSubTitleFormat ( Qt::TextFormat format ) +void setTitleFormat ( Qt::TextFormat format ) +void setWizardStyle ( WizardStyle style ) +int startId () const +Qt::TextFormat subTitleFormat () const +bool testOption ( WizardOption option ) const +Qt::TextFormat titleFormat () const +virtual bool validateCurrentPage () +QList visitedPages () const +WizardStyle wizardStyle () const + +# Slots + +void back () +void next () +void restart () + diff --git a/harbour/contrib/hbqt/tests/demoqt.prg b/harbour/contrib/hbqt/tests/demoqt.prg index fbbf8b05e4..ce2da0b71b 100644 --- a/harbour/contrib/hbqt/tests/demoqt.prg +++ b/harbour/contrib/hbqt/tests/demoqt.prg @@ -52,18 +52,75 @@ */ /*----------------------------------------------------------------------*/ -Procedure Main() +#define QT_PTROF( oObj ) ( oObj:pPtr ) - Local oApplication, oMainWindow +/*----------------------------------------------------------------------*/ - oApplication := Qt_QApplication() +INIT PROCEDURE Qt_Start() + qt_qapplication() + RETURN - oMainWindow := Qt_QMainWindow() +EXIT PROCEDURE Qt_End() + qt_qapplication_exec() + RETURN - Qt_QWidget_SetWindowTitle( oMainWindow, "Testing Harbour-QT Implementation" ) - Qt_QWidget_Resize( oMainWindow, 640, 480) - Qt_QWidget_Show( oMainWindow ) +/*----------------------------------------------------------------------*/ - Qt_QApplication_exec() +PROCEDURE Main() + Local oLabel + Local oWnd + Local oMenuBar + Local oMenuA + LOCAL oPS, oPPrv, oMB, oWZ, oCD, oWP + + oWnd := QMainWindow():New() + oWnd:SetWindowTitle("Testing - QMainWindow, QMenu, QMenuBar and QLabel" ) + oWnd:Resize( { 640, 400 } ) + + oMenuBar := QMenuBar():new( QT_PTROF( oWnd ) ) + oMenuBar:resize( { oWnd:width(), 20 } ) + oMenuBar:addAction( "First" ) + oMenuBar:addSeparator() + oMenuBar:addAction( "Second" ) + + oMenuA := QMenu():new( QT_PTROF( oMenuBar ) ) + oMenuA:setTitle( "New" ) + oMenuA:addAction( "File" ) + oMenuA:addAction( "Open" ) + oMenuA:addSeparator() + oMenuA:addAction( "Close" ) + oMenuBar:addMenu( QT_PTROF( oMenuA ) ) + + oLabel := QLabel():New( QT_PTROF( oWnd ) ) + oLabel:SetText( "Testing Harbour + Qt" ) + oLabel:move( { 100,100 } ) + oLabel:Show() + + oWnd:Show() + + oPS := QPageSetupDialog():new() + oPS:setWindowTitle( "Harbour-QT PageSetup Dialog" ) + oPS:show() + oPPrv := QPrintPreviewDialog():new() + oPPrv:setWindowTitle( "Harbour-QT Preview Preview Dialog" ) + oPPrv:show() + oWZ := QWizard():new() + oWZ:setWindowTitle( "Harbour-QT Wizard to Show Slides etc." ) + oWZ:show() + oCD := QColorDialog():new() + oCD:setWindowTitle( "Harbour-QT Color Selection Dialog" ) + oCD:show() + oWP := QWebView():new() + oWP:setWindowTitle( "Harbour-QT Web Page Navigator" ) + oWP:show() + + RETURN + +/*----------------------------------------------------------------------*/ + +PROCEDURE HB_GtSys() + HB_GT_GUI_DEFAULT() + RETURN + +/*----------------------------------------------------------------------*/ - Return