* contrib/hbqt/generator/hbqtgen.prg
* contrib/hbqt/hbqt.h
* contrib/hbqt/hbqt_destruct.cpp
* contrib/hbqt/qtcore/QBitArray.cpp
* contrib/hbqt/qtcore/QByteArray.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/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/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/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/QErrorMessage.cpp
* contrib/hbqt/qtgui/QFileDialog.cpp
* contrib/hbqt/qtgui/QFileIconProvider.cpp
* contrib/hbqt/qtgui/QFileSystemModel.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/QGridLayout.cpp
* contrib/hbqt/qtgui/QGroupBox.cpp
* contrib/hbqt/qtgui/QHBoxLayout.cpp
* contrib/hbqt/qtgui/QHeaderView.cpp
* contrib/hbqt/qtgui/QIcon.cpp
* contrib/hbqt/qtgui/QImage.cpp
* contrib/hbqt/qtgui/QImageReader.cpp
* contrib/hbqt/qtgui/QImageWriter.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/QKeySequence.cpp
* contrib/hbqt/qtgui/QLabel.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/QMovie.cpp
* contrib/hbqt/qtgui/QPageSetupDialog.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/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/QScrollArea.cpp
* contrib/hbqt/qtgui/QScrollBar.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/QStyledItemDelegate.cpp
* contrib/hbqt/qtgui/QStyleFactory.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/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/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/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/QVBoxLayout.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/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/qtwebkit/QWebHistoryItem.cpp
* contrib/hbqt/qtwebkit/QWebHitTestResult.cpp
* contrib/hbqt/qtwebkit/QWebPage.cpp
* contrib/hbqt/qtwebkit/QWebSecurityOrigin.cpp
* contrib/hbqt/qtwebkit/QWebView.cpp
! Updated to recent GC upgrade plus more classes brought to the GC.
787 lines
18 KiB
C++
787 lines
18 KiB
C++
/*
|
|
* $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 AutoFormatting
|
|
* enum AutoFormattingFlag { AutoNone, AutoBulletList, AutoAll }
|
|
* enum LineWrapMode { NoWrap, WidgetWidth, FixedPixelWidth, FixedColumnWidth }
|
|
*/
|
|
|
|
/*
|
|
* Constructed[ 81/86 [ 94.19% ] ]
|
|
*
|
|
* *** Unconvered Prototypes ***
|
|
* -----------------------------
|
|
*
|
|
* QTextEdit ( QWidget * parent = 0 )
|
|
* QTextEdit ( const QString & text, QWidget * parent = 0 )
|
|
* virtual ~QTextEdit ()
|
|
* QList<ExtraSelection> extraSelections () const
|
|
* void setExtraSelections ( const QList<ExtraSelection> & selections )
|
|
*/
|
|
|
|
#include <QtCore/QPointer>
|
|
|
|
#include <QtGui/QTextEdit>
|
|
|
|
|
|
/*
|
|
|
|
*/
|
|
|
|
QT_G_FUNC( release_QTextEdit )
|
|
{
|
|
#if defined(__debug__)
|
|
hb_snprintf( str, sizeof(str), "release_QTextEdit" ); OutputDebugString( str );
|
|
#endif
|
|
void * ph = ( void * ) Cargo;
|
|
if( ph )
|
|
{
|
|
const QMetaObject * m = ( ( QObject * ) ph )->metaObject();
|
|
if( ( QString ) m->className() != ( QString ) "QObject" )
|
|
{
|
|
delete ( ( QTextEdit * ) ph );
|
|
ph = NULL;
|
|
}
|
|
else
|
|
{
|
|
#if defined(__debug__)
|
|
hb_snprintf( str, sizeof(str), " Object Name Missing: QTextEdit" ); OutputDebugString( str );
|
|
#endif
|
|
}
|
|
}
|
|
}
|
|
|
|
HB_FUNC( QT_QTEXTEDIT )
|
|
{
|
|
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() );
|
|
QPointer< QTextEdit > pObj = NULL;
|
|
|
|
if( hb_pcount() >= 1 && HB_ISCHAR( 1 ) )
|
|
pObj = ( QTextEdit* ) new QTextEdit( hbqt_par_QString( 1 ), hbqt_par_QWidget( 2 ) ) ;
|
|
else
|
|
pObj = ( QTextEdit* ) new QTextEdit( hbqt_par_QWidget( 1 ) ) ;
|
|
|
|
p->ph = pObj;
|
|
p->func = release_QTextEdit;
|
|
|
|
hb_retptrGC( p );
|
|
}
|
|
/*
|
|
* bool acceptRichText () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_ACCEPTRICHTEXT )
|
|
{
|
|
hb_retl( hbqt_par_QTextEdit( 1 )->acceptRichText() );
|
|
}
|
|
|
|
/*
|
|
* Qt::Alignment alignment () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_ALIGNMENT )
|
|
{
|
|
hb_retni( ( Qt::Alignment ) hbqt_par_QTextEdit( 1 )->alignment() );
|
|
}
|
|
|
|
/*
|
|
* QString anchorAt ( const QPoint & pos ) const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_ANCHORAT )
|
|
{
|
|
hb_retc( hbqt_par_QTextEdit( 1 )->anchorAt( *hbqt_par_QPoint( 2 ) ).toAscii().data() );
|
|
}
|
|
|
|
/*
|
|
* AutoFormatting autoFormatting () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_AUTOFORMATTING )
|
|
{
|
|
hb_retni( ( QTextEdit::AutoFormatting ) hbqt_par_QTextEdit( 1 )->autoFormatting() );
|
|
}
|
|
|
|
/*
|
|
* bool canPaste () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_CANPASTE )
|
|
{
|
|
hb_retl( hbqt_par_QTextEdit( 1 )->canPaste() );
|
|
}
|
|
|
|
/*
|
|
* QMenu * createStandardContextMenu ()
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_CREATESTANDARDCONTEXTMENU )
|
|
{
|
|
hb_retptr( ( QMenu* ) hbqt_par_QTextEdit( 1 )->createStandardContextMenu() );
|
|
}
|
|
|
|
/*
|
|
* QMenu * createStandardContextMenu ( const QPoint & position )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_CREATESTANDARDCONTEXTMENU_1 )
|
|
{
|
|
hb_retptr( ( QMenu* ) hbqt_par_QTextEdit( 1 )->createStandardContextMenu( *hbqt_par_QPoint( 2 ) ) );
|
|
}
|
|
|
|
/*
|
|
* QTextCharFormat currentCharFormat () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_CURRENTCHARFORMAT )
|
|
{
|
|
hb_retptrGC( hbqt_ptrTOgcpointer( new QTextCharFormat( hbqt_par_QTextEdit( 1 )->currentCharFormat() ), release_QTextCharFormat ) );
|
|
}
|
|
|
|
/*
|
|
* QFont currentFont () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_CURRENTFONT )
|
|
{
|
|
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QTextEdit( 1 )->currentFont() ), release_QFont ) );
|
|
}
|
|
|
|
/*
|
|
* QTextCursor cursorForPosition ( const QPoint & pos ) const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_CURSORFORPOSITION )
|
|
{
|
|
hb_retptrGC( hbqt_ptrTOgcpointer( new QTextCursor( hbqt_par_QTextEdit( 1 )->cursorForPosition( *hbqt_par_QPoint( 2 ) ) ), release_QTextCursor ) );
|
|
}
|
|
|
|
/*
|
|
* QRect cursorRect ( const QTextCursor & cursor ) const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_CURSORRECT )
|
|
{
|
|
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QTextEdit( 1 )->cursorRect( *hbqt_par_QTextCursor( 2 ) ) ), release_QRect ) );
|
|
}
|
|
|
|
/*
|
|
* QRect cursorRect () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_CURSORRECT_1 )
|
|
{
|
|
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QTextEdit( 1 )->cursorRect() ), release_QRect ) );
|
|
}
|
|
|
|
/*
|
|
* int cursorWidth () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_CURSORWIDTH )
|
|
{
|
|
hb_retni( hbqt_par_QTextEdit( 1 )->cursorWidth() );
|
|
}
|
|
|
|
/*
|
|
* QTextDocument * document () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_DOCUMENT )
|
|
{
|
|
hb_retptr( ( QTextDocument* ) hbqt_par_QTextEdit( 1 )->document() );
|
|
}
|
|
|
|
/*
|
|
* QString documentTitle () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_DOCUMENTTITLE )
|
|
{
|
|
hb_retc( hbqt_par_QTextEdit( 1 )->documentTitle().toAscii().data() );
|
|
}
|
|
|
|
/*
|
|
* void ensureCursorVisible ()
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_ENSURECURSORVISIBLE )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->ensureCursorVisible();
|
|
}
|
|
|
|
/*
|
|
* bool find ( const QString & exp, QTextDocument::FindFlags options = 0 )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_FIND )
|
|
{
|
|
hb_retl( hbqt_par_QTextEdit( 1 )->find( hbqt_par_QString( 2 ), ( QTextDocument::FindFlags ) hb_parni( 3 ) ) );
|
|
}
|
|
|
|
/*
|
|
* QString fontFamily () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_FONTFAMILY )
|
|
{
|
|
hb_retc( hbqt_par_QTextEdit( 1 )->fontFamily().toAscii().data() );
|
|
}
|
|
|
|
/*
|
|
* bool fontItalic () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_FONTITALIC )
|
|
{
|
|
hb_retl( hbqt_par_QTextEdit( 1 )->fontItalic() );
|
|
}
|
|
|
|
/*
|
|
* qreal fontPointSize () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_FONTPOINTSIZE )
|
|
{
|
|
hb_retnd( hbqt_par_QTextEdit( 1 )->fontPointSize() );
|
|
}
|
|
|
|
/*
|
|
* bool fontUnderline () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_FONTUNDERLINE )
|
|
{
|
|
hb_retl( hbqt_par_QTextEdit( 1 )->fontUnderline() );
|
|
}
|
|
|
|
/*
|
|
* int fontWeight () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_FONTWEIGHT )
|
|
{
|
|
hb_retni( hbqt_par_QTextEdit( 1 )->fontWeight() );
|
|
}
|
|
|
|
/*
|
|
* bool isReadOnly () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_ISREADONLY )
|
|
{
|
|
hb_retl( hbqt_par_QTextEdit( 1 )->isReadOnly() );
|
|
}
|
|
|
|
/*
|
|
* bool isUndoRedoEnabled () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_ISUNDOREDOENABLED )
|
|
{
|
|
hb_retl( hbqt_par_QTextEdit( 1 )->isUndoRedoEnabled() );
|
|
}
|
|
|
|
/*
|
|
* int lineWrapColumnOrWidth () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_LINEWRAPCOLUMNORWIDTH )
|
|
{
|
|
hb_retni( hbqt_par_QTextEdit( 1 )->lineWrapColumnOrWidth() );
|
|
}
|
|
|
|
/*
|
|
* LineWrapMode lineWrapMode () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_LINEWRAPMODE )
|
|
{
|
|
hb_retni( ( QTextEdit::LineWrapMode ) hbqt_par_QTextEdit( 1 )->lineWrapMode() );
|
|
}
|
|
|
|
/*
|
|
* virtual QVariant loadResource ( int type, const QUrl & name )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_LOADRESOURCE )
|
|
{
|
|
hb_retptrGC( hbqt_ptrTOgcpointer( new QVariant( hbqt_par_QTextEdit( 1 )->loadResource( hb_parni( 2 ), *hbqt_par_QUrl( 3 ) ) ), release_QVariant ) );
|
|
}
|
|
|
|
/*
|
|
* void mergeCurrentCharFormat ( const QTextCharFormat & modifier )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_MERGECURRENTCHARFORMAT )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->mergeCurrentCharFormat( *hbqt_par_QTextCharFormat( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void moveCursor ( QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode = QTextCursor::MoveAnchor )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_MOVECURSOR )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->moveCursor( ( QTextCursor::MoveOperation ) hb_parni( 2 ), ( HB_ISNUM( 3 ) ? ( QTextCursor::MoveMode ) hb_parni( 3 ) : ( QTextCursor::MoveMode ) QTextCursor::MoveAnchor ) );
|
|
}
|
|
|
|
/*
|
|
* bool overwriteMode () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_OVERWRITEMODE )
|
|
{
|
|
hb_retl( hbqt_par_QTextEdit( 1 )->overwriteMode() );
|
|
}
|
|
|
|
/*
|
|
* void print ( QPrinter * printer ) const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_PRINT )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->print( hbqt_par_QPrinter( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setAcceptRichText ( bool accept )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETACCEPTRICHTEXT )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setAcceptRichText( hb_parl( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setAutoFormatting ( AutoFormatting features )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETAUTOFORMATTING )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setAutoFormatting( ( QTextEdit::AutoFormatting ) hb_parni( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setCurrentCharFormat ( const QTextCharFormat & format )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETCURRENTCHARFORMAT )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setCurrentCharFormat( *hbqt_par_QTextCharFormat( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setCursorWidth ( int width )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETCURSORWIDTH )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setCursorWidth( hb_parni( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setDocument ( QTextDocument * document )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETDOCUMENT )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setDocument( hbqt_par_QTextDocument( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setDocumentTitle ( const QString & title )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETDOCUMENTTITLE )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setDocumentTitle( hbqt_par_QString( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setLineWrapColumnOrWidth ( int w )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETLINEWRAPCOLUMNORWIDTH )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setLineWrapColumnOrWidth( hb_parni( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setLineWrapMode ( LineWrapMode mode )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETLINEWRAPMODE )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setLineWrapMode( ( QTextEdit::LineWrapMode ) hb_parni( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setOverwriteMode ( bool overwrite )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETOVERWRITEMODE )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setOverwriteMode( hb_parl( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setReadOnly ( bool ro )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETREADONLY )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setReadOnly( hb_parl( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setTabChangesFocus ( bool b )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETTABCHANGESFOCUS )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setTabChangesFocus( hb_parl( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setTabStopWidth ( int width )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETTABSTOPWIDTH )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setTabStopWidth( hb_parni( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setTextCursor ( const QTextCursor & cursor )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETTEXTCURSOR )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setTextCursor( *hbqt_par_QTextCursor( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setTextInteractionFlags ( Qt::TextInteractionFlags flags )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETTEXTINTERACTIONFLAGS )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setTextInteractionFlags( ( Qt::TextInteractionFlags ) hb_parni( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setUndoRedoEnabled ( bool enable )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETUNDOREDOENABLED )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setUndoRedoEnabled( hb_parl( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setWordWrapMode ( QTextOption::WrapMode policy )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETWORDWRAPMODE )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setWordWrapMode( ( QTextOption::WrapMode ) hb_parni( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* bool tabChangesFocus () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_TABCHANGESFOCUS )
|
|
{
|
|
hb_retl( hbqt_par_QTextEdit( 1 )->tabChangesFocus() );
|
|
}
|
|
|
|
/*
|
|
* int tabStopWidth () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_TABSTOPWIDTH )
|
|
{
|
|
hb_retni( hbqt_par_QTextEdit( 1 )->tabStopWidth() );
|
|
}
|
|
|
|
/*
|
|
* QColor textBackgroundColor () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_TEXTBACKGROUNDCOLOR )
|
|
{
|
|
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QTextEdit( 1 )->textBackgroundColor() ), release_QColor ) );
|
|
}
|
|
|
|
/*
|
|
* QColor textColor () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_TEXTCOLOR )
|
|
{
|
|
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QTextEdit( 1 )->textColor() ), release_QColor ) );
|
|
}
|
|
|
|
/*
|
|
* QTextCursor textCursor () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_TEXTCURSOR )
|
|
{
|
|
hb_retptrGC( hbqt_ptrTOgcpointer( new QTextCursor( hbqt_par_QTextEdit( 1 )->textCursor() ), release_QTextCursor ) );
|
|
}
|
|
|
|
/*
|
|
* Qt::TextInteractionFlags textInteractionFlags () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_TEXTINTERACTIONFLAGS )
|
|
{
|
|
hb_retni( ( Qt::TextInteractionFlags ) hbqt_par_QTextEdit( 1 )->textInteractionFlags() );
|
|
}
|
|
|
|
/*
|
|
* QString toHtml () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_TOHTML )
|
|
{
|
|
hb_retc( hbqt_par_QTextEdit( 1 )->toHtml().toAscii().data() );
|
|
}
|
|
|
|
/*
|
|
* QString toPlainText () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_TOPLAINTEXT )
|
|
{
|
|
hb_retc( hbqt_par_QTextEdit( 1 )->toPlainText().toAscii().data() );
|
|
}
|
|
|
|
/*
|
|
* QTextOption::WrapMode wordWrapMode () const
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_WORDWRAPMODE )
|
|
{
|
|
hb_retni( ( QTextOption::WrapMode ) hbqt_par_QTextEdit( 1 )->wordWrapMode() );
|
|
}
|
|
|
|
/*
|
|
* void append ( const QString & text )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_APPEND )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->append( hbqt_par_QString( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void clear ()
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_CLEAR )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->clear();
|
|
}
|
|
|
|
/*
|
|
* void copy ()
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_COPY )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->copy();
|
|
}
|
|
|
|
/*
|
|
* void cut ()
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_CUT )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->cut();
|
|
}
|
|
|
|
/*
|
|
* void insertHtml ( const QString & text )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_INSERTHTML )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->insertHtml( hbqt_par_QString( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void insertPlainText ( const QString & text )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_INSERTPLAINTEXT )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->insertPlainText( hbqt_par_QString( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void paste ()
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_PASTE )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->paste();
|
|
}
|
|
|
|
/*
|
|
* void redo ()
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_REDO )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->redo();
|
|
}
|
|
|
|
/*
|
|
* void scrollToAnchor ( const QString & name )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SCROLLTOANCHOR )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->scrollToAnchor( hbqt_par_QString( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void selectAll ()
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SELECTALL )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->selectAll();
|
|
}
|
|
|
|
/*
|
|
* void setAlignment ( Qt::Alignment a )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETALIGNMENT )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setAlignment( ( Qt::Alignment ) hb_parni( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setCurrentFont ( const QFont & f )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETCURRENTFONT )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setCurrentFont( *hbqt_par_QFont( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setFontFamily ( const QString & fontFamily )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETFONTFAMILY )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setFontFamily( hbqt_par_QString( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setFontItalic ( bool italic )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETFONTITALIC )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setFontItalic( hb_parl( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setFontPointSize ( qreal s )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETFONTPOINTSIZE )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setFontPointSize( hb_parnd( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setFontUnderline ( bool underline )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETFONTUNDERLINE )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setFontUnderline( hb_parl( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setFontWeight ( int weight )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETFONTWEIGHT )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setFontWeight( hb_parni( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setHtml ( const QString & text )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETHTML )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setHtml( hbqt_par_QString( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setPlainText ( const QString & text )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETPLAINTEXT )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setPlainText( hbqt_par_QString( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setText ( const QString & text )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETTEXT )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setText( hbqt_par_QString( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setTextBackgroundColor ( const QColor & c )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETTEXTBACKGROUNDCOLOR )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setTextBackgroundColor( *hbqt_par_QColor( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void setTextColor ( const QColor & c )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_SETTEXTCOLOR )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->setTextColor( *hbqt_par_QColor( 2 ) );
|
|
}
|
|
|
|
/*
|
|
* void undo ()
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_UNDO )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->undo();
|
|
}
|
|
|
|
/*
|
|
* void zoomIn ( int range = 1 )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_ZOOMIN )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->zoomIn( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : 1 ) );
|
|
}
|
|
|
|
/*
|
|
* void zoomOut ( int range = 1 )
|
|
*/
|
|
HB_FUNC( QT_QTEXTEDIT_ZOOMOUT )
|
|
{
|
|
hbqt_par_QTextEdit( 1 )->zoomOut( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : 1 ) );
|
|
}
|
|
|
|
|
|
/*----------------------------------------------------------------------*/
|
|
#endif /* #if QT_VERSION >= 0x040500 */
|
|
/*----------------------------------------------------------------------*/
|