* harbour/contrib/hbqt/Makefile
% Makefile is auto generated by <hbqtgen.exe> 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 <pParent> 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 <pPointer> to a method and will
receive <oObject> | <pPointer>. 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
98 lines
3.5 KiB
C++
98 lines
3.5 KiB
C++
/*
|
|
* $Id$
|
|
*/
|
|
|
|
/*
|
|
* Harbour Project source code:
|
|
* QT wrapper main header
|
|
*
|
|
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot com>
|
|
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
|
|
* www - http://www.harbour-project.org
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
* any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this software; see the file COPYING. If not, write to
|
|
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
|
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
|
|
*
|
|
* As a special exception, the Harbour Project gives permission for
|
|
* additional uses of the text contained in its release of Harbour.
|
|
*
|
|
* The exception is that, if you link the Harbour libraries with other
|
|
* files to produce an executable, this does not by itself cause the
|
|
* resulting executable to be covered by the GNU General Public License.
|
|
* Your use of that executable is in no way restricted on account of
|
|
* linking the Harbour library code into it.
|
|
*
|
|
* This exception does not however invalidate any other reasons why
|
|
* the executable file might be covered by the GNU General Public License.
|
|
*
|
|
* This exception applies only to the code released by the Harbour
|
|
* Project under the name Harbour. If you copy code from other
|
|
* Harbour Project or Free Software Foundation releases into a copy of
|
|
* Harbour, as the General Public License permits, the exception does
|
|
* not apply to the code that you add in this way. To avoid misleading
|
|
* anyone as to the status of such modified files, you must delete
|
|
* this exception notice from them.
|
|
*
|
|
* If you write modifications of your own for Harbour, it is your choice
|
|
* whether to permit this exception to apply to your modifications.
|
|
* If you do not wish that, delete this exception notice.
|
|
*
|
|
*/
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
#include "hbapi.h"
|
|
#include "hbqt.h"
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
#if QT_VERSION >= 0x040500
|
|
/*----------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
#include <QtGui/QCommandLinkButton>
|
|
|
|
|
|
/*
|
|
* QCommandLinkButton ( QWidget * parent = 0 )
|
|
* QCommandLinkButton ( const QString & text, QWidget * parent = 0 )
|
|
* QCommandLinkButton ( const QString & text, const QString & description, QWidget * parent = 0 )
|
|
*/
|
|
HB_FUNC( QT_QCOMMANDLINKBUTTON )
|
|
{
|
|
hb_retptr( ( QCommandLinkButton* ) new QCommandLinkButton( hbqt_par_QWidget( 1 ) ) );
|
|
}
|
|
|
|
/*
|
|
* QString description () const
|
|
*/
|
|
HB_FUNC( QT_QCOMMANDLINKBUTTON_DESCRIPTION )
|
|
{
|
|
hb_retc( hbqt_par_QCommandLinkButton( 1 )->description( ).toLatin1().data() );
|
|
}
|
|
|
|
/*
|
|
* void setDescription ( const QString & description )
|
|
*/
|
|
HB_FUNC( QT_QCOMMANDLINKBUTTON_SETDESCRIPTION )
|
|
{
|
|
hbqt_par_QCommandLinkButton( 1 )->setDescription( hbqt_par_QString( 2 ) );
|
|
}
|
|
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
#endif /* #if QT_VERSION >= 0x040500 */
|
|
/*----------------------------------------------------------------------*/
|
|
|