* config/global.cf
* Changed so that HB_INSTALL_PREFIX gets set to the
source tree instead of a foreign location. This is
what our make_gnu.bat did so far.
The $(realpath) trick might be helpful to speedup some
self-detection code, f.e. HB_BIN_COMPILE.
* mpkg_gnu.bat
% Minor change to make .zip creation cmd more self-containable.
* contrib/hbqt/generator/hbqtgen.prg
% Minor opt in FWRITE() call.
+ Changed to not generate extra empty lines at EOL.
+ Added placeholder comment at the end of Makefile_gen
to ensure an empty lines always kept after last '\' char
even if the file is edited with an editor stripping
excessive EOLs.
Lorenzo, pls test with the config this caused problem.
* contrib/hbqt/QWebSecurityOrigin.cpp
* contrib/hbqt/QDragEnterEvent.cpp
* contrib/hbqt/QPageSetupDialog.cpp
* contrib/hbqt/TQToolBox.prg
* contrib/hbqt/QTextBoundaryFinder.cpp
* contrib/hbqt/QTextCodec.cpp
* contrib/hbqt/QWindowsXPStyle.cpp
* contrib/hbqt/QGridLayout.cpp
* contrib/hbqt/TQTreeView.prg
* contrib/hbqt/TQTextCharFormat.prg
* contrib/hbqt/TQTextLine.prg
* contrib/hbqt/QConicalGradient.cpp
* contrib/hbqt/QTextLength.cpp
* contrib/hbqt/TQRect.prg
* contrib/hbqt/TQInputEvent.prg
* contrib/hbqt/TQWidgetItem.prg
* contrib/hbqt/QGradient.cpp
* contrib/hbqt/TQTextItem.prg
* contrib/hbqt/TQTimeEdit.prg
* contrib/hbqt/TQDropEvent.prg
* contrib/hbqt/QStandardItemModel.cpp
* contrib/hbqt/TQTextObject.prg
* contrib/hbqt/TQSizeF.prg
* contrib/hbqt/QPicture.cpp
* contrib/hbqt/QAction.cpp
* contrib/hbqt/QPaintEvent.cpp
* contrib/hbqt/TQStyleHintReturn.prg
* contrib/hbqt/QStyledItemDelegate.cpp
* contrib/hbqt/QAbstractListModel.cpp
* contrib/hbqt/QWidget.cpp
* contrib/hbqt/TQProgressBar.prg
* contrib/hbqt/TQFontDatabase.prg
* contrib/hbqt/QFontDialog.cpp
* contrib/hbqt/QToolBox.cpp
* contrib/hbqt/QResource.cpp
* contrib/hbqt/TQLineEdit.prg
* contrib/hbqt/TQHBoxLayout.prg
* contrib/hbqt/TQWebHistory.prg
* contrib/hbqt/QMouseEvent.cpp
* contrib/hbqt/QTextEdit.cpp
* contrib/hbqt/TQToolBar.prg
* contrib/hbqt/TQAbstractItemModel.prg
* contrib/hbqt/TQTreeWidget.prg
* contrib/hbqt/QPointF.cpp
* contrib/hbqt/QFontComboBox.cpp
* contrib/hbqt/QStyle.cpp
* contrib/hbqt/TQSplitter.prg
* contrib/hbqt/TQComboBox.prg
* contrib/hbqt/QStyleOptionHeader.cpp
* contrib/hbqt/QListView.cpp
* contrib/hbqt/QWheelEvent.cpp
* contrib/hbqt/QRadialGradient.cpp
* contrib/hbqt/QLayout.cpp
* contrib/hbqt/QCursor.cpp
* contrib/hbqt/TQProgressDialog.prg
* contrib/hbqt/QLabel.cpp
* contrib/hbqt/TQBoxLayout.prg
* contrib/hbqt/QFocusEvent.cpp
* contrib/hbqt/QStyleHintReturn.cpp
* contrib/hbqt/QStyleOptionToolButton.cpp
* contrib/hbqt/QStylePainter.cpp
* contrib/hbqt/QBrush.cpp
* contrib/hbqt/QWebPluginFactory.cpp
* contrib/hbqt/TQRadioButton.prg
* contrib/hbqt/TQSystemTrayIcon.prg
* contrib/hbqt/TQListWidgetItem.prg
* contrib/hbqt/QLinearGradient.cpp
* contrib/hbqt/QProgressBar.cpp
* contrib/hbqt/TQTextFrame.prg
* contrib/hbqt/TQTextBlock.prg
* contrib/hbqt/QDragLeaveEvent.cpp
* contrib/hbqt/TQStyleOptionViewItem.prg
* contrib/hbqt/QClipboard.cpp
* contrib/hbqt/QStyleOptionTabBarBase.cpp
* contrib/hbqt/QStyleOptionToolBox.cpp
* contrib/hbqt/QStringList.cpp
* contrib/hbqt/QToolBar.cpp
* contrib/hbqt/TQTextBlockFormat.prg
* contrib/hbqt/TQStatusBar.prg
* contrib/hbqt/TQTextFrameFormat.prg
* contrib/hbqt/QFontMetricsF.cpp
* contrib/hbqt/TQTextDecoder.prg
* contrib/hbqt/TQTabWidget.prg
* contrib/hbqt/TQLCDNumber.prg
* contrib/hbqt/TQMainWindow.prg
* contrib/hbqt/QToolButton.cpp
* contrib/hbqt/TQStyleOptionTitleBar.prg
* contrib/hbqt/QWindowsStyle.cpp
* contrib/hbqt/TQDockWidget.prg
* contrib/hbqt/QColor.cpp
* contrib/hbqt/QListWidget.cpp
* contrib/hbqt/QTextLayout.cpp
* contrib/hbqt/TQSound.prg
* contrib/hbqt/QSignalMapper.cpp
* contrib/hbqt/QTextCursor.cpp
* contrib/hbqt/TQPoint.prg
* contrib/hbqt/QTextDocument.cpp
* contrib/hbqt/TQGradient.prg
* contrib/hbqt/TQWebSettings.prg
* contrib/hbqt/QRadioButton.cpp
* contrib/hbqt/TQWizard.prg
* contrib/hbqt/TQAbstractPrintDialog.prg
* contrib/hbqt/TQApplication.prg
* contrib/hbqt/QAbstractButton.cpp
* contrib/hbqt/QStyleOptionViewItem.cpp
* contrib/hbqt/TQCoreApplication.prg
* contrib/hbqt/QTextFrameFormat.cpp
* contrib/hbqt/QTextBlockFormat.cpp
* contrib/hbqt/TQInputDialog.prg
* contrib/hbqt/QTextDecoder.cpp
* contrib/hbqt/QSize.cpp
* contrib/hbqt/TQEvent.prg
* contrib/hbqt/TQKeySequence.prg
* contrib/hbqt/QBitmap.cpp
* contrib/hbqt/QStyleOptionToolBar.cpp
* contrib/hbqt/QCalendarWidget.cpp
* contrib/hbqt/TQPrinter.prg
* contrib/hbqt/QStyleOptionTitleBar.cpp
* contrib/hbqt/TQResource.prg
* contrib/hbqt/QScrollBar.cpp
* contrib/hbqt/QHeaderView.cpp
* contrib/hbqt/TQTextEdit.prg
* contrib/hbqt/QStyleOptionButton.cpp
* contrib/hbqt/QCommandLinkButton.cpp
* contrib/hbqt/TQFontComboBox.prg
* contrib/hbqt/QFocusFrame.cpp
* contrib/hbqt/QSizePolicy.cpp
* contrib/hbqt/QWebSettings.cpp
* contrib/hbqt/QAbstractPrintDialog.cpp
* contrib/hbqt/TQStyleOptionSizeGrip.prg
* contrib/hbqt/TQListView.prg
* contrib/hbqt/QApplication.cpp
* contrib/hbqt/QAbstractSlider.cpp
* contrib/hbqt/TQTextBlockGroup.prg
* contrib/hbqt/QObject.cpp
* contrib/hbqt/QTextFragment.cpp
* contrib/hbqt/TQStyleOptionGroupBox.prg
* contrib/hbqt/QAbstractScrollArea.cpp
* contrib/hbqt/QCoreApplication.cpp
* contrib/hbqt/TQPrintEngine.prg
* contrib/hbqt/TQStylePainter.prg
* contrib/hbqt/TQWebPluginFactory.prg
* contrib/hbqt/QInputDialog.cpp
* contrib/hbqt/QTimer.cpp
* contrib/hbqt/QKeySequence.cpp
* contrib/hbqt/TQFtp.prg
* contrib/hbqt/QPrinter.cpp
* contrib/hbqt/TQMessageBox.prg
* contrib/hbqt/QKeyEvent.cpp
* contrib/hbqt/QTextCharFormat.cpp
* contrib/hbqt/TQUrl.prg
* contrib/hbqt/QStyleOptionSlider.cpp
* contrib/hbqt/TQFontMetricsF.prg
* contrib/hbqt/TQDragMoveEvent.prg
* contrib/hbqt/QInputEvent.cpp
* contrib/hbqt/TQWebView.prg
* contrib/hbqt/QWidgetItem.cpp
* contrib/hbqt/TQCommonStyle.prg
* contrib/hbqt/QMenu.cpp
* contrib/hbqt/TQPushButton.prg
* contrib/hbqt/TQWindowsStyle.prg
* contrib/hbqt/TQEventLoop.prg
* contrib/hbqt/QStyleOptionSizeGrip.cpp
* contrib/hbqt/TQDoubleSpinBox.prg
* contrib/hbqt/TQWebHistoryItem.prg
* contrib/hbqt/QTextObject.cpp
* contrib/hbqt/TQSignalMapper.prg
* contrib/hbqt/TQTableView.prg
* contrib/hbqt/TQTreeWidgetItem.prg
* contrib/hbqt/TQTextDocument.prg
* contrib/hbqt/QStyleOptionGroupBox.cpp
* contrib/hbqt/TQButtonGroup.prg
* contrib/hbqt/QFontInfo.cpp
* contrib/hbqt/QImage.cpp
* contrib/hbqt/QPrintEngine.cpp
* contrib/hbqt/TQFrame.prg
* contrib/hbqt/QLine.cpp
* contrib/hbqt/TQTextFormat.prg
* contrib/hbqt/QIcon.cpp
* contrib/hbqt/TQColorDialog.prg
* contrib/hbqt/TQStyleOptionProgressBar.prg
* contrib/hbqt/QHBoxLayout.cpp
* contrib/hbqt/QWebHistory.cpp
* contrib/hbqt/QUrl.cpp
* contrib/hbqt/TQStyleHintReturnVariant.prg
* contrib/hbqt/QRectF.cpp
* contrib/hbqt/QTreeWidget.cpp
* contrib/hbqt/TQSize.prg
* contrib/hbqt/TQWebSecurityOrigin.prg
* contrib/hbqt/TQProcess.prg
* contrib/hbqt/QWebView.cpp
* contrib/hbqt/QCommonStyle.cpp
* contrib/hbqt/TQStyleOptionTab.prg
* contrib/hbqt/TQTextDocumentWriter.prg
* contrib/hbqt/TQTextCodec.prg
* contrib/hbqt/TQStringListModel.prg
* contrib/hbqt/QAbstractItemView.cpp
* contrib/hbqt/QWebHitTestResult.cpp
* contrib/hbqt/TQTextBrowser.prg
* contrib/hbqt/QProgressDialog.cpp
* contrib/hbqt/TQTableWidget.prg
* contrib/hbqt/TQTabBar.prg
* contrib/hbqt/QStyleFactory.cpp
* contrib/hbqt/QButtonGroup.cpp
* contrib/hbqt/TQFileDialog.prg
* contrib/hbqt/TQDialog.prg
* contrib/hbqt/TQTextStream.prg
* contrib/hbqt/TQStandardItemModel.prg
* contrib/hbqt/TQFormLayout.prg
* contrib/hbqt/QSystemTrayIcon.cpp
* contrib/hbqt/QStyleOptionDockWidget.cpp
* contrib/hbqt/QListWidgetItem.cpp
* contrib/hbqt/QColorDialog.cpp
* contrib/hbqt/QStyleOptionTabWidgetFrame.cpp
* contrib/hbqt/TQFileSystemModel.prg
* contrib/hbqt/TQAbstractSpinBox.prg
* contrib/hbqt/TQTextFragment.prg
* contrib/hbqt/QDateTimeEdit.cpp
* contrib/hbqt/TQVBoxLayout.prg
* contrib/hbqt/QStyleOptionFocusRect.cpp
* contrib/hbqt/QMoveEvent.cpp
* contrib/hbqt/TQImageWriter.prg
* contrib/hbqt/TQAbstractListModel.prg
* contrib/hbqt/QMainWindow.cpp
* contrib/hbqt/QDesktopWidget.cpp
* contrib/hbqt/QProcess.cpp
* contrib/hbqt/QWidgetAction.cpp
* contrib/hbqt/TQModelIndex.prg
* contrib/hbqt/TQMenuBar.prg
* contrib/hbqt/QStringListModel.cpp
* contrib/hbqt/TQKeyEvent.prg
* contrib/hbqt/QDockWidget.cpp
* contrib/hbqt/TQPaintDevice.prg
* contrib/hbqt/TQStyleOptionMenuItem.prg
* contrib/hbqt/TQFontMetrics.prg
* contrib/hbqt/QTextBrowser.cpp
* contrib/hbqt/TQStyle.prg
* contrib/hbqt/QTableWidget.cpp
* contrib/hbqt/TQStyleOptionHeader.prg
* contrib/hbqt/QErrorMessage.cpp
* contrib/hbqt/TQMenu.prg
* contrib/hbqt/QWizard.cpp
* contrib/hbqt/QFileSystemModel.cpp
* contrib/hbqt/TQPrintDialog.prg
* contrib/hbqt/QAbstractSpinBox.cpp
* contrib/hbqt/TQPrintPreviewDialog.prg
* contrib/hbqt/TQLabel.prg
* contrib/hbqt/QDial.cpp
* contrib/hbqt/TQWebHistoryInterface.prg
* contrib/hbqt/TQStyleOptionComboBox.prg
* contrib/hbqt/TQFontInfo.prg
* contrib/hbqt/TQSlider.prg
* contrib/hbqt/TQBrush.prg
* contrib/hbqt/TQStyleOptionToolButton.prg
* contrib/hbqt/QImageWriter.cpp
* contrib/hbqt/TQScrollArea.prg
* contrib/hbqt/TQLine.prg
* contrib/hbqt/TQIcon.prg
* contrib/hbqt/TQLayoutItem.prg
* contrib/hbqt/TQAbstractTableModel.prg
* contrib/hbqt/QIODevice.cpp
* contrib/hbqt/TQPixmap.prg
* contrib/hbqt/QMenuBar.cpp
* contrib/hbqt/TQClipboard.prg
* contrib/hbqt/TQTextImageFormat.prg
* contrib/hbqt/TQStyleOptionTabBarBase.prg
* contrib/hbqt/QPaintDevice.cpp
* contrib/hbqt/QStyleOptionMenuItem.cpp
* contrib/hbqt/QFontMetrics.cpp
* contrib/hbqt/TQImageReader.prg
* contrib/hbqt/Makefile_gen
* contrib/hbqt/QDropEvent.cpp
* contrib/hbqt/TQAbstractItemView.prg
* contrib/hbqt/TQColor.prg
* contrib/hbqt/TQDir.prg
* contrib/hbqt/TQHttp.prg
* contrib/hbqt/TQStyleOptionComplex.prg
* contrib/hbqt/TQWebHitTestResult.prg
* contrib/hbqt/QPrintDialog.cpp
* contrib/hbqt/QTextBlockGroup.cpp
* contrib/hbqt/TQRegion.prg
* contrib/hbqt/QStandardItem.cpp
* contrib/hbqt/QLatin1String.cpp
* contrib/hbqt/QSizeF.cpp
* contrib/hbqt/TQLatin1Char.prg
* contrib/hbqt/QWebHistoryInterface.cpp
* contrib/hbqt/QStyleOptionComboBox.cpp
* contrib/hbqt/TQStyleFactory.prg
* contrib/hbqt/TQStyleOptionSpinBox.prg
* contrib/hbqt/TQPalette.prg
* contrib/hbqt/QSplashScreen.cpp
* contrib/hbqt/TQDateTimeEdit.prg
* contrib/hbqt/TQPainter.prg
* contrib/hbqt/QSizeGrip.cpp
* contrib/hbqt/QMessageBox.cpp
* contrib/hbqt/TQResizeEvent.prg
* contrib/hbqt/QTextImageFormat.cpp
* contrib/hbqt/TQStyleOptionFocusRect.prg
* contrib/hbqt/QAbstractItemModel.cpp
* contrib/hbqt/QGroupBox.cpp
* contrib/hbqt/QImageReader.cpp
* contrib/hbqt/TQDragEnterEvent.prg
* contrib/hbqt/QTextDocumentFragment.cpp
* contrib/hbqt/TQTextBoundaryFinder.prg
* contrib/hbqt/QPushButton.cpp
* contrib/hbqt/TQWidgetAction.prg
* contrib/hbqt/TQScrollBar.prg
* contrib/hbqt/TQGridLayout.prg
* contrib/hbqt/TQWindowsXPStyle.prg
* contrib/hbqt/QWebHistoryItem.cpp
* contrib/hbqt/QDir.cpp
* contrib/hbqt/TQStyleOptionButton.prg
* contrib/hbqt/TQTextLength.prg
* contrib/hbqt/QTreeWidgetItem.cpp
* contrib/hbqt/TQCommandLinkButton.prg
* contrib/hbqt/QBoxLayout.cpp
* contrib/hbqt/TQErrorMessage.prg
* contrib/hbqt/QDateTime.cpp
* contrib/hbqt/QTextFormat.cpp
* contrib/hbqt/QPalette.cpp
* contrib/hbqt/QTextBlock.cpp
* contrib/hbqt/QTextFrame.cpp
* contrib/hbqt/QPainter.cpp
* contrib/hbqt/QResizeEvent.cpp
* contrib/hbqt/TQDial.prg
* contrib/hbqt/QStyleOptionProgressBar.cpp
* contrib/hbqt/TQTableWidgetItem.prg
* contrib/hbqt/TQAction.prg
* contrib/hbqt/TQPaintEvent.prg
* contrib/hbqt/QStyleHintReturnVariant.cpp
* contrib/hbqt/QStatusBar.cpp
* contrib/hbqt/TQStyledItemDelegate.prg
* contrib/hbqt/TQTimer.prg
* contrib/hbqt/QTabWidget.cpp
* contrib/hbqt/QTextInlineObject.cpp
* contrib/hbqt/QLCDNumber.cpp
* contrib/hbqt/QList.cpp
* contrib/hbqt/TQWidget.prg
* contrib/hbqt/QStyleOptionTab.cpp
* contrib/hbqt/TQFontDialog.prg
* contrib/hbqt/QTextDocumentWriter.cpp
* contrib/hbqt/TQIODevice.prg
* contrib/hbqt/TQStyleOption.prg
* contrib/hbqt/QDateEdit.cpp
* contrib/hbqt/TQMouseEvent.prg
* contrib/hbqt/QCheckBox.cpp
* contrib/hbqt/TQStyleOptionSlider.prg
* contrib/hbqt/QSound.cpp
* contrib/hbqt/QWebFrame.cpp
* contrib/hbqt/QPoint.cpp
* contrib/hbqt/TQPointF.prg
* contrib/hbqt/QTabBar.cpp
* contrib/hbqt/QDirModel.cpp
* contrib/hbqt/QFileDialog.cpp
* contrib/hbqt/QDialog.cpp
* contrib/hbqt/QTextStream.cpp
* contrib/hbqt/TQWheelEvent.prg
* contrib/hbqt/QFormLayout.cpp
* contrib/hbqt/QStyleOptionFrame.cpp
* contrib/hbqt/TQWebPage.prg
* contrib/hbqt/TQRadialGradient.prg
* contrib/hbqt/QFont.cpp
* contrib/hbqt/TQCursor.prg
* contrib/hbqt/TQLayout.prg
* contrib/hbqt/TQLatin1String.prg
* contrib/hbqt/TQStandardItem.prg
* contrib/hbqt/QTableWidgetItem.cpp
* contrib/hbqt/TQFocusEvent.prg
* contrib/hbqt/TQImage.prg
* contrib/hbqt/TQSpinBox.prg
* contrib/hbqt/QVBoxLayout.cpp
* contrib/hbqt/QEvent.cpp
* contrib/hbqt/TQLinearGradient.prg
* contrib/hbqt/TQSplashScreen.prg
* contrib/hbqt/TQDragLeaveEvent.prg
* contrib/hbqt/TQSizeGrip.prg
* contrib/hbqt/QModelIndex.cpp
* contrib/hbqt/QStyleOption.cpp
* contrib/hbqt/TQStyleHintReturnMask.prg
* contrib/hbqt/TQStyleOptionToolBox.prg
* contrib/hbqt/QTreeView.cpp
* contrib/hbqt/TQStringList.prg
* contrib/hbqt/QTextLine.cpp
* contrib/hbqt/TQRectF.prg
* contrib/hbqt/QRect.cpp
* contrib/hbqt/TQGroupBox.prg
* contrib/hbqt/TQTextDocumentFragment.prg
* contrib/hbqt/TQToolButton.prg
* contrib/hbqt/QTextItem.cpp
* contrib/hbqt/QTimeEdit.cpp
* contrib/hbqt/TQListWidget.prg
* contrib/hbqt/QWebPage.cpp
* contrib/hbqt/TQTextLayout.prg
* contrib/hbqt/TQTextCursor.prg
* contrib/hbqt/TQPen.prg
* contrib/hbqt/QPrintPreviewDialog.cpp
* contrib/hbqt/TQTextEncoder.prg
* contrib/hbqt/QSlider.cpp
* contrib/hbqt/QSpinBox.cpp
* contrib/hbqt/TQDateTime.prg
* contrib/hbqt/QScrollArea.cpp
* contrib/hbqt/TQStyleOptionDockWidget.prg
* contrib/hbqt/TQAbstractButton.prg
* contrib/hbqt/TQStyleOptionTabWidgetFrame.prg
* contrib/hbqt/QFontDatabase.cpp
* contrib/hbqt/QAbstractTableModel.cpp
* contrib/hbqt/QLayoutItem.cpp
* contrib/hbqt/QLineEdit.cpp
* contrib/hbqt/TQVariant.prg
* contrib/hbqt/QPixmap.cpp
* contrib/hbqt/QStyleHintReturnMask.cpp
* contrib/hbqt/TQMoveEvent.prg
* contrib/hbqt/TQTextInlineObject.prg
* contrib/hbqt/TQList.prg
* contrib/hbqt/QDragMoveEvent.cpp
* contrib/hbqt/TQStyleOptionToolBar.prg
* contrib/hbqt/TQBitmap.prg
* contrib/hbqt/QSplitter.cpp
* contrib/hbqt/TQCalendarWidget.prg
* contrib/hbqt/TQDesktopWidget.prg
* contrib/hbqt/TQPageSetupDialog.prg
* contrib/hbqt/QComboBox.cpp
* contrib/hbqt/QEventLoop.cpp
* contrib/hbqt/QDoubleSpinBox.cpp
* contrib/hbqt/TQDateEdit.prg
* contrib/hbqt/TQHeaderView.prg
* contrib/hbqt/TQCheckBox.prg
* contrib/hbqt/TQConicalGradient.prg
* contrib/hbqt/QStyleOptionComplex.cpp
* contrib/hbqt/QTableView.cpp
* contrib/hbqt/TQWebFrame.prg
* contrib/hbqt/QPen.cpp
* contrib/hbqt/QRegion.cpp
* contrib/hbqt/QTextEncoder.cpp
* contrib/hbqt/TQFocusFrame.prg
* contrib/hbqt/TQSizePolicy.prg
* contrib/hbqt/QLatin1Char.cpp
* contrib/hbqt/TQDirModel.prg
* contrib/hbqt/QFrame.cpp
* contrib/hbqt/QStyleOptionSpinBox.cpp
* contrib/hbqt/TQStyleOptionFrame.prg
* contrib/hbqt/TQFont.prg
* contrib/hbqt/TQAbstractSlider.prg
* contrib/hbqt/TQObject.prg
* contrib/hbqt/QVariant.cpp
* contrib/hbqt/TQAbstractScrollArea.prg
* contrib/hbqt/TQPicture.prg
* Regenerated sources after generator change.
348 lines
9.4 KiB
C++
348 lines
9.4 KiB
C++
/*
|
|
* $Id$
|
|
*/
|
|
|
|
/*
|
|
* 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 <QtGui/QFileSystemModel>
|
|
#include <QtCore/QDateTime>
|
|
|
|
/*
|
|
* QFileSystemModel ( QObject * parent = 0 )
|
|
* ~QFileSystemModel ()
|
|
*/
|
|
HB_FUNC( QT_QFILESYSTEMMODEL )
|
|
{
|
|
hb_retptr( ( QFileSystemModel * ) new QFileSystemModel() );
|
|
}
|
|
|
|
/*
|
|
* DESTRUCTOR
|
|
*/
|
|
HB_FUNC( QT_QFILESYSTEMMODEL_DESTROY )
|
|
{
|
|
hbqt_par_QFileSystemModel( 1 )->~QFileSystemModel();
|
|
}
|
|
|
|
/*
|
|
* 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_retptr( new QIcon( hbqt_par_QFileSystemModel( 1 )->fileIcon( *hbqt_par_QModelIndex( 2 ) ) ) );
|
|
}
|
|
|
|
/*
|
|
* QFileInfo fileInfo ( const QModelIndex & index ) const
|
|
*/
|
|
HB_FUNC( QT_QFILESYSTEMMODEL_FILEINFO )
|
|
{
|
|
hb_retptr( 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 ) ).toLatin1().data() );
|
|
}
|
|
|
|
/*
|
|
* QString filePath ( const QModelIndex & index ) const
|
|
*/
|
|
HB_FUNC( QT_QFILESYSTEMMODEL_FILEPATH )
|
|
{
|
|
hb_retc( hbqt_par_QFileSystemModel( 1 )->filePath( *hbqt_par_QModelIndex( 2 ) ).toLatin1().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_retptr( 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_retptr( 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_retptr( new QStringList( hbqt_par_QFileSystemModel( 1 )->mimeTypes() ) );
|
|
}
|
|
|
|
/*
|
|
* QModelIndex mkdir ( const QModelIndex & parent, const QString & name )
|
|
*/
|
|
HB_FUNC( QT_QFILESYSTEMMODEL_MKDIR )
|
|
{
|
|
hb_retptr( 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_retptr( 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_retptr( 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_retptr( new QDir( hbqt_par_QFileSystemModel( 1 )->rootDirectory() ) );
|
|
}
|
|
|
|
/*
|
|
* QString rootPath () const
|
|
*/
|
|
HB_FUNC( QT_QFILESYSTEMMODEL_ROOTPATH )
|
|
{
|
|
hb_retc( hbqt_par_QFileSystemModel( 1 )->rootPath().toLatin1().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_retptr( 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 ) ).toLatin1().data() );
|
|
}
|
|
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
#endif /* #if QT_VERSION >= 0x040500 */
|
|
/*----------------------------------------------------------------------*/
|