2009-10-22 18:43 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)

* contrib/hbqt/qth/QAbstractItemModel.qth
  * contrib/hbqt/qth/QAbstractScrollArea.qth
  * contrib/hbqt/qth/QApplication.qth
  * contrib/hbqt/qth/QDir.qth
  * contrib/hbqt/qth/QDirModel.qth
  * contrib/hbqt/qth/QFileSystemModel.qth
  * contrib/hbqt/qth/QGradient.qth
  * contrib/hbqt/qth/QHttp.qth
  * contrib/hbqt/qth/QObject.qth
  * contrib/hbqt/qth/QProcess.qth
  * contrib/hbqt/qth/QStyledItemDelegate.qth
  * contrib/hbqt/qth/QTableView.qth
  * contrib/hbqt/qth/QTextBlock.qth
  * contrib/hbqt/qth/QTextFormat.qth
  * contrib/hbqt/qth/QTextInlineObject.qth
  * contrib/hbqt/qth/QWebPage.qth
  * contrib/hbqt/qth/QWidget.qth

  + contrib/hbqt/qth/QAbstractEventDispatcher.qth
  + contrib/hbqt/qth/QAbstractItemDelegate.qth
  + contrib/hbqt/qth/QAbstractProxyModel.qth
  + contrib/hbqt/qth/QAbstractTextDocumentLayout.qth
  + contrib/hbqt/qth/QActionGroup.qth
  + contrib/hbqt/qth/QBitArray.qth
  + contrib/hbqt/qth/QByteArray.qth
  + contrib/hbqt/qth/QCompleter.qth
  + contrib/hbqt/qth/QContextMenuEvent.qth
  + contrib/hbqt/qth/QDataStream.qth
  + contrib/hbqt/qth/QDate.qth
  + contrib/hbqt/qth/QFile.qth
  + contrib/hbqt/qth/QFileIconProvider.qth
  + contrib/hbqt/qth/QFileInfo.qth
  + contrib/hbqt/qth/QHelpEvent.qth
  + contrib/hbqt/qth/QHttpRequestHeader.qth
  + contrib/hbqt/qth/QHttpResponseHeader.qth
  + contrib/hbqt/qth/QInputContext.qth
  + contrib/hbqt/qth/QInputMethodEvent.qth
  + contrib/hbqt/qth/QItemSelection.qth
  + contrib/hbqt/qth/QItemSelectionModel.qth
  + contrib/hbqt/qth/QLibraryInfo.qth
  + contrib/hbqt/qth/QLineF.qth
  + contrib/hbqt/qth/QLocale.qth
  + contrib/hbqt/qth/QMatrix.qth
  + contrib/hbqt/qth/QMimeData.qth
  + contrib/hbqt/qth/QMovie.qth
  + contrib/hbqt/qth/QNetworkRequest.qth
  + contrib/hbqt/qth/QPainterPath.qth
  + contrib/hbqt/qth/QPolygon.qth
  + contrib/hbqt/qth/QPolygonF.qth
  + contrib/hbqt/qth/QRegExp.qth
  + contrib/hbqt/qth/QSessionManager.qth
  + contrib/hbqt/qth/QSpacerItem.qth
  + contrib/hbqt/qth/QTableWidgetSelectionRange.qth
  + contrib/hbqt/qth/QTextListFormat.qth
  + contrib/hbqt/qth/QTextOption.qth
  + contrib/hbqt/qth/QTextTableFormat.qth
  + contrib/hbqt/qth/QThread.qth
  + contrib/hbqt/qth/QTime.qth
  + contrib/hbqt/qth/QTransform.qth
  + contrib/hbqt/qth/QTranslator.qth
  + contrib/hbqt/qth/QValidator.qth
  + contrib/hbqt/qth/QWizardPage.qth

  * contrib/hbqt/generator/hbqtgen.prg
  * contrib/hbqt/generator/qt45.qtp

  * contrib/hbqt/filelist.mk

  * contrib/hbqt/hbqt.h
  * contrib/hbqt/hbqt.hbc
  * contrib/hbqt/hbqt_destruct.cpp
  + contrib/hbqt/hbqt_garbage.h
  * contrib/hbqt/hbqt_slots.cpp

  - contrib/hbqt/QAbstractButton.cpp
  - contrib/hbqt/QAbstractItemModel.cpp
  - contrib/hbqt/QAbstractItemView.cpp
  - contrib/hbqt/QAbstractListModel.cpp
  - contrib/hbqt/QAbstractPrintDialog.cpp
  - contrib/hbqt/QAbstractScrollArea.cpp
  - contrib/hbqt/QAbstractSlider.cpp
  - contrib/hbqt/QAbstractSpinBox.cpp
  - contrib/hbqt/QAbstractTableModel.cpp
  - contrib/hbqt/QAction.cpp
  - contrib/hbqt/QApplication.cpp
  - contrib/hbqt/QBitmap.cpp
  - contrib/hbqt/QBoxLayout.cpp
  - contrib/hbqt/QBrush.cpp
  - contrib/hbqt/QButtonGroup.cpp
  - contrib/hbqt/QCalendarWidget.cpp
  - contrib/hbqt/QCheckBox.cpp
  - contrib/hbqt/QClipboard.cpp
  - contrib/hbqt/QColor.cpp
  - contrib/hbqt/QColorDialog.cpp
  - contrib/hbqt/QComboBox.cpp
  - contrib/hbqt/QCommandLinkButton.cpp
  - contrib/hbqt/QCommonStyle.cpp
  - contrib/hbqt/QConicalGradient.cpp
  - contrib/hbqt/QCoreApplication.cpp
  - contrib/hbqt/QCursor.cpp
  - contrib/hbqt/QDateEdit.cpp
  - contrib/hbqt/QDateTime.cpp
  - contrib/hbqt/QDateTimeEdit.cpp
  - contrib/hbqt/QDesktopWidget.cpp
  - contrib/hbqt/QDial.cpp
  - contrib/hbqt/QDialog.cpp
  - contrib/hbqt/QDir.cpp
  - contrib/hbqt/QDirModel.cpp
  - contrib/hbqt/QDockWidget.cpp
  - contrib/hbqt/QDoubleSpinBox.cpp
  - contrib/hbqt/QDragEnterEvent.cpp
  - contrib/hbqt/QDragLeaveEvent.cpp
  - contrib/hbqt/QDragMoveEvent.cpp
  - contrib/hbqt/QDropEvent.cpp
  - contrib/hbqt/QErrorMessage.cpp
  - contrib/hbqt/QEvent.cpp
  - contrib/hbqt/QEventLoop.cpp
  - contrib/hbqt/QFileDialog.cpp
  - contrib/hbqt/QFileSystemModel.cpp
  - contrib/hbqt/QFocusEvent.cpp
  - contrib/hbqt/QFocusFrame.cpp
  - contrib/hbqt/QFont.cpp
  - contrib/hbqt/QFontComboBox.cpp
  - contrib/hbqt/QFontDatabase.cpp
  - contrib/hbqt/QFontDialog.cpp
  - contrib/hbqt/QFontInfo.cpp
  - contrib/hbqt/QFontMetrics.cpp
  - contrib/hbqt/QFontMetricsF.cpp
  - contrib/hbqt/QFormLayout.cpp
  - contrib/hbqt/QFrame.cpp
  - contrib/hbqt/QFtp.cpp
  - contrib/hbqt/QGradient.cpp
  - contrib/hbqt/QGridLayout.cpp
  - contrib/hbqt/QGroupBox.cpp
  - contrib/hbqt/QHBoxLayout.cpp
  - contrib/hbqt/QHeaderView.cpp
  - contrib/hbqt/QHttp.cpp
  - contrib/hbqt/QIcon.cpp
  - contrib/hbqt/QImage.cpp
  - contrib/hbqt/QImageReader.cpp
  - contrib/hbqt/QImageWriter.cpp
  - contrib/hbqt/QInputDialog.cpp
  - contrib/hbqt/QInputEvent.cpp
  - contrib/hbqt/QIODevice.cpp
  - contrib/hbqt/QKeyEvent.cpp
  - contrib/hbqt/QKeySequence.cpp
  - contrib/hbqt/QLabel.cpp
  - contrib/hbqt/QLatin1Char.cpp
  - contrib/hbqt/QLatin1String.cpp
  - contrib/hbqt/QLayout.cpp
  - contrib/hbqt/QLayoutItem.cpp
  - contrib/hbqt/QLCDNumber.cpp
  - contrib/hbqt/QLine.cpp
  - contrib/hbqt/QLinearGradient.cpp
  - contrib/hbqt/QLineEdit.cpp
  - contrib/hbqt/QList.cpp
  - contrib/hbqt/QListView.cpp
  - contrib/hbqt/QListWidget.cpp
  - contrib/hbqt/QListWidgetItem.cpp
  - contrib/hbqt/QMainWindow.cpp
  - contrib/hbqt/QMenu.cpp
  - contrib/hbqt/QMenuBar.cpp
  - contrib/hbqt/QMessageBox.cpp
  - contrib/hbqt/QModelIndex.cpp
  - contrib/hbqt/QMouseEvent.cpp
  - contrib/hbqt/QMoveEvent.cpp
  - contrib/hbqt/QObject.cpp
  - contrib/hbqt/QPageSetupDialog.cpp
  - contrib/hbqt/QPaintDevice.cpp
  - contrib/hbqt/QPainter.cpp
  - contrib/hbqt/QPaintEvent.cpp
  - contrib/hbqt/QPalette.cpp
  - contrib/hbqt/QPen.cpp
  - contrib/hbqt/QPicture.cpp
  - contrib/hbqt/QPixmap.cpp
  - contrib/hbqt/QPoint.cpp
  - contrib/hbqt/QPointF.cpp
  - contrib/hbqt/QPrintDialog.cpp
  - contrib/hbqt/QPrintEngine.cpp
  - contrib/hbqt/QPrinter.cpp
  - contrib/hbqt/QPrintPreviewDialog.cpp
  - contrib/hbqt/QProcess.cpp
  - contrib/hbqt/QProgressBar.cpp
  - contrib/hbqt/QProgressDialog.cpp
  - contrib/hbqt/QPushButton.cpp
  - contrib/hbqt/QRadialGradient.cpp
  - contrib/hbqt/QRadioButton.cpp
  - contrib/hbqt/QRect.cpp
  - contrib/hbqt/QRectF.cpp
  - contrib/hbqt/QRegion.cpp
  - contrib/hbqt/QResizeEvent.cpp
  - contrib/hbqt/QResource.cpp
  - contrib/hbqt/QScrollArea.cpp
  - contrib/hbqt/QScrollBar.cpp
  - contrib/hbqt/QSignalMapper.cpp
  - contrib/hbqt/QSize.cpp
  - contrib/hbqt/QSizeF.cpp
  - contrib/hbqt/QSizeGrip.cpp
  - contrib/hbqt/QSizePolicy.cpp
  - contrib/hbqt/QSlider.cpp
  - contrib/hbqt/QSound.cpp
  - contrib/hbqt/QSpinBox.cpp
  - contrib/hbqt/QSplashScreen.cpp
  - contrib/hbqt/QSplitter.cpp
  - contrib/hbqt/QStandardItem.cpp
  - contrib/hbqt/QStandardItemModel.cpp
  - contrib/hbqt/QStatusBar.cpp
  - contrib/hbqt/QStringList.cpp
  - contrib/hbqt/QStringListModel.cpp
  - contrib/hbqt/QStyle.cpp
  - contrib/hbqt/QStyledItemDelegate.cpp
  - contrib/hbqt/QStyleFactory.cpp
  - contrib/hbqt/QStyleHintReturn.cpp
  - contrib/hbqt/QStyleHintReturnMask.cpp
  - contrib/hbqt/QStyleHintReturnVariant.cpp
  - contrib/hbqt/QStyleOption.cpp
  - contrib/hbqt/QStyleOptionButton.cpp
  - contrib/hbqt/QStyleOptionComboBox.cpp
  - contrib/hbqt/QStyleOptionComplex.cpp
  - contrib/hbqt/QStyleOptionDockWidget.cpp
  - contrib/hbqt/QStyleOptionFocusRect.cpp
  - contrib/hbqt/QStyleOptionFrame.cpp
  - contrib/hbqt/QStyleOptionGroupBox.cpp
  - contrib/hbqt/QStyleOptionHeader.cpp
  - contrib/hbqt/QStyleOptionMenuItem.cpp
  - contrib/hbqt/QStyleOptionProgressBar.cpp
  - contrib/hbqt/QStyleOptionSizeGrip.cpp
  - contrib/hbqt/QStyleOptionSlider.cpp
  - contrib/hbqt/QStyleOptionSpinBox.cpp
  - contrib/hbqt/QStyleOptionTab.cpp
  - contrib/hbqt/QStyleOptionTabBarBase.cpp
  - contrib/hbqt/QStyleOptionTabWidgetFrame.cpp
  - contrib/hbqt/QStyleOptionTitleBar.cpp
  - contrib/hbqt/QStyleOptionToolBar.cpp
  - contrib/hbqt/QStyleOptionToolBox.cpp
  - contrib/hbqt/QStyleOptionToolButton.cpp
  - contrib/hbqt/QStyleOptionViewItem.cpp
  - contrib/hbqt/QStylePainter.cpp
  - contrib/hbqt/QSystemTrayIcon.cpp
  - contrib/hbqt/QTabBar.cpp
  - contrib/hbqt/QTableView.cpp
  - contrib/hbqt/QTableWidget.cpp
  - contrib/hbqt/QTableWidgetItem.cpp
  - contrib/hbqt/QTabWidget.cpp
  - contrib/hbqt/QTextBlock.cpp
  - contrib/hbqt/QTextBlockFormat.cpp
  - contrib/hbqt/QTextBlockGroup.cpp
  - contrib/hbqt/QTextBoundaryFinder.cpp
  - contrib/hbqt/QTextBrowser.cpp
  - contrib/hbqt/QTextCharFormat.cpp
  - contrib/hbqt/QTextCodec.cpp
  - contrib/hbqt/QTextCursor.cpp
  - contrib/hbqt/QTextDecoder.cpp
  - contrib/hbqt/QTextDocument.cpp
  - contrib/hbqt/QTextDocumentFragment.cpp
  - contrib/hbqt/QTextDocumentWriter.cpp
  - contrib/hbqt/QTextEdit.cpp
  - contrib/hbqt/QTextEncoder.cpp
  - contrib/hbqt/QTextFormat.cpp
  - contrib/hbqt/QTextFragment.cpp
  - contrib/hbqt/QTextFrame.cpp
  - contrib/hbqt/QTextFrameFormat.cpp
  - contrib/hbqt/QTextImageFormat.cpp
  - contrib/hbqt/QTextInlineObject.cpp
  - contrib/hbqt/QTextItem.cpp
  - contrib/hbqt/QTextLayout.cpp
  - contrib/hbqt/QTextLength.cpp
  - contrib/hbqt/QTextLine.cpp
  - contrib/hbqt/QTextObject.cpp
  - contrib/hbqt/QTextStream.cpp
  - contrib/hbqt/QTimeEdit.cpp
  - contrib/hbqt/QTimer.cpp
  - contrib/hbqt/QToolBar.cpp
  - contrib/hbqt/QToolBox.cpp
  - contrib/hbqt/QToolButton.cpp
  - contrib/hbqt/QTreeView.cpp
  - contrib/hbqt/QTreeWidget.cpp
  - contrib/hbqt/QTreeWidgetItem.cpp
  - contrib/hbqt/QUrl.cpp
  - contrib/hbqt/QVariant.cpp
  - contrib/hbqt/QVBoxLayout.cpp
  - contrib/hbqt/QWebFrame.cpp
  - contrib/hbqt/QWebHistory.cpp
  - contrib/hbqt/QWebHistoryInterface.cpp
  - contrib/hbqt/QWebHistoryItem.cpp
  - contrib/hbqt/QWebHitTestResult.cpp
  - contrib/hbqt/QWebPage.cpp
  - contrib/hbqt/QWebPluginFactory.cpp
  - contrib/hbqt/QWebSecurityOrigin.cpp
  - contrib/hbqt/QWebSettings.cpp
  - contrib/hbqt/QWebView.cpp
  - contrib/hbqt/QWheelEvent.cpp
  - contrib/hbqt/QWidget.cpp
  - contrib/hbqt/QWidgetAction.cpp
  - contrib/hbqt/QWidgetItem.cpp
  - contrib/hbqt/QWindowsStyle.cpp
  - contrib/hbqt/QWindowsXPStyle.cpp
  - contrib/hbqt/QWizard.cpp

  - contrib/hbqt/TQAbstractButton.prg
  - contrib/hbqt/TQAbstractItemModel.prg
  - contrib/hbqt/TQAbstractItemView.prg
  - contrib/hbqt/TQAbstractListModel.prg
  - contrib/hbqt/TQAbstractPrintDialog.prg
  - contrib/hbqt/TQAbstractScrollArea.prg
  - contrib/hbqt/TQAbstractSlider.prg
  - contrib/hbqt/TQAbstractSpinBox.prg
  - contrib/hbqt/TQAbstractTableModel.prg
  - contrib/hbqt/TQAction.prg
  - contrib/hbqt/TQApplication.prg
  - contrib/hbqt/TQBitmap.prg
  - contrib/hbqt/TQBoxLayout.prg
  - contrib/hbqt/TQBrush.prg
  - contrib/hbqt/TQButtonGroup.prg
  - contrib/hbqt/TQCalendarWidget.prg
  - contrib/hbqt/TQCheckBox.prg
  - contrib/hbqt/TQClipboard.prg
  - contrib/hbqt/TQColor.prg
  - contrib/hbqt/TQColorDialog.prg
  - contrib/hbqt/TQComboBox.prg
  - contrib/hbqt/TQCommandLinkButton.prg
  - contrib/hbqt/TQCommonStyle.prg
  - contrib/hbqt/TQConicalGradient.prg
  - contrib/hbqt/TQCoreApplication.prg
  - contrib/hbqt/TQCursor.prg
  - contrib/hbqt/TQDateEdit.prg
  - contrib/hbqt/TQDateTime.prg
  - contrib/hbqt/TQDateTimeEdit.prg
  - contrib/hbqt/TQDesktopWidget.prg
  - contrib/hbqt/TQDial.prg
  - contrib/hbqt/TQDialog.prg
  - contrib/hbqt/TQDir.prg
  - contrib/hbqt/TQDirModel.prg
  - contrib/hbqt/TQDockWidget.prg
  - contrib/hbqt/TQDoubleSpinBox.prg
  - contrib/hbqt/TQDragEnterEvent.prg
  - contrib/hbqt/TQDragLeaveEvent.prg
  - contrib/hbqt/TQDragMoveEvent.prg
  - contrib/hbqt/TQDropEvent.prg
  - contrib/hbqt/TQErrorMessage.prg
  - contrib/hbqt/TQEvent.prg
  - contrib/hbqt/TQEventLoop.prg
  - contrib/hbqt/TQFileDialog.prg
  - contrib/hbqt/TQFileSystemModel.prg
  - contrib/hbqt/TQFocusEvent.prg
  - contrib/hbqt/TQFocusFrame.prg
  - contrib/hbqt/TQFont.prg
  - contrib/hbqt/TQFontComboBox.prg
  - contrib/hbqt/TQFontDatabase.prg
  - contrib/hbqt/TQFontDialog.prg
  - contrib/hbqt/TQFontInfo.prg
  - contrib/hbqt/TQFontMetrics.prg
  - contrib/hbqt/TQFontMetricsF.prg
  - contrib/hbqt/TQFormLayout.prg
  - contrib/hbqt/TQFrame.prg
  - contrib/hbqt/TQFtp.prg
  - contrib/hbqt/TQGradient.prg
  - contrib/hbqt/TQGridLayout.prg
  - contrib/hbqt/TQGroupBox.prg
  - contrib/hbqt/TQHBoxLayout.prg
  - contrib/hbqt/TQHeaderView.prg
  - contrib/hbqt/TQHttp.prg
  - contrib/hbqt/TQIcon.prg
  - contrib/hbqt/TQImage.prg
  - contrib/hbqt/TQImageReader.prg
  - contrib/hbqt/TQImageWriter.prg
  - contrib/hbqt/TQInputDialog.prg
  - contrib/hbqt/TQInputEvent.prg
  - contrib/hbqt/TQIODevice.prg
  - contrib/hbqt/TQKeyEvent.prg
  - contrib/hbqt/TQKeySequence.prg
  - contrib/hbqt/TQLabel.prg
  - contrib/hbqt/TQLatin1Char.prg
  - contrib/hbqt/TQLatin1String.prg
  - contrib/hbqt/TQLayout.prg
  - contrib/hbqt/TQLayoutItem.prg
  - contrib/hbqt/TQLCDNumber.prg
  - contrib/hbqt/TQLine.prg
  - contrib/hbqt/TQLinearGradient.prg
  - contrib/hbqt/TQLineEdit.prg
  - contrib/hbqt/TQList.prg
  - contrib/hbqt/TQListView.prg
  - contrib/hbqt/TQListWidget.prg
  - contrib/hbqt/TQListWidgetItem.prg
  - contrib/hbqt/TQMainWindow.prg
  - contrib/hbqt/TQMenu.prg
  - contrib/hbqt/TQMenuBar.prg
  - contrib/hbqt/TQMessageBox.prg
  - contrib/hbqt/TQModelIndex.prg
  - contrib/hbqt/TQMouseEvent.prg
  - contrib/hbqt/TQMoveEvent.prg
  - contrib/hbqt/TQObject.prg
  - contrib/hbqt/TQPageSetupDialog.prg
  - contrib/hbqt/TQPaintDevice.prg
  - contrib/hbqt/TQPainter.prg
  - contrib/hbqt/TQPaintEvent.prg
  - contrib/hbqt/TQPalette.prg
  - contrib/hbqt/TQPen.prg
  - contrib/hbqt/TQPicture.prg
  - contrib/hbqt/TQPixmap.prg
  - contrib/hbqt/TQPoint.prg
  - contrib/hbqt/TQPointF.prg
  - contrib/hbqt/TQPrintDialog.prg
  - contrib/hbqt/TQPrintEngine.prg
  - contrib/hbqt/TQPrinter.prg
  - contrib/hbqt/TQPrintPreviewDialog.prg
  - contrib/hbqt/TQProcess.prg
  - contrib/hbqt/TQProgressBar.prg
  - contrib/hbqt/TQProgressDialog.prg
  - contrib/hbqt/TQPushButton.prg
  - contrib/hbqt/TQRadialGradient.prg
  - contrib/hbqt/TQRadioButton.prg
  - contrib/hbqt/TQRect.prg
  - contrib/hbqt/TQRectF.prg
  - contrib/hbqt/TQRegion.prg
  - contrib/hbqt/TQResizeEvent.prg
  - contrib/hbqt/TQResource.prg
  - contrib/hbqt/TQScrollArea.prg
  - contrib/hbqt/TQScrollBar.prg
  - contrib/hbqt/TQSignalMapper.prg
  - contrib/hbqt/TQSize.prg
  - contrib/hbqt/TQSizeF.prg
  - contrib/hbqt/TQSizeGrip.prg
  - contrib/hbqt/TQSizePolicy.prg
  - contrib/hbqt/TQSlider.prg
  - contrib/hbqt/TQSound.prg
  - contrib/hbqt/TQSpinBox.prg
  - contrib/hbqt/TQSplashScreen.prg
  - contrib/hbqt/TQSplitter.prg
  - contrib/hbqt/TQStandardItem.prg
  - contrib/hbqt/TQStandardItemModel.prg
  - contrib/hbqt/TQStatusBar.prg
  - contrib/hbqt/TQStringList.prg
  - contrib/hbqt/TQStringListModel.prg
  - contrib/hbqt/TQStyle.prg
  - contrib/hbqt/TQStyledItemDelegate.prg
  - contrib/hbqt/TQStyleFactory.prg
  - contrib/hbqt/TQStyleHintReturn.prg
  - contrib/hbqt/TQStyleHintReturnMask.prg
  - contrib/hbqt/TQStyleHintReturnVariant.prg
  - contrib/hbqt/TQStyleOption.prg
  - contrib/hbqt/TQStyleOptionButton.prg
  - contrib/hbqt/TQStyleOptionComboBox.prg
  - contrib/hbqt/TQStyleOptionComplex.prg
  - contrib/hbqt/TQStyleOptionDockWidget.prg
  - contrib/hbqt/TQStyleOptionFocusRect.prg
  - contrib/hbqt/TQStyleOptionFrame.prg
  - contrib/hbqt/TQStyleOptionGroupBox.prg
  - contrib/hbqt/TQStyleOptionHeader.prg
  - contrib/hbqt/TQStyleOptionMenuItem.prg
  - contrib/hbqt/TQStyleOptionProgressBar.prg
  - contrib/hbqt/TQStyleOptionSizeGrip.prg
  - contrib/hbqt/TQStyleOptionSlider.prg
  - contrib/hbqt/TQStyleOptionSpinBox.prg
  - contrib/hbqt/TQStyleOptionTab.prg
  - contrib/hbqt/TQStyleOptionTabBarBase.prg
  - contrib/hbqt/TQStyleOptionTabWidgetFrame.prg
  - contrib/hbqt/TQStyleOptionTitleBar.prg
  - contrib/hbqt/TQStyleOptionToolBar.prg
  - contrib/hbqt/TQStyleOptionToolBox.prg
  - contrib/hbqt/TQStyleOptionToolButton.prg
  - contrib/hbqt/TQStyleOptionViewItem.prg
  - contrib/hbqt/TQStylePainter.prg
  - contrib/hbqt/TQSystemTrayIcon.prg
  - contrib/hbqt/TQTabBar.prg
  - contrib/hbqt/TQTableView.prg
  - contrib/hbqt/TQTableWidget.prg
  - contrib/hbqt/TQTableWidgetItem.prg
  - contrib/hbqt/TQTabWidget.prg
  - contrib/hbqt/TQTextBlock.prg
  - contrib/hbqt/TQTextBlockFormat.prg
  - contrib/hbqt/TQTextBlockGroup.prg
  - contrib/hbqt/TQTextBoundaryFinder.prg
  - contrib/hbqt/TQTextBrowser.prg
  - contrib/hbqt/TQTextCharFormat.prg
  - contrib/hbqt/TQTextCodec.prg
  - contrib/hbqt/TQTextCursor.prg
  - contrib/hbqt/TQTextDecoder.prg
  - contrib/hbqt/TQTextDocument.prg
  - contrib/hbqt/TQTextDocumentFragment.prg
  - contrib/hbqt/TQTextDocumentWriter.prg
  - contrib/hbqt/TQTextEdit.prg
  - contrib/hbqt/TQTextEncoder.prg
  - contrib/hbqt/TQTextFormat.prg
  - contrib/hbqt/TQTextFragment.prg
  - contrib/hbqt/TQTextFrame.prg
  - contrib/hbqt/TQTextFrameFormat.prg
  - contrib/hbqt/TQTextImageFormat.prg
  - contrib/hbqt/TQTextInlineObject.prg
  - contrib/hbqt/TQTextItem.prg
  - contrib/hbqt/TQTextLayout.prg
  - contrib/hbqt/TQTextLength.prg
  - contrib/hbqt/TQTextLine.prg
  - contrib/hbqt/TQTextObject.prg
  - contrib/hbqt/TQTextStream.prg
  - contrib/hbqt/TQTimeEdit.prg
  - contrib/hbqt/TQTimer.prg
  - contrib/hbqt/TQToolBar.prg
  - contrib/hbqt/TQToolBox.prg
  - contrib/hbqt/TQToolButton.prg
  - contrib/hbqt/TQTreeView.prg
  - contrib/hbqt/TQTreeWidget.prg
  - contrib/hbqt/TQTreeWidgetItem.prg
  - contrib/hbqt/TQUrl.prg
  - contrib/hbqt/TQVariant.prg
  - contrib/hbqt/TQVBoxLayout.prg
  - contrib/hbqt/TQWebFrame.prg
  - contrib/hbqt/TQWebHistory.prg
  - contrib/hbqt/TQWebHistoryInterface.prg
  - contrib/hbqt/TQWebHistoryItem.prg
  - contrib/hbqt/TQWebHitTestResult.prg
  - contrib/hbqt/TQWebPage.prg
  - contrib/hbqt/TQWebPluginFactory.prg
  - contrib/hbqt/TQWebSecurityOrigin.prg
  - contrib/hbqt/TQWebSettings.prg
  - contrib/hbqt/TQWebView.prg
  - contrib/hbqt/TQWheelEvent.prg
  - contrib/hbqt/TQWidget.prg
  - contrib/hbqt/TQWidgetAction.prg
  - contrib/hbqt/TQWidgetItem.prg
  - contrib/hbqt/TQWindowsStyle.prg
  - contrib/hbqt/TQWindowsXPStyle.prg
  - contrib/hbqt/TQWizard.prg

  + contrib/hbqt/qtcore
  + contrib/hbqt/qtcore/filelist.mk
  + contrib/hbqt/qtcore/Makefile
  + contrib/hbqt/qtcore/QAbstractItemModel.cpp
  + contrib/hbqt/qtcore/QAbstractListModel.cpp
  + contrib/hbqt/qtcore/QAbstractTableModel.cpp
  + contrib/hbqt/qtcore/QBitArray.cpp
  + contrib/hbqt/qtcore/QByteArray.cpp
  + contrib/hbqt/qtcore/QCoreApplication.cpp
  + contrib/hbqt/qtcore/QDataStream.cpp
  + contrib/hbqt/qtcore/QDate.cpp
  + contrib/hbqt/qtcore/QDateTime.cpp
  + contrib/hbqt/qtcore/QDir.cpp
  + contrib/hbqt/qtcore/QEvent.cpp
  + contrib/hbqt/qtcore/QEventLoop.cpp
  + contrib/hbqt/qtcore/QFile.cpp
  + contrib/hbqt/qtcore/QFileInfo.cpp
  + contrib/hbqt/qtcore/QIODevice.cpp
  + contrib/hbqt/qtcore/QLatin1Char.cpp
  + contrib/hbqt/qtcore/QLatin1String.cpp
  + contrib/hbqt/qtcore/QLine.cpp
  + contrib/hbqt/qtcore/QLineF.cpp
  + contrib/hbqt/qtcore/QList.cpp
  + contrib/hbqt/qtcore/QLocale.cpp
  + contrib/hbqt/qtcore/QMimeData.cpp
  + contrib/hbqt/qtcore/QModelIndex.cpp
  + contrib/hbqt/qtcore/QObject.cpp
  + contrib/hbqt/qtcore/QPoint.cpp
  + contrib/hbqt/qtcore/QPointF.cpp
  + contrib/hbqt/qtcore/QProcess.cpp
  + contrib/hbqt/qtcore/QRect.cpp
  + contrib/hbqt/qtcore/QRectF.cpp
  + contrib/hbqt/qtcore/QRegExp.cpp
  + contrib/hbqt/qtcore/QResource.cpp
  + contrib/hbqt/qtcore/QSignalMapper.cpp
  + contrib/hbqt/qtcore/QSize.cpp
  + contrib/hbqt/qtcore/QSizeF.cpp
  + contrib/hbqt/qtcore/QStringList.cpp
  + contrib/hbqt/qtcore/QTextBoundaryFinder.cpp
  + contrib/hbqt/qtcore/QTextCodec.cpp
  + contrib/hbqt/qtcore/QTextDecoder.cpp
  + contrib/hbqt/qtcore/QTextEncoder.cpp
  + contrib/hbqt/qtcore/QTextStream.cpp
  + contrib/hbqt/qtcore/QThread.cpp
  + contrib/hbqt/qtcore/QTime.cpp
  + contrib/hbqt/qtcore/QTimer.cpp
  + contrib/hbqt/qtcore/QTranslator.cpp
  + contrib/hbqt/qtcore/QUrl.cpp
  + contrib/hbqt/qtcore/QVariant.cpp
  + contrib/hbqt/qtcore/TQAbstractItemModel.prg
  + contrib/hbqt/qtcore/TQAbstractListModel.prg
  + contrib/hbqt/qtcore/TQAbstractTableModel.prg
  + contrib/hbqt/qtcore/TQBitArray.prg
  + contrib/hbqt/qtcore/TQByteArray.prg
  + contrib/hbqt/qtcore/TQCoreApplication.prg
  + contrib/hbqt/qtcore/TQDataStream.prg
  + contrib/hbqt/qtcore/TQDate.prg
  + contrib/hbqt/qtcore/TQDateTime.prg
  + contrib/hbqt/qtcore/TQDir.prg
  + contrib/hbqt/qtcore/TQEvent.prg
  + contrib/hbqt/qtcore/TQEventLoop.prg
  + contrib/hbqt/qtcore/TQFile.prg
  + contrib/hbqt/qtcore/TQFileInfo.prg
  + contrib/hbqt/qtcore/TQIODevice.prg
  + contrib/hbqt/qtcore/TQLatin1Char.prg
  + contrib/hbqt/qtcore/TQLatin1String.prg
  + contrib/hbqt/qtcore/TQLine.prg
  + contrib/hbqt/qtcore/TQLineF.prg
  + contrib/hbqt/qtcore/TQList.prg
  + contrib/hbqt/qtcore/TQLocale.prg
  + contrib/hbqt/qtcore/TQMimeData.prg
  + contrib/hbqt/qtcore/TQModelIndex.prg
  + contrib/hbqt/qtcore/TQObject.prg
  + contrib/hbqt/qtcore/TQPoint.prg
  + contrib/hbqt/qtcore/TQPointF.prg
  + contrib/hbqt/qtcore/TQProcess.prg
  + contrib/hbqt/qtcore/TQRect.prg
  + contrib/hbqt/qtcore/TQRectF.prg
  + contrib/hbqt/qtcore/TQRegExp.prg
  + contrib/hbqt/qtcore/TQResource.prg
  + contrib/hbqt/qtcore/TQSignalMapper.prg
  + contrib/hbqt/qtcore/TQSize.prg
  + contrib/hbqt/qtcore/TQSizeF.prg
  + contrib/hbqt/qtcore/TQStringList.prg
  + contrib/hbqt/qtcore/TQTextBoundaryFinder.prg
  + contrib/hbqt/qtcore/TQTextCodec.prg
  + contrib/hbqt/qtcore/TQTextDecoder.prg
  + contrib/hbqt/qtcore/TQTextEncoder.prg
  + contrib/hbqt/qtcore/TQTextStream.prg
  + contrib/hbqt/qtcore/TQThread.prg
  + contrib/hbqt/qtcore/TQTime.prg
  + contrib/hbqt/qtcore/TQTimer.prg
  + contrib/hbqt/qtcore/TQTranslator.prg
  + contrib/hbqt/qtcore/TQUrl.prg
  + contrib/hbqt/qtcore/TQVariant.prg

  + contrib/hbqt/qtgui
  + contrib/hbqt/qtgui/filelist.mk
  + contrib/hbqt/qtgui/Makefile
  + contrib/hbqt/qtgui/QAbstractButton.cpp
  + contrib/hbqt/qtgui/QAbstractItemDelegate.cpp
  + contrib/hbqt/qtgui/QAbstractItemView.cpp
  + contrib/hbqt/qtgui/QAbstractPrintDialog.cpp
  + contrib/hbqt/qtgui/QAbstractProxyModel.cpp
  + contrib/hbqt/qtgui/QAbstractScrollArea.cpp
  + contrib/hbqt/qtgui/QAbstractSlider.cpp
  + contrib/hbqt/qtgui/QAbstractSpinBox.cpp
  + contrib/hbqt/qtgui/QAbstractTextDocumentLayout.cpp
  + contrib/hbqt/qtgui/QAction.cpp
  + contrib/hbqt/qtgui/QActionGroup.cpp
  + contrib/hbqt/qtgui/QApplication.cpp
  + contrib/hbqt/qtgui/QBitmap.cpp
  + contrib/hbqt/qtgui/QBoxLayout.cpp
  + contrib/hbqt/qtgui/QBrush.cpp
  + contrib/hbqt/qtgui/QButtonGroup.cpp
  + contrib/hbqt/qtgui/QCalendarWidget.cpp
  + contrib/hbqt/qtgui/QCheckBox.cpp
  + contrib/hbqt/qtgui/QClipboard.cpp
  + contrib/hbqt/qtgui/QColor.cpp
  + contrib/hbqt/qtgui/QColorDialog.cpp
  + contrib/hbqt/qtgui/QComboBox.cpp
  + contrib/hbqt/qtgui/QCommandLinkButton.cpp
  + contrib/hbqt/qtgui/QCommonStyle.cpp
  + contrib/hbqt/qtgui/QCompleter.cpp
  + contrib/hbqt/qtgui/QConicalGradient.cpp
  + contrib/hbqt/qtgui/QContextMenuEvent.cpp
  + contrib/hbqt/qtgui/QCursor.cpp
  + contrib/hbqt/qtgui/QDateEdit.cpp
  + contrib/hbqt/qtgui/QDateTimeEdit.cpp
  + contrib/hbqt/qtgui/QDesktopWidget.cpp
  + contrib/hbqt/qtgui/QDial.cpp
  + contrib/hbqt/qtgui/QDialog.cpp
  + contrib/hbqt/qtgui/QDirModel.cpp
  + contrib/hbqt/qtgui/QDockWidget.cpp
  + contrib/hbqt/qtgui/QDoubleSpinBox.cpp
  + contrib/hbqt/qtgui/QDragEnterEvent.cpp
  + contrib/hbqt/qtgui/QDragLeaveEvent.cpp
  + contrib/hbqt/qtgui/QDragMoveEvent.cpp
  + contrib/hbqt/qtgui/QDropEvent.cpp
  + contrib/hbqt/qtgui/QErrorMessage.cpp
  + contrib/hbqt/qtgui/QFileDialog.cpp
  + contrib/hbqt/qtgui/QFileIconProvider.cpp
  + contrib/hbqt/qtgui/QFileSystemModel.cpp
  + contrib/hbqt/qtgui/QFocusEvent.cpp
  + contrib/hbqt/qtgui/QFocusFrame.cpp
  + contrib/hbqt/qtgui/QFont.cpp
  + contrib/hbqt/qtgui/QFontComboBox.cpp
  + contrib/hbqt/qtgui/QFontDatabase.cpp
  + contrib/hbqt/qtgui/QFontDialog.cpp
  + contrib/hbqt/qtgui/QFontInfo.cpp
  + contrib/hbqt/qtgui/QFontMetrics.cpp
  + contrib/hbqt/qtgui/QFontMetricsF.cpp
  + contrib/hbqt/qtgui/QFormLayout.cpp
  + contrib/hbqt/qtgui/QFrame.cpp
  + contrib/hbqt/qtgui/QGradient.cpp
  + contrib/hbqt/qtgui/QGridLayout.cpp
  + contrib/hbqt/qtgui/QGroupBox.cpp
  + contrib/hbqt/qtgui/QHBoxLayout.cpp
  + contrib/hbqt/qtgui/QHeaderView.cpp
  + contrib/hbqt/qtgui/QHelpEvent.cpp
  + contrib/hbqt/qtgui/QIcon.cpp
  + contrib/hbqt/qtgui/QImage.cpp
  + contrib/hbqt/qtgui/QImageReader.cpp
  + contrib/hbqt/qtgui/QImageWriter.cpp
  + contrib/hbqt/qtgui/QInputContext.cpp
  + contrib/hbqt/qtgui/QInputDialog.cpp
  + contrib/hbqt/qtgui/QInputEvent.cpp
  + contrib/hbqt/qtgui/QInputMethodEvent.cpp
  + contrib/hbqt/qtgui/QItemSelection.cpp
  + contrib/hbqt/qtgui/QItemSelectionModel.cpp
  + contrib/hbqt/qtgui/QKeyEvent.cpp
  + contrib/hbqt/qtgui/QKeySequence.cpp
  + contrib/hbqt/qtgui/QLabel.cpp
  + contrib/hbqt/qtgui/QLayout.cpp
  + contrib/hbqt/qtgui/QLayoutItem.cpp
  + contrib/hbqt/qtgui/QLCDNumber.cpp
  + contrib/hbqt/qtgui/QLinearGradient.cpp
  + contrib/hbqt/qtgui/QLineEdit.cpp
  + contrib/hbqt/qtgui/QListView.cpp
  + contrib/hbqt/qtgui/QListWidget.cpp
  + contrib/hbqt/qtgui/QListWidgetItem.cpp
  + contrib/hbqt/qtgui/QMainWindow.cpp
  + contrib/hbqt/qtgui/QMatrix.cpp
  + contrib/hbqt/qtgui/QMenu.cpp
  + contrib/hbqt/qtgui/QMenuBar.cpp
  + contrib/hbqt/qtgui/QMessageBox.cpp
  + contrib/hbqt/qtgui/QMouseEvent.cpp
  + contrib/hbqt/qtgui/QMoveEvent.cpp
  + contrib/hbqt/qtgui/QMovie.cpp
  + contrib/hbqt/qtgui/QPageSetupDialog.cpp
  + contrib/hbqt/qtgui/QPaintDevice.cpp
  + contrib/hbqt/qtgui/QPainter.cpp
  + contrib/hbqt/qtgui/QPainterPath.cpp
  + contrib/hbqt/qtgui/QPaintEvent.cpp
  + contrib/hbqt/qtgui/QPalette.cpp
  + contrib/hbqt/qtgui/QPen.cpp
  + contrib/hbqt/qtgui/QPicture.cpp
  + contrib/hbqt/qtgui/QPixmap.cpp
  + contrib/hbqt/qtgui/QPolygon.cpp
  + contrib/hbqt/qtgui/QPolygonF.cpp
  + contrib/hbqt/qtgui/QPrintDialog.cpp
  + contrib/hbqt/qtgui/QPrintEngine.cpp
  + contrib/hbqt/qtgui/QPrinter.cpp
  + contrib/hbqt/qtgui/QPrintPreviewDialog.cpp
  + contrib/hbqt/qtgui/QProgressBar.cpp
  + contrib/hbqt/qtgui/QProgressDialog.cpp
  + contrib/hbqt/qtgui/QPushButton.cpp
  + contrib/hbqt/qtgui/QRadialGradient.cpp
  + contrib/hbqt/qtgui/QRadioButton.cpp
  + contrib/hbqt/qtgui/QRegion.cpp
  + contrib/hbqt/qtgui/QResizeEvent.cpp
  + contrib/hbqt/qtgui/QScrollArea.cpp
  + contrib/hbqt/qtgui/QScrollBar.cpp
  + contrib/hbqt/qtgui/QSessionManager.cpp
  + contrib/hbqt/qtgui/QSizeGrip.cpp
  + contrib/hbqt/qtgui/QSizePolicy.cpp
  + contrib/hbqt/qtgui/QSlider.cpp
  + contrib/hbqt/qtgui/QSound.cpp
  + contrib/hbqt/qtgui/QSpacerItem.cpp
  + contrib/hbqt/qtgui/QSpinBox.cpp
  + contrib/hbqt/qtgui/QSplashScreen.cpp
  + contrib/hbqt/qtgui/QSplitter.cpp
  + contrib/hbqt/qtgui/QStandardItem.cpp
  + contrib/hbqt/qtgui/QStandardItemModel.cpp
  + contrib/hbqt/qtgui/QStatusBar.cpp
  + contrib/hbqt/qtgui/QStringListModel.cpp
  + contrib/hbqt/qtgui/QStyle.cpp
  + contrib/hbqt/qtgui/QStyledItemDelegate.cpp
  + contrib/hbqt/qtgui/QStyleFactory.cpp
  + contrib/hbqt/qtgui/QStyleHintReturn.cpp
  + contrib/hbqt/qtgui/QStyleHintReturnMask.cpp
  + contrib/hbqt/qtgui/QStyleHintReturnVariant.cpp
  + contrib/hbqt/qtgui/QStyleOption.cpp
  + contrib/hbqt/qtgui/QStyleOptionButton.cpp
  + contrib/hbqt/qtgui/QStyleOptionComboBox.cpp
  + contrib/hbqt/qtgui/QStyleOptionComplex.cpp
  + contrib/hbqt/qtgui/QStyleOptionDockWidget.cpp
  + contrib/hbqt/qtgui/QStyleOptionFocusRect.cpp
  + contrib/hbqt/qtgui/QStyleOptionFrame.cpp
  + contrib/hbqt/qtgui/QStyleOptionGroupBox.cpp
  + contrib/hbqt/qtgui/QStyleOptionHeader.cpp
  + contrib/hbqt/qtgui/QStyleOptionMenuItem.cpp
  + contrib/hbqt/qtgui/QStyleOptionProgressBar.cpp
  + contrib/hbqt/qtgui/QStyleOptionSizeGrip.cpp
  + contrib/hbqt/qtgui/QStyleOptionSlider.cpp
  + contrib/hbqt/qtgui/QStyleOptionSpinBox.cpp
  + contrib/hbqt/qtgui/QStyleOptionTab.cpp
  + contrib/hbqt/qtgui/QStyleOptionTabBarBase.cpp
  + contrib/hbqt/qtgui/QStyleOptionTabWidgetFrame.cpp
  + contrib/hbqt/qtgui/QStyleOptionTitleBar.cpp
  + contrib/hbqt/qtgui/QStyleOptionToolBar.cpp
  + contrib/hbqt/qtgui/QStyleOptionToolBox.cpp
  + contrib/hbqt/qtgui/QStyleOptionToolButton.cpp
  + contrib/hbqt/qtgui/QStyleOptionViewItem.cpp
  + contrib/hbqt/qtgui/QStylePainter.cpp
  + contrib/hbqt/qtgui/QSystemTrayIcon.cpp
  + contrib/hbqt/qtgui/QTabBar.cpp
  + contrib/hbqt/qtgui/QTableView.cpp
  + contrib/hbqt/qtgui/QTableWidget.cpp
  + contrib/hbqt/qtgui/QTableWidgetItem.cpp
  + contrib/hbqt/qtgui/QTableWidgetSelectionRange.cpp
  + contrib/hbqt/qtgui/QTabWidget.cpp
  + contrib/hbqt/qtgui/QTextBlock.cpp
  + contrib/hbqt/qtgui/QTextBlockFormat.cpp
  + contrib/hbqt/qtgui/QTextBlockGroup.cpp
  + contrib/hbqt/qtgui/QTextBrowser.cpp
  + contrib/hbqt/qtgui/QTextCharFormat.cpp
  + contrib/hbqt/qtgui/QTextCursor.cpp
  + contrib/hbqt/qtgui/QTextDocument.cpp
  + contrib/hbqt/qtgui/QTextDocumentFragment.cpp
  + contrib/hbqt/qtgui/QTextDocumentWriter.cpp
  + contrib/hbqt/qtgui/QTextEdit.cpp
  + contrib/hbqt/qtgui/QTextFormat.cpp
  + contrib/hbqt/qtgui/QTextFragment.cpp
  + contrib/hbqt/qtgui/QTextFrame.cpp
  + contrib/hbqt/qtgui/QTextFrameFormat.cpp
  + contrib/hbqt/qtgui/QTextImageFormat.cpp
  + contrib/hbqt/qtgui/QTextInlineObject.cpp
  + contrib/hbqt/qtgui/QTextItem.cpp
  + contrib/hbqt/qtgui/QTextLayout.cpp
  + contrib/hbqt/qtgui/QTextLength.cpp
  + contrib/hbqt/qtgui/QTextLine.cpp
  + contrib/hbqt/qtgui/QTextListFormat.cpp
  + contrib/hbqt/qtgui/QTextObject.cpp
  + contrib/hbqt/qtgui/QTextOption.cpp
  + contrib/hbqt/qtgui/QTextTableFormat.cpp
  + contrib/hbqt/qtgui/QTimeEdit.cpp
  + contrib/hbqt/qtgui/QToolBar.cpp
  + contrib/hbqt/qtgui/QToolBox.cpp
  + contrib/hbqt/qtgui/QToolButton.cpp
  + contrib/hbqt/qtgui/QTransform.cpp
  + contrib/hbqt/qtgui/QTreeView.cpp
  + contrib/hbqt/qtgui/QTreeWidget.cpp
  + contrib/hbqt/qtgui/QTreeWidgetItem.cpp
  + contrib/hbqt/qtgui/QValidator.cpp
  + contrib/hbqt/qtgui/QVBoxLayout.cpp
  + contrib/hbqt/qtgui/QWheelEvent.cpp
  + contrib/hbqt/qtgui/QWidget.cpp
  + contrib/hbqt/qtgui/QWidgetAction.cpp
  + contrib/hbqt/qtgui/QWidgetItem.cpp
  + contrib/hbqt/qtgui/QWindowsStyle.cpp
  + contrib/hbqt/qtgui/QWindowsXPStyle.cpp
  + contrib/hbqt/qtgui/QWizard.cpp
  + contrib/hbqt/qtgui/QWizardPage.cpp
  + contrib/hbqt/qtgui/TQAbstractButton.prg
  + contrib/hbqt/qtgui/TQAbstractItemDelegate.prg
  + contrib/hbqt/qtgui/TQAbstractItemView.prg
  + contrib/hbqt/qtgui/TQAbstractPrintDialog.prg
  + contrib/hbqt/qtgui/TQAbstractProxyModel.prg
  + contrib/hbqt/qtgui/TQAbstractScrollArea.prg
  + contrib/hbqt/qtgui/TQAbstractSlider.prg
  + contrib/hbqt/qtgui/TQAbstractSpinBox.prg
  + contrib/hbqt/qtgui/TQAbstractTextDocumentLayout.prg
  + contrib/hbqt/qtgui/TQAction.prg
  + contrib/hbqt/qtgui/TQActionGroup.prg
  + contrib/hbqt/qtgui/TQApplication.prg
  + contrib/hbqt/qtgui/TQBitmap.prg
  + contrib/hbqt/qtgui/TQBoxLayout.prg
  + contrib/hbqt/qtgui/TQBrush.prg
  + contrib/hbqt/qtgui/TQButtonGroup.prg
  + contrib/hbqt/qtgui/TQCalendarWidget.prg
  + contrib/hbqt/qtgui/TQCheckBox.prg
  + contrib/hbqt/qtgui/TQClipboard.prg
  + contrib/hbqt/qtgui/TQColor.prg
  + contrib/hbqt/qtgui/TQColorDialog.prg
  + contrib/hbqt/qtgui/TQComboBox.prg
  + contrib/hbqt/qtgui/TQCommandLinkButton.prg
  + contrib/hbqt/qtgui/TQCommonStyle.prg
  + contrib/hbqt/qtgui/TQCompleter.prg
  + contrib/hbqt/qtgui/TQConicalGradient.prg
  + contrib/hbqt/qtgui/TQContextMenuEvent.prg
  + contrib/hbqt/qtgui/TQCursor.prg
  + contrib/hbqt/qtgui/TQDateEdit.prg
  + contrib/hbqt/qtgui/TQDateTimeEdit.prg
  + contrib/hbqt/qtgui/TQDesktopWidget.prg
  + contrib/hbqt/qtgui/TQDial.prg
  + contrib/hbqt/qtgui/TQDialog.prg
  + contrib/hbqt/qtgui/TQDirModel.prg
  + contrib/hbqt/qtgui/TQDockWidget.prg
  + contrib/hbqt/qtgui/TQDoubleSpinBox.prg
  + contrib/hbqt/qtgui/TQDragEnterEvent.prg
  + contrib/hbqt/qtgui/TQDragLeaveEvent.prg
  + contrib/hbqt/qtgui/TQDragMoveEvent.prg
  + contrib/hbqt/qtgui/TQDropEvent.prg
  + contrib/hbqt/qtgui/TQErrorMessage.prg
  + contrib/hbqt/qtgui/TQFileDialog.prg
  + contrib/hbqt/qtgui/TQFileIconProvider.prg
  + contrib/hbqt/qtgui/TQFileSystemModel.prg
  + contrib/hbqt/qtgui/TQFocusEvent.prg
  + contrib/hbqt/qtgui/TQFocusFrame.prg
  + contrib/hbqt/qtgui/TQFont.prg
  + contrib/hbqt/qtgui/TQFontComboBox.prg
  + contrib/hbqt/qtgui/TQFontDatabase.prg
  + contrib/hbqt/qtgui/TQFontDialog.prg
  + contrib/hbqt/qtgui/TQFontInfo.prg
  + contrib/hbqt/qtgui/TQFontMetrics.prg
  + contrib/hbqt/qtgui/TQFontMetricsF.prg
  + contrib/hbqt/qtgui/TQFormLayout.prg
  + contrib/hbqt/qtgui/TQFrame.prg
  + contrib/hbqt/qtgui/TQGradient.prg
  + contrib/hbqt/qtgui/TQGridLayout.prg
  + contrib/hbqt/qtgui/TQGroupBox.prg
  + contrib/hbqt/qtgui/TQHBoxLayout.prg
  + contrib/hbqt/qtgui/TQHeaderView.prg
  + contrib/hbqt/qtgui/TQHelpEvent.prg
  + contrib/hbqt/qtgui/TQIcon.prg
  + contrib/hbqt/qtgui/TQImage.prg
  + contrib/hbqt/qtgui/TQImageReader.prg
  + contrib/hbqt/qtgui/TQImageWriter.prg
  + contrib/hbqt/qtgui/TQInputContext.prg
  + contrib/hbqt/qtgui/TQInputDialog.prg
  + contrib/hbqt/qtgui/TQInputEvent.prg
  + contrib/hbqt/qtgui/TQInputMethodEvent.prg
  + contrib/hbqt/qtgui/TQItemSelection.prg
  + contrib/hbqt/qtgui/TQItemSelectionModel.prg
  + contrib/hbqt/qtgui/TQKeyEvent.prg
  + contrib/hbqt/qtgui/TQKeySequence.prg
  + contrib/hbqt/qtgui/TQLabel.prg
  + contrib/hbqt/qtgui/TQLayout.prg
  + contrib/hbqt/qtgui/TQLayoutItem.prg
  + contrib/hbqt/qtgui/TQLCDNumber.prg
  + contrib/hbqt/qtgui/TQLinearGradient.prg
  + contrib/hbqt/qtgui/TQLineEdit.prg
  + contrib/hbqt/qtgui/TQListView.prg
  + contrib/hbqt/qtgui/TQListWidget.prg
  + contrib/hbqt/qtgui/TQListWidgetItem.prg
  + contrib/hbqt/qtgui/TQMainWindow.prg
  + contrib/hbqt/qtgui/TQMatrix.prg
  + contrib/hbqt/qtgui/TQMenu.prg
  + contrib/hbqt/qtgui/TQMenuBar.prg
  + contrib/hbqt/qtgui/TQMessageBox.prg
  + contrib/hbqt/qtgui/TQMouseEvent.prg
  + contrib/hbqt/qtgui/TQMoveEvent.prg
  + contrib/hbqt/qtgui/TQMovie.prg
  + contrib/hbqt/qtgui/TQPageSetupDialog.prg
  + contrib/hbqt/qtgui/TQPaintDevice.prg
  + contrib/hbqt/qtgui/TQPainter.prg
  + contrib/hbqt/qtgui/TQPainterPath.prg
  + contrib/hbqt/qtgui/TQPaintEvent.prg
  + contrib/hbqt/qtgui/TQPalette.prg
  + contrib/hbqt/qtgui/TQPen.prg
  + contrib/hbqt/qtgui/TQPicture.prg
  + contrib/hbqt/qtgui/TQPixmap.prg
  + contrib/hbqt/qtgui/TQPolygon.prg
  + contrib/hbqt/qtgui/TQPolygonF.prg
  + contrib/hbqt/qtgui/TQPrintDialog.prg
  + contrib/hbqt/qtgui/TQPrintEngine.prg
  + contrib/hbqt/qtgui/TQPrinter.prg
  + contrib/hbqt/qtgui/TQPrintPreviewDialog.prg
  + contrib/hbqt/qtgui/TQProgressBar.prg
  + contrib/hbqt/qtgui/TQProgressDialog.prg
  + contrib/hbqt/qtgui/TQPushButton.prg
  + contrib/hbqt/qtgui/TQRadialGradient.prg
  + contrib/hbqt/qtgui/TQRadioButton.prg
  + contrib/hbqt/qtgui/TQRegion.prg
  + contrib/hbqt/qtgui/TQResizeEvent.prg
  + contrib/hbqt/qtgui/TQScrollArea.prg
  + contrib/hbqt/qtgui/TQScrollBar.prg
  + contrib/hbqt/qtgui/TQSessionManager.prg
  + contrib/hbqt/qtgui/TQSizeGrip.prg
  + contrib/hbqt/qtgui/TQSizePolicy.prg
  + contrib/hbqt/qtgui/TQSlider.prg
  + contrib/hbqt/qtgui/TQSound.prg
  + contrib/hbqt/qtgui/TQSpacerItem.prg
  + contrib/hbqt/qtgui/TQSpinBox.prg
  + contrib/hbqt/qtgui/TQSplashScreen.prg
  + contrib/hbqt/qtgui/TQSplitter.prg
  + contrib/hbqt/qtgui/TQStandardItem.prg
  + contrib/hbqt/qtgui/TQStandardItemModel.prg
  + contrib/hbqt/qtgui/TQStatusBar.prg
  + contrib/hbqt/qtgui/TQStringListModel.prg
  + contrib/hbqt/qtgui/TQStyle.prg
  + contrib/hbqt/qtgui/TQStyledItemDelegate.prg
  + contrib/hbqt/qtgui/TQStyleFactory.prg
  + contrib/hbqt/qtgui/TQStyleHintReturn.prg
  + contrib/hbqt/qtgui/TQStyleHintReturnMask.prg
  + contrib/hbqt/qtgui/TQStyleHintReturnVariant.prg
  + contrib/hbqt/qtgui/TQStyleOption.prg
  + contrib/hbqt/qtgui/TQStyleOptionButton.prg
  + contrib/hbqt/qtgui/TQStyleOptionComboBox.prg
  + contrib/hbqt/qtgui/TQStyleOptionComplex.prg
  + contrib/hbqt/qtgui/TQStyleOptionDockWidget.prg
  + contrib/hbqt/qtgui/TQStyleOptionFocusRect.prg
  + contrib/hbqt/qtgui/TQStyleOptionFrame.prg
  + contrib/hbqt/qtgui/TQStyleOptionGroupBox.prg
  + contrib/hbqt/qtgui/TQStyleOptionHeader.prg
  + contrib/hbqt/qtgui/TQStyleOptionMenuItem.prg
  + contrib/hbqt/qtgui/TQStyleOptionProgressBar.prg
  + contrib/hbqt/qtgui/TQStyleOptionSizeGrip.prg
  + contrib/hbqt/qtgui/TQStyleOptionSlider.prg
  + contrib/hbqt/qtgui/TQStyleOptionSpinBox.prg
  + contrib/hbqt/qtgui/TQStyleOptionTab.prg
  + contrib/hbqt/qtgui/TQStyleOptionTabBarBase.prg
  + contrib/hbqt/qtgui/TQStyleOptionTabWidgetFrame.prg
  + contrib/hbqt/qtgui/TQStyleOptionTitleBar.prg
  + contrib/hbqt/qtgui/TQStyleOptionToolBar.prg
  + contrib/hbqt/qtgui/TQStyleOptionToolBox.prg
  + contrib/hbqt/qtgui/TQStyleOptionToolButton.prg
  + contrib/hbqt/qtgui/TQStyleOptionViewItem.prg
  + contrib/hbqt/qtgui/TQStylePainter.prg
  + contrib/hbqt/qtgui/TQSystemTrayIcon.prg
  + contrib/hbqt/qtgui/TQTabBar.prg
  + contrib/hbqt/qtgui/TQTableView.prg
  + contrib/hbqt/qtgui/TQTableWidget.prg
  + contrib/hbqt/qtgui/TQTableWidgetItem.prg
  + contrib/hbqt/qtgui/TQTableWidgetSelectionRange.prg
  + contrib/hbqt/qtgui/TQTabWidget.prg
  + contrib/hbqt/qtgui/TQTextBlock.prg
  + contrib/hbqt/qtgui/TQTextBlockFormat.prg
  + contrib/hbqt/qtgui/TQTextBlockGroup.prg
  + contrib/hbqt/qtgui/TQTextBrowser.prg
  + contrib/hbqt/qtgui/TQTextCharFormat.prg
  + contrib/hbqt/qtgui/TQTextCursor.prg
  + contrib/hbqt/qtgui/TQTextDocument.prg
  + contrib/hbqt/qtgui/TQTextDocumentFragment.prg
  + contrib/hbqt/qtgui/TQTextDocumentWriter.prg
  + contrib/hbqt/qtgui/TQTextEdit.prg
  + contrib/hbqt/qtgui/TQTextFormat.prg
  + contrib/hbqt/qtgui/TQTextFragment.prg
  + contrib/hbqt/qtgui/TQTextFrame.prg
  + contrib/hbqt/qtgui/TQTextFrameFormat.prg
  + contrib/hbqt/qtgui/TQTextImageFormat.prg
  + contrib/hbqt/qtgui/TQTextInlineObject.prg
  + contrib/hbqt/qtgui/TQTextItem.prg
  + contrib/hbqt/qtgui/TQTextLayout.prg
  + contrib/hbqt/qtgui/TQTextLength.prg
  + contrib/hbqt/qtgui/TQTextLine.prg
  + contrib/hbqt/qtgui/TQTextListFormat.prg
  + contrib/hbqt/qtgui/TQTextObject.prg
  + contrib/hbqt/qtgui/TQTextOption.prg
  + contrib/hbqt/qtgui/TQTextTableFormat.prg
  + contrib/hbqt/qtgui/TQTimeEdit.prg
  + contrib/hbqt/qtgui/TQToolBar.prg
  + contrib/hbqt/qtgui/TQToolBox.prg
  + contrib/hbqt/qtgui/TQToolButton.prg
  + contrib/hbqt/qtgui/TQTransform.prg
  + contrib/hbqt/qtgui/TQTreeView.prg
  + contrib/hbqt/qtgui/TQTreeWidget.prg
  + contrib/hbqt/qtgui/TQTreeWidgetItem.prg
  + contrib/hbqt/qtgui/TQValidator.prg
  + contrib/hbqt/qtgui/TQVBoxLayout.prg
  + contrib/hbqt/qtgui/TQWheelEvent.prg
  + contrib/hbqt/qtgui/TQWidget.prg
  + contrib/hbqt/qtgui/TQWidgetAction.prg
  + contrib/hbqt/qtgui/TQWidgetItem.prg
  + contrib/hbqt/qtgui/TQWindowsStyle.prg
  + contrib/hbqt/qtgui/TQWindowsXPStyle.prg
  + contrib/hbqt/qtgui/TQWizard.prg
  + contrib/hbqt/qtgui/TQWizardPage.prg

  + contrib/hbqt/qtnetwork
  + contrib/hbqt/qtnetwork/filelist.mk
  + contrib/hbqt/qtnetwork/Makefile
  + contrib/hbqt/qtnetwork/QFtp.cpp
  + contrib/hbqt/qtnetwork/QHttp.cpp
  + contrib/hbqt/qtnetwork/QHttpRequestHeader.cpp
  + contrib/hbqt/qtnetwork/QHttpResponseHeader.cpp
  + contrib/hbqt/qtnetwork/QNetworkRequest.cpp
  + contrib/hbqt/qtnetwork/TQFtp.prg
  + contrib/hbqt/qtnetwork/TQHttp.prg
  + contrib/hbqt/qtnetwork/TQHttpRequestHeader.prg
  + contrib/hbqt/qtnetwork/TQHttpResponseHeader.prg
  + contrib/hbqt/qtnetwork/TQNetworkRequest.prg

  + contrib/hbqt/qtwebkit
  + contrib/hbqt/qtwebkit/filelist.mk
  + contrib/hbqt/qtwebkit/Makefile
  + contrib/hbqt/qtwebkit/QWebFrame.cpp
  + contrib/hbqt/qtwebkit/QWebHistory.cpp
  + contrib/hbqt/qtwebkit/QWebHistoryInterface.cpp
  + contrib/hbqt/qtwebkit/QWebHistoryItem.cpp
  + contrib/hbqt/qtwebkit/QWebHitTestResult.cpp
  + contrib/hbqt/qtwebkit/QWebPage.cpp
  + contrib/hbqt/qtwebkit/QWebPluginFactory.cpp
  + contrib/hbqt/qtwebkit/QWebSecurityOrigin.cpp
  + contrib/hbqt/qtwebkit/QWebSettings.cpp
  + contrib/hbqt/qtwebkit/QWebView.cpp
  + contrib/hbqt/qtwebkit/TQWebFrame.prg
  + contrib/hbqt/qtwebkit/TQWebHistory.prg
  + contrib/hbqt/qtwebkit/TQWebHistoryInterface.prg
  + contrib/hbqt/qtwebkit/TQWebHistoryItem.prg
  + contrib/hbqt/qtwebkit/TQWebHitTestResult.prg
  + contrib/hbqt/qtwebkit/TQWebPage.prg
  + contrib/hbqt/qtwebkit/TQWebPluginFactory.prg
  + contrib/hbqt/qtwebkit/TQWebSecurityOrigin.prg
  + contrib/hbqt/qtwebkit/TQWebSettings.prg
  + contrib/hbqt/qtwebkit/TQWebView.prg

  * contrib/hbqt/tests/demoqt.prg
    
    ! A lot of changes. Please expect some instability for some time.
      demoqt.prg compiles and executes fine. HBXBP is in the pipeline.
 
      Viktor, please set the make system in place.
This commit is contained in:
Pritpal Bedi
2009-10-22 18:04:06 +00:00
parent 9332f8030c
commit 3c39677606
459 changed files with 1708 additions and 88112 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,293 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QAbstractButton>
/*
* QAbstractButton ( QWidget * parent = 0 )
* ~QAbstractButton ()
*/
HB_FUNC( QT_QABSTRACTBUTTON )
{
}
/*
* bool autoExclusive () const
*/
HB_FUNC( QT_QABSTRACTBUTTON_AUTOEXCLUSIVE )
{
hb_retl( hbqt_par_QAbstractButton( 1 )->autoExclusive() );
}
/*
* bool autoRepeat () const
*/
HB_FUNC( QT_QABSTRACTBUTTON_AUTOREPEAT )
{
hb_retl( hbqt_par_QAbstractButton( 1 )->autoRepeat() );
}
/*
* int autoRepeatDelay () const
*/
HB_FUNC( QT_QABSTRACTBUTTON_AUTOREPEATDELAY )
{
hb_retni( hbqt_par_QAbstractButton( 1 )->autoRepeatDelay() );
}
/*
* int autoRepeatInterval () const
*/
HB_FUNC( QT_QABSTRACTBUTTON_AUTOREPEATINTERVAL )
{
hb_retni( hbqt_par_QAbstractButton( 1 )->autoRepeatInterval() );
}
/*
* QButtonGroup * group () const
*/
HB_FUNC( QT_QABSTRACTBUTTON_GROUP )
{
hb_retptr( ( QButtonGroup* ) hbqt_par_QAbstractButton( 1 )->group() );
}
/*
* QIcon icon () const
*/
HB_FUNC( QT_QABSTRACTBUTTON_ICON )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QIcon( hbqt_par_QAbstractButton( 1 )->icon() ) ) );
}
/*
* QSize iconSize () const
*/
HB_FUNC( QT_QABSTRACTBUTTON_ICONSIZE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QAbstractButton( 1 )->iconSize() ) ) );
}
/*
* bool isCheckable () const
*/
HB_FUNC( QT_QABSTRACTBUTTON_ISCHECKABLE )
{
hb_retl( hbqt_par_QAbstractButton( 1 )->isCheckable() );
}
/*
* bool isChecked () const
*/
HB_FUNC( QT_QABSTRACTBUTTON_ISCHECKED )
{
hb_retl( hbqt_par_QAbstractButton( 1 )->isChecked() );
}
/*
* bool isDown () const
*/
HB_FUNC( QT_QABSTRACTBUTTON_ISDOWN )
{
hb_retl( hbqt_par_QAbstractButton( 1 )->isDown() );
}
/*
* void setAutoExclusive ( bool )
*/
HB_FUNC( QT_QABSTRACTBUTTON_SETAUTOEXCLUSIVE )
{
hbqt_par_QAbstractButton( 1 )->setAutoExclusive( hb_parl( 2 ) );
}
/*
* void setAutoRepeat ( bool )
*/
HB_FUNC( QT_QABSTRACTBUTTON_SETAUTOREPEAT )
{
hbqt_par_QAbstractButton( 1 )->setAutoRepeat( hb_parl( 2 ) );
}
/*
* void setAutoRepeatDelay ( int )
*/
HB_FUNC( QT_QABSTRACTBUTTON_SETAUTOREPEATDELAY )
{
hbqt_par_QAbstractButton( 1 )->setAutoRepeatDelay( hb_parni( 2 ) );
}
/*
* void setAutoRepeatInterval ( int )
*/
HB_FUNC( QT_QABSTRACTBUTTON_SETAUTOREPEATINTERVAL )
{
hbqt_par_QAbstractButton( 1 )->setAutoRepeatInterval( hb_parni( 2 ) );
}
/*
* void setCheckable ( bool )
*/
HB_FUNC( QT_QABSTRACTBUTTON_SETCHECKABLE )
{
hbqt_par_QAbstractButton( 1 )->setCheckable( hb_parl( 2 ) );
}
/*
* void setDown ( bool )
*/
HB_FUNC( QT_QABSTRACTBUTTON_SETDOWN )
{
hbqt_par_QAbstractButton( 1 )->setDown( hb_parl( 2 ) );
}
/*
* void setIcon ( const QIcon & icon )
*/
HB_FUNC( QT_QABSTRACTBUTTON_SETICON )
{
hbqt_par_QAbstractButton( 1 )->setIcon( QIcon( hbqt_par_QString( 2 ) ) );
}
/*
* void setShortcut ( const QKeySequence & key )
*/
HB_FUNC( QT_QABSTRACTBUTTON_SETSHORTCUT )
{
hbqt_par_QAbstractButton( 1 )->setShortcut( *hbqt_par_QKeySequence( 2 ) );
}
/*
* void setText ( const QString & text )
*/
HB_FUNC( QT_QABSTRACTBUTTON_SETTEXT )
{
hbqt_par_QAbstractButton( 1 )->setText( hbqt_par_QString( 2 ) );
}
/*
* QKeySequence shortcut () const
*/
HB_FUNC( QT_QABSTRACTBUTTON_SHORTCUT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QKeySequence( hbqt_par_QAbstractButton( 1 )->shortcut() ) ) );
}
/*
* QString text () const
*/
HB_FUNC( QT_QABSTRACTBUTTON_TEXT )
{
hb_retc( hbqt_par_QAbstractButton( 1 )->text().toAscii().data() );
}
/*
* void animateClick ( int msec = 100 )
*/
HB_FUNC( QT_QABSTRACTBUTTON_ANIMATECLICK )
{
hbqt_par_QAbstractButton( 1 )->animateClick( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : 100 ) );
}
/*
* 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 setIconSize ( const QSize & size )
*/
HB_FUNC( QT_QABSTRACTBUTTON_SETICONSIZE )
{
hbqt_par_QAbstractButton( 1 )->setIconSize( *hbqt_par_QSize( 2 ) );
}
/*
* void toggle ()
*/
HB_FUNC( QT_QABSTRACTBUTTON_TOGGLE )
{
hbqt_par_QAbstractButton( 1 )->toggle();
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,387 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* Constructed[ 33/36 [ 91.67% ] ]
*
* *** Unconvered Prototypes ***
* -----------------------------
*
* virtual QMap<int, QVariant> itemData ( const QModelIndex & index ) const
* virtual bool setItemData ( const QModelIndex & index, const QMap<int, QVariant> & roles )
*
* *** Commented out protos which construct fine but do not compile ***
*
* // virtual QModelIndexList match ( const QModelIndex & start, int role, const QVariant & value, int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags( Qt::MatchStartsWith | Qt::MatchWrap ) ) const
*/
#include <QtCore/QPointer>
#include <QSize>
#include <QStringList>
#include <QtCore/QAbstractItemModel>
#include "hbqt_slots.h"
/*
* QAbstractItemModel ( QObject * parent = 0 )
* virtual ~QAbstractItemModel ()
*/
HB_FUNC( QT_HBDBFMODEL )
{
hb_retptr( new HbDbfModel( ( PHB_ITEM ) hb_param( 1, HB_IT_BLOCK ) ) );
}
HB_FUNC( QT_HBDBFMODEL_RESET )
{
hbqt_par_HbDbfModel( 1 )->reset();
}
HB_FUNC( QT_HBDBFMODEL_INDEX )
{
hb_retptr( new QModelIndex( hbqt_par_HbDbfModel( 1 )->index( hb_parni( 2 ), hb_parni( 3 ), QModelIndex() ) ) );
}
HB_FUNC( QT_HBDBFMODEL_HBSETROWCOLUMNS )
{
hbqt_par_HbDbfModel( 1 )->hbSetRowColumns( hb_parni( 2 ), hb_parni( 3 ) );
}
HB_FUNC( QT_QABSTRACTITEMMODEL )
{
}
/*
* virtual QModelIndex buddy ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_BUDDY )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QAbstractItemModel( 1 )->buddy( *hbqt_par_QModelIndex( 2 ) ) ) ) );
}
/*
* virtual bool canFetchMore ( const QModelIndex & parent ) const
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_CANFETCHMORE )
{
hb_retl( hbqt_par_QAbstractItemModel( 1 )->canFetchMore( *hbqt_par_QModelIndex( 2 ) ) );
}
/*
* virtual int columnCount ( const QModelIndex & parent = QModelIndex() ) const = 0
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_COLUMNCOUNT )
{
hb_retni( hbqt_par_QAbstractItemModel( 1 )->columnCount( ( HB_ISPOINTER( 2 ) ? *hbqt_par_QModelIndex( 2 ) : QModelIndex() ) ) );
}
/*
* virtual QVariant data ( const QModelIndex & index, int role = Qt::DisplayRole ) const = 0
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_DATA )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QVariant( hbqt_par_QAbstractItemModel( 1 )->data( *hbqt_par_QModelIndex( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : Qt::DisplayRole ) ) ) ) );
}
/*
* virtual bool dropMimeData ( const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent )
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_DROPMIMEDATA )
{
hb_retl( hbqt_par_QAbstractItemModel( 1 )->dropMimeData( hbqt_par_QMimeData( 2 ), ( Qt::DropAction ) hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), *hbqt_par_QModelIndex( 6 ) ) );
}
/*
* virtual void fetchMore ( const QModelIndex & parent )
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_FETCHMORE )
{
hbqt_par_QAbstractItemModel( 1 )->fetchMore( *hbqt_par_QModelIndex( 2 ) );
}
/*
* virtual Qt::ItemFlags flags ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_FLAGS )
{
hb_retni( ( Qt::ItemFlags ) hbqt_par_QAbstractItemModel( 1 )->flags( *hbqt_par_QModelIndex( 2 ) ) );
}
/*
* virtual bool hasChildren ( const QModelIndex & parent = QModelIndex() ) const
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_HASCHILDREN )
{
hb_retl( hbqt_par_QAbstractItemModel( 1 )->hasChildren( ( HB_ISPOINTER( 2 ) ? *hbqt_par_QModelIndex( 2 ) : QModelIndex() ) ) );
}
/*
* bool hasIndex ( int row, int column, const QModelIndex & parent = QModelIndex() ) const
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_HASINDEX )
{
hb_retl( hbqt_par_QAbstractItemModel( 1 )->hasIndex( hb_parni( 2 ), hb_parni( 3 ), ( HB_ISPOINTER( 4 ) ? *hbqt_par_QModelIndex( 4 ) : QModelIndex() ) ) );
}
/*
* virtual QVariant headerData ( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_HEADERDATA )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QVariant( hbqt_par_QAbstractItemModel( 1 )->headerData( hb_parni( 2 ), ( Qt::Orientation ) hb_parni( 3 ), ( HB_ISNUM( 4 ) ? hb_parni( 4 ) : Qt::DisplayRole ) ) ) ) );
}
/*
* virtual QModelIndex index ( int row, int column, const QModelIndex & parent = QModelIndex() ) const = 0
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_INDEX )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QAbstractItemModel( 1 )->index( hb_parni( 2 ), hb_parni( 3 ), ( HB_ISPOINTER( 4 ) ? *hbqt_par_QModelIndex( 4 ) : QModelIndex() ) ) ) ) );
}
/*
* bool insertColumn ( int column, const QModelIndex & parent = QModelIndex() )
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_INSERTCOLUMN )
{
hb_retl( hbqt_par_QAbstractItemModel( 1 )->insertColumn( hb_parni( 2 ), ( HB_ISPOINTER( 3 ) ? *hbqt_par_QModelIndex( 3 ) : QModelIndex() ) ) );
}
/*
* virtual bool insertColumns ( int column, int count, const QModelIndex & parent = QModelIndex() )
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_INSERTCOLUMNS )
{
hb_retl( hbqt_par_QAbstractItemModel( 1 )->insertColumns( hb_parni( 2 ), hb_parni( 3 ), ( HB_ISPOINTER( 4 ) ? *hbqt_par_QModelIndex( 4 ) : QModelIndex() ) ) );
}
/*
* bool insertRow ( int row, const QModelIndex & parent = QModelIndex() )
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_INSERTROW )
{
hb_retl( hbqt_par_QAbstractItemModel( 1 )->insertRow( hb_parni( 2 ), ( HB_ISPOINTER( 3 ) ? *hbqt_par_QModelIndex( 3 ) : QModelIndex() ) ) );
}
/*
* virtual bool insertRows ( int row, int count, const QModelIndex & parent = QModelIndex() )
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_INSERTROWS )
{
hb_retl( hbqt_par_QAbstractItemModel( 1 )->insertRows( hb_parni( 2 ), hb_parni( 3 ), ( HB_ISPOINTER( 4 ) ? *hbqt_par_QModelIndex( 4 ) : QModelIndex() ) ) );
}
/*
* virtual QMimeData * mimeData ( const QModelIndexList & indexes ) const
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_MIMEDATA )
{
hb_retptr( ( QMimeData* ) hbqt_par_QAbstractItemModel( 1 )->mimeData( *hbqt_par_QModelIndexList( 2 ) ) );
}
/*
* virtual QStringList mimeTypes () const
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_MIMETYPES )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QAbstractItemModel( 1 )->mimeTypes() ) ) );
}
/*
* virtual QModelIndex parent ( const QModelIndex & index ) const = 0
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_PARENT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QAbstractItemModel( 1 )->parent( *hbqt_par_QModelIndex( 2 ) ) ) ) );
}
/*
* bool removeColumn ( int column, const QModelIndex & parent = QModelIndex() )
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_REMOVECOLUMN )
{
hb_retl( hbqt_par_QAbstractItemModel( 1 )->removeColumn( hb_parni( 2 ), ( HB_ISPOINTER( 3 ) ? *hbqt_par_QModelIndex( 3 ) : QModelIndex() ) ) );
}
/*
* virtual bool removeColumns ( int column, int count, const QModelIndex & parent = QModelIndex() )
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_REMOVECOLUMNS )
{
hb_retl( hbqt_par_QAbstractItemModel( 1 )->removeColumns( hb_parni( 2 ), hb_parni( 3 ), ( HB_ISPOINTER( 4 ) ? *hbqt_par_QModelIndex( 4 ) : QModelIndex() ) ) );
}
/*
* bool removeRow ( int row, const QModelIndex & parent = QModelIndex() )
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_REMOVEROW )
{
hb_retl( hbqt_par_QAbstractItemModel( 1 )->removeRow( hb_parni( 2 ), ( HB_ISPOINTER( 3 ) ? *hbqt_par_QModelIndex( 3 ) : QModelIndex() ) ) );
}
/*
* virtual bool removeRows ( int row, int count, const QModelIndex & parent = QModelIndex() )
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_REMOVEROWS )
{
hb_retl( hbqt_par_QAbstractItemModel( 1 )->removeRows( hb_parni( 2 ), hb_parni( 3 ), ( HB_ISPOINTER( 4 ) ? *hbqt_par_QModelIndex( 4 ) : QModelIndex() ) ) );
}
/*
* virtual int rowCount ( const QModelIndex & parent = QModelIndex() ) const = 0
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_ROWCOUNT )
{
hb_retni( hbqt_par_QAbstractItemModel( 1 )->rowCount( ( HB_ISPOINTER( 2 ) ? *hbqt_par_QModelIndex( 2 ) : QModelIndex() ) ) );
}
/*
* virtual bool setData ( const QModelIndex & index, const QVariant & value, int role = Qt::EditRole )
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_SETDATA )
{
hb_retl( hbqt_par_QAbstractItemModel( 1 )->setData( *hbqt_par_QModelIndex( 2 ), *hbqt_par_QVariant( 3 ), ( HB_ISNUM( 4 ) ? hb_parni( 4 ) : Qt::EditRole ) ) );
}
/*
* virtual bool setHeaderData ( int section, Qt::Orientation orientation, const QVariant & value, int role = Qt::EditRole )
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_SETHEADERDATA )
{
hb_retl( hbqt_par_QAbstractItemModel( 1 )->setHeaderData( hb_parni( 2 ), ( Qt::Orientation ) hb_parni( 3 ), *hbqt_par_QVariant( 4 ), ( HB_ISNUM( 5 ) ? hb_parni( 5 ) : Qt::EditRole ) ) );
}
/*
* void setSupportedDragActions ( Qt::DropActions actions )
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_SETSUPPORTEDDRAGACTIONS )
{
hbqt_par_QAbstractItemModel( 1 )->setSupportedDragActions( ( Qt::DropActions ) hb_parni( 2 ) );
}
/*
* QModelIndex sibling ( int row, int column, const QModelIndex & index ) const
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_SIBLING )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QAbstractItemModel( 1 )->sibling( hb_parni( 2 ), hb_parni( 3 ), *hbqt_par_QModelIndex( 4 ) ) ) ) );
}
/*
* virtual void sort ( int column, Qt::SortOrder order = Qt::AscendingOrder )
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_SORT )
{
hbqt_par_QAbstractItemModel( 1 )->sort( hb_parni( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::SortOrder ) hb_parni( 3 ) : ( Qt::SortOrder ) Qt::AscendingOrder ) );
}
/*
* virtual QSize span ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_SPAN )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QAbstractItemModel( 1 )->span( *hbqt_par_QModelIndex( 2 ) ) ) ) );
}
/*
* Qt::DropActions supportedDragActions () const
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_SUPPORTEDDRAGACTIONS )
{
hb_retni( ( Qt::DropActions ) hbqt_par_QAbstractItemModel( 1 )->supportedDragActions() );
}
/*
* virtual Qt::DropActions supportedDropActions () const
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_SUPPORTEDDROPACTIONS )
{
hb_retni( ( Qt::DropActions ) hbqt_par_QAbstractItemModel( 1 )->supportedDropActions() );
}
/*
* virtual void revert ()
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_REVERT )
{
hbqt_par_QAbstractItemModel( 1 )->revert();
}
/*
* virtual bool submit ()
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_SUBMIT )
{
hb_retl( hbqt_par_QAbstractItemModel( 1 )->submit() );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,599 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* flags EditTriggers
* enum DragDropMode { NoDragDrop, DragOnly, DropOnly, DragDrop, InternalMove }
* enum EditTrigger { NoEditTriggers, CurrentChanged, DoubleClicked, SelectedClicked, ..., AllEditTriggers }
* enum ScrollHint { EnsureVisible, PositionAtTop, PositionAtBottom, PositionAtCenter }
* enum ScrollMode { ScrollPerItem, ScrollPerPixel }
* enum SelectionBehavior { SelectItems, SelectRows, SelectColumns }
* enum SelectionMode { SingleSelection, ContiguousSelection, ExtendedSelection, MultiSelection, NoSelection }
*/
#include <QtCore/QPointer>
#include <QtGui/QAbstractItemView>
/*
* QAbstractItemView ( QWidget * parent = 0 )
* ~QAbstractItemView ()
*/
HB_FUNC( QT_QABSTRACTITEMVIEW )
{
}
/*
* bool alternatingRowColors () const
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_ALTERNATINGROWCOLORS )
{
hb_retl( hbqt_par_QAbstractItemView( 1 )->alternatingRowColors() );
}
/*
* int autoScrollMargin () const
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_AUTOSCROLLMARGIN )
{
hb_retni( hbqt_par_QAbstractItemView( 1 )->autoScrollMargin() );
}
/*
* void closePersistentEditor ( const QModelIndex & index )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_CLOSEPERSISTENTEDITOR )
{
hbqt_par_QAbstractItemView( 1 )->closePersistentEditor( *hbqt_par_QModelIndex( 2 ) );
}
/*
* QModelIndex currentIndex () const
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_CURRENTINDEX )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QAbstractItemView( 1 )->currentIndex() ) ) );
}
/*
* DragDropMode dragDropMode () const
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_DRAGDROPMODE )
{
hb_retni( ( QAbstractItemView::DragDropMode ) hbqt_par_QAbstractItemView( 1 )->dragDropMode() );
}
/*
* bool dragDropOverwriteMode () const
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_DRAGDROPOVERWRITEMODE )
{
hb_retl( hbqt_par_QAbstractItemView( 1 )->dragDropOverwriteMode() );
}
/*
* bool dragEnabled () const
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_DRAGENABLED )
{
hb_retl( hbqt_par_QAbstractItemView( 1 )->dragEnabled() );
}
/*
* EditTriggers editTriggers () const
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_EDITTRIGGERS )
{
hb_retni( ( QAbstractItemView::EditTriggers ) hbqt_par_QAbstractItemView( 1 )->editTriggers() );
}
/*
* bool hasAutoScroll () const
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_HASAUTOSCROLL )
{
hb_retl( hbqt_par_QAbstractItemView( 1 )->hasAutoScroll() );
}
/*
* ScrollMode horizontalScrollMode () const
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_HORIZONTALSCROLLMODE )
{
hb_retni( ( QAbstractItemView::ScrollMode ) hbqt_par_QAbstractItemView( 1 )->horizontalScrollMode() );
}
/*
* QSize iconSize () const
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_ICONSIZE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QAbstractItemView( 1 )->iconSize() ) ) );
}
/*
* virtual QModelIndex indexAt ( const QPoint & point ) const = 0
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_INDEXAT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QAbstractItemView( 1 )->indexAt( *hbqt_par_QPoint( 2 ) ) ) ) );
}
/*
* QWidget * indexWidget ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_INDEXWIDGET )
{
hb_retptr( ( QWidget* ) hbqt_par_QAbstractItemView( 1 )->indexWidget( *hbqt_par_QModelIndex( 2 ) ) );
}
/*
* QAbstractItemDelegate * itemDelegate () const
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_ITEMDELEGATE )
{
hb_retptr( ( QAbstractItemDelegate* ) hbqt_par_QAbstractItemView( 1 )->itemDelegate() );
}
/*
* QAbstractItemDelegate * itemDelegate ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_ITEMDELEGATE_1 )
{
hb_retptr( ( QAbstractItemDelegate* ) hbqt_par_QAbstractItemView( 1 )->itemDelegate( *hbqt_par_QModelIndex( 2 ) ) );
}
/*
* QAbstractItemDelegate * itemDelegateForColumn ( int column ) const
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_ITEMDELEGATEFORCOLUMN )
{
hb_retptr( ( QAbstractItemDelegate* ) hbqt_par_QAbstractItemView( 1 )->itemDelegateForColumn( hb_parni( 2 ) ) );
}
/*
* QAbstractItemDelegate * itemDelegateForRow ( int row ) const
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_ITEMDELEGATEFORROW )
{
hb_retptr( ( QAbstractItemDelegate* ) hbqt_par_QAbstractItemView( 1 )->itemDelegateForRow( hb_parni( 2 ) ) );
}
/*
* 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 )
{
hb_retptr( ( QAbstractItemModel* ) hbqt_par_QAbstractItemView( 1 )->model() );
}
/*
* void openPersistentEditor ( const QModelIndex & index )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_OPENPERSISTENTEDITOR )
{
hbqt_par_QAbstractItemView( 1 )->openPersistentEditor( *hbqt_par_QModelIndex( 2 ) );
}
/*
* QModelIndex rootIndex () const
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_ROOTINDEX )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QAbstractItemView( 1 )->rootIndex() ) ) );
}
/*
* virtual void scrollTo ( const QModelIndex & index, ScrollHint hint = EnsureVisible ) = 0
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SCROLLTO )
{
hbqt_par_QAbstractItemView( 1 )->scrollTo( *hbqt_par_QModelIndex( 2 ), ( HB_ISNUM( 3 ) ? ( QAbstractItemView::ScrollHint ) hb_parni( 3 ) : ( QAbstractItemView::ScrollHint ) QAbstractItemView::EnsureVisible ) );
}
/*
* QAbstractItemView::SelectionBehavior selectionBehavior () const
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SELECTIONBEHAVIOR )
{
hb_retni( ( QAbstractItemView::SelectionBehavior ) hbqt_par_QAbstractItemView( 1 )->selectionBehavior() );
}
/*
* QAbstractItemView::SelectionMode selectionMode () const
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SELECTIONMODE )
{
hb_retni( ( QAbstractItemView::SelectionMode ) hbqt_par_QAbstractItemView( 1 )->selectionMode() );
}
/*
* QItemSelectionModel * selectionModel () const
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SELECTIONMODEL )
{
hb_retptr( ( QItemSelectionModel* ) hbqt_par_QAbstractItemView( 1 )->selectionModel() );
}
/*
* void setAlternatingRowColors ( bool enable )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SETALTERNATINGROWCOLORS )
{
hbqt_par_QAbstractItemView( 1 )->setAlternatingRowColors( hb_parl( 2 ) );
}
/*
* void setAutoScroll ( bool enable )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SETAUTOSCROLL )
{
hbqt_par_QAbstractItemView( 1 )->setAutoScroll( hb_parl( 2 ) );
}
/*
* void setAutoScrollMargin ( int margin )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SETAUTOSCROLLMARGIN )
{
hbqt_par_QAbstractItemView( 1 )->setAutoScrollMargin( hb_parni( 2 ) );
}
/*
* void setDragDropMode ( DragDropMode behavior )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SETDRAGDROPMODE )
{
hbqt_par_QAbstractItemView( 1 )->setDragDropMode( ( QAbstractItemView::DragDropMode ) hb_parni( 2 ) );
}
/*
* void setDragDropOverwriteMode ( bool overwrite )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SETDRAGDROPOVERWRITEMODE )
{
hbqt_par_QAbstractItemView( 1 )->setDragDropOverwriteMode( hb_parl( 2 ) );
}
/*
* void setDragEnabled ( bool enable )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SETDRAGENABLED )
{
hbqt_par_QAbstractItemView( 1 )->setDragEnabled( hb_parl( 2 ) );
}
/*
* void setDropIndicatorShown ( bool enable )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SETDROPINDICATORSHOWN )
{
hbqt_par_QAbstractItemView( 1 )->setDropIndicatorShown( hb_parl( 2 ) );
}
/*
* void setEditTriggers ( EditTriggers triggers )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SETEDITTRIGGERS )
{
hbqt_par_QAbstractItemView( 1 )->setEditTriggers( ( QAbstractItemView::EditTriggers ) hb_parni( 2 ) );
}
/*
* void setHorizontalScrollMode ( ScrollMode mode )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SETHORIZONTALSCROLLMODE )
{
hbqt_par_QAbstractItemView( 1 )->setHorizontalScrollMode( ( QAbstractItemView::ScrollMode ) hb_parni( 2 ) );
}
/*
* void setIconSize ( const QSize & size )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SETICONSIZE )
{
hbqt_par_QAbstractItemView( 1 )->setIconSize( *hbqt_par_QSize( 2 ) );
}
/*
* void setIndexWidget ( const QModelIndex & index, QWidget * widget )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SETINDEXWIDGET )
{
hbqt_par_QAbstractItemView( 1 )->setIndexWidget( *hbqt_par_QModelIndex( 2 ), hbqt_par_QWidget( 3 ) );
}
/*
* void setItemDelegate ( QAbstractItemDelegate * delegate )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SETITEMDELEGATE )
{
hbqt_par_QAbstractItemView( 1 )->setItemDelegate( hbqt_par_QAbstractItemDelegate( 2 ) );
}
/*
* 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 )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SETITEMDELEGATEFORROW )
{
hbqt_par_QAbstractItemView( 1 )->setItemDelegateForRow( hb_parni( 2 ), hbqt_par_QAbstractItemDelegate( 3 ) );
}
/*
* 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 )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SETSELECTIONMODE )
{
hbqt_par_QAbstractItemView( 1 )->setSelectionMode( ( QAbstractItemView::SelectionMode ) hb_parni( 2 ) );
}
/*
* 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 )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SETTEXTELIDEMODE )
{
hbqt_par_QAbstractItemView( 1 )->setTextElideMode( ( Qt::TextElideMode ) hb_parni( 2 ) );
}
/*
* void setVerticalScrollMode ( ScrollMode mode )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SETVERTICALSCROLLMODE )
{
hbqt_par_QAbstractItemView( 1 )->setVerticalScrollMode( ( QAbstractItemView::ScrollMode ) hb_parni( 2 ) );
}
/*
* bool showDropIndicator () const
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SHOWDROPINDICATOR )
{
hb_retl( hbqt_par_QAbstractItemView( 1 )->showDropIndicator() );
}
/*
* virtual int sizeHintForColumn ( int column ) const
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SIZEHINTFORCOLUMN )
{
hb_retni( hbqt_par_QAbstractItemView( 1 )->sizeHintForColumn( hb_parni( 2 ) ) );
}
/*
* QSize sizeHintForIndex ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SIZEHINTFORINDEX )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QAbstractItemView( 1 )->sizeHintForIndex( *hbqt_par_QModelIndex( 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() );
}
/*
* Qt::TextElideMode textElideMode () const
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_TEXTELIDEMODE )
{
hb_retni( ( Qt::TextElideMode ) hbqt_par_QAbstractItemView( 1 )->textElideMode() );
}
/*
* ScrollMode verticalScrollMode () const
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_VERTICALSCROLLMODE )
{
hb_retni( ( QAbstractItemView::ScrollMode ) hbqt_par_QAbstractItemView( 1 )->verticalScrollMode() );
}
/*
* virtual QRect visualRect ( const QModelIndex & index ) const = 0
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_VISUALRECT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QAbstractItemView( 1 )->visualRect( *hbqt_par_QModelIndex( 2 ) ) ) ) );
}
/*
* void clearSelection ()
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_CLEARSELECTION )
{
hbqt_par_QAbstractItemView( 1 )->clearSelection();
}
/*
* void edit ( const QModelIndex & index )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_EDIT )
{
hbqt_par_QAbstractItemView( 1 )->edit( *hbqt_par_QModelIndex( 2 ) );
}
/*
* virtual void reset ()
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_RESET )
{
hbqt_par_QAbstractItemView( 1 )->reset();
}
/*
* void scrollToBottom ()
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SCROLLTOBOTTOM )
{
hbqt_par_QAbstractItemView( 1 )->scrollToBottom();
}
/*
* void scrollToTop ()
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SCROLLTOTOP )
{
hbqt_par_QAbstractItemView( 1 )->scrollToTop();
}
/*
* virtual void selectAll ()
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SELECTALL )
{
hbqt_par_QAbstractItemView( 1 )->selectAll();
}
/*
* void setCurrentIndex ( const QModelIndex & index )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SETCURRENTINDEX )
{
hbqt_par_QAbstractItemView( 1 )->setCurrentIndex( *hbqt_par_QModelIndex( 2 ) );
}
/*
* virtual void setRootIndex ( const QModelIndex & index )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SETROOTINDEX )
{
hbqt_par_QAbstractItemView( 1 )->setRootIndex( *hbqt_par_QModelIndex( 2 ) );
}
/*
* void update ( const QModelIndex & index )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_UPDATE )
{
hbqt_par_QAbstractItemView( 1 )->update( *hbqt_par_QModelIndex( 2 ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,93 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtCore/QAbstractListModel>
/*
* QAbstractListModel ( QObject * parent = 0 )
* ~QAbstractListModel ()
*/
HB_FUNC( QT_QABSTRACTLISTMODEL )
{
}
/*
* virtual QModelIndex index ( int row, int column = 0, const QModelIndex & parent = QModelIndex() ) const
*/
HB_FUNC( QT_QABSTRACTLISTMODEL_INDEX )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QAbstractListModel( 1 )->index( hb_parni( 2 ), hb_parni( 3 ), ( HB_ISPOINTER( 4 ) ? *hbqt_par_QModelIndex( 4 ) : QModelIndex() ) ) ) ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,179 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum PrintDialogOption { None, PrintToFile, PrintSelection, PrintPageRange, ..., PrintShowPageSize }
* enum PrintRange { AllPages, Selection, PageRange }
* flags PrintDialogOptions
*/
/*
* Constructed[ 10/11 [ 90.91% ] ]
*
* *** Unconvered Prototypes ***
* -----------------------------
*
* void setOptionTabs ( const QList<QWidget *> & tabs )
*/
#include <QtCore/QPointer>
#include <QtGui/QAbstractPrintDialog>
/*
* 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() );
}
/*
* int maxPage () const
*/
HB_FUNC( QT_QABSTRACTPRINTDIALOG_MAXPAGE )
{
hb_retni( hbqt_par_QAbstractPrintDialog( 1 )->maxPage() );
}
/*
* int minPage () const
*/
HB_FUNC( QT_QABSTRACTPRINTDIALOG_MINPAGE )
{
hb_retni( hbqt_par_QAbstractPrintDialog( 1 )->minPage() );
}
/*
* PrintRange printRange () const
*/
HB_FUNC( QT_QABSTRACTPRINTDIALOG_PRINTRANGE )
{
hb_retni( ( QAbstractPrintDialog::PrintRange ) hbqt_par_QAbstractPrintDialog( 1 )->printRange() );
}
/*
* QPrinter * printer () const
*/
HB_FUNC( QT_QABSTRACTPRINTDIALOG_PRINTER )
{
hb_retptr( ( QPrinter* ) hbqt_par_QAbstractPrintDialog( 1 )->printer() );
}
/*
* 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 )
*/
HB_FUNC( QT_QABSTRACTPRINTDIALOG_SETMINMAX )
{
hbqt_par_QAbstractPrintDialog( 1 )->setMinMax( hb_parni( 2 ), hb_parni( 3 ) );
}
/*
* void setPrintRange ( PrintRange range )
*/
HB_FUNC( QT_QABSTRACTPRINTDIALOG_SETPRINTRANGE )
{
hbqt_par_QAbstractPrintDialog( 1 )->setPrintRange( ( QAbstractPrintDialog::PrintRange ) hb_parni( 2 ) );
}
/*
* int toPage () const
*/
HB_FUNC( QT_QABSTRACTPRINTDIALOG_TOPAGE )
{
hb_retni( hbqt_par_QAbstractPrintDialog( 1 )->toPage() );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,205 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QAbstractScrollArea>
/*
* QAbstractScrollArea ( QWidget * parent = 0 )
* ~QAbstractScrollArea ()
*/
HB_FUNC( QT_QABSTRACTSCROLLAREA )
{
}
/*
* void addScrollBarWidget ( QWidget * widget, Qt::Alignment alignment )
*/
HB_FUNC( QT_QABSTRACTSCROLLAREA_ADDSCROLLBARWIDGET )
{
hbqt_par_QAbstractScrollArea( 1 )->addScrollBarWidget( hbqt_par_QWidget( 2 ), ( Qt::Alignment ) hb_parni( 3 ) );
}
/*
* QWidget * cornerWidget () const
*/
HB_FUNC( QT_QABSTRACTSCROLLAREA_CORNERWIDGET )
{
hb_retptr( ( QWidget* ) hbqt_par_QAbstractScrollArea( 1 )->cornerWidget() );
}
/*
* QScrollBar * horizontalScrollBar () const
*/
HB_FUNC( QT_QABSTRACTSCROLLAREA_HORIZONTALSCROLLBAR )
{
hb_retptr( ( QScrollBar* ) hbqt_par_QAbstractScrollArea( 1 )->horizontalScrollBar() );
}
/*
* Qt::ScrollBarPolicy horizontalScrollBarPolicy () const
*/
HB_FUNC( QT_QABSTRACTSCROLLAREA_HORIZONTALSCROLLBARPOLICY )
{
hb_retni( ( Qt::ScrollBarPolicy ) hbqt_par_QAbstractScrollArea( 1 )->horizontalScrollBarPolicy() );
}
/*
* QSize maximumViewportSize () const
*/
HB_FUNC( QT_QABSTRACTSCROLLAREA_MAXIMUMVIEWPORTSIZE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QAbstractScrollArea( 1 )->maximumViewportSize() ) ) );
}
/*
* QWidgetList scrollBarWidgets ( Qt::Alignment alignment )
*/
HB_FUNC( QT_QABSTRACTSCROLLAREA_SCROLLBARWIDGETS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QWidgetList( hbqt_par_QAbstractScrollArea( 1 )->scrollBarWidgets( ( Qt::Alignment ) hb_parni( 2 ) ) ) ) );
}
/*
* void setCornerWidget ( QWidget * widget )
*/
HB_FUNC( QT_QABSTRACTSCROLLAREA_SETCORNERWIDGET )
{
hbqt_par_QAbstractScrollArea( 1 )->setCornerWidget( hbqt_par_QWidget( 2 ) );
}
/*
* void setHorizontalScrollBar ( QScrollBar * scrollBar )
*/
HB_FUNC( QT_QABSTRACTSCROLLAREA_SETHORIZONTALSCROLLBAR )
{
hbqt_par_QAbstractScrollArea( 1 )->setHorizontalScrollBar( hbqt_par_QScrollBar( 2 ) );
}
/*
* void setHorizontalScrollBarPolicy ( Qt::ScrollBarPolicy )
*/
HB_FUNC( QT_QABSTRACTSCROLLAREA_SETHORIZONTALSCROLLBARPOLICY )
{
hbqt_par_QAbstractScrollArea( 1 )->setHorizontalScrollBarPolicy( ( Qt::ScrollBarPolicy ) hb_parni( 2 ) );
}
/*
* void setVerticalScrollBar ( QScrollBar * scrollBar )
*/
HB_FUNC( QT_QABSTRACTSCROLLAREA_SETVERTICALSCROLLBAR )
{
hbqt_par_QAbstractScrollArea( 1 )->setVerticalScrollBar( hbqt_par_QScrollBar( 2 ) );
}
/*
* void setVerticalScrollBarPolicy ( Qt::ScrollBarPolicy )
*/
HB_FUNC( QT_QABSTRACTSCROLLAREA_SETVERTICALSCROLLBARPOLICY )
{
hbqt_par_QAbstractScrollArea( 1 )->setVerticalScrollBarPolicy( ( Qt::ScrollBarPolicy ) hb_parni( 2 ) );
}
/*
* void setViewport ( QWidget * widget )
*/
HB_FUNC( QT_QABSTRACTSCROLLAREA_SETVIEWPORT )
{
hbqt_par_QAbstractScrollArea( 1 )->setViewport( hbqt_par_QWidget( 2 ) );
}
/*
* QScrollBar * verticalScrollBar () const
*/
HB_FUNC( QT_QABSTRACTSCROLLAREA_VERTICALSCROLLBAR )
{
hb_retptr( ( QScrollBar* ) hbqt_par_QAbstractScrollArea( 1 )->verticalScrollBar() );
}
/*
* Qt::ScrollBarPolicy verticalScrollBarPolicy () const
*/
HB_FUNC( QT_QABSTRACTSCROLLAREA_VERTICALSCROLLBARPOLICY )
{
hb_retni( ( Qt::ScrollBarPolicy ) hbqt_par_QAbstractScrollArea( 1 )->verticalScrollBarPolicy() );
}
/*
* QWidget * viewport () const
*/
HB_FUNC( QT_QABSTRACTSCROLLAREA_VIEWPORT )
{
hb_retptr( ( QWidget* ) hbqt_par_QAbstractScrollArea( 1 )->viewport() );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,281 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum SliderAction { SliderNoAction, SliderSingleStepAdd, SliderSingleStepSub, SliderPageStepAdd, ..., SliderMove }
*/
#include <QtCore/QPointer>
#include <QtGui/QAbstractSlider>
/*
* QAbstractSlider ( QWidget * parent = 0 )
* ~QAbstractSlider ()
*/
HB_FUNC( QT_QABSTRACTSLIDER )
{
}
/*
* bool hasTracking () const
*/
HB_FUNC( QT_QABSTRACTSLIDER_HASTRACKING )
{
hb_retl( hbqt_par_QAbstractSlider( 1 )->hasTracking() );
}
/*
* bool invertedAppearance () const
*/
HB_FUNC( QT_QABSTRACTSLIDER_INVERTEDAPPEARANCE )
{
hb_retl( hbqt_par_QAbstractSlider( 1 )->invertedAppearance() );
}
/*
* bool invertedControls () const
*/
HB_FUNC( QT_QABSTRACTSLIDER_INVERTEDCONTROLS )
{
hb_retl( hbqt_par_QAbstractSlider( 1 )->invertedControls() );
}
/*
* bool isSliderDown () const
*/
HB_FUNC( QT_QABSTRACTSLIDER_ISSLIDERDOWN )
{
hb_retl( hbqt_par_QAbstractSlider( 1 )->isSliderDown() );
}
/*
* int maximum () const
*/
HB_FUNC( QT_QABSTRACTSLIDER_MAXIMUM )
{
hb_retni( hbqt_par_QAbstractSlider( 1 )->maximum() );
}
/*
* int minimum () const
*/
HB_FUNC( QT_QABSTRACTSLIDER_MINIMUM )
{
hb_retni( hbqt_par_QAbstractSlider( 1 )->minimum() );
}
/*
* Qt::Orientation orientation () const
*/
HB_FUNC( QT_QABSTRACTSLIDER_ORIENTATION )
{
hb_retni( ( Qt::Orientation ) hbqt_par_QAbstractSlider( 1 )->orientation() );
}
/*
* int pageStep () const
*/
HB_FUNC( QT_QABSTRACTSLIDER_PAGESTEP )
{
hb_retni( hbqt_par_QAbstractSlider( 1 )->pageStep() );
}
/*
* void setInvertedAppearance ( bool )
*/
HB_FUNC( QT_QABSTRACTSLIDER_SETINVERTEDAPPEARANCE )
{
hbqt_par_QAbstractSlider( 1 )->setInvertedAppearance( hb_parl( 2 ) );
}
/*
* void setInvertedControls ( bool )
*/
HB_FUNC( QT_QABSTRACTSLIDER_SETINVERTEDCONTROLS )
{
hbqt_par_QAbstractSlider( 1 )->setInvertedControls( hb_parl( 2 ) );
}
/*
* void setMaximum ( int )
*/
HB_FUNC( QT_QABSTRACTSLIDER_SETMAXIMUM )
{
hbqt_par_QAbstractSlider( 1 )->setMaximum( hb_parni( 2 ) );
}
/*
* void setMinimum ( int )
*/
HB_FUNC( QT_QABSTRACTSLIDER_SETMINIMUM )
{
hbqt_par_QAbstractSlider( 1 )->setMinimum( hb_parni( 2 ) );
}
/*
* void setPageStep ( int )
*/
HB_FUNC( QT_QABSTRACTSLIDER_SETPAGESTEP )
{
hbqt_par_QAbstractSlider( 1 )->setPageStep( hb_parni( 2 ) );
}
/*
* 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 )
*/
HB_FUNC( QT_QABSTRACTSLIDER_SETSINGLESTEP )
{
hbqt_par_QAbstractSlider( 1 )->setSingleStep( hb_parni( 2 ) );
}
/*
* void setSliderDown ( bool )
*/
HB_FUNC( QT_QABSTRACTSLIDER_SETSLIDERDOWN )
{
hbqt_par_QAbstractSlider( 1 )->setSliderDown( hb_parl( 2 ) );
}
/*
* void setSliderPosition ( int )
*/
HB_FUNC( QT_QABSTRACTSLIDER_SETSLIDERPOSITION )
{
hbqt_par_QAbstractSlider( 1 )->setSliderPosition( hb_parni( 2 ) );
}
/*
* void setTracking ( bool enable )
*/
HB_FUNC( QT_QABSTRACTSLIDER_SETTRACKING )
{
hbqt_par_QAbstractSlider( 1 )->setTracking( hb_parl( 2 ) );
}
/*
* int singleStep () const
*/
HB_FUNC( QT_QABSTRACTSLIDER_SINGLESTEP )
{
hb_retni( hbqt_par_QAbstractSlider( 1 )->singleStep() );
}
/*
* int sliderPosition () const
*/
HB_FUNC( QT_QABSTRACTSLIDER_SLIDERPOSITION )
{
hb_retni( hbqt_par_QAbstractSlider( 1 )->sliderPosition() );
}
/*
* void triggerAction ( SliderAction action )
*/
HB_FUNC( QT_QABSTRACTSLIDER_TRIGGERACTION )
{
hbqt_par_QAbstractSlider( 1 )->triggerAction( ( QAbstractSlider::SliderAction ) hb_parni( 2 ) );
}
/*
* int value () const
*/
HB_FUNC( QT_QABSTRACTSLIDER_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 /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,300 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum ButtonSymbols { UpDownArrows, PlusMinus, NoButtons }
* enum CorrectionMode { CorrectToPreviousValue, CorrectToNearestValue }
* flags StepEnabled
* enum StepEnabledFlag { StepNone, StepUpEnabled, StepDownEnabled }
*/
#include <QtCore/QPointer>
#include <QtGui/QAbstractSpinBox>
/*
* QAbstractSpinBox ( QWidget * parent = 0 )
* ~QAbstractSpinBox ()
*/
HB_FUNC( QT_QABSTRACTSPINBOX )
{
}
/*
* Qt::Alignment alignment () const
*/
HB_FUNC( QT_QABSTRACTSPINBOX_ALIGNMENT )
{
hb_retni( ( Qt::Alignment ) hbqt_par_QAbstractSpinBox( 1 )->alignment() );
}
/*
* ButtonSymbols buttonSymbols () const
*/
HB_FUNC( QT_QABSTRACTSPINBOX_BUTTONSYMBOLS )
{
hb_retni( ( QAbstractSpinBox::ButtonSymbols ) hbqt_par_QAbstractSpinBox( 1 )->buttonSymbols() );
}
/*
* CorrectionMode correctionMode () const
*/
HB_FUNC( QT_QABSTRACTSPINBOX_CORRECTIONMODE )
{
hb_retni( ( QAbstractSpinBox::CorrectionMode ) hbqt_par_QAbstractSpinBox( 1 )->correctionMode() );
}
/*
* bool hasAcceptableInput () const
*/
HB_FUNC( QT_QABSTRACTSPINBOX_HASACCEPTABLEINPUT )
{
hb_retl( hbqt_par_QAbstractSpinBox( 1 )->hasAcceptableInput() );
}
/*
* bool hasFrame () const
*/
HB_FUNC( QT_QABSTRACTSPINBOX_HASFRAME )
{
hb_retl( hbqt_par_QAbstractSpinBox( 1 )->hasFrame() );
}
/*
* void interpretText ()
*/
HB_FUNC( QT_QABSTRACTSPINBOX_INTERPRETTEXT )
{
hbqt_par_QAbstractSpinBox( 1 )->interpretText();
}
/*
* bool isAccelerated () const
*/
HB_FUNC( QT_QABSTRACTSPINBOX_ISACCELERATED )
{
hb_retl( hbqt_par_QAbstractSpinBox( 1 )->isAccelerated() );
}
/*
* bool isReadOnly () const
*/
HB_FUNC( QT_QABSTRACTSPINBOX_ISREADONLY )
{
hb_retl( hbqt_par_QAbstractSpinBox( 1 )->isReadOnly() );
}
/*
* bool keyboardTracking () const
*/
HB_FUNC( QT_QABSTRACTSPINBOX_KEYBOARDTRACKING )
{
hb_retl( hbqt_par_QAbstractSpinBox( 1 )->keyboardTracking() );
}
/*
* void setAccelerated ( bool on )
*/
HB_FUNC( QT_QABSTRACTSPINBOX_SETACCELERATED )
{
hbqt_par_QAbstractSpinBox( 1 )->setAccelerated( hb_parl( 2 ) );
}
/*
* void setAlignment ( Qt::Alignment flag )
*/
HB_FUNC( QT_QABSTRACTSPINBOX_SETALIGNMENT )
{
hbqt_par_QAbstractSpinBox( 1 )->setAlignment( ( Qt::Alignment ) hb_parni( 2 ) );
}
/*
* void setButtonSymbols ( ButtonSymbols bs )
*/
HB_FUNC( QT_QABSTRACTSPINBOX_SETBUTTONSYMBOLS )
{
hbqt_par_QAbstractSpinBox( 1 )->setButtonSymbols( ( QAbstractSpinBox::ButtonSymbols ) hb_parni( 2 ) );
}
/*
* void setCorrectionMode ( CorrectionMode cm )
*/
HB_FUNC( QT_QABSTRACTSPINBOX_SETCORRECTIONMODE )
{
hbqt_par_QAbstractSpinBox( 1 )->setCorrectionMode( ( QAbstractSpinBox::CorrectionMode ) hb_parni( 2 ) );
}
/*
* void setFrame ( bool )
*/
HB_FUNC( QT_QABSTRACTSPINBOX_SETFRAME )
{
hbqt_par_QAbstractSpinBox( 1 )->setFrame( hb_parl( 2 ) );
}
/*
* void setKeyboardTracking ( bool kt )
*/
HB_FUNC( QT_QABSTRACTSPINBOX_SETKEYBOARDTRACKING )
{
hbqt_par_QAbstractSpinBox( 1 )->setKeyboardTracking( hb_parl( 2 ) );
}
/*
* void setReadOnly ( bool r )
*/
HB_FUNC( QT_QABSTRACTSPINBOX_SETREADONLY )
{
hbqt_par_QAbstractSpinBox( 1 )->setReadOnly( hb_parl( 2 ) );
}
/*
* void setSpecialValueText ( const QString & txt )
*/
HB_FUNC( QT_QABSTRACTSPINBOX_SETSPECIALVALUETEXT )
{
hbqt_par_QAbstractSpinBox( 1 )->setSpecialValueText( hbqt_par_QString( 2 ) );
}
/*
* void setWrapping ( bool w )
*/
HB_FUNC( QT_QABSTRACTSPINBOX_SETWRAPPING )
{
hbqt_par_QAbstractSpinBox( 1 )->setWrapping( hb_parl( 2 ) );
}
/*
* QString specialValueText () const
*/
HB_FUNC( QT_QABSTRACTSPINBOX_SPECIALVALUETEXT )
{
hb_retc( hbqt_par_QAbstractSpinBox( 1 )->specialValueText().toAscii().data() );
}
/*
* virtual void stepBy ( int steps )
*/
HB_FUNC( QT_QABSTRACTSPINBOX_STEPBY )
{
hbqt_par_QAbstractSpinBox( 1 )->stepBy( hb_parni( 2 ) );
}
/*
* QString text () const
*/
HB_FUNC( QT_QABSTRACTSPINBOX_TEXT )
{
hb_retc( hbqt_par_QAbstractSpinBox( 1 )->text().toAscii().data() );
}
/*
* bool wrapping () const
*/
HB_FUNC( QT_QABSTRACTSPINBOX_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 /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,93 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtCore/QAbstractTableModel>
/*
* QAbstractTableModel ( QObject * parent = 0 )
* ~QAbstractTableModel ()
*/
HB_FUNC( QT_QABSTRACTTABLEMODEL )
{
}
/*
* virtual QModelIndex index ( int row, int column, const QModelIndex & parent = QModelIndex() ) const
*/
HB_FUNC( QT_QABSTRACTTABLEMODEL_INDEX )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QAbstractTableModel( 1 )->index( hb_parni( 2 ), hb_parni( 3 ), ( HB_ISPOINTER( 4 ) ? *hbqt_par_QModelIndex( 4 ) : QModelIndex() ) ) ) ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,501 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum ActionEvent { Trigger, Hover }
* enum MenuRole { NoRole, TextHeuristicRole, ApplicationSpecificRole, AboutQtRole, ..., QuitRole }
*/
/*
* Constructed[ 48/52 [ 92.31% ] ]
*
* *** Unconvered Prototypes ***
* -----------------------------
*
* QList<QGraphicsWidget *> associatedGraphicsWidgets () const
* QList<QWidget *> associatedWidgets () const
* void setShortcuts ( const QList<QKeySequence> & shortcuts )
* QList<QKeySequence> shortcuts () const
*/
#include <QtCore/QPointer>
#include <QtGui/QAction>
/*
* QAction ( QObject * parent )
* QAction ( const QString & text, QObject * parent )
* QAction ( const QIcon & icon, const QString & text, QObject * parent )
* ~QAction ()
*/
HB_FUNC( QT_QACTION )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QAction > pObj = NULL;
if( HB_ISPOINTER( 1 ) )
pObj = new QAction( hbqt_par_QObject( 1 ) ) ;
else if( HB_ISPOINTER( 2 ) )
pObj = new QAction( hbqt_par_QString( 1 ), hbqt_par_QObject( 2 ) ) ;
else if( HB_ISPOINTER( 3 ) )
pObj = new QAction( *hbqt_par_QIcon( 1 ), hbqt_par_QString( 2 ), hbqt_par_QObject( 3 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* QActionGroup * actionGroup () const
*/
HB_FUNC( QT_QACTION_ACTIONGROUP )
{
hb_retptr( ( QActionGroup* ) hbqt_par_QAction( 1 )->actionGroup() );
}
/*
* void activate ( ActionEvent event )
*/
HB_FUNC( QT_QACTION_ACTIVATE )
{
hbqt_par_QAction( 1 )->activate( ( QAction::ActionEvent ) hb_parni( 2 ) );
}
/*
* bool autoRepeat () const
*/
HB_FUNC( QT_QACTION_AUTOREPEAT )
{
hb_retl( hbqt_par_QAction( 1 )->autoRepeat() );
}
/*
* QVariant data () const
*/
HB_FUNC( QT_QACTION_DATA )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QVariant( hbqt_par_QAction( 1 )->data() ) ) );
}
/*
* QFont font () const
*/
HB_FUNC( QT_QACTION_FONT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QAction( 1 )->font() ) ) );
}
/*
* QIcon icon () const
*/
HB_FUNC( QT_QACTION_ICON )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QIcon( hbqt_par_QAction( 1 )->icon() ) ) );
}
/*
* QString iconText () const
*/
HB_FUNC( QT_QACTION_ICONTEXT )
{
hb_retc( hbqt_par_QAction( 1 )->iconText().toAscii().data() );
}
/*
* bool isCheckable () const
*/
HB_FUNC( QT_QACTION_ISCHECKABLE )
{
hb_retl( hbqt_par_QAction( 1 )->isCheckable() );
}
/*
* bool isChecked () const
*/
HB_FUNC( QT_QACTION_ISCHECKED )
{
hb_retl( hbqt_par_QAction( 1 )->isChecked() );
}
/*
* bool isEnabled () const
*/
HB_FUNC( QT_QACTION_ISENABLED )
{
hb_retl( hbqt_par_QAction( 1 )->isEnabled() );
}
/*
* bool isIconVisibleInMenu () const
*/
HB_FUNC( QT_QACTION_ISICONVISIBLEINMENU )
{
hb_retl( hbqt_par_QAction( 1 )->isIconVisibleInMenu() );
}
/*
* bool isSeparator () const
*/
HB_FUNC( QT_QACTION_ISSEPARATOR )
{
hb_retl( hbqt_par_QAction( 1 )->isSeparator() );
}
/*
* bool isVisible () const
*/
HB_FUNC( QT_QACTION_ISVISIBLE )
{
hb_retl( hbqt_par_QAction( 1 )->isVisible() );
}
/*
* QMenu * menu () const
*/
HB_FUNC( QT_QACTION_MENU )
{
hb_retptr( ( QMenu* ) hbqt_par_QAction( 1 )->menu() );
}
/*
* MenuRole menuRole () const
*/
HB_FUNC( QT_QACTION_MENUROLE )
{
hb_retni( ( QAction::MenuRole ) hbqt_par_QAction( 1 )->menuRole() );
}
/*
* QWidget * parentWidget () const
*/
HB_FUNC( QT_QACTION_PARENTWIDGET )
{
hb_retptr( ( QWidget* ) hbqt_par_QAction( 1 )->parentWidget() );
}
/*
* void setActionGroup ( QActionGroup * group )
*/
HB_FUNC( QT_QACTION_SETACTIONGROUP )
{
hbqt_par_QAction( 1 )->setActionGroup( hbqt_par_QActionGroup( 2 ) );
}
/*
* void setAutoRepeat ( bool )
*/
HB_FUNC( QT_QACTION_SETAUTOREPEAT )
{
hbqt_par_QAction( 1 )->setAutoRepeat( hb_parl( 2 ) );
}
/*
* void setCheckable ( bool )
*/
HB_FUNC( QT_QACTION_SETCHECKABLE )
{
hbqt_par_QAction( 1 )->setCheckable( hb_parl( 2 ) );
}
/*
* void setData ( const QVariant & userData )
*/
HB_FUNC( QT_QACTION_SETDATA )
{
hbqt_par_QAction( 1 )->setData( *hbqt_par_QVariant( 2 ) );
}
/*
* void setFont ( const QFont & font )
*/
HB_FUNC( QT_QACTION_SETFONT )
{
hbqt_par_QAction( 1 )->setFont( *hbqt_par_QFont( 2 ) );
}
/*
* 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 )
*/
HB_FUNC( QT_QACTION_SETICONVISIBLEINMENU )
{
hbqt_par_QAction( 1 )->setIconVisibleInMenu( hb_parl( 2 ) );
}
/*
* void setMenu ( QMenu * menu )
*/
HB_FUNC( QT_QACTION_SETMENU )
{
hbqt_par_QAction( 1 )->setMenu( hbqt_par_QMenu( 2 ) );
}
/*
* void setMenuRole ( MenuRole menuRole )
*/
HB_FUNC( QT_QACTION_SETMENUROLE )
{
hbqt_par_QAction( 1 )->setMenuRole( ( QAction::MenuRole ) hb_parni( 2 ) );
}
/*
* void setSeparator ( bool b )
*/
HB_FUNC( QT_QACTION_SETSEPARATOR )
{
hbqt_par_QAction( 1 )->setSeparator( hb_parl( 2 ) );
}
/*
* void setShortcut ( const QKeySequence & shortcut )
*/
HB_FUNC( QT_QACTION_SETSHORTCUT )
{
hbqt_par_QAction( 1 )->setShortcut( *hbqt_par_QKeySequence( 2 ) );
}
/*
* 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 )
*/
HB_FUNC( QT_QACTION_SETSHORTCUTS )
{
hbqt_par_QAction( 1 )->setShortcuts( ( QKeySequence::StandardKey ) hb_parni( 2 ) );
}
/*
* void setStatusTip ( const QString & statusTip )
*/
HB_FUNC( QT_QACTION_SETSTATUSTIP )
{
hbqt_par_QAction( 1 )->setStatusTip( hbqt_par_QString( 2 ) );
}
/*
* void setText ( const QString & text )
*/
HB_FUNC( QT_QACTION_SETTEXT )
{
hbqt_par_QAction( 1 )->setText( hbqt_par_QString( 2 ) );
}
/*
* void setToolTip ( const QString & tip )
*/
HB_FUNC( QT_QACTION_SETTOOLTIP )
{
hbqt_par_QAction( 1 )->setToolTip( hbqt_par_QString( 2 ) );
}
/*
* void setWhatsThis ( const QString & what )
*/
HB_FUNC( QT_QACTION_SETWHATSTHIS )
{
hbqt_par_QAction( 1 )->setWhatsThis( hbqt_par_QString( 2 ) );
}
/*
* QKeySequence shortcut () const
*/
HB_FUNC( QT_QACTION_SHORTCUT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QKeySequence( hbqt_par_QAction( 1 )->shortcut() ) ) );
}
/*
* Qt::ShortcutContext shortcutContext () const
*/
HB_FUNC( QT_QACTION_SHORTCUTCONTEXT )
{
hb_retni( ( Qt::ShortcutContext ) hbqt_par_QAction( 1 )->shortcutContext() );
}
/*
* bool showStatusText ( QWidget * widget = 0 )
*/
HB_FUNC( QT_QACTION_SHOWSTATUSTEXT )
{
hb_retl( hbqt_par_QAction( 1 )->showStatusText( hbqt_par_QWidget( 2 ) ) );
}
/*
* QString statusTip () const
*/
HB_FUNC( QT_QACTION_STATUSTIP )
{
hb_retc( hbqt_par_QAction( 1 )->statusTip().toAscii().data() );
}
/*
* QString text () const
*/
HB_FUNC( QT_QACTION_TEXT )
{
hb_retc( hbqt_par_QAction( 1 )->text().toAscii().data() );
}
/*
* QString toolTip () const
*/
HB_FUNC( QT_QACTION_TOOLTIP )
{
hb_retc( hbqt_par_QAction( 1 )->toolTip().toAscii().data() );
}
/*
* QString whatsThis () const
*/
HB_FUNC( QT_QACTION_WHATSTHIS )
{
hb_retc( hbqt_par_QAction( 1 )->whatsThis().toAscii().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 /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,802 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum ColorSpec { NormalColor, CustomColor, ManyColor }
* enum Type { Tty, GuiClient, GuiServer }
*/
#include <QtCore/QPointer>
#include "hbapi.h"
#include "hbinit.h"
#include "hbdefs.h"
#include "hbapifs.h"
#include "hbapiitm.h"
#include "hbstack.h"
#include "hbvm.h"
#include "hbdate.h"
#include "hbapierr.h"
#include <qfont.h>
#include <qfontmetrics.h>
#include <qimage.h>
#include <qpalette.h>
#include <QtGui/QApplication>
#include <QtCore/QLocale>
#include <QtGui/QIcon>
void release_codeblocks();
static QApplication * app = NULL;
static bool hbqtinit = false;
static int s_argc;
static char ** s_argv;
/*
* 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 ()
*/
static void hbqt_Exit( void * cargo )
{
HB_SYMBOL_UNUSED( cargo );
release_codeblocks();
}
static void hbqt_Init( void * cargo )
{
HB_SYMBOL_UNUSED( cargo );
s_argc = hb_cmdargARGC();
s_argv = hb_cmdargARGV();
app = new QApplication( s_argc, s_argv );
if( app )
hbqtinit = true;
if( ! hbqtinit )
hb_errInternal( 11001, "hbqt_Init(): QT Initilization Error.", NULL, NULL );
hb_cmdargInit( s_argc, s_argv );
hb_vmAtExit( hbqt_Exit, NULL );
}
HB_CALL_ON_STARTUP_BEGIN( _hb_hbqt_init_ )
hb_vmAtInit( hbqt_Init, NULL );
HB_CALL_ON_STARTUP_END( _hb_hbqt_init_ )
#if defined( HB_PRAGMA_STARTUP )
#pragma startup _hb_hbqt_init_
#elif defined( HB_MSC_STARTUP )
#if defined( HB_OS_WIN_64 )
#pragma section( HB_MSC_START_SEGMENT, long, read )
#endif
#pragma data_seg( HB_MSC_START_SEGMENT )
static HB_$INITSYM hb_auto_hbqt_init_ = _hb_hbqt_init_;
#pragma data_seg()
#endif
HB_FUNC( QT_QAPPLICATION_EXECUTE )
{
hb_retni( app->exec() );
}
HB_FUNC( QT_QAPPLICATION_QUIT )
{
app->quit();
}
HB_FUNC( QT_QAPPLICATION )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QApplication > pObj = NULL;
pObj = ( QApplication * ) app ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* virtual void commitData ( QSessionManager & manager )
*/
HB_FUNC( QT_QAPPLICATION_COMMITDATA )
{
hbqt_par_QApplication( 1 )->commitData( *hbqt_par_QSessionManager( 2 ) );
}
/*
* 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() );
}
/*
* virtual void saveState ( QSessionManager & manager )
*/
HB_FUNC( QT_QAPPLICATION_SAVESTATE )
{
hbqt_par_QApplication( 1 )->saveState( *hbqt_par_QSessionManager( 2 ) );
}
/*
* QString sessionId () const
*/
HB_FUNC( QT_QAPPLICATION_SESSIONID )
{
hb_retc( hbqt_par_QApplication( 1 )->sessionId().toAscii().data() );
}
/*
* QString sessionKey () const
*/
HB_FUNC( QT_QAPPLICATION_SESSIONKEY )
{
hb_retc( hbqt_par_QApplication( 1 )->sessionKey().toAscii().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().toAscii().data() );
}
/*
* QWidget * activeModalWidget ()
*/
HB_FUNC( QT_QAPPLICATION_ACTIVEMODALWIDGET )
{
hb_retptr( ( QWidget* ) hbqt_par_QApplication( 1 )->activeModalWidget() );
}
/*
* QWidget * activePopupWidget ()
*/
HB_FUNC( QT_QAPPLICATION_ACTIVEPOPUPWIDGET )
{
hb_retptr( ( QWidget* ) hbqt_par_QApplication( 1 )->activePopupWidget() );
}
/*
* QWidget * activeWindow ()
*/
HB_FUNC( QT_QAPPLICATION_ACTIVEWINDOW )
{
hb_retptr( ( QWidget* ) hbqt_par_QApplication( 1 )->activeWindow() );
}
/*
* void alert ( QWidget * widget, int msec = 0 )
*/
HB_FUNC( QT_QAPPLICATION_ALERT )
{
hbqt_par_QApplication( 1 )->alert( hbqt_par_QWidget( 2 ), hb_parni( 3 ) );
}
/*
* QWidgetList allWidgets ()
*/
HB_FUNC( QT_QAPPLICATION_ALLWIDGETS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QWidgetList( hbqt_par_QApplication( 1 )->allWidgets() ) ) );
}
/*
* void beep ()
*/
HB_FUNC( QT_QAPPLICATION_BEEP )
{
hbqt_par_QApplication( 1 )->beep();
}
/*
* void changeOverrideCursor ( const QCursor & cursor )
*/
HB_FUNC( QT_QAPPLICATION_CHANGEOVERRIDECURSOR )
{
hbqt_par_QApplication( 1 )->changeOverrideCursor( *hbqt_par_QCursor( 2 ) );
}
/*
* QClipboard * clipboard ()
*/
HB_FUNC( QT_QAPPLICATION_CLIPBOARD )
{
hb_retptr( ( QClipboard* ) hbqt_par_QApplication( 1 )->clipboard() );
}
/*
* int colorSpec ()
*/
HB_FUNC( QT_QAPPLICATION_COLORSPEC )
{
hb_retni( hbqt_par_QApplication( 1 )->colorSpec() );
}
/*
* int cursorFlashTime ()
*/
HB_FUNC( QT_QAPPLICATION_CURSORFLASHTIME )
{
hb_retni( hbqt_par_QApplication( 1 )->cursorFlashTime() );
}
/*
* QDesktopWidget * desktop ()
*/
HB_FUNC( QT_QAPPLICATION_DESKTOP )
{
hb_retptr( ( QDesktopWidget* ) hbqt_par_QApplication( 1 )->desktop() );
}
/*
* bool desktopSettingsAware ()
*/
HB_FUNC( QT_QAPPLICATION_DESKTOPSETTINGSAWARE )
{
hb_retl( hbqt_par_QApplication( 1 )->desktopSettingsAware() );
}
/*
* int doubleClickInterval ()
*/
HB_FUNC( QT_QAPPLICATION_DOUBLECLICKINTERVAL )
{
hb_retni( hbqt_par_QApplication( 1 )->doubleClickInterval() );
}
/*
* int exec ()
*/
HB_FUNC( QT_QAPPLICATION_EXEC )
{
hb_retni( hbqt_par_QApplication( 1 )->exec() );
}
/*
* QWidget * focusWidget ()
*/
HB_FUNC( QT_QAPPLICATION_FOCUSWIDGET )
{
hb_retptr( ( QWidget* ) hbqt_par_QApplication( 1 )->focusWidget() );
}
/*
* QFont font ()
*/
HB_FUNC( QT_QAPPLICATION_FONT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QApplication( 1 )->font() ) ) );
}
/*
* QFont font ( const QWidget * widget )
*/
HB_FUNC( QT_QAPPLICATION_FONT_1 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QApplication( 1 )->font( hbqt_par_QWidget( 2 ) ) ) ) );
}
/*
* QFont font ( const char * className )
*/
HB_FUNC( QT_QAPPLICATION_FONT_2 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QApplication( 1 )->font( hbqt_par_char( 2 ) ) ) ) );
}
/*
* QFontMetrics fontMetrics ()
*/
HB_FUNC( QT_QAPPLICATION_FONTMETRICS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QFontMetrics( hbqt_par_QApplication( 1 )->fontMetrics() ) ) );
}
/*
* QSize globalStrut ()
*/
HB_FUNC( QT_QAPPLICATION_GLOBALSTRUT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QApplication( 1 )->globalStrut() ) ) );
}
/*
* bool isEffectEnabled ( Qt::UIEffect effect )
*/
HB_FUNC( QT_QAPPLICATION_ISEFFECTENABLED )
{
hb_retl( hbqt_par_QApplication( 1 )->isEffectEnabled( ( Qt::UIEffect ) hb_parni( 2 ) ) );
}
/*
* bool isLeftToRight ()
*/
HB_FUNC( QT_QAPPLICATION_ISLEFTTORIGHT )
{
hb_retl( hbqt_par_QApplication( 1 )->isLeftToRight() );
}
/*
* bool isRightToLeft ()
*/
HB_FUNC( QT_QAPPLICATION_ISRIGHTTOLEFT )
{
hb_retl( hbqt_par_QApplication( 1 )->isRightToLeft() );
}
/*
* Qt::LayoutDirection keyboardInputDirection ()
*/
HB_FUNC( QT_QAPPLICATION_KEYBOARDINPUTDIRECTION )
{
hb_retni( ( Qt::LayoutDirection ) hbqt_par_QApplication( 1 )->keyboardInputDirection() );
}
/*
* int keyboardInputInterval ()
*/
HB_FUNC( QT_QAPPLICATION_KEYBOARDINPUTINTERVAL )
{
hb_retni( hbqt_par_QApplication( 1 )->keyboardInputInterval() );
}
/*
* QLocale keyboardInputLocale ()
*/
HB_FUNC( QT_QAPPLICATION_KEYBOARDINPUTLOCALE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QLocale( hbqt_par_QApplication( 1 )->keyboardInputLocale() ) ) );
}
/*
* Qt::KeyboardModifiers keyboardModifiers ()
*/
HB_FUNC( QT_QAPPLICATION_KEYBOARDMODIFIERS )
{
hb_retni( ( Qt::KeyboardModifiers ) hbqt_par_QApplication( 1 )->keyboardModifiers() );
}
/*
* Qt::LayoutDirection layoutDirection ()
*/
HB_FUNC( QT_QAPPLICATION_LAYOUTDIRECTION )
{
hb_retni( ( Qt::LayoutDirection ) hbqt_par_QApplication( 1 )->layoutDirection() );
}
/*
* Qt::MouseButtons mouseButtons ()
*/
HB_FUNC( QT_QAPPLICATION_MOUSEBUTTONS )
{
hb_retni( ( Qt::MouseButtons ) hbqt_par_QApplication( 1 )->mouseButtons() );
}
/*
* QCursor * overrideCursor ()
*/
HB_FUNC( QT_QAPPLICATION_OVERRIDECURSOR )
{
hb_retptr( ( QCursor* ) hbqt_par_QApplication( 1 )->overrideCursor() );
}
/*
* QPalette palette ()
*/
HB_FUNC( QT_QAPPLICATION_PALETTE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QPalette( hbqt_par_QApplication( 1 )->palette() ) ) );
}
/*
* QPalette palette ( const QWidget * widget )
*/
HB_FUNC( QT_QAPPLICATION_PALETTE_1 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QPalette( hbqt_par_QApplication( 1 )->palette( hbqt_par_QWidget( 2 ) ) ) ) );
}
/*
* QPalette palette ( const char * className )
*/
HB_FUNC( QT_QAPPLICATION_PALETTE_2 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QPalette( hbqt_par_QApplication( 1 )->palette( hbqt_par_char( 2 ) ) ) ) );
}
/*
* bool quitOnLastWindowClosed ()
*/
HB_FUNC( QT_QAPPLICATION_QUITONLASTWINDOWCLOSED )
{
hb_retl( hbqt_par_QApplication( 1 )->quitOnLastWindowClosed() );
}
/*
* void restoreOverrideCursor ()
*/
HB_FUNC( QT_QAPPLICATION_RESTOREOVERRIDECURSOR )
{
hbqt_par_QApplication( 1 )->restoreOverrideCursor();
}
/*
* void setActiveWindow ( QWidget * active )
*/
HB_FUNC( QT_QAPPLICATION_SETACTIVEWINDOW )
{
hbqt_par_QApplication( 1 )->setActiveWindow( hbqt_par_QWidget( 2 ) );
}
/*
* void setColorSpec ( int spec )
*/
HB_FUNC( QT_QAPPLICATION_SETCOLORSPEC )
{
hbqt_par_QApplication( 1 )->setColorSpec( hb_parni( 2 ) );
}
/*
* void setCursorFlashTime ( int )
*/
HB_FUNC( QT_QAPPLICATION_SETCURSORFLASHTIME )
{
hbqt_par_QApplication( 1 )->setCursorFlashTime( hb_parni( 2 ) );
}
/*
* void setDesktopSettingsAware ( bool on )
*/
HB_FUNC( QT_QAPPLICATION_SETDESKTOPSETTINGSAWARE )
{
hbqt_par_QApplication( 1 )->setDesktopSettingsAware( hb_parl( 2 ) );
}
/*
* void setDoubleClickInterval ( int )
*/
HB_FUNC( QT_QAPPLICATION_SETDOUBLECLICKINTERVAL )
{
hbqt_par_QApplication( 1 )->setDoubleClickInterval( hb_parni( 2 ) );
}
/*
* void setEffectEnabled ( Qt::UIEffect effect, bool enable = true )
*/
HB_FUNC( QT_QAPPLICATION_SETEFFECTENABLED )
{
hbqt_par_QApplication( 1 )->setEffectEnabled( ( Qt::UIEffect ) hb_parni( 2 ), hb_parl( 3 ) );
}
/*
* void setFont ( const QFont & font, const char * className = 0 )
*/
HB_FUNC( QT_QAPPLICATION_SETFONT )
{
hbqt_par_QApplication( 1 )->setFont( *hbqt_par_QFont( 2 ), hbqt_par_char( 3 ) );
}
/*
* void setGlobalStrut ( const QSize & )
*/
HB_FUNC( QT_QAPPLICATION_SETGLOBALSTRUT )
{
hbqt_par_QApplication( 1 )->setGlobalStrut( *hbqt_par_QSize( 2 ) );
}
/*
* void setGraphicsSystem ( const QString & system )
*/
HB_FUNC( QT_QAPPLICATION_SETGRAPHICSSYSTEM )
{
hbqt_par_QApplication( 1 )->setGraphicsSystem( hbqt_par_QString( 2 ) );
}
/*
* void setKeyboardInputInterval ( int )
*/
HB_FUNC( QT_QAPPLICATION_SETKEYBOARDINPUTINTERVAL )
{
hbqt_par_QApplication( 1 )->setKeyboardInputInterval( hb_parni( 2 ) );
}
/*
* void setLayoutDirection ( Qt::LayoutDirection direction )
*/
HB_FUNC( QT_QAPPLICATION_SETLAYOUTDIRECTION )
{
hbqt_par_QApplication( 1 )->setLayoutDirection( ( Qt::LayoutDirection ) hb_parni( 2 ) );
}
/*
* void setOverrideCursor ( const QCursor & cursor )
*/
HB_FUNC( QT_QAPPLICATION_SETOVERRIDECURSOR )
{
hbqt_par_QApplication( 1 )->setOverrideCursor( *hbqt_par_QCursor( 2 ) );
}
/*
* void setPalette ( const QPalette & palette, const char * className = 0 )
*/
HB_FUNC( QT_QAPPLICATION_SETPALETTE )
{
hbqt_par_QApplication( 1 )->setPalette( *hbqt_par_QPalette( 2 ), hbqt_par_char( 3 ) );
}
/*
* void setQuitOnLastWindowClosed ( bool quit )
*/
HB_FUNC( QT_QAPPLICATION_SETQUITONLASTWINDOWCLOSED )
{
hbqt_par_QApplication( 1 )->setQuitOnLastWindowClosed( hb_parl( 2 ) );
}
/*
* void setStartDragDistance ( int l )
*/
HB_FUNC( QT_QAPPLICATION_SETSTARTDRAGDISTANCE )
{
hbqt_par_QApplication( 1 )->setStartDragDistance( hb_parni( 2 ) );
}
/*
* void setStartDragTime ( int ms )
*/
HB_FUNC( QT_QAPPLICATION_SETSTARTDRAGTIME )
{
hbqt_par_QApplication( 1 )->setStartDragTime( hb_parni( 2 ) );
}
/*
* void setStyle ( QStyle * style )
*/
HB_FUNC( QT_QAPPLICATION_SETSTYLE )
{
hbqt_par_QApplication( 1 )->setStyle( hbqt_par_QStyle( 2 ) );
}
/*
* QStyle * setStyle ( const QString & style )
*/
HB_FUNC( QT_QAPPLICATION_SETSTYLE_1 )
{
hb_retptr( ( QStyle* ) hbqt_par_QApplication( 1 )->setStyle( hbqt_par_QString( 2 ) ) );
}
/*
* void setWheelScrollLines ( int )
*/
HB_FUNC( QT_QAPPLICATION_SETWHEELSCROLLLINES )
{
hbqt_par_QApplication( 1 )->setWheelScrollLines( hb_parni( 2 ) );
}
/*
* void setWindowIcon ( const QIcon & icon )
*/
HB_FUNC( QT_QAPPLICATION_SETWINDOWICON )
{
hbqt_par_QApplication( 1 )->setWindowIcon( QIcon( hbqt_par_QString( 2 ) ) );
}
/*
* int startDragDistance ()
*/
HB_FUNC( QT_QAPPLICATION_STARTDRAGDISTANCE )
{
hb_retni( hbqt_par_QApplication( 1 )->startDragDistance() );
}
/*
* int startDragTime ()
*/
HB_FUNC( QT_QAPPLICATION_STARTDRAGTIME )
{
hb_retni( hbqt_par_QApplication( 1 )->startDragTime() );
}
/*
* QStyle * style ()
*/
HB_FUNC( QT_QAPPLICATION_STYLE )
{
hb_retptr( ( QStyle* ) hbqt_par_QApplication( 1 )->style() );
}
/*
* void syncX ()
*/
HB_FUNC( QT_QAPPLICATION_SYNCX )
{
hbqt_par_QApplication( 1 )->syncX();
}
/*
* QWidget * topLevelAt ( const QPoint & point )
*/
HB_FUNC( QT_QAPPLICATION_TOPLEVELAT )
{
hb_retptr( ( QWidget* ) hbqt_par_QApplication( 1 )->topLevelAt( *hbqt_par_QPoint( 2 ) ) );
}
/*
* QWidget * topLevelAt ( int x, int y )
*/
HB_FUNC( QT_QAPPLICATION_TOPLEVELAT_1 )
{
hb_retptr( ( QWidget* ) hbqt_par_QApplication( 1 )->topLevelAt( hb_parni( 2 ), hb_parni( 3 ) ) );
}
/*
* QWidgetList topLevelWidgets ()
*/
HB_FUNC( QT_QAPPLICATION_TOPLEVELWIDGETS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QWidgetList( hbqt_par_QApplication( 1 )->topLevelWidgets() ) ) );
}
/*
* Type type ()
*/
HB_FUNC( QT_QAPPLICATION_TYPE )
{
hb_retni( ( QApplication::Type ) hbqt_par_QApplication( 1 )->type() );
}
/*
* int wheelScrollLines ()
*/
HB_FUNC( QT_QAPPLICATION_WHEELSCROLLLINES )
{
hb_retni( hbqt_par_QApplication( 1 )->wheelScrollLines() );
}
/*
* QWidget * widgetAt ( const QPoint & point )
*/
HB_FUNC( QT_QAPPLICATION_WIDGETAT )
{
hb_retptr( ( QWidget* ) hbqt_par_QApplication( 1 )->widgetAt( *hbqt_par_QPoint( 2 ) ) );
}
/*
* QWidget * widgetAt ( int x, int y )
*/
HB_FUNC( QT_QAPPLICATION_WIDGETAT_1 )
{
hb_retptr( ( QWidget* ) hbqt_par_QApplication( 1 )->widgetAt( hb_parni( 2 ), hb_parni( 3 ) ) );
}
/*
* QIcon windowIcon ()
*/
HB_FUNC( QT_QAPPLICATION_WINDOWICON )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QIcon( hbqt_par_QApplication( 1 )->windowIcon() ) ) );
}
/*
* void aboutQt ()
*/
HB_FUNC( QT_QAPPLICATION_ABOUTQT )
{
hbqt_par_QApplication( 1 )->aboutQt();
}
/*
* void closeAllWindows ()
*/
HB_FUNC( QT_QAPPLICATION_CLOSEALLWINDOWS )
{
hbqt_par_QApplication( 1 )->closeAllWindows();
}
/*
* void setStyleSheet ( const QString & sheet )
*/
HB_FUNC( QT_QAPPLICATION_SETSTYLESHEET )
{
hbqt_par_QApplication( 1 )->setStyleSheet( hbqt_par_QString( 2 ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,163 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QBitmap>
/*
* QBitmap ()
* QBitmap ( const QPixmap & pixmap )
* QBitmap ( int width, int height )
* QBitmap ( const QSize & size )
* QBitmap ( const QString & fileName, const char * format = 0 )
* ~QBitmap ()
*/
HB_FUNC( QT_QBITMAP )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
pObj = ( QBitmap* ) new QBitmap( *hbqt_par_QBitmap( 1 ) ) ;
}
else if( hb_pcount() == 1 && HB_ISCHAR( 1 ) )
{
pObj = ( QBitmap* ) new QBitmap( hbqt_par_QString( 1 ), ( const char * ) 0 ) ;
}
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISCHAR( 2 ) )
{
pObj = ( QBitmap* ) new QBitmap( hbqt_par_QString( 1 ), hb_parc( 2 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) )
{
pObj = ( QBitmap* ) new QBitmap( hb_parni( 1 ), hb_parni( 2 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
{
if( ( QString ) "QPixmap" == hbqt_par_QString( 1 ) )
{
pObj = ( QBitmap* ) new QBitmap( *hbqt_par_QPixmap( 2 ) ) ;
}
else if( ( QString ) "QSize" == hbqt_par_QString( 1 ) )
{
pObj = ( QBitmap* ) new QBitmap( *hbqt_par_QSize( 2 ) ) ;
}
else
{
pObj = ( QBitmap* ) new QBitmap() ;
}
}
else
{
pObj = ( QBitmap* ) new QBitmap() ;
}
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QBitmap" );
hb_retptrGC( p );
}
/*
* void clear ()
*/
HB_FUNC( QT_QBITMAP_CLEAR )
{
hbqt_par_QBitmap( 1 )->clear();
}
/*
* QBitmap transformed ( const QTransform & matrix ) const
*/
HB_FUNC( QT_QBITMAP_TRANSFORMED )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBitmap( hbqt_par_QBitmap( 1 )->transformed( *hbqt_par_QTransform( 2 ) ) ) ) );
}
/*
* QBitmap transformed ( const QMatrix & matrix ) const
*/
HB_FUNC( QT_QBITMAP_TRANSFORMED_1 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBitmap( hbqt_par_QBitmap( 1 )->transformed( *hbqt_par_QMatrix( 2 ) ) ) ) );
}
/*
* QBitmap fromImage ( const QImage & image, Qt::ImageConversionFlags flags = Qt::AutoColor )
*/
HB_FUNC( QT_QBITMAP_FROMIMAGE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBitmap( hbqt_par_QBitmap( 1 )->fromImage( *hbqt_par_QImage( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::ImageConversionFlags ) hb_parni( 3 ) : ( Qt::ImageConversionFlags ) Qt::AutoColor ) ) ) ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,257 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum Direction { LeftToRight, RightToLeft, TopToBottom, BottomToTop }
*/
#include <QtCore/QPointer>
#include <QtGui/QBoxLayout>
/*
* QBoxLayout ( Direction dir, QWidget * parent = 0 )
* ~QBoxLayout ()
*/
HB_FUNC( QT_QBOXLAYOUT )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QBoxLayout > pObj = NULL;
pObj = ( QBoxLayout* ) new QBoxLayout( ( QBoxLayout::Direction ) hb_parni( 1 ), hbqt_par_QWidget( 2 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* 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 )
*/
HB_FUNC( QT_QBOXLAYOUT_ADDSPACERITEM )
{
hbqt_par_QBoxLayout( 1 )->addSpacerItem( hbqt_par_QSpacerItem( 2 ) );
}
/*
* void addSpacing ( int size )
*/
HB_FUNC( QT_QBOXLAYOUT_ADDSPACING )
{
hbqt_par_QBoxLayout( 1 )->addSpacing( hb_parni( 2 ) );
}
/*
* void addStretch ( int stretch = 0 )
*/
HB_FUNC( QT_QBOXLAYOUT_ADDSTRETCH )
{
hbqt_par_QBoxLayout( 1 )->addStretch( hb_parni( 2 ) );
}
/*
* 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 )
*/
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
*/
HB_FUNC( QT_QBOXLAYOUT_DIRECTION )
{
hb_retni( ( QBoxLayout::Direction ) hbqt_par_QBoxLayout( 1 )->direction() );
}
/*
* 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 )
*/
HB_FUNC( QT_QBOXLAYOUT_INSERTSPACERITEM )
{
hbqt_par_QBoxLayout( 1 )->insertSpacerItem( hb_parni( 2 ), hbqt_par_QSpacerItem( 3 ) );
}
/*
* 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 )
*/
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 )
*/
HB_FUNC( QT_QBOXLAYOUT_INSERTWIDGET )
{
hbqt_par_QBoxLayout( 1 )->insertWidget( hb_parni( 2 ), hbqt_par_QWidget( 3 ), hb_parni( 4 ), ( Qt::Alignment ) hb_parni( 5 ) );
}
/*
* 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 )
*/
HB_FUNC( QT_QBOXLAYOUT_SETSPACING )
{
hbqt_par_QBoxLayout( 1 )->setSpacing( hb_parni( 2 ) );
}
/*
* 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 )
*/
HB_FUNC( QT_QBOXLAYOUT_SETSTRETCHFACTOR )
{
hb_retl( hbqt_par_QBoxLayout( 1 )->setStretchFactor( hbqt_par_QWidget( 2 ), hb_parni( 3 ) ) );
}
/*
* bool setStretchFactor ( QLayout * layout, int stretch )
*/
HB_FUNC( QT_QBOXLAYOUT_SETSTRETCHFACTOR_1 )
{
hb_retl( hbqt_par_QBoxLayout( 1 )->setStretchFactor( hbqt_par_QLayout( 2 ), hb_parni( 3 ) ) );
}
/*
* 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 /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,266 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QBrush>
/*
* QBrush ()
* QBrush ( Qt::BrushStyle style )
* QBrush ( const QColor & color, Qt::BrushStyle style = Qt::SolidPattern )
* QBrush ( Qt::GlobalColor color, Qt::BrushStyle style = Qt::SolidPattern )
* QBrush ( const QColor & color, const QPixmap & pixmap )
* QBrush ( Qt::GlobalColor color, const QPixmap & pixmap )
* QBrush ( const QPixmap & pixmap )
* QBrush ( const QImage & image )
* QBrush ( const QBrush & other )
* QBrush ( const QGradient & gradient )
* ~QBrush ()
*/
HB_FUNC( QT_QBRUSH )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
pObj = ( QBrush* ) new QBrush( *hbqt_par_QBrush( 1 ) ) ;
}
else if( hb_pcount() == 1 && HB_ISNUM( 1 ) )
{
pObj = ( QBrush* ) new QBrush( ( Qt::GlobalColor ) hb_parni( 1 ), Qt::SolidPattern ) ;
}
else if( hb_pcount() == 2 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) )
{
pObj = ( QBrush* ) new QBrush( ( Qt::GlobalColor ) hb_parni( 1 ), ( Qt::BrushStyle ) hb_parni( 2 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISNUM( 2 ) )
{
pObj = ( QBrush* ) new QBrush( *hbqt_par_QColor( 1 ), ( Qt::BrushStyle ) hb_parni( 2 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISPOINTER( 2 ) )
{
pObj = ( QBrush* ) new QBrush( *hbqt_par_QColor( 1 ), *hbqt_par_QPixmap( 2 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISNUM( 1 ) && HB_ISPOINTER( 2 ) )
{
pObj = ( QBrush* ) new QBrush( ( Qt::GlobalColor ) hb_parni( 1 ), *hbqt_par_QPixmap( 2 ) ) ;
}
else if( hb_pcount() >= 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
{
QString objName = hbqt_par_QString( 1 );
if( objName == ( QString ) "QPixmap" )
{
pObj = ( QBrush* ) new QBrush( *hbqt_par_QPixmap( 2 ) ) ;
}
else if( objName == ( QString ) "QImage" )
{
pObj = ( QBrush* ) new QBrush( *hbqt_par_QImage( 2 ) ) ;
}
else if( objName == ( QString ) "QGradient" )
{
pObj = ( QBrush* ) new QBrush( *hbqt_par_QGradient( 2 ) ) ;
}
else if( objName == ( QString ) "QColor" )
{
pObj = ( QBrush* ) new QBrush( *hbqt_par_QColor( 2 ), HB_ISNUM( 3 ) ? ( Qt::BrushStyle ) hb_parni( 3 ) : Qt::SolidPattern ) ;
}
else
{
pObj = ( QBrush* ) new QBrush() ;
}
}
else
{
pObj = ( QBrush* ) new QBrush() ;
}
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QBrush" );
hb_retptrGC( p );
}
/*
* const QColor & color () const
*/
HB_FUNC( QT_QBRUSH_COLOR )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QBrush( 1 )->color() ) ) );
}
/*
* bool isOpaque () const
*/
HB_FUNC( QT_QBRUSH_ISOPAQUE )
{
hb_retl( hbqt_par_QBrush( 1 )->isOpaque() );
}
/*
* const QMatrix & matrix () const
*/
HB_FUNC( QT_QBRUSH_MATRIX )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QMatrix( hbqt_par_QBrush( 1 )->matrix() ) ) );
}
/*
* void setColor ( const QColor & color )
*/
HB_FUNC( QT_QBRUSH_SETCOLOR )
{
hbqt_par_QBrush( 1 )->setColor( *hbqt_par_QColor( 2 ) );
}
/*
* void setColor ( Qt::GlobalColor color )
*/
HB_FUNC( QT_QBRUSH_SETCOLOR_1 )
{
hbqt_par_QBrush( 1 )->setColor( ( Qt::GlobalColor ) hb_parni( 2 ) );
}
/*
* void setMatrix ( const QMatrix & matrix )
*/
HB_FUNC( QT_QBRUSH_SETMATRIX )
{
hbqt_par_QBrush( 1 )->setMatrix( *hbqt_par_QMatrix( 2 ) );
}
/*
* void setStyle ( Qt::BrushStyle style )
*/
HB_FUNC( QT_QBRUSH_SETSTYLE )
{
hbqt_par_QBrush( 1 )->setStyle( ( Qt::BrushStyle ) hb_parni( 2 ) );
}
/*
* void setTexture ( const QPixmap & pixmap )
*/
HB_FUNC( QT_QBRUSH_SETTEXTURE )
{
hbqt_par_QBrush( 1 )->setTexture( *hbqt_par_QPixmap( 2 ) );
}
/*
* void setTextureImage ( const QImage & image )
*/
HB_FUNC( QT_QBRUSH_SETTEXTUREIMAGE )
{
hbqt_par_QBrush( 1 )->setTextureImage( *hbqt_par_QImage( 2 ) );
}
/*
* void setTransform ( const QTransform & matrix )
*/
HB_FUNC( QT_QBRUSH_SETTRANSFORM )
{
hbqt_par_QBrush( 1 )->setTransform( *hbqt_par_QTransform( 2 ) );
}
/*
* Qt::BrushStyle style () const
*/
HB_FUNC( QT_QBRUSH_STYLE )
{
hb_retni( ( Qt::BrushStyle ) hbqt_par_QBrush( 1 )->style() );
}
/*
* QPixmap texture () const
*/
HB_FUNC( QT_QBRUSH_TEXTURE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QPixmap( hbqt_par_QBrush( 1 )->texture() ) ) );
}
/*
* QImage textureImage () const
*/
HB_FUNC( QT_QBRUSH_TEXTUREIMAGE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QBrush( 1 )->textureImage() ) ) );
}
/*
* QTransform transform () const
*/
HB_FUNC( QT_QBRUSH_TRANSFORM )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QTransform( hbqt_par_QBrush( 1 )->transform() ) ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,189 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* Constructed[ 10/11 [ 90.91% ] ]
*
* *** Unconvered Prototypes ***
* -----------------------------
*
* QList<QAbstractButton *> buttons () const
*/
#include <QtCore/QPointer>
#include <QtGui/QButtonGroup>
/*
* QButtonGroup ( QObject * parent = 0 )
* ~QButtonGroup ()
*/
HB_FUNC( QT_QBUTTONGROUP )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QButtonGroup > pObj = NULL;
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
pObj = ( QButtonGroup* ) new QButtonGroup( hbqt_par_QObject( 1 ) ) ;
}
else
{
pObj = ( QButtonGroup* ) new QButtonGroup() ;
}
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* void addButton ( QAbstractButton * button )
*/
HB_FUNC( QT_QBUTTONGROUP_ADDBUTTON )
{
hbqt_par_QButtonGroup( 1 )->addButton( hbqt_par_QAbstractButton( 2 ) );
}
/*
* void addButton ( QAbstractButton * button, int id )
*/
HB_FUNC( QT_QBUTTONGROUP_ADDBUTTON_1 )
{
hbqt_par_QButtonGroup( 1 )->addButton( hbqt_par_QAbstractButton( 2 ), hb_parni( 3 ) );
}
/*
* QAbstractButton * button ( int id ) const
*/
HB_FUNC( QT_QBUTTONGROUP_BUTTON )
{
hb_retptr( ( QAbstractButton* ) hbqt_par_QButtonGroup( 1 )->button( hb_parni( 2 ) ) );
}
/*
* QAbstractButton * checkedButton () const
*/
HB_FUNC( QT_QBUTTONGROUP_CHECKEDBUTTON )
{
hb_retptr( ( QAbstractButton* ) hbqt_par_QButtonGroup( 1 )->checkedButton() );
}
/*
* int checkedId () const
*/
HB_FUNC( QT_QBUTTONGROUP_CHECKEDID )
{
hb_retni( hbqt_par_QButtonGroup( 1 )->checkedId() );
}
/*
* bool exclusive () const
*/
HB_FUNC( QT_QBUTTONGROUP_EXCLUSIVE )
{
hb_retl( hbqt_par_QButtonGroup( 1 )->exclusive() );
}
/*
* int id ( QAbstractButton * button ) const
*/
HB_FUNC( QT_QBUTTONGROUP_ID )
{
hb_retni( hbqt_par_QButtonGroup( 1 )->id( hbqt_par_QAbstractButton( 2 ) ) );
}
/*
* void removeButton ( QAbstractButton * button )
*/
HB_FUNC( QT_QBUTTONGROUP_REMOVEBUTTON )
{
hbqt_par_QButtonGroup( 1 )->removeButton( hbqt_par_QAbstractButton( 2 ) );
}
/*
* void setExclusive ( bool )
*/
HB_FUNC( QT_QBUTTONGROUP_SETEXCLUSIVE )
{
hbqt_par_QButtonGroup( 1 )->setExclusive( hb_parl( 2 ) );
}
/*
* void setId ( QAbstractButton * button, int id )
*/
HB_FUNC( QT_QBUTTONGROUP_SETID )
{
hbqt_par_QButtonGroup( 1 )->setId( hbqt_par_QAbstractButton( 2 ), hb_parni( 3 ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,412 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum HorizontalHeaderFormat { SingleLetterDayNames, ShortDayNames, LongDayNames, NoHorizontalHeader }
* enum SelectionMode { NoSelection, SingleSelection }
* enum VerticalHeaderFormat { ISOWeekNumbers, NoVerticalHeader }
*/
/*
* Constructed[ 38/39 [ 97.44% ] ]
*
* *** Unconvered Prototypes ***
* -----------------------------
*
* QMap<QDate, QTextCharFormat> dateTextFormat () const
*/
#include <QtCore/QPointer>
#include <QtGui/QCalendarWidget>
#include <QtGui/QTextCharFormat>
/*
* QCalendarWidget ( QWidget * parent = 0 )
* ~QCalendarWidget ()
*/
HB_FUNC( QT_QCALENDARWIDGET )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QCalendarWidget > pObj = NULL;
pObj = ( QCalendarWidget* ) new QCalendarWidget( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* int dateEditAcceptDelay () const
*/
HB_FUNC( QT_QCALENDARWIDGET_DATEEDITACCEPTDELAY )
{
hb_retni( hbqt_par_QCalendarWidget( 1 )->dateEditAcceptDelay() );
}
/*
* QTextCharFormat dateTextFormat ( const QDate & date ) const
*/
HB_FUNC( QT_QCALENDARWIDGET_DATETEXTFORMAT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QTextCharFormat( hbqt_par_QCalendarWidget( 1 )->dateTextFormat( *hbqt_par_QDate( 2 ) ) ) ) );
}
/*
* Qt::DayOfWeek firstDayOfWeek () const
*/
HB_FUNC( QT_QCALENDARWIDGET_FIRSTDAYOFWEEK )
{
hb_retni( ( Qt::DayOfWeek ) hbqt_par_QCalendarWidget( 1 )->firstDayOfWeek() );
}
/*
* QTextCharFormat headerTextFormat () const
*/
HB_FUNC( QT_QCALENDARWIDGET_HEADERTEXTFORMAT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QTextCharFormat( hbqt_par_QCalendarWidget( 1 )->headerTextFormat() ) ) );
}
/*
* HorizontalHeaderFormat horizontalHeaderFormat () const
*/
HB_FUNC( QT_QCALENDARWIDGET_HORIZONTALHEADERFORMAT )
{
hb_retni( ( QCalendarWidget::HorizontalHeaderFormat ) hbqt_par_QCalendarWidget( 1 )->horizontalHeaderFormat() );
}
/*
* bool isDateEditEnabled () const
*/
HB_FUNC( QT_QCALENDARWIDGET_ISDATEEDITENABLED )
{
hb_retl( hbqt_par_QCalendarWidget( 1 )->isDateEditEnabled() );
}
/*
* bool isGridVisible () const
*/
HB_FUNC( QT_QCALENDARWIDGET_ISGRIDVISIBLE )
{
hb_retl( hbqt_par_QCalendarWidget( 1 )->isGridVisible() );
}
/*
* bool isNavigationBarVisible () const
*/
HB_FUNC( QT_QCALENDARWIDGET_ISNAVIGATIONBARVISIBLE )
{
hb_retl( hbqt_par_QCalendarWidget( 1 )->isNavigationBarVisible() );
}
/*
* QDate maximumDate () const
*/
HB_FUNC( QT_QCALENDARWIDGET_MAXIMUMDATE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDate( hbqt_par_QCalendarWidget( 1 )->maximumDate() ) ) );
}
/*
* QDate minimumDate () const
*/
HB_FUNC( QT_QCALENDARWIDGET_MINIMUMDATE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDate( hbqt_par_QCalendarWidget( 1 )->minimumDate() ) ) );
}
/*
* int monthShown () const
*/
HB_FUNC( QT_QCALENDARWIDGET_MONTHSHOWN )
{
hb_retni( hbqt_par_QCalendarWidget( 1 )->monthShown() );
}
/*
* QDate selectedDate () const
*/
HB_FUNC( QT_QCALENDARWIDGET_SELECTEDDATE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDate( hbqt_par_QCalendarWidget( 1 )->selectedDate() ) ) );
}
/*
* SelectionMode selectionMode () const
*/
HB_FUNC( QT_QCALENDARWIDGET_SELECTIONMODE )
{
hb_retni( ( QCalendarWidget::SelectionMode ) hbqt_par_QCalendarWidget( 1 )->selectionMode() );
}
/*
* void setDateEditAcceptDelay ( int delay )
*/
HB_FUNC( QT_QCALENDARWIDGET_SETDATEEDITACCEPTDELAY )
{
hbqt_par_QCalendarWidget( 1 )->setDateEditAcceptDelay( hb_parni( 2 ) );
}
/*
* void setDateEditEnabled ( bool enable )
*/
HB_FUNC( QT_QCALENDARWIDGET_SETDATEEDITENABLED )
{
hbqt_par_QCalendarWidget( 1 )->setDateEditEnabled( hb_parl( 2 ) );
}
/*
* void setDateTextFormat ( const QDate & date, const QTextCharFormat & format )
*/
HB_FUNC( QT_QCALENDARWIDGET_SETDATETEXTFORMAT )
{
hbqt_par_QCalendarWidget( 1 )->setDateTextFormat( *hbqt_par_QDate( 2 ), *hbqt_par_QTextCharFormat( 3 ) );
}
/*
* void setFirstDayOfWeek ( Qt::DayOfWeek dayOfWeek )
*/
HB_FUNC( QT_QCALENDARWIDGET_SETFIRSTDAYOFWEEK )
{
hbqt_par_QCalendarWidget( 1 )->setFirstDayOfWeek( ( Qt::DayOfWeek ) hb_parni( 2 ) );
}
/*
* void setHeaderTextFormat ( const QTextCharFormat & format )
*/
HB_FUNC( QT_QCALENDARWIDGET_SETHEADERTEXTFORMAT )
{
hbqt_par_QCalendarWidget( 1 )->setHeaderTextFormat( *hbqt_par_QTextCharFormat( 2 ) );
}
/*
* void setHorizontalHeaderFormat ( HorizontalHeaderFormat format )
*/
HB_FUNC( QT_QCALENDARWIDGET_SETHORIZONTALHEADERFORMAT )
{
hbqt_par_QCalendarWidget( 1 )->setHorizontalHeaderFormat( ( QCalendarWidget::HorizontalHeaderFormat ) hb_parni( 2 ) );
}
/*
* void setMaximumDate ( const QDate & date )
*/
HB_FUNC( QT_QCALENDARWIDGET_SETMAXIMUMDATE )
{
hbqt_par_QCalendarWidget( 1 )->setMaximumDate( *hbqt_par_QDate( 2 ) );
}
/*
* void setMinimumDate ( const QDate & date )
*/
HB_FUNC( QT_QCALENDARWIDGET_SETMINIMUMDATE )
{
hbqt_par_QCalendarWidget( 1 )->setMinimumDate( *hbqt_par_QDate( 2 ) );
}
/*
* void setSelectionMode ( SelectionMode mode )
*/
HB_FUNC( QT_QCALENDARWIDGET_SETSELECTIONMODE )
{
hbqt_par_QCalendarWidget( 1 )->setSelectionMode( ( QCalendarWidget::SelectionMode ) hb_parni( 2 ) );
}
/*
* void setVerticalHeaderFormat ( VerticalHeaderFormat format )
*/
HB_FUNC( QT_QCALENDARWIDGET_SETVERTICALHEADERFORMAT )
{
hbqt_par_QCalendarWidget( 1 )->setVerticalHeaderFormat( ( QCalendarWidget::VerticalHeaderFormat ) hb_parni( 2 ) );
}
/*
* void setWeekdayTextFormat ( Qt::DayOfWeek dayOfWeek, const QTextCharFormat & format )
*/
HB_FUNC( QT_QCALENDARWIDGET_SETWEEKDAYTEXTFORMAT )
{
hbqt_par_QCalendarWidget( 1 )->setWeekdayTextFormat( ( Qt::DayOfWeek ) hb_parni( 2 ), *hbqt_par_QTextCharFormat( 3 ) );
}
/*
* VerticalHeaderFormat verticalHeaderFormat () const
*/
HB_FUNC( QT_QCALENDARWIDGET_VERTICALHEADERFORMAT )
{
hb_retni( ( QCalendarWidget::VerticalHeaderFormat ) hbqt_par_QCalendarWidget( 1 )->verticalHeaderFormat() );
}
/*
* QTextCharFormat weekdayTextFormat ( Qt::DayOfWeek dayOfWeek ) const
*/
HB_FUNC( QT_QCALENDARWIDGET_WEEKDAYTEXTFORMAT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QTextCharFormat( hbqt_par_QCalendarWidget( 1 )->weekdayTextFormat( ( Qt::DayOfWeek ) hb_parni( 2 ) ) ) ) );
}
/*
* int yearShown () const
*/
HB_FUNC( QT_QCALENDARWIDGET_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 setDateRange ( const QDate & min, const QDate & max )
*/
HB_FUNC( QT_QCALENDARWIDGET_SETDATERANGE )
{
hbqt_par_QCalendarWidget( 1 )->setDateRange( *hbqt_par_QDate( 2 ), *hbqt_par_QDate( 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 setSelectedDate ( const QDate & date )
*/
HB_FUNC( QT_QCALENDARWIDGET_SETSELECTEDDATE )
{
hbqt_par_QCalendarWidget( 1 )->setSelectedDate( *hbqt_par_QDate( 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 /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,132 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QCheckBox>
/*
* QCheckBox ( QWidget * parent = 0 )
* QCheckBox ( const QString & text, QWidget * parent = 0 )
*/
HB_FUNC( QT_QCHECKBOX )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QCheckBox > pObj = NULL;
if( hb_pcount() >= 1 && HB_ISCHAR( 1 ) )
{
pObj = ( QCheckBox* ) new QCheckBox( hbqt_par_QString( 1 ), hbqt_par_QWidget( 2 ) ) ;
}
else
{
pObj = ( QCheckBox* ) new QCheckBox( hbqt_par_QWidget( 1 ) ) ;
}
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* Qt::CheckState checkState () const
*/
HB_FUNC( QT_QCHECKBOX_CHECKSTATE )
{
hb_retni( ( Qt::CheckState ) hbqt_par_QCheckBox( 1 )->checkState() );
}
/*
* bool isTristate () const
*/
HB_FUNC( QT_QCHECKBOX_ISTRISTATE )
{
hb_retl( hbqt_par_QCheckBox( 1 )->isTristate() );
}
/*
* 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 )
*/
HB_FUNC( QT_QCHECKBOX_SETTRISTATE )
{
hbqt_par_QCheckBox( 1 )->setTristate( hb_parl( 2 ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,210 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum Mode { Clipboard, Selection, FindBuffer }
*/
#include <QtCore/QPointer>
#include <qpalette.h>
#include <QtGui/QClipboard>
#include <QtGui/QApplication>
/*
*
*
*/
HB_FUNC( QT_QCLIPBOARD )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QClipboard > pObj = NULL;
pObj = ( QClipboard* ) QApplication::clipboard() ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* void clear ( Mode mode = Clipboard )
*/
HB_FUNC( QT_QCLIPBOARD_CLEAR )
{
hbqt_par_QClipboard( 1 )->clear( ( HB_ISNUM( 2 ) ? ( QClipboard::Mode ) hb_parni( 2 ) : ( QClipboard::Mode ) QClipboard::Clipboard ) );
}
/*
* QImage image ( Mode mode = Clipboard ) const
*/
HB_FUNC( QT_QCLIPBOARD_IMAGE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QClipboard( 1 )->image( ( HB_ISNUM( 2 ) ? ( QClipboard::Mode ) hb_parni( 2 ) : ( QClipboard::Mode ) QClipboard::Clipboard ) ) ) ) );
}
/*
* const QMimeData * mimeData ( Mode mode = Clipboard ) const
*/
HB_FUNC( QT_QCLIPBOARD_MIMEDATA )
{
hb_retptr( ( QMimeData* ) hbqt_par_QClipboard( 1 )->mimeData( ( HB_ISNUM( 2 ) ? ( QClipboard::Mode ) hb_parni( 2 ) : ( QClipboard::Mode ) QClipboard::Clipboard ) ) );
}
/*
* bool ownsClipboard () const
*/
HB_FUNC( QT_QCLIPBOARD_OWNSCLIPBOARD )
{
hb_retl( hbqt_par_QClipboard( 1 )->ownsClipboard() );
}
/*
* bool ownsFindBuffer () const
*/
HB_FUNC( QT_QCLIPBOARD_OWNSFINDBUFFER )
{
hb_retl( hbqt_par_QClipboard( 1 )->ownsFindBuffer() );
}
/*
* bool ownsSelection () const
*/
HB_FUNC( QT_QCLIPBOARD_OWNSSELECTION )
{
hb_retl( hbqt_par_QClipboard( 1 )->ownsSelection() );
}
/*
* QPixmap pixmap ( Mode mode = Clipboard ) const
*/
HB_FUNC( QT_QCLIPBOARD_PIXMAP )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QPixmap( hbqt_par_QClipboard( 1 )->pixmap( ( HB_ISNUM( 2 ) ? ( QClipboard::Mode ) hb_parni( 2 ) : ( QClipboard::Mode ) QClipboard::Clipboard ) ) ) ) );
}
/*
* void setImage ( const QImage & image, Mode mode = Clipboard )
*/
HB_FUNC( QT_QCLIPBOARD_SETIMAGE )
{
hbqt_par_QClipboard( 1 )->setImage( *hbqt_par_QImage( 2 ), ( HB_ISNUM( 3 ) ? ( QClipboard::Mode ) hb_parni( 3 ) : ( QClipboard::Mode ) QClipboard::Clipboard ) );
}
/*
* void setMimeData ( QMimeData * src, Mode mode = Clipboard )
*/
HB_FUNC( QT_QCLIPBOARD_SETMIMEDATA )
{
hbqt_par_QClipboard( 1 )->setMimeData( hbqt_par_QMimeData( 2 ), ( HB_ISNUM( 3 ) ? ( QClipboard::Mode ) hb_parni( 3 ) : ( QClipboard::Mode ) QClipboard::Clipboard ) );
}
/*
* void setPixmap ( const QPixmap & pixmap, Mode mode = Clipboard )
*/
HB_FUNC( QT_QCLIPBOARD_SETPIXMAP )
{
hbqt_par_QClipboard( 1 )->setPixmap( *hbqt_par_QPixmap( 2 ), ( HB_ISNUM( 3 ) ? ( QClipboard::Mode ) hb_parni( 3 ) : ( QClipboard::Mode ) QClipboard::Clipboard ) );
}
/*
* void setText ( const QString & text, Mode mode = Clipboard )
*/
HB_FUNC( QT_QCLIPBOARD_SETTEXT )
{
hbqt_par_QClipboard( 1 )->setText( hbqt_par_QString( 2 ), ( HB_ISNUM( 3 ) ? ( QClipboard::Mode ) hb_parni( 3 ) : ( QClipboard::Mode ) QClipboard::Clipboard ) );
}
/*
* bool supportsFindBuffer () const
*/
HB_FUNC( QT_QCLIPBOARD_SUPPORTSFINDBUFFER )
{
hb_retl( hbqt_par_QClipboard( 1 )->supportsFindBuffer() );
}
/*
* bool supportsSelection () const
*/
HB_FUNC( QT_QCLIPBOARD_SUPPORTSSELECTION )
{
hb_retl( hbqt_par_QClipboard( 1 )->supportsSelection() );
}
/*
* QString text ( Mode mode = Clipboard ) const
*/
HB_FUNC( QT_QCLIPBOARD_TEXT )
{
hb_retc( hbqt_par_QClipboard( 1 )->text( ( HB_ISNUM( 2 ) ? ( QClipboard::Mode ) hb_parni( 2 ) : ( QClipboard::Mode ) QClipboard::Clipboard ) ).toAscii().data() );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,720 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum Spec { Rgb, Hsv, Cmyk, Invalid }
*/
#include <QtCore/QPointer>
#include <QtGui/QColor>
/*
QColor ()
QColor ( int r, int g, int b, int a = 255 )
QColor ( QRgb color )
QColor ( Qt::GlobalColor color )
QColor ( const QString & name )
QColor ( const char * name )
QColor ( const QColor & color )
~QColor ()
*/
HB_FUNC( QT_QCOLOR )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
if( hb_pcount() >= 1 )
{
if( hb_pcount() == 1 && HB_ISNUM( 1 ) && hb_parni( 1 ) < 25 )
{
pObj = ( QColor* ) new QColor( ( Qt::GlobalColor ) hb_parni( 1 ) ) ;
}
else if( hb_pcount() == 1 && HB_ISNUM( 1 ) )
{
pObj = ( QColor* ) new QColor( ( QRgb ) hb_parni( 1 ) ) ;
}
else if( hb_pcount() == 1 && HB_ISCHAR( 1 ) )
{
pObj = ( QColor* ) new QColor( hbqt_par_QString( 1 ) ) ;
}
else if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
pObj = ( QColor* ) new QColor( *hbqt_par_QColor( 1 ) ) ;
}
else if( hb_pcount() == 3 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) )
{
pObj = ( QColor* ) new QColor( hb_parni( 1 ), hb_parni( 2 ), hb_parni( 3 ), ( int ) 255 ) ;
}
else if( hb_pcount() == 4 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) && HB_ISNUM( 4 ) )
{
pObj = ( QColor* ) new QColor( hb_parni( 1 ), hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ) ) ;
}
else
{
pObj = ( QColor* ) new QColor() ;
}
}
else
{
pObj = ( QColor* ) new QColor() ;
}
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QColor" );
hb_retptrGC( p );
}
/*
* 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() );
}
/*
* QColor convertTo ( Spec colorSpec ) const
*/
HB_FUNC( QT_QCOLOR_CONVERTTO )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->convertTo( ( QColor::Spec ) hb_parni( 2 ) ) ) ) );
}
/*
* 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() );
}
/*
* QColor darker ( int factor = 200 ) const
*/
HB_FUNC( QT_QCOLOR_DARKER )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->darker( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : 200 ) ) ) ) );
}
/*
* void getCmyk ( int * c, int * m, int * y, int * k, int * a = 0 )
*/
HB_FUNC( QT_QCOLOR_GETCMYK )
{
int iC = 0;
int iM = 0;
int iY = 0;
int iK = 0;
int iA = 0;
hbqt_par_QColor( 1 )->getCmyk( &iC, &iM, &iY, &iK, &iA );
hb_storni( iC, 2 );
hb_storni( iM, 3 );
hb_storni( iY, 4 );
hb_storni( iK, 5 );
hb_storni( iA, 6 );
}
/*
* void getCmykF ( qreal * c, qreal * m, qreal * y, qreal * k, qreal * a = 0 )
*/
HB_FUNC( QT_QCOLOR_GETCMYKF )
{
qreal qrC = 0;
qreal qrM = 0;
qreal qrY = 0;
qreal qrK = 0;
qreal qrA = 0;
hbqt_par_QColor( 1 )->getCmykF( &qrC, &qrM, &qrY, &qrK, &qrA );
hb_stornd( qrC, 2 );
hb_stornd( qrM, 3 );
hb_stornd( qrY, 4 );
hb_stornd( qrK, 5 );
hb_stornd( qrA, 6 );
}
/*
* void getHsv ( int * h, int * s, int * v, int * a = 0 ) const
*/
HB_FUNC( QT_QCOLOR_GETHSV )
{
int iH = 0;
int iS = 0;
int iV = 0;
int iA = 0;
hbqt_par_QColor( 1 )->getHsv( &iH, &iS, &iV, &iA );
hb_storni( iH, 2 );
hb_storni( iS, 3 );
hb_storni( iV, 4 );
hb_storni( iA, 5 );
}
/*
* void getHsvF ( qreal * h, qreal * s, qreal * v, qreal * a = 0 ) const
*/
HB_FUNC( QT_QCOLOR_GETHSVF )
{
qreal qrH = 0;
qreal qrS = 0;
qreal qrV = 0;
qreal qrA = 0;
hbqt_par_QColor( 1 )->getHsvF( &qrH, &qrS, &qrV, &qrA );
hb_stornd( qrH, 2 );
hb_stornd( qrS, 3 );
hb_stornd( qrV, 4 );
hb_stornd( qrA, 5 );
}
/*
* void getRgb ( int * r, int * g, int * b, int * a = 0 ) const
*/
HB_FUNC( QT_QCOLOR_GETRGB )
{
int iR = 0;
int iG = 0;
int iB = 0;
int iA = 0;
hbqt_par_QColor( 1 )->getRgb( &iR, &iG, &iB, &iA );
hb_storni( iR, 2 );
hb_storni( iG, 3 );
hb_storni( iB, 4 );
hb_storni( iA, 5 );
}
/*
* void getRgbF ( qreal * r, qreal * g, qreal * b, qreal * a = 0 ) const
*/
HB_FUNC( QT_QCOLOR_GETRGBF )
{
qreal qrR = 0;
qreal qrG = 0;
qreal qrB = 0;
qreal qrA = 0;
hbqt_par_QColor( 1 )->getRgbF( &qrR, &qrG, &qrB, &qrA );
hb_stornd( qrR, 2 );
hb_stornd( qrG, 3 );
hb_stornd( qrB, 4 );
hb_stornd( qrA, 5 );
}
/*
* 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() );
}
/*
* QColor lighter ( int factor = 150 ) const
*/
HB_FUNC( QT_QCOLOR_LIGHTER )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->lighter( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : 150 ) ) ) ) );
}
/*
* 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().toAscii().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() );
}
/*
* QRgb rgb () const
*/
HB_FUNC( QT_QCOLOR_RGB )
{
hb_retnl( hbqt_par_QColor( 1 )->rgb() );
}
/*
* QRgb rgba () const
*/
HB_FUNC( QT_QCOLOR_RGBA )
{
hb_retnl( hbqt_par_QColor( 1 )->rgba() );
}
/*
* 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_ISNUM( 6 ) ? hb_parni( 6 ) : 255 ) );
}
/*
* 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_ISNUM( 5 ) ? hb_parni( 5 ) : 255 ) );
}
/*
* 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 ( QRgb rgb )
*/
HB_FUNC( QT_QCOLOR_SETRGB )
{
hbqt_par_QColor( 1 )->setRgb( hb_parnl( 2 ) );
}
/*
* void setRgb ( int r, int g, int b, int a = 255 )
*/
HB_FUNC( QT_QCOLOR_SETRGB_1 )
{
hbqt_par_QColor( 1 )->setRgb( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), ( HB_ISNUM( 5 ) ? hb_parni( 5 ) : 255 ) );
}
/*
* void setRgba ( QRgb rgba )
*/
HB_FUNC( QT_QCOLOR_SETRGBA )
{
hbqt_par_QColor( 1 )->setRgba( hb_parnl( 2 ) );
}
/*
* 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( ( QColor::Spec ) hbqt_par_QColor( 1 )->spec() );
}
/*
* QColor toCmyk () const
*/
HB_FUNC( QT_QCOLOR_TOCMYK )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->toCmyk() ) ) );
}
/*
* QColor toHsv () const
*/
HB_FUNC( QT_QCOLOR_TOHSV )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->toHsv() ) ) );
}
/*
* QColor toRgb () const
*/
HB_FUNC( QT_QCOLOR_TORGB )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->toRgb() ) ) );
}
/*
* 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() );
}
/*
* QStringList colorNames ()
*/
HB_FUNC( QT_QCOLOR_COLORNAMES )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QColor( 1 )->colorNames() ) ) );
}
/*
* QColor fromCmyk ( int c, int m, int y, int k, int a = 255 )
*/
HB_FUNC( QT_QCOLOR_FROMCMYK )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->fromCmyk( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), ( HB_ISNUM( 6 ) ? hb_parni( 6 ) : 255 ) ) ) ) );
}
/*
* QColor fromCmykF ( qreal c, qreal m, qreal y, qreal k, qreal a = 1.0 )
*/
HB_FUNC( QT_QCOLOR_FROMCMYKF )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->fromCmykF( hb_parnd( 2 ), hb_parnd( 3 ), hb_parnd( 4 ), hb_parnd( 5 ), hb_parnd( 6 ) ) ) ) );
}
/*
* QColor fromHsv ( int h, int s, int v, int a = 255 )
*/
HB_FUNC( QT_QCOLOR_FROMHSV )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->fromHsv( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), ( HB_ISNUM( 5 ) ? hb_parni( 5 ) : 255 ) ) ) ) );
}
/*
* QColor fromHsvF ( qreal h, qreal s, qreal v, qreal a = 1.0 )
*/
HB_FUNC( QT_QCOLOR_FROMHSVF )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->fromHsvF( hb_parnd( 2 ), hb_parnd( 3 ), hb_parnd( 4 ), hb_parnd( 5 ) ) ) ) );
}
/*
* QColor fromRgb ( QRgb rgb )
*/
HB_FUNC( QT_QCOLOR_FROMRGB )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->fromRgb( hb_parnl( 2 ) ) ) ) );
}
/*
* QColor fromRgb ( int r, int g, int b, int a = 255 )
*/
HB_FUNC( QT_QCOLOR_FROMRGB_1 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->fromRgb( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), ( HB_ISNUM( 5 ) ? hb_parni( 5 ) : 255 ) ) ) ) );
}
/*
* QColor fromRgbF ( qreal r, qreal g, qreal b, qreal a = 1.0 )
*/
HB_FUNC( QT_QCOLOR_FROMRGBF )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->fromRgbF( hb_parnd( 2 ), hb_parnd( 3 ), hb_parnd( 4 ), hb_parnd( 5 ) ) ) ) );
}
/*
* QColor fromRgba ( QRgb rgba )
*/
HB_FUNC( QT_QCOLOR_FROMRGBA )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->fromRgba( hb_parnl( 2 ) ) ) ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,225 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum ColorDialogOption { ShowAlphaChannel, NoButtons, DontUseNativeDialog }
* flags ColorDialogOptions
*/
#include <QtCore/QPointer>
#include <QtGui/QColorDialog>
/*
* QColorDialog ( QWidget * parent = 0 )
* QColorDialog ( const QColor & initial, QWidget * parent = 0 )
* ~QColorDialog ()
*/
HB_FUNC( QT_QCOLORDIALOG )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QColorDialog > pObj = NULL;
if( hb_pcount() >= 1 && HB_ISNUM( 1 ) )
{
pObj = ( QColorDialog* ) new QColorDialog( hb_parni( 1 ), hbqt_par_QWidget( 2 ) ) ;
}
else
{
pObj = ( QColorDialog* ) new QColorDialog( hbqt_par_QWidget( 1 ) ) ;
}
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* QColor currentColor () const
*/
HB_FUNC( QT_QCOLORDIALOG_CURRENTCOLOR )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColorDialog( 1 )->currentColor() ) ) );
}
/*
* void open ()
*/
HB_FUNC( QT_QCOLORDIALOG_OPEN )
{
hbqt_par_QColorDialog( 1 )->open();
}
/*
* ColorDialogOptions options () const
*/
HB_FUNC( QT_QCOLORDIALOG_OPTIONS )
{
hb_retni( ( QColorDialog::ColorDialogOptions ) hbqt_par_QColorDialog( 1 )->options() );
}
/*
* QColor selectedColor () const
*/
HB_FUNC( QT_QCOLORDIALOG_SELECTEDCOLOR )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColorDialog( 1 )->selectedColor() ) ) );
}
/*
* void setCurrentColor ( const QColor & color )
*/
HB_FUNC( QT_QCOLORDIALOG_SETCURRENTCOLOR )
{
hbqt_par_QColorDialog( 1 )->setCurrentColor( *hbqt_par_QColor( 2 ) );
}
/*
* 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 )
*/
HB_FUNC( QT_QCOLORDIALOG_SETOPTIONS )
{
hbqt_par_QColorDialog( 1 )->setOptions( ( QColorDialog::ColorDialogOptions ) hb_parni( 2 ) );
}
/*
* 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 ) ) );
}
/*
* QRgb customColor ( int index )
*/
HB_FUNC( QT_QCOLORDIALOG_CUSTOMCOLOR )
{
hb_retnl( hbqt_par_QColorDialog( 1 )->customColor( hb_parni( 2 ) ) );
}
/*
* int customCount ()
*/
HB_FUNC( QT_QCOLORDIALOG_CUSTOMCOUNT )
{
hb_retni( hbqt_par_QColorDialog( 1 )->customCount() );
}
/*
* QColor getColor ( const QColor & initial, QWidget * parent, const QString & title, ColorDialogOptions options = 0 )
*/
HB_FUNC( QT_QCOLORDIALOG_GETCOLOR )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColorDialog( 1 )->getColor( *hbqt_par_QColor( 2 ), hbqt_par_QWidget( 3 ), hbqt_par_QString( 4 ), ( QColorDialog::ColorDialogOptions ) hb_parni( 5 ) ) ) ) );
}
/*
* QColor getColor ( const QColor & initial = Qt::white, QWidget * parent = 0 )
*/
HB_FUNC( QT_QCOLORDIALOG_GETCOLOR_1 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColorDialog( 1 )->getColor( *hbqt_par_QColor( 2 ), hbqt_par_QWidget( 3 ) ) ) ) );
}
/*
* void setCustomColor ( int index, QRgb color )
*/
HB_FUNC( QT_QCOLORDIALOG_SETCUSTOMCOLOR )
{
hbqt_par_QColorDialog( 1 )->setCustomColor( hb_parni( 2 ), hb_parnl( 3 ) );
}
/*
* void setStandardColor ( int index, QRgb color )
*/
HB_FUNC( QT_QCOLORDIALOG_SETSTANDARDCOLOR )
{
hbqt_par_QColorDialog( 1 )->setStandardColor( hb_parni( 2 ), hb_parnl( 3 ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,570 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum InsertPolicy { NoInsert, InsertAtTop, InsertAtCurrent, InsertAtBottom, ..., InsertAlphabetically }
* enum SizeAdjustPolicy { AdjustToContents, AdjustToContentsOnFirstShow, AdjustToMinimumContentsLength, AdjustToMinimumContentsLengthWithIcon }
*/
#include <QtCore/QPointer>
#include <QtGui/QComboBox>
/*
* QComboBox ( QWidget * parent = 0 )
* ~QComboBox ()
*/
HB_FUNC( QT_QCOMBOBOX )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QComboBox > pObj = NULL;
pObj = ( QComboBox* ) new QComboBox( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* void addItem ( const QString & text, const QVariant & userData = QVariant() )
*/
HB_FUNC( QT_QCOMBOBOX_ADDITEM )
{
hbqt_par_QComboBox( 1 )->addItem( hbqt_par_QString( 2 ), ( HB_ISPOINTER( 3 ) ? *hbqt_par_QVariant( 3 ) : QVariant() ) );
}
/*
* void addItem ( const QIcon & icon, const QString & text, const QVariant & userData = QVariant() )
*/
HB_FUNC( QT_QCOMBOBOX_ADDITEM_1 )
{
hbqt_par_QComboBox( 1 )->addItem( QIcon( hbqt_par_QString( 2 ) ), hbqt_par_QString( 3 ), ( HB_ISPOINTER( 4 ) ? *hbqt_par_QVariant( 4 ) : QVariant() ) );
}
/*
* void addItems ( const QStringList & texts )
*/
HB_FUNC( QT_QCOMBOBOX_ADDITEMS )
{
hbqt_par_QComboBox( 1 )->addItems( *hbqt_par_QStringList( 2 ) );
}
/*
* QCompleter * completer () const
*/
HB_FUNC( QT_QCOMBOBOX_COMPLETER )
{
hb_retptr( ( QCompleter* ) hbqt_par_QComboBox( 1 )->completer() );
}
/*
* int count () const
*/
HB_FUNC( QT_QCOMBOBOX_COUNT )
{
hb_retni( hbqt_par_QComboBox( 1 )->count() );
}
/*
* int currentIndex () const
*/
HB_FUNC( QT_QCOMBOBOX_CURRENTINDEX )
{
hb_retni( hbqt_par_QComboBox( 1 )->currentIndex() );
}
/*
* QString currentText () const
*/
HB_FUNC( QT_QCOMBOBOX_CURRENTTEXT )
{
hb_retc( hbqt_par_QComboBox( 1 )->currentText().toAscii().data() );
}
/*
* bool duplicatesEnabled () const
*/
HB_FUNC( QT_QCOMBOBOX_DUPLICATESENABLED )
{
hb_retl( hbqt_par_QComboBox( 1 )->duplicatesEnabled() );
}
/*
* int findData ( const QVariant & data, int role = Qt::UserRole, Qt::MatchFlags flags = Qt::MatchExactly | Qt::MatchCaseSensitive ) const
*/
HB_FUNC( QT_QCOMBOBOX_FINDDATA )
{
hb_retni( hbqt_par_QComboBox( 1 )->findData( *hbqt_par_QVariant( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : Qt::UserRole ), ( HB_ISNUM( 4 ) ? ( Qt::MatchFlags ) hb_parni( 4 ) : ( Qt::MatchFlags ) Qt::MatchExactly | Qt::MatchCaseSensitive ) ) );
}
/*
* int findText ( const QString & text, Qt::MatchFlags flags = Qt::MatchExactly | Qt::MatchCaseSensitive ) const
*/
HB_FUNC( QT_QCOMBOBOX_FINDTEXT )
{
hb_retni( hbqt_par_QComboBox( 1 )->findText( hbqt_par_QString( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::MatchFlags ) hb_parni( 3 ) : ( Qt::MatchFlags ) Qt::MatchExactly | Qt::MatchCaseSensitive ) ) );
}
/*
* bool hasFrame () const
*/
HB_FUNC( QT_QCOMBOBOX_HASFRAME )
{
hb_retl( hbqt_par_QComboBox( 1 )->hasFrame() );
}
/*
* virtual void hidePopup ()
*/
HB_FUNC( QT_QCOMBOBOX_HIDEPOPUP )
{
hbqt_par_QComboBox( 1 )->hidePopup();
}
/*
* QSize iconSize () const
*/
HB_FUNC( QT_QCOMBOBOX_ICONSIZE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QComboBox( 1 )->iconSize() ) ) );
}
/*
* void insertItem ( int index, const QString & text, const QVariant & userData = QVariant() )
*/
HB_FUNC( QT_QCOMBOBOX_INSERTITEM )
{
hbqt_par_QComboBox( 1 )->insertItem( hb_parni( 2 ), hbqt_par_QString( 3 ), ( HB_ISPOINTER( 4 ) ? *hbqt_par_QVariant( 4 ) : QVariant() ) );
}
/*
* void insertItem ( int index, const QIcon & icon, const QString & text, const QVariant & userData = QVariant() )
*/
HB_FUNC( QT_QCOMBOBOX_INSERTITEM_1 )
{
hbqt_par_QComboBox( 1 )->insertItem( hb_parni( 2 ), QIcon( hbqt_par_QString( 3 ) ), hbqt_par_QString( 4 ), ( HB_ISPOINTER( 5 ) ? *hbqt_par_QVariant( 5 ) : QVariant() ) );
}
/*
* void insertItems ( int index, const QStringList & list )
*/
HB_FUNC( QT_QCOMBOBOX_INSERTITEMS )
{
hbqt_par_QComboBox( 1 )->insertItems( hb_parni( 2 ), *hbqt_par_QStringList( 3 ) );
}
/*
* InsertPolicy insertPolicy () const
*/
HB_FUNC( QT_QCOMBOBOX_INSERTPOLICY )
{
hb_retni( ( QComboBox::InsertPolicy ) hbqt_par_QComboBox( 1 )->insertPolicy() );
}
/*
* void insertSeparator ( int index )
*/
HB_FUNC( QT_QCOMBOBOX_INSERTSEPARATOR )
{
hbqt_par_QComboBox( 1 )->insertSeparator( hb_parni( 2 ) );
}
/*
* bool isEditable () const
*/
HB_FUNC( QT_QCOMBOBOX_ISEDITABLE )
{
hb_retl( hbqt_par_QComboBox( 1 )->isEditable() );
}
/*
* QVariant itemData ( int index, int role = Qt::UserRole ) const
*/
HB_FUNC( QT_QCOMBOBOX_ITEMDATA )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QVariant( hbqt_par_QComboBox( 1 )->itemData( hb_parni( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : Qt::UserRole ) ) ) ) );
}
/*
* QAbstractItemDelegate * itemDelegate () const
*/
HB_FUNC( QT_QCOMBOBOX_ITEMDELEGATE )
{
hb_retptr( ( QAbstractItemDelegate* ) hbqt_par_QComboBox( 1 )->itemDelegate() );
}
/*
* QIcon itemIcon ( int index ) const
*/
HB_FUNC( QT_QCOMBOBOX_ITEMICON )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QIcon( hbqt_par_QComboBox( 1 )->itemIcon( hb_parni( 2 ) ) ) ) );
}
/*
* QString itemText ( int index ) const
*/
HB_FUNC( QT_QCOMBOBOX_ITEMTEXT )
{
hb_retc( hbqt_par_QComboBox( 1 )->itemText( hb_parni( 2 ) ).toAscii().data() );
}
/*
* QLineEdit * lineEdit () const
*/
HB_FUNC( QT_QCOMBOBOX_LINEEDIT )
{
hb_retptr( ( QLineEdit* ) hbqt_par_QComboBox( 1 )->lineEdit() );
}
/*
* int maxCount () const
*/
HB_FUNC( QT_QCOMBOBOX_MAXCOUNT )
{
hb_retni( hbqt_par_QComboBox( 1 )->maxCount() );
}
/*
* int maxVisibleItems () const
*/
HB_FUNC( QT_QCOMBOBOX_MAXVISIBLEITEMS )
{
hb_retni( hbqt_par_QComboBox( 1 )->maxVisibleItems() );
}
/*
* int minimumContentsLength () const
*/
HB_FUNC( QT_QCOMBOBOX_MINIMUMCONTENTSLENGTH )
{
hb_retni( hbqt_par_QComboBox( 1 )->minimumContentsLength() );
}
/*
* QAbstractItemModel * model () const
*/
HB_FUNC( QT_QCOMBOBOX_MODEL )
{
hb_retptr( ( QAbstractItemModel* ) hbqt_par_QComboBox( 1 )->model() );
}
/*
* int modelColumn () const
*/
HB_FUNC( QT_QCOMBOBOX_MODELCOLUMN )
{
hb_retni( hbqt_par_QComboBox( 1 )->modelColumn() );
}
/*
* void removeItem ( int index )
*/
HB_FUNC( QT_QCOMBOBOX_REMOVEITEM )
{
hbqt_par_QComboBox( 1 )->removeItem( hb_parni( 2 ) );
}
/*
* QModelIndex rootModelIndex () const
*/
HB_FUNC( QT_QCOMBOBOX_ROOTMODELINDEX )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QComboBox( 1 )->rootModelIndex() ) ) );
}
/*
* 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 )
*/
HB_FUNC( QT_QCOMBOBOX_SETEDITABLE )
{
hbqt_par_QComboBox( 1 )->setEditable( hb_parl( 2 ) );
}
/*
* void setFrame ( bool )
*/
HB_FUNC( QT_QCOMBOBOX_SETFRAME )
{
hbqt_par_QComboBox( 1 )->setFrame( hb_parl( 2 ) );
}
/*
* void setIconSize ( const QSize & size )
*/
HB_FUNC( QT_QCOMBOBOX_SETICONSIZE )
{
hbqt_par_QComboBox( 1 )->setIconSize( *hbqt_par_QSize( 2 ) );
}
/*
* void setInsertPolicy ( InsertPolicy policy )
*/
HB_FUNC( QT_QCOMBOBOX_SETINSERTPOLICY )
{
hbqt_par_QComboBox( 1 )->setInsertPolicy( ( QComboBox::InsertPolicy ) hb_parni( 2 ) );
}
/*
* void setItemData ( int index, const QVariant & value, int role = Qt::UserRole )
*/
HB_FUNC( QT_QCOMBOBOX_SETITEMDATA )
{
hbqt_par_QComboBox( 1 )->setItemData( hb_parni( 2 ), *hbqt_par_QVariant( 3 ), ( HB_ISNUM( 4 ) ? hb_parni( 4 ) : Qt::UserRole ) );
}
/*
* void setItemDelegate ( QAbstractItemDelegate * delegate )
*/
HB_FUNC( QT_QCOMBOBOX_SETITEMDELEGATE )
{
hbqt_par_QComboBox( 1 )->setItemDelegate( hbqt_par_QAbstractItemDelegate( 2 ) );
}
/*
* 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 )
*/
HB_FUNC( QT_QCOMBOBOX_SETLINEEDIT )
{
hbqt_par_QComboBox( 1 )->setLineEdit( hbqt_par_QLineEdit( 2 ) );
}
/*
* void setMaxCount ( int max )
*/
HB_FUNC( QT_QCOMBOBOX_SETMAXCOUNT )
{
hbqt_par_QComboBox( 1 )->setMaxCount( hb_parni( 2 ) );
}
/*
* void setMaxVisibleItems ( int maxItems )
*/
HB_FUNC( QT_QCOMBOBOX_SETMAXVISIBLEITEMS )
{
hbqt_par_QComboBox( 1 )->setMaxVisibleItems( hb_parni( 2 ) );
}
/*
* void setMinimumContentsLength ( int characters )
*/
HB_FUNC( QT_QCOMBOBOX_SETMINIMUMCONTENTSLENGTH )
{
hbqt_par_QComboBox( 1 )->setMinimumContentsLength( hb_parni( 2 ) );
}
/*
* void setModel ( QAbstractItemModel * model )
*/
HB_FUNC( QT_QCOMBOBOX_SETMODEL )
{
hbqt_par_QComboBox( 1 )->setModel( hbqt_par_QAbstractItemModel( 2 ) );
}
/*
* void setModelColumn ( int visibleColumn )
*/
HB_FUNC( QT_QCOMBOBOX_SETMODELCOLUMN )
{
hbqt_par_QComboBox( 1 )->setModelColumn( hb_parni( 2 ) );
}
/*
* void setRootModelIndex ( const QModelIndex & index )
*/
HB_FUNC( QT_QCOMBOBOX_SETROOTMODELINDEX )
{
hbqt_par_QComboBox( 1 )->setRootModelIndex( *hbqt_par_QModelIndex( 2 ) );
}
/*
* void setSizeAdjustPolicy ( SizeAdjustPolicy policy )
*/
HB_FUNC( QT_QCOMBOBOX_SETSIZEADJUSTPOLICY )
{
hbqt_par_QComboBox( 1 )->setSizeAdjustPolicy( ( QComboBox::SizeAdjustPolicy ) hb_parni( 2 ) );
}
/*
* 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 ) );
}
/*
* virtual void showPopup ()
*/
HB_FUNC( QT_QCOMBOBOX_SHOWPOPUP )
{
hbqt_par_QComboBox( 1 )->showPopup();
}
/*
* SizeAdjustPolicy sizeAdjustPolicy () const
*/
HB_FUNC( QT_QCOMBOBOX_SIZEADJUSTPOLICY )
{
hb_retni( ( QComboBox::SizeAdjustPolicy ) hbqt_par_QComboBox( 1 )->sizeAdjustPolicy() );
}
/*
* 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() );
}
/*
* 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 /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,110 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#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 )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QCommandLinkButton > pObj = NULL;
pObj = ( QCommandLinkButton* ) new QCommandLinkButton( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* QString description () const
*/
HB_FUNC( QT_QCOMMANDLINKBUTTON_DESCRIPTION )
{
hb_retc( hbqt_par_QCommandLinkButton( 1 )->description().toAscii().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 */
/*----------------------------------------------------------------------*/

View File

@@ -1,92 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QCommonStyle>
/*
* QCommonStyle ()
*/
HB_FUNC( QT_QCOMMONSTYLE )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QCommonStyle > pObj = NULL;
pObj = ( QCommonStyle* ) new QCommonStyle() ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,137 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum CoordinateMode { LogicalMode, StretchToDeviceMode, ObjectBoundingMode }
* enum Spread { PadSpread, RepeatSpread, ReflectSpread }
* enum Type { LinearGradient, RadialGradient, ConicalGradient, NoGradient }
*/
#include <QtCore/QPointer>
#include <QtGui/QConicalGradient>
/*
* QConicalGradient ()
* QConicalGradient ( const QPointF & center, qreal angle )
* QConicalGradient ( qreal cx, qreal cy, qreal angle )
*/
HB_FUNC( QT_QCONICALGRADIENT )
{
void * pObj = NULL;
pObj = ( QConicalGradient* ) new QConicalGradient() ;
hb_retptr( pObj );
}
/*
* qreal angle () const
*/
HB_FUNC( QT_QCONICALGRADIENT_ANGLE )
{
hb_retnd( hbqt_par_QConicalGradient( 1 )->angle() );
}
/*
* QPointF center () const
*/
HB_FUNC( QT_QCONICALGRADIENT_CENTER )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QPointF( hbqt_par_QConicalGradient( 1 )->center() ) ) );
}
/*
* void setAngle ( qreal angle )
*/
HB_FUNC( QT_QCONICALGRADIENT_SETANGLE )
{
hbqt_par_QConicalGradient( 1 )->setAngle( hb_parnd( 2 ) );
}
/*
* void setCenter ( const QPointF & center )
*/
HB_FUNC( QT_QCONICALGRADIENT_SETCENTER )
{
hbqt_par_QConicalGradient( 1 )->setCenter( *hbqt_par_QPointF( 2 ) );
}
/*
* void setCenter ( qreal x, qreal y )
*/
HB_FUNC( QT_QCONICALGRADIENT_SETCENTER_1 )
{
hbqt_par_QConicalGradient( 1 )->setCenter( hb_parnd( 2 ), hb_parnd( 3 ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,424 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum Encoding { CodecForTr, UnicodeUTF8, DefaultCodec }
*/
/*
* Constructed[ 40/43 [ 93.02% ] ]
*
* *** 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 <QtCore/QPointer>
#include <QStringList>
#include <QtCore/QCoreApplication>
/*
* QCoreApplication ( int & argc, char ** argv )
* ~QCoreApplication ()
*/
HB_FUNC( QT_QCOREAPPLICATION )
{
}
/*
* 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 ) ) );
}
/*
* void addLibraryPath ( const QString & path )
*/
HB_FUNC( QT_QCOREAPPLICATION_ADDLIBRARYPATH )
{
hbqt_par_QCoreApplication( 1 )->addLibraryPath( hbqt_par_QString( 2 ) );
}
/*
* QString applicationDirPath ()
*/
HB_FUNC( QT_QCOREAPPLICATION_APPLICATIONDIRPATH )
{
hb_retc( hbqt_par_QCoreApplication( 1 )->applicationDirPath().toAscii().data() );
}
/*
* QString applicationFilePath ()
*/
HB_FUNC( QT_QCOREAPPLICATION_APPLICATIONFILEPATH )
{
hb_retc( hbqt_par_QCoreApplication( 1 )->applicationFilePath().toAscii().data() );
}
/*
* QString applicationName ()
*/
HB_FUNC( QT_QCOREAPPLICATION_APPLICATIONNAME )
{
hb_retc( hbqt_par_QCoreApplication( 1 )->applicationName().toAscii().data() );
}
/*
* qint64 applicationPid ()
*/
HB_FUNC( QT_QCOREAPPLICATION_APPLICATIONPID )
{
hb_retnint( hbqt_par_QCoreApplication( 1 )->applicationPid() );
}
/*
* QString applicationVersion ()
*/
HB_FUNC( QT_QCOREAPPLICATION_APPLICATIONVERSION )
{
hb_retc( hbqt_par_QCoreApplication( 1 )->applicationVersion().toAscii().data() );
}
/*
* QStringList arguments ()
*/
HB_FUNC( QT_QCOREAPPLICATION_ARGUMENTS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QCoreApplication( 1 )->arguments() ) ) );
}
/*
* bool closingDown ()
*/
HB_FUNC( QT_QCOREAPPLICATION_CLOSINGDOWN )
{
hb_retl( hbqt_par_QCoreApplication( 1 )->closingDown() );
}
/*
* int exec ()
*/
HB_FUNC( QT_QCOREAPPLICATION_EXEC )
{
hb_retni( hbqt_par_QCoreApplication( 1 )->exec() );
}
/*
* void exit ( int returnCode = 0 )
*/
HB_FUNC( QT_QCOREAPPLICATION_EXIT )
{
hbqt_par_QCoreApplication( 1 )->exit( hb_parni( 2 ) );
}
/*
* void flush ()
*/
HB_FUNC( QT_QCOREAPPLICATION_FLUSH )
{
hbqt_par_QCoreApplication( 1 )->flush();
}
/*
* bool hasPendingEvents ()
*/
HB_FUNC( QT_QCOREAPPLICATION_HASPENDINGEVENTS )
{
hb_retl( hbqt_par_QCoreApplication( 1 )->hasPendingEvents() );
}
/*
* void installTranslator ( QTranslator * translationFile )
*/
HB_FUNC( QT_QCOREAPPLICATION_INSTALLTRANSLATOR )
{
hbqt_par_QCoreApplication( 1 )->installTranslator( hbqt_par_QTranslator( 2 ) );
}
/*
* QCoreApplication * instance ()
*/
HB_FUNC( QT_QCOREAPPLICATION_INSTANCE )
{
hb_retptr( ( QCoreApplication* ) hbqt_par_QCoreApplication( 1 )->instance() );
}
/*
* QStringList libraryPaths ()
*/
HB_FUNC( QT_QCOREAPPLICATION_LIBRARYPATHS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QCoreApplication( 1 )->libraryPaths() ) ) );
}
/*
* QString organizationDomain ()
*/
HB_FUNC( QT_QCOREAPPLICATION_ORGANIZATIONDOMAIN )
{
hb_retc( hbqt_par_QCoreApplication( 1 )->organizationDomain().toAscii().data() );
}
/*
* QString organizationName ()
*/
HB_FUNC( QT_QCOREAPPLICATION_ORGANIZATIONNAME )
{
hb_retc( hbqt_par_QCoreApplication( 1 )->organizationName().toAscii().data() );
}
/*
* void postEvent ( QObject * receiver, QEvent * event )
*/
HB_FUNC( QT_QCOREAPPLICATION_POSTEVENT )
{
hbqt_par_QCoreApplication( 1 )->postEvent( hbqt_par_QObject( 2 ), hbqt_par_QEvent( 3 ) );
}
/*
* void postEvent ( QObject * receiver, QEvent * event, int priority )
*/
HB_FUNC( QT_QCOREAPPLICATION_POSTEVENT_1 )
{
hbqt_par_QCoreApplication( 1 )->postEvent( hbqt_par_QObject( 2 ), hbqt_par_QEvent( 3 ), hb_parni( 4 ) );
}
/*
* void processEvents ( QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents )
*/
HB_FUNC( QT_QCOREAPPLICATION_PROCESSEVENTS )
{
hbqt_par_QCoreApplication( 1 )->processEvents( ( HB_ISNUM( 2 ) ? ( QEventLoop::ProcessEventsFlags ) hb_parni( 2 ) : ( QEventLoop::ProcessEventsFlags ) QEventLoop::AllEvents ) );
}
/*
* void processEvents ( QEventLoop::ProcessEventsFlags flags, int maxtime )
*/
HB_FUNC( QT_QCOREAPPLICATION_PROCESSEVENTS_1 )
{
hbqt_par_QCoreApplication( 1 )->processEvents( ( QEventLoop::ProcessEventsFlags ) hb_parni( 2 ), hb_parni( 3 ) );
}
/*
* void removeLibraryPath ( const QString & path )
*/
HB_FUNC( QT_QCOREAPPLICATION_REMOVELIBRARYPATH )
{
hbqt_par_QCoreApplication( 1 )->removeLibraryPath( hbqt_par_QString( 2 ) );
}
/*
* void removePostedEvents ( QObject * receiver )
*/
HB_FUNC( QT_QCOREAPPLICATION_REMOVEPOSTEDEVENTS )
{
hbqt_par_QCoreApplication( 1 )->removePostedEvents( hbqt_par_QObject( 2 ) );
}
/*
* void removePostedEvents ( QObject * receiver, int eventType )
*/
HB_FUNC( QT_QCOREAPPLICATION_REMOVEPOSTEDEVENTS_1 )
{
hbqt_par_QCoreApplication( 1 )->removePostedEvents( hbqt_par_QObject( 2 ), hb_parni( 3 ) );
}
/*
* void removeTranslator ( QTranslator * translationFile )
*/
HB_FUNC( QT_QCOREAPPLICATION_REMOVETRANSLATOR )
{
hbqt_par_QCoreApplication( 1 )->removeTranslator( hbqt_par_QTranslator( 2 ) );
}
/*
* bool sendEvent ( QObject * receiver, QEvent * event )
*/
HB_FUNC( QT_QCOREAPPLICATION_SENDEVENT )
{
hb_retl( hbqt_par_QCoreApplication( 1 )->sendEvent( hbqt_par_QObject( 2 ), hbqt_par_QEvent( 3 ) ) );
}
/*
* void sendPostedEvents ( QObject * receiver, int event_type )
*/
HB_FUNC( QT_QCOREAPPLICATION_SENDPOSTEDEVENTS )
{
hbqt_par_QCoreApplication( 1 )->sendPostedEvents( hbqt_par_QObject( 2 ), hb_parni( 3 ) );
}
/*
* void sendPostedEvents ()
*/
HB_FUNC( QT_QCOREAPPLICATION_SENDPOSTEDEVENTS_1 )
{
hbqt_par_QCoreApplication( 1 )->sendPostedEvents();
}
/*
* void setApplicationName ( const QString & application )
*/
HB_FUNC( QT_QCOREAPPLICATION_SETAPPLICATIONNAME )
{
hbqt_par_QCoreApplication( 1 )->setApplicationName( hbqt_par_QString( 2 ) );
}
/*
* void setApplicationVersion ( const QString & version )
*/
HB_FUNC( QT_QCOREAPPLICATION_SETAPPLICATIONVERSION )
{
hbqt_par_QCoreApplication( 1 )->setApplicationVersion( hbqt_par_QString( 2 ) );
}
/*
* void setAttribute ( Qt::ApplicationAttribute attribute, bool on = true )
*/
HB_FUNC( QT_QCOREAPPLICATION_SETATTRIBUTE )
{
hbqt_par_QCoreApplication( 1 )->setAttribute( ( Qt::ApplicationAttribute ) hb_parni( 2 ), hb_parl( 3 ) );
}
/*
* void setLibraryPaths ( const QStringList & paths )
*/
HB_FUNC( QT_QCOREAPPLICATION_SETLIBRARYPATHS )
{
hbqt_par_QCoreApplication( 1 )->setLibraryPaths( *hbqt_par_QStringList( 2 ) );
}
/*
* void setOrganizationDomain ( const QString & orgDomain )
*/
HB_FUNC( QT_QCOREAPPLICATION_SETORGANIZATIONDOMAIN )
{
hbqt_par_QCoreApplication( 1 )->setOrganizationDomain( hbqt_par_QString( 2 ) );
}
/*
* void setOrganizationName ( const QString & orgName )
*/
HB_FUNC( QT_QCOREAPPLICATION_SETORGANIZATIONNAME )
{
hbqt_par_QCoreApplication( 1 )->setOrganizationName( hbqt_par_QString( 2 ) );
}
/*
* bool startingUp ()
*/
HB_FUNC( QT_QCOREAPPLICATION_STARTINGUP )
{
hb_retl( hbqt_par_QCoreApplication( 1 )->startingUp() );
}
/*
* bool testAttribute ( Qt::ApplicationAttribute attribute )
*/
HB_FUNC( QT_QCOREAPPLICATION_TESTATTRIBUTE )
{
hb_retl( hbqt_par_QCoreApplication( 1 )->testAttribute( ( Qt::ApplicationAttribute ) hb_parni( 2 ) ) );
}
/*
* QString translate ( const char * context, const char * sourceText, const char * disambiguation, Encoding encoding, int n )
*/
HB_FUNC( QT_QCOREAPPLICATION_TRANSLATE )
{
hb_retc( hbqt_par_QCoreApplication( 1 )->translate( hbqt_par_char( 2 ), hbqt_par_char( 3 ), hbqt_par_char( 4 ), ( QCoreApplication::Encoding ) hb_parni( 5 ), hb_parni( 6 ) ).toAscii().data() );
}
/*
* QString translate ( const char * context, const char * sourceText, const char * disambiguation = 0, Encoding encoding = CodecForTr )
*/
HB_FUNC( QT_QCOREAPPLICATION_TRANSLATE_1 )
{
hb_retc( hbqt_par_QCoreApplication( 1 )->translate( hbqt_par_char( 2 ), hbqt_par_char( 3 ), hbqt_par_char( 4 ), ( HB_ISNUM( 5 ) ? ( QCoreApplication::Encoding ) hb_parni( 5 ) : ( QCoreApplication::Encoding ) QCoreApplication::CodecForTr ) ).toAscii().data() );
}
/*
* void quit ()
*/
HB_FUNC( QT_QCOREAPPLICATION_QUIT )
{
hbqt_par_QCoreApplication( 1 )->quit();
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,199 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <qpixmap.h>
#include <QtGui/QCursor>
/*
* QCursor ()
* QCursor ( Qt::CursorShape shape )
* QCursor ( const QBitmap & bitmap, const QBitmap & mask, int hotX = -1, int hotY = -1 )
* QCursor ( const QPixmap & pixmap, int hotX = -1, int hotY = -1 )
* QCursor ( const QCursor & c )
* QCursor ( HCURSOR cursor )
* QCursor ( Qt::HANDLE handle )
* ~QCursor ()
*/
HB_FUNC( QT_QCURSOR )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISNUM( 1 ) )
{
pObj = ( QCursor* ) new QCursor( ( Qt::CursorShape ) hb_parni( 1 ) ) ;
}
else if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
pObj = ( QCursor* ) new QCursor( *hbqt_par_QCursor( 1 ) ) ;
}
else if( hb_pcount() >= 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
{
QString objName = hbqt_par_QString( 1 );
if( objName == ( QString ) "QPixmap" )
{
pObj = ( QCursor* ) new QCursor( *hbqt_par_QPixmap( 2 ), HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1, HB_ISNUM( 4 ) ? hb_parni( 4 ) : -1 ) ;
}
else
{
pObj = ( QCursor* ) new QCursor() ;
}
}
else if( hb_pcount() >= 2 && HB_ISPOINTER( 1 ) && HB_ISPOINTER( 2 ) )
{
pObj = ( QCursor* ) new QCursor( *hbqt_par_QBitmap( 1 ), *hbqt_par_QBitmap( 2 ), HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1, HB_ISNUM( 4 ) ? hb_parni( 4 ) : -1 ) ;
}
else
{
pObj = ( QCursor* ) new QCursor() ;
}
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QCursor" );
hb_retptrGC( p );
}
/*
* const QBitmap * bitmap () const
*/
HB_FUNC( QT_QCURSOR_BITMAP )
{
hb_retptr( ( QBitmap* ) hbqt_par_QCursor( 1 )->bitmap() );
}
/*
* QPoint hotSpot () const
*/
HB_FUNC( QT_QCURSOR_HOTSPOT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QPoint( hbqt_par_QCursor( 1 )->hotSpot() ) ) );
}
/*
* const QBitmap * mask () const
*/
HB_FUNC( QT_QCURSOR_MASK )
{
hb_retptr( ( QBitmap* ) hbqt_par_QCursor( 1 )->mask() );
}
/*
* QPixmap pixmap () const
*/
HB_FUNC( QT_QCURSOR_PIXMAP )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QPixmap( hbqt_par_QCursor( 1 )->pixmap() ) ) );
}
/*
* void setShape ( Qt::CursorShape shape )
*/
HB_FUNC( QT_QCURSOR_SETSHAPE )
{
hbqt_par_QCursor( 1 )->setShape( ( Qt::CursorShape ) hb_parni( 2 ) );
}
/*
* Qt::CursorShape shape () const
*/
HB_FUNC( QT_QCURSOR_SHAPE )
{
hb_retni( ( Qt::CursorShape ) hbqt_par_QCursor( 1 )->shape() );
}
/*
* QPoint pos ()
*/
HB_FUNC( QT_QCURSOR_POS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QPoint( hbqt_par_QCursor( 1 )->pos() ) ) );
}
/*
* void setPos ( int x, int y )
*/
HB_FUNC( QT_QCURSOR_SETPOS )
{
hbqt_par_QCursor( 1 )->setPos( hb_parni( 2 ), hb_parni( 3 ) );
}
/*
* void setPos ( const QPoint & p )
*/
HB_FUNC( QT_QCURSOR_SETPOS_1 )
{
hbqt_par_QCursor( 1 )->setPos( *hbqt_par_QPoint( 2 ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,93 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QDateEdit>
/*
* QDateEdit ( QWidget * parent = 0 )
* QDateEdit ( const QDate & date, QWidget * parent = 0 )
*/
HB_FUNC( QT_QDATEEDIT )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QDateEdit > pObj = NULL;
pObj = ( QDateEdit* ) new QDateEdit( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,304 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtCore/QDateTime>
/*
* QDateTime ()
* QDateTime ( const QDate & date )
* QDateTime ( const QDate & date, const QTime & time, Qt::TimeSpec spec = Qt::LocalTime )
* QDateTime ( const QDateTime & other )
* ~QDateTime ()
*/
HB_FUNC( QT_QDATETIME )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
pObj = ( QDateTime* ) new QDateTime() ;
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QDateTime" );
hb_retptrGC( p );
}
/*
* QDateTime addDays ( int ndays ) const
*/
HB_FUNC( QT_QDATETIME_ADDDAYS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTime( 1 )->addDays( hb_parni( 2 ) ) ) ) );
}
/*
* QDateTime addMSecs ( qint64 msecs ) const
*/
HB_FUNC( QT_QDATETIME_ADDMSECS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTime( 1 )->addMSecs( hb_parnint( 2 ) ) ) ) );
}
/*
* QDateTime addMonths ( int nmonths ) const
*/
HB_FUNC( QT_QDATETIME_ADDMONTHS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTime( 1 )->addMonths( hb_parni( 2 ) ) ) ) );
}
/*
* QDateTime addSecs ( int s ) const
*/
HB_FUNC( QT_QDATETIME_ADDSECS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTime( 1 )->addSecs( hb_parni( 2 ) ) ) ) );
}
/*
* QDateTime addYears ( int nyears ) const
*/
HB_FUNC( QT_QDATETIME_ADDYEARS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTime( 1 )->addYears( hb_parni( 2 ) ) ) ) );
}
/*
* QDate date () const
*/
HB_FUNC( QT_QDATETIME_DATE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDate( hbqt_par_QDateTime( 1 )->date() ) ) );
}
/*
* int daysTo ( const QDateTime & other ) const
*/
HB_FUNC( QT_QDATETIME_DAYSTO )
{
hb_retni( hbqt_par_QDateTime( 1 )->daysTo( *hbqt_par_QDateTime( 2 ) ) );
}
/*
* bool isNull () const
*/
HB_FUNC( QT_QDATETIME_ISNULL )
{
hb_retl( hbqt_par_QDateTime( 1 )->isNull() );
}
/*
* bool isValid () const
*/
HB_FUNC( QT_QDATETIME_ISVALID )
{
hb_retl( hbqt_par_QDateTime( 1 )->isValid() );
}
/*
* int secsTo ( const QDateTime & other ) const
*/
HB_FUNC( QT_QDATETIME_SECSTO )
{
hb_retni( hbqt_par_QDateTime( 1 )->secsTo( *hbqt_par_QDateTime( 2 ) ) );
}
/*
* void setDate ( const QDate & date )
*/
HB_FUNC( QT_QDATETIME_SETDATE )
{
hbqt_par_QDateTime( 1 )->setDate( *hbqt_par_QDate( 2 ) );
}
/*
* void setTime ( const QTime & time )
*/
HB_FUNC( QT_QDATETIME_SETTIME )
{
hbqt_par_QDateTime( 1 )->setTime( *hbqt_par_QTime( 2 ) );
}
/*
* void setTimeSpec ( Qt::TimeSpec spec )
*/
HB_FUNC( QT_QDATETIME_SETTIMESPEC )
{
hbqt_par_QDateTime( 1 )->setTimeSpec( ( Qt::TimeSpec ) hb_parni( 2 ) );
}
/*
* void setTime_t ( uint seconds )
*/
HB_FUNC( QT_QDATETIME_SETTIME_T )
{
hbqt_par_QDateTime( 1 )->setTime_t( hb_parni( 2 ) );
}
/*
* QTime time () const
*/
HB_FUNC( QT_QDATETIME_TIME )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QTime( hbqt_par_QDateTime( 1 )->time() ) ) );
}
/*
* Qt::TimeSpec timeSpec () const
*/
HB_FUNC( QT_QDATETIME_TIMESPEC )
{
hb_retni( ( Qt::TimeSpec ) hbqt_par_QDateTime( 1 )->timeSpec() );
}
/*
* QDateTime toLocalTime () const
*/
HB_FUNC( QT_QDATETIME_TOLOCALTIME )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTime( 1 )->toLocalTime() ) ) );
}
/*
* QString toString ( const QString & format ) const
*/
HB_FUNC( QT_QDATETIME_TOSTRING )
{
hb_retc( hbqt_par_QDateTime( 1 )->toString( hbqt_par_QString( 2 ) ).toAscii().data() );
}
/*
* QString toString ( Qt::DateFormat format = Qt::TextDate ) const
*/
HB_FUNC( QT_QDATETIME_TOSTRING_1 )
{
hb_retc( hbqt_par_QDateTime( 1 )->toString( ( HB_ISNUM( 2 ) ? ( Qt::DateFormat ) hb_parni( 2 ) : ( Qt::DateFormat ) Qt::TextDate ) ).toAscii().data() );
}
/*
* QDateTime toTimeSpec ( Qt::TimeSpec specification ) const
*/
HB_FUNC( QT_QDATETIME_TOTIMESPEC )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTime( 1 )->toTimeSpec( ( Qt::TimeSpec ) hb_parni( 2 ) ) ) ) );
}
/*
* uint toTime_t () const
*/
HB_FUNC( QT_QDATETIME_TOTIME_T )
{
hb_retni( hbqt_par_QDateTime( 1 )->toTime_t() );
}
/*
* QDateTime toUTC () const
*/
HB_FUNC( QT_QDATETIME_TOUTC )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTime( 1 )->toUTC() ) ) );
}
/*
* QDateTime currentDateTime ()
*/
HB_FUNC( QT_QDATETIME_CURRENTDATETIME )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTime( 1 )->currentDateTime() ) ) );
}
/*
* QDateTime fromString ( const QString & string, Qt::DateFormat format = Qt::TextDate )
*/
HB_FUNC( QT_QDATETIME_FROMSTRING )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTime( 1 )->fromString( hbqt_par_QString( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::DateFormat ) hb_parni( 3 ) : ( Qt::DateFormat ) Qt::TextDate ) ) ) ) );
}
/*
* QDateTime fromString ( const QString & string, const QString & format )
*/
HB_FUNC( QT_QDATETIME_FROMSTRING_1 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTime( 1 )->fromString( hbqt_par_QString( 2 ), hbqt_par_QString( 3 ) ) ) ) );
}
/*
* QDateTime fromTime_t ( uint seconds )
*/
HB_FUNC( QT_QDATETIME_FROMTIME_T )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTime( 1 )->fromTime_t( hb_parni( 2 ) ) ) ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,452 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum Section { NoSection, AmPmSection, MSecSection, SecondSection, ..., YearSection }
* flags Sections
*/
#include <QtCore/QPointer>
#include <QtGui/QDateTimeEdit>
/*
* QDateTimeEdit ( QWidget * parent = 0 )
* QDateTimeEdit ( const QDateTime & datetime, QWidget * parent = 0 )
* QDateTimeEdit ( const QDate & date, QWidget * parent = 0 )
* QDateTimeEdit ( const QTime & time, QWidget * parent = 0 )
*/
HB_FUNC( QT_QDATETIMEEDIT )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QDateTimeEdit > pObj = NULL;
pObj = ( QDateTimeEdit* ) new QDateTimeEdit( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* 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( ( QDateTimeEdit::Section ) hbqt_par_QDateTimeEdit( 1 )->currentSection() );
}
/*
* int currentSectionIndex () const
*/
HB_FUNC( QT_QDATETIMEEDIT_CURRENTSECTIONINDEX )
{
hb_retni( hbqt_par_QDateTimeEdit( 1 )->currentSectionIndex() );
}
/*
* QDate date () const
*/
HB_FUNC( QT_QDATETIMEEDIT_DATE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDate( hbqt_par_QDateTimeEdit( 1 )->date() ) ) );
}
/*
* QDateTime dateTime () const
*/
HB_FUNC( QT_QDATETIMEEDIT_DATETIME )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTimeEdit( 1 )->dateTime() ) ) );
}
/*
* QString displayFormat () const
*/
HB_FUNC( QT_QDATETIMEEDIT_DISPLAYFORMAT )
{
hb_retc( hbqt_par_QDateTimeEdit( 1 )->displayFormat().toAscii().data() );
}
/*
* Sections displayedSections () const
*/
HB_FUNC( QT_QDATETIMEEDIT_DISPLAYEDSECTIONS )
{
hb_retni( ( QDateTimeEdit::Sections ) hbqt_par_QDateTimeEdit( 1 )->displayedSections() );
}
/*
* QDate maximumDate () const
*/
HB_FUNC( QT_QDATETIMEEDIT_MAXIMUMDATE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDate( hbqt_par_QDateTimeEdit( 1 )->maximumDate() ) ) );
}
/*
* QDateTime maximumDateTime () const
*/
HB_FUNC( QT_QDATETIMEEDIT_MAXIMUMDATETIME )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTimeEdit( 1 )->maximumDateTime() ) ) );
}
/*
* QTime maximumTime () const
*/
HB_FUNC( QT_QDATETIMEEDIT_MAXIMUMTIME )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QTime( hbqt_par_QDateTimeEdit( 1 )->maximumTime() ) ) );
}
/*
* QDate minimumDate () const
*/
HB_FUNC( QT_QDATETIMEEDIT_MINIMUMDATE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDate( hbqt_par_QDateTimeEdit( 1 )->minimumDate() ) ) );
}
/*
* QDateTime minimumDateTime () const
*/
HB_FUNC( QT_QDATETIMEEDIT_MINIMUMDATETIME )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTimeEdit( 1 )->minimumDateTime() ) ) );
}
/*
* QTime minimumTime () const
*/
HB_FUNC( QT_QDATETIMEEDIT_MINIMUMTIME )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QTime( hbqt_par_QDateTimeEdit( 1 )->minimumTime() ) ) );
}
/*
* Section sectionAt ( int index ) const
*/
HB_FUNC( QT_QDATETIMEEDIT_SECTIONAT )
{
hb_retni( ( QDateTimeEdit::Section ) 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 ) ).toAscii().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 setDateRange ( const QDate & min, const QDate & max )
*/
HB_FUNC( QT_QDATETIMEEDIT_SETDATERANGE )
{
hbqt_par_QDateTimeEdit( 1 )->setDateRange( *hbqt_par_QDate( 2 ), *hbqt_par_QDate( 3 ) );
}
/*
* void setDateTimeRange ( const QDateTime & min, const QDateTime & max )
*/
HB_FUNC( QT_QDATETIMEEDIT_SETDATETIMERANGE )
{
hbqt_par_QDateTimeEdit( 1 )->setDateTimeRange( *hbqt_par_QDateTime( 2 ), *hbqt_par_QDateTime( 3 ) );
}
/*
* void setDisplayFormat ( const QString & format )
*/
HB_FUNC( QT_QDATETIMEEDIT_SETDISPLAYFORMAT )
{
hbqt_par_QDateTimeEdit( 1 )->setDisplayFormat( hbqt_par_QString( 2 ) );
}
/*
* void setMaximumDate ( const QDate & max )
*/
HB_FUNC( QT_QDATETIMEEDIT_SETMAXIMUMDATE )
{
hbqt_par_QDateTimeEdit( 1 )->setMaximumDate( *hbqt_par_QDate( 2 ) );
}
/*
* void setMaximumDateTime ( const QDateTime & dt )
*/
HB_FUNC( QT_QDATETIMEEDIT_SETMAXIMUMDATETIME )
{
hbqt_par_QDateTimeEdit( 1 )->setMaximumDateTime( *hbqt_par_QDateTime( 2 ) );
}
/*
* void setMaximumTime ( const QTime & max )
*/
HB_FUNC( QT_QDATETIMEEDIT_SETMAXIMUMTIME )
{
hbqt_par_QDateTimeEdit( 1 )->setMaximumTime( *hbqt_par_QTime( 2 ) );
}
/*
* void setMinimumDate ( const QDate & min )
*/
HB_FUNC( QT_QDATETIMEEDIT_SETMINIMUMDATE )
{
hbqt_par_QDateTimeEdit( 1 )->setMinimumDate( *hbqt_par_QDate( 2 ) );
}
/*
* void setMinimumDateTime ( const QDateTime & dt )
*/
HB_FUNC( QT_QDATETIMEEDIT_SETMINIMUMDATETIME )
{
hbqt_par_QDateTimeEdit( 1 )->setMinimumDateTime( *hbqt_par_QDateTime( 2 ) );
}
/*
* void setMinimumTime ( const QTime & min )
*/
HB_FUNC( QT_QDATETIMEEDIT_SETMINIMUMTIME )
{
hbqt_par_QDateTimeEdit( 1 )->setMinimumTime( *hbqt_par_QTime( 2 ) );
}
/*
* void setSelectedSection ( Section section )
*/
HB_FUNC( QT_QDATETIMEEDIT_SETSELECTEDSECTION )
{
hbqt_par_QDateTimeEdit( 1 )->setSelectedSection( ( QDateTimeEdit::Section ) hb_parni( 2 ) );
}
/*
* void setTimeRange ( const QTime & min, const QTime & max )
*/
HB_FUNC( QT_QDATETIMEEDIT_SETTIMERANGE )
{
hbqt_par_QDateTimeEdit( 1 )->setTimeRange( *hbqt_par_QTime( 2 ), *hbqt_par_QTime( 3 ) );
}
/*
* void setTimeSpec ( Qt::TimeSpec spec )
*/
HB_FUNC( QT_QDATETIMEEDIT_SETTIMESPEC )
{
hbqt_par_QDateTimeEdit( 1 )->setTimeSpec( ( Qt::TimeSpec ) hb_parni( 2 ) );
}
/*
* QTime time () const
*/
HB_FUNC( QT_QDATETIMEEDIT_TIME )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QTime( hbqt_par_QDateTimeEdit( 1 )->time() ) ) );
}
/*
* Qt::TimeSpec timeSpec () const
*/
HB_FUNC( QT_QDATETIMEEDIT_TIMESPEC )
{
hb_retni( ( Qt::TimeSpec ) hbqt_par_QDateTimeEdit( 1 )->timeSpec() );
}
/*
* void setDate ( const QDate & date )
*/
HB_FUNC( QT_QDATETIMEEDIT_SETDATE )
{
hbqt_par_QDateTimeEdit( 1 )->setDate( *hbqt_par_QDate( 2 ) );
}
/*
* void setDateTime ( const QDateTime & dateTime )
*/
HB_FUNC( QT_QDATETIMEEDIT_SETDATETIME )
{
hbqt_par_QDateTimeEdit( 1 )->setDateTime( *hbqt_par_QDateTime( 2 ) );
}
/*
* void setTime ( const QTime & time )
*/
HB_FUNC( QT_QDATETIMEEDIT_SETTIME )
{
hbqt_par_QDateTimeEdit( 1 )->setTime( *hbqt_par_QTime( 2 ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,189 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QDesktopWidget>
/*
* QDesktopWidget ()
* ~QDesktopWidget ()
*/
HB_FUNC( QT_QDESKTOPWIDGET )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QDesktopWidget > pObj = NULL;
pObj = new QDesktopWidget() ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* const QRect availableGeometry ( int screen = -1 ) const
*/
HB_FUNC( QT_QDESKTOPWIDGET_AVAILABLEGEOMETRY )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QDesktopWidget( 1 )->availableGeometry( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : -1 ) ) ) ) );
}
/*
* const QRect availableGeometry ( const QWidget * widget ) const
*/
HB_FUNC( QT_QDESKTOPWIDGET_AVAILABLEGEOMETRY_1 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QDesktopWidget( 1 )->availableGeometry( hbqt_par_QWidget( 2 ) ) ) ) );
}
/*
* const QRect availableGeometry ( const QPoint & p ) const
*/
HB_FUNC( QT_QDESKTOPWIDGET_AVAILABLEGEOMETRY_2 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QDesktopWidget( 1 )->availableGeometry( *hbqt_par_QPoint( 2 ) ) ) ) );
}
/*
* bool isVirtualDesktop () const
*/
HB_FUNC( QT_QDESKTOPWIDGET_ISVIRTUALDESKTOP )
{
hb_retl( hbqt_par_QDesktopWidget( 1 )->isVirtualDesktop() );
}
/*
* int numScreens () const
*/
HB_FUNC( QT_QDESKTOPWIDGET_NUMSCREENS )
{
hb_retni( hbqt_par_QDesktopWidget( 1 )->numScreens() );
}
/*
* int primaryScreen () const
*/
HB_FUNC( QT_QDESKTOPWIDGET_PRIMARYSCREEN )
{
hb_retni( hbqt_par_QDesktopWidget( 1 )->primaryScreen() );
}
/*
* QWidget * screen ( int screen = -1 )
*/
HB_FUNC( QT_QDESKTOPWIDGET_SCREEN )
{
hb_retptr( ( QWidget* ) hbqt_par_QDesktopWidget( 1 )->screen( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : -1 ) ) );
}
/*
* const QRect screenGeometry ( int screen = -1 ) const
*/
HB_FUNC( QT_QDESKTOPWIDGET_SCREENGEOMETRY )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QDesktopWidget( 1 )->screenGeometry( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : -1 ) ) ) ) );
}
/*
* const QRect screenGeometry ( const QWidget * widget ) const
*/
HB_FUNC( QT_QDESKTOPWIDGET_SCREENGEOMETRY_1 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QDesktopWidget( 1 )->screenGeometry( hbqt_par_QWidget( 2 ) ) ) ) );
}
/*
* const QRect screenGeometry ( const QPoint & p ) const
*/
HB_FUNC( QT_QDESKTOPWIDGET_SCREENGEOMETRY_2 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QDesktopWidget( 1 )->screenGeometry( *hbqt_par_QPoint( 2 ) ) ) ) );
}
/*
* int screenNumber ( const QWidget * widget = 0 ) const
*/
HB_FUNC( QT_QDESKTOPWIDGET_SCREENNUMBER )
{
hb_retni( hbqt_par_QDesktopWidget( 1 )->screenNumber( hbqt_par_QWidget( 2 ) ) );
}
/*
* int screenNumber ( const QPoint & point ) const
*/
HB_FUNC( QT_QDESKTOPWIDGET_SCREENNUMBER_1 )
{
hb_retni( hbqt_par_QDesktopWidget( 1 )->screenNumber( *hbqt_par_QPoint( 2 ) ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,149 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QDial>
/*
* QDial ( QWidget * parent = 0 )
* ~QDial ()
*/
HB_FUNC( QT_QDIAL )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QDial > pObj = NULL;
pObj = ( QDial* ) new QDial( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* 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() );
}
/*
* void setNotchesVisible ( bool visible )
*/
HB_FUNC( QT_QDIAL_SETNOTCHESVISIBLE )
{
hbqt_par_QDial( 1 )->setNotchesVisible( hb_parl( 2 ) );
}
/*
* void setWrapping ( bool on )
*/
HB_FUNC( QT_QDIAL_SETWRAPPING )
{
hbqt_par_QDial( 1 )->setWrapping( hb_parl( 2 ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,177 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum DialogCode { Accepted, Rejected }
*/
#include <QtCore/QPointer>
#include <QtGui/QDialog>
/*
* QDialog ( QWidget * parent = 0, Qt::WindowFlags f = 0 )
* ~QDialog ()
*/
HB_FUNC( QT_QDIALOG )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QDialog > pObj = NULL;
pObj = new QDialog( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* bool isSizeGripEnabled () const
*/
HB_FUNC( QT_QDIALOG_ISSIZEGRIPENABLED )
{
hb_retl( hbqt_par_QDialog( 1 )->isSizeGripEnabled() );
}
/*
* 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 ) );
}
/*
* void setResult ( int i )
*/
HB_FUNC( QT_QDIALOG_SETRESULT )
{
hbqt_par_QDialog( 1 )->setResult( hb_parni( 2 ) );
}
/*
* void setSizeGripEnabled ( bool )
*/
HB_FUNC( QT_QDIALOG_SETSIZEGRIPENABLED )
{
hbqt_par_QDialog( 1 )->setSizeGripEnabled( hb_parl( 2 ) );
}
/*
* virtual void accept ()
*/
HB_FUNC( QT_QDIALOG_ACCEPT )
{
hbqt_par_QDialog( 1 )->accept();
}
/*
* virtual void done ( int r )
*/
HB_FUNC( QT_QDIALOG_DONE )
{
hbqt_par_QDialog( 1 )->done( hb_parni( 2 ) );
}
/*
* int exec ()
*/
HB_FUNC( QT_QDIALOG_EXEC )
{
hb_retni( hbqt_par_QDialog( 1 )->exec() );
}
/*
* void open ()
*/
HB_FUNC( QT_QDIALOG_OPEN )
{
hbqt_par_QDialog( 1 )->open();
}
/*
* virtual void reject ()
*/
HB_FUNC( QT_QDIALOG_REJECT )
{
hbqt_par_QDialog( 1 )->reject();
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,542 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum Filter { Dirs, AllDirs, Files, Drives, ..., CaseSensitive }
* enum SortFlag { Name, Time, Size, Type, ..., LocaleAware }
* flags Filters
* flags SortFlags
*/
#include <QtCore/QPointer>
#include <QtCore/QDir>
/*
* QDir ( const QDir & dir )
* QDir ( const QString & path = QString() )
* QDir ( const QString & path, const QString & nameFilter, SortFlags sort = SortFlags( Name | IgnoreCase ), Filters filters = AllEntries )
* ~QDir ()
*/
HB_FUNC( QT_QDIR )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
pObj = new QDir( hbqt_par_QString( 1 ) ) ;
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QDir" );
hb_retptrGC( p );
}
/*
* QString absoluteFilePath ( const QString & fileName ) const
*/
HB_FUNC( QT_QDIR_ABSOLUTEFILEPATH )
{
hb_retc( hbqt_par_QDir( 1 )->absoluteFilePath( hbqt_par_QString( 2 ) ).toAscii().data() );
}
/*
* QString absolutePath () const
*/
HB_FUNC( QT_QDIR_ABSOLUTEPATH )
{
hb_retc( hbqt_par_QDir( 1 )->absolutePath().toAscii().data() );
}
/*
* QString canonicalPath () const
*/
HB_FUNC( QT_QDIR_CANONICALPATH )
{
hb_retc( hbqt_par_QDir( 1 )->canonicalPath().toAscii().data() );
}
/*
* bool cd ( const QString & dirName )
*/
HB_FUNC( QT_QDIR_CD )
{
hb_retl( hbqt_par_QDir( 1 )->cd( hbqt_par_QString( 2 ) ) );
}
/*
* bool cdUp ()
*/
HB_FUNC( QT_QDIR_CDUP )
{
hb_retl( hbqt_par_QDir( 1 )->cdUp() );
}
/*
* uint count () const
*/
HB_FUNC( QT_QDIR_COUNT )
{
hb_retni( hbqt_par_QDir( 1 )->count() );
}
/*
* QString dirName () const
*/
HB_FUNC( QT_QDIR_DIRNAME )
{
hb_retc( hbqt_par_QDir( 1 )->dirName().toAscii().data() );
}
/*
* QFileInfoList entryInfoList ( const QStringList & nameFilters, Filters filters = NoFilter, SortFlags sort = NoSort ) const
*/
HB_FUNC( QT_QDIR_ENTRYINFOLIST )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QFileInfoList( hbqt_par_QDir( 1 )->entryInfoList( *hbqt_par_QStringList( 2 ), ( HB_ISNUM( 3 ) ? ( QDir::Filters ) hb_parni( 3 ) : ( QDir::Filters ) QDir::NoFilter ), ( HB_ISNUM( 4 ) ? ( QDir::SortFlags ) hb_parni( 4 ) : ( QDir::SortFlags ) QDir::NoSort ) ) ) ) );
}
/*
* QFileInfoList entryInfoList ( Filters filters = NoFilter, SortFlags sort = NoSort ) const
*/
HB_FUNC( QT_QDIR_ENTRYINFOLIST_1 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QFileInfoList( hbqt_par_QDir( 1 )->entryInfoList( ( HB_ISNUM( 2 ) ? ( QDir::Filters ) hb_parni( 2 ) : ( QDir::Filters ) QDir::NoFilter ), ( HB_ISNUM( 3 ) ? ( QDir::SortFlags ) hb_parni( 3 ) : ( QDir::SortFlags ) QDir::NoSort ) ) ) ) );
}
/*
* QStringList entryList ( const QStringList & nameFilters, Filters filters = NoFilter, SortFlags sort = NoSort ) const
*/
HB_FUNC( QT_QDIR_ENTRYLIST )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QDir( 1 )->entryList( *hbqt_par_QStringList( 2 ), ( HB_ISNUM( 3 ) ? ( QDir::Filters ) hb_parni( 3 ) : ( QDir::Filters ) QDir::NoFilter ), ( HB_ISNUM( 4 ) ? ( QDir::SortFlags ) hb_parni( 4 ) : ( QDir::SortFlags ) QDir::NoSort ) ) ) ) );
}
/*
* QStringList entryList ( Filters filters = NoFilter, SortFlags sort = NoSort ) const
*/
HB_FUNC( QT_QDIR_ENTRYLIST_1 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QDir( 1 )->entryList( ( HB_ISNUM( 2 ) ? ( QDir::Filters ) hb_parni( 2 ) : ( QDir::Filters ) QDir::NoFilter ), ( HB_ISNUM( 3 ) ? ( QDir::SortFlags ) hb_parni( 3 ) : ( QDir::SortFlags ) QDir::NoSort ) ) ) ) );
}
/*
* bool exists ( const QString & name ) const
*/
HB_FUNC( QT_QDIR_EXISTS )
{
hb_retl( hbqt_par_QDir( 1 )->exists( hbqt_par_QString( 2 ) ) );
}
/*
* bool exists () const
*/
HB_FUNC( QT_QDIR_EXISTS_1 )
{
hb_retl( hbqt_par_QDir( 1 )->exists() );
}
/*
* QString filePath ( const QString & fileName ) const
*/
HB_FUNC( QT_QDIR_FILEPATH )
{
hb_retc( hbqt_par_QDir( 1 )->filePath( hbqt_par_QString( 2 ) ).toAscii().data() );
}
/*
* Filters filter () const
*/
HB_FUNC( QT_QDIR_FILTER )
{
hb_retni( ( QDir::Filters ) hbqt_par_QDir( 1 )->filter() );
}
/*
* bool isAbsolute () const
*/
HB_FUNC( QT_QDIR_ISABSOLUTE )
{
hb_retl( hbqt_par_QDir( 1 )->isAbsolute() );
}
/*
* bool isReadable () const
*/
HB_FUNC( QT_QDIR_ISREADABLE )
{
hb_retl( hbqt_par_QDir( 1 )->isReadable() );
}
/*
* bool isRelative () const
*/
HB_FUNC( QT_QDIR_ISRELATIVE )
{
hb_retl( hbqt_par_QDir( 1 )->isRelative() );
}
/*
* bool isRoot () const
*/
HB_FUNC( QT_QDIR_ISROOT )
{
hb_retl( hbqt_par_QDir( 1 )->isRoot() );
}
/*
* bool makeAbsolute ()
*/
HB_FUNC( QT_QDIR_MAKEABSOLUTE )
{
hb_retl( hbqt_par_QDir( 1 )->makeAbsolute() );
}
/*
* bool mkdir ( const QString & dirName ) const
*/
HB_FUNC( QT_QDIR_MKDIR )
{
hb_retl( hbqt_par_QDir( 1 )->mkdir( hbqt_par_QString( 2 ) ) );
}
/*
* bool mkpath ( const QString & dirPath ) const
*/
HB_FUNC( QT_QDIR_MKPATH )
{
hb_retl( hbqt_par_QDir( 1 )->mkpath( hbqt_par_QString( 2 ) ) );
}
/*
* QStringList nameFilters () const
*/
HB_FUNC( QT_QDIR_NAMEFILTERS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QDir( 1 )->nameFilters() ) ) );
}
/*
* QString path () const
*/
HB_FUNC( QT_QDIR_PATH )
{
hb_retc( hbqt_par_QDir( 1 )->path().toAscii().data() );
}
/*
* void refresh () const
*/
HB_FUNC( QT_QDIR_REFRESH )
{
hbqt_par_QDir( 1 )->refresh();
}
/*
* QString relativeFilePath ( const QString & fileName ) const
*/
HB_FUNC( QT_QDIR_RELATIVEFILEPATH )
{
hb_retc( hbqt_par_QDir( 1 )->relativeFilePath( hbqt_par_QString( 2 ) ).toAscii().data() );
}
/*
* bool remove ( const QString & fileName )
*/
HB_FUNC( QT_QDIR_REMOVE )
{
hb_retl( hbqt_par_QDir( 1 )->remove( hbqt_par_QString( 2 ) ) );
}
/*
* bool rename ( const QString & oldName, const QString & newName )
*/
HB_FUNC( QT_QDIR_RENAME )
{
hb_retl( hbqt_par_QDir( 1 )->rename( hbqt_par_QString( 2 ), hbqt_par_QString( 3 ) ) );
}
/*
* bool rmdir ( const QString & dirName ) const
*/
HB_FUNC( QT_QDIR_RMDIR )
{
hb_retl( hbqt_par_QDir( 1 )->rmdir( hbqt_par_QString( 2 ) ) );
}
/*
* bool rmpath ( const QString & dirPath ) const
*/
HB_FUNC( QT_QDIR_RMPATH )
{
hb_retl( hbqt_par_QDir( 1 )->rmpath( hbqt_par_QString( 2 ) ) );
}
/*
* void setFilter ( Filters filters )
*/
HB_FUNC( QT_QDIR_SETFILTER )
{
hbqt_par_QDir( 1 )->setFilter( ( QDir::Filters ) hb_parni( 2 ) );
}
/*
* void setNameFilters ( const QStringList & nameFilters )
*/
HB_FUNC( QT_QDIR_SETNAMEFILTERS )
{
hbqt_par_QDir( 1 )->setNameFilters( *hbqt_par_QStringList( 2 ) );
}
/*
* void setPath ( const QString & path )
*/
HB_FUNC( QT_QDIR_SETPATH )
{
hbqt_par_QDir( 1 )->setPath( hbqt_par_QString( 2 ) );
}
/*
* void setSorting ( SortFlags sort )
*/
HB_FUNC( QT_QDIR_SETSORTING )
{
hbqt_par_QDir( 1 )->setSorting( ( QDir::SortFlags ) hb_parni( 2 ) );
}
/*
* SortFlags sorting () const
*/
HB_FUNC( QT_QDIR_SORTING )
{
hb_retni( ( QDir::SortFlags ) hbqt_par_QDir( 1 )->sorting() );
}
/*
* void addSearchPath ( const QString & prefix, const QString & path )
*/
HB_FUNC( QT_QDIR_ADDSEARCHPATH )
{
hbqt_par_QDir( 1 )->addSearchPath( hbqt_par_QString( 2 ), hbqt_par_QString( 3 ) );
}
/*
* QString cleanPath ( const QString & path )
*/
HB_FUNC( QT_QDIR_CLEANPATH )
{
hb_retc( hbqt_par_QDir( 1 )->cleanPath( hbqt_par_QString( 2 ) ).toAscii().data() );
}
/*
* QDir current ()
*/
HB_FUNC( QT_QDIR_CURRENT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDir( hbqt_par_QDir( 1 )->current() ) ) );
}
/*
* QString currentPath ()
*/
HB_FUNC( QT_QDIR_CURRENTPATH )
{
hb_retc( hbqt_par_QDir( 1 )->currentPath().toAscii().data() );
}
/*
* QFileInfoList drives ()
*/
HB_FUNC( QT_QDIR_DRIVES )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QFileInfoList( hbqt_par_QDir( 1 )->drives() ) ) );
}
/*
* QString fromNativeSeparators ( const QString & pathName )
*/
HB_FUNC( QT_QDIR_FROMNATIVESEPARATORS )
{
hb_retc( hbqt_par_QDir( 1 )->fromNativeSeparators( hbqt_par_QString( 2 ) ).toAscii().data() );
}
/*
* QDir home ()
*/
HB_FUNC( QT_QDIR_HOME )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDir( hbqt_par_QDir( 1 )->home() ) ) );
}
/*
* QString homePath ()
*/
HB_FUNC( QT_QDIR_HOMEPATH )
{
hb_retc( hbqt_par_QDir( 1 )->homePath().toAscii().data() );
}
/*
* bool isAbsolutePath ( const QString & path )
*/
HB_FUNC( QT_QDIR_ISABSOLUTEPATH )
{
hb_retl( hbqt_par_QDir( 1 )->isAbsolutePath( hbqt_par_QString( 2 ) ) );
}
/*
* bool isRelativePath ( const QString & path )
*/
HB_FUNC( QT_QDIR_ISRELATIVEPATH )
{
hb_retl( hbqt_par_QDir( 1 )->isRelativePath( hbqt_par_QString( 2 ) ) );
}
/*
* bool match ( const QString & filter, const QString & fileName )
*/
HB_FUNC( QT_QDIR_MATCH )
{
hb_retl( hbqt_par_QDir( 1 )->match( hbqt_par_QString( 2 ), hbqt_par_QString( 3 ) ) );
}
/*
* bool match ( const QStringList & filters, const QString & fileName )
*/
HB_FUNC( QT_QDIR_MATCH_1 )
{
hb_retl( hbqt_par_QDir( 1 )->match( *hbqt_par_QStringList( 2 ), hbqt_par_QString( 3 ) ) );
}
/*
* QDir root ()
*/
HB_FUNC( QT_QDIR_ROOT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDir( hbqt_par_QDir( 1 )->root() ) ) );
}
/*
* QString rootPath ()
*/
HB_FUNC( QT_QDIR_ROOTPATH )
{
hb_retc( hbqt_par_QDir( 1 )->rootPath().toAscii().data() );
}
/*
* QStringList searchPaths ( const QString & prefix )
*/
HB_FUNC( QT_QDIR_SEARCHPATHS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QDir( 1 )->searchPaths( hbqt_par_QString( 2 ) ) ) ) );
}
/*
* bool setCurrent ( const QString & path )
*/
HB_FUNC( QT_QDIR_SETCURRENT )
{
hb_retl( hbqt_par_QDir( 1 )->setCurrent( hbqt_par_QString( 2 ) ) );
}
/*
* void setSearchPaths ( const QString & prefix, const QStringList & searchPaths )
*/
HB_FUNC( QT_QDIR_SETSEARCHPATHS )
{
hbqt_par_QDir( 1 )->setSearchPaths( hbqt_par_QString( 2 ), *hbqt_par_QStringList( 3 ) );
}
/*
* QDir temp ()
*/
HB_FUNC( QT_QDIR_TEMP )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDir( hbqt_par_QDir( 1 )->temp() ) ) );
}
/*
* QString tempPath ()
*/
HB_FUNC( QT_QDIR_TEMPPATH )
{
hb_retc( hbqt_par_QDir( 1 )->tempPath().toAscii().data() );
}
/*
* QString toNativeSeparators ( const QString & pathName )
*/
HB_FUNC( QT_QDIR_TONATIVESEPARATORS )
{
hb_retc( hbqt_par_QDir( 1 )->toNativeSeparators( hbqt_par_QString( 2 ) ).toAscii().data() );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,402 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum Roles { FileIconRole, FilePathRole, FileNameRole }
*/
#include <QtCore/QPointer>
#include <QtGui/QDirModel>
/*
* QDirModel ( const QStringList & nameFilters, QDir::Filters filters, QDir::SortFlags sort, QObject * parent = 0 )
* QDirModel ( QObject * parent = 0 )
* ~QDirModel ()
*/
HB_FUNC( QT_QDIRMODEL )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QDirModel > pObj = NULL;
pObj = ( QDirModel* ) new QDirModel( hbqt_par_QObject( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* virtual int columnCount ( const QModelIndex & parent = QModelIndex() ) const
*/
HB_FUNC( QT_QDIRMODEL_COLUMNCOUNT )
{
hb_retni( hbqt_par_QDirModel( 1 )->columnCount( ( HB_ISPOINTER( 2 ) ? *hbqt_par_QModelIndex( 2 ) : QModelIndex() ) ) );
}
/*
* virtual QVariant data ( const QModelIndex & index, int role = Qt::DisplayRole ) const
*/
HB_FUNC( QT_QDIRMODEL_DATA )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QVariant( hbqt_par_QDirModel( 1 )->data( *hbqt_par_QModelIndex( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : Qt::DisplayRole ) ) ) ) );
}
/*
* virtual bool dropMimeData ( const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent )
*/
HB_FUNC( QT_QDIRMODEL_DROPMIMEDATA )
{
hb_retl( hbqt_par_QDirModel( 1 )->dropMimeData( hbqt_par_QMimeData( 2 ), ( Qt::DropAction ) hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), *hbqt_par_QModelIndex( 6 ) ) );
}
/*
* QIcon fileIcon ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QDIRMODEL_FILEICON )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QIcon( hbqt_par_QDirModel( 1 )->fileIcon( *hbqt_par_QModelIndex( 2 ) ) ) ) );
}
/*
* QFileInfo fileInfo ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QDIRMODEL_FILEINFO )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QFileInfo( hbqt_par_QDirModel( 1 )->fileInfo( *hbqt_par_QModelIndex( 2 ) ) ) ) );
}
/*
* QString fileName ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QDIRMODEL_FILENAME )
{
hb_retc( hbqt_par_QDirModel( 1 )->fileName( *hbqt_par_QModelIndex( 2 ) ).toAscii().data() );
}
/*
* QString filePath ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QDIRMODEL_FILEPATH )
{
hb_retc( hbqt_par_QDirModel( 1 )->filePath( *hbqt_par_QModelIndex( 2 ) ).toAscii().data() );
}
/*
* QDir::Filters filter () const
*/
HB_FUNC( QT_QDIRMODEL_FILTER )
{
hb_retni( ( QDir::Filters ) hbqt_par_QDirModel( 1 )->filter() );
}
/*
* virtual Qt::ItemFlags flags ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QDIRMODEL_FLAGS )
{
hb_retni( ( Qt::ItemFlags ) hbqt_par_QDirModel( 1 )->flags( *hbqt_par_QModelIndex( 2 ) ) );
}
/*
* virtual bool hasChildren ( const QModelIndex & parent = QModelIndex() ) const
*/
HB_FUNC( QT_QDIRMODEL_HASCHILDREN )
{
hb_retl( hbqt_par_QDirModel( 1 )->hasChildren( ( HB_ISPOINTER( 2 ) ? *hbqt_par_QModelIndex( 2 ) : QModelIndex() ) ) );
}
/*
* virtual QVariant headerData ( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const
*/
HB_FUNC( QT_QDIRMODEL_HEADERDATA )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QVariant( hbqt_par_QDirModel( 1 )->headerData( hb_parni( 2 ), ( Qt::Orientation ) hb_parni( 3 ), ( HB_ISNUM( 4 ) ? hb_parni( 4 ) : Qt::DisplayRole ) ) ) ) );
}
/*
* QFileIconProvider * iconProvider () const
*/
HB_FUNC( QT_QDIRMODEL_ICONPROVIDER )
{
hb_retptr( ( QFileIconProvider* ) hbqt_par_QDirModel( 1 )->iconProvider() );
}
/*
* virtual QModelIndex index ( int row, int column, const QModelIndex & parent = QModelIndex() ) const
*/
HB_FUNC( QT_QDIRMODEL_INDEX )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QDirModel( 1 )->index( hb_parni( 2 ), hb_parni( 3 ), ( HB_ISPOINTER( 4 ) ? *hbqt_par_QModelIndex( 4 ) : QModelIndex() ) ) ) ) );
}
/*
* QModelIndex index ( const QString & path, int column = 0 ) const
*/
HB_FUNC( QT_QDIRMODEL_INDEX_1 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QDirModel( 1 )->index( hbqt_par_QString( 2 ), hb_parni( 3 ) ) ) ) );
}
/*
* bool isDir ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QDIRMODEL_ISDIR )
{
hb_retl( hbqt_par_QDirModel( 1 )->isDir( *hbqt_par_QModelIndex( 2 ) ) );
}
/*
* bool isReadOnly () const
*/
HB_FUNC( QT_QDIRMODEL_ISREADONLY )
{
hb_retl( hbqt_par_QDirModel( 1 )->isReadOnly() );
}
/*
* bool lazyChildCount () const
*/
HB_FUNC( QT_QDIRMODEL_LAZYCHILDCOUNT )
{
hb_retl( hbqt_par_QDirModel( 1 )->lazyChildCount() );
}
/*
* virtual QMimeData * mimeData ( const QModelIndexList & indexes ) const
*/
HB_FUNC( QT_QDIRMODEL_MIMEDATA )
{
hb_retptr( ( QMimeData* ) hbqt_par_QDirModel( 1 )->mimeData( *hbqt_par_QModelIndexList( 2 ) ) );
}
/*
* virtual QStringList mimeTypes () const
*/
HB_FUNC( QT_QDIRMODEL_MIMETYPES )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QDirModel( 1 )->mimeTypes() ) ) );
}
/*
* QModelIndex mkdir ( const QModelIndex & parent, const QString & name )
*/
HB_FUNC( QT_QDIRMODEL_MKDIR )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QDirModel( 1 )->mkdir( *hbqt_par_QModelIndex( 2 ), hbqt_par_QString( 3 ) ) ) ) );
}
/*
* QStringList nameFilters () const
*/
HB_FUNC( QT_QDIRMODEL_NAMEFILTERS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QDirModel( 1 )->nameFilters() ) ) );
}
/*
* virtual QModelIndex parent ( const QModelIndex & child ) const
*/
HB_FUNC( QT_QDIRMODEL_PARENT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QDirModel( 1 )->parent( *hbqt_par_QModelIndex( 2 ) ) ) ) );
}
/*
* bool remove ( const QModelIndex & index )
*/
HB_FUNC( QT_QDIRMODEL_REMOVE )
{
hb_retl( hbqt_par_QDirModel( 1 )->remove( *hbqt_par_QModelIndex( 2 ) ) );
}
/*
* bool resolveSymlinks () const
*/
HB_FUNC( QT_QDIRMODEL_RESOLVESYMLINKS )
{
hb_retl( hbqt_par_QDirModel( 1 )->resolveSymlinks() );
}
/*
* bool rmdir ( const QModelIndex & index )
*/
HB_FUNC( QT_QDIRMODEL_RMDIR )
{
hb_retl( hbqt_par_QDirModel( 1 )->rmdir( *hbqt_par_QModelIndex( 2 ) ) );
}
/*
* virtual int rowCount ( const QModelIndex & parent = QModelIndex() ) const
*/
HB_FUNC( QT_QDIRMODEL_ROWCOUNT )
{
hb_retni( hbqt_par_QDirModel( 1 )->rowCount( ( HB_ISPOINTER( 2 ) ? *hbqt_par_QModelIndex( 2 ) : QModelIndex() ) ) );
}
/*
* virtual bool setData ( const QModelIndex & index, const QVariant & value, int role = Qt::EditRole )
*/
HB_FUNC( QT_QDIRMODEL_SETDATA )
{
hb_retl( hbqt_par_QDirModel( 1 )->setData( *hbqt_par_QModelIndex( 2 ), *hbqt_par_QVariant( 3 ), ( HB_ISNUM( 4 ) ? hb_parni( 4 ) : Qt::EditRole ) ) );
}
/*
* void setFilter ( QDir::Filters filters )
*/
HB_FUNC( QT_QDIRMODEL_SETFILTER )
{
hbqt_par_QDirModel( 1 )->setFilter( ( QDir::Filters ) hb_parni( 2 ) );
}
/*
* void setIconProvider ( QFileIconProvider * provider )
*/
HB_FUNC( QT_QDIRMODEL_SETICONPROVIDER )
{
hbqt_par_QDirModel( 1 )->setIconProvider( hbqt_par_QFileIconProvider( 2 ) );
}
/*
* void setLazyChildCount ( bool enable )
*/
HB_FUNC( QT_QDIRMODEL_SETLAZYCHILDCOUNT )
{
hbqt_par_QDirModel( 1 )->setLazyChildCount( hb_parl( 2 ) );
}
/*
* void setNameFilters ( const QStringList & filters )
*/
HB_FUNC( QT_QDIRMODEL_SETNAMEFILTERS )
{
hbqt_par_QDirModel( 1 )->setNameFilters( *hbqt_par_QStringList( 2 ) );
}
/*
* void setReadOnly ( bool enable )
*/
HB_FUNC( QT_QDIRMODEL_SETREADONLY )
{
hbqt_par_QDirModel( 1 )->setReadOnly( hb_parl( 2 ) );
}
/*
* void setResolveSymlinks ( bool enable )
*/
HB_FUNC( QT_QDIRMODEL_SETRESOLVESYMLINKS )
{
hbqt_par_QDirModel( 1 )->setResolveSymlinks( hb_parl( 2 ) );
}
/*
* void setSorting ( QDir::SortFlags sort )
*/
HB_FUNC( QT_QDIRMODEL_SETSORTING )
{
hbqt_par_QDirModel( 1 )->setSorting( ( QDir::SortFlags ) hb_parni( 2 ) );
}
/*
* virtual void sort ( int column, Qt::SortOrder order = Qt::AscendingOrder )
*/
HB_FUNC( QT_QDIRMODEL_SORT )
{
hbqt_par_QDirModel( 1 )->sort( hb_parni( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::SortOrder ) hb_parni( 3 ) : ( Qt::SortOrder ) Qt::AscendingOrder ) );
}
/*
* QDir::SortFlags sorting () const
*/
HB_FUNC( QT_QDIRMODEL_SORTING )
{
hb_retni( ( QDir::SortFlags ) hbqt_par_QDirModel( 1 )->sorting() );
}
/*
* virtual Qt::DropActions supportedDropActions () const
*/
HB_FUNC( QT_QDIRMODEL_SUPPORTEDDROPACTIONS )
{
hb_retni( ( Qt::DropActions ) hbqt_par_QDirModel( 1 )->supportedDropActions() );
}
/*
* void refresh ( const QModelIndex & parent = QModelIndex() )
*/
HB_FUNC( QT_QDIRMODEL_REFRESH )
{
hbqt_par_QDirModel( 1 )->refresh( ( HB_ISPOINTER( 2 ) ? *hbqt_par_QModelIndex( 2 ) : QModelIndex() ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,195 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum DockWidgetFeature { DockWidgetClosable, DockWidgetMovable, DockWidgetFloatable, DockWidgetVerticalTitleBar, AllDockWidgetFeatures, NoDockWidgetFeatures }
* flags DockWidgetFeatures
*/
#include <QtCore/QPointer>
#include <QtGui/QDockWidget>
/*
* QDockWidget ( const QString & title, QWidget * parent = 0, Qt::WindowFlags flags = 0 )
* QDockWidget ( QWidget * parent = 0, Qt::WindowFlags flags = 0 )
* ~QDockWidget ()
*/
HB_FUNC( QT_QDOCKWIDGET )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QDockWidget > pObj = NULL;
pObj = new QDockWidget( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* Qt::DockWidgetAreas allowedAreas () const
*/
HB_FUNC( QT_QDOCKWIDGET_ALLOWEDAREAS )
{
hb_retni( ( Qt::DockWidgetAreas ) hbqt_par_QDockWidget( 1 )->allowedAreas() );
}
/*
* DockWidgetFeatures features () const
*/
HB_FUNC( QT_QDOCKWIDGET_FEATURES )
{
hb_retni( ( QDockWidget::DockWidgetFeatures ) hbqt_par_QDockWidget( 1 )->features() );
}
/*
* bool isAreaAllowed ( Qt::DockWidgetArea area ) const
*/
HB_FUNC( QT_QDOCKWIDGET_ISAREAALLOWED )
{
hb_retl( hbqt_par_QDockWidget( 1 )->isAreaAllowed( ( Qt::DockWidgetArea ) hb_parni( 2 ) ) );
}
/*
* bool isFloating () const
*/
HB_FUNC( QT_QDOCKWIDGET_ISFLOATING )
{
hb_retl( hbqt_par_QDockWidget( 1 )->isFloating() );
}
/*
* void setAllowedAreas ( Qt::DockWidgetAreas areas )
*/
HB_FUNC( QT_QDOCKWIDGET_SETALLOWEDAREAS )
{
hbqt_par_QDockWidget( 1 )->setAllowedAreas( ( Qt::DockWidgetAreas ) hb_parni( 2 ) );
}
/*
* void setFeatures ( DockWidgetFeatures features )
*/
HB_FUNC( QT_QDOCKWIDGET_SETFEATURES )
{
hbqt_par_QDockWidget( 1 )->setFeatures( ( QDockWidget::DockWidgetFeatures ) hb_parni( 2 ) );
}
/*
* void setFloating ( bool floating )
*/
HB_FUNC( QT_QDOCKWIDGET_SETFLOATING )
{
hbqt_par_QDockWidget( 1 )->setFloating( hb_parl( 2 ) );
}
/*
* void setTitleBarWidget ( QWidget * widget )
*/
HB_FUNC( QT_QDOCKWIDGET_SETTITLEBARWIDGET )
{
hbqt_par_QDockWidget( 1 )->setTitleBarWidget( hbqt_par_QWidget( 2 ) );
}
/*
* void setWidget ( QWidget * widget )
*/
HB_FUNC( QT_QDOCKWIDGET_SETWIDGET )
{
hbqt_par_QDockWidget( 1 )->setWidget( hbqt_par_QWidget( 2 ) );
}
/*
* QWidget * titleBarWidget () const
*/
HB_FUNC( QT_QDOCKWIDGET_TITLEBARWIDGET )
{
hb_retptr( ( QWidget* ) hbqt_par_QDockWidget( 1 )->titleBarWidget() );
}
/*
* QAction * toggleViewAction () const
*/
HB_FUNC( QT_QDOCKWIDGET_TOGGLEVIEWACTION )
{
hb_retptr( ( QAction* ) hbqt_par_QDockWidget( 1 )->toggleViewAction() );
}
/*
* QWidget * widget () const
*/
HB_FUNC( QT_QDOCKWIDGET_WIDGET )
{
hb_retptr( ( QWidget* ) hbqt_par_QDockWidget( 1 )->widget() );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,236 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QDoubleSpinBox>
/*
* QDoubleSpinBox ( QWidget * parent = 0 )
*/
HB_FUNC( QT_QDOUBLESPINBOX )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QDoubleSpinBox > pObj = NULL;
pObj = ( QDoubleSpinBox* ) new QDoubleSpinBox( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* QString cleanText () const
*/
HB_FUNC( QT_QDOUBLESPINBOX_CLEANTEXT )
{
hb_retc( hbqt_par_QDoubleSpinBox( 1 )->cleanText().toAscii().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().toAscii().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().toAscii().data() );
}
/*
* virtual QString textFromValue ( double value ) const
*/
HB_FUNC( QT_QDOUBLESPINBOX_TEXTFROMVALUE )
{
hb_retc( hbqt_par_QDoubleSpinBox( 1 )->textFromValue( hb_parnd( 2 ) ).toAscii().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 ) ) );
}
/*
* void setValue ( double val )
*/
HB_FUNC( QT_QDOUBLESPINBOX_SETVALUE )
{
hbqt_par_QDoubleSpinBox( 1 )->setValue( hb_parnd( 2 ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,84 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QDragEnterEvent>
/*
* QDragEnterEvent ( const QPoint & point, Qt::DropActions actions, const QMimeData * data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers )
*/
HB_FUNC( QT_QDRAGENTEREVENT )
{
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,84 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QDragLeaveEvent>
/*
* QDragLeaveEvent ()
*/
HB_FUNC( QT_QDRAGLEAVEEVENT )
{
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,125 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QDragMoveEvent>
/*
* QDragMoveEvent ( const QPoint & pos, Qt::DropActions actions, const QMimeData * data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Type type = DragMove )
* ~QDragMoveEvent ()
*/
HB_FUNC( QT_QDRAGMOVEEVENT )
{
}
/*
* void accept ( const QRect & rectangle )
*/
HB_FUNC( QT_QDRAGMOVEEVENT_ACCEPT )
{
hbqt_par_QDragMoveEvent( 1 )->accept( *hbqt_par_QRect( 2 ) );
}
/*
* void accept ()
*/
HB_FUNC( QT_QDRAGMOVEEVENT_ACCEPT_1 )
{
hbqt_par_QDragMoveEvent( 1 )->accept();
}
/*
* QRect answerRect () const
*/
HB_FUNC( QT_QDRAGMOVEEVENT_ANSWERRECT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QDragMoveEvent( 1 )->answerRect() ) ) );
}
/*
* void ignore ( const QRect & rectangle )
*/
HB_FUNC( QT_QDRAGMOVEEVENT_IGNORE )
{
hbqt_par_QDragMoveEvent( 1 )->ignore( *hbqt_par_QRect( 2 ) );
}
/*
* void ignore ()
*/
HB_FUNC( QT_QDRAGMOVEEVENT_IGNORE_1 )
{
hbqt_par_QDragMoveEvent( 1 )->ignore();
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,164 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QDropEvent>
/*
* QDropEvent ( const QPoint & pos, Qt::DropActions actions, const QMimeData * data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Type type = Drop )
*/
HB_FUNC( QT_QDROPEVENT )
{
}
/*
* void acceptProposedAction ()
*/
HB_FUNC( QT_QDROPEVENT_ACCEPTPROPOSEDACTION )
{
hbqt_par_QDropEvent( 1 )->acceptProposedAction();
}
/*
* Qt::DropAction dropAction () const
*/
HB_FUNC( QT_QDROPEVENT_DROPACTION )
{
hb_retni( ( Qt::DropAction ) hbqt_par_QDropEvent( 1 )->dropAction() );
}
/*
* Qt::KeyboardModifiers keyboardModifiers () const
*/
HB_FUNC( QT_QDROPEVENT_KEYBOARDMODIFIERS )
{
hb_retni( ( Qt::KeyboardModifiers ) hbqt_par_QDropEvent( 1 )->keyboardModifiers() );
}
/*
* const QMimeData * mimeData () const
*/
HB_FUNC( QT_QDROPEVENT_MIMEDATA )
{
hb_retptr( ( QMimeData* ) hbqt_par_QDropEvent( 1 )->mimeData() );
}
/*
* Qt::MouseButtons mouseButtons () const
*/
HB_FUNC( QT_QDROPEVENT_MOUSEBUTTONS )
{
hb_retni( ( Qt::MouseButtons ) hbqt_par_QDropEvent( 1 )->mouseButtons() );
}
/*
* const QPoint & pos () const
*/
HB_FUNC( QT_QDROPEVENT_POS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QPoint( hbqt_par_QDropEvent( 1 )->pos() ) ) );
}
/*
* Qt::DropActions possibleActions () const
*/
HB_FUNC( QT_QDROPEVENT_POSSIBLEACTIONS )
{
hb_retni( ( Qt::DropActions ) hbqt_par_QDropEvent( 1 )->possibleActions() );
}
/*
* Qt::DropAction proposedAction () const
*/
HB_FUNC( QT_QDROPEVENT_PROPOSEDACTION )
{
hb_retni( ( Qt::DropAction ) hbqt_par_QDropEvent( 1 )->proposedAction() );
}
/*
* void setDropAction ( Qt::DropAction action )
*/
HB_FUNC( QT_QDROPEVENT_SETDROPACTION )
{
hbqt_par_QDropEvent( 1 )->setDropAction( ( Qt::DropAction ) hb_parni( 2 ) );
}
/*
* QWidget * source () const
*/
HB_FUNC( QT_QDROPEVENT_SOURCE )
{
hb_retptr( ( QWidget* ) hbqt_par_QDropEvent( 1 )->source() );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,110 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* Constructed[ 1/2 [ 50.00% ] ]
*
* *** Unconvered Prototypes ***
* -----------------------------
*
* oid showMessage ( const QString & message )
*/
#include <QtCore/QPointer>
#include <QtGui/QErrorMessage>
/*
* QErrorMessage ( QWidget * parent = 0 )
* ~QErrorMessage ()
*/
HB_FUNC( QT_QERRORMESSAGE )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QErrorMessage > pObj = NULL;
pObj = ( QErrorMessage* ) new QErrorMessage( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* void showMessage ( const QString & message, const QString & type )
*/
HB_FUNC( QT_QERRORMESSAGE_SHOWMESSAGE )
{
hbqt_par_QErrorMessage( 1 )->showMessage( hbqt_par_QString( 2 ), hbqt_par_QString( 3 ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,150 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum Type { None, AccessibilityDescription, AccessibilityHelp, AccessibilityPrepare, ..., MaxUser }
*/
#include <QtCore/QPointer>
#include <QtCore/QEvent>
/*
* QEvent ( Type type )
* virtual ~QEvent ()
*/
HB_FUNC( QT_QEVENT )
{
void * pObj = NULL;
pObj = ( QEvent* ) new QEvent( ( QEvent::Type ) hb_parni( 1 ) ) ;
hb_retptr( pObj );
}
/*
* void accept ()
*/
HB_FUNC( QT_QEVENT_ACCEPT )
{
hbqt_par_QEvent( 1 )->accept();
}
/*
* void ignore ()
*/
HB_FUNC( QT_QEVENT_IGNORE )
{
hbqt_par_QEvent( 1 )->ignore();
}
/*
* bool isAccepted () const
*/
HB_FUNC( QT_QEVENT_ISACCEPTED )
{
hb_retl( hbqt_par_QEvent( 1 )->isAccepted() );
}
/*
* void setAccepted ( bool accepted )
*/
HB_FUNC( QT_QEVENT_SETACCEPTED )
{
hbqt_par_QEvent( 1 )->setAccepted( hb_parl( 2 ) );
}
/*
* bool spontaneous () const
*/
HB_FUNC( QT_QEVENT_SPONTANEOUS )
{
hb_retl( hbqt_par_QEvent( 1 )->spontaneous() );
}
/*
* Type type () const
*/
HB_FUNC( QT_QEVENT_TYPE )
{
hb_retni( ( QEvent::Type ) hbqt_par_QEvent( 1 )->type() );
}
/*
* int registerEventType ( int hint = -1 )
*/
HB_FUNC( QT_QEVENT_REGISTEREVENTTYPE )
{
hb_retni( hbqt_par_QEvent( 1 )->registerEventType( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : -1 ) ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,146 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum ProcessEventsFlag { AllEvents, ExcludeUserInputEvents, ExcludeSocketNotifiers, WaitForMoreEvents, DeferredDeletion }
* flags ProcessEventsFlags
*/
#include <QtCore/QPointer>
#include <QtCore/QEventLoop>
#include <QtCore/QEvent>
/*
* QEventLoop ( QObject * parent = 0 )
* ~QEventLoop ()
*/
HB_FUNC( QT_QEVENTLOOP )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QEventLoop > pObj = NULL;
pObj = new QEventLoop( hbqt_par_QObject( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* int exec ( ProcessEventsFlags flags = AllEvents )
*/
HB_FUNC( QT_QEVENTLOOP_EXEC )
{
hb_retni( hbqt_par_QEventLoop( 1 )->exec( ( HB_ISNUM( 2 ) ? ( QEventLoop::ProcessEventsFlags ) hb_parni( 2 ) : ( QEventLoop::ProcessEventsFlags ) QEventLoop::AllEvents ) ) );
}
/*
* void exit ( int returnCode = 0 )
*/
HB_FUNC( QT_QEVENTLOOP_EXIT )
{
hbqt_par_QEventLoop( 1 )->exit( hb_parni( 2 ) );
}
/*
* bool isRunning () const
*/
HB_FUNC( QT_QEVENTLOOP_ISRUNNING )
{
hb_retl( hbqt_par_QEventLoop( 1 )->isRunning() );
}
/*
* bool processEvents ( ProcessEventsFlags flags = AllEvents )
*/
HB_FUNC( QT_QEVENTLOOP_PROCESSEVENTS )
{
hb_retl( hbqt_par_QEventLoop( 1 )->processEvents( ( HB_ISNUM( 2 ) ? ( QEventLoop::ProcessEventsFlags ) hb_parni( 2 ) : ( QEventLoop::ProcessEventsFlags ) QEventLoop::AllEvents ) ) );
}
/*
* void processEvents ( ProcessEventsFlags flags, int maxTime )
*/
HB_FUNC( QT_QEVENTLOOP_PROCESSEVENTS_1 )
{
hbqt_par_QEventLoop( 1 )->processEvents( ( QEventLoop::ProcessEventsFlags ) hb_parni( 2 ), hb_parni( 3 ) );
}
/*
* void wakeUp ()
*/
HB_FUNC( QT_QEVENTLOOP_WAKEUP )
{
hbqt_par_QEventLoop( 1 )->wakeUp();
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,491 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum AcceptMode { AcceptOpen, AcceptSave }
* enum DialogLabel { LookIn, FileName, FileType, Accept, Reject }
* enum FileMode { AnyFile, ExistingFile, Directory, ExistingFiles, DirectoryOnly }
* enum Option { ShowDirsOnly, DontResolveSymlinks, DontConfirmOverwrite, DontUseNativeDialog, ..., DontUseSheet }
* flags Options
* enum ViewMode { Detail, List }
*/
/*
* Constructed[ 45/51 [ 88.24% ] ]
*
* *** Unconvered Prototypes ***
* -----------------------------
*
* void setSidebarUrls ( const QList<QUrl> & urls )
* QList<QUrl> sidebarUrls () const
*
* *** Commented out protos which construct fine but do not compile ***
*
* // void open ( QObject * receiver, const char * member )
* //QString getOpenFileName ( QWidget * parent = 0, const QString & caption = QString(), const QString & dir = QString(), const QString & filter = QString(), QString * selectedFilter = 0, Options options = 0 )
* //QStringList getOpenFileNames ( QWidget * parent = 0, const QString & caption = QString(), const QString & dir = QString(), const QString & filter = QString(), QString * selectedFilter = 0, Options options = 0 )
* //QString getSaveFileName ( QWidget * parent = 0, const QString & caption = QString(), const QString & dir = QString(), const QString & filter = QString(), QString * selectedFilter = 0, Options options = 0 )
*/
#include <QtCore/QPointer>
#include <QtGui/QFileDialog>
/*
* QFileDialog ( QWidget * parent, Qt::WindowFlags flags )
* QFileDialog ( QWidget * parent = 0, const QString & caption = QString(), const QString & directory = QString(), const QString & filter = QString() )
* ~QFileDialog ()
*/
HB_FUNC( QT_QFILEDIALOG )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QFileDialog > pObj = NULL;
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
pObj = new QFileDialog( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) 0 ) ;
}
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISNUM( 2 ) )
{
pObj = new QFileDialog( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ;
}
else
{
pObj = new QFileDialog() ;
}
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* AcceptMode acceptMode () const
*/
HB_FUNC( QT_QFILEDIALOG_ACCEPTMODE )
{
hb_retni( ( QFileDialog::AcceptMode ) 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().toAscii().data() );
}
/*
* QDir directory () const
*/
HB_FUNC( QT_QFILEDIALOG_DIRECTORY )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDir( hbqt_par_QFileDialog( 1 )->directory() ) ) );
}
/*
* FileMode fileMode () const
*/
HB_FUNC( QT_QFILEDIALOG_FILEMODE )
{
hb_retni( ( QFileDialog::FileMode ) hbqt_par_QFileDialog( 1 )->fileMode() );
}
/*
* QDir::Filters filter () const
*/
HB_FUNC( QT_QFILEDIALOG_FILTER )
{
hb_retni( ( QDir::Filters ) hbqt_par_QFileDialog( 1 )->filter() );
}
/*
* QStringList history () const
*/
HB_FUNC( QT_QFILEDIALOG_HISTORY )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QFileDialog( 1 )->history() ) ) );
}
/*
* 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 ) ).toAscii().data() );
}
/*
* QStringList nameFilters () const
*/
HB_FUNC( QT_QFILEDIALOG_NAMEFILTERS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QFileDialog( 1 )->nameFilters() ) ) );
}
/*
* Options options () const
*/
HB_FUNC( QT_QFILEDIALOG_OPTIONS )
{
hb_retni( ( QFileDialog::Options ) 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() );
}
/*
* bool restoreState ( const QByteArray & state )
*/
HB_FUNC( QT_QFILEDIALOG_RESTORESTATE )
{
hb_retl( hbqt_par_QFileDialog( 1 )->restoreState( *hbqt_par_QByteArray( 2 ) ) );
}
/*
* QByteArray saveState () const
*/
HB_FUNC( QT_QFILEDIALOG_SAVESTATE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QByteArray( hbqt_par_QFileDialog( 1 )->saveState() ) ) );
}
/*
* 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 ) );
}
/*
* QStringList selectedFiles () const
*/
HB_FUNC( QT_QFILEDIALOG_SELECTEDFILES )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QFileDialog( 1 )->selectedFiles() ) ) );
}
/*
* QString selectedNameFilter () const
*/
HB_FUNC( QT_QFILEDIALOG_SELECTEDNAMEFILTER )
{
hb_retc( hbqt_par_QFileDialog( 1 )->selectedNameFilter().toAscii().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 setDirectory ( const QDir & directory )
*/
HB_FUNC( QT_QFILEDIALOG_SETDIRECTORY_1 )
{
hbqt_par_QFileDialog( 1 )->setDirectory( *hbqt_par_QDir( 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 setHistory ( const QStringList & paths )
*/
HB_FUNC( QT_QFILEDIALOG_SETHISTORY )
{
hbqt_par_QFileDialog( 1 )->setHistory( *hbqt_par_QStringList( 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 setNameFilters ( const QStringList & filters )
*/
HB_FUNC( QT_QFILEDIALOG_SETNAMEFILTERS )
{
hbqt_par_QFileDialog( 1 )->setNameFilters( *hbqt_par_QStringList( 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( ( QFileDialog::ViewMode ) hbqt_par_QFileDialog( 1 )->viewMode() );
}
/*
* QString getExistingDirectory ( QWidget * parent = 0, const QString & caption = QString(), const QString & dir = QString(), Options options = ShowDirsOnly )
*/
HB_FUNC( QT_QFILEDIALOG_GETEXISTINGDIRECTORY )
{
hb_retc( hbqt_par_QFileDialog( 1 )->getExistingDirectory( hbqt_par_QWidget( 2 ), hbqt_par_QString( 3 ), hbqt_par_QString( 4 ), ( HB_ISNUM( 5 ) ? ( QFileDialog::Options ) hb_parni( 5 ) : ( QFileDialog::Options ) QFileDialog::ShowDirsOnly ) ).toAscii().data() );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,353 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum Roles { FileIconRole, FilePathRole, FileNameRole, FilePermissions }
*/
#include <QtCore/QPointer>
#include <QtGui/QFileSystemModel>
#include <QtCore/QDateTime>
/*
* QFileSystemModel ( QObject * parent = 0 )
* ~QFileSystemModel ()
*/
HB_FUNC( QT_QFILESYSTEMMODEL )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QFileSystemModel > pObj = NULL;
pObj = ( QFileSystemModel * ) new QFileSystemModel() ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* virtual bool dropMimeData ( const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent )
*/
HB_FUNC( QT_QFILESYSTEMMODEL_DROPMIMEDATA )
{
hb_retl( hbqt_par_QFileSystemModel( 1 )->dropMimeData( hbqt_par_QMimeData( 2 ), ( Qt::DropAction ) hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), *hbqt_par_QModelIndex( 6 ) ) );
}
/*
* QIcon fileIcon ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QFILESYSTEMMODEL_FILEICON )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QIcon( hbqt_par_QFileSystemModel( 1 )->fileIcon( *hbqt_par_QModelIndex( 2 ) ) ) ) );
}
/*
* QFileInfo fileInfo ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QFILESYSTEMMODEL_FILEINFO )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QFileInfo( hbqt_par_QFileSystemModel( 1 )->fileInfo( *hbqt_par_QModelIndex( 2 ) ) ) ) );
}
/*
* QString fileName ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QFILESYSTEMMODEL_FILENAME )
{
hb_retc( hbqt_par_QFileSystemModel( 1 )->fileName( *hbqt_par_QModelIndex( 2 ) ).toAscii().data() );
}
/*
* QString filePath ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QFILESYSTEMMODEL_FILEPATH )
{
hb_retc( hbqt_par_QFileSystemModel( 1 )->filePath( *hbqt_par_QModelIndex( 2 ) ).toAscii().data() );
}
/*
* QDir::Filters filter () const
*/
HB_FUNC( QT_QFILESYSTEMMODEL_FILTER )
{
hb_retni( ( QDir::Filters ) hbqt_par_QFileSystemModel( 1 )->filter() );
}
/*
* QFileIconProvider * iconProvider () const
*/
HB_FUNC( QT_QFILESYSTEMMODEL_ICONPROVIDER )
{
hb_retptr( ( QFileIconProvider* ) hbqt_par_QFileSystemModel( 1 )->iconProvider() );
}
/*
* QModelIndex index ( const QString & path, int column = 0 ) const
*/
HB_FUNC( QT_QFILESYSTEMMODEL_INDEX )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QFileSystemModel( 1 )->index( hbqt_par_QString( 2 ), hb_parni( 3 ) ) ) ) );
}
/*
* bool isDir ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QFILESYSTEMMODEL_ISDIR )
{
hb_retl( hbqt_par_QFileSystemModel( 1 )->isDir( *hbqt_par_QModelIndex( 2 ) ) );
}
/*
* bool isReadOnly () const
*/
HB_FUNC( QT_QFILESYSTEMMODEL_ISREADONLY )
{
hb_retl( hbqt_par_QFileSystemModel( 1 )->isReadOnly() );
}
/*
* QDateTime lastModified ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QFILESYSTEMMODEL_LASTMODIFIED )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QFileSystemModel( 1 )->lastModified( *hbqt_par_QModelIndex( 2 ) ) ) ) );
}
/*
* virtual QMimeData * mimeData ( const QModelIndexList & indexes ) const
*/
HB_FUNC( QT_QFILESYSTEMMODEL_MIMEDATA )
{
hb_retptr( ( QMimeData* ) hbqt_par_QFileSystemModel( 1 )->mimeData( *hbqt_par_QModelIndexList( 2 ) ) );
}
/*
* virtual QStringList mimeTypes () const
*/
HB_FUNC( QT_QFILESYSTEMMODEL_MIMETYPES )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QFileSystemModel( 1 )->mimeTypes() ) ) );
}
/*
* QModelIndex mkdir ( const QModelIndex & parent, const QString & name )
*/
HB_FUNC( QT_QFILESYSTEMMODEL_MKDIR )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QFileSystemModel( 1 )->mkdir( *hbqt_par_QModelIndex( 2 ), hbqt_par_QString( 3 ) ) ) ) );
}
/*
* QVariant myComputer ( int role = Qt::DisplayRole ) const
*/
HB_FUNC( QT_QFILESYSTEMMODEL_MYCOMPUTER )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QVariant( hbqt_par_QFileSystemModel( 1 )->myComputer( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : Qt::DisplayRole ) ) ) ) );
}
/*
* bool nameFilterDisables () const
*/
HB_FUNC( QT_QFILESYSTEMMODEL_NAMEFILTERDISABLES )
{
hb_retl( hbqt_par_QFileSystemModel( 1 )->nameFilterDisables() );
}
/*
* QStringList nameFilters () const
*/
HB_FUNC( QT_QFILESYSTEMMODEL_NAMEFILTERS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QFileSystemModel( 1 )->nameFilters() ) ) );
}
/*
* QFile::Permissions permissions ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QFILESYSTEMMODEL_PERMISSIONS )
{
hb_retni( ( QFile::Permissions ) hbqt_par_QFileSystemModel( 1 )->permissions( *hbqt_par_QModelIndex( 2 ) ) );
}
/*
* bool remove ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QFILESYSTEMMODEL_REMOVE )
{
hb_retl( hbqt_par_QFileSystemModel( 1 )->remove( *hbqt_par_QModelIndex( 2 ) ) );
}
/*
* bool resolveSymlinks () const
*/
HB_FUNC( QT_QFILESYSTEMMODEL_RESOLVESYMLINKS )
{
hb_retl( hbqt_par_QFileSystemModel( 1 )->resolveSymlinks() );
}
/*
* bool rmdir ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QFILESYSTEMMODEL_RMDIR )
{
hb_retl( hbqt_par_QFileSystemModel( 1 )->rmdir( *hbqt_par_QModelIndex( 2 ) ) );
}
/*
* QDir rootDirectory () const
*/
HB_FUNC( QT_QFILESYSTEMMODEL_ROOTDIRECTORY )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QDir( hbqt_par_QFileSystemModel( 1 )->rootDirectory() ) ) );
}
/*
* QString rootPath () const
*/
HB_FUNC( QT_QFILESYSTEMMODEL_ROOTPATH )
{
hb_retc( hbqt_par_QFileSystemModel( 1 )->rootPath().toAscii().data() );
}
/*
* void setFilter ( QDir::Filters filters )
*/
HB_FUNC( QT_QFILESYSTEMMODEL_SETFILTER )
{
hbqt_par_QFileSystemModel( 1 )->setFilter( ( QDir::Filters ) hb_parni( 2 ) );
}
/*
* void setIconProvider ( QFileIconProvider * provider )
*/
HB_FUNC( QT_QFILESYSTEMMODEL_SETICONPROVIDER )
{
hbqt_par_QFileSystemModel( 1 )->setIconProvider( hbqt_par_QFileIconProvider( 2 ) );
}
/*
* void setNameFilterDisables ( bool enable )
*/
HB_FUNC( QT_QFILESYSTEMMODEL_SETNAMEFILTERDISABLES )
{
hbqt_par_QFileSystemModel( 1 )->setNameFilterDisables( hb_parl( 2 ) );
}
/*
* void setNameFilters ( const QStringList & filters )
*/
HB_FUNC( QT_QFILESYSTEMMODEL_SETNAMEFILTERS )
{
hbqt_par_QFileSystemModel( 1 )->setNameFilters( *hbqt_par_QStringList( 2 ) );
}
/*
* void setReadOnly ( bool enable )
*/
HB_FUNC( QT_QFILESYSTEMMODEL_SETREADONLY )
{
hbqt_par_QFileSystemModel( 1 )->setReadOnly( hb_parl( 2 ) );
}
/*
* void setResolveSymlinks ( bool enable )
*/
HB_FUNC( QT_QFILESYSTEMMODEL_SETRESOLVESYMLINKS )
{
hbqt_par_QFileSystemModel( 1 )->setResolveSymlinks( hb_parl( 2 ) );
}
/*
* QModelIndex setRootPath ( const QString & newPath )
*/
HB_FUNC( QT_QFILESYSTEMMODEL_SETROOTPATH )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QFileSystemModel( 1 )->setRootPath( hbqt_par_QString( 2 ) ) ) ) );
}
/*
* qint64 size ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QFILESYSTEMMODEL_SIZE )
{
hb_retnint( hbqt_par_QFileSystemModel( 1 )->size( *hbqt_par_QModelIndex( 2 ) ) );
}
/*
* QString type ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QFILESYSTEMMODEL_TYPE )
{
hb_retc( hbqt_par_QFileSystemModel( 1 )->type( *hbqt_par_QModelIndex( 2 ) ).toAscii().data() );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,108 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QFocusEvent>
/*
* QFocusEvent ( Type type, Qt::FocusReason reason = Qt::OtherFocusReason )
*/
HB_FUNC( QT_QFOCUSEVENT )
{
}
/*
* bool gotFocus () const
*/
HB_FUNC( QT_QFOCUSEVENT_GOTFOCUS )
{
hb_retl( hbqt_par_QFocusEvent( 1 )->gotFocus() );
}
/*
* bool lostFocus () const
*/
HB_FUNC( QT_QFOCUSEVENT_LOSTFOCUS )
{
hb_retl( hbqt_par_QFocusEvent( 1 )->lostFocus() );
}
/*
* Qt::FocusReason reason () const
*/
HB_FUNC( QT_QFOCUSEVENT_REASON )
{
hb_retni( ( Qt::FocusReason ) hbqt_par_QFocusEvent( 1 )->reason() );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,109 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QFocusFrame>
/*
* QFocusFrame ( QWidget * parent = 0 )
* ~QFocusFrame ()
*/
HB_FUNC( QT_QFOCUSFRAME )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QFocusFrame > pObj = NULL;
pObj = ( QFocusFrame* ) new QFocusFrame( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* 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 /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,597 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum Capitalization { MixedCase, AllUppercase, AllLowercase, SmallCaps, Capitalize }
* enum SpacingType { PercentageSpacing, AbsoluteSpacing }
* enum Stretch { UltraCondensed, ExtraCondensed, Condensed, SemiCondensed, ..., UltraExpanded }
* enum Style { StyleNormal, StyleItalic, StyleOblique }
* enum StyleHint { AnyStyle, SansSerif, Helvetica, Serif, ..., System }
* enum StyleStrategy { PreferDefault, PreferBitmap, PreferDevice, PreferOutline, ..., PreferQuality }
* enum Weight { Light, Normal, DemiBold, Bold, Black }
*/
#include <QtCore/QPointer>
#include <QStringList>
#include <QtGui/QFont>
/*
* QFont ()
* QFont ( const QString & family, int pointSize = -1, int weight = -1, bool italic = false )
* QFont ( const QFont & font, QPaintDevice * pd )
* QFont ( const QFont & font )
* ~QFont ()
*/
HB_FUNC( QT_QFONT )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISCHAR( 1 ) )
{
pObj = ( QFont* ) new QFont( hbqt_par_QString( 1 ), -1, -1, false ) ;
}
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISNUM( 2 ) )
{
pObj = ( QFont* ) new QFont( hbqt_par_QString( 1 ), hb_parni( 2 ), -1, false ) ;
}
else if( hb_pcount() == 3 && HB_ISCHAR( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) )
{
pObj = ( QFont* ) new QFont( hbqt_par_QString( 1 ), hb_parni( 2 ), hb_parni( 3 ), false ) ;
}
else if( hb_pcount() == 4 && HB_ISCHAR( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) && HB_ISLOG( 4 ) )
{
pObj = ( QFont* ) new QFont( hbqt_par_QString( 1 ), hb_parni( 2 ), hb_parni( 3 ), hb_parl( 4 ) ) ;
}
else if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
pObj = ( QFont* ) new QFont( *hbqt_par_QFont( 1 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISPOINTER( 2 ) )
{
pObj = ( QFont* ) new QFont( *hbqt_par_QFont( 1 ), hbqt_par_QPaintDevice( 2 ) ) ;
}
else
{
pObj = ( QFont* ) new QFont() ;
}
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QFont" );
hb_retptrGC( p );
}
/*
* bool bold () const
*/
HB_FUNC( QT_QFONT_BOLD )
{
hb_retl( hbqt_par_QFont( 1 )->bold() );
}
/*
* Capitalization capitalization () const
*/
HB_FUNC( QT_QFONT_CAPITALIZATION )
{
hb_retni( ( QFont::Capitalization ) hbqt_par_QFont( 1 )->capitalization() );
}
/*
* QString defaultFamily () const
*/
HB_FUNC( QT_QFONT_DEFAULTFAMILY )
{
hb_retc( hbqt_par_QFont( 1 )->defaultFamily().toAscii().data() );
}
/*
* bool exactMatch () const
*/
HB_FUNC( QT_QFONT_EXACTMATCH )
{
hb_retl( hbqt_par_QFont( 1 )->exactMatch() );
}
/*
* QString family () const
*/
HB_FUNC( QT_QFONT_FAMILY )
{
hb_retc( hbqt_par_QFont( 1 )->family().toAscii().data() );
}
/*
* bool fixedPitch () const
*/
HB_FUNC( QT_QFONT_FIXEDPITCH )
{
hb_retl( hbqt_par_QFont( 1 )->fixedPitch() );
}
/*
* bool fromString ( const QString & descrip )
*/
HB_FUNC( QT_QFONT_FROMSTRING )
{
hb_retl( hbqt_par_QFont( 1 )->fromString( hbqt_par_QString( 2 ) ) );
}
/*
* bool italic () const
*/
HB_FUNC( QT_QFONT_ITALIC )
{
hb_retl( hbqt_par_QFont( 1 )->italic() );
}
/*
* bool kerning () const
*/
HB_FUNC( QT_QFONT_KERNING )
{
hb_retl( hbqt_par_QFont( 1 )->kerning() );
}
/*
* QString key () const
*/
HB_FUNC( QT_QFONT_KEY )
{
hb_retc( hbqt_par_QFont( 1 )->key().toAscii().data() );
}
/*
* QString lastResortFamily () const
*/
HB_FUNC( QT_QFONT_LASTRESORTFAMILY )
{
hb_retc( hbqt_par_QFont( 1 )->lastResortFamily().toAscii().data() );
}
/*
* QString lastResortFont () const
*/
HB_FUNC( QT_QFONT_LASTRESORTFONT )
{
hb_retc( hbqt_par_QFont( 1 )->lastResortFont().toAscii().data() );
}
/*
* qreal letterSpacing () const
*/
HB_FUNC( QT_QFONT_LETTERSPACING )
{
hb_retnd( hbqt_par_QFont( 1 )->letterSpacing() );
}
/*
* SpacingType letterSpacingType () const
*/
HB_FUNC( QT_QFONT_LETTERSPACINGTYPE )
{
hb_retni( ( QFont::SpacingType ) hbqt_par_QFont( 1 )->letterSpacingType() );
}
/*
* bool overline () const
*/
HB_FUNC( QT_QFONT_OVERLINE )
{
hb_retl( hbqt_par_QFont( 1 )->overline() );
}
/*
* int pixelSize () const
*/
HB_FUNC( QT_QFONT_PIXELSIZE )
{
hb_retni( hbqt_par_QFont( 1 )->pixelSize() );
}
/*
* int pointSize () const
*/
HB_FUNC( QT_QFONT_POINTSIZE )
{
hb_retni( hbqt_par_QFont( 1 )->pointSize() );
}
/*
* qreal pointSizeF () const
*/
HB_FUNC( QT_QFONT_POINTSIZEF )
{
hb_retnd( hbqt_par_QFont( 1 )->pointSizeF() );
}
/*
* bool rawMode () const
*/
HB_FUNC( QT_QFONT_RAWMODE )
{
hb_retl( hbqt_par_QFont( 1 )->rawMode() );
}
/*
* QString rawName () const
*/
HB_FUNC( QT_QFONT_RAWNAME )
{
hb_retc( hbqt_par_QFont( 1 )->rawName().toAscii().data() );
}
/*
* void setBold ( bool enable )
*/
HB_FUNC( QT_QFONT_SETBOLD )
{
hbqt_par_QFont( 1 )->setBold( hb_parl( 2 ) );
}
/*
* void setCapitalization ( Capitalization caps )
*/
HB_FUNC( QT_QFONT_SETCAPITALIZATION )
{
hbqt_par_QFont( 1 )->setCapitalization( ( QFont::Capitalization ) hb_parni( 2 ) );
}
/*
* void setFamily ( const QString & family )
*/
HB_FUNC( QT_QFONT_SETFAMILY )
{
hbqt_par_QFont( 1 )->setFamily( hbqt_par_QString( 2 ) );
}
/*
* void setFixedPitch ( bool enable )
*/
HB_FUNC( QT_QFONT_SETFIXEDPITCH )
{
hbqt_par_QFont( 1 )->setFixedPitch( hb_parl( 2 ) );
}
/*
* void setItalic ( bool enable )
*/
HB_FUNC( QT_QFONT_SETITALIC )
{
hbqt_par_QFont( 1 )->setItalic( hb_parl( 2 ) );
}
/*
* void setKerning ( bool enable )
*/
HB_FUNC( QT_QFONT_SETKERNING )
{
hbqt_par_QFont( 1 )->setKerning( hb_parl( 2 ) );
}
/*
* void setLetterSpacing ( SpacingType type, qreal spacing )
*/
HB_FUNC( QT_QFONT_SETLETTERSPACING )
{
hbqt_par_QFont( 1 )->setLetterSpacing( ( QFont::SpacingType ) hb_parni( 2 ), hb_parnd( 3 ) );
}
/*
* void setOverline ( bool enable )
*/
HB_FUNC( QT_QFONT_SETOVERLINE )
{
hbqt_par_QFont( 1 )->setOverline( hb_parl( 2 ) );
}
/*
* void setPixelSize ( int pixelSize )
*/
HB_FUNC( QT_QFONT_SETPIXELSIZE )
{
hbqt_par_QFont( 1 )->setPixelSize( hb_parni( 2 ) );
}
/*
* void setPointSize ( int pointSize )
*/
HB_FUNC( QT_QFONT_SETPOINTSIZE )
{
hbqt_par_QFont( 1 )->setPointSize( hb_parni( 2 ) );
}
/*
* void setPointSizeF ( qreal pointSize )
*/
HB_FUNC( QT_QFONT_SETPOINTSIZEF )
{
hbqt_par_QFont( 1 )->setPointSizeF( hb_parnd( 2 ) );
}
/*
* void setRawMode ( bool enable )
*/
HB_FUNC( QT_QFONT_SETRAWMODE )
{
hbqt_par_QFont( 1 )->setRawMode( hb_parl( 2 ) );
}
/*
* void setRawName ( const QString & name )
*/
HB_FUNC( QT_QFONT_SETRAWNAME )
{
hbqt_par_QFont( 1 )->setRawName( hbqt_par_QString( 2 ) );
}
/*
* void setStretch ( int factor )
*/
HB_FUNC( QT_QFONT_SETSTRETCH )
{
hbqt_par_QFont( 1 )->setStretch( hb_parni( 2 ) );
}
/*
* void setStrikeOut ( bool enable )
*/
HB_FUNC( QT_QFONT_SETSTRIKEOUT )
{
hbqt_par_QFont( 1 )->setStrikeOut( hb_parl( 2 ) );
}
/*
* void setStyle ( Style style )
*/
HB_FUNC( QT_QFONT_SETSTYLE )
{
hbqt_par_QFont( 1 )->setStyle( ( QFont::Style ) hb_parni( 2 ) );
}
/*
* void setStyleHint ( StyleHint hint, StyleStrategy strategy = PreferDefault )
*/
HB_FUNC( QT_QFONT_SETSTYLEHINT )
{
hbqt_par_QFont( 1 )->setStyleHint( ( QFont::StyleHint ) hb_parni( 2 ), ( HB_ISNUM( 3 ) ? ( QFont::StyleStrategy ) hb_parni( 3 ) : ( QFont::StyleStrategy ) QFont::PreferDefault ) );
}
/*
* void setStyleStrategy ( StyleStrategy s )
*/
HB_FUNC( QT_QFONT_SETSTYLESTRATEGY )
{
hbqt_par_QFont( 1 )->setStyleStrategy( ( QFont::StyleStrategy ) hb_parni( 2 ) );
}
/*
* void setUnderline ( bool enable )
*/
HB_FUNC( QT_QFONT_SETUNDERLINE )
{
hbqt_par_QFont( 1 )->setUnderline( hb_parl( 2 ) );
}
/*
* void setWeight ( int weight )
*/
HB_FUNC( QT_QFONT_SETWEIGHT )
{
hbqt_par_QFont( 1 )->setWeight( hb_parni( 2 ) );
}
/*
* void setWordSpacing ( qreal spacing )
*/
HB_FUNC( QT_QFONT_SETWORDSPACING )
{
hbqt_par_QFont( 1 )->setWordSpacing( hb_parnd( 2 ) );
}
/*
* int stretch () const
*/
HB_FUNC( QT_QFONT_STRETCH )
{
hb_retni( hbqt_par_QFont( 1 )->stretch() );
}
/*
* bool strikeOut () const
*/
HB_FUNC( QT_QFONT_STRIKEOUT )
{
hb_retl( hbqt_par_QFont( 1 )->strikeOut() );
}
/*
* Style style () const
*/
HB_FUNC( QT_QFONT_STYLE )
{
hb_retni( ( QFont::Style ) hbqt_par_QFont( 1 )->style() );
}
/*
* StyleHint styleHint () const
*/
HB_FUNC( QT_QFONT_STYLEHINT )
{
hb_retni( ( QFont::StyleHint ) hbqt_par_QFont( 1 )->styleHint() );
}
/*
* StyleStrategy styleStrategy () const
*/
HB_FUNC( QT_QFONT_STYLESTRATEGY )
{
hb_retni( ( QFont::StyleStrategy ) hbqt_par_QFont( 1 )->styleStrategy() );
}
/*
* QString toString () const
*/
HB_FUNC( QT_QFONT_TOSTRING )
{
hb_retc( hbqt_par_QFont( 1 )->toString().toAscii().data() );
}
/*
* bool underline () const
*/
HB_FUNC( QT_QFONT_UNDERLINE )
{
hb_retl( hbqt_par_QFont( 1 )->underline() );
}
/*
* int weight () const
*/
HB_FUNC( QT_QFONT_WEIGHT )
{
hb_retni( hbqt_par_QFont( 1 )->weight() );
}
/*
* qreal wordSpacing () const
*/
HB_FUNC( QT_QFONT_WORDSPACING )
{
hb_retnd( hbqt_par_QFont( 1 )->wordSpacing() );
}
/*
* void cleanup ()
*/
HB_FUNC( QT_QFONT_CLEANUP )
{
hbqt_par_QFont( 1 )->cleanup();
}
/*
* void initialize ()
*/
HB_FUNC( QT_QFONT_INITIALIZE )
{
hbqt_par_QFont( 1 )->initialize();
}
/*
* void insertSubstitution ( const QString & familyName, const QString & substituteName )
*/
HB_FUNC( QT_QFONT_INSERTSUBSTITUTION )
{
hbqt_par_QFont( 1 )->insertSubstitution( hbqt_par_QString( 2 ), hbqt_par_QString( 3 ) );
}
/*
* void insertSubstitutions ( const QString & familyName, const QStringList & substituteNames )
*/
HB_FUNC( QT_QFONT_INSERTSUBSTITUTIONS )
{
hbqt_par_QFont( 1 )->insertSubstitutions( hbqt_par_QString( 2 ), *hbqt_par_QStringList( 3 ) );
}
/*
* void removeSubstitution ( const QString & familyName )
*/
HB_FUNC( QT_QFONT_REMOVESUBSTITUTION )
{
hbqt_par_QFont( 1 )->removeSubstitution( hbqt_par_QString( 2 ) );
}
/*
* QString substitute ( const QString & familyName )
*/
HB_FUNC( QT_QFONT_SUBSTITUTE )
{
hb_retc( hbqt_par_QFont( 1 )->substitute( hbqt_par_QString( 2 ) ).toAscii().data() );
}
/*
* QStringList substitutes ( const QString & familyName )
*/
HB_FUNC( QT_QFONT_SUBSTITUTES )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QFont( 1 )->substitutes( hbqt_par_QString( 2 ) ) ) ) );
}
/*
* QStringList substitutions ()
*/
HB_FUNC( QT_QFONT_SUBSTITUTIONS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QFont( 1 )->substitutions() ) ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,146 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum FontFilter { AllFonts, ScalableFonts, NonScalableFonts, MonospacedFonts, ProportionalFonts }
* flags FontFilters
*/
#include <QtCore/QPointer>
#include <QtGui/QFontComboBox>
/*
* QFontComboBox ( QWidget * parent = 0 )
* ~QFontComboBox ()
*/
HB_FUNC( QT_QFONTCOMBOBOX )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QFontComboBox > pObj = NULL;
pObj = ( QFontComboBox * ) new QFontComboBox( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* QFont currentFont () const
*/
HB_FUNC( QT_QFONTCOMBOBOX_CURRENTFONT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QFontComboBox( 1 )->currentFont() ) ) );
}
/*
* FontFilters fontFilters () const
*/
HB_FUNC( QT_QFONTCOMBOBOX_FONTFILTERS )
{
hb_retni( ( QFontComboBox::FontFilters ) 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( ( QFontDatabase::WritingSystem ) hbqt_par_QFontComboBox( 1 )->writingSystem() );
}
/*
* void setCurrentFont ( const QFont & font )
*/
HB_FUNC( QT_QFONTCOMBOBOX_SETCURRENTFONT )
{
hbqt_par_QFontComboBox( 1 )->setCurrentFont( *hbqt_par_QFont( 2 ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,267 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum WritingSystem { Any, Latin, Greek, Cyrillic, ..., Runic }
*/
/*
* Constructed[ 20/25 [ 80.00% ] ]
*
* *** Unconvered Prototypes ***
* -----------------------------
*
* QList<int> pointSizes ( const QString & family, const QString & style = QString() )
* QList<int> smoothSizes ( const QString & family, const QString & style )
* QList<WritingSystem> writingSystems () const
* QList<WritingSystem> writingSystems ( const QString & family ) const
* QList<int> standardSizes ()
*/
#include <QtCore/QPointer>
#include <QStringList>
#include <QtGui/QFontDatabase>
/*
* QFontDatabase ()
*/
HB_FUNC( QT_QFONTDATABASE )
{
void * pObj = NULL;
pObj = new QFontDatabase() ;
hb_retptr( pObj );
}
/*
* bool bold ( const QString & family, const QString & style ) const
*/
HB_FUNC( QT_QFONTDATABASE_BOLD )
{
hb_retl( hbqt_par_QFontDatabase( 1 )->bold( hbqt_par_QString( 2 ), hbqt_par_QString( 3 ) ) );
}
/*
* QStringList families ( WritingSystem writingSystem = Any ) const
*/
HB_FUNC( QT_QFONTDATABASE_FAMILIES )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QFontDatabase( 1 )->families( ( HB_ISNUM( 2 ) ? ( QFontDatabase::WritingSystem ) hb_parni( 2 ) : ( QFontDatabase::WritingSystem ) QFontDatabase::Any ) ) ) ) );
}
/*
* QFont font ( const QString & family, const QString & style, int pointSize ) const
*/
HB_FUNC( QT_QFONTDATABASE_FONT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QFontDatabase( 1 )->font( hbqt_par_QString( 2 ), hbqt_par_QString( 3 ), hb_parni( 4 ) ) ) ) );
}
/*
* bool isBitmapScalable ( const QString & family, const QString & style = QString() ) const
*/
HB_FUNC( QT_QFONTDATABASE_ISBITMAPSCALABLE )
{
hb_retl( hbqt_par_QFontDatabase( 1 )->isBitmapScalable( hbqt_par_QString( 2 ), hbqt_par_QString( 3 ) ) );
}
/*
* bool isFixedPitch ( const QString & family, const QString & style = QString() ) const
*/
HB_FUNC( QT_QFONTDATABASE_ISFIXEDPITCH )
{
hb_retl( hbqt_par_QFontDatabase( 1 )->isFixedPitch( hbqt_par_QString( 2 ), hbqt_par_QString( 3 ) ) );
}
/*
* bool isScalable ( const QString & family, const QString & style = QString() ) const
*/
HB_FUNC( QT_QFONTDATABASE_ISSCALABLE )
{
hb_retl( hbqt_par_QFontDatabase( 1 )->isScalable( hbqt_par_QString( 2 ), hbqt_par_QString( 3 ) ) );
}
/*
* bool isSmoothlyScalable ( const QString & family, const QString & style = QString() ) const
*/
HB_FUNC( QT_QFONTDATABASE_ISSMOOTHLYSCALABLE )
{
hb_retl( hbqt_par_QFontDatabase( 1 )->isSmoothlyScalable( hbqt_par_QString( 2 ), hbqt_par_QString( 3 ) ) );
}
/*
* bool italic ( const QString & family, const QString & style ) const
*/
HB_FUNC( QT_QFONTDATABASE_ITALIC )
{
hb_retl( hbqt_par_QFontDatabase( 1 )->italic( hbqt_par_QString( 2 ), hbqt_par_QString( 3 ) ) );
}
/*
* QString styleString ( const QFont & font )
*/
HB_FUNC( QT_QFONTDATABASE_STYLESTRING )
{
hb_retc( hbqt_par_QFontDatabase( 1 )->styleString( *hbqt_par_QFont( 2 ) ).toAscii().data() );
}
/*
* QString styleString ( const QFontInfo & fontInfo )
*/
HB_FUNC( QT_QFONTDATABASE_STYLESTRING_1 )
{
hb_retc( hbqt_par_QFontDatabase( 1 )->styleString( *hbqt_par_QFontInfo( 2 ) ).toAscii().data() );
}
/*
* QStringList styles ( const QString & family ) const
*/
HB_FUNC( QT_QFONTDATABASE_STYLES )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QFontDatabase( 1 )->styles( hbqt_par_QString( 2 ) ) ) ) );
}
/*
* int weight ( const QString & family, const QString & style ) const
*/
HB_FUNC( QT_QFONTDATABASE_WEIGHT )
{
hb_retni( hbqt_par_QFontDatabase( 1 )->weight( hbqt_par_QString( 2 ), hbqt_par_QString( 3 ) ) );
}
/*
* int addApplicationFont ( const QString & fileName )
*/
HB_FUNC( QT_QFONTDATABASE_ADDAPPLICATIONFONT )
{
hb_retni( hbqt_par_QFontDatabase( 1 )->addApplicationFont( hbqt_par_QString( 2 ) ) );
}
/*
* int addApplicationFontFromData ( const QByteArray & fontData )
*/
HB_FUNC( QT_QFONTDATABASE_ADDAPPLICATIONFONTFROMDATA )
{
hb_retni( hbqt_par_QFontDatabase( 1 )->addApplicationFontFromData( *hbqt_par_QByteArray( 2 ) ) );
}
/*
* QStringList applicationFontFamilies ( int id )
*/
HB_FUNC( QT_QFONTDATABASE_APPLICATIONFONTFAMILIES )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QFontDatabase( 1 )->applicationFontFamilies( hb_parni( 2 ) ) ) ) );
}
/*
* bool removeAllApplicationFonts ()
*/
HB_FUNC( QT_QFONTDATABASE_REMOVEALLAPPLICATIONFONTS )
{
hb_retl( hbqt_par_QFontDatabase( 1 )->removeAllApplicationFonts() );
}
/*
* bool removeApplicationFont ( int id )
*/
HB_FUNC( QT_QFONTDATABASE_REMOVEAPPLICATIONFONT )
{
hb_retl( hbqt_par_QFontDatabase( 1 )->removeApplicationFont( hb_parni( 2 ) ) );
}
/*
* bool supportsThreadedFontRendering ()
*/
HB_FUNC( QT_QFONTDATABASE_SUPPORTSTHREADEDFONTRENDERING )
{
hb_retl( hbqt_par_QFontDatabase( 1 )->supportsThreadedFontRendering() );
}
/*
* QString writingSystemName ( WritingSystem writingSystem )
*/
HB_FUNC( QT_QFONTDATABASE_WRITINGSYSTEMNAME )
{
hb_retc( hbqt_par_QFontDatabase( 1 )->writingSystemName( ( QFontDatabase::WritingSystem ) hb_parni( 2 ) ).toAscii().data() );
}
/*
* QString writingSystemSample ( WritingSystem writingSystem )
*/
HB_FUNC( QT_QFONTDATABASE_WRITINGSYSTEMSAMPLE )
{
hb_retc( hbqt_par_QFontDatabase( 1 )->writingSystemSample( ( QFontDatabase::WritingSystem ) hb_parni( 2 ) ).toAscii().data() );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,225 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum FontDialogOption { NoButtons, DontUseNativeDialog }
* flags FontDialogOptions
*/
#include <QtCore/QPointer>
#include <QtGui/QFontDialog>
/*
* QFontDialog ( QWidget * parent = 0 )
* QFontDialog ( const QFont & initial, QWidget * parent = 0 )
*/
HB_FUNC( QT_QFONTDIALOG )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QFontDialog > pObj = NULL;
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
pObj = new QFontDialog( hbqt_par_QWidget( 1 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISPOINTER( 2 ) )
{
pObj = new QFontDialog( *hbqt_par_QFont( 1 ), hbqt_par_QWidget( 2 ) ) ;
}
else
{
pObj = new QFontDialog( 0 ) ;
}
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* QFont currentFont () const
*/
HB_FUNC( QT_QFONTDIALOG_CURRENTFONT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QFontDialog( 1 )->currentFont() ) ) );
}
/*
* FontDialogOptions options () const
*/
HB_FUNC( QT_QFONTDIALOG_OPTIONS )
{
hb_retni( ( QFontDialog::FontDialogOptions ) hbqt_par_QFontDialog( 1 )->options() );
}
/*
* QFont selectedFont () const
*/
HB_FUNC( QT_QFONTDIALOG_SELECTEDFONT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QFontDialog( 1 )->selectedFont() ) ) );
}
/*
* void setCurrentFont ( const QFont & font )
*/
HB_FUNC( QT_QFONTDIALOG_SETCURRENTFONT )
{
hbqt_par_QFontDialog( 1 )->setCurrentFont( *hbqt_par_QFont( 2 ) );
}
/*
* 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 ) ) );
}
/*
* QFont getFont ( bool * ok, const QFont & initial, QWidget * parent, const QString & title, FontDialogOptions options )
*/
HB_FUNC( QT_QFONTDIALOG_GETFONT )
{
bool iOk = 0;
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QFontDialog( 1 )->getFont( &iOk, *hbqt_par_QFont( 3 ), hbqt_par_QWidget( 4 ), hbqt_par_QString( 5 ), ( QFontDialog::FontDialogOptions ) hb_parni( 6 ) ) ) ) );
hb_stornl( iOk, 2 );
}
/*
* QFont getFont ( bool * ok, const QFont & initial, QWidget * parent, const char * name )
*/
HB_FUNC( QT_QFONTDIALOG_GETFONT_1 )
{
bool iOk = 0;
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QFontDialog( 1 )->getFont( &iOk, *hbqt_par_QFont( 3 ), hbqt_par_QWidget( 4 ), hbqt_par_char( 5 ) ) ) ) );
hb_stornl( iOk, 2 );
}
/*
* QFont getFont ( bool * ok, const QFont & initial, QWidget * parent, const QString & title )
*/
HB_FUNC( QT_QFONTDIALOG_GETFONT_2 )
{
bool iOk = 0;
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QFontDialog( 1 )->getFont( &iOk, *hbqt_par_QFont( 3 ), hbqt_par_QWidget( 4 ), hbqt_par_QString( 5 ) ) ) ) );
hb_stornl( iOk, 2 );
}
/*
* QFont getFont ( bool * ok, const QFont & initial, QWidget * parent = 0 )
*/
HB_FUNC( QT_QFONTDIALOG_GETFONT_3 )
{
bool iOk = 0;
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QFontDialog( 1 )->getFont( &iOk, *hbqt_par_QFont( 3 ), hbqt_par_QWidget( 4 ) ) ) ) );
hb_stornl( iOk, 2 );
}
/*
* QFont getFont ( bool * ok, QWidget * parent = 0 )
*/
HB_FUNC( QT_QFONTDIALOG_GETFONT_4 )
{
bool iOk = 0;
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QFontDialog( 1 )->getFont( &iOk, hbqt_par_QWidget( 3 ) ) ) ) );
hb_stornl( iOk, 2 );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,197 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QFontInfo>
/*
* QFontInfo ( const QFont & font )
* QFontInfo ( const QFontInfo & fi )
* ~QFontInfo ()
*/
HB_FUNC( QT_QFONTINFO )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
pObj = new QFontInfo( *hbqt_par_QFontInfo( 1 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
{
pObj = new QFontInfo( *hbqt_par_QFont( 2 ) ) ;
}
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QFontInfo" );
hb_retptrGC( p );
}
/*
* bool bold () const
*/
HB_FUNC( QT_QFONTINFO_BOLD )
{
hb_retl( hbqt_par_QFontInfo( 1 )->bold() );
}
/*
* bool exactMatch () const
*/
HB_FUNC( QT_QFONTINFO_EXACTMATCH )
{
hb_retl( hbqt_par_QFontInfo( 1 )->exactMatch() );
}
/*
* QString family () const
*/
HB_FUNC( QT_QFONTINFO_FAMILY )
{
hb_retc( hbqt_par_QFontInfo( 1 )->family().toAscii().data() );
}
/*
* bool fixedPitch () const
*/
HB_FUNC( QT_QFONTINFO_FIXEDPITCH )
{
hb_retl( hbqt_par_QFontInfo( 1 )->fixedPitch() );
}
/*
* bool italic () const
*/
HB_FUNC( QT_QFONTINFO_ITALIC )
{
hb_retl( hbqt_par_QFontInfo( 1 )->italic() );
}
/*
* int pixelSize () const
*/
HB_FUNC( QT_QFONTINFO_PIXELSIZE )
{
hb_retni( hbqt_par_QFontInfo( 1 )->pixelSize() );
}
/*
* int pointSize () const
*/
HB_FUNC( QT_QFONTINFO_POINTSIZE )
{
hb_retni( hbqt_par_QFontInfo( 1 )->pointSize() );
}
/*
* qreal pointSizeF () const
*/
HB_FUNC( QT_QFONTINFO_POINTSIZEF )
{
hb_retnd( hbqt_par_QFontInfo( 1 )->pointSizeF() );
}
/*
* bool rawMode () const
*/
HB_FUNC( QT_QFONTINFO_RAWMODE )
{
hb_retl( hbqt_par_QFontInfo( 1 )->rawMode() );
}
/*
* QFont::Style style () const
*/
HB_FUNC( QT_QFONTINFO_STYLE )
{
hb_retni( ( QFont::Style ) hbqt_par_QFontInfo( 1 )->style() );
}
/*
* QFont::StyleHint styleHint () const
*/
HB_FUNC( QT_QFONTINFO_STYLEHINT )
{
hb_retni( ( QFont::StyleHint ) hbqt_par_QFontInfo( 1 )->styleHint() );
}
/*
* int weight () const
*/
HB_FUNC( QT_QFONTINFO_WEIGHT )
{
hb_retni( hbqt_par_QFontInfo( 1 )->weight() );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,329 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QFontMetrics>
/*
* QFontMetrics ( const QFont & font )
* QFontMetrics ( const QFont & font, QPaintDevice * paintdevice )
* QFontMetrics ( const QFontMetrics & fm )
* ~QFontMetrics ()
*/
HB_FUNC( QT_QFONTMETRICS )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
pObj = new QFontMetrics( *hbqt_par_QFontMetrics( 1 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
{
if( hbqt_par_QString( 1 ) == ( QString ) "QFont" )
{
pObj = new QFontMetrics( *hbqt_par_QFont( 2 ) ) ;
}
}
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISPOINTER( 2 ) )
{
pObj = new QFontMetrics( *hbqt_par_QFont( 1 ), hbqt_par_QPaintDevice( 2 ) ) ;
}
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QFontMetrics" );
hb_retptrGC( p );
}
/*
* int ascent () const
*/
HB_FUNC( QT_QFONTMETRICS_ASCENT )
{
hb_retni( hbqt_par_QFontMetrics( 1 )->ascent() );
}
/*
* int averageCharWidth () const
*/
HB_FUNC( QT_QFONTMETRICS_AVERAGECHARWIDTH )
{
hb_retni( hbqt_par_QFontMetrics( 1 )->averageCharWidth() );
}
/*
* QRect boundingRect ( QChar ch ) const
*/
HB_FUNC( QT_QFONTMETRICS_BOUNDINGRECT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QFontMetrics( 1 )->boundingRect( hb_parni( 2 ) ) ) ) );
}
/*
* QRect boundingRect ( const QString & text ) const
*/
HB_FUNC( QT_QFONTMETRICS_BOUNDINGRECT_1 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QFontMetrics( 1 )->boundingRect( hbqt_par_QString( 2 ) ) ) ) );
}
/*
* QRect boundingRect ( int x, int y, int width, int height, int flags, const QString & text, int tabStops = 0, int * tabArray = 0 ) const
*/
HB_FUNC( QT_QFONTMETRICS_BOUNDINGRECT_2 )
{
int iTabArray = 0;
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QFontMetrics( 1 )->boundingRect( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), hb_parni( 6 ), hbqt_par_QString( 7 ), hb_parni( 8 ), &iTabArray ) ) ) );
hb_storni( iTabArray, 9 );
}
/*
* QRect boundingRect ( const QRect & rect, int flags, const QString & text, int tabStops = 0, int * tabArray = 0 ) const
*/
HB_FUNC( QT_QFONTMETRICS_BOUNDINGRECT_3 )
{
int iTabArray = 0;
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QFontMetrics( 1 )->boundingRect( *hbqt_par_QRect( 2 ), hb_parni( 3 ), hbqt_par_QString( 4 ), hb_parni( 5 ), &iTabArray ) ) ) );
hb_storni( iTabArray, 6 );
}
/*
* int descent () const
*/
HB_FUNC( QT_QFONTMETRICS_DESCENT )
{
hb_retni( hbqt_par_QFontMetrics( 1 )->descent() );
}
/*
* QString elidedText ( const QString & text, Qt::TextElideMode mode, int width, int flags = 0 ) const
*/
HB_FUNC( QT_QFONTMETRICS_ELIDEDTEXT )
{
hb_retc( hbqt_par_QFontMetrics( 1 )->elidedText( hbqt_par_QString( 2 ), ( Qt::TextElideMode ) hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ) ).toAscii().data() );
}
/*
* int height () const
*/
HB_FUNC( QT_QFONTMETRICS_HEIGHT )
{
hb_retni( hbqt_par_QFontMetrics( 1 )->height() );
}
/*
* bool inFont ( QChar ch ) const
*/
HB_FUNC( QT_QFONTMETRICS_INFONT )
{
hb_retl( hbqt_par_QFontMetrics( 1 )->inFont( hb_parni( 2 ) ) );
}
/*
* int leading () const
*/
HB_FUNC( QT_QFONTMETRICS_LEADING )
{
hb_retni( hbqt_par_QFontMetrics( 1 )->leading() );
}
/*
* int leftBearing ( QChar ch ) const
*/
HB_FUNC( QT_QFONTMETRICS_LEFTBEARING )
{
hb_retni( hbqt_par_QFontMetrics( 1 )->leftBearing( hb_parni( 2 ) ) );
}
/*
* int lineSpacing () const
*/
HB_FUNC( QT_QFONTMETRICS_LINESPACING )
{
hb_retni( hbqt_par_QFontMetrics( 1 )->lineSpacing() );
}
/*
* int lineWidth () const
*/
HB_FUNC( QT_QFONTMETRICS_LINEWIDTH )
{
hb_retni( hbqt_par_QFontMetrics( 1 )->lineWidth() );
}
/*
* int maxWidth () const
*/
HB_FUNC( QT_QFONTMETRICS_MAXWIDTH )
{
hb_retni( hbqt_par_QFontMetrics( 1 )->maxWidth() );
}
/*
* int minLeftBearing () const
*/
HB_FUNC( QT_QFONTMETRICS_MINLEFTBEARING )
{
hb_retni( hbqt_par_QFontMetrics( 1 )->minLeftBearing() );
}
/*
* int minRightBearing () const
*/
HB_FUNC( QT_QFONTMETRICS_MINRIGHTBEARING )
{
hb_retni( hbqt_par_QFontMetrics( 1 )->minRightBearing() );
}
/*
* int overlinePos () const
*/
HB_FUNC( QT_QFONTMETRICS_OVERLINEPOS )
{
hb_retni( hbqt_par_QFontMetrics( 1 )->overlinePos() );
}
/*
* int rightBearing ( QChar ch ) const
*/
HB_FUNC( QT_QFONTMETRICS_RIGHTBEARING )
{
hb_retni( hbqt_par_QFontMetrics( 1 )->rightBearing( hb_parni( 2 ) ) );
}
/*
* QSize size ( int flags, const QString & text, int tabStops = 0, int * tabArray = 0 ) const
*/
HB_FUNC( QT_QFONTMETRICS_SIZE )
{
int iTabArray = 0;
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QFontMetrics( 1 )->size( hb_parni( 2 ), hbqt_par_QString( 3 ), hb_parni( 4 ), &iTabArray ) ) ) );
hb_storni( iTabArray, 5 );
}
/*
* int strikeOutPos () const
*/
HB_FUNC( QT_QFONTMETRICS_STRIKEOUTPOS )
{
hb_retni( hbqt_par_QFontMetrics( 1 )->strikeOutPos() );
}
/*
* QRect tightBoundingRect ( const QString & text ) const
*/
HB_FUNC( QT_QFONTMETRICS_TIGHTBOUNDINGRECT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QFontMetrics( 1 )->tightBoundingRect( hbqt_par_QString( 2 ) ) ) ) );
}
/*
* int underlinePos () const
*/
HB_FUNC( QT_QFONTMETRICS_UNDERLINEPOS )
{
hb_retni( hbqt_par_QFontMetrics( 1 )->underlinePos() );
}
/*
* int width ( const QString & text, int len = -1 ) const
*/
HB_FUNC( QT_QFONTMETRICS_WIDTH )
{
hb_retni( hbqt_par_QFontMetrics( 1 )->width( hbqt_par_QString( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ) );
}
/*
* int width ( QChar ch ) const
*/
HB_FUNC( QT_QFONTMETRICS_WIDTH_1 )
{
hb_retni( hbqt_par_QFontMetrics( 1 )->width( hb_parni( 2 ) ) );
}
/*
* int xHeight () const
*/
HB_FUNC( QT_QFONTMETRICS_XHEIGHT )
{
hb_retni( hbqt_par_QFontMetrics( 1 )->xHeight() );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,319 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QFontMetricsF>
/*
* QFontMetricsF ( const QFont & font )
* QFontMetricsF ( const QFont & font, QPaintDevice * paintdevice )
* QFontMetricsF ( const QFontMetrics & fontMetrics )
* QFontMetricsF ( const QFontMetricsF & fm )
* ~QFontMetricsF ()
*/
HB_FUNC( QT_QFONTMETRICSF )
{
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
pObj = ( QFontMetricsF* ) new QFontMetricsF( *hbqt_par_QFontMetricsF( 1 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
{
if( hbqt_par_QString( 1 ) == ( QString ) "QFont" )
{
pObj = ( QFontMetricsF* ) new QFontMetricsF( *hbqt_par_QFont( 2 ) ) ;
}
else if( hbqt_par_QString( 1 ) == ( QString ) "QFontMetrics" )
{
pObj = ( QFontMetricsF* ) new QFontMetricsF( *hbqt_par_QFontMetrics( 2 ) ) ;
}
}
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISPOINTER( 2 ) )
{
pObj = ( QFontMetricsF* ) new QFontMetricsF( *hbqt_par_QFont( 1 ), hbqt_par_QPaintDevice( 2 ) ) ;
}
hb_retptr( pObj );
}
/*
* qreal ascent () const
*/
HB_FUNC( QT_QFONTMETRICSF_ASCENT )
{
hb_retnd( hbqt_par_QFontMetricsF( 1 )->ascent() );
}
/*
* qreal averageCharWidth () const
*/
HB_FUNC( QT_QFONTMETRICSF_AVERAGECHARWIDTH )
{
hb_retnd( hbqt_par_QFontMetricsF( 1 )->averageCharWidth() );
}
/*
* QRectF boundingRect ( const QString & text ) const
*/
HB_FUNC( QT_QFONTMETRICSF_BOUNDINGRECT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QRectF( hbqt_par_QFontMetricsF( 1 )->boundingRect( hbqt_par_QString( 2 ) ) ) ) );
}
/*
* QRectF boundingRect ( QChar ch ) const
*/
HB_FUNC( QT_QFONTMETRICSF_BOUNDINGRECT_1 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QRectF( hbqt_par_QFontMetricsF( 1 )->boundingRect( hb_parni( 2 ) ) ) ) );
}
/*
* QRectF boundingRect ( const QRectF & rect, int flags, const QString & text, int tabStops = 0, int * tabArray = 0 ) const
*/
HB_FUNC( QT_QFONTMETRICSF_BOUNDINGRECT_2 )
{
int iTabArray = 0;
hb_retptrGC( hbqt_ptrTOgcpointer( new QRectF( hbqt_par_QFontMetricsF( 1 )->boundingRect( *hbqt_par_QRectF( 2 ), hb_parni( 3 ), hbqt_par_QString( 4 ), hb_parni( 5 ), &iTabArray ) ) ) );
hb_storni( iTabArray, 6 );
}
/*
* qreal descent () const
*/
HB_FUNC( QT_QFONTMETRICSF_DESCENT )
{
hb_retnd( hbqt_par_QFontMetricsF( 1 )->descent() );
}
/*
* QString elidedText ( const QString & text, Qt::TextElideMode mode, qreal width, int flags = 0 ) const
*/
HB_FUNC( QT_QFONTMETRICSF_ELIDEDTEXT )
{
hb_retc( hbqt_par_QFontMetricsF( 1 )->elidedText( hbqt_par_QString( 2 ), ( Qt::TextElideMode ) hb_parni( 3 ), hb_parnd( 4 ), hb_parni( 5 ) ).toAscii().data() );
}
/*
* qreal height () const
*/
HB_FUNC( QT_QFONTMETRICSF_HEIGHT )
{
hb_retnd( hbqt_par_QFontMetricsF( 1 )->height() );
}
/*
* bool inFont ( QChar ch ) const
*/
HB_FUNC( QT_QFONTMETRICSF_INFONT )
{
hb_retl( hbqt_par_QFontMetricsF( 1 )->inFont( hb_parni( 2 ) ) );
}
/*
* qreal leading () const
*/
HB_FUNC( QT_QFONTMETRICSF_LEADING )
{
hb_retnd( hbqt_par_QFontMetricsF( 1 )->leading() );
}
/*
* qreal leftBearing ( QChar ch ) const
*/
HB_FUNC( QT_QFONTMETRICSF_LEFTBEARING )
{
hb_retnd( hbqt_par_QFontMetricsF( 1 )->leftBearing( hb_parni( 2 ) ) );
}
/*
* qreal lineSpacing () const
*/
HB_FUNC( QT_QFONTMETRICSF_LINESPACING )
{
hb_retnd( hbqt_par_QFontMetricsF( 1 )->lineSpacing() );
}
/*
* qreal lineWidth () const
*/
HB_FUNC( QT_QFONTMETRICSF_LINEWIDTH )
{
hb_retnd( hbqt_par_QFontMetricsF( 1 )->lineWidth() );
}
/*
* qreal maxWidth () const
*/
HB_FUNC( QT_QFONTMETRICSF_MAXWIDTH )
{
hb_retnd( hbqt_par_QFontMetricsF( 1 )->maxWidth() );
}
/*
* qreal minLeftBearing () const
*/
HB_FUNC( QT_QFONTMETRICSF_MINLEFTBEARING )
{
hb_retnd( hbqt_par_QFontMetricsF( 1 )->minLeftBearing() );
}
/*
* qreal minRightBearing () const
*/
HB_FUNC( QT_QFONTMETRICSF_MINRIGHTBEARING )
{
hb_retnd( hbqt_par_QFontMetricsF( 1 )->minRightBearing() );
}
/*
* qreal overlinePos () const
*/
HB_FUNC( QT_QFONTMETRICSF_OVERLINEPOS )
{
hb_retnd( hbqt_par_QFontMetricsF( 1 )->overlinePos() );
}
/*
* qreal rightBearing ( QChar ch ) const
*/
HB_FUNC( QT_QFONTMETRICSF_RIGHTBEARING )
{
hb_retnd( hbqt_par_QFontMetricsF( 1 )->rightBearing( hb_parni( 2 ) ) );
}
/*
* QSizeF size ( int flags, const QString & text, int tabStops = 0, int * tabArray = 0 ) const
*/
HB_FUNC( QT_QFONTMETRICSF_SIZE )
{
int iTabArray = 0;
hb_retptrGC( hbqt_ptrTOgcpointer( new QSizeF( hbqt_par_QFontMetricsF( 1 )->size( hb_parni( 2 ), hbqt_par_QString( 3 ), hb_parni( 4 ), &iTabArray ) ) ) );
hb_storni( iTabArray, 5 );
}
/*
* qreal strikeOutPos () const
*/
HB_FUNC( QT_QFONTMETRICSF_STRIKEOUTPOS )
{
hb_retnd( hbqt_par_QFontMetricsF( 1 )->strikeOutPos() );
}
/*
* QRectF tightBoundingRect ( const QString & text ) const
*/
HB_FUNC( QT_QFONTMETRICSF_TIGHTBOUNDINGRECT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QRectF( hbqt_par_QFontMetricsF( 1 )->tightBoundingRect( hbqt_par_QString( 2 ) ) ) ) );
}
/*
* qreal underlinePos () const
*/
HB_FUNC( QT_QFONTMETRICSF_UNDERLINEPOS )
{
hb_retnd( hbqt_par_QFontMetricsF( 1 )->underlinePos() );
}
/*
* qreal width ( const QString & text ) const
*/
HB_FUNC( QT_QFONTMETRICSF_WIDTH )
{
hb_retnd( hbqt_par_QFontMetricsF( 1 )->width( hbqt_par_QString( 2 ) ) );
}
/*
* qreal width ( QChar ch ) const
*/
HB_FUNC( QT_QFONTMETRICSF_WIDTH_1 )
{
hb_retnd( hbqt_par_QFontMetricsF( 1 )->width( hb_parni( 2 ) ) );
}
/*
* qreal xHeight () const
*/
HB_FUNC( QT_QFONTMETRICSF_XHEIGHT )
{
hb_retnd( hbqt_par_QFontMetricsF( 1 )->xHeight() );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,405 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum FieldGrowthPolicy { FieldsStayAtSizeHint, ExpandingFieldsGrow, AllNonFixedFieldsGrow }
* enum ItemRole { LabelRole, FieldRole, SpanningRole }
* enum RowWrapPolicy { DontWrapRows, WrapLongRows, WrapAllRows }
*/
#include <QtCore/QPointer>
#include <QtGui/QFormLayout>
/*
* QFormLayout ( QWidget * parent = 0 )
* ~QFormLayout ()
*/
HB_FUNC( QT_QFORMLAYOUT )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QFormLayout > pObj = NULL;
pObj = ( QFormLayout * ) new QFormLayout( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* 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 )
{
hbqt_par_QFormLayout( 1 )->addRow( hbqt_par_QWidget( 2 ), hbqt_par_QLayout( 3 ) );
}
/*
* void addRow ( QWidget * widget )
*/
HB_FUNC( QT_QFORMLAYOUT_ADDROW_2 )
{
hbqt_par_QFormLayout( 1 )->addRow( hbqt_par_QWidget( 2 ) );
}
/*
* void addRow ( const QString & labelText, QWidget * field )
*/
HB_FUNC( QT_QFORMLAYOUT_ADDROW_3 )
{
hbqt_par_QFormLayout( 1 )->addRow( hbqt_par_QString( 2 ), hbqt_par_QWidget( 3 ) );
}
/*
* void addRow ( const QString & labelText, QLayout * field )
*/
HB_FUNC( QT_QFORMLAYOUT_ADDROW_4 )
{
hbqt_par_QFormLayout( 1 )->addRow( hbqt_par_QString( 2 ), hbqt_par_QLayout( 3 ) );
}
/*
* void addRow ( QLayout * layout )
*/
HB_FUNC( QT_QFORMLAYOUT_ADDROW_5 )
{
hbqt_par_QFormLayout( 1 )->addRow( hbqt_par_QLayout( 2 ) );
}
/*
* FieldGrowthPolicy fieldGrowthPolicy () const
*/
HB_FUNC( QT_QFORMLAYOUT_FIELDGROWTHPOLICY )
{
hb_retni( ( QFormLayout::FieldGrowthPolicy ) hbqt_par_QFormLayout( 1 )->fieldGrowthPolicy() );
}
/*
* Qt::Alignment formAlignment () const
*/
HB_FUNC( QT_QFORMLAYOUT_FORMALIGNMENT )
{
hb_retni( ( Qt::Alignment ) hbqt_par_QFormLayout( 1 )->formAlignment() );
}
/*
* void getItemPosition ( int index, int * rowPtr, ItemRole * rolePtr ) const
*/
HB_FUNC( QT_QFORMLAYOUT_GETITEMPOSITION )
{
int iRowPtr = 0;
QFormLayout::ItemRole iRolePtr;
hbqt_par_QFormLayout( 1 )->getItemPosition( hb_parni( 2 ), &iRowPtr, &iRolePtr );
hb_storni( iRowPtr, 3 );
hb_storni( iRolePtr, 4 );
}
/*
* void getLayoutPosition ( QLayout * layout, int * rowPtr, ItemRole * rolePtr ) const
*/
HB_FUNC( QT_QFORMLAYOUT_GETLAYOUTPOSITION )
{
int iRowPtr = 0;
QFormLayout::ItemRole iRolePtr;
hbqt_par_QFormLayout( 1 )->getLayoutPosition( hbqt_par_QLayout( 2 ), &iRowPtr, &iRolePtr );
hb_storni( iRowPtr, 3 );
hb_storni( iRolePtr, 4 );
}
/*
* void getWidgetPosition ( QWidget * widget, int * rowPtr, ItemRole * rolePtr ) const
*/
HB_FUNC( QT_QFORMLAYOUT_GETWIDGETPOSITION )
{
int iRowPtr = 0;
QFormLayout::ItemRole iRolePtr;
hbqt_par_QFormLayout( 1 )->getWidgetPosition( hbqt_par_QWidget( 2 ), &iRowPtr, &iRolePtr );
hb_storni( iRowPtr, 3 );
hb_storni( iRolePtr, 4 );
}
/*
* int horizontalSpacing () const
*/
HB_FUNC( QT_QFORMLAYOUT_HORIZONTALSPACING )
{
hb_retni( hbqt_par_QFormLayout( 1 )->horizontalSpacing() );
}
/*
* 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 )
{
hbqt_par_QFormLayout( 1 )->insertRow( hb_parni( 2 ), hbqt_par_QWidget( 3 ), hbqt_par_QLayout( 4 ) );
}
/*
* void insertRow ( int row, QWidget * widget )
*/
HB_FUNC( QT_QFORMLAYOUT_INSERTROW_2 )
{
hbqt_par_QFormLayout( 1 )->insertRow( hb_parni( 2 ), hbqt_par_QWidget( 3 ) );
}
/*
* void insertRow ( int row, const QString & labelText, QWidget * field )
*/
HB_FUNC( QT_QFORMLAYOUT_INSERTROW_3 )
{
hbqt_par_QFormLayout( 1 )->insertRow( hb_parni( 2 ), hbqt_par_QString( 3 ), hbqt_par_QWidget( 4 ) );
}
/*
* void insertRow ( int row, const QString & labelText, QLayout * field )
*/
HB_FUNC( QT_QFORMLAYOUT_INSERTROW_4 )
{
hbqt_par_QFormLayout( 1 )->insertRow( hb_parni( 2 ), hbqt_par_QString( 3 ), hbqt_par_QLayout( 4 ) );
}
/*
* void insertRow ( int row, QLayout * layout )
*/
HB_FUNC( QT_QFORMLAYOUT_INSERTROW_5 )
{
hbqt_par_QFormLayout( 1 )->insertRow( hb_parni( 2 ), hbqt_par_QLayout( 3 ) );
}
/*
* QLayoutItem * itemAt ( int row, ItemRole role ) const
*/
HB_FUNC( QT_QFORMLAYOUT_ITEMAT )
{
hb_retptr( ( QLayoutItem* ) hbqt_par_QFormLayout( 1 )->itemAt( hb_parni( 2 ), ( QFormLayout::ItemRole ) hb_parni( 3 ) ) );
}
/*
* Qt::Alignment labelAlignment () const
*/
HB_FUNC( QT_QFORMLAYOUT_LABELALIGNMENT )
{
hb_retni( ( Qt::Alignment ) hbqt_par_QFormLayout( 1 )->labelAlignment() );
}
/*
* 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 )
{
hb_retptr( ( QWidget* ) hbqt_par_QFormLayout( 1 )->labelForField( hbqt_par_QLayout( 2 ) ) );
}
/*
* int rowCount () const
*/
HB_FUNC( QT_QFORMLAYOUT_ROWCOUNT )
{
hb_retni( hbqt_par_QFormLayout( 1 )->rowCount() );
}
/*
* RowWrapPolicy rowWrapPolicy () const
*/
HB_FUNC( QT_QFORMLAYOUT_ROWWRAPPOLICY )
{
hb_retni( ( QFormLayout::RowWrapPolicy ) hbqt_par_QFormLayout( 1 )->rowWrapPolicy() );
}
/*
* void setFieldGrowthPolicy ( FieldGrowthPolicy policy )
*/
HB_FUNC( QT_QFORMLAYOUT_SETFIELDGROWTHPOLICY )
{
hbqt_par_QFormLayout( 1 )->setFieldGrowthPolicy( ( QFormLayout::FieldGrowthPolicy ) hb_parni( 2 ) );
}
/*
* void setFormAlignment ( Qt::Alignment alignment )
*/
HB_FUNC( QT_QFORMLAYOUT_SETFORMALIGNMENT )
{
hbqt_par_QFormLayout( 1 )->setFormAlignment( ( Qt::Alignment ) hb_parni( 2 ) );
}
/*
* void setHorizontalSpacing ( int spacing )
*/
HB_FUNC( QT_QFORMLAYOUT_SETHORIZONTALSPACING )
{
hbqt_par_QFormLayout( 1 )->setHorizontalSpacing( hb_parni( 2 ) );
}
/*
* void setItem ( int row, ItemRole role, QLayoutItem * item )
*/
HB_FUNC( QT_QFORMLAYOUT_SETITEM )
{
hbqt_par_QFormLayout( 1 )->setItem( hb_parni( 2 ), ( QFormLayout::ItemRole ) hb_parni( 3 ), hbqt_par_QLayoutItem( 4 ) );
}
/*
* void setLabelAlignment ( Qt::Alignment alignment )
*/
HB_FUNC( QT_QFORMLAYOUT_SETLABELALIGNMENT )
{
hbqt_par_QFormLayout( 1 )->setLabelAlignment( ( Qt::Alignment ) hb_parni( 2 ) );
}
/*
* void setLayout ( int row, ItemRole role, QLayout * layout )
*/
HB_FUNC( QT_QFORMLAYOUT_SETLAYOUT )
{
hbqt_par_QFormLayout( 1 )->setLayout( hb_parni( 2 ), ( QFormLayout::ItemRole ) hb_parni( 3 ), hbqt_par_QLayout( 4 ) );
}
/*
* void setRowWrapPolicy ( RowWrapPolicy policy )
*/
HB_FUNC( QT_QFORMLAYOUT_SETROWWRAPPOLICY )
{
hbqt_par_QFormLayout( 1 )->setRowWrapPolicy( ( QFormLayout::RowWrapPolicy ) hb_parni( 2 ) );
}
/*
* void setSpacing ( int spacing )
*/
HB_FUNC( QT_QFORMLAYOUT_SETSPACING )
{
hbqt_par_QFormLayout( 1 )->setSpacing( hb_parni( 2 ) );
}
/*
* void setVerticalSpacing ( int spacing )
*/
HB_FUNC( QT_QFORMLAYOUT_SETVERTICALSPACING )
{
hbqt_par_QFormLayout( 1 )->setVerticalSpacing( hb_parni( 2 ) );
}
/*
* void setWidget ( int row, ItemRole role, QWidget * widget )
*/
HB_FUNC( QT_QFORMLAYOUT_SETWIDGET )
{
hbqt_par_QFormLayout( 1 )->setWidget( hb_parni( 2 ), ( QFormLayout::ItemRole ) hb_parni( 3 ), hbqt_par_QWidget( 4 ) );
}
/*
* int spacing () const
*/
HB_FUNC( QT_QFORMLAYOUT_SPACING )
{
hb_retni( hbqt_par_QFormLayout( 1 )->spacing() );
}
/*
* int verticalSpacing () const
*/
HB_FUNC( QT_QFORMLAYOUT_VERTICALSPACING )
{
hb_retni( hbqt_par_QFormLayout( 1 )->verticalSpacing() );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,203 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum Shadow { Plain, Raised, Sunken }
* enum Shape { NoFrame, Box, Panel, StyledPanel, ..., WinPanel }
* enum StyleMask { Shadow_Mask, Shape_Mask }
*/
#include <QtCore/QPointer>
#include <QtGui/QFrame>
/*
* QFrame ( QWidget * parent = 0, Qt::WindowFlags f = 0 )
* ~QFrame ()
*/
HB_FUNC( QT_QFRAME )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QFrame > pObj = NULL;
pObj = new QFrame( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* QRect frameRect () const
*/
HB_FUNC( QT_QFRAME_FRAMERECT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QFrame( 1 )->frameRect() ) ) );
}
/*
* Shadow frameShadow () const
*/
HB_FUNC( QT_QFRAME_FRAMESHADOW )
{
hb_retni( ( QFrame::Shadow ) hbqt_par_QFrame( 1 )->frameShadow() );
}
/*
* Shape frameShape () const
*/
HB_FUNC( QT_QFRAME_FRAMESHAPE )
{
hb_retni( ( QFrame::Shape ) hbqt_par_QFrame( 1 )->frameShape() );
}
/*
* int frameStyle () const
*/
HB_FUNC( QT_QFRAME_FRAMESTYLE )
{
hb_retni( hbqt_par_QFrame( 1 )->frameStyle() );
}
/*
* int frameWidth () const
*/
HB_FUNC( QT_QFRAME_FRAMEWIDTH )
{
hb_retni( hbqt_par_QFrame( 1 )->frameWidth() );
}
/*
* int lineWidth () const
*/
HB_FUNC( QT_QFRAME_LINEWIDTH )
{
hb_retni( hbqt_par_QFrame( 1 )->lineWidth() );
}
/*
* int midLineWidth () const
*/
HB_FUNC( QT_QFRAME_MIDLINEWIDTH )
{
hb_retni( hbqt_par_QFrame( 1 )->midLineWidth() );
}
/*
* void setFrameRect ( const QRect & )
*/
HB_FUNC( QT_QFRAME_SETFRAMERECT )
{
hbqt_par_QFrame( 1 )->setFrameRect( *hbqt_par_QRect( 2 ) );
}
/*
* void setFrameShadow ( Shadow )
*/
HB_FUNC( QT_QFRAME_SETFRAMESHADOW )
{
hbqt_par_QFrame( 1 )->setFrameShadow( ( QFrame::Shadow ) hb_parni( 2 ) );
}
/*
* void setFrameShape ( Shape )
*/
HB_FUNC( QT_QFRAME_SETFRAMESHAPE )
{
hbqt_par_QFrame( 1 )->setFrameShape( ( QFrame::Shape ) hb_parni( 2 ) );
}
/*
* void setFrameStyle ( int style )
*/
HB_FUNC( QT_QFRAME_SETFRAMESTYLE )
{
hbqt_par_QFrame( 1 )->setFrameStyle( hb_parni( 2 ) );
}
/*
* void setLineWidth ( int )
*/
HB_FUNC( QT_QFRAME_SETLINEWIDTH )
{
hbqt_par_QFrame( 1 )->setLineWidth( hb_parni( 2 ) );
}
/*
* void setMidLineWidth ( int )
*/
HB_FUNC( QT_QFRAME_SETMIDLINEWIDTH )
{
hbqt_par_QFrame( 1 )->setMidLineWidth( hb_parni( 2 ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,324 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum Command { None, SetTransferMode, SetProxy, ConnectToHost, ..., RawCommand }
* enum Error { NoError, HostNotFound, ConnectionRefused, NotConnected, UnknownError }
* enum State { Unconnected, HostLookup, Connecting, Connected, LoggedIn, Closing }
* enum TransferMode { Passive, Active }
* enum TransferType { Binary, Ascii }
*/
#include <QtCore/QPointer>
#include <QtNetwork/QFtp>
/*
* QFtp ( QObject * parent = 0 )
* virtual ~QFtp ()
*/
/*
* qint64 read ( char * data, qint64 maxlen )
*/
HB_FUNC( QT_QFTP_READ )
{
char * iData = ( char * ) hb_xgrab( hb_parnint( 3 ) + 1 );
qint64 iRead;
iRead = hbqt_par_QFtp( 1 )->read( iData, hb_parnint( 3 ) );
hb_retnint( iRead );
if( ! hb_storclen_buffer( iData, iRead, 2 ) )
hb_xfree( iData );
}
HB_FUNC( QT_QFTP )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QFtp > pObj = NULL;
pObj = new QFtp( hbqt_par_QObject( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* qint64 bytesAvailable () const
*/
HB_FUNC( QT_QFTP_BYTESAVAILABLE )
{
hb_retnint( hbqt_par_QFtp( 1 )->bytesAvailable() );
}
/*
* int cd ( const QString & dir )
*/
HB_FUNC( QT_QFTP_CD )
{
hb_retni( hbqt_par_QFtp( 1 )->cd( hbqt_par_QString( 2 ) ) );
}
/*
* void clearPendingCommands ()
*/
HB_FUNC( QT_QFTP_CLEARPENDINGCOMMANDS )
{
hbqt_par_QFtp( 1 )->clearPendingCommands();
}
/*
* int close ()
*/
HB_FUNC( QT_QFTP_CLOSE )
{
hb_retni( hbqt_par_QFtp( 1 )->close() );
}
/*
* int connectToHost ( const QString & host, quint16 port = 21 )
*/
HB_FUNC( QT_QFTP_CONNECTTOHOST )
{
hb_retni( hbqt_par_QFtp( 1 )->connectToHost( hbqt_par_QString( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : 21 ) ) );
}
/*
* Command currentCommand () const
*/
HB_FUNC( QT_QFTP_CURRENTCOMMAND )
{
hb_retni( ( QFtp::Command ) hbqt_par_QFtp( 1 )->currentCommand() );
}
/*
* QIODevice * currentDevice () const
*/
HB_FUNC( QT_QFTP_CURRENTDEVICE )
{
hb_retptr( ( QIODevice* ) hbqt_par_QFtp( 1 )->currentDevice() );
}
/*
* int currentId () const
*/
HB_FUNC( QT_QFTP_CURRENTID )
{
hb_retni( hbqt_par_QFtp( 1 )->currentId() );
}
/*
* Error error () const
*/
HB_FUNC( QT_QFTP_ERROR )
{
hb_retni( ( QFtp::Error ) hbqt_par_QFtp( 1 )->error() );
}
/*
* QString errorString () const
*/
HB_FUNC( QT_QFTP_ERRORSTRING )
{
hb_retc( hbqt_par_QFtp( 1 )->errorString().toAscii().data() );
}
/*
* int get ( const QString & file, QIODevice * dev = 0, TransferType type = Binary )
*/
HB_FUNC( QT_QFTP_GET )
{
hb_retni( hbqt_par_QFtp( 1 )->get( hbqt_par_QString( 2 ), hbqt_par_QIODevice( 3 ), ( HB_ISNUM( 4 ) ? ( QFtp::TransferType ) hb_parni( 4 ) : ( QFtp::TransferType ) QFtp::Binary ) ) );
}
/*
* bool hasPendingCommands () const
*/
HB_FUNC( QT_QFTP_HASPENDINGCOMMANDS )
{
hb_retl( hbqt_par_QFtp( 1 )->hasPendingCommands() );
}
/*
* int list ( const QString & dir = QString() )
*/
HB_FUNC( QT_QFTP_LIST )
{
hb_retni( hbqt_par_QFtp( 1 )->list( hbqt_par_QString( 2 ) ) );
}
/*
* int login ( const QString & user = QString(), const QString & password = QString() )
*/
HB_FUNC( QT_QFTP_LOGIN )
{
hb_retni( hbqt_par_QFtp( 1 )->login( hbqt_par_QString( 2 ), hbqt_par_QString( 3 ) ) );
}
/*
* int mkdir ( const QString & dir )
*/
HB_FUNC( QT_QFTP_MKDIR )
{
hb_retni( hbqt_par_QFtp( 1 )->mkdir( hbqt_par_QString( 2 ) ) );
}
/*
* int put ( QIODevice * dev, const QString & file, TransferType type = Binary )
*/
HB_FUNC( QT_QFTP_PUT )
{
hb_retni( hbqt_par_QFtp( 1 )->put( hbqt_par_QIODevice( 2 ), hbqt_par_QString( 3 ), ( HB_ISNUM( 4 ) ? ( QFtp::TransferType ) hb_parni( 4 ) : ( QFtp::TransferType ) QFtp::Binary ) ) );
}
/*
* int put ( const QByteArray & data, const QString & file, TransferType type = Binary )
*/
HB_FUNC( QT_QFTP_PUT_1 )
{
hb_retni( hbqt_par_QFtp( 1 )->put( *hbqt_par_QByteArray( 2 ), hbqt_par_QString( 3 ), ( HB_ISNUM( 4 ) ? ( QFtp::TransferType ) hb_parni( 4 ) : ( QFtp::TransferType ) QFtp::Binary ) ) );
}
/*
* int rawCommand ( const QString & command )
*/
HB_FUNC( QT_QFTP_RAWCOMMAND )
{
hb_retni( hbqt_par_QFtp( 1 )->rawCommand( hbqt_par_QString( 2 ) ) );
}
/*
* QByteArray readAll ()
*/
HB_FUNC( QT_QFTP_READALL )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QByteArray( hbqt_par_QFtp( 1 )->readAll() ) ) );
}
/*
* int remove ( const QString & file )
*/
HB_FUNC( QT_QFTP_REMOVE )
{
hb_retni( hbqt_par_QFtp( 1 )->remove( hbqt_par_QString( 2 ) ) );
}
/*
* int rename ( const QString & oldname, const QString & newname )
*/
HB_FUNC( QT_QFTP_RENAME )
{
hb_retni( hbqt_par_QFtp( 1 )->rename( hbqt_par_QString( 2 ), hbqt_par_QString( 3 ) ) );
}
/*
* int rmdir ( const QString & dir )
*/
HB_FUNC( QT_QFTP_RMDIR )
{
hb_retni( hbqt_par_QFtp( 1 )->rmdir( hbqt_par_QString( 2 ) ) );
}
/*
* int setProxy ( const QString & host, quint16 port )
*/
HB_FUNC( QT_QFTP_SETPROXY )
{
hb_retni( hbqt_par_QFtp( 1 )->setProxy( hbqt_par_QString( 2 ), hb_parni( 3 ) ) );
}
/*
* int setTransferMode ( TransferMode mode )
*/
HB_FUNC( QT_QFTP_SETTRANSFERMODE )
{
hb_retni( hbqt_par_QFtp( 1 )->setTransferMode( ( QFtp::TransferMode ) hb_parni( 2 ) ) );
}
/*
* State state () const
*/
HB_FUNC( QT_QFTP_STATE )
{
hb_retni( ( QFtp::State ) hbqt_par_QFtp( 1 )->state() );
}
/*
* void abort ()
*/
HB_FUNC( QT_QFTP_ABORT )
{
hbqt_par_QFtp( 1 )->abort();
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,154 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum CoordinateMode { LogicalMode, StretchToDeviceMode, ObjectBoundingMode }
* enum Spread { PadSpread, RepeatSpread, ReflectSpread }
* enum Type { LinearGradient, RadialGradient, ConicalGradient, NoGradient }
*/
#include <QtCore/QPointer>
#include <QtGui/QGradient>
/*
*
*/
HB_FUNC( QT_QGRADIENT )
{
}
/*
* CoordinateMode coordinateMode () const
*/
HB_FUNC( QT_QGRADIENT_COORDINATEMODE )
{
hb_retni( ( QGradient::CoordinateMode ) hbqt_par_QGradient( 1 )->coordinateMode() );
}
/*
* void setColorAt ( qreal position, const QColor & color )
*/
HB_FUNC( QT_QGRADIENT_SETCOLORAT )
{
hbqt_par_QGradient( 1 )->setColorAt( hb_parnd( 2 ), *hbqt_par_QColor( 3 ) );
}
/*
* void setCoordinateMode ( CoordinateMode mode )
*/
HB_FUNC( QT_QGRADIENT_SETCOORDINATEMODE )
{
hbqt_par_QGradient( 1 )->setCoordinateMode( ( QGradient::CoordinateMode ) hb_parni( 2 ) );
}
/*
* void setSpread ( Spread method )
*/
HB_FUNC( QT_QGRADIENT_SETSPREAD )
{
hbqt_par_QGradient( 1 )->setSpread( ( QGradient::Spread ) hb_parni( 2 ) );
}
/*
* void setStops ( const QGradientStops & stopPoints )
*/
HB_FUNC( QT_QGRADIENT_SETSTOPS )
{
hbqt_par_QGradient( 1 )->setStops( *hbqt_par_QGradientStops( 2 ) );
}
/*
* Spread spread () const
*/
HB_FUNC( QT_QGRADIENT_SPREAD )
{
hb_retni( ( QGradient::Spread ) hbqt_par_QGradient( 1 )->spread() );
}
/*
* QGradientStops stops () const
*/
HB_FUNC( QT_QGRADIENT_STOPS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QGradientStops( hbqt_par_QGradient( 1 )->stops() ) ) );
}
/*
* Type type () const
*/
HB_FUNC( QT_QGRADIENT_TYPE )
{
hb_retni( ( QGradient::Type ) hbqt_par_QGradient( 1 )->type() );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,312 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QGridLayout>
/*
* QGridLayout ( QWidget * parent )
* QGridLayout ()
* ~QGridLayout ()
*/
HB_FUNC( QT_QGRIDLAYOUT )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QGridLayout > pObj = NULL;
pObj = new QGridLayout( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* void addItem ( QLayoutItem * item, int row, int column, int rowSpan = 1, int columnSpan = 1, Qt::Alignment alignment = 0 )
*/
HB_FUNC( QT_QGRIDLAYOUT_ADDITEM )
{
hbqt_par_QGridLayout( 1 )->addItem( hbqt_par_QLayoutItem( 2 ), hb_parni( 3 ), hb_parni( 4 ), ( HB_ISNUM( 5 ) ? hb_parni( 5 ) : 1 ), ( HB_ISNUM( 6 ) ? hb_parni( 6 ) : 1 ), ( Qt::Alignment ) hb_parni( 7 ) );
}
/*
* void addLayout ( QLayout * layout, int row, int column, Qt::Alignment alignment = 0 )
*/
HB_FUNC( QT_QGRIDLAYOUT_ADDLAYOUT )
{
hbqt_par_QGridLayout( 1 )->addLayout( hbqt_par_QLayout( 2 ), hb_parni( 3 ), hb_parni( 4 ), ( Qt::Alignment ) hb_parni( 5 ) );
}
/*
* void addLayout ( QLayout * layout, int row, int column, int rowSpan, int columnSpan, Qt::Alignment alignment = 0 )
*/
HB_FUNC( QT_QGRIDLAYOUT_ADDLAYOUT_1 )
{
hbqt_par_QGridLayout( 1 )->addLayout( hbqt_par_QLayout( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), hb_parni( 6 ), ( Qt::Alignment ) hb_parni( 7 ) );
}
/*
* void addWidget ( QWidget * widget, int row, int column, Qt::Alignment alignment = 0 )
*/
HB_FUNC( QT_QGRIDLAYOUT_ADDWIDGET )
{
hbqt_par_QGridLayout( 1 )->addWidget( hbqt_par_QWidget( 2 ), hb_parni( 3 ), hb_parni( 4 ), ( Qt::Alignment ) hb_parni( 5 ) );
}
/*
* void addWidget ( QWidget * widget, int fromRow, int fromColumn, int rowSpan, int columnSpan, Qt::Alignment alignment = 0 )
*/
HB_FUNC( QT_QGRIDLAYOUT_ADDWIDGET_1 )
{
hbqt_par_QGridLayout( 1 )->addWidget( hbqt_par_QWidget( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), hb_parni( 6 ), ( Qt::Alignment ) hb_parni( 7 ) );
}
/*
* QRect cellRect ( int row, int column ) const
*/
HB_FUNC( QT_QGRIDLAYOUT_CELLRECT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QGridLayout( 1 )->cellRect( hb_parni( 2 ), hb_parni( 3 ) ) ) ) );
}
/*
* int columnCount () const
*/
HB_FUNC( QT_QGRIDLAYOUT_COLUMNCOUNT )
{
hb_retni( hbqt_par_QGridLayout( 1 )->columnCount() );
}
/*
* int columnMinimumWidth ( int column ) const
*/
HB_FUNC( QT_QGRIDLAYOUT_COLUMNMINIMUMWIDTH )
{
hb_retni( hbqt_par_QGridLayout( 1 )->columnMinimumWidth( hb_parni( 2 ) ) );
}
/*
* int columnStretch ( int column ) const
*/
HB_FUNC( QT_QGRIDLAYOUT_COLUMNSTRETCH )
{
hb_retni( hbqt_par_QGridLayout( 1 )->columnStretch( hb_parni( 2 ) ) );
}
/*
* void getItemPosition ( int index, int * row, int * column, int * rowSpan, int * columnSpan )
*/
HB_FUNC( QT_QGRIDLAYOUT_GETITEMPOSITION )
{
int iRow = 0;
int iColumn = 0;
int iRowSpan = 0;
int iColumnSpan = 0;
hbqt_par_QGridLayout( 1 )->getItemPosition( hb_parni( 2 ), &iRow, &iColumn, &iRowSpan, &iColumnSpan );
hb_storni( iRow, 3 );
hb_storni( iColumn, 4 );
hb_storni( iRowSpan, 5 );
hb_storni( iColumnSpan, 6 );
}
/*
* int horizontalSpacing () const
*/
HB_FUNC( QT_QGRIDLAYOUT_HORIZONTALSPACING )
{
hb_retni( hbqt_par_QGridLayout( 1 )->horizontalSpacing() );
}
/*
* QLayoutItem * itemAtPosition ( int row, int column ) const
*/
HB_FUNC( QT_QGRIDLAYOUT_ITEMATPOSITION )
{
hb_retptr( ( QLayoutItem* ) hbqt_par_QGridLayout( 1 )->itemAtPosition( hb_parni( 2 ), hb_parni( 3 ) ) );
}
/*
* Qt::Corner originCorner () const
*/
HB_FUNC( QT_QGRIDLAYOUT_ORIGINCORNER )
{
hb_retni( ( Qt::Corner ) hbqt_par_QGridLayout( 1 )->originCorner() );
}
/*
* int rowCount () const
*/
HB_FUNC( QT_QGRIDLAYOUT_ROWCOUNT )
{
hb_retni( hbqt_par_QGridLayout( 1 )->rowCount() );
}
/*
* int rowMinimumHeight ( int row ) const
*/
HB_FUNC( QT_QGRIDLAYOUT_ROWMINIMUMHEIGHT )
{
hb_retni( hbqt_par_QGridLayout( 1 )->rowMinimumHeight( hb_parni( 2 ) ) );
}
/*
* int rowStretch ( int row ) const
*/
HB_FUNC( QT_QGRIDLAYOUT_ROWSTRETCH )
{
hb_retni( hbqt_par_QGridLayout( 1 )->rowStretch( hb_parni( 2 ) ) );
}
/*
* void setColumnMinimumWidth ( int column, int minSize )
*/
HB_FUNC( QT_QGRIDLAYOUT_SETCOLUMNMINIMUMWIDTH )
{
hbqt_par_QGridLayout( 1 )->setColumnMinimumWidth( hb_parni( 2 ), hb_parni( 3 ) );
}
/*
* void setColumnStretch ( int column, int stretch )
*/
HB_FUNC( QT_QGRIDLAYOUT_SETCOLUMNSTRETCH )
{
hbqt_par_QGridLayout( 1 )->setColumnStretch( hb_parni( 2 ), hb_parni( 3 ) );
}
/*
* void setHorizontalSpacing ( int spacing )
*/
HB_FUNC( QT_QGRIDLAYOUT_SETHORIZONTALSPACING )
{
hbqt_par_QGridLayout( 1 )->setHorizontalSpacing( hb_parni( 2 ) );
}
/*
* void setOriginCorner ( Qt::Corner corner )
*/
HB_FUNC( QT_QGRIDLAYOUT_SETORIGINCORNER )
{
hbqt_par_QGridLayout( 1 )->setOriginCorner( ( Qt::Corner ) hb_parni( 2 ) );
}
/*
* void setRowMinimumHeight ( int row, int minSize )
*/
HB_FUNC( QT_QGRIDLAYOUT_SETROWMINIMUMHEIGHT )
{
hbqt_par_QGridLayout( 1 )->setRowMinimumHeight( hb_parni( 2 ), hb_parni( 3 ) );
}
/*
* void setRowStretch ( int row, int stretch )
*/
HB_FUNC( QT_QGRIDLAYOUT_SETROWSTRETCH )
{
hbqt_par_QGridLayout( 1 )->setRowStretch( hb_parni( 2 ), hb_parni( 3 ) );
}
/*
* void setSpacing ( int spacing )
*/
HB_FUNC( QT_QGRIDLAYOUT_SETSPACING )
{
hbqt_par_QGridLayout( 1 )->setSpacing( hb_parni( 2 ) );
}
/*
* void setVerticalSpacing ( int spacing )
*/
HB_FUNC( QT_QGRIDLAYOUT_SETVERTICALSPACING )
{
hbqt_par_QGridLayout( 1 )->setVerticalSpacing( hb_parni( 2 ) );
}
/*
* int spacing () const
*/
HB_FUNC( QT_QGRIDLAYOUT_SPACING )
{
hb_retni( hbqt_par_QGridLayout( 1 )->spacing() );
}
/*
* int verticalSpacing () const
*/
HB_FUNC( QT_QGRIDLAYOUT_VERTICALSPACING )
{
hb_retni( hbqt_par_QGridLayout( 1 )->verticalSpacing() );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,174 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QGroupBox>
/*
* QGroupBox ( QWidget * parent = 0 )
* QGroupBox ( const QString & title, QWidget * parent = 0 )
* ~QGroupBox ()
*/
HB_FUNC( QT_QGROUPBOX )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QGroupBox > pObj = NULL;
pObj = ( QGroupBox * ) new QGroupBox( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* Qt::Alignment alignment () const
*/
HB_FUNC( QT_QGROUPBOX_ALIGNMENT )
{
hb_retni( ( Qt::Alignment ) 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().toAscii().data() );
}
/*
* void setChecked ( bool checked )
*/
HB_FUNC( QT_QGROUPBOX_SETCHECKED )
{
hbqt_par_QGroupBox( 1 )->setChecked( hb_parl( 2 ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,94 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QHBoxLayout>
/*
* QHBoxLayout ()
* QHBoxLayout ( QWidget * parent )
* ~QHBoxLayout ()
*/
HB_FUNC( QT_QHBOXLAYOUT )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QHBoxLayout > pObj = NULL;
pObj = ( QHBoxLayout * ) new QHBoxLayout( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,553 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum ResizeMode { Interactive, Fixed, Stretch, ResizeToContents, Custom }
*/
#include <QtCore/QPointer>
#include <QtGui/QHeaderView>
/*
* QHeaderView ( Qt::Orientation orientation, QWidget * parent = 0 )
* virtual ~QHeaderView ()
*/
HB_FUNC( QT_QHEADERVIEW )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QHeaderView > pObj = NULL;
pObj = new QHeaderView( ( Qt::Orientation ) hb_parni( 1 ), hbqt_par_QWidget( 2 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* bool cascadingSectionResizes () const
*/
HB_FUNC( QT_QHEADERVIEW_CASCADINGSECTIONRESIZES )
{
hb_retl( hbqt_par_QHeaderView( 1 )->cascadingSectionResizes() );
}
/*
* int count () const
*/
HB_FUNC( QT_QHEADERVIEW_COUNT )
{
hb_retni( hbqt_par_QHeaderView( 1 )->count() );
}
/*
* Qt::Alignment defaultAlignment () const
*/
HB_FUNC( QT_QHEADERVIEW_DEFAULTALIGNMENT )
{
hb_retni( ( Qt::Alignment ) hbqt_par_QHeaderView( 1 )->defaultAlignment() );
}
/*
* int defaultSectionSize () const
*/
HB_FUNC( QT_QHEADERVIEW_DEFAULTSECTIONSIZE )
{
hb_retni( hbqt_par_QHeaderView( 1 )->defaultSectionSize() );
}
/*
* int hiddenSectionCount () const
*/
HB_FUNC( QT_QHEADERVIEW_HIDDENSECTIONCOUNT )
{
hb_retni( hbqt_par_QHeaderView( 1 )->hiddenSectionCount() );
}
/*
* void hideSection ( int logicalIndex )
*/
HB_FUNC( QT_QHEADERVIEW_HIDESECTION )
{
hbqt_par_QHeaderView( 1 )->hideSection( hb_parni( 2 ) );
}
/*
* bool highlightSections () const
*/
HB_FUNC( QT_QHEADERVIEW_HIGHLIGHTSECTIONS )
{
hb_retl( hbqt_par_QHeaderView( 1 )->highlightSections() );
}
/*
* bool isClickable () const
*/
HB_FUNC( QT_QHEADERVIEW_ISCLICKABLE )
{
hb_retl( hbqt_par_QHeaderView( 1 )->isClickable() );
}
/*
* bool isMovable () const
*/
HB_FUNC( QT_QHEADERVIEW_ISMOVABLE )
{
hb_retl( hbqt_par_QHeaderView( 1 )->isMovable() );
}
/*
* bool isSectionHidden ( int logicalIndex ) const
*/
HB_FUNC( QT_QHEADERVIEW_ISSECTIONHIDDEN )
{
hb_retl( hbqt_par_QHeaderView( 1 )->isSectionHidden( hb_parni( 2 ) ) );
}
/*
* bool isSortIndicatorShown () const
*/
HB_FUNC( QT_QHEADERVIEW_ISSORTINDICATORSHOWN )
{
hb_retl( hbqt_par_QHeaderView( 1 )->isSortIndicatorShown() );
}
/*
* int length () const
*/
HB_FUNC( QT_QHEADERVIEW_LENGTH )
{
hb_retni( hbqt_par_QHeaderView( 1 )->length() );
}
/*
* int logicalIndex ( int visualIndex ) const
*/
HB_FUNC( QT_QHEADERVIEW_LOGICALINDEX )
{
hb_retni( hbqt_par_QHeaderView( 1 )->logicalIndex( hb_parni( 2 ) ) );
}
/*
* int logicalIndexAt ( int position ) const
*/
HB_FUNC( QT_QHEADERVIEW_LOGICALINDEXAT )
{
hb_retni( hbqt_par_QHeaderView( 1 )->logicalIndexAt( hb_parni( 2 ) ) );
}
/*
* int logicalIndexAt ( int x, int y ) const
*/
HB_FUNC( QT_QHEADERVIEW_LOGICALINDEXAT_1 )
{
hb_retni( hbqt_par_QHeaderView( 1 )->logicalIndexAt( hb_parni( 2 ), hb_parni( 3 ) ) );
}
/*
* int logicalIndexAt ( const QPoint & pos ) const
*/
HB_FUNC( QT_QHEADERVIEW_LOGICALINDEXAT_2 )
{
hb_retni( hbqt_par_QHeaderView( 1 )->logicalIndexAt( *hbqt_par_QPoint( 2 ) ) );
}
/*
* int minimumSectionSize () const
*/
HB_FUNC( QT_QHEADERVIEW_MINIMUMSECTIONSIZE )
{
hb_retni( hbqt_par_QHeaderView( 1 )->minimumSectionSize() );
}
/*
* void moveSection ( int from, int to )
*/
HB_FUNC( QT_QHEADERVIEW_MOVESECTION )
{
hbqt_par_QHeaderView( 1 )->moveSection( hb_parni( 2 ), hb_parni( 3 ) );
}
/*
* int offset () const
*/
HB_FUNC( QT_QHEADERVIEW_OFFSET )
{
hb_retni( hbqt_par_QHeaderView( 1 )->offset() );
}
/*
* Qt::Orientation orientation () const
*/
HB_FUNC( QT_QHEADERVIEW_ORIENTATION )
{
hb_retni( ( Qt::Orientation ) hbqt_par_QHeaderView( 1 )->orientation() );
}
/*
* ResizeMode resizeMode ( int logicalIndex ) const
*/
HB_FUNC( QT_QHEADERVIEW_RESIZEMODE )
{
hb_retni( ( QHeaderView::ResizeMode ) hbqt_par_QHeaderView( 1 )->resizeMode( hb_parni( 2 ) ) );
}
/*
* void resizeSection ( int logicalIndex, int size )
*/
HB_FUNC( QT_QHEADERVIEW_RESIZESECTION )
{
hbqt_par_QHeaderView( 1 )->resizeSection( hb_parni( 2 ), hb_parni( 3 ) );
}
/*
* void resizeSections ( QHeaderView::ResizeMode mode )
*/
HB_FUNC( QT_QHEADERVIEW_RESIZESECTIONS )
{
hbqt_par_QHeaderView( 1 )->resizeSections( ( QHeaderView::ResizeMode ) hb_parni( 2 ) );
}
/*
* bool restoreState ( const QByteArray & state )
*/
HB_FUNC( QT_QHEADERVIEW_RESTORESTATE )
{
hb_retl( hbqt_par_QHeaderView( 1 )->restoreState( *hbqt_par_QByteArray( 2 ) ) );
}
/*
* QByteArray saveState () const
*/
HB_FUNC( QT_QHEADERVIEW_SAVESTATE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QByteArray( hbqt_par_QHeaderView( 1 )->saveState() ) ) );
}
/*
* int sectionPosition ( int logicalIndex ) const
*/
HB_FUNC( QT_QHEADERVIEW_SECTIONPOSITION )
{
hb_retni( hbqt_par_QHeaderView( 1 )->sectionPosition( hb_parni( 2 ) ) );
}
/*
* int sectionSize ( int logicalIndex ) const
*/
HB_FUNC( QT_QHEADERVIEW_SECTIONSIZE )
{
hb_retni( hbqt_par_QHeaderView( 1 )->sectionSize( hb_parni( 2 ) ) );
}
/*
* int sectionSizeHint ( int logicalIndex ) const
*/
HB_FUNC( QT_QHEADERVIEW_SECTIONSIZEHINT )
{
hb_retni( hbqt_par_QHeaderView( 1 )->sectionSizeHint( hb_parni( 2 ) ) );
}
/*
* int sectionViewportPosition ( int logicalIndex ) const
*/
HB_FUNC( QT_QHEADERVIEW_SECTIONVIEWPORTPOSITION )
{
hb_retni( hbqt_par_QHeaderView( 1 )->sectionViewportPosition( hb_parni( 2 ) ) );
}
/*
* bool sectionsHidden () const
*/
HB_FUNC( QT_QHEADERVIEW_SECTIONSHIDDEN )
{
hb_retl( hbqt_par_QHeaderView( 1 )->sectionsHidden() );
}
/*
* bool sectionsMoved () const
*/
HB_FUNC( QT_QHEADERVIEW_SECTIONSMOVED )
{
hb_retl( hbqt_par_QHeaderView( 1 )->sectionsMoved() );
}
/*
* void setCascadingSectionResizes ( bool enable )
*/
HB_FUNC( QT_QHEADERVIEW_SETCASCADINGSECTIONRESIZES )
{
hbqt_par_QHeaderView( 1 )->setCascadingSectionResizes( hb_parl( 2 ) );
}
/*
* void setClickable ( bool clickable )
*/
HB_FUNC( QT_QHEADERVIEW_SETCLICKABLE )
{
hbqt_par_QHeaderView( 1 )->setClickable( hb_parl( 2 ) );
}
/*
* void setDefaultAlignment ( Qt::Alignment alignment )
*/
HB_FUNC( QT_QHEADERVIEW_SETDEFAULTALIGNMENT )
{
hbqt_par_QHeaderView( 1 )->setDefaultAlignment( ( Qt::Alignment ) hb_parni( 2 ) );
}
/*
* void setDefaultSectionSize ( int size )
*/
HB_FUNC( QT_QHEADERVIEW_SETDEFAULTSECTIONSIZE )
{
hbqt_par_QHeaderView( 1 )->setDefaultSectionSize( hb_parni( 2 ) );
}
/*
* void setHighlightSections ( bool highlight )
*/
HB_FUNC( QT_QHEADERVIEW_SETHIGHLIGHTSECTIONS )
{
hbqt_par_QHeaderView( 1 )->setHighlightSections( hb_parl( 2 ) );
}
/*
* void setMinimumSectionSize ( int size )
*/
HB_FUNC( QT_QHEADERVIEW_SETMINIMUMSECTIONSIZE )
{
hbqt_par_QHeaderView( 1 )->setMinimumSectionSize( hb_parni( 2 ) );
}
/*
* void setMovable ( bool movable )
*/
HB_FUNC( QT_QHEADERVIEW_SETMOVABLE )
{
hbqt_par_QHeaderView( 1 )->setMovable( hb_parl( 2 ) );
}
/*
* void setResizeMode ( ResizeMode mode )
*/
HB_FUNC( QT_QHEADERVIEW_SETRESIZEMODE )
{
hbqt_par_QHeaderView( 1 )->setResizeMode( ( QHeaderView::ResizeMode ) hb_parni( 2 ) );
}
/*
* void setResizeMode ( int logicalIndex, ResizeMode mode )
*/
HB_FUNC( QT_QHEADERVIEW_SETRESIZEMODE_1 )
{
hbqt_par_QHeaderView( 1 )->setResizeMode( hb_parni( 2 ), ( QHeaderView::ResizeMode ) hb_parni( 3 ) );
}
/*
* void setSectionHidden ( int logicalIndex, bool hide )
*/
HB_FUNC( QT_QHEADERVIEW_SETSECTIONHIDDEN )
{
hbqt_par_QHeaderView( 1 )->setSectionHidden( hb_parni( 2 ), hb_parl( 3 ) );
}
/*
* void setSortIndicator ( int logicalIndex, Qt::SortOrder order )
*/
HB_FUNC( QT_QHEADERVIEW_SETSORTINDICATOR )
{
hbqt_par_QHeaderView( 1 )->setSortIndicator( hb_parni( 2 ), ( Qt::SortOrder ) hb_parni( 3 ) );
}
/*
* void setSortIndicatorShown ( bool show )
*/
HB_FUNC( QT_QHEADERVIEW_SETSORTINDICATORSHOWN )
{
hbqt_par_QHeaderView( 1 )->setSortIndicatorShown( hb_parl( 2 ) );
}
/*
* void setStretchLastSection ( bool stretch )
*/
HB_FUNC( QT_QHEADERVIEW_SETSTRETCHLASTSECTION )
{
hbqt_par_QHeaderView( 1 )->setStretchLastSection( hb_parl( 2 ) );
}
/*
* void showSection ( int logicalIndex )
*/
HB_FUNC( QT_QHEADERVIEW_SHOWSECTION )
{
hbqt_par_QHeaderView( 1 )->showSection( hb_parni( 2 ) );
}
/*
* virtual QSize sizeHint () const
*/
HB_FUNC( QT_QHEADERVIEW_SIZEHINT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QHeaderView( 1 )->sizeHint() ) ) );
}
/*
* Qt::SortOrder sortIndicatorOrder () const
*/
HB_FUNC( QT_QHEADERVIEW_SORTINDICATORORDER )
{
hb_retni( ( Qt::SortOrder ) hbqt_par_QHeaderView( 1 )->sortIndicatorOrder() );
}
/*
* int sortIndicatorSection () const
*/
HB_FUNC( QT_QHEADERVIEW_SORTINDICATORSECTION )
{
hb_retni( hbqt_par_QHeaderView( 1 )->sortIndicatorSection() );
}
/*
* bool stretchLastSection () const
*/
HB_FUNC( QT_QHEADERVIEW_STRETCHLASTSECTION )
{
hb_retl( hbqt_par_QHeaderView( 1 )->stretchLastSection() );
}
/*
* int stretchSectionCount () const
*/
HB_FUNC( QT_QHEADERVIEW_STRETCHSECTIONCOUNT )
{
hb_retni( hbqt_par_QHeaderView( 1 )->stretchSectionCount() );
}
/*
* void swapSections ( int first, int second )
*/
HB_FUNC( QT_QHEADERVIEW_SWAPSECTIONS )
{
hbqt_par_QHeaderView( 1 )->swapSections( hb_parni( 2 ), hb_parni( 3 ) );
}
/*
* int visualIndex ( int logicalIndex ) const
*/
HB_FUNC( QT_QHEADERVIEW_VISUALINDEX )
{
hb_retni( hbqt_par_QHeaderView( 1 )->visualIndex( hb_parni( 2 ) ) );
}
/*
* int visualIndexAt ( int position ) const
*/
HB_FUNC( QT_QHEADERVIEW_VISUALINDEXAT )
{
hb_retni( hbqt_par_QHeaderView( 1 )->visualIndexAt( hb_parni( 2 ) ) );
}
/*
* void headerDataChanged ( Qt::Orientation orientation, int logicalFirst, int logicalLast )
*/
HB_FUNC( QT_QHEADERVIEW_HEADERDATACHANGED )
{
hbqt_par_QHeaderView( 1 )->headerDataChanged( ( Qt::Orientation ) hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ) );
}
/*
* void setOffset ( int offset )
*/
HB_FUNC( QT_QHEADERVIEW_SETOFFSET )
{
hbqt_par_QHeaderView( 1 )->setOffset( hb_parni( 2 ) );
}
/*
* void setOffsetToLastSection ()
*/
HB_FUNC( QT_QHEADERVIEW_SETOFFSETTOLASTSECTION )
{
hbqt_par_QHeaderView( 1 )->setOffsetToLastSection();
}
/*
* void setOffsetToSectionPosition ( int visualIndex )
*/
HB_FUNC( QT_QHEADERVIEW_SETOFFSETTOSECTIONPOSITION )
{
hbqt_par_QHeaderView( 1 )->setOffsetToSectionPosition( hb_parni( 2 ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,324 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum ConnectionMode { ConnectionModeHttp, ConnectionModeHttps }
* enum Error { NoError, HostNotFound, ConnectionRefused, UnexpectedClose, ..., UnknownError }
* enum State { Unconnected, HostLookup, Connecting, Sending, ..., Closing }
*/
#include <QtCore/QPointer>
#include <QtNetwork/QHttp>
/*
* QHttp ( QObject * parent = 0 )
* QHttp ( const QString & hostName, quint16 port = 80, QObject * parent = 0 )
* QHttp ( const QString & hostName, ConnectionMode mode, quint16 port = 0, QObject * parent = 0 )
* virtual ~QHttp ()
*/
/*
* qint64 read ( char * data, qint64 maxlen )
*/
HB_FUNC( QT_QHTTP_READ )
{
char * iData = ( char * ) hb_xgrab( hb_parnint( 3 ) + 1 );
qint64 iRead;
iRead = hbqt_par_QHttp( 1 )->read( iData, hb_parnint( 3 ) );
hb_retnint( iRead );
if( ! hb_storclen_buffer( iData, iRead, 2 ) )
hb_xfree( iData );
}
HB_FUNC( QT_QHTTP )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QHttp > pObj = NULL;
pObj = new QHttp( hbqt_par_QObject( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* qint64 bytesAvailable () const
*/
HB_FUNC( QT_QHTTP_BYTESAVAILABLE )
{
hb_retnint( hbqt_par_QHttp( 1 )->bytesAvailable() );
}
/*
* void clearPendingRequests ()
*/
HB_FUNC( QT_QHTTP_CLEARPENDINGREQUESTS )
{
hbqt_par_QHttp( 1 )->clearPendingRequests();
}
/*
* int close ()
*/
HB_FUNC( QT_QHTTP_CLOSE )
{
hb_retni( hbqt_par_QHttp( 1 )->close() );
}
/*
* QIODevice * currentDestinationDevice () const
*/
HB_FUNC( QT_QHTTP_CURRENTDESTINATIONDEVICE )
{
hb_retptr( ( QIODevice* ) hbqt_par_QHttp( 1 )->currentDestinationDevice() );
}
/*
* int currentId () const
*/
HB_FUNC( QT_QHTTP_CURRENTID )
{
hb_retni( hbqt_par_QHttp( 1 )->currentId() );
}
/*
* QHttpRequestHeader currentRequest () const
*/
HB_FUNC( QT_QHTTP_CURRENTREQUEST )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QHttpRequestHeader( hbqt_par_QHttp( 1 )->currentRequest() ) ) );
}
/*
* QIODevice * currentSourceDevice () const
*/
HB_FUNC( QT_QHTTP_CURRENTSOURCEDEVICE )
{
hb_retptr( ( QIODevice* ) hbqt_par_QHttp( 1 )->currentSourceDevice() );
}
/*
* Error error () const
*/
HB_FUNC( QT_QHTTP_ERROR )
{
hb_retni( ( QHttp::Error ) hbqt_par_QHttp( 1 )->error() );
}
/*
* QString errorString () const
*/
HB_FUNC( QT_QHTTP_ERRORSTRING )
{
hb_retc( hbqt_par_QHttp( 1 )->errorString().toAscii().data() );
}
/*
* int get ( const QString & path, QIODevice * to = 0 )
*/
HB_FUNC( QT_QHTTP_GET )
{
hb_retni( hbqt_par_QHttp( 1 )->get( hbqt_par_QString( 2 ), hbqt_par_QIODevice( 3 ) ) );
}
/*
* bool hasPendingRequests () const
*/
HB_FUNC( QT_QHTTP_HASPENDINGREQUESTS )
{
hb_retl( hbqt_par_QHttp( 1 )->hasPendingRequests() );
}
/*
* int head ( const QString & path )
*/
HB_FUNC( QT_QHTTP_HEAD )
{
hb_retni( hbqt_par_QHttp( 1 )->head( hbqt_par_QString( 2 ) ) );
}
/*
* QHttpResponseHeader lastResponse () const
*/
HB_FUNC( QT_QHTTP_LASTRESPONSE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QHttpResponseHeader( hbqt_par_QHttp( 1 )->lastResponse() ) ) );
}
/*
* int post ( const QString & path, QIODevice * data, QIODevice * to = 0 )
*/
HB_FUNC( QT_QHTTP_POST )
{
hb_retni( hbqt_par_QHttp( 1 )->post( hbqt_par_QString( 2 ), hbqt_par_QIODevice( 3 ), hbqt_par_QIODevice( 4 ) ) );
}
/*
* int post ( const QString & path, const QByteArray & data, QIODevice * to = 0 )
*/
HB_FUNC( QT_QHTTP_POST_1 )
{
hb_retni( hbqt_par_QHttp( 1 )->post( hbqt_par_QString( 2 ), *hbqt_par_QByteArray( 3 ), hbqt_par_QIODevice( 4 ) ) );
}
/*
* QByteArray readAll ()
*/
HB_FUNC( QT_QHTTP_READALL )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QByteArray( hbqt_par_QHttp( 1 )->readAll() ) ) );
}
/*
* int request ( const QHttpRequestHeader & header, QIODevice * data = 0, QIODevice * to = 0 )
*/
HB_FUNC( QT_QHTTP_REQUEST )
{
hb_retni( hbqt_par_QHttp( 1 )->request( *hbqt_par_QHttpRequestHeader( 2 ), hbqt_par_QIODevice( 3 ), hbqt_par_QIODevice( 4 ) ) );
}
/*
* int request ( const QHttpRequestHeader & header, const QByteArray & data, QIODevice * to = 0 )
*/
HB_FUNC( QT_QHTTP_REQUEST_1 )
{
hb_retni( hbqt_par_QHttp( 1 )->request( *hbqt_par_QHttpRequestHeader( 2 ), *hbqt_par_QByteArray( 3 ), hbqt_par_QIODevice( 4 ) ) );
}
/*
* int setHost ( const QString & hostName, quint16 port = 80 )
*/
HB_FUNC( QT_QHTTP_SETHOST )
{
hb_retni( hbqt_par_QHttp( 1 )->setHost( hbqt_par_QString( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : 80 ) ) );
}
/*
* int setHost ( const QString & hostName, ConnectionMode mode, quint16 port = 0 )
*/
HB_FUNC( QT_QHTTP_SETHOST_1 )
{
hb_retni( hbqt_par_QHttp( 1 )->setHost( hbqt_par_QString( 2 ), ( QHttp::ConnectionMode ) hb_parni( 3 ), hb_parni( 4 ) ) );
}
/*
* int setProxy ( const QString & host, int port, const QString & username = QString(), const QString & password = QString() )
*/
HB_FUNC( QT_QHTTP_SETPROXY )
{
hb_retni( hbqt_par_QHttp( 1 )->setProxy( hbqt_par_QString( 2 ), hb_parni( 3 ), hbqt_par_QString( 4 ), hbqt_par_QString( 5 ) ) );
}
/*
* int setProxy ( const QNetworkProxy & proxy )
*/
HB_FUNC( QT_QHTTP_SETPROXY_1 )
{
hb_retni( hbqt_par_QHttp( 1 )->setProxy( *hbqt_par_QNetworkProxy( 2 ) ) );
}
/*
* int setSocket ( QTcpSocket * socket )
*/
HB_FUNC( QT_QHTTP_SETSOCKET )
{
hb_retni( hbqt_par_QHttp( 1 )->setSocket( hbqt_par_QTcpSocket( 2 ) ) );
}
/*
* int setUser ( const QString & userName, const QString & password = QString() )
*/
HB_FUNC( QT_QHTTP_SETUSER )
{
hb_retni( hbqt_par_QHttp( 1 )->setUser( hbqt_par_QString( 2 ), hbqt_par_QString( 3 ) ) );
}
/*
* State state () const
*/
HB_FUNC( QT_QHTTP_STATE )
{
hb_retni( ( QHttp::State ) hbqt_par_QHttp( 1 )->state() );
}
/*
* void abort ()
*/
HB_FUNC( QT_QHTTP_ABORT )
{
hbqt_par_QHttp( 1 )->abort();
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,355 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* flags OpenMode
* enum OpenModeFlag { NotOpen, ReadOnly, WriteOnly, ReadWrite, ..., Unbuffered }
*/
#include <QtCore/QPointer>
#include <QtCore/QIODevice>
/*
* QIODevice ()
* QIODevice ( QObject * parent )
* virtual ~QIODevice ()
*/
HB_FUNC( QT_QIODEVICE )
{
}
/*
* virtual bool atEnd () const
*/
HB_FUNC( QT_QIODEVICE_ATEND )
{
hb_retl( hbqt_par_QIODevice( 1 )->atEnd() );
}
/*
* virtual qint64 bytesAvailable () const
*/
HB_FUNC( QT_QIODEVICE_BYTESAVAILABLE )
{
hb_retnint( hbqt_par_QIODevice( 1 )->bytesAvailable() );
}
/*
* virtual qint64 bytesToWrite () const
*/
HB_FUNC( QT_QIODEVICE_BYTESTOWRITE )
{
hb_retnint( hbqt_par_QIODevice( 1 )->bytesToWrite() );
}
/*
* virtual bool canReadLine () const
*/
HB_FUNC( QT_QIODEVICE_CANREADLINE )
{
hb_retl( hbqt_par_QIODevice( 1 )->canReadLine() );
}
/*
* virtual void close ()
*/
HB_FUNC( QT_QIODEVICE_CLOSE )
{
hbqt_par_QIODevice( 1 )->close();
}
/*
* QString errorString () const
*/
HB_FUNC( QT_QIODEVICE_ERRORSTRING )
{
hb_retc( hbqt_par_QIODevice( 1 )->errorString().toAscii().data() );
}
/*
* bool getChar ( char * c )
*/
HB_FUNC( QT_QIODEVICE_GETCHAR )
{
hb_retl( hbqt_par_QIODevice( 1 )->getChar( ( char * ) hb_parc( 2 ) ) );
}
/*
* bool isOpen () const
*/
HB_FUNC( QT_QIODEVICE_ISOPEN )
{
hb_retl( hbqt_par_QIODevice( 1 )->isOpen() );
}
/*
* bool isReadable () const
*/
HB_FUNC( QT_QIODEVICE_ISREADABLE )
{
hb_retl( hbqt_par_QIODevice( 1 )->isReadable() );
}
/*
* virtual bool isSequential () const
*/
HB_FUNC( QT_QIODEVICE_ISSEQUENTIAL )
{
hb_retl( hbqt_par_QIODevice( 1 )->isSequential() );
}
/*
* bool isTextModeEnabled () const
*/
HB_FUNC( QT_QIODEVICE_ISTEXTMODEENABLED )
{
hb_retl( hbqt_par_QIODevice( 1 )->isTextModeEnabled() );
}
/*
* bool isWritable () const
*/
HB_FUNC( QT_QIODEVICE_ISWRITABLE )
{
hb_retl( hbqt_par_QIODevice( 1 )->isWritable() );
}
/*
* virtual bool open ( OpenMode mode )
*/
HB_FUNC( QT_QIODEVICE_OPEN )
{
hb_retl( hbqt_par_QIODevice( 1 )->open( ( QIODevice::OpenMode ) hb_parni( 2 ) ) );
}
/*
* OpenMode openMode () const
*/
HB_FUNC( QT_QIODEVICE_OPENMODE )
{
hb_retni( ( QIODevice::OpenMode ) hbqt_par_QIODevice( 1 )->openMode() );
}
/*
* qint64 peek ( char * data, qint64 maxSize )
*/
HB_FUNC( QT_QIODEVICE_PEEK )
{
hb_retnint( hbqt_par_QIODevice( 1 )->peek( ( char * ) hb_parc( 2 ), hb_parnint( 3 ) ) );
}
/*
* QByteArray peek ( qint64 maxSize )
*/
HB_FUNC( QT_QIODEVICE_PEEK_1 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QByteArray( hbqt_par_QIODevice( 1 )->peek( hb_parnint( 2 ) ) ) ) );
}
/*
* virtual qint64 pos () const
*/
HB_FUNC( QT_QIODEVICE_POS )
{
hb_retnint( hbqt_par_QIODevice( 1 )->pos() );
}
/*
* bool putChar ( char c )
*/
HB_FUNC( QT_QIODEVICE_PUTCHAR )
{
hb_retl( hbqt_par_QIODevice( 1 )->putChar( ( char ) hb_parni( 2 ) ) );
}
/*
* qint64 read ( char * data, qint64 maxSize )
*/
HB_FUNC( QT_QIODEVICE_READ )
{
hb_retnint( hbqt_par_QIODevice( 1 )->read( ( char * ) hb_parc( 2 ), hb_parnint( 3 ) ) );
}
/*
* QByteArray read ( qint64 maxSize )
*/
HB_FUNC( QT_QIODEVICE_READ_1 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QByteArray( hbqt_par_QIODevice( 1 )->read( hb_parnint( 2 ) ) ) ) );
}
/*
* QByteArray readAll ()
*/
HB_FUNC( QT_QIODEVICE_READALL )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QByteArray( hbqt_par_QIODevice( 1 )->readAll() ) ) );
}
/*
* qint64 readLine ( char * data, qint64 maxSize )
*/
HB_FUNC( QT_QIODEVICE_READLINE )
{
hb_retnint( hbqt_par_QIODevice( 1 )->readLine( ( char * ) hb_parc( 2 ), hb_parnint( 3 ) ) );
}
/*
* QByteArray readLine ( qint64 maxSize = 0 )
*/
HB_FUNC( QT_QIODEVICE_READLINE_1 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QByteArray( hbqt_par_QIODevice( 1 )->readLine( hb_parnint( 2 ) ) ) ) );
}
/*
* virtual bool reset ()
*/
HB_FUNC( QT_QIODEVICE_RESET )
{
hb_retl( hbqt_par_QIODevice( 1 )->reset() );
}
/*
* virtual bool seek ( qint64 pos )
*/
HB_FUNC( QT_QIODEVICE_SEEK )
{
hb_retl( hbqt_par_QIODevice( 1 )->seek( hb_parnint( 2 ) ) );
}
/*
* void setTextModeEnabled ( bool enabled )
*/
HB_FUNC( QT_QIODEVICE_SETTEXTMODEENABLED )
{
hbqt_par_QIODevice( 1 )->setTextModeEnabled( hb_parl( 2 ) );
}
/*
* virtual qint64 size () const
*/
HB_FUNC( QT_QIODEVICE_SIZE )
{
hb_retnint( hbqt_par_QIODevice( 1 )->size() );
}
/*
* void ungetChar ( char c )
*/
HB_FUNC( QT_QIODEVICE_UNGETCHAR )
{
hbqt_par_QIODevice( 1 )->ungetChar( ( char ) hb_parni( 2 ) );
}
/*
* virtual bool waitForBytesWritten ( int msecs )
*/
HB_FUNC( QT_QIODEVICE_WAITFORBYTESWRITTEN )
{
hb_retl( hbqt_par_QIODevice( 1 )->waitForBytesWritten( hb_parni( 2 ) ) );
}
/*
* virtual bool waitForReadyRead ( int msecs )
*/
HB_FUNC( QT_QIODEVICE_WAITFORREADYREAD )
{
hb_retl( hbqt_par_QIODevice( 1 )->waitForReadyRead( hb_parni( 2 ) ) );
}
/*
* qint64 write ( const char * data, qint64 maxSize )
*/
HB_FUNC( QT_QIODEVICE_WRITE )
{
hb_retnint( hbqt_par_QIODevice( 1 )->write( hbqt_par_char( 2 ), hb_parnint( 3 ) ) );
}
/*
* qint64 write ( const char * data )
*/
HB_FUNC( QT_QIODEVICE_WRITE_1 )
{
hb_retnint( hbqt_par_QIODevice( 1 )->write( hbqt_par_char( 2 ) ) );
}
/*
* qint64 write ( const QByteArray & byteArray )
*/
HB_FUNC( QT_QIODEVICE_WRITE_2 )
{
hb_retnint( hbqt_par_QIODevice( 1 )->write( *hbqt_par_QByteArray( 2 ) ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,203 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum Mode { Normal, Disabled, Active, Selected }
* enum State { Off, On }
*/
/*
* Constructed[ 10/11 [ 90.91% ] ]
*
* *** Unconvered Prototypes ***
* -----------------------------
*
* QList<QSize> availableSizes ( Mode mode = Normal, State state = Off ) const
*/
#include <QtCore/QPointer>
#include <QtGui/QIcon>
/*
* QIcon ()
* QIcon ( const QPixmap & pixmap )
* QIcon ( const QIcon & other )
* QIcon ( const QString & fileName )
* QIcon ( QIconEngine * engine )
* QIcon ( QIconEngineV2 * engine )
* ~QIcon ()
*/
HB_FUNC( QT_QICON )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISCHAR( 1 ) )
{
pObj = ( QIcon* ) new QIcon( hbqt_par_QString( 1 ) ) ;
}
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
pObj = ( QIcon* ) new QIcon( *hbqt_par_QPixmap( 1 ) ) ;
}
else
{
pObj = ( QIcon* ) new QIcon() ;
}
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QIcon" );
hb_retptrGC( p );
}
/*
* QSize actualSize ( const QSize & size, Mode mode = Normal, State state = Off ) const
*/
HB_FUNC( QT_QICON_ACTUALSIZE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QIcon( 1 )->actualSize( *hbqt_par_QSize( 2 ), ( HB_ISNUM( 3 ) ? ( QIcon::Mode ) hb_parni( 3 ) : ( QIcon::Mode ) QIcon::Normal ), ( HB_ISNUM( 4 ) ? ( QIcon::State ) hb_parni( 4 ) : ( QIcon::State ) QIcon::Off ) ) ) ) );
}
/*
* void addFile ( const QString & fileName, const QSize & size = QSize(), Mode mode = Normal, State state = Off )
*/
HB_FUNC( QT_QICON_ADDFILE )
{
hbqt_par_QIcon( 1 )->addFile( hbqt_par_QString( 2 ), ( HB_ISPOINTER( 3 ) ? *hbqt_par_QSize( 3 ) : QSize() ), ( HB_ISNUM( 4 ) ? ( QIcon::Mode ) hb_parni( 4 ) : ( QIcon::Mode ) QIcon::Normal ), ( HB_ISNUM( 5 ) ? ( QIcon::State ) hb_parni( 5 ) : ( QIcon::State ) QIcon::Off ) );
}
/*
* void addPixmap ( const QPixmap & pixmap, Mode mode = Normal, State state = Off )
*/
HB_FUNC( QT_QICON_ADDPIXMAP )
{
hbqt_par_QIcon( 1 )->addPixmap( *hbqt_par_QPixmap( 2 ), ( HB_ISNUM( 3 ) ? ( QIcon::Mode ) hb_parni( 3 ) : ( QIcon::Mode ) QIcon::Normal ), ( HB_ISNUM( 4 ) ? ( QIcon::State ) hb_parni( 4 ) : ( QIcon::State ) QIcon::Off ) );
}
/*
* qint64 cacheKey () const
*/
HB_FUNC( QT_QICON_CACHEKEY )
{
hb_retnint( hbqt_par_QIcon( 1 )->cacheKey() );
}
/*
* bool isNull () const
*/
HB_FUNC( QT_QICON_ISNULL )
{
hb_retl( hbqt_par_QIcon( 1 )->isNull() );
}
/*
* void paint ( QPainter * painter, const QRect & rect, Qt::Alignment alignment = Qt::AlignCenter, Mode mode = Normal, State state = Off ) const
*/
HB_FUNC( QT_QICON_PAINT )
{
hbqt_par_QIcon( 1 )->paint( hbqt_par_QPainter( 2 ), *hbqt_par_QRect( 3 ), ( HB_ISNUM( 4 ) ? ( Qt::Alignment ) hb_parni( 4 ) : ( Qt::Alignment ) Qt::AlignCenter ), ( HB_ISNUM( 5 ) ? ( QIcon::Mode ) hb_parni( 5 ) : ( QIcon::Mode ) QIcon::Normal ), ( HB_ISNUM( 6 ) ? ( QIcon::State ) hb_parni( 6 ) : ( QIcon::State ) QIcon::Off ) );
}
/*
* void paint ( QPainter * painter, int x, int y, int w, int h, Qt::Alignment alignment = Qt::AlignCenter, Mode mode = Normal, State state = Off ) const
*/
HB_FUNC( QT_QICON_PAINT_1 )
{
hbqt_par_QIcon( 1 )->paint( hbqt_par_QPainter( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), hb_parni( 6 ), ( HB_ISNUM( 7 ) ? ( Qt::Alignment ) hb_parni( 7 ) : ( Qt::Alignment ) Qt::AlignCenter ), ( HB_ISNUM( 8 ) ? ( QIcon::Mode ) hb_parni( 8 ) : ( QIcon::Mode ) QIcon::Normal ), ( HB_ISNUM( 9 ) ? ( QIcon::State ) hb_parni( 9 ) : ( QIcon::State ) QIcon::Off ) );
}
/*
* QPixmap pixmap ( const QSize & size, Mode mode = Normal, State state = Off ) const
*/
HB_FUNC( QT_QICON_PIXMAP )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QPixmap( hbqt_par_QIcon( 1 )->pixmap( *hbqt_par_QSize( 2 ), ( HB_ISNUM( 3 ) ? ( QIcon::Mode ) hb_parni( 3 ) : ( QIcon::Mode ) QIcon::Normal ), ( HB_ISNUM( 4 ) ? ( QIcon::State ) hb_parni( 4 ) : ( QIcon::State ) QIcon::Off ) ) ) ) );
}
/*
* QPixmap pixmap ( int w, int h, Mode mode = Normal, State state = Off ) const
*/
HB_FUNC( QT_QICON_PIXMAP_1 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QPixmap( hbqt_par_QIcon( 1 )->pixmap( hb_parni( 2 ), hb_parni( 3 ), ( HB_ISNUM( 4 ) ? ( QIcon::Mode ) hb_parni( 4 ) : ( QIcon::Mode ) QIcon::Normal ), ( HB_ISNUM( 5 ) ? ( QIcon::State ) hb_parni( 5 ) : ( QIcon::State ) QIcon::Off ) ) ) ) );
}
/*
* QPixmap pixmap ( int extent, Mode mode = Normal, State state = Off ) const
*/
HB_FUNC( QT_QICON_PIXMAP_2 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QPixmap( hbqt_par_QIcon( 1 )->pixmap( hb_parni( 2 ), ( HB_ISNUM( 3 ) ? ( QIcon::Mode ) hb_parni( 3 ) : ( QIcon::Mode ) QIcon::Normal ), ( HB_ISNUM( 4 ) ? ( QIcon::State ) hb_parni( 4 ) : ( QIcon::State ) QIcon::Off ) ) ) ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,635 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum Format { Format_Invalid, Format_Mono, Format_MonoLSB, Format_Indexed8, ..., Format_ARGB4444_Premultiplied }
* enum InvertMode { InvertRgb, InvertRgba }
*/
/*
* Constructed[ 60/64 [ 93.75% ] ]
*
* *** Unconvered Prototypes ***
* -----------------------------
*
* QVector<QRgb> colorTable () const
* QImage convertToFormat ( Format format, const QVector<QRgb> & colorTable, Qt::ImageConversionFlags flags = Qt::AutoColor ) const
* void setColorTable ( const QVector<QRgb> colors )
*
* *** Commented out protos which construct fine but do not compile ***
*
* // bool loadFromData ( const uchar * data, int len, const char * format = 0 )
*/
#include <QtCore/QPointer>
#include <QStringList>
#include <QtGui/QImage>
/*
* QImage ()
* QImage ( const QSize & size, Format format )
* QImage ( int width, int height, Format format )
* QImage ( uchar * data, int width, int height, Format format )
* QImage ( const uchar * data, int width, int height, Format format )
* QImage ( uchar * data, int width, int height, int bytesPerLine, Format format )
* QImage ( const uchar * data, int width, int height, int bytesPerLine, Format format )
* QImage ( const char * const[] xpm )
* QImage ( const QString & fileName, const char * format = 0 )
* QImage ( const char * fileName, const char * format = 0 )
* QImage ( const QImage & image )
* ~QImage ()
*/
HB_FUNC( QT_QIMAGE )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
pObj = ( QImage* ) new QImage( *hbqt_par_QImage( 1 ) ) ;
}
else if( hb_pcount() == 1 && HB_ISCHAR( 1 ) )
{
pObj = ( QImage* ) new QImage( hbqt_par_QString( 1 ), ( const char * ) 0 ) ;
}
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISCHAR( 2 ) )
{
pObj = ( QImage* ) new QImage( hbqt_par_QString( 1 ), ( const char * ) hb_parcx( 2 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISNUM( 2 ) )
{
pObj = ( QImage* ) new QImage( *hbqt_par_QSize( 1 ), ( QImage::Format ) hb_parni( 2 ) ) ;
}
else if( hb_pcount() == 3 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) )
{
pObj = ( QImage* ) new QImage( hb_parni( 1 ), hb_parni( 2 ), ( QImage::Format ) hb_parni( 3 ) ) ;
}
else if( hb_pcount() == 4 && HB_ISCHAR( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) && HB_ISNUM( 4 ) )
{
pObj = ( QImage* ) new QImage( ( const uchar * ) hb_parc( 1 ), hb_parni( 2 ), hb_parni( 3 ), ( QImage::Format ) hb_parni( 4 ) ) ;
}
else if( hb_pcount() == 5 && HB_ISCHAR( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) && HB_ISNUM( 4 ) && HB_ISNUM( 5 ) )
{
pObj = ( QImage* ) new QImage( ( const uchar * ) hb_parc( 1 ), hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), ( QImage::Format ) hb_parni( 5 ) ) ;
}
else
{
pObj = ( QImage* ) new QImage() ;
}
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QImage" );
hb_retptrGC( p );
}
/*
* bool allGray () const
*/
HB_FUNC( QT_QIMAGE_ALLGRAY )
{
hb_retl( hbqt_par_QImage( 1 )->allGray() );
}
/*
* QImage alphaChannel () const
*/
HB_FUNC( QT_QIMAGE_ALPHACHANNEL )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->alphaChannel() ) ) );
}
/*
* uchar * bits ()
*/
HB_FUNC( QT_QIMAGE_BITS )
{
hb_retptr( ( uchar* ) hbqt_par_QImage( 1 )->bits() );
}
/*
* const uchar * bits () const
*/
HB_FUNC( QT_QIMAGE_BITS_1 )
{
hb_retptr( ( uchar* ) hbqt_par_QImage( 1 )->bits() );
}
/*
* int bytesPerLine () const
*/
HB_FUNC( QT_QIMAGE_BYTESPERLINE )
{
hb_retni( hbqt_par_QImage( 1 )->bytesPerLine() );
}
/*
* qint64 cacheKey () const
*/
HB_FUNC( QT_QIMAGE_CACHEKEY )
{
hb_retnint( hbqt_par_QImage( 1 )->cacheKey() );
}
/*
* QRgb color ( int i ) const
*/
HB_FUNC( QT_QIMAGE_COLOR )
{
hb_retnl( hbqt_par_QImage( 1 )->color( hb_parni( 2 ) ) );
}
/*
* QImage convertToFormat ( Format format, Qt::ImageConversionFlags flags = Qt::AutoColor ) const
*/
HB_FUNC( QT_QIMAGE_CONVERTTOFORMAT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->convertToFormat( ( QImage::Format ) hb_parni( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::ImageConversionFlags ) hb_parni( 3 ) : ( Qt::ImageConversionFlags ) Qt::AutoColor ) ) ) ) );
}
/*
* QImage copy ( const QRect & rectangle = QRect() ) const
*/
HB_FUNC( QT_QIMAGE_COPY )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->copy( ( HB_ISPOINTER( 2 ) ? *hbqt_par_QRect( 2 ) : QRect() ) ) ) ) );
}
/*
* QImage copy ( int x, int y, int width, int height ) const
*/
HB_FUNC( QT_QIMAGE_COPY_1 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->copy( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ) ) ) ) );
}
/*
* QImage createAlphaMask ( Qt::ImageConversionFlags flags = Qt::AutoColor ) const
*/
HB_FUNC( QT_QIMAGE_CREATEALPHAMASK )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->createAlphaMask( ( HB_ISNUM( 2 ) ? ( Qt::ImageConversionFlags ) hb_parni( 2 ) : ( Qt::ImageConversionFlags ) Qt::AutoColor ) ) ) ) );
}
/*
* QImage createHeuristicMask ( bool clipTight = true ) const
*/
HB_FUNC( QT_QIMAGE_CREATEHEURISTICMASK )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->createHeuristicMask( hb_parl( 2 ) ) ) ) );
}
/*
* QImage createMaskFromColor ( QRgb color, Qt::MaskMode mode = Qt::MaskInColor ) const
*/
HB_FUNC( QT_QIMAGE_CREATEMASKFROMCOLOR )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->createMaskFromColor( hb_parnl( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::MaskMode ) hb_parni( 3 ) : ( Qt::MaskMode ) Qt::MaskInColor ) ) ) ) );
}
/*
* int depth () const
*/
HB_FUNC( QT_QIMAGE_DEPTH )
{
hb_retni( hbqt_par_QImage( 1 )->depth() );
}
/*
* int dotsPerMeterX () const
*/
HB_FUNC( QT_QIMAGE_DOTSPERMETERX )
{
hb_retni( hbqt_par_QImage( 1 )->dotsPerMeterX() );
}
/*
* int dotsPerMeterY () const
*/
HB_FUNC( QT_QIMAGE_DOTSPERMETERY )
{
hb_retni( hbqt_par_QImage( 1 )->dotsPerMeterY() );
}
/*
* void fill ( uint pixelValue )
*/
HB_FUNC( QT_QIMAGE_FILL )
{
hbqt_par_QImage( 1 )->fill( hb_parni( 2 ) );
}
/*
* Format format () const
*/
HB_FUNC( QT_QIMAGE_FORMAT )
{
hb_retni( ( QImage::Format ) hbqt_par_QImage( 1 )->format() );
}
/*
* bool hasAlphaChannel () const
*/
HB_FUNC( QT_QIMAGE_HASALPHACHANNEL )
{
hb_retl( hbqt_par_QImage( 1 )->hasAlphaChannel() );
}
/*
* int height () const
*/
HB_FUNC( QT_QIMAGE_HEIGHT )
{
hb_retni( hbqt_par_QImage( 1 )->height() );
}
/*
* void invertPixels ( InvertMode mode = InvertRgb )
*/
HB_FUNC( QT_QIMAGE_INVERTPIXELS )
{
hbqt_par_QImage( 1 )->invertPixels( ( HB_ISNUM( 2 ) ? ( QImage::InvertMode ) hb_parni( 2 ) : ( QImage::InvertMode ) QImage::InvertRgb ) );
}
/*
* bool isGrayscale () const
*/
HB_FUNC( QT_QIMAGE_ISGRAYSCALE )
{
hb_retl( hbqt_par_QImage( 1 )->isGrayscale() );
}
/*
* bool isNull () const
*/
HB_FUNC( QT_QIMAGE_ISNULL )
{
hb_retl( hbqt_par_QImage( 1 )->isNull() );
}
/*
* bool load ( const QString & fileName, const char * format = 0 )
*/
HB_FUNC( QT_QIMAGE_LOAD )
{
hb_retl( hbqt_par_QImage( 1 )->load( hbqt_par_QString( 2 ), hbqt_par_char( 3 ) ) );
}
/*
* bool load ( QIODevice * device, const char * format )
*/
HB_FUNC( QT_QIMAGE_LOAD_1 )
{
hb_retl( hbqt_par_QImage( 1 )->load( hbqt_par_QIODevice( 2 ), hbqt_par_char( 3 ) ) );
}
/*
* bool loadFromData ( const QByteArray & data, const char * format = 0 )
*/
HB_FUNC( QT_QIMAGE_LOADFROMDATA )
{
hb_retl( hbqt_par_QImage( 1 )->loadFromData( *hbqt_par_QByteArray( 2 ), hbqt_par_char( 3 ) ) );
}
/*
* QImage mirrored ( bool horizontal = false, bool vertical = true ) const
*/
HB_FUNC( QT_QIMAGE_MIRRORED )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->mirrored( hb_parl( 2 ), hb_parl( 3 ) ) ) ) );
}
/*
* int numBytes () const
*/
HB_FUNC( QT_QIMAGE_NUMBYTES )
{
hb_retni( hbqt_par_QImage( 1 )->numBytes() );
}
/*
* int numColors () const
*/
HB_FUNC( QT_QIMAGE_NUMCOLORS )
{
hb_retni( hbqt_par_QImage( 1 )->numColors() );
}
/*
* QPoint offset () const
*/
HB_FUNC( QT_QIMAGE_OFFSET )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QPoint( hbqt_par_QImage( 1 )->offset() ) ) );
}
/*
* QRgb pixel ( const QPoint & position ) const
*/
HB_FUNC( QT_QIMAGE_PIXEL )
{
hb_retnl( hbqt_par_QImage( 1 )->pixel( *hbqt_par_QPoint( 2 ) ) );
}
/*
* QRgb pixel ( int x, int y ) const
*/
HB_FUNC( QT_QIMAGE_PIXEL_1 )
{
hb_retnl( hbqt_par_QImage( 1 )->pixel( hb_parni( 2 ), hb_parni( 3 ) ) );
}
/*
* int pixelIndex ( const QPoint & position ) const
*/
HB_FUNC( QT_QIMAGE_PIXELINDEX )
{
hb_retni( hbqt_par_QImage( 1 )->pixelIndex( *hbqt_par_QPoint( 2 ) ) );
}
/*
* int pixelIndex ( int x, int y ) const
*/
HB_FUNC( QT_QIMAGE_PIXELINDEX_1 )
{
hb_retni( hbqt_par_QImage( 1 )->pixelIndex( hb_parni( 2 ), hb_parni( 3 ) ) );
}
/*
* QRect rect () const
*/
HB_FUNC( QT_QIMAGE_RECT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QImage( 1 )->rect() ) ) );
}
/*
* QImage rgbSwapped () const
*/
HB_FUNC( QT_QIMAGE_RGBSWAPPED )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->rgbSwapped() ) ) );
}
/*
* bool save ( const QString & fileName, const char * format = 0, int quality = -1 ) const
*/
HB_FUNC( QT_QIMAGE_SAVE )
{
hb_retl( hbqt_par_QImage( 1 )->save( hbqt_par_QString( 2 ), hbqt_par_char( 3 ), ( HB_ISNUM( 4 ) ? hb_parni( 4 ) : -1 ) ) );
}
/*
* bool save ( QIODevice * device, const char * format = 0, int quality = -1 ) const
*/
HB_FUNC( QT_QIMAGE_SAVE_1 )
{
hb_retl( hbqt_par_QImage( 1 )->save( hbqt_par_QIODevice( 2 ), hbqt_par_char( 3 ), ( HB_ISNUM( 4 ) ? hb_parni( 4 ) : -1 ) ) );
}
/*
* QImage scaled ( const QSize & size, Qt::AspectRatioMode aspectRatioMode = Qt::IgnoreAspectRatio, Qt::TransformationMode transformMode = Qt::FastTransformation ) const
*/
HB_FUNC( QT_QIMAGE_SCALED )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->scaled( *hbqt_par_QSize( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::AspectRatioMode ) hb_parni( 3 ) : ( Qt::AspectRatioMode ) Qt::IgnoreAspectRatio ), ( HB_ISNUM( 4 ) ? ( Qt::TransformationMode ) hb_parni( 4 ) : ( Qt::TransformationMode ) Qt::FastTransformation ) ) ) ) );
}
/*
* QImage scaled ( int width, int height, Qt::AspectRatioMode aspectRatioMode = Qt::IgnoreAspectRatio, Qt::TransformationMode transformMode = Qt::FastTransformation ) const
*/
HB_FUNC( QT_QIMAGE_SCALED_1 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->scaled( hb_parni( 2 ), hb_parni( 3 ), ( HB_ISNUM( 4 ) ? ( Qt::AspectRatioMode ) hb_parni( 4 ) : ( Qt::AspectRatioMode ) Qt::IgnoreAspectRatio ), ( HB_ISNUM( 5 ) ? ( Qt::TransformationMode ) hb_parni( 5 ) : ( Qt::TransformationMode ) Qt::FastTransformation ) ) ) ) );
}
/*
* QImage scaledToHeight ( int height, Qt::TransformationMode mode = Qt::FastTransformation ) const
*/
HB_FUNC( QT_QIMAGE_SCALEDTOHEIGHT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->scaledToHeight( hb_parni( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::TransformationMode ) hb_parni( 3 ) : ( Qt::TransformationMode ) Qt::FastTransformation ) ) ) ) );
}
/*
* QImage scaledToWidth ( int width, Qt::TransformationMode mode = Qt::FastTransformation ) const
*/
HB_FUNC( QT_QIMAGE_SCALEDTOWIDTH )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->scaledToWidth( hb_parni( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::TransformationMode ) hb_parni( 3 ) : ( Qt::TransformationMode ) Qt::FastTransformation ) ) ) ) );
}
/*
* uchar * scanLine ( int i )
*/
HB_FUNC( QT_QIMAGE_SCANLINE )
{
hb_retptr( ( uchar* ) hbqt_par_QImage( 1 )->scanLine( hb_parni( 2 ) ) );
}
/*
* const uchar * scanLine ( int i ) const
*/
HB_FUNC( QT_QIMAGE_SCANLINE_1 )
{
hb_retptr( ( uchar* ) hbqt_par_QImage( 1 )->scanLine( hb_parni( 2 ) ) );
}
/*
* void setColor ( int index, QRgb colorValue )
*/
HB_FUNC( QT_QIMAGE_SETCOLOR )
{
hbqt_par_QImage( 1 )->setColor( hb_parni( 2 ), hb_parnl( 3 ) );
}
/*
* void setDotsPerMeterX ( int x )
*/
HB_FUNC( QT_QIMAGE_SETDOTSPERMETERX )
{
hbqt_par_QImage( 1 )->setDotsPerMeterX( hb_parni( 2 ) );
}
/*
* void setDotsPerMeterY ( int y )
*/
HB_FUNC( QT_QIMAGE_SETDOTSPERMETERY )
{
hbqt_par_QImage( 1 )->setDotsPerMeterY( hb_parni( 2 ) );
}
/*
* void setNumColors ( int numColors )
*/
HB_FUNC( QT_QIMAGE_SETNUMCOLORS )
{
hbqt_par_QImage( 1 )->setNumColors( hb_parni( 2 ) );
}
/*
* void setOffset ( const QPoint & offset )
*/
HB_FUNC( QT_QIMAGE_SETOFFSET )
{
hbqt_par_QImage( 1 )->setOffset( *hbqt_par_QPoint( 2 ) );
}
/*
* void setPixel ( const QPoint & position, uint index_or_rgb )
*/
HB_FUNC( QT_QIMAGE_SETPIXEL )
{
hbqt_par_QImage( 1 )->setPixel( *hbqt_par_QPoint( 2 ), hb_parni( 3 ) );
}
/*
* void setPixel ( int x, int y, uint index_or_rgb )
*/
HB_FUNC( QT_QIMAGE_SETPIXEL_1 )
{
hbqt_par_QImage( 1 )->setPixel( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ) );
}
/*
* void setText ( const QString & key, const QString & text )
*/
HB_FUNC( QT_QIMAGE_SETTEXT )
{
hbqt_par_QImage( 1 )->setText( hbqt_par_QString( 2 ), hbqt_par_QString( 3 ) );
}
/*
* QSize size () const
*/
HB_FUNC( QT_QIMAGE_SIZE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QImage( 1 )->size() ) ) );
}
/*
* QString text ( const QString & key = QString() ) const
*/
HB_FUNC( QT_QIMAGE_TEXT )
{
hb_retc( hbqt_par_QImage( 1 )->text( hbqt_par_QString( 2 ) ).toAscii().data() );
}
/*
* QStringList textKeys () const
*/
HB_FUNC( QT_QIMAGE_TEXTKEYS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QImage( 1 )->textKeys() ) ) );
}
/*
* QImage transformed ( const QMatrix & matrix, Qt::TransformationMode mode = Qt::FastTransformation ) const
*/
HB_FUNC( QT_QIMAGE_TRANSFORMED )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->transformed( *hbqt_par_QMatrix( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::TransformationMode ) hb_parni( 3 ) : ( Qt::TransformationMode ) Qt::FastTransformation ) ) ) ) );
}
/*
* QImage transformed ( const QTransform & matrix, Qt::TransformationMode mode = Qt::FastTransformation ) const
*/
HB_FUNC( QT_QIMAGE_TRANSFORMED_1 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->transformed( *hbqt_par_QTransform( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::TransformationMode ) hb_parni( 3 ) : ( Qt::TransformationMode ) Qt::FastTransformation ) ) ) ) );
}
/*
* bool valid ( const QPoint & pos ) const
*/
HB_FUNC( QT_QIMAGE_VALID )
{
hb_retl( hbqt_par_QImage( 1 )->valid( *hbqt_par_QPoint( 2 ) ) );
}
/*
* bool valid ( int x, int y ) const
*/
HB_FUNC( QT_QIMAGE_VALID_1 )
{
hb_retl( hbqt_par_QImage( 1 )->valid( hb_parni( 2 ), hb_parni( 3 ) ) );
}
/*
* int width () const
*/
HB_FUNC( QT_QIMAGE_WIDTH )
{
hb_retni( hbqt_par_QImage( 1 )->width() );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,410 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum ImageReaderError { FileNotFoundError, DeviceError, UnsupportedFormatError, InvalidDataError, UnknownError }
*/
/*
* Constructed[ 38/39 [ 97.44% ] ]
*
* *** Unconvered Prototypes ***
* -----------------------------
*
* QList<QByteArray> supportedImageFormats ()
*/
#include <QtCore/QPointer>
#include <QColor>
#include <QtGui/QImageReader>
/*
* QImageReader ()
* QImageReader ( QIODevice * device, const QByteArray & format = QByteArray() )
* QImageReader ( const QString & fileName, const QByteArray & format = QByteArray() )
* ~QImageReader ()
*/
HB_FUNC( QT_QIMAGEREADER )
{
void * pObj = NULL;
pObj = ( QImageReader* ) new QImageReader() ;
hb_retptr( pObj );
}
/*
* bool autoDetectImageFormat () const
*/
HB_FUNC( QT_QIMAGEREADER_AUTODETECTIMAGEFORMAT )
{
hb_retl( hbqt_par_QImageReader( 1 )->autoDetectImageFormat() );
}
/*
* QColor backgroundColor () const
*/
HB_FUNC( QT_QIMAGEREADER_BACKGROUNDCOLOR )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QImageReader( 1 )->backgroundColor() ) ) );
}
/*
* bool canRead () const
*/
HB_FUNC( QT_QIMAGEREADER_CANREAD )
{
hb_retl( hbqt_par_QImageReader( 1 )->canRead() );
}
/*
* QRect clipRect () const
*/
HB_FUNC( QT_QIMAGEREADER_CLIPRECT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QImageReader( 1 )->clipRect() ) ) );
}
/*
* int currentImageNumber () const
*/
HB_FUNC( QT_QIMAGEREADER_CURRENTIMAGENUMBER )
{
hb_retni( hbqt_par_QImageReader( 1 )->currentImageNumber() );
}
/*
* QRect currentImageRect () const
*/
HB_FUNC( QT_QIMAGEREADER_CURRENTIMAGERECT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QImageReader( 1 )->currentImageRect() ) ) );
}
/*
* QIODevice * device () const
*/
HB_FUNC( QT_QIMAGEREADER_DEVICE )
{
hb_retptr( ( QIODevice* ) hbqt_par_QImageReader( 1 )->device() );
}
/*
* ImageReaderError error () const
*/
HB_FUNC( QT_QIMAGEREADER_ERROR )
{
hb_retni( ( QImageReader::ImageReaderError ) hbqt_par_QImageReader( 1 )->error() );
}
/*
* QString errorString () const
*/
HB_FUNC( QT_QIMAGEREADER_ERRORSTRING )
{
hb_retc( hbqt_par_QImageReader( 1 )->errorString().toAscii().data() );
}
/*
* QString fileName () const
*/
HB_FUNC( QT_QIMAGEREADER_FILENAME )
{
hb_retc( hbqt_par_QImageReader( 1 )->fileName().toAscii().data() );
}
/*
* QByteArray format () const
*/
HB_FUNC( QT_QIMAGEREADER_FORMAT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QByteArray( hbqt_par_QImageReader( 1 )->format() ) ) );
}
/*
* int imageCount () const
*/
HB_FUNC( QT_QIMAGEREADER_IMAGECOUNT )
{
hb_retni( hbqt_par_QImageReader( 1 )->imageCount() );
}
/*
* QImage::Format imageFormat () const
*/
HB_FUNC( QT_QIMAGEREADER_IMAGEFORMAT )
{
hb_retni( ( QImage::Format ) hbqt_par_QImageReader( 1 )->imageFormat() );
}
/*
* bool jumpToImage ( int imageNumber )
*/
HB_FUNC( QT_QIMAGEREADER_JUMPTOIMAGE )
{
hb_retl( hbqt_par_QImageReader( 1 )->jumpToImage( hb_parni( 2 ) ) );
}
/*
* bool jumpToNextImage ()
*/
HB_FUNC( QT_QIMAGEREADER_JUMPTONEXTIMAGE )
{
hb_retl( hbqt_par_QImageReader( 1 )->jumpToNextImage() );
}
/*
* int loopCount () const
*/
HB_FUNC( QT_QIMAGEREADER_LOOPCOUNT )
{
hb_retni( hbqt_par_QImageReader( 1 )->loopCount() );
}
/*
* int nextImageDelay () const
*/
HB_FUNC( QT_QIMAGEREADER_NEXTIMAGEDELAY )
{
hb_retni( hbqt_par_QImageReader( 1 )->nextImageDelay() );
}
/*
* int quality () const
*/
HB_FUNC( QT_QIMAGEREADER_QUALITY )
{
hb_retni( hbqt_par_QImageReader( 1 )->quality() );
}
/*
* QImage read ()
*/
HB_FUNC( QT_QIMAGEREADER_READ )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImageReader( 1 )->read() ) ) );
}
/*
* bool read ( QImage * image )
*/
HB_FUNC( QT_QIMAGEREADER_READ_1 )
{
hb_retl( hbqt_par_QImageReader( 1 )->read( hbqt_par_QImage( 2 ) ) );
}
/*
* QRect scaledClipRect () const
*/
HB_FUNC( QT_QIMAGEREADER_SCALEDCLIPRECT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QImageReader( 1 )->scaledClipRect() ) ) );
}
/*
* QSize scaledSize () const
*/
HB_FUNC( QT_QIMAGEREADER_SCALEDSIZE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QImageReader( 1 )->scaledSize() ) ) );
}
/*
* void setAutoDetectImageFormat ( bool enabled )
*/
HB_FUNC( QT_QIMAGEREADER_SETAUTODETECTIMAGEFORMAT )
{
hbqt_par_QImageReader( 1 )->setAutoDetectImageFormat( hb_parl( 2 ) );
}
/*
* void setBackgroundColor ( const QColor & color )
*/
HB_FUNC( QT_QIMAGEREADER_SETBACKGROUNDCOLOR )
{
hbqt_par_QImageReader( 1 )->setBackgroundColor( *hbqt_par_QColor( 2 ) );
}
/*
* void setClipRect ( const QRect & rect )
*/
HB_FUNC( QT_QIMAGEREADER_SETCLIPRECT )
{
hbqt_par_QImageReader( 1 )->setClipRect( *hbqt_par_QRect( 2 ) );
}
/*
* void setDevice ( QIODevice * device )
*/
HB_FUNC( QT_QIMAGEREADER_SETDEVICE )
{
hbqt_par_QImageReader( 1 )->setDevice( hbqt_par_QIODevice( 2 ) );
}
/*
* void setFileName ( const QString & fileName )
*/
HB_FUNC( QT_QIMAGEREADER_SETFILENAME )
{
hbqt_par_QImageReader( 1 )->setFileName( hbqt_par_QString( 2 ) );
}
/*
* void setFormat ( const QByteArray & format )
*/
HB_FUNC( QT_QIMAGEREADER_SETFORMAT )
{
hbqt_par_QImageReader( 1 )->setFormat( *hbqt_par_QByteArray( 2 ) );
}
/*
* void setQuality ( int quality )
*/
HB_FUNC( QT_QIMAGEREADER_SETQUALITY )
{
hbqt_par_QImageReader( 1 )->setQuality( hb_parni( 2 ) );
}
/*
* void setScaledClipRect ( const QRect & rect )
*/
HB_FUNC( QT_QIMAGEREADER_SETSCALEDCLIPRECT )
{
hbqt_par_QImageReader( 1 )->setScaledClipRect( *hbqt_par_QRect( 2 ) );
}
/*
* void setScaledSize ( const QSize & size )
*/
HB_FUNC( QT_QIMAGEREADER_SETSCALEDSIZE )
{
hbqt_par_QImageReader( 1 )->setScaledSize( *hbqt_par_QSize( 2 ) );
}
/*
* QSize size () const
*/
HB_FUNC( QT_QIMAGEREADER_SIZE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QImageReader( 1 )->size() ) ) );
}
/*
* bool supportsAnimation () const
*/
HB_FUNC( QT_QIMAGEREADER_SUPPORTSANIMATION )
{
hb_retl( hbqt_par_QImageReader( 1 )->supportsAnimation() );
}
/*
* bool supportsOption ( QImageIOHandler::ImageOption option ) const
*/
HB_FUNC( QT_QIMAGEREADER_SUPPORTSOPTION )
{
hb_retl( hbqt_par_QImageReader( 1 )->supportsOption( ( QImageIOHandler::ImageOption ) hb_parni( 2 ) ) );
}
/*
* QString text ( const QString & key ) const
*/
HB_FUNC( QT_QIMAGEREADER_TEXT )
{
hb_retc( hbqt_par_QImageReader( 1 )->text( hbqt_par_QString( 2 ) ).toAscii().data() );
}
/*
* QStringList textKeys () const
*/
HB_FUNC( QT_QIMAGEREADER_TEXTKEYS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QImageReader( 1 )->textKeys() ) ) );
}
/*
* QByteArray imageFormat ( const QString & fileName )
*/
HB_FUNC( QT_QIMAGEREADER_IMAGEFORMAT_1 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QByteArray( hbqt_par_QImageReader( 1 )->imageFormat( hbqt_par_QString( 2 ) ) ) ) );
}
/*
* QByteArray imageFormat ( QIODevice * device )
*/
HB_FUNC( QT_QIMAGEREADER_IMAGEFORMAT_2 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QByteArray( hbqt_par_QImageReader( 1 )->imageFormat( hbqt_par_QIODevice( 2 ) ) ) ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,249 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum ImageWriterError { DeviceError, UnsupportedFormatError, UnknownError }
*/
/*
* Constructed[ 18/19 [ 94.74% ] ]
*
* *** Unconvered Prototypes ***
* -----------------------------
*
* QList<QByteArray> supportedImageFormats ()
*/
#include <QtCore/QPointer>
#include <QtGui/QImageWriter>
/*
* QImageWriter ()
* QImageWriter ( QIODevice * device, const QByteArray & format )
* QImageWriter ( const QString & fileName, const QByteArray & format = QByteArray() )
* ~QImageWriter ()
*/
HB_FUNC( QT_QIMAGEWRITER )
{
void * pObj = NULL;
pObj = ( QImageWriter* ) new QImageWriter() ;
hb_retptr( pObj );
}
/*
* bool canWrite () const
*/
HB_FUNC( QT_QIMAGEWRITER_CANWRITE )
{
hb_retl( hbqt_par_QImageWriter( 1 )->canWrite() );
}
/*
* int compression () const
*/
HB_FUNC( QT_QIMAGEWRITER_COMPRESSION )
{
hb_retni( hbqt_par_QImageWriter( 1 )->compression() );
}
/*
* QIODevice * device () const
*/
HB_FUNC( QT_QIMAGEWRITER_DEVICE )
{
hb_retptr( ( QIODevice* ) hbqt_par_QImageWriter( 1 )->device() );
}
/*
* ImageWriterError error () const
*/
HB_FUNC( QT_QIMAGEWRITER_ERROR )
{
hb_retni( ( QImageWriter::ImageWriterError ) hbqt_par_QImageWriter( 1 )->error() );
}
/*
* QString errorString () const
*/
HB_FUNC( QT_QIMAGEWRITER_ERRORSTRING )
{
hb_retc( hbqt_par_QImageWriter( 1 )->errorString().toAscii().data() );
}
/*
* QString fileName () const
*/
HB_FUNC( QT_QIMAGEWRITER_FILENAME )
{
hb_retc( hbqt_par_QImageWriter( 1 )->fileName().toAscii().data() );
}
/*
* QByteArray format () const
*/
HB_FUNC( QT_QIMAGEWRITER_FORMAT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QByteArray( hbqt_par_QImageWriter( 1 )->format() ) ) );
}
/*
* float gamma () const
*/
HB_FUNC( QT_QIMAGEWRITER_GAMMA )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new float( hbqt_par_QImageWriter( 1 )->gamma() ) ) );
}
/*
* int quality () const
*/
HB_FUNC( QT_QIMAGEWRITER_QUALITY )
{
hb_retni( hbqt_par_QImageWriter( 1 )->quality() );
}
/*
* void setCompression ( int compression )
*/
HB_FUNC( QT_QIMAGEWRITER_SETCOMPRESSION )
{
hbqt_par_QImageWriter( 1 )->setCompression( hb_parni( 2 ) );
}
/*
* void setDevice ( QIODevice * device )
*/
HB_FUNC( QT_QIMAGEWRITER_SETDEVICE )
{
hbqt_par_QImageWriter( 1 )->setDevice( hbqt_par_QIODevice( 2 ) );
}
/*
* void setFileName ( const QString & fileName )
*/
HB_FUNC( QT_QIMAGEWRITER_SETFILENAME )
{
hbqt_par_QImageWriter( 1 )->setFileName( hbqt_par_QString( 2 ) );
}
/*
* void setFormat ( const QByteArray & format )
*/
HB_FUNC( QT_QIMAGEWRITER_SETFORMAT )
{
hbqt_par_QImageWriter( 1 )->setFormat( *hbqt_par_QByteArray( 2 ) );
}
/*
* void setGamma ( float gamma )
*/
HB_FUNC( QT_QIMAGEWRITER_SETGAMMA )
{
hbqt_par_QImageWriter( 1 )->setGamma( hb_parnd( 2 ) );
}
/*
* void setQuality ( int quality )
*/
HB_FUNC( QT_QIMAGEWRITER_SETQUALITY )
{
hbqt_par_QImageWriter( 1 )->setQuality( hb_parni( 2 ) );
}
/*
* void setText ( const QString & key, const QString & text )
*/
HB_FUNC( QT_QIMAGEWRITER_SETTEXT )
{
hbqt_par_QImageWriter( 1 )->setText( hbqt_par_QString( 2 ), hbqt_par_QString( 3 ) );
}
/*
* bool supportsOption ( QImageIOHandler::ImageOption option ) const
*/
HB_FUNC( QT_QIMAGEWRITER_SUPPORTSOPTION )
{
hb_retl( hbqt_par_QImageWriter( 1 )->supportsOption( ( QImageIOHandler::ImageOption ) hb_parni( 2 ) ) );
}
/*
* bool write ( const QImage & image )
*/
HB_FUNC( QT_QIMAGEWRITER_WRITE )
{
hb_retl( hbqt_par_QImageWriter( 1 )->write( *hbqt_par_QImage( 2 ) ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,467 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum InputDialogOption { NoButtons, UseListViewForComboBoxItems }
* enum InputMode { TextInput, IntInput, DoubleInput }
* flags InputDialogOptions
*/
#include <QtCore/QPointer>
#include <QtGui/QInputDialog>
/*
* QInputDialog ( QWidget * parent = 0, Qt::WindowFlags flags = 0 )
* ~QInputDialog ()
*/
HB_FUNC( QT_QINPUTDIALOG )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QInputDialog > pObj = NULL;
pObj = ( QInputDialog * ) new QInputDialog( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* QString cancelButtonText () const
*/
HB_FUNC( QT_QINPUTDIALOG_CANCELBUTTONTEXT )
{
hb_retc( hbqt_par_QInputDialog( 1 )->cancelButtonText().toAscii().data() );
}
/*
* QStringList comboBoxItems () const
*/
HB_FUNC( QT_QINPUTDIALOG_COMBOBOXITEMS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QInputDialog( 1 )->comboBoxItems() ) ) );
}
/*
* 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( ( QInputDialog::InputMode ) 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().toAscii().data() );
}
/*
* QString okButtonText () const
*/
HB_FUNC( QT_QINPUTDIALOG_OKBUTTONTEXT )
{
hb_retc( hbqt_par_QInputDialog( 1 )->okButtonText().toAscii().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( ( QInputDialog::InputDialogOptions ) 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 setComboBoxItems ( const QStringList & items )
*/
HB_FUNC( QT_QINPUTDIALOG_SETCOMBOBOXITEMS )
{
hbqt_par_QInputDialog( 1 )->setComboBoxItems( *hbqt_par_QStringList( 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( ( QLineEdit::EchoMode ) hbqt_par_QInputDialog( 1 )->textEchoMode() );
}
/*
* QString textValue () const
*/
HB_FUNC( QT_QINPUTDIALOG_TEXTVALUE )
{
hb_retc( hbqt_par_QInputDialog( 1 )->textValue().toAscii().data() );
}
/*
* double getDouble ( QWidget * parent, const QString & title, const QString & label, double value = 0, double min = -2147483647, double max = 2147483647, int decimals = 1, bool * ok = 0, Qt::WindowFlags flags = 0 )
*/
HB_FUNC( QT_QINPUTDIALOG_GETDOUBLE )
{
bool iOk = 0;
hb_retnd( hbqt_par_QInputDialog( 1 )->getDouble( hbqt_par_QWidget( 2 ), hbqt_par_QString( 3 ), hbqt_par_QString( 4 ), hb_parnd( 5 ), hb_parnd( 6 ), hb_parnd( 7 ), ( HB_ISNUM( 8 ) ? hb_parni( 8 ) : 1 ), &iOk, ( Qt::WindowFlags ) hb_parni( 10 ) ) );
hb_stornl( iOk, 9 );
}
/*
* int getInt ( QWidget * parent, const QString & title, const QString & label, int value = 0, int min = -2147483647, int max = 2147483647, int step = 1, bool * ok = 0, Qt::WindowFlags flags = 0 )
*/
HB_FUNC( QT_QINPUTDIALOG_GETINT )
{
bool iOk = 0;
hb_retni( hbqt_par_QInputDialog( 1 )->getInt( hbqt_par_QWidget( 2 ), hbqt_par_QString( 3 ), hbqt_par_QString( 4 ), hb_parni( 5 ), ( HB_ISNUM( 6 ) ? hb_parni( 6 ) : -2147483647 ), ( HB_ISNUM( 7 ) ? hb_parni( 7 ) : 2147483647 ), ( HB_ISNUM( 8 ) ? hb_parni( 8 ) : 1 ), &iOk, ( Qt::WindowFlags ) hb_parni( 10 ) ) );
hb_stornl( iOk, 9 );
}
/*
* QString getItem ( QWidget * parent, const QString & title, const QString & label, const QStringList & items, int current = 0, bool editable = true, bool * ok = 0, Qt::WindowFlags flags = 0 )
*/
HB_FUNC( QT_QINPUTDIALOG_GETITEM )
{
bool iOk = 0;
hb_retc( hbqt_par_QInputDialog( 1 )->getItem( hbqt_par_QWidget( 2 ), hbqt_par_QString( 3 ), hbqt_par_QString( 4 ), *hbqt_par_QStringList( 5 ), hb_parni( 6 ), hb_parl( 7 ), &iOk, ( Qt::WindowFlags ) hb_parni( 9 ) ).toAscii().data() );
hb_stornl( iOk, 8 );
}
/*
* QString getText ( QWidget * parent, const QString & title, const QString & label, QLineEdit::EchoMode mode = QLineEdit::Normal, const QString & text = QString(), bool * ok = 0, Qt::WindowFlags flags = 0 )
*/
HB_FUNC( QT_QINPUTDIALOG_GETTEXT )
{
bool iOk = 0;
hb_retc( hbqt_par_QInputDialog( 1 )->getText( hbqt_par_QWidget( 2 ), hbqt_par_QString( 3 ), hbqt_par_QString( 4 ), ( HB_ISNUM( 5 ) ? ( QLineEdit::EchoMode ) hb_parni( 5 ) : ( QLineEdit::EchoMode ) QLineEdit::Normal ), hbqt_par_QString( 6 ), &iOk, ( Qt::WindowFlags ) hb_parni( 8 ) ).toAscii().data() );
hb_stornl( iOk, 7 );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,98 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QInputEvent>
#include <QtCore/QEvent>
/*
*
*
*/
HB_FUNC( QT_QINPUTEVENT )
{
void * pObj = NULL;
pObj = ( QInputEvent* ) new QInputEvent( ( QEvent::Type ) hb_parni( 1 ), ( Qt::KeyboardModifiers ) hb_parni( 2 ) ) ;
hb_retptr( pObj );
}
/*
* Qt::KeyboardModifiers modifiers () const
*/
HB_FUNC( QT_QINPUTEVENT_MODIFIERS )
{
hb_retni( ( Qt::KeyboardModifiers ) hbqt_par_QInputEvent( 1 )->modifiers() );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,157 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QKeyEvent>
/*
* QKeyEvent ( Type type, int key, Qt::KeyboardModifiers modifiers, const QString & text = QString(), bool autorep = false, ushort count = 1 )
* ~QKeyEvent ()
*/
HB_FUNC( QT_QKEYEVENT )
{
}
/*
* int count () const
*/
HB_FUNC( QT_QKEYEVENT_COUNT )
{
hb_retni( hbqt_par_QKeyEvent( 1 )->count() );
}
/*
* bool isAutoRepeat () const
*/
HB_FUNC( QT_QKEYEVENT_ISAUTOREPEAT )
{
hb_retl( hbqt_par_QKeyEvent( 1 )->isAutoRepeat() );
}
/*
* int key () const
*/
HB_FUNC( QT_QKEYEVENT_KEY )
{
hb_retni( hbqt_par_QKeyEvent( 1 )->key() );
}
/*
* bool matches ( QKeySequence::StandardKey key ) const
*/
HB_FUNC( QT_QKEYEVENT_MATCHES )
{
hb_retl( hbqt_par_QKeyEvent( 1 )->matches( ( QKeySequence::StandardKey ) hb_parni( 2 ) ) );
}
/*
* Qt::KeyboardModifiers modifiers () const
*/
HB_FUNC( QT_QKEYEVENT_MODIFIERS )
{
hb_retni( ( Qt::KeyboardModifiers ) hbqt_par_QKeyEvent( 1 )->modifiers() );
}
/*
* quint32 nativeModifiers () const
*/
HB_FUNC( QT_QKEYEVENT_NATIVEMODIFIERS )
{
hb_retnl( hbqt_par_QKeyEvent( 1 )->nativeModifiers() );
}
/*
* quint32 nativeScanCode () const
*/
HB_FUNC( QT_QKEYEVENT_NATIVESCANCODE )
{
hb_retnl( hbqt_par_QKeyEvent( 1 )->nativeScanCode() );
}
/*
* quint32 nativeVirtualKey () const
*/
HB_FUNC( QT_QKEYEVENT_NATIVEVIRTUALKEY )
{
hb_retnl( hbqt_par_QKeyEvent( 1 )->nativeVirtualKey() );
}
/*
* QString text () const
*/
HB_FUNC( QT_QKEYEVENT_TEXT )
{
hb_retc( hbqt_par_QKeyEvent( 1 )->text().toAscii().data() );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,167 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum SequenceFormat { NativeText, PortableText }
* enum SequenceMatch { NoMatch, PartialMatch, ExactMatch }
* enum StandardKey { AddTab, Back, Bold, Close, ..., ZoomOut }
*/
/*
* Constructed[ 6/7 [ 85.71% ] ]
*
* *** Unconvered Prototypes ***
* -----------------------------
*
* QList<QKeySequence> keyBindings ( StandardKey key )
*/
#include <QtCore/QPointer>
#include <QtGui/QKeySequence>
/*
* QKeySequence ()
* QKeySequence ( const QString & key )
* QKeySequence ( int k1, int k2 = 0, int k3 = 0, int k4 = 0 )
* QKeySequence ( const QKeySequence & keysequence )
* QKeySequence ( StandardKey key )
* ~QKeySequence ()
*/
HB_FUNC( QT_QKEYSEQUENCE )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
if( HB_ISPOINTER( 1 ) )
pObj = ( QKeySequence * ) new QKeySequence( *hbqt_par_QKeySequence( 1 ) ) ;
else if( HB_ISCHAR( 1 ) )
pObj = ( QKeySequence * ) new QKeySequence( hbqt_par_QString( 1 ) ) ;
else if( HB_ISNUM( 1 ) )
pObj = ( QKeySequence * ) new QKeySequence( hb_parni( 1 ) ) ;
else
pObj = ( QKeySequence * ) new QKeySequence() ;
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QKeySequence" );
hb_retptrGC( p );
}
/*
* uint count () const
*/
HB_FUNC( QT_QKEYSEQUENCE_COUNT )
{
hb_retni( hbqt_par_QKeySequence( 1 )->count() );
}
/*
* bool isEmpty () const
*/
HB_FUNC( QT_QKEYSEQUENCE_ISEMPTY )
{
hb_retl( hbqt_par_QKeySequence( 1 )->isEmpty() );
}
/*
* SequenceMatch matches ( const QKeySequence & seq ) const
*/
HB_FUNC( QT_QKEYSEQUENCE_MATCHES )
{
hb_retni( ( QKeySequence::SequenceMatch ) hbqt_par_QKeySequence( 1 )->matches( *hbqt_par_QKeySequence( 2 ) ) );
}
/*
* QString toString ( SequenceFormat format = PortableText ) const
*/
HB_FUNC( QT_QKEYSEQUENCE_TOSTRING )
{
hb_retc( hbqt_par_QKeySequence( 1 )->toString( ( HB_ISNUM( 2 ) ? ( QKeySequence::SequenceFormat ) hb_parni( 2 ) : ( QKeySequence::SequenceFormat ) QKeySequence::PortableText ) ).toAscii().data() );
}
/*
* QKeySequence fromString ( const QString & str, SequenceFormat format = PortableText )
*/
HB_FUNC( QT_QKEYSEQUENCE_FROMSTRING )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QKeySequence( hbqt_par_QKeySequence( 1 )->fromString( hbqt_par_QString( 2 ), ( HB_ISNUM( 3 ) ? ( QKeySequence::SequenceFormat ) hb_parni( 3 ) : ( QKeySequence::SequenceFormat ) QKeySequence::PortableText ) ) ) ) );
}
/*
* QKeySequence mnemonic ( const QString & text )
*/
HB_FUNC( QT_QKEYSEQUENCE_MNEMONIC )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QKeySequence( hbqt_par_QKeySequence( 1 )->mnemonic( hbqt_par_QString( 2 ) ) ) ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,251 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum Mode { Hex, Dec, Oct, Bin }
* enum SegmentStyle { Outline, Filled, Flat }
*/
#include <QtCore/QPointer>
#include <QtGui/QLCDNumber>
/*
* QLCDNumber ( QWidget * parent = 0 )
* QLCDNumber ( uint numDigits, QWidget * parent = 0 )
* ~QLCDNumber ()
*/
HB_FUNC( QT_QLCDNUMBER )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QLCDNumber > pObj = NULL;
pObj = ( QLCDNumber * ) new QLCDNumber( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* 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( ( QLCDNumber::Mode ) 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( ( QLCDNumber::SegmentStyle ) 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() );
}
/*
* void display ( const QString & s )
*/
HB_FUNC( QT_QLCDNUMBER_DISPLAY )
{
hbqt_par_QLCDNumber( 1 )->display( hbqt_par_QString( 2 ) );
}
/*
* void display ( double num )
*/
HB_FUNC( QT_QLCDNUMBER_DISPLAY_1 )
{
hbqt_par_QLCDNumber( 1 )->display( hb_parnd( 2 ) );
}
/*
* void display ( int num )
*/
HB_FUNC( QT_QLCDNUMBER_DISPLAY_2 )
{
hbqt_par_QLCDNumber( 1 )->display( hb_parni( 2 ) );
}
/*
* void setBinMode ()
*/
HB_FUNC( QT_QLCDNUMBER_SETBINMODE )
{
hbqt_par_QLCDNumber( 1 )->setBinMode();
}
/*
* void setDecMode ()
*/
HB_FUNC( QT_QLCDNUMBER_SETDECMODE )
{
hbqt_par_QLCDNumber( 1 )->setDecMode();
}
/*
* void setHexMode ()
*/
HB_FUNC( QT_QLCDNUMBER_SETHEXMODE )
{
hbqt_par_QLCDNumber( 1 )->setHexMode();
}
/*
* void setOctMode ()
*/
HB_FUNC( QT_QLCDNUMBER_SETOCTMODE )
{
hbqt_par_QLCDNumber( 1 )->setOctMode();
}
/*
* void setSmallDecimalPoint ( bool )
*/
HB_FUNC( QT_QLCDNUMBER_SETSMALLDECIMALPOINT )
{
hbqt_par_QLCDNumber( 1 )->setSmallDecimalPoint( hb_parl( 2 ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,326 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QLabel>
/*
* QLabel ( QWidget * parent = 0, Qt::WindowFlags f = 0 )
* QLabel ( const QString & text, QWidget * parent = 0, Qt::WindowFlags f = 0 )
* ~QLabel ()
*/
HB_FUNC( QT_QLABEL )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QLabel > pObj = NULL;
pObj = ( QLabel* ) new QLabel( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* Qt::Alignment alignment () const
*/
HB_FUNC( QT_QLABEL_ALIGNMENT )
{
hb_retni( ( Qt::Alignment ) hbqt_par_QLabel( 1 )->alignment() );
}
/*
* QWidget * buddy () const
*/
HB_FUNC( QT_QLABEL_BUDDY )
{
hb_retptr( ( QWidget* ) hbqt_par_QLabel( 1 )->buddy() );
}
/*
* bool hasScaledContents () const
*/
HB_FUNC( QT_QLABEL_HASSCALEDCONTENTS )
{
hb_retl( hbqt_par_QLabel( 1 )->hasScaledContents() );
}
/*
* int indent () const
*/
HB_FUNC( QT_QLABEL_INDENT )
{
hb_retni( hbqt_par_QLabel( 1 )->indent() );
}
/*
* int margin () const
*/
HB_FUNC( QT_QLABEL_MARGIN )
{
hb_retni( hbqt_par_QLabel( 1 )->margin() );
}
/*
* 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() );
}
/*
* 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 )
*/
HB_FUNC( QT_QLABEL_SETBUDDY )
{
hbqt_par_QLabel( 1 )->setBuddy( hbqt_par_QWidget( 2 ) );
}
/*
* void setIndent ( int )
*/
HB_FUNC( QT_QLABEL_SETINDENT )
{
hbqt_par_QLabel( 1 )->setIndent( hb_parni( 2 ) );
}
/*
* void setMargin ( int )
*/
HB_FUNC( QT_QLABEL_SETMARGIN )
{
hbqt_par_QLabel( 1 )->setMargin( hb_parni( 2 ) );
}
/*
* void setOpenExternalLinks ( bool open )
*/
HB_FUNC( QT_QLABEL_SETOPENEXTERNALLINKS )
{
hbqt_par_QLabel( 1 )->setOpenExternalLinks( hb_parl( 2 ) );
}
/*
* void setScaledContents ( bool )
*/
HB_FUNC( QT_QLABEL_SETSCALEDCONTENTS )
{
hbqt_par_QLabel( 1 )->setScaledContents( hb_parl( 2 ) );
}
/*
* 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 )
*/
HB_FUNC( QT_QLABEL_SETWORDWRAP )
{
hbqt_par_QLabel( 1 )->setWordWrap( hb_parl( 2 ) );
}
/*
* QString text () const
*/
HB_FUNC( QT_QLABEL_TEXT )
{
hb_retc( hbqt_par_QLabel( 1 )->text().toAscii().data() );
}
/*
* Qt::TextFormat textFormat () const
*/
HB_FUNC( QT_QLABEL_TEXTFORMAT )
{
hb_retni( ( Qt::TextFormat ) hbqt_par_QLabel( 1 )->textFormat() );
}
/*
* Qt::TextInteractionFlags textInteractionFlags () const
*/
HB_FUNC( QT_QLABEL_TEXTINTERACTIONFLAGS )
{
hb_retni( ( Qt::TextInteractionFlags ) hbqt_par_QLabel( 1 )->textInteractionFlags() );
}
/*
* bool wordWrap () const
*/
HB_FUNC( QT_QLABEL_WORDWRAP )
{
hb_retl( hbqt_par_QLabel( 1 )->wordWrap() );
}
/*
* void clear ()
*/
HB_FUNC( QT_QLABEL_CLEAR )
{
hbqt_par_QLabel( 1 )->clear();
}
/*
* 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 setPicture ( const QPicture & picture )
*/
HB_FUNC( QT_QLABEL_SETPICTURE )
{
hbqt_par_QLabel( 1 )->setPicture( *hbqt_par_QPicture( 2 ) );
}
/*
* void setPixmap ( const QPixmap & )
*/
HB_FUNC( QT_QLABEL_SETPIXMAP )
{
hbqt_par_QLabel( 1 )->setPixmap( *hbqt_par_QPixmap( 2 ) );
}
/*
* void setText ( const QString & )
*/
HB_FUNC( QT_QLABEL_SETTEXT )
{
hbqt_par_QLabel( 1 )->setText( hbqt_par_QString( 2 ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,105 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtCore/QLatin1Char>
/*
* QLatin1Char ( char c )
*/
HB_FUNC( QT_QLATIN1CHAR )
{
void * pObj = NULL;
pObj = ( QLatin1Char* ) new QLatin1Char( *hb_parcx( 1 ) ) ;
hb_retptr( pObj );
}
/*
* char toLatin1 () const
*/
HB_FUNC( QT_QLATIN1CHAR_TOLATIN1 )
{
hb_retni( hbqt_par_QLatin1Char( 1 )->toLatin1() );
}
/*
* ushort unicode () const
*/
HB_FUNC( QT_QLATIN1CHAR_UNICODE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new ushort( hbqt_par_QLatin1Char( 1 )->unicode() ) ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,97 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtCore/QLatin1String>
/*
* QLatin1String ( const char * str )
*/
HB_FUNC( QT_QLATIN1STRING )
{
void * pObj = NULL;
pObj = ( QLatin1String* ) new QLatin1String( hb_parcx( 1 ) ) ;
hb_retptr( pObj );
}
/*
* const char * latin1 () const
*/
HB_FUNC( QT_QLATIN1STRING_LATIN1 )
{
hb_retc( hbqt_par_QLatin1String( 1 )->latin1() );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,331 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum SizeConstraint { SetDefaultConstraint, SetFixedSize, SetMinimumSize, SetMaximumSize, SetMinAndMaxSize, SetNoConstraint }
*/
#include <QtCore/QPointer>
#include <QtGui/QLayout>
/*
* QLayout ( QWidget * parent )
* QLayout ()
*/
HB_FUNC( QT_QLAYOUT )
{
}
/*
* 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 ) );
}
/*
* QRect contentsRect () const
*/
HB_FUNC( QT_QLAYOUT_CONTENTSRECT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new 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( ( Qt::Orientations ) hbqt_par_QLayout( 1 )->expandingDirections() );
}
/*
* void getContentsMargins ( int * left, int * top, int * right, int * bottom ) const
*/
HB_FUNC( QT_QLAYOUT_GETCONTENTSMARGINS )
{
int iLeft = 0;
int iTop = 0;
int iRight = 0;
int iBottom = 0;
hbqt_par_QLayout( 1 )->getContentsMargins( &iLeft, &iTop, &iRight, &iBottom );
hb_storni( iLeft, 2 );
hb_storni( iTop, 3 );
hb_storni( iRight, 4 );
hb_storni( iBottom, 5 );
}
/*
* 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() );
}
/*
* 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 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QLayout( 1 )->maximumSize() ) ) );
}
/*
* QWidget * menuBar () const
*/
HB_FUNC( QT_QLAYOUT_MENUBAR )
{
hb_retptr( ( QWidget* ) hbqt_par_QLayout( 1 )->menuBar() );
}
/*
* virtual QSize minimumSize () const
*/
HB_FUNC( QT_QLAYOUT_MINIMUMSIZE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QLayout( 1 )->minimumSize() ) ) );
}
/*
* QWidget * parentWidget () const
*/
HB_FUNC( QT_QLAYOUT_PARENTWIDGET )
{
hb_retptr( ( QWidget* ) hbqt_par_QLayout( 1 )->parentWidget() );
}
/*
* void removeItem ( QLayoutItem * item )
*/
HB_FUNC( QT_QLAYOUT_REMOVEITEM )
{
hbqt_par_QLayout( 1 )->removeItem( hbqt_par_QLayoutItem( 2 ) );
}
/*
* 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 )
{
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_1 )
{
hbqt_par_QLayout( 1 )->setAlignment( ( Qt::Alignment ) hb_parni( 2 ) );
}
/*
* 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 )
*/
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 )
*/
HB_FUNC( QT_QLAYOUT_SETENABLED )
{
hbqt_par_QLayout( 1 )->setEnabled( hb_parl( 2 ) );
}
/*
* void setMenuBar ( QWidget * widget )
*/
HB_FUNC( QT_QLAYOUT_SETMENUBAR )
{
hbqt_par_QLayout( 1 )->setMenuBar( hbqt_par_QWidget( 2 ) );
}
/*
* void setSizeConstraint ( SizeConstraint )
*/
HB_FUNC( QT_QLAYOUT_SETSIZECONSTRAINT )
{
hbqt_par_QLayout( 1 )->setSizeConstraint( ( QLayout::SizeConstraint ) hb_parni( 2 ) );
}
/*
* void setSpacing ( int )
*/
HB_FUNC( QT_QLAYOUT_SETSPACING )
{
hbqt_par_QLayout( 1 )->setSpacing( hb_parni( 2 ) );
}
/*
* SizeConstraint sizeConstraint () const
*/
HB_FUNC( QT_QLAYOUT_SIZECONSTRAINT )
{
hb_retni( ( QLayout::SizeConstraint ) hbqt_par_QLayout( 1 )->sizeConstraint() );
}
/*
* int spacing () const
*/
HB_FUNC( QT_QLAYOUT_SPACING )
{
hb_retni( hbqt_par_QLayout( 1 )->spacing() );
}
/*
* virtual QLayoutItem * takeAt ( int index ) = 0
*/
HB_FUNC( QT_QLAYOUT_TAKEAT )
{
hb_retptr( ( QLayoutItem* ) hbqt_par_QLayout( 1 )->takeAt( hb_parni( 2 ) ) );
}
/*
* void update ()
*/
HB_FUNC( QT_QLAYOUT_UPDATE )
{
hbqt_par_QLayout( 1 )->update();
}
/*
* QSize closestAcceptableSize ( const QWidget * widget, const QSize & size )
*/
HB_FUNC( QT_QLAYOUT_CLOSESTACCEPTABLESIZE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QLayout( 1 )->closestAcceptableSize( hbqt_par_QWidget( 2 ), *hbqt_par_QSize( 3 ) ) ) ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,221 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QLayoutItem>
/*
* QLayoutItem ( Qt::Alignment alignment = 0 )
* virtual ~QLayoutItem ()
*/
HB_FUNC( QT_QLAYOUTITEM )
{
}
/*
* Qt::Alignment alignment () const
*/
HB_FUNC( QT_QLAYOUTITEM_ALIGNMENT )
{
hb_retni( ( Qt::Alignment ) hbqt_par_QLayoutItem( 1 )->alignment() );
}
/*
* QSizePolicy::ControlTypes controlTypes () const
*/
HB_FUNC( QT_QLAYOUTITEM_CONTROLTYPES )
{
hb_retni( ( QSizePolicy::ControlTypes ) hbqt_par_QLayoutItem( 1 )->controlTypes() );
}
/*
* virtual Qt::Orientations expandingDirections () const = 0
*/
HB_FUNC( QT_QLAYOUTITEM_EXPANDINGDIRECTIONS )
{
hb_retni( ( Qt::Orientations ) hbqt_par_QLayoutItem( 1 )->expandingDirections() );
}
/*
* virtual QRect geometry () const = 0
*/
HB_FUNC( QT_QLAYOUTITEM_GEOMETRY )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new 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 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new 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 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new 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_par_QRect( 2 ) );
}
/*
* virtual QSize sizeHint () const = 0
*/
HB_FUNC( QT_QLAYOUTITEM_SIZEHINT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new 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 /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,245 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtCore/QLine>
/*
* QLine ()
* QLine ( const QPoint & p1, const QPoint & p2 )
* QLine ( int x1, int y1, int x2, int y2 )
*/
HB_FUNC( QT_QLINE )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
pObj = ( QLine* ) new QLine( *hbqt_par_QLine( 1 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISPOINTER( 2 ) )
{
pObj = ( QLine* ) new QLine( *hbqt_par_QPoint( 1 ), *hbqt_par_QPoint( 2 ) ) ;
}
else if( hb_pcount() == 4 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) && HB_ISNUM( 4 ) )
{
pObj = ( QLine* ) new QLine( hb_parni( 1 ), hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ) ) ;
}
else
{
pObj = ( QLine* ) new QLine() ;
}
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QLine" );
hb_retptrGC( p );
}
/*
* QPoint p1 () const
*/
HB_FUNC( QT_QLINE_P1 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QPoint( hbqt_par_QLine( 1 )->p1() ) ) );
}
/*
* QPoint p2 () const
*/
HB_FUNC( QT_QLINE_P2 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QPoint( hbqt_par_QLine( 1 )->p2() ) ) );
}
/*
* int x1 () const
*/
HB_FUNC( QT_QLINE_X1 )
{
hb_retni( hbqt_par_QLine( 1 )->x1() );
}
/*
* int x2 () const
*/
HB_FUNC( QT_QLINE_X2 )
{
hb_retni( hbqt_par_QLine( 1 )->x2() );
}
/*
* int y1 () const
*/
HB_FUNC( QT_QLINE_Y1 )
{
hb_retni( hbqt_par_QLine( 1 )->y1() );
}
/*
* int y2 () const
*/
HB_FUNC( QT_QLINE_Y2 )
{
hb_retni( hbqt_par_QLine( 1 )->y2() );
}
/*
* int dx () const
*/
HB_FUNC( QT_QLINE_DX )
{
hb_retni( hbqt_par_QLine( 1 )->dx() );
}
/*
* int dy () const
*/
HB_FUNC( QT_QLINE_DY )
{
hb_retni( hbqt_par_QLine( 1 )->dy() );
}
/*
* bool isNull () const
*/
HB_FUNC( QT_QLINE_ISNULL )
{
hb_retl( hbqt_par_QLine( 1 )->isNull() );
}
/*
* void setP1 ( const QPoint & p1 )
*/
HB_FUNC( QT_QLINE_SETP1 )
{
hbqt_par_QLine( 1 )->setP1( *hbqt_par_QPoint( 2 ) );
}
/*
* void setP2 ( const QPoint & p2 )
*/
HB_FUNC( QT_QLINE_SETP2 )
{
hbqt_par_QLine( 1 )->setP2( *hbqt_par_QPoint( 2 ) );
}
/*
* void setLine ( int x1, int y1, int x2, int y2 )
*/
HB_FUNC( QT_QLINE_SETLINE )
{
hbqt_par_QLine( 1 )->setLine( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ) );
}
/*
* void setPoints ( const QPoint & p1, const QPoint & p2 )
*/
HB_FUNC( QT_QLINE_SETPOINTS )
{
hbqt_par_QLine( 1 )->setPoints( *hbqt_par_QPoint( 2 ), *hbqt_par_QPoint( 3 ) );
}
/*
* void translate ( const QPoint & offset )
*/
HB_FUNC( QT_QLINE_TRANSLATE )
{
hbqt_par_QLine( 1 )->translate( *hbqt_par_QPoint( 2 ) );
}
/*
* void translate ( int dx, int dy )
*/
HB_FUNC( QT_QLINE_TRANSLATE_1 )
{
hbqt_par_QLine( 1 )->translate( hb_parni( 2 ), hb_parni( 3 ) );
}
/*
* QLine translated ( const QPoint & offset ) const
*/
HB_FUNC( QT_QLINE_TRANSLATED )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QLine( hbqt_par_QLine( 1 )->translated( *hbqt_par_QPoint( 2 ) ) ) ) );
}
/*
* QLine translated ( int dx, int dy ) const
*/
HB_FUNC( QT_QLINE_TRANSLATED_1 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QLine( hbqt_par_QLine( 1 )->translated( hb_parni( 2 ), hb_parni( 3 ) ) ) ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,548 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum EchoMode { Normal, NoEcho, Password, PasswordEchoOnEdit }
*/
#include <QtCore/QPointer>
#include <QtGui/QLineEdit>
/*
* QLineEdit ( QWidget * parent = 0 )
* QLineEdit ( const QString & contents, QWidget * parent = 0 )
* ~QLineEdit ()
*/
HB_FUNC( QT_QLINEEDIT )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QLineEdit > pObj = NULL;
pObj = ( QLineEdit* ) new QLineEdit( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* Qt::Alignment alignment () const
*/
HB_FUNC( QT_QLINEEDIT_ALIGNMENT )
{
hb_retni( ( Qt::Alignment ) hbqt_par_QLineEdit( 1 )->alignment() );
}
/*
* void backspace ()
*/
HB_FUNC( QT_QLINEEDIT_BACKSPACE )
{
hbqt_par_QLineEdit( 1 )->backspace();
}
/*
* QCompleter * completer () const
*/
HB_FUNC( QT_QLINEEDIT_COMPLETER )
{
hb_retptr( ( QCompleter* ) hbqt_par_QLineEdit( 1 )->completer() );
}
/*
* QMenu * createStandardContextMenu ()
*/
HB_FUNC( QT_QLINEEDIT_CREATESTANDARDCONTEXTMENU )
{
hb_retptr( ( QMenu* ) hbqt_par_QLineEdit( 1 )->createStandardContextMenu() );
}
/*
* void cursorBackward ( bool mark, int steps = 1 )
*/
HB_FUNC( QT_QLINEEDIT_CURSORBACKWARD )
{
hbqt_par_QLineEdit( 1 )->cursorBackward( hb_parl( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : 1 ) );
}
/*
* void cursorForward ( bool mark, int steps = 1 )
*/
HB_FUNC( QT_QLINEEDIT_CURSORFORWARD )
{
hbqt_par_QLineEdit( 1 )->cursorForward( hb_parl( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : 1 ) );
}
/*
* int cursorPosition () const
*/
HB_FUNC( QT_QLINEEDIT_CURSORPOSITION )
{
hb_retni( hbqt_par_QLineEdit( 1 )->cursorPosition() );
}
/*
* int cursorPositionAt ( const QPoint & pos )
*/
HB_FUNC( QT_QLINEEDIT_CURSORPOSITIONAT )
{
hb_retni( hbqt_par_QLineEdit( 1 )->cursorPositionAt( *hbqt_par_QPoint( 2 ) ) );
}
/*
* void cursorWordBackward ( bool mark )
*/
HB_FUNC( QT_QLINEEDIT_CURSORWORDBACKWARD )
{
hbqt_par_QLineEdit( 1 )->cursorWordBackward( hb_parl( 2 ) );
}
/*
* void cursorWordForward ( bool mark )
*/
HB_FUNC( QT_QLINEEDIT_CURSORWORDFORWARD )
{
hbqt_par_QLineEdit( 1 )->cursorWordForward( hb_parl( 2 ) );
}
/*
* void del ()
*/
HB_FUNC( QT_QLINEEDIT_DEL )
{
hbqt_par_QLineEdit( 1 )->del();
}
/*
* void deselect ()
*/
HB_FUNC( QT_QLINEEDIT_DESELECT )
{
hbqt_par_QLineEdit( 1 )->deselect();
}
/*
* QString displayText () const
*/
HB_FUNC( QT_QLINEEDIT_DISPLAYTEXT )
{
hb_retc( hbqt_par_QLineEdit( 1 )->displayText().toAscii().data() );
}
/*
* bool dragEnabled () const
*/
HB_FUNC( QT_QLINEEDIT_DRAGENABLED )
{
hb_retl( hbqt_par_QLineEdit( 1 )->dragEnabled() );
}
/*
* EchoMode echoMode () const
*/
HB_FUNC( QT_QLINEEDIT_ECHOMODE )
{
hb_retni( ( QLineEdit::EchoMode ) hbqt_par_QLineEdit( 1 )->echoMode() );
}
/*
* void end ( bool mark )
*/
HB_FUNC( QT_QLINEEDIT_END )
{
hbqt_par_QLineEdit( 1 )->end( hb_parl( 2 ) );
}
/*
* void getTextMargins ( int * left, int * top, int * right, int * bottom ) const
*/
HB_FUNC( QT_QLINEEDIT_GETTEXTMARGINS )
{
int iLeft = 0;
int iTop = 0;
int iRight = 0;
int iBottom = 0;
hbqt_par_QLineEdit( 1 )->getTextMargins( &iLeft, &iTop, &iRight, &iBottom );
hb_storni( iLeft, 2 );
hb_storni( iTop, 3 );
hb_storni( iRight, 4 );
hb_storni( iBottom, 5 );
}
/*
* bool hasAcceptableInput () const
*/
HB_FUNC( QT_QLINEEDIT_HASACCEPTABLEINPUT )
{
hb_retl( hbqt_par_QLineEdit( 1 )->hasAcceptableInput() );
}
/*
* bool hasFrame () const
*/
HB_FUNC( QT_QLINEEDIT_HASFRAME )
{
hb_retl( hbqt_par_QLineEdit( 1 )->hasFrame() );
}
/*
* bool hasSelectedText () const
*/
HB_FUNC( QT_QLINEEDIT_HASSELECTEDTEXT )
{
hb_retl( hbqt_par_QLineEdit( 1 )->hasSelectedText() );
}
/*
* void home ( bool mark )
*/
HB_FUNC( QT_QLINEEDIT_HOME )
{
hbqt_par_QLineEdit( 1 )->home( hb_parl( 2 ) );
}
/*
* QString inputMask () const
*/
HB_FUNC( QT_QLINEEDIT_INPUTMASK )
{
hb_retc( hbqt_par_QLineEdit( 1 )->inputMask().toAscii().data() );
}
/*
* void insert ( const QString & newText )
*/
HB_FUNC( QT_QLINEEDIT_INSERT )
{
hbqt_par_QLineEdit( 1 )->insert( hbqt_par_QString( 2 ) );
}
/*
* bool isModified () const
*/
HB_FUNC( QT_QLINEEDIT_ISMODIFIED )
{
hb_retl( hbqt_par_QLineEdit( 1 )->isModified() );
}
/*
* bool isReadOnly () const
*/
HB_FUNC( QT_QLINEEDIT_ISREADONLY )
{
hb_retl( hbqt_par_QLineEdit( 1 )->isReadOnly() );
}
/*
* bool isRedoAvailable () const
*/
HB_FUNC( QT_QLINEEDIT_ISREDOAVAILABLE )
{
hb_retl( hbqt_par_QLineEdit( 1 )->isRedoAvailable() );
}
/*
* bool isUndoAvailable () const
*/
HB_FUNC( QT_QLINEEDIT_ISUNDOAVAILABLE )
{
hb_retl( hbqt_par_QLineEdit( 1 )->isUndoAvailable() );
}
/*
* int maxLength () const
*/
HB_FUNC( QT_QLINEEDIT_MAXLENGTH )
{
hb_retni( hbqt_par_QLineEdit( 1 )->maxLength() );
}
/*
* virtual QSize minimumSizeHint () const
*/
HB_FUNC( QT_QLINEEDIT_MINIMUMSIZEHINT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QLineEdit( 1 )->minimumSizeHint() ) ) );
}
/*
* QString selectedText () const
*/
HB_FUNC( QT_QLINEEDIT_SELECTEDTEXT )
{
hb_retc( hbqt_par_QLineEdit( 1 )->selectedText().toAscii().data() );
}
/*
* int selectionStart () const
*/
HB_FUNC( QT_QLINEEDIT_SELECTIONSTART )
{
hb_retni( hbqt_par_QLineEdit( 1 )->selectionStart() );
}
/*
* void setAlignment ( Qt::Alignment flag )
*/
HB_FUNC( QT_QLINEEDIT_SETALIGNMENT )
{
hbqt_par_QLineEdit( 1 )->setAlignment( ( Qt::Alignment ) hb_parni( 2 ) );
}
/*
* void setCompleter ( QCompleter * c )
*/
HB_FUNC( QT_QLINEEDIT_SETCOMPLETER )
{
hbqt_par_QLineEdit( 1 )->setCompleter( hbqt_par_QCompleter( 2 ) );
}
/*
* void setCursorPosition ( int )
*/
HB_FUNC( QT_QLINEEDIT_SETCURSORPOSITION )
{
hbqt_par_QLineEdit( 1 )->setCursorPosition( hb_parni( 2 ) );
}
/*
* void setDragEnabled ( bool b )
*/
HB_FUNC( QT_QLINEEDIT_SETDRAGENABLED )
{
hbqt_par_QLineEdit( 1 )->setDragEnabled( hb_parl( 2 ) );
}
/*
* void setEchoMode ( EchoMode )
*/
HB_FUNC( QT_QLINEEDIT_SETECHOMODE )
{
hbqt_par_QLineEdit( 1 )->setEchoMode( ( QLineEdit::EchoMode ) hb_parni( 2 ) );
}
/*
* void setFrame ( bool )
*/
HB_FUNC( QT_QLINEEDIT_SETFRAME )
{
hbqt_par_QLineEdit( 1 )->setFrame( hb_parl( 2 ) );
}
/*
* void setInputMask ( const QString & inputMask )
*/
HB_FUNC( QT_QLINEEDIT_SETINPUTMASK )
{
hbqt_par_QLineEdit( 1 )->setInputMask( hbqt_par_QString( 2 ) );
}
/*
* void setMaxLength ( int )
*/
HB_FUNC( QT_QLINEEDIT_SETMAXLENGTH )
{
hbqt_par_QLineEdit( 1 )->setMaxLength( hb_parni( 2 ) );
}
/*
* void setModified ( bool )
*/
HB_FUNC( QT_QLINEEDIT_SETMODIFIED )
{
hbqt_par_QLineEdit( 1 )->setModified( hb_parl( 2 ) );
}
/*
* void setReadOnly ( bool )
*/
HB_FUNC( QT_QLINEEDIT_SETREADONLY )
{
hbqt_par_QLineEdit( 1 )->setReadOnly( hb_parl( 2 ) );
}
/*
* 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 )
*/
HB_FUNC( QT_QLINEEDIT_SETTEXTMARGINS )
{
hbqt_par_QLineEdit( 1 )->setTextMargins( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ) );
}
/*
* 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 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QLineEdit( 1 )->sizeHint() ) ) );
}
/*
* QString text () const
*/
HB_FUNC( QT_QLINEEDIT_TEXT )
{
hb_retc( hbqt_par_QLineEdit( 1 )->text().toAscii().data() );
}
/*
* const QValidator * validator () const
*/
HB_FUNC( QT_QLINEEDIT_VALIDATOR )
{
hb_retptr( ( QValidator* ) hbqt_par_QLineEdit( 1 )->validator() );
}
/*
* void clear ()
*/
HB_FUNC( QT_QLINEEDIT_CLEAR )
{
hbqt_par_QLineEdit( 1 )->clear();
}
/*
* void copy () const
*/
HB_FUNC( QT_QLINEEDIT_COPY )
{
hbqt_par_QLineEdit( 1 )->copy();
}
/*
* 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 /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,160 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum CoordinateMode { LogicalMode, StretchToDeviceMode, ObjectBoundingMode }
* enum Spread { PadSpread, RepeatSpread, ReflectSpread }
* enum Type { LinearGradient, RadialGradient, ConicalGradient, NoGradient }
*/
#include <QtCore/QPointer>
#include <QtGui/QLinearGradient>
/*
* QLinearGradient ()
* QLinearGradient ( const QPointF & start, const QPointF & finalStop )
* QLinearGradient ( qreal x1, qreal y1, qreal x2, qreal y2 )
*/
HB_FUNC( QT_QLINEARGRADIENT )
{
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
pObj = ( QLinearGradient* ) new QLinearGradient( *hbqt_par_QLinearGradient( 1 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISPOINTER( 2 ) )
{
pObj = ( QLinearGradient* ) new QLinearGradient( *hbqt_par_QPoint( 1 ), *hbqt_par_QPoint( 2 ) ) ;
}
else if( hb_pcount() == 4 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) && HB_ISNUM( 4 ) )
{
pObj = ( QLinearGradient* ) new QLinearGradient( hb_parnd( 1 ), hb_parnd( 2 ), hb_parnd( 3 ), hb_parnd( 4 ) ) ;
}
else
{
pObj = ( QLinearGradient* ) new QLinearGradient() ;
}
hb_retptr( pObj );
}
/*
* QPointF finalStop () const
*/
HB_FUNC( QT_QLINEARGRADIENT_FINALSTOP )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QPointF( hbqt_par_QLinearGradient( 1 )->finalStop() ) ) );
}
/*
* void setFinalStop ( const QPointF & stop )
*/
HB_FUNC( QT_QLINEARGRADIENT_SETFINALSTOP )
{
hbqt_par_QLinearGradient( 1 )->setFinalStop( *hbqt_par_QPointF( 2 ) );
}
/*
* void setFinalStop ( qreal x, qreal y )
*/
HB_FUNC( QT_QLINEARGRADIENT_SETFINALSTOP_1 )
{
hbqt_par_QLinearGradient( 1 )->setFinalStop( hb_parnd( 2 ), hb_parnd( 3 ) );
}
/*
* void setStart ( const QPointF & start )
*/
HB_FUNC( QT_QLINEARGRADIENT_SETSTART )
{
hbqt_par_QLinearGradient( 1 )->setStart( *hbqt_par_QPointF( 2 ) );
}
/*
* void setStart ( qreal x, qreal y )
*/
HB_FUNC( QT_QLINEARGRADIENT_SETSTART_1 )
{
hbqt_par_QLinearGradient( 1 )->setStart( hb_parnd( 2 ), hb_parnd( 3 ) );
}
/*
* QPointF start () const
*/
HB_FUNC( QT_QLINEARGRADIENT_START )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QPointF( hbqt_par_QLinearGradient( 1 )->start() ) ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,438 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* Constructed[ 40/55 [ 72.73% ] ]
*
* *** Unconvered Prototypes ***
* -----------------------------
*
* void append ( const QList<T> & value )
* iterator begin ()
* iterator erase ( iterator pos )
* iterator erase ( iterator begin, iterator end )
* iterator insert ( iterator before, const T & value )
* QList<T> mid ( int pos, int length = -1 ) const
* QSet<T> toSet () const
* std::list<T> toStdList () const
* QVector<T> toVector () const
*
* *** Commented out protos which construct fine but do not compile ***
*
* //const_iterator begin () const
* //const_iterator constBegin () const
* //const_iterator constEnd () const
* //bool contains ( const T & value ) const
* //iterator end ()
* //const_iterator end () const
*/
#include <QtCore/QPointer>
#include <QtCore/QList>
/*
* QList ()
* QList ( const QList<T> & other )
* ~QList ()
*/
HB_FUNC( QT_QLIST )
{
void * pObj = NULL;
QList<void*>* list = NULL;
pObj = ( QList<void*>* ) list ;
hb_retptr( pObj );
}
/*
* void append ( const T & value )
*/
HB_FUNC( QT_QLIST_APPEND )
{
hbqt_par_QList( 1 )->append( hb_param( 2, HB_IT_ANY ) );
}
/*
* const T & at ( int i ) const
*/
HB_FUNC( QT_QLIST_AT )
{
hb_retptr( hbqt_par_QList( 1 )->at( hb_parni( 2 ) ) );
}
/*
* T & back ()
*/
HB_FUNC( QT_QLIST_BACK )
{
hb_retptr( hbqt_par_QList( 1 )->back() );
}
/*
* const T & back () const
*/
HB_FUNC( QT_QLIST_BACK_1 )
{
hb_retptr( hbqt_par_QList( 1 )->back() );
}
/*
* void clear ()
*/
HB_FUNC( QT_QLIST_CLEAR )
{
hbqt_par_QList( 1 )->clear();
}
/*
* int count ( const T & value ) const
*/
HB_FUNC( QT_QLIST_COUNT )
{
hb_retni( hbqt_par_QList( 1 )->count( hb_param( 2, HB_IT_ANY ) ) );
}
/*
* int count () const
*/
HB_FUNC( QT_QLIST_COUNT_1 )
{
hb_retni( hbqt_par_QList( 1 )->count() );
}
/*
* bool empty () const
*/
HB_FUNC( QT_QLIST_EMPTY )
{
hb_retl( hbqt_par_QList( 1 )->empty() );
}
/*
* bool endsWith ( const T & value ) const
*/
HB_FUNC( QT_QLIST_ENDSWITH )
{
hb_retl( hbqt_par_QList( 1 )->endsWith( hb_param( 2, HB_IT_ANY ) ) );
}
/*
* T & first ()
*/
HB_FUNC( QT_QLIST_FIRST )
{
hb_retptr( hbqt_par_QList( 1 )->first() );
}
/*
* const T & first () const
*/
HB_FUNC( QT_QLIST_FIRST_1 )
{
hb_retptr( hbqt_par_QList( 1 )->first() );
}
/*
* T & front ()
*/
HB_FUNC( QT_QLIST_FRONT )
{
hb_retptr( hbqt_par_QList( 1 )->front() );
}
/*
* const T & front () const
*/
HB_FUNC( QT_QLIST_FRONT_1 )
{
hb_retptr( hbqt_par_QList( 1 )->front() );
}
/*
* int indexOf ( const T & value, int from = 0 ) const
*/
HB_FUNC( QT_QLIST_INDEXOF )
{
hb_retni( hbqt_par_QList( 1 )->indexOf( hb_param( 2, HB_IT_ANY ), hb_parni( 3 ) ) );
}
/*
* void insert ( int i, const T & value )
*/
HB_FUNC( QT_QLIST_INSERT )
{
hbqt_par_QList( 1 )->insert( hb_parni( 2 ), hb_param( 3, HB_IT_ANY ) );
}
/*
* bool isEmpty () const
*/
HB_FUNC( QT_QLIST_ISEMPTY )
{
hb_retl( hbqt_par_QList( 1 )->isEmpty() );
}
/*
* T & last ()
*/
HB_FUNC( QT_QLIST_LAST )
{
hb_retptr( hbqt_par_QList( 1 )->last() );
}
/*
* const T & last () const
*/
HB_FUNC( QT_QLIST_LAST_1 )
{
hb_retptr( hbqt_par_QList( 1 )->last() );
}
/*
* int lastIndexOf ( const T & value, int from = -1 ) const
*/
HB_FUNC( QT_QLIST_LASTINDEXOF )
{
hb_retni( hbqt_par_QList( 1 )->lastIndexOf( hb_param( 2, HB_IT_ANY ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ) );
}
/*
* int length () const
*/
HB_FUNC( QT_QLIST_LENGTH )
{
hb_retni( hbqt_par_QList( 1 )->length() );
}
/*
* void move ( int from, int to )
*/
HB_FUNC( QT_QLIST_MOVE )
{
hbqt_par_QList( 1 )->move( hb_parni( 2 ), hb_parni( 3 ) );
}
/*
* void pop_back ()
*/
HB_FUNC( QT_QLIST_POP_BACK )
{
hbqt_par_QList( 1 )->pop_back();
}
/*
* void pop_front ()
*/
HB_FUNC( QT_QLIST_POP_FRONT )
{
hbqt_par_QList( 1 )->pop_front();
}
/*
* void prepend ( const T & value )
*/
HB_FUNC( QT_QLIST_PREPEND )
{
hbqt_par_QList( 1 )->prepend( hb_param( 2, HB_IT_ANY ) );
}
/*
* void push_back ( const T & value )
*/
HB_FUNC( QT_QLIST_PUSH_BACK )
{
hbqt_par_QList( 1 )->push_back( hb_param( 2, HB_IT_ANY ) );
}
/*
* void push_front ( const T & value )
*/
HB_FUNC( QT_QLIST_PUSH_FRONT )
{
hbqt_par_QList( 1 )->push_front( hb_param( 2, HB_IT_ANY ) );
}
/*
* int removeAll ( const T & value )
*/
HB_FUNC( QT_QLIST_REMOVEALL )
{
hb_retni( hbqt_par_QList( 1 )->removeAll( hb_param( 2, HB_IT_ANY ) ) );
}
/*
* void removeAt ( int i )
*/
HB_FUNC( QT_QLIST_REMOVEAT )
{
hbqt_par_QList( 1 )->removeAt( hb_parni( 2 ) );
}
/*
* void removeFirst ()
*/
HB_FUNC( QT_QLIST_REMOVEFIRST )
{
hbqt_par_QList( 1 )->removeFirst();
}
/*
* void removeLast ()
*/
HB_FUNC( QT_QLIST_REMOVELAST )
{
hbqt_par_QList( 1 )->removeLast();
}
/*
* bool removeOne ( const T & value )
*/
HB_FUNC( QT_QLIST_REMOVEONE )
{
hb_retl( hbqt_par_QList( 1 )->removeOne( hb_param( 2, HB_IT_ANY ) ) );
}
/*
* void replace ( int i, const T & value )
*/
HB_FUNC( QT_QLIST_REPLACE )
{
hbqt_par_QList( 1 )->replace( hb_parni( 2 ), hb_param( 3, HB_IT_ANY ) );
}
/*
* int size () const
*/
HB_FUNC( QT_QLIST_SIZE )
{
hb_retni( hbqt_par_QList( 1 )->size() );
}
/*
* bool startsWith ( const T & value ) const
*/
HB_FUNC( QT_QLIST_STARTSWITH )
{
hb_retl( hbqt_par_QList( 1 )->startsWith( hb_param( 2, HB_IT_ANY ) ) );
}
/*
* void swap ( int i, int j )
*/
HB_FUNC( QT_QLIST_SWAP )
{
hbqt_par_QList( 1 )->swap( hb_parni( 2 ), hb_parni( 3 ) );
}
/*
* T takeAt ( int i )
*/
HB_FUNC( QT_QLIST_TAKEAT )
{
hb_retptr( hbqt_par_QList( 1 )->takeAt( hb_parni( 2 ) ) );
}
/*
* T takeFirst ()
*/
HB_FUNC( QT_QLIST_TAKEFIRST )
{
hb_retptr( hbqt_par_QList( 1 )->takeFirst() );
}
/*
* T takeLast ()
*/
HB_FUNC( QT_QLIST_TAKELAST )
{
hb_retptr( hbqt_par_QList( 1 )->takeLast() );
}
/*
* T value ( int i ) const
*/
HB_FUNC( QT_QLIST_VALUE )
{
hb_retptr( hbqt_par_QList( 1 )->value( hb_parni( 2 ) ) );
}
/*
* T value ( int i, const T & defaultValue ) const
*/
HB_FUNC( QT_QLIST_VALUE_1 )
{
hb_retptr( hbqt_par_QList( 1 )->value( hb_parni( 2 ), hb_param( 3, HB_IT_ANY ) ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,333 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum Flow { LeftToRight, TopToBottom }
* enum LayoutMode { SinglePass, Batched }
* enum Movement { Static, Free, Snap }
* enum ResizeMode { Fixed, Adjust }
* enum ViewMode { ListMode, IconMode }
*/
#include <QtCore/QPointer>
#include <QtGui/QListView>
/*
* QListView ( QWidget * parent = 0 )
* ~QListView ()
*/
HB_FUNC( QT_QLISTVIEW )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QListView > pObj = NULL;
pObj = ( QListView * ) new QListView( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* 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( ( QListView::Flow ) hbqt_par_QListView( 1 )->flow() );
}
/*
* QSize gridSize () const
*/
HB_FUNC( QT_QLISTVIEW_GRIDSIZE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new 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( ( QListView::LayoutMode ) 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( ( QListView::Movement ) hbqt_par_QListView( 1 )->movement() );
}
/*
* ResizeMode resizeMode () const
*/
HB_FUNC( QT_QLISTVIEW_RESIZEMODE )
{
hb_retni( ( QListView::ResizeMode ) 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_par_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( ( QListView::ViewMode ) hbqt_par_QListView( 1 )->viewMode() );
}
/*
* bool wordWrap () const
*/
HB_FUNC( QT_QLISTVIEW_WORDWRAP )
{
hb_retl( hbqt_par_QListView( 1 )->wordWrap() );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,343 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* Constructed[ 30/32 [ 93.75% ] ]
*
* *** Unconvered Prototypes ***
* -----------------------------
*
* QList<QListWidgetItem *> findItems ( const QString & text, Qt::MatchFlags flags ) const
* QList<QListWidgetItem *> selectedItems () const
*/
#include <QtCore/QPointer>
#include <QtGui/QListWidget>
/*
* QListWidget ( QWidget * parent = 0 )
* ~QListWidget ()
*/
HB_FUNC( QT_QLISTWIDGET )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QListWidget > pObj = NULL;
pObj = new QListWidget( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* void addItem ( const QString & label )
*/
HB_FUNC( QT_QLISTWIDGET_ADDITEM )
{
hbqt_par_QListWidget( 1 )->addItem( hbqt_par_QString( 2 ) );
}
/*
* void addItem ( QListWidgetItem * item )
*/
HB_FUNC( QT_QLISTWIDGET_ADDITEM_1 )
{
hbqt_par_QListWidget( 1 )->addItem( hbqt_par_QListWidgetItem( 2 ) );
}
/*
* void addItems ( const QStringList & labels )
*/
HB_FUNC( QT_QLISTWIDGET_ADDITEMS )
{
hbqt_par_QListWidget( 1 )->addItems( *hbqt_par_QStringList( 2 ) );
}
/*
* void closePersistentEditor ( QListWidgetItem * item )
*/
HB_FUNC( QT_QLISTWIDGET_CLOSEPERSISTENTEDITOR )
{
hbqt_par_QListWidget( 1 )->closePersistentEditor( hbqt_par_QListWidgetItem( 2 ) );
}
/*
* int count () const
*/
HB_FUNC( QT_QLISTWIDGET_COUNT )
{
hb_retni( hbqt_par_QListWidget( 1 )->count() );
}
/*
* QListWidgetItem * currentItem () const
*/
HB_FUNC( QT_QLISTWIDGET_CURRENTITEM )
{
hb_retptr( ( QListWidgetItem* ) hbqt_par_QListWidget( 1 )->currentItem() );
}
/*
* int currentRow () const
*/
HB_FUNC( QT_QLISTWIDGET_CURRENTROW )
{
hb_retni( hbqt_par_QListWidget( 1 )->currentRow() );
}
/*
* void editItem ( QListWidgetItem * item )
*/
HB_FUNC( QT_QLISTWIDGET_EDITITEM )
{
hbqt_par_QListWidget( 1 )->editItem( hbqt_par_QListWidgetItem( 2 ) );
}
/*
* void insertItem ( int row, QListWidgetItem * item )
*/
HB_FUNC( QT_QLISTWIDGET_INSERTITEM )
{
hbqt_par_QListWidget( 1 )->insertItem( hb_parni( 2 ), hbqt_par_QListWidgetItem( 3 ) );
}
/*
* void insertItem ( int row, const QString & label )
*/
HB_FUNC( QT_QLISTWIDGET_INSERTITEM_1 )
{
hbqt_par_QListWidget( 1 )->insertItem( hb_parni( 2 ), hbqt_par_QString( 3 ) );
}
/*
* void insertItems ( int row, const QStringList & labels )
*/
HB_FUNC( QT_QLISTWIDGET_INSERTITEMS )
{
hbqt_par_QListWidget( 1 )->insertItems( hb_parni( 2 ), *hbqt_par_QStringList( 3 ) );
}
/*
* bool isSortingEnabled () const
*/
HB_FUNC( QT_QLISTWIDGET_ISSORTINGENABLED )
{
hb_retl( hbqt_par_QListWidget( 1 )->isSortingEnabled() );
}
/*
* QListWidgetItem * item ( int row ) const
*/
HB_FUNC( QT_QLISTWIDGET_ITEM )
{
hb_retptr( ( QListWidgetItem* ) hbqt_par_QListWidget( 1 )->item( hb_parni( 2 ) ) );
}
/*
* QListWidgetItem * itemAt ( const QPoint & p ) const
*/
HB_FUNC( QT_QLISTWIDGET_ITEMAT )
{
hb_retptr( ( QListWidgetItem* ) hbqt_par_QListWidget( 1 )->itemAt( *hbqt_par_QPoint( 2 ) ) );
}
/*
* QListWidgetItem * itemAt ( int x, int y ) const
*/
HB_FUNC( QT_QLISTWIDGET_ITEMAT_1 )
{
hb_retptr( ( QListWidgetItem* ) hbqt_par_QListWidget( 1 )->itemAt( hb_parni( 2 ), hb_parni( 3 ) ) );
}
/*
* QWidget * itemWidget ( QListWidgetItem * item ) const
*/
HB_FUNC( QT_QLISTWIDGET_ITEMWIDGET )
{
hb_retptr( ( QWidget* ) hbqt_par_QListWidget( 1 )->itemWidget( hbqt_par_QListWidgetItem( 2 ) ) );
}
/*
* void openPersistentEditor ( QListWidgetItem * item )
*/
HB_FUNC( QT_QLISTWIDGET_OPENPERSISTENTEDITOR )
{
hbqt_par_QListWidget( 1 )->openPersistentEditor( hbqt_par_QListWidgetItem( 2 ) );
}
/*
* void removeItemWidget ( QListWidgetItem * item )
*/
HB_FUNC( QT_QLISTWIDGET_REMOVEITEMWIDGET )
{
hbqt_par_QListWidget( 1 )->removeItemWidget( hbqt_par_QListWidgetItem( 2 ) );
}
/*
* int row ( const QListWidgetItem * item ) const
*/
HB_FUNC( QT_QLISTWIDGET_ROW )
{
hb_retni( hbqt_par_QListWidget( 1 )->row( hbqt_par_QListWidgetItem( 2 ) ) );
}
/*
* void setCurrentItem ( QListWidgetItem * item )
*/
HB_FUNC( QT_QLISTWIDGET_SETCURRENTITEM )
{
hbqt_par_QListWidget( 1 )->setCurrentItem( hbqt_par_QListWidgetItem( 2 ) );
}
/*
* void setCurrentItem ( QListWidgetItem * item, QItemSelectionModel::SelectionFlags command )
*/
HB_FUNC( QT_QLISTWIDGET_SETCURRENTITEM_1 )
{
hbqt_par_QListWidget( 1 )->setCurrentItem( hbqt_par_QListWidgetItem( 2 ), ( QItemSelectionModel::SelectionFlags ) hb_parni( 3 ) );
}
/*
* void setCurrentRow ( int row )
*/
HB_FUNC( QT_QLISTWIDGET_SETCURRENTROW )
{
hbqt_par_QListWidget( 1 )->setCurrentRow( hb_parni( 2 ) );
}
/*
* void setCurrentRow ( int row, QItemSelectionModel::SelectionFlags command )
*/
HB_FUNC( QT_QLISTWIDGET_SETCURRENTROW_1 )
{
hbqt_par_QListWidget( 1 )->setCurrentRow( hb_parni( 2 ), ( QItemSelectionModel::SelectionFlags ) hb_parni( 3 ) );
}
/*
* void setItemWidget ( QListWidgetItem * item, QWidget * widget )
*/
HB_FUNC( QT_QLISTWIDGET_SETITEMWIDGET )
{
hbqt_par_QListWidget( 1 )->setItemWidget( hbqt_par_QListWidgetItem( 2 ), hbqt_par_QWidget( 3 ) );
}
/*
* void setSortingEnabled ( bool enable )
*/
HB_FUNC( QT_QLISTWIDGET_SETSORTINGENABLED )
{
hbqt_par_QListWidget( 1 )->setSortingEnabled( hb_parl( 2 ) );
}
/*
* void sortItems ( Qt::SortOrder order = Qt::AscendingOrder )
*/
HB_FUNC( QT_QLISTWIDGET_SORTITEMS )
{
hbqt_par_QListWidget( 1 )->sortItems( ( HB_ISNUM( 2 ) ? ( Qt::SortOrder ) hb_parni( 2 ) : ( Qt::SortOrder ) Qt::AscendingOrder ) );
}
/*
* QListWidgetItem * takeItem ( int row )
*/
HB_FUNC( QT_QLISTWIDGET_TAKEITEM )
{
hb_retptr( ( QListWidgetItem* ) hbqt_par_QListWidget( 1 )->takeItem( hb_parni( 2 ) ) );
}
/*
* QRect visualItemRect ( const QListWidgetItem * item ) const
*/
HB_FUNC( QT_QLISTWIDGET_VISUALITEMRECT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QListWidget( 1 )->visualItemRect( hbqt_par_QListWidgetItem( 2 ) ) ) ) );
}
/*
* void clear ()
*/
HB_FUNC( QT_QLISTWIDGET_CLEAR )
{
hbqt_par_QListWidget( 1 )->clear();
}
/*
* void scrollToItem ( const QListWidgetItem * item, QAbstractItemView::ScrollHint hint = EnsureVisible )
*/
HB_FUNC( QT_QLISTWIDGET_SCROLLTOITEM )
{
hbqt_par_QListWidget( 1 )->scrollToItem( hbqt_par_QListWidgetItem( 2 ), ( HB_ISNUM( 3 ) ? ( QAbstractItemView::ScrollHint ) hb_parni( 3 ) : ( QAbstractItemView::ScrollHint ) QListWidget::EnsureVisible ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,377 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum ItemType { Type, UserType }
*/
#include <QtCore/QPointer>
#include <QtGui/QListWidgetItem>
/*
* QListWidgetItem ( QListWidget * parent = 0, int type = Type )
* QListWidgetItem ( const QString & text, QListWidget * parent = 0, int type = Type )
* QListWidgetItem ( const QIcon & icon, const QString & text, QListWidget * parent = 0, int type = Type )
* QListWidgetItem ( const QListWidgetItem & other )
* virtual ~QListWidgetItem ()
*/
HB_FUNC( QT_QLISTWIDGETITEM )
{
void * pObj = NULL;
pObj = new QListWidgetItem( hbqt_par_QListWidget( 1 ), hb_parni( 2 ) ) ;
hb_retptr( pObj );
}
/*
* QBrush background () const
*/
HB_FUNC( QT_QLISTWIDGETITEM_BACKGROUND )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QListWidgetItem( 1 )->background() ) ) );
}
/*
* Qt::CheckState checkState () const
*/
HB_FUNC( QT_QLISTWIDGETITEM_CHECKSTATE )
{
hb_retni( ( Qt::CheckState ) hbqt_par_QListWidgetItem( 1 )->checkState() );
}
/*
* virtual QListWidgetItem * clone () const
*/
HB_FUNC( QT_QLISTWIDGETITEM_CLONE )
{
hb_retptr( ( QListWidgetItem* ) hbqt_par_QListWidgetItem( 1 )->clone() );
}
/*
* virtual QVariant data ( int role ) const
*/
HB_FUNC( QT_QLISTWIDGETITEM_DATA )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QVariant( hbqt_par_QListWidgetItem( 1 )->data( hb_parni( 2 ) ) ) ) );
}
/*
* Qt::ItemFlags flags () const
*/
HB_FUNC( QT_QLISTWIDGETITEM_FLAGS )
{
hb_retni( ( Qt::ItemFlags ) hbqt_par_QListWidgetItem( 1 )->flags() );
}
/*
* QFont font () const
*/
HB_FUNC( QT_QLISTWIDGETITEM_FONT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QListWidgetItem( 1 )->font() ) ) );
}
/*
* QBrush foreground () const
*/
HB_FUNC( QT_QLISTWIDGETITEM_FOREGROUND )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QListWidgetItem( 1 )->foreground() ) ) );
}
/*
* QIcon icon () const
*/
HB_FUNC( QT_QLISTWIDGETITEM_ICON )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QIcon( hbqt_par_QListWidgetItem( 1 )->icon() ) ) );
}
/*
* bool isHidden () const
*/
HB_FUNC( QT_QLISTWIDGETITEM_ISHIDDEN )
{
hb_retl( hbqt_par_QListWidgetItem( 1 )->isHidden() );
}
/*
* bool isSelected () const
*/
HB_FUNC( QT_QLISTWIDGETITEM_ISSELECTED )
{
hb_retl( hbqt_par_QListWidgetItem( 1 )->isSelected() );
}
/*
* QListWidget * listWidget () const
*/
HB_FUNC( QT_QLISTWIDGETITEM_LISTWIDGET )
{
hb_retptr( ( QListWidget* ) hbqt_par_QListWidgetItem( 1 )->listWidget() );
}
/*
* virtual void read ( QDataStream & in )
*/
HB_FUNC( QT_QLISTWIDGETITEM_READ )
{
hbqt_par_QListWidgetItem( 1 )->read( *hbqt_par_QDataStream( 2 ) );
}
/*
* void setBackground ( const QBrush & brush )
*/
HB_FUNC( QT_QLISTWIDGETITEM_SETBACKGROUND )
{
hbqt_par_QListWidgetItem( 1 )->setBackground( *hbqt_par_QBrush( 2 ) );
}
/*
* void setCheckState ( Qt::CheckState state )
*/
HB_FUNC( QT_QLISTWIDGETITEM_SETCHECKSTATE )
{
hbqt_par_QListWidgetItem( 1 )->setCheckState( ( Qt::CheckState ) hb_parni( 2 ) );
}
/*
* virtual void setData ( int role, const QVariant & value )
*/
HB_FUNC( QT_QLISTWIDGETITEM_SETDATA )
{
hbqt_par_QListWidgetItem( 1 )->setData( hb_parni( 2 ), *hbqt_par_QVariant( 3 ) );
}
/*
* void setFlags ( Qt::ItemFlags flags )
*/
HB_FUNC( QT_QLISTWIDGETITEM_SETFLAGS )
{
hbqt_par_QListWidgetItem( 1 )->setFlags( ( Qt::ItemFlags ) hb_parni( 2 ) );
}
/*
* void setFont ( const QFont & font )
*/
HB_FUNC( QT_QLISTWIDGETITEM_SETFONT )
{
hbqt_par_QListWidgetItem( 1 )->setFont( *hbqt_par_QFont( 2 ) );
}
/*
* void setForeground ( const QBrush & brush )
*/
HB_FUNC( QT_QLISTWIDGETITEM_SETFOREGROUND )
{
hbqt_par_QListWidgetItem( 1 )->setForeground( *hbqt_par_QBrush( 2 ) );
}
/*
* void setHidden ( bool hide )
*/
HB_FUNC( QT_QLISTWIDGETITEM_SETHIDDEN )
{
hbqt_par_QListWidgetItem( 1 )->setHidden( hb_parl( 2 ) );
}
/*
* void setIcon ( const QIcon & icon )
*/
HB_FUNC( QT_QLISTWIDGETITEM_SETICON )
{
hbqt_par_QListWidgetItem( 1 )->setIcon( QIcon( hbqt_par_QString( 2 ) ) );
}
/*
* void setSelected ( bool select )
*/
HB_FUNC( QT_QLISTWIDGETITEM_SETSELECTED )
{
hbqt_par_QListWidgetItem( 1 )->setSelected( hb_parl( 2 ) );
}
/*
* void setSizeHint ( const QSize & size )
*/
HB_FUNC( QT_QLISTWIDGETITEM_SETSIZEHINT )
{
hbqt_par_QListWidgetItem( 1 )->setSizeHint( *hbqt_par_QSize( 2 ) );
}
/*
* void setStatusTip ( const QString & statusTip )
*/
HB_FUNC( QT_QLISTWIDGETITEM_SETSTATUSTIP )
{
hbqt_par_QListWidgetItem( 1 )->setStatusTip( hbqt_par_QString( 2 ) );
}
/*
* void setText ( const QString & text )
*/
HB_FUNC( QT_QLISTWIDGETITEM_SETTEXT )
{
hbqt_par_QListWidgetItem( 1 )->setText( hbqt_par_QString( 2 ) );
}
/*
* void setTextAlignment ( int alignment )
*/
HB_FUNC( QT_QLISTWIDGETITEM_SETTEXTALIGNMENT )
{
hbqt_par_QListWidgetItem( 1 )->setTextAlignment( hb_parni( 2 ) );
}
/*
* void setToolTip ( const QString & toolTip )
*/
HB_FUNC( QT_QLISTWIDGETITEM_SETTOOLTIP )
{
hbqt_par_QListWidgetItem( 1 )->setToolTip( hbqt_par_QString( 2 ) );
}
/*
* void setWhatsThis ( const QString & whatsThis )
*/
HB_FUNC( QT_QLISTWIDGETITEM_SETWHATSTHIS )
{
hbqt_par_QListWidgetItem( 1 )->setWhatsThis( hbqt_par_QString( 2 ) );
}
/*
* QSize sizeHint () const
*/
HB_FUNC( QT_QLISTWIDGETITEM_SIZEHINT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QListWidgetItem( 1 )->sizeHint() ) ) );
}
/*
* QString statusTip () const
*/
HB_FUNC( QT_QLISTWIDGETITEM_STATUSTIP )
{
hb_retc( hbqt_par_QListWidgetItem( 1 )->statusTip().toAscii().data() );
}
/*
* QString text () const
*/
HB_FUNC( QT_QLISTWIDGETITEM_TEXT )
{
hb_retc( hbqt_par_QListWidgetItem( 1 )->text().toAscii().data() );
}
/*
* int textAlignment () const
*/
HB_FUNC( QT_QLISTWIDGETITEM_TEXTALIGNMENT )
{
hb_retni( hbqt_par_QListWidgetItem( 1 )->textAlignment() );
}
/*
* QString toolTip () const
*/
HB_FUNC( QT_QLISTWIDGETITEM_TOOLTIP )
{
hb_retc( hbqt_par_QListWidgetItem( 1 )->toolTip().toAscii().data() );
}
/*
* int type () const
*/
HB_FUNC( QT_QLISTWIDGETITEM_TYPE )
{
hb_retni( hbqt_par_QListWidgetItem( 1 )->type() );
}
/*
* QString whatsThis () const
*/
HB_FUNC( QT_QLISTWIDGETITEM_WHATSTHIS )
{
hb_retc( hbqt_par_QListWidgetItem( 1 )->whatsThis().toAscii().data() );
}
/*
* virtual void write ( QDataStream & out ) const
*/
HB_FUNC( QT_QLISTWIDGETITEM_WRITE )
{
hbqt_par_QListWidgetItem( 1 )->write( *hbqt_par_QDataStream( 2 ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,491 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum DockOption { AnimatedDocks, AllowNestedDocks, AllowTabbedDocks, ForceTabbedDocks, VerticalTabs }
* flags DockOptions
*/
/*
* Constructed[ 48/49 [ 97.96% ] ]
*
* *** Unconvered Prototypes ***
* -----------------------------
*
* QList<QDockWidget *> tabifiedDockWidgets ( QDockWidget * dockwidget ) const
*/
#include <QtCore/QPointer>
#include <QtGui/QMainWindow>
/*
* QMainWindow ( QWidget * parent = 0, Qt::WindowFlags flags = 0 )
* ~QMainWindow ()
*/
HB_FUNC( QT_QMAINWINDOW )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QMainWindow > pObj = NULL;
pObj = ( QMainWindow* ) new QMainWindow( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* 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_1 )
{
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 )
{
hbqt_par_QMainWindow( 1 )->addToolBar( ( Qt::ToolBarArea ) hb_parni( 2 ), hbqt_par_QToolBar( 3 ) );
}
/*
* 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_2 )
{
hb_retptr( ( QToolBar* ) hbqt_par_QMainWindow( 1 )->addToolBar( hbqt_par_QString( 2 ) ) );
}
/*
* void addToolBarBreak ( Qt::ToolBarArea area = Qt::TopToolBarArea )
*/
HB_FUNC( QT_QMAINWINDOW_ADDTOOLBARBREAK )
{
hbqt_par_QMainWindow( 1 )->addToolBarBreak( ( HB_ISNUM( 2 ) ? ( Qt::ToolBarArea ) hb_parni( 2 ) : ( Qt::ToolBarArea ) Qt::TopToolBarArea ) );
}
/*
* QWidget * centralWidget () const
*/
HB_FUNC( QT_QMAINWINDOW_CENTRALWIDGET )
{
hb_retptr( ( QWidget* ) hbqt_par_QMainWindow( 1 )->centralWidget() );
}
/*
* Qt::DockWidgetArea corner ( Qt::Corner corner ) const
*/
HB_FUNC( QT_QMAINWINDOW_CORNER )
{
hb_retni( ( Qt::DockWidgetArea ) hbqt_par_QMainWindow( 1 )->corner( ( Qt::Corner ) hb_parni( 2 ) ) );
}
/*
* virtual QMenu * createPopupMenu ()
*/
HB_FUNC( QT_QMAINWINDOW_CREATEPOPUPMENU )
{
hb_retptr( ( QMenu* ) hbqt_par_QMainWindow( 1 )->createPopupMenu() );
}
/*
* DockOptions dockOptions () const
*/
HB_FUNC( QT_QMAINWINDOW_DOCKOPTIONS )
{
hb_retni( ( QMainWindow::DockOptions ) hbqt_par_QMainWindow( 1 )->dockOptions() );
}
/*
* Qt::DockWidgetArea dockWidgetArea ( QDockWidget * dockwidget ) const
*/
HB_FUNC( QT_QMAINWINDOW_DOCKWIDGETAREA )
{
hb_retni( ( Qt::DockWidgetArea ) hbqt_par_QMainWindow( 1 )->dockWidgetArea( hbqt_par_QDockWidget( 2 ) ) );
}
/*
* bool documentMode () const
*/
HB_FUNC( QT_QMAINWINDOW_DOCUMENTMODE )
{
hb_retl( hbqt_par_QMainWindow( 1 )->documentMode() );
}
/*
* QSize iconSize () const
*/
HB_FUNC( QT_QMAINWINDOW_ICONSIZE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new 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 )
*/
HB_FUNC( QT_QMAINWINDOW_INSERTTOOLBARBREAK )
{
hbqt_par_QMainWindow( 1 )->insertToolBarBreak( hbqt_par_QToolBar( 2 ) );
}
/*
* bool isAnimated () const
*/
HB_FUNC( QT_QMAINWINDOW_ISANIMATED )
{
hb_retl( hbqt_par_QMainWindow( 1 )->isAnimated() );
}
/*
* bool isDockNestingEnabled () const
*/
HB_FUNC( QT_QMAINWINDOW_ISDOCKNESTINGENABLED )
{
hb_retl( hbqt_par_QMainWindow( 1 )->isDockNestingEnabled() );
}
/*
* QMenuBar * menuBar () const
*/
HB_FUNC( QT_QMAINWINDOW_MENUBAR )
{
hb_retptr( ( QMenuBar* ) hbqt_par_QMainWindow( 1 )->menuBar() );
}
/*
* QWidget * menuWidget () const
*/
HB_FUNC( QT_QMAINWINDOW_MENUWIDGET )
{
hb_retptr( ( QWidget* ) hbqt_par_QMainWindow( 1 )->menuWidget() );
}
/*
* void removeDockWidget ( QDockWidget * dockwidget )
*/
HB_FUNC( QT_QMAINWINDOW_REMOVEDOCKWIDGET )
{
hbqt_par_QMainWindow( 1 )->removeDockWidget( hbqt_par_QDockWidget( 2 ) );
}
/*
* void removeToolBar ( QToolBar * toolbar )
*/
HB_FUNC( QT_QMAINWINDOW_REMOVETOOLBAR )
{
hbqt_par_QMainWindow( 1 )->removeToolBar( hbqt_par_QToolBar( 2 ) );
}
/*
* void removeToolBarBreak ( QToolBar * before )
*/
HB_FUNC( QT_QMAINWINDOW_REMOVETOOLBARBREAK )
{
hbqt_par_QMainWindow( 1 )->removeToolBarBreak( hbqt_par_QToolBar( 2 ) );
}
/*
* bool restoreDockWidget ( QDockWidget * dockwidget )
*/
HB_FUNC( QT_QMAINWINDOW_RESTOREDOCKWIDGET )
{
hb_retl( hbqt_par_QMainWindow( 1 )->restoreDockWidget( hbqt_par_QDockWidget( 2 ) ) );
}
/*
* bool restoreState ( const QByteArray & state, int version = 0 )
*/
HB_FUNC( QT_QMAINWINDOW_RESTORESTATE )
{
hb_retl( hbqt_par_QMainWindow( 1 )->restoreState( *hbqt_par_QByteArray( 2 ), hb_parni( 3 ) ) );
}
/*
* QByteArray saveState ( int version = 0 ) const
*/
HB_FUNC( QT_QMAINWINDOW_SAVESTATE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QByteArray( hbqt_par_QMainWindow( 1 )->saveState( hb_parni( 2 ) ) ) ) );
}
/*
* 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 )
*/
HB_FUNC( QT_QMAINWINDOW_SETCORNER )
{
hbqt_par_QMainWindow( 1 )->setCorner( ( Qt::Corner ) hb_parni( 2 ), ( Qt::DockWidgetArea ) hb_parni( 3 ) );
}
/*
* void setDockOptions ( DockOptions options )
*/
HB_FUNC( QT_QMAINWINDOW_SETDOCKOPTIONS )
{
hbqt_par_QMainWindow( 1 )->setDockOptions( ( QMainWindow::DockOptions ) hb_parni( 2 ) );
}
/*
* void setDocumentMode ( bool enabled )
*/
HB_FUNC( QT_QMAINWINDOW_SETDOCUMENTMODE )
{
hbqt_par_QMainWindow( 1 )->setDocumentMode( hb_parl( 2 ) );
}
/*
* void setIconSize ( const QSize & iconSize )
*/
HB_FUNC( QT_QMAINWINDOW_SETICONSIZE )
{
hbqt_par_QMainWindow( 1 )->setIconSize( *hbqt_par_QSize( 2 ) );
}
/*
* void setMenuBar ( QMenuBar * menuBar )
*/
HB_FUNC( QT_QMAINWINDOW_SETMENUBAR )
{
hbqt_par_QMainWindow( 1 )->setMenuBar( hbqt_par_QMenuBar( 2 ) );
}
/*
* void setMenuWidget ( QWidget * menuBar )
*/
HB_FUNC( QT_QMAINWINDOW_SETMENUWIDGET )
{
hbqt_par_QMainWindow( 1 )->setMenuWidget( hbqt_par_QWidget( 2 ) );
}
/*
* 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 )
*/
HB_FUNC( QT_QMAINWINDOW_SETTABPOSITION )
{
hbqt_par_QMainWindow( 1 )->setTabPosition( ( Qt::DockWidgetAreas ) hb_parni( 2 ), ( QTabWidget::TabPosition ) hb_parni( 3 ) );
}
/*
* 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 )
*/
HB_FUNC( QT_QMAINWINDOW_SETTOOLBUTTONSTYLE )
{
hbqt_par_QMainWindow( 1 )->setToolButtonStyle( ( Qt::ToolButtonStyle ) hb_parni( 2 ) );
}
/*
* 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 )
*/
HB_FUNC( QT_QMAINWINDOW_SPLITDOCKWIDGET )
{
hbqt_par_QMainWindow( 1 )->splitDockWidget( hbqt_par_QDockWidget( 2 ), hbqt_par_QDockWidget( 3 ), ( Qt::Orientation ) hb_parni( 4 ) );
}
/*
* QStatusBar * statusBar () const
*/
HB_FUNC( QT_QMAINWINDOW_STATUSBAR )
{
hb_retptr( ( QStatusBar* ) hbqt_par_QMainWindow( 1 )->statusBar() );
}
/*
* QTabWidget::TabPosition tabPosition ( Qt::DockWidgetArea area ) const
*/
HB_FUNC( QT_QMAINWINDOW_TABPOSITION )
{
hb_retni( ( QTabWidget::TabPosition ) hbqt_par_QMainWindow( 1 )->tabPosition( ( Qt::DockWidgetArea ) hb_parni( 2 ) ) );
}
/*
* QTabWidget::TabShape tabShape () const
*/
HB_FUNC( QT_QMAINWINDOW_TABSHAPE )
{
hb_retni( ( QTabWidget::TabShape ) hbqt_par_QMainWindow( 1 )->tabShape() );
}
/*
* 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
*/
HB_FUNC( QT_QMAINWINDOW_TOOLBARAREA )
{
hb_retni( ( Qt::ToolBarArea ) hbqt_par_QMainWindow( 1 )->toolBarArea( hbqt_par_QToolBar( 2 ) ) );
}
/*
* 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
*/
HB_FUNC( QT_QMAINWINDOW_TOOLBUTTONSTYLE )
{
hb_retni( ( Qt::ToolButtonStyle ) hbqt_par_QMainWindow( 1 )->toolButtonStyle() );
}
/*
* bool unifiedTitleAndToolBarOnMac () const
*/
HB_FUNC( QT_QMAINWINDOW_UNIFIEDTITLEANDTOOLBARONMAC )
{
hb_retl( hbqt_par_QMainWindow( 1 )->unifiedTitleAndToolBarOnMac() );
}
/*
* void setAnimated ( bool enabled )
*/
HB_FUNC( QT_QMAINWINDOW_SETANIMATED )
{
hbqt_par_QMainWindow( 1 )->setAnimated( hb_parl( 2 ) );
}
/*
* void setDockNestingEnabled ( bool enabled )
*/
HB_FUNC( QT_QMAINWINDOW_SETDOCKNESTINGENABLED )
{
hbqt_par_QMainWindow( 1 )->setDockNestingEnabled( hb_parl( 2 ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,375 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* Constructed[ 33/35 [ 94.29% ] ]
*
* *** Unconvered Prototypes ***
* -----------------------------
*
* OSMenuRef macMenu ( OSMenuRef merge = 0 )
* HMENU wceMenu ( bool create = false )
*/
#include <QtCore/QPointer>
#include <QtGui/QMenu>
/*
* QMenu ( QWidget * parent = 0 )
* QMenu ( const QString & title, QWidget * parent = 0 )
* ~QMenu ()
*/
HB_FUNC( QT_QMENU )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QMenu > pObj = NULL;
if( hb_pcount() >= 1 && HB_ISCHAR( 1 ) )
{
pObj = ( QMenu* ) new QMenu( hbqt_par_QString( 1 ), hbqt_par_QWidget( 2 ) ) ;
}
else
{
pObj = ( QMenu* ) new QMenu( hbqt_par_QWidget( 1 ) ) ;
}
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* QAction * actionAt ( const QPoint & pt ) const
*/
HB_FUNC( QT_QMENU_ACTIONAT )
{
hb_retptr( ( QAction* ) hbqt_par_QMenu( 1 )->actionAt( *hbqt_par_QPoint( 2 ) ) );
}
/*
* QRect actionGeometry ( QAction * act ) const
*/
HB_FUNC( QT_QMENU_ACTIONGEOMETRY )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new 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() );
}
/*
* QAction * addAction ( const QString & text )
*/
HB_FUNC( QT_QMENU_ADDACTION )
{
hb_retptr( ( QAction* ) hbqt_par_QMenu( 1 )->addAction( hbqt_par_QString( 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 ) ) );
}
/*
* QAction * addAction ( const QString & text, const QObject * receiver, const char * member, const QKeySequence & shortcut = 0 )
*/
HB_FUNC( QT_QMENU_ADDACTION_2 )
{
hb_retptr( ( QAction* ) hbqt_par_QMenu( 1 )->addAction( hbqt_par_QString( 2 ), hbqt_par_QObject( 3 ), hbqt_par_char( 4 ), *hbqt_par_QKeySequence( 5 ) ) );
}
/*
* QAction * addAction ( const QIcon & icon, const QString & text, const QObject * receiver, const char * member, const QKeySequence & shortcut = 0 )
*/
HB_FUNC( QT_QMENU_ADDACTION_3 )
{
hb_retptr( ( QAction* ) hbqt_par_QMenu( 1 )->addAction( QIcon( hbqt_par_QString( 2 ) ), hbqt_par_QString( 3 ), hbqt_par_QObject( 4 ), hbqt_par_char( 5 ), *hbqt_par_QKeySequence( 6 ) ) );
}
/*
* void addAction ( QAction * action )
*/
HB_FUNC( QT_QMENU_ADDACTION_4 )
{
hbqt_par_QMenu( 1 )->addAction( hbqt_par_QAction( 2 ) );
}
/*
* 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_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_2 )
{
hb_retptr( ( QMenu* ) hbqt_par_QMenu( 1 )->addMenu( QIcon( hbqt_par_QString( 2 ) ), hbqt_par_QString( 3 ) ) );
}
/*
* QAction * addSeparator ()
*/
HB_FUNC( QT_QMENU_ADDSEPARATOR )
{
hb_retptr( ( QAction* ) hbqt_par_QMenu( 1 )->addSeparator() );
}
/*
* void clear ()
*/
HB_FUNC( QT_QMENU_CLEAR )
{
hbqt_par_QMenu( 1 )->clear();
}
/*
* QAction * defaultAction () const
*/
HB_FUNC( QT_QMENU_DEFAULTACTION )
{
hb_retptr( ( QAction* ) hbqt_par_QMenu( 1 )->defaultAction() );
}
/*
* 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( *hbqt_par_QPoint( 2 ), hbqt_par_QAction( 3 ) ) );
}
/*
* void hideTearOffMenu ()
*/
HB_FUNC( QT_QMENU_HIDETEAROFFMENU )
{
hbqt_par_QMenu( 1 )->hideTearOffMenu();
}
/*
* QIcon icon () const
*/
HB_FUNC( QT_QMENU_ICON )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QIcon( hbqt_par_QMenu( 1 )->icon() ) ) );
}
/*
* 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 )
*/
HB_FUNC( QT_QMENU_INSERTSEPARATOR )
{
hb_retptr( ( QAction* ) hbqt_par_QMenu( 1 )->insertSeparator( hbqt_par_QAction( 2 ) ) );
}
/*
* bool isEmpty () const
*/
HB_FUNC( QT_QMENU_ISEMPTY )
{
hb_retl( hbqt_par_QMenu( 1 )->isEmpty() );
}
/*
* bool isTearOffEnabled () const
*/
HB_FUNC( QT_QMENU_ISTEAROFFENABLED )
{
hb_retl( hbqt_par_QMenu( 1 )->isTearOffEnabled() );
}
/*
* bool isTearOffMenuVisible () const
*/
HB_FUNC( QT_QMENU_ISTEAROFFMENUVISIBLE )
{
hb_retl( hbqt_par_QMenu( 1 )->isTearOffMenuVisible() );
}
/*
* QAction * menuAction () const
*/
HB_FUNC( QT_QMENU_MENUACTION )
{
hb_retptr( ( QAction* ) hbqt_par_QMenu( 1 )->menuAction() );
}
/*
* void popup ( const QPoint & p, QAction * atAction = 0 )
*/
HB_FUNC( QT_QMENU_POPUP )
{
hbqt_par_QMenu( 1 )->popup( *hbqt_par_QPoint( 2 ), hbqt_par_QAction( 3 ) );
}
/*
* bool separatorsCollapsible () const
*/
HB_FUNC( QT_QMENU_SEPARATORSCOLLAPSIBLE )
{
hb_retl( hbqt_par_QMenu( 1 )->separatorsCollapsible() );
}
/*
* void setActiveAction ( QAction * act )
*/
HB_FUNC( QT_QMENU_SETACTIVEACTION )
{
hbqt_par_QMenu( 1 )->setActiveAction( hbqt_par_QAction( 2 ) );
}
/*
* void setDefaultAction ( QAction * act )
*/
HB_FUNC( QT_QMENU_SETDEFAULTACTION )
{
hbqt_par_QMenu( 1 )->setDefaultAction( hbqt_par_QAction( 2 ) );
}
/*
* void setIcon ( const QIcon & icon )
*/
HB_FUNC( QT_QMENU_SETICON )
{
hbqt_par_QMenu( 1 )->setIcon( QIcon( hbqt_par_QString( 2 ) ) );
}
/*
* void setSeparatorsCollapsible ( bool collapse )
*/
HB_FUNC( QT_QMENU_SETSEPARATORSCOLLAPSIBLE )
{
hbqt_par_QMenu( 1 )->setSeparatorsCollapsible( hb_parl( 2 ) );
}
/*
* void setTearOffEnabled ( bool )
*/
HB_FUNC( QT_QMENU_SETTEAROFFENABLED )
{
hbqt_par_QMenu( 1 )->setTearOffEnabled( hb_parl( 2 ) );
}
/*
* void setTitle ( const QString & title )
*/
HB_FUNC( QT_QMENU_SETTITLE )
{
hbqt_par_QMenu( 1 )->setTitle( hbqt_par_QString( 2 ) );
}
/*
* QString title () const
*/
HB_FUNC( QT_QMENU_TITLE )
{
hb_retc( hbqt_par_QMenu( 1 )->title().toAscii().data() );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,219 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* Constructed[ 14/17 [ 82.35% ] ]
*
* *** Unconvered Prototypes ***
* -----------------------------
*
* OSMenuRef macMenu ()
*
* *** Commented out protos which construct fine but do not compile ***
*
* // QAction * defaultAction () const
* // void setDefaultAction ( QAction * act )
*/
#include <QtCore/QPointer>
#include <QtGui/QMenuBar>
/*
* QMenuBar ( QWidget * parent = 0 )
* ~QMenuBar ()
*/
HB_FUNC( QT_QMENUBAR )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QMenuBar > pObj = NULL;
pObj = ( QMenuBar* ) new QMenuBar( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* QAction * activeAction () const
*/
HB_FUNC( QT_QMENUBAR_ACTIVEACTION )
{
hb_retptr( ( QAction* ) hbqt_par_QMenuBar( 1 )->activeAction() );
}
/*
* QAction * addAction ( const QString & text )
*/
HB_FUNC( QT_QMENUBAR_ADDACTION )
{
hb_retptr( ( QAction* ) hbqt_par_QMenuBar( 1 )->addAction( hbqt_par_QString( 2 ) ) );
}
/*
* 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 ), hbqt_par_QObject( 3 ), hbqt_par_char( 4 ) ) );
}
/*
* void addAction ( QAction * action )
*/
HB_FUNC( QT_QMENUBAR_ADDACTION_2 )
{
hbqt_par_QMenuBar( 1 )->addAction( hbqt_par_QAction( 2 ) );
}
/*
* 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_1 )
{
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_2 )
{
hb_retptr( ( QMenu* ) hbqt_par_QMenuBar( 1 )->addMenu( QIcon( hbqt_par_QString( 2 ) ), hbqt_par_QString( 3 ) ) );
}
/*
* QAction * addSeparator ()
*/
HB_FUNC( QT_QMENUBAR_ADDSEPARATOR )
{
hb_retptr( ( QAction* ) hbqt_par_QMenuBar( 1 )->addSeparator() );
}
/*
* void clear ()
*/
HB_FUNC( QT_QMENUBAR_CLEAR )
{
hbqt_par_QMenuBar( 1 )->clear();
}
/*
* 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 )
*/
HB_FUNC( QT_QMENUBAR_INSERTSEPARATOR )
{
hb_retptr( ( QAction* ) hbqt_par_QMenuBar( 1 )->insertSeparator( hbqt_par_QAction( 2 ) ) );
}
/*
* bool isDefaultUp () const
*/
HB_FUNC( QT_QMENUBAR_ISDEFAULTUP )
{
hb_retl( hbqt_par_QMenuBar( 1 )->isDefaultUp() );
}
/*
* void setActiveAction ( QAction * act )
*/
HB_FUNC( QT_QMENUBAR_SETACTIVEACTION )
{
hbqt_par_QMenuBar( 1 )->setActiveAction( hbqt_par_QAction( 2 ) );
}
/*
* void setDefaultUp ( bool )
*/
HB_FUNC( QT_QMENUBAR_SETDEFAULTUP )
{
hbqt_par_QMenuBar( 1 )->setDefaultUp( hb_parl( 2 ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,414 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum ButtonRole { InvalidRole, AcceptRole, RejectRole, DestructiveRole, ..., ResetRole }
* enum Icon { NoIcon, Question, Information, Warning, Critical }
* enum StandardButton { Ok, Open, Save, Cancel, ..., ButtonMask }
* flags StandardButtons
*/
/*
* Constructed[ 38/39 [ 97.44% ] ]
*
* *** Unconvered Prototypes ***
* -----------------------------
*
* QList<QAbstractButton *> buttons () const
*/
#include <QtCore/QPointer>
#include <QtGui/QMessageBox>
/*
* QMessageBox ( QWidget * parent = 0 )
* QMessageBox ( Icon icon, const QString & title, const QString & text, StandardButtons buttons = NoButton, QWidget * parent = 0, Qt::WindowFlags f = Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint )
* ~QMessageBox ()
*/
HB_FUNC( QT_QMESSAGEBOX )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QMessageBox > pObj = NULL;
pObj = ( QMessageBox* ) new QMessageBox() ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* void addButton ( QAbstractButton * button, ButtonRole role )
*/
HB_FUNC( QT_QMESSAGEBOX_ADDBUTTON )
{
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( ( QMessageBox::ButtonRole ) 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().toAscii().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( ( QMessageBox::Icon ) hbqt_par_QMessageBox( 1 )->icon() );
}
/*
* QPixmap iconPixmap () const
*/
HB_FUNC( QT_QMESSAGEBOX_ICONPIXMAP )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QPixmap( hbqt_par_QMessageBox( 1 )->iconPixmap() ) ) );
}
/*
* QString informativeText () const
*/
HB_FUNC( QT_QMESSAGEBOX_INFORMATIVETEXT )
{
hb_retc( hbqt_par_QMessageBox( 1 )->informativeText().toAscii().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 setIconPixmap ( const QPixmap & pixmap )
*/
HB_FUNC( QT_QMESSAGEBOX_SETICONPIXMAP )
{
hbqt_par_QMessageBox( 1 )->setIconPixmap( *hbqt_par_QPixmap( 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( ( QMessageBox::StandardButton ) hbqt_par_QMessageBox( 1 )->standardButton( hbqt_par_QAbstractButton( 2 ) ) );
}
/*
* StandardButtons standardButtons () const
*/
HB_FUNC( QT_QMESSAGEBOX_STANDARDBUTTONS )
{
hb_retni( ( QMessageBox::StandardButtons ) hbqt_par_QMessageBox( 1 )->standardButtons() );
}
/*
* QString text () const
*/
HB_FUNC( QT_QMESSAGEBOX_TEXT )
{
hb_retc( hbqt_par_QMessageBox( 1 )->text().toAscii().data() );
}
/*
* Qt::TextFormat textFormat () const
*/
HB_FUNC( QT_QMESSAGEBOX_TEXTFORMAT )
{
hb_retni( ( Qt::TextFormat ) hbqt_par_QMessageBox( 1 )->textFormat() );
}
/*
* void about ( QWidget * parent, const QString & title, const QString & text )
*/
HB_FUNC( QT_QMESSAGEBOX_ABOUT )
{
hbqt_par_QMessageBox( 1 )->about( hbqt_par_QWidget( 2 ), hbqt_par_QString( 3 ), hbqt_par_QString( 4 ) );
}
/*
* void aboutQt ( QWidget * parent, const QString & title = QString() )
*/
HB_FUNC( QT_QMESSAGEBOX_ABOUTQT )
{
hbqt_par_QMessageBox( 1 )->aboutQt( hbqt_par_QWidget( 2 ), hbqt_par_QString( 3 ) );
}
/*
* StandardButton critical ( QWidget * parent, const QString & title, const QString & text, StandardButtons buttons = Ok, StandardButton defaultButton = NoButton )
*/
HB_FUNC( QT_QMESSAGEBOX_CRITICAL )
{
hb_retni( ( QMessageBox::StandardButton ) hbqt_par_QMessageBox( 1 )->critical( hbqt_par_QWidget( 2 ), hbqt_par_QString( 3 ), hbqt_par_QString( 4 ), ( HB_ISNUM( 5 ) ? ( QMessageBox::StandardButtons ) hb_parni( 5 ) : ( QMessageBox::StandardButtons ) QMessageBox::Ok ), ( HB_ISNUM( 6 ) ? ( QMessageBox::StandardButton ) hb_parni( 6 ) : ( QMessageBox::StandardButton ) QMessageBox::NoButton ) ) );
}
/*
* StandardButton information ( QWidget * parent, const QString & title, const QString & text, StandardButtons buttons = Ok, StandardButton defaultButton = NoButton )
*/
HB_FUNC( QT_QMESSAGEBOX_INFORMATION )
{
hb_retni( ( QMessageBox::StandardButton ) hbqt_par_QMessageBox( 1 )->information( hbqt_par_QWidget( 2 ), hbqt_par_QString( 3 ), hbqt_par_QString( 4 ), ( HB_ISNUM( 5 ) ? ( QMessageBox::StandardButtons ) hb_parni( 5 ) : ( QMessageBox::StandardButtons ) QMessageBox::Ok ), ( HB_ISNUM( 6 ) ? ( QMessageBox::StandardButton ) hb_parni( 6 ) : ( QMessageBox::StandardButton ) QMessageBox::NoButton ) ) );
}
/*
* StandardButton question ( QWidget * parent, const QString & title, const QString & text, StandardButtons buttons = Ok, StandardButton defaultButton = NoButton )
*/
HB_FUNC( QT_QMESSAGEBOX_QUESTION )
{
hb_retni( ( QMessageBox::StandardButton ) hbqt_par_QMessageBox( 1 )->question( hbqt_par_QWidget( 2 ), hbqt_par_QString( 3 ), hbqt_par_QString( 4 ), ( HB_ISNUM( 5 ) ? ( QMessageBox::StandardButtons ) hb_parni( 5 ) : ( QMessageBox::StandardButtons ) QMessageBox::Ok ), ( HB_ISNUM( 6 ) ? ( QMessageBox::StandardButton ) hb_parni( 6 ) : ( QMessageBox::StandardButton ) QMessageBox::NoButton ) ) );
}
/*
* StandardButton warning ( QWidget * parent, const QString & title, const QString & text, StandardButtons buttons = Ok, StandardButton defaultButton = NoButton )
*/
HB_FUNC( QT_QMESSAGEBOX_WARNING )
{
hb_retni( ( QMessageBox::StandardButton ) hbqt_par_QMessageBox( 1 )->warning( hbqt_par_QWidget( 2 ), hbqt_par_QString( 3 ), hbqt_par_QString( 4 ), ( HB_ISNUM( 5 ) ? ( QMessageBox::StandardButtons ) hb_parni( 5 ) : ( QMessageBox::StandardButtons ) QMessageBox::Ok ), ( HB_ISNUM( 6 ) ? ( QMessageBox::StandardButton ) hb_parni( 6 ) : ( QMessageBox::StandardButton ) QMessageBox::NoButton ) ) );
}
/*
* int exec ()
*/
HB_FUNC( QT_QMESSAGEBOX_EXEC )
{
hb_retni( hbqt_par_QMessageBox( 1 )->exec() );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,182 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtCore/QModelIndex>
/*
* QModelIndex ()
* QModelIndex ( const QModelIndex & other )
* ~QModelIndex ()
*/
HB_FUNC( QT_QMODELINDEX )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
pObj = new QModelIndex() ;
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QModelIndex" );
hb_retptrGC( p );
}
/*
* QModelIndex child ( int row, int column ) const
*/
HB_FUNC( QT_QMODELINDEX_CHILD )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QModelIndex( 1 )->child( hb_parni( 2 ), hb_parni( 3 ) ) ) ) );
}
/*
* int column () const
*/
HB_FUNC( QT_QMODELINDEX_COLUMN )
{
hb_retni( hbqt_par_QModelIndex( 1 )->column() );
}
/*
* QVariant data ( int role = Qt::DisplayRole ) const
*/
HB_FUNC( QT_QMODELINDEX_DATA )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QVariant( hbqt_par_QModelIndex( 1 )->data( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : Qt::DisplayRole ) ) ) ) );
}
/*
* Qt::ItemFlags flags () const
*/
HB_FUNC( QT_QMODELINDEX_FLAGS )
{
hb_retni( ( Qt::ItemFlags ) hbqt_par_QModelIndex( 1 )->flags() );
}
/*
* qint64 internalId () const
*/
HB_FUNC( QT_QMODELINDEX_INTERNALID )
{
hb_retnint( hbqt_par_QModelIndex( 1 )->internalId() );
}
/*
* void * internalPointer () const
*/
HB_FUNC( QT_QMODELINDEX_INTERNALPOINTER )
{
hbqt_par_QModelIndex( 1 )->internalPointer();
}
/*
* bool isValid () const
*/
HB_FUNC( QT_QMODELINDEX_ISVALID )
{
hb_retl( hbqt_par_QModelIndex( 1 )->isValid() );
}
/*
* const QAbstractItemModel * model () const
*/
HB_FUNC( QT_QMODELINDEX_MODEL )
{
hb_retptr( ( QAbstractItemModel* ) hbqt_par_QModelIndex( 1 )->model() );
}
/*
* QModelIndex parent () const
*/
HB_FUNC( QT_QMODELINDEX_PARENT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QModelIndex( 1 )->parent() ) ) );
}
/*
* int row () const
*/
HB_FUNC( QT_QMODELINDEX_ROW )
{
hb_retni( hbqt_par_QModelIndex( 1 )->row() );
}
/*
* QModelIndex sibling ( int row, int column ) const
*/
HB_FUNC( QT_QMODELINDEX_SIBLING )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QModelIndex( 1 )->sibling( hb_parni( 2 ), hb_parni( 3 ) ) ) ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,166 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QMouseEvent>
/*
* QMouseEvent ( Type type, const QPoint & position, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers )
* QMouseEvent ( Type type, const QPoint & pos, const QPoint & globalPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers )
* ~QMouseEvent ()
*/
HB_FUNC( QT_QMOUSEEVENT )
{
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
pObj = new QMouseEvent( *hbqt_par_QMouseEvent( 1 ) ) ;
}
hb_retptr( pObj );
}
/*
* Qt::MouseButton button () const
*/
HB_FUNC( QT_QMOUSEEVENT_BUTTON )
{
hb_retni( ( Qt::MouseButton ) hbqt_par_QMouseEvent( 1 )->button() );
}
/*
* Qt::MouseButtons buttons () const
*/
HB_FUNC( QT_QMOUSEEVENT_BUTTONS )
{
hb_retni( ( Qt::MouseButtons ) hbqt_par_QMouseEvent( 1 )->buttons() );
}
/*
* const QPoint & globalPos () const
*/
HB_FUNC( QT_QMOUSEEVENT_GLOBALPOS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QPoint( hbqt_par_QMouseEvent( 1 )->globalPos() ) ) );
}
/*
* int globalX () const
*/
HB_FUNC( QT_QMOUSEEVENT_GLOBALX )
{
hb_retni( hbqt_par_QMouseEvent( 1 )->globalX() );
}
/*
* int globalY () const
*/
HB_FUNC( QT_QMOUSEEVENT_GLOBALY )
{
hb_retni( hbqt_par_QMouseEvent( 1 )->globalY() );
}
/*
* const QPoint & pos () const
*/
HB_FUNC( QT_QMOUSEEVENT_POS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QPoint( hbqt_par_QMouseEvent( 1 )->pos() ) ) );
}
/*
* QPointF posF () const
*/
HB_FUNC( QT_QMOUSEEVENT_POSF )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QPointF( hbqt_par_QMouseEvent( 1 )->posF() ) ) );
}
/*
* int x () const
*/
HB_FUNC( QT_QMOUSEEVENT_X )
{
hb_retni( hbqt_par_QMouseEvent( 1 )->x() );
}
/*
* int y () const
*/
HB_FUNC( QT_QMOUSEEVENT_Y )
{
hb_retni( hbqt_par_QMouseEvent( 1 )->y() );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,101 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QMoveEvent>
/*
* QMoveEvent ( const QPoint & pos, const QPoint & oldPos )
* ~QMoveEvent ()
*/
HB_FUNC( QT_QMOVEEVENT )
{
}
/*
* const QPoint & oldPos () const
*/
HB_FUNC( QT_QMOVEEVENT_OLDPOS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QPoint( hbqt_par_QMoveEvent( 1 )->oldPos() ) ) );
}
/*
* const QPoint & pos () const
*/
HB_FUNC( QT_QMOVEEVENT_POS )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QPoint( hbqt_par_QMoveEvent( 1 )->pos() ) ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,350 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* Constructed[ 30/35 [ 85.71% ] ]
*
* *** Unconvered Prototypes ***
* -----------------------------
*
* QList<QByteArray> dynamicPropertyNames () const
* QList<T> findChildren ( const QString & name = QString() ) const
* QList<T> findChildren ( const QRegExp & regExp ) const
* const QMetaObject staticMetaObject
*
* *** Commented out protos which construct fine but do not compile ***
*
* //T findChild ( const QString & name = QString() ) const
*/
#include <QtCore/QPointer>
#include <QWidget>
#include <QtCore/QObject>
#include <QtCore/QVariant>
/*
* Q_INVOKABLE QObject ( QObject * parent = 0 )
* virtual ~QObject ()
*/
HB_FUNC( QT_QOBJECT )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QObject > pObj = NULL;
pObj = ( QObject* ) new QObject( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* bool blockSignals ( bool block )
*/
HB_FUNC( QT_QOBJECT_BLOCKSIGNALS )
{
hb_retl( hbqt_par_QObject( 1 )->blockSignals( hb_parl( 2 ) ) );
}
/*
* const QObjectList & children () const
*/
HB_FUNC( QT_QOBJECT_CHILDREN )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QObjectList( hbqt_par_QObject( 1 )->children() ) ) );
}
/*
* 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 ), ( HB_ISNUM( 5 ) ? ( Qt::ConnectionType ) hb_parni( 5 ) : ( Qt::ConnectionType ) Qt::AutoConnection ) ) );
}
/*
* 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().toAscii().data() );
}
/*
* QObject * parent () const
*/
HB_FUNC( QT_QOBJECT_PARENT )
{
hb_retptr( ( QObject* ) hbqt_par_QObject( 1 )->parent() );
}
/*
* QVariant property ( const char * name ) const
*/
HB_FUNC( QT_QOBJECT_PROPERTY )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QVariant( hbqt_par_QObject( 1 )->property( hbqt_par_char( 2 ) ) ) ) );
}
/*
* 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 setProperty ( const char * name, const QVariant & value )
*/
HB_FUNC( QT_QOBJECT_SETPROPERTY )
{
hb_retl( hbqt_par_QObject( 1 )->setProperty( hbqt_par_char( 2 ), *hbqt_par_QVariant( 3 ) ) );
}
/*
* 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() );
}
/*
* bool connect ( const QObject * sender, const char * signal, const QObject * receiver, const char * method, Qt::ConnectionType type = Qt::AutoConnection )
*/
HB_FUNC( QT_QOBJECT_CONNECT_1 )
{
hb_retl( hbqt_par_QObject( 1 )->connect( hbqt_par_QObject( 2 ), hbqt_par_char( 3 ), hbqt_par_QObject( 4 ), hbqt_par_char( 5 ), ( HB_ISNUM( 6 ) ? ( Qt::ConnectionType ) hb_parni( 6 ) : ( Qt::ConnectionType ) Qt::AutoConnection ) ) );
}
/*
* bool disconnect ( const QObject * sender, const char * signal, const QObject * receiver, const char * method )
*/
HB_FUNC( QT_QOBJECT_DISCONNECT_2 )
{
hb_retl( hbqt_par_QObject( 1 )->disconnect( hbqt_par_QObject( 2 ), hbqt_par_char( 3 ), hbqt_par_QObject( 4 ), hbqt_par_char( 5 ) ) );
}
/*
* QString tr ( const char * sourceText, const char * disambiguation = 0, int n = -1 )
*/
HB_FUNC( QT_QOBJECT_TR )
{
hb_retc( hbqt_par_QObject( 1 )->tr( hbqt_par_char( 2 ), hbqt_par_char( 3 ), ( HB_ISNUM( 4 ) ? hb_parni( 4 ) : -1 ) ).toAscii().data() );
}
/*
* QString trUtf8 ( const char * sourceText, const char * disambiguation = 0, int n = -1 )
*/
HB_FUNC( QT_QOBJECT_TRUTF8 )
{
hb_retc( hbqt_par_QObject( 1 )->trUtf8( hbqt_par_char( 2 ), hbqt_par_char( 3 ), ( HB_ISNUM( 4 ) ? hb_parni( 4 ) : -1 ) ).toAscii().data() );
}
/*
* void deleteLater ()
*/
HB_FUNC( QT_QOBJECT_DELETELATER )
{
hbqt_par_QObject( 1 )->deleteLater();
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,165 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum PageSetupDialogOption { DontUseSheet }
* flags PageSetupDialogOptions
*/
#include <QtCore/QPointer>
#include <QtGui/QPageSetupDialog>
/*
* QPageSetupDialog ( QPrinter * printer, QWidget * parent = 0 )
* QPageSetupDialog ( QWidget * parent = 0 )
*/
HB_FUNC( QT_QPAGESETUPDIALOG )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QPageSetupDialog > pObj = NULL;
if( hb_pcount() >= 2 )
pObj = ( QPageSetupDialog* ) new QPageSetupDialog( hbqt_par_QPrinter( 1 ), hbqt_par_QWidget( 1 ) ) ;
else
pObj = ( QPageSetupDialog* ) new QPageSetupDialog( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* 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( ( QPageSetupDialog::PageSetupDialogOptions ) 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 /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,183 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum PaintDeviceMetric { PdmWidth, PdmHeight, PdmWidthMM, PdmHeightMM, ..., PdmPhysicalDpiY }
*/
#include <QtCore/QPointer>
#include <QtGui/QPaintDevice>
/*
* 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 */
/*----------------------------------------------------------------------*/

View File

@@ -1,118 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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 <QtCore/QPointer>
#include <QtGui/QPaintEvent>
/*
* QPaintEvent ( const QRegion & paintRegion )
* QPaintEvent ( const QRect & paintRect )
*/
HB_FUNC( QT_QPAINTEVENT )
{
void * pObj = NULL;
if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
{
QString objName = ( QString ) hbqt_par_QString( 1 );
if( objName == ( QString ) "QRect" )
{
pObj = new QPaintEvent( *hbqt_par_QRect( 1 ) ) ;
}
else if( objName == ( QString ) "QRegion" )
{
pObj = new QPaintEvent( *hbqt_par_QRegion( 1 ) ) ;
}
}
hb_retptr( pObj );
}
/*
* const QRect & rect () const
*/
HB_FUNC( QT_QPAINTEVENT_RECT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QPaintEvent( 1 )->rect() ) ) );
}
/*
* const QRegion & region () const
*/
HB_FUNC( QT_QPAINTEVENT_REGION )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QRegion( hbqt_par_QPaintEvent( 1 )->region() ) ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

File diff suppressed because it is too large Load Diff

View File

@@ -1,398 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* enum ColorGroup { Disabled, Active, Inactive, Normal }
* enum ColorRole { Window, Background, WindowText, Foreground, ..., NoRole }
*/
#include <QtCore/QPointer>
#include <QtGui/QPalette>
/*
* QPalette ()
* QPalette ( const QColor & button )
* QPalette ( Qt::GlobalColor button )
* QPalette ( const QColor & button, const QColor & window )
* QPalette ( const QBrush & windowText, const QBrush & button, const QBrush & light, const QBrush & dark, const QBrush & mid, const QBrush & text, const QBrush & bright_text, const QBrush & base, const QBrush & window )
* QPalette ( const QPalette & p )
* ~QPalette ()
*/
HB_FUNC( QT_QPALETTE )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISNUM( 1 ) )
{
pObj = ( QPalette* ) new QPalette( ( Qt::GlobalColor ) hb_parni( 1 ) ) ;
}
else if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
pObj = ( QPalette* ) new QPalette( *hbqt_par_QPalette( 1 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISPOINTER( 2 ) )
{
pObj = ( QPalette* ) new QPalette( *hbqt_par_QColor( 1 ), *hbqt_par_QColor( 2 ) ) ;
}
else
{
pObj = ( QPalette* ) new QPalette() ;
}
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QPalette" );
hb_retptrGC( p );
}
/*
* const QBrush & alternateBase () const
*/
HB_FUNC( QT_QPALETTE_ALTERNATEBASE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->alternateBase() ) ) );
}
/*
* const QBrush & base () const
*/
HB_FUNC( QT_QPALETTE_BASE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->base() ) ) );
}
/*
* const QBrush & brightText () const
*/
HB_FUNC( QT_QPALETTE_BRIGHTTEXT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->brightText() ) ) );
}
/*
* const QBrush & brush ( ColorGroup group, ColorRole role ) const
*/
HB_FUNC( QT_QPALETTE_BRUSH )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->brush( ( QPalette::ColorGroup ) hb_parni( 2 ), ( QPalette::ColorRole ) hb_parni( 3 ) ) ) ) );
}
/*
* const QBrush & brush ( ColorRole role ) const
*/
HB_FUNC( QT_QPALETTE_BRUSH_1 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->brush( ( QPalette::ColorRole ) hb_parni( 2 ) ) ) ) );
}
/*
* const QBrush & button () const
*/
HB_FUNC( QT_QPALETTE_BUTTON )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->button() ) ) );
}
/*
* const QBrush & buttonText () const
*/
HB_FUNC( QT_QPALETTE_BUTTONTEXT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->buttonText() ) ) );
}
/*
* qint64 cacheKey () const
*/
HB_FUNC( QT_QPALETTE_CACHEKEY )
{
hb_retnint( hbqt_par_QPalette( 1 )->cacheKey() );
}
/*
* const QColor & color ( ColorGroup group, ColorRole role ) const
*/
HB_FUNC( QT_QPALETTE_COLOR )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QPalette( 1 )->color( ( QPalette::ColorGroup ) hb_parni( 2 ), ( QPalette::ColorRole ) hb_parni( 3 ) ) ) ) );
}
/*
* const QColor & color ( ColorRole role ) const
*/
HB_FUNC( QT_QPALETTE_COLOR_1 )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QPalette( 1 )->color( ( QPalette::ColorRole ) hb_parni( 2 ) ) ) ) );
}
/*
* ColorGroup currentColorGroup () const
*/
HB_FUNC( QT_QPALETTE_CURRENTCOLORGROUP )
{
hb_retni( ( QPalette::ColorGroup ) hbqt_par_QPalette( 1 )->currentColorGroup() );
}
/*
* const QBrush & dark () const
*/
HB_FUNC( QT_QPALETTE_DARK )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->dark() ) ) );
}
/*
* const QBrush & highlight () const
*/
HB_FUNC( QT_QPALETTE_HIGHLIGHT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->highlight() ) ) );
}
/*
* const QBrush & highlightedText () const
*/
HB_FUNC( QT_QPALETTE_HIGHLIGHTEDTEXT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->highlightedText() ) ) );
}
/*
* bool isBrushSet ( ColorGroup cg, ColorRole cr ) const
*/
HB_FUNC( QT_QPALETTE_ISBRUSHSET )
{
hb_retl( hbqt_par_QPalette( 1 )->isBrushSet( ( QPalette::ColorGroup ) hb_parni( 2 ), ( QPalette::ColorRole ) hb_parni( 3 ) ) );
}
/*
* bool isCopyOf ( const QPalette & p ) const
*/
HB_FUNC( QT_QPALETTE_ISCOPYOF )
{
hb_retl( hbqt_par_QPalette( 1 )->isCopyOf( *hbqt_par_QPalette( 2 ) ) );
}
/*
* bool isEqual ( ColorGroup cg1, ColorGroup cg2 ) const
*/
HB_FUNC( QT_QPALETTE_ISEQUAL )
{
hb_retl( hbqt_par_QPalette( 1 )->isEqual( ( QPalette::ColorGroup ) hb_parni( 2 ), ( QPalette::ColorGroup ) hb_parni( 3 ) ) );
}
/*
* const QBrush & light () const
*/
HB_FUNC( QT_QPALETTE_LIGHT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->light() ) ) );
}
/*
* const QBrush & link () const
*/
HB_FUNC( QT_QPALETTE_LINK )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->link() ) ) );
}
/*
* const QBrush & linkVisited () const
*/
HB_FUNC( QT_QPALETTE_LINKVISITED )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->linkVisited() ) ) );
}
/*
* const QBrush & mid () const
*/
HB_FUNC( QT_QPALETTE_MID )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->mid() ) ) );
}
/*
* const QBrush & midlight () const
*/
HB_FUNC( QT_QPALETTE_MIDLIGHT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->midlight() ) ) );
}
/*
* QPalette resolve ( const QPalette & other ) const
*/
HB_FUNC( QT_QPALETTE_RESOLVE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QPalette( hbqt_par_QPalette( 1 )->resolve( *hbqt_par_QPalette( 2 ) ) ) ) );
}
/*
* void setBrush ( ColorRole role, const QBrush & brush )
*/
HB_FUNC( QT_QPALETTE_SETBRUSH )
{
hbqt_par_QPalette( 1 )->setBrush( ( QPalette::ColorRole ) hb_parni( 2 ), *hbqt_par_QBrush( 3 ) );
}
/*
* void setBrush ( ColorGroup group, ColorRole role, const QBrush & brush )
*/
HB_FUNC( QT_QPALETTE_SETBRUSH_1 )
{
hbqt_par_QPalette( 1 )->setBrush( ( QPalette::ColorGroup ) hb_parni( 2 ), ( QPalette::ColorRole ) hb_parni( 3 ), *hbqt_par_QBrush( 4 ) );
}
/*
* void setColor ( ColorRole role, const QColor & color )
*/
HB_FUNC( QT_QPALETTE_SETCOLOR )
{
hbqt_par_QPalette( 1 )->setColor( ( QPalette::ColorRole ) hb_parni( 2 ), *hbqt_par_QColor( 3 ) );
}
/*
* void setColor ( ColorGroup group, ColorRole role, const QColor & color )
*/
HB_FUNC( QT_QPALETTE_SETCOLOR_1 )
{
hbqt_par_QPalette( 1 )->setColor( ( QPalette::ColorGroup ) hb_parni( 2 ), ( QPalette::ColorRole ) hb_parni( 3 ), *hbqt_par_QColor( 4 ) );
}
/*
* void setColorGroup ( ColorGroup cg, const QBrush & windowText, const QBrush & button, const QBrush & light, const QBrush & dark, const QBrush & mid, const QBrush & text, const QBrush & bright_text, const QBrush & base, const QBrush & window )
*/
HB_FUNC( QT_QPALETTE_SETCOLORGROUP )
{
hbqt_par_QPalette( 1 )->setColorGroup( ( QPalette::ColorGroup ) hb_parni( 2 ), *hbqt_par_QBrush( 3 ), *hbqt_par_QBrush( 4 ), *hbqt_par_QBrush( 5 ), *hbqt_par_QBrush( 6 ), *hbqt_par_QBrush( 7 ), *hbqt_par_QBrush( 8 ), *hbqt_par_QBrush( 9 ), *hbqt_par_QBrush( 10 ), *hbqt_par_QBrush( 11 ) );
}
/*
* void setCurrentColorGroup ( ColorGroup cg )
*/
HB_FUNC( QT_QPALETTE_SETCURRENTCOLORGROUP )
{
hbqt_par_QPalette( 1 )->setCurrentColorGroup( ( QPalette::ColorGroup ) hb_parni( 2 ) );
}
/*
* const QBrush & shadow () const
*/
HB_FUNC( QT_QPALETTE_SHADOW )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->shadow() ) ) );
}
/*
* const QBrush & text () const
*/
HB_FUNC( QT_QPALETTE_TEXT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->text() ) ) );
}
/*
* const QBrush & toolTipBase () const
*/
HB_FUNC( QT_QPALETTE_TOOLTIPBASE )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->toolTipBase() ) ) );
}
/*
* const QBrush & toolTipText () const
*/
HB_FUNC( QT_QPALETTE_TOOLTIPTEXT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->toolTipText() ) ) );
}
/*
* const QBrush & window () const
*/
HB_FUNC( QT_QPALETTE_WINDOW )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->window() ) ) );
}
/*
* const QBrush & windowText () const
*/
HB_FUNC( QT_QPALETTE_WINDOWTEXT )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->windowText() ) ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -1,307 +0,0 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot 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
/*----------------------------------------------------------------------*/
/*
* Constructed[ 21/23 [ 91.30% ] ]
*
* *** Unconvered Prototypes ***
* -----------------------------
*
* QVector<qreal> dashPattern () const
* void setDashPattern ( const QVector<qreal> & pattern )
*/
#include <QtCore/QPointer>
#include <QtGui/QPen>
/*
* QPen ()
* QPen ( Qt::PenStyle style )
* QPen ( const QColor & color )
* QPen ( const QBrush & brush, qreal width, Qt::PenStyle style = Qt::SolidLine, Qt::PenCapStyle cap = Qt::SquareCap, Qt::PenJoinStyle join = Qt::BevelJoin )
* QPen ( const QPen & pen )
* ~QPen ()
*/
HB_FUNC( QT_QPEN )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISNUM( 1 ) )
{
pObj = ( QPen* ) new QPen( ( Qt::PenStyle ) hb_parni( 1 ) ) ;
}
else if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
pObj = ( QPen* ) new QPen( *hbqt_par_QPen( 1 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
{
QString objName = ( QString ) hbqt_par_QString( 1 );
if( objName == ( QString ) "QColor" )
{
pObj = ( QPen* ) new QPen( *hbqt_par_QColor( 2 ) ) ;
}
else
{
pObj = ( QPen* ) new QPen() ;
}
}
else if( hb_pcount() >= 2 && HB_ISPOINTER( 1 ) && HB_ISNUM( 2 ) )
{
Qt::PenStyle iStyle = HB_ISNUM( 3 ) ? ( Qt::PenStyle ) hb_parni( 3 ) : Qt::SolidLine;
Qt::PenCapStyle iCap = HB_ISNUM( 4 ) ? ( Qt::PenCapStyle ) hb_parni( 4 ) : Qt::SquareCap;
Qt::PenJoinStyle iJoin = HB_ISNUM( 5 ) ? ( Qt::PenJoinStyle ) hb_parni( 5 ) : Qt::BevelJoin;
pObj = ( QPen* ) new QPen( *hbqt_par_QBrush( 1 ), hb_parnd( 2 ), iStyle, iCap, iJoin ) ;
}
else
{
pObj = ( QPen* ) new QPen() ;
}
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QPen" );
hb_retptrGC( p );
}
/*
* QBrush brush () const
*/
HB_FUNC( QT_QPEN_BRUSH )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPen( 1 )->brush() ) ) );
}
/*
* Qt::PenCapStyle capStyle () const
*/
HB_FUNC( QT_QPEN_CAPSTYLE )
{
hb_retni( ( Qt::PenCapStyle ) hbqt_par_QPen( 1 )->capStyle() );
}
/*
* QColor color () const
*/
HB_FUNC( QT_QPEN_COLOR )
{
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QPen( 1 )->color() ) ) );
}
/*
* 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( ( Qt::PenJoinStyle ) hbqt_par_QPen( 1 )->joinStyle() );
}
/*
* qreal miterLimit () const
*/
HB_FUNC( QT_QPEN_MITERLIMIT )
{
hb_retnd( hbqt_par_QPen( 1 )->miterLimit() );
}
/*
* void setBrush ( const QBrush & brush )
*/
HB_FUNC( QT_QPEN_SETBRUSH )
{
hbqt_par_QPen( 1 )->setBrush( *hbqt_par_QBrush( 2 ) );
}
/*
* void setCapStyle ( Qt::PenCapStyle style )
*/
HB_FUNC( QT_QPEN_SETCAPSTYLE )
{
hbqt_par_QPen( 1 )->setCapStyle( ( Qt::PenCapStyle ) hb_parni( 2 ) );
}
/*
* void setColor ( const QColor & color )
*/
HB_FUNC( QT_QPEN_SETCOLOR )
{
hbqt_par_QPen( 1 )->setColor( *hbqt_par_QColor( 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( ( Qt::PenStyle ) 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 */
/*----------------------------------------------------------------------*/

Some files were not shown because too many files have changed in this diff Show More