* contrib/hbqt/qtgui/qth/HBQSyntaxHighlighter.qth
* contrib/hbqt/qtgui/qth/QAction.qth
* contrib/hbqt/qtgui/qth/QBoxLayout.qth
* contrib/hbqt/qtgui/qth/QFormLayout.qth
* contrib/hbqt/qtgui/qth/QFrame.qth
* contrib/hbqt/qtgui/qth/QGridLayout.qth
* contrib/hbqt/qtgui/qth/QLineEdit.qth
* contrib/hbqt/qtgui/qth/QPushButton.qth
* contrib/hbqt/qtgui/qth/QScrollArea.qth
* contrib/hbqt/qtgui/qth/QSizeGrip.qth
* contrib/hbqt/qtgui/qth/QSlider.qth
* contrib/hbqt/qtgui/qth/QSound.qth
* contrib/hbqt/qtgui/qth/QSpinBox.qth
* contrib/hbqt/qtgui/qth/QSplashScreen.qth
* contrib/hbqt/qtgui/qth/QSplitter.qth
* contrib/hbqt/qtgui/qth/QStackedWidget.qth
* contrib/hbqt/qtgui/qth/QStandardItem.qth
* contrib/hbqt/qtgui/qth/QStandardItemModel.qth
* contrib/hbqt/qtgui/qth/QStringListModel.qth
* contrib/hbqt/qtgui/qth/QSystemTrayIcon.qth
* contrib/hbqt/qtgui/qth/QTabBar.qth
* contrib/hbqt/qtgui/qth/QTableWidget.qth
* contrib/hbqt/qtgui/qth/QTabWidget.qth
* contrib/hbqt/qtgui/qth/QTextBrowser.qth
* contrib/hbqt/qtgui/qth/QTextDocument.qth
* contrib/hbqt/qtgui/qth/QTextEdit.qth
* contrib/hbqt/qtgui/qth/QTextFormat.qth
* contrib/hbqt/qtgui/qth/QTimeEdit.qth
* contrib/hbqt/qtgui/qth/QToolBox.qth
* contrib/hbqt/qtgui/qth/QToolButton.qth
* contrib/hbqt/qtgui/qth/QTreeView.qth
* contrib/hbqt/qtgui/qth/QTreeWidget.qth
* contrib/hbqt/qtgui/qth/QWidgetAction.qth
* contrib/hbqt/qtgui/qth/QWidgetItem.qth
* contrib/hbqt/qtgui/qth/QWizardPage.qth
! Fixed: constructors. Now hbIDE shows up with __HBQT_REVAMP__.
148 lines
4.6 KiB
Plaintext
148 lines
4.6 KiB
Plaintext
/*
|
|
* $Id$
|
|
*/
|
|
|
|
/*
|
|
* Harbour Qt wrapper generator control file
|
|
*
|
|
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
|
|
* www - http://www.harbour-project.org
|
|
*
|
|
* See COPYING for licensing terms.
|
|
*/
|
|
|
|
<CLASS>
|
|
Inherit = QObject
|
|
Type = Core
|
|
New =
|
|
</CLASS>
|
|
|
|
<CODE>
|
|
#include <QtGui/QTextDocument>
|
|
#include <QtGui/QTextBlock>
|
|
#include <QtGui/QTextCursor>
|
|
|
|
|
|
/*
|
|
* QTextDocument ( QObject * parent = 0 )
|
|
* QTextDocument ( const QString & text, QObject * parent = 0 )
|
|
* ~QTextDocument ()
|
|
*/
|
|
HB_FUNC( QT_QTEXTDOCUMENT )
|
|
{
|
|
if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QOBJECT" ) )
|
|
{
|
|
__HB_RETPTRGC__( new QTextDocument( hbqt_par_QObject( 1 ) ) );
|
|
}
|
|
else if( hb_pcount() == 1 && HB_ISCHAR( 1 ) )
|
|
{
|
|
void * pText01 = NULL;
|
|
__HB_RETPTRGC__( new QTextDocument( hb_parstr_utf8( 1, &pText01, NULL ) ) );
|
|
hb_strfree( pText01 );
|
|
}
|
|
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && hbqt_par_isDerivedFrom( 2, "QOBJECT" ) )
|
|
{
|
|
void * pText01 = NULL;
|
|
__HB_RETPTRGC__( new QTextDocument( hb_parstr_utf8( 1, &pText01, NULL ), hbqt_par_QObject( 2 ) ) );
|
|
hb_strfree( pText01 );
|
|
}
|
|
else
|
|
{
|
|
__HB_RETPTRGC__( new QTextDocument() );
|
|
}
|
|
}
|
|
</CODE>
|
|
|
|
<ENUMS>
|
|
enum FindFlag { FindBackward, FindCaseSensitively, FindWholeWords }
|
|
flags FindFlags
|
|
enum MetaInformation { DocumentTitle, DocumentUrl }
|
|
enum ResourceType { HtmlResource, ImageResource, StyleSheetResource, UserResource }
|
|
</ENUMS>
|
|
|
|
<PROTOS>
|
|
void addResource ( int type, const QUrl & name, const QVariant & resource )
|
|
void adjustSize ()
|
|
QVector<QTextFormat> allFormats () const
|
|
QTextBlock begin () const
|
|
int blockCount () const
|
|
QChar characterAt ( int pos ) const
|
|
int characterCount () const
|
|
virtual void clear ()
|
|
QTextDocument * clone ( QObject * parent = 0 ) const
|
|
QFont defaultFont () const
|
|
QString defaultStyleSheet () const
|
|
QTextOption defaultTextOption () const
|
|
QAbstractTextDocumentLayout * documentLayout () const
|
|
qreal documentMargin () const
|
|
void drawContents ( QPainter * p, const QRectF & rect = QRectF() )
|
|
QTextBlock end () const
|
|
QTextCursor find ( const QString & subString, const QTextCursor & cursor, FindFlags options = 0 ) const
|
|
QTextCursor find ( const QRegExp & expr, const QTextCursor & cursor, FindFlags options = 0 ) const
|
|
QTextCursor find ( const QString & subString, int position = 0, FindFlags options = 0 ) const
|
|
QTextCursor find ( const QRegExp & expr, int position = 0, FindFlags options = 0 ) const
|
|
QTextBlock findBlock ( int pos ) const
|
|
QTextBlock findBlockByLineNumber ( int lineNumber ) const
|
|
QTextBlock findBlockByNumber ( int blockNumber ) const
|
|
QTextBlock firstBlock () const
|
|
qreal idealWidth () const
|
|
qreal indentWidth () const
|
|
bool isEmpty () const
|
|
bool isModified () const
|
|
bool isRedoAvailable () const
|
|
bool isUndoAvailable () const
|
|
bool isUndoRedoEnabled () const
|
|
QTextBlock lastBlock () const
|
|
int lineCount () const
|
|
void markContentsDirty ( int position, int length )
|
|
int maximumBlockCount () const
|
|
QString metaInformation ( MetaInformation info ) const
|
|
QTextObject * object ( int objectIndex ) const
|
|
QTextObject * objectForFormat ( const QTextFormat & f ) const
|
|
int pageCount () const
|
|
QSizeF pageSize () const
|
|
void print ( QPrinter * printer ) const
|
|
void redo ( QTextCursor * cursor )
|
|
QVariant resource ( int type, const QUrl & name ) const
|
|
int revision () const
|
|
QTextFrame * rootFrame () const
|
|
void setDefaultFont ( const QFont & font )
|
|
void setDefaultStyleSheet ( const QString & sheet )
|
|
void setDefaultTextOption ( const QTextOption & option )
|
|
void setDocumentLayout ( QAbstractTextDocumentLayout * layout )
|
|
void setDocumentMargin ( qreal margin )
|
|
void setHtml ( const QString & html )
|
|
void setIndentWidth ( qreal width )
|
|
void setMaximumBlockCount ( int maximum )
|
|
void setMetaInformation ( MetaInformation info, const QString & string )
|
|
void setPageSize ( const QSizeF & size )
|
|
void setPlainText ( const QString & text )
|
|
void setTextWidth ( qreal width )
|
|
void setUndoRedoEnabled ( bool enable )
|
|
void setUseDesignMetrics ( bool b )
|
|
QSizeF size () const
|
|
qreal textWidth () const
|
|
QString toHtml ( const QByteArray & encoding = QByteArray() ) const
|
|
QString toPlainText () const
|
|
void undo ( QTextCursor * cursor )
|
|
bool useDesignMetrics () const
|
|
</PROTOS>
|
|
|
|
<SLOTS>
|
|
void redo ()
|
|
void setModified ( bool m = true )
|
|
void undo ()
|
|
</SLOTS>
|
|
|
|
<SIGNALS>
|
|
void blockCountChanged ( int newBlockCount )
|
|
void contentsChange ( int position, int charsRemoved, int charsAdded )
|
|
void contentsChanged ()
|
|
void cursorPositionChanged ( const QTextCursor & cursor )
|
|
void documentLayoutChanged ()
|
|
void modificationChanged ( bool changed )
|
|
void redoAvailable ( bool available )
|
|
void undoAvailable ( bool available )
|
|
void undoCommandAdded ()
|
|
</SIGNALS>
|