diff options
Diffstat (limited to 'doc/html/richtext-example.html')
-rw-r--r-- | doc/html/richtext-example.html | 92 |
1 files changed, 46 insertions, 46 deletions
diff --git a/doc/html/richtext-example.html b/doc/html/richtext-example.html index 8276b17f4..2540895f9 100644 --- a/doc/html/richtext-example.html +++ b/doc/html/richtext-example.html @@ -51,21 +51,21 @@ Unix "fortune" are displayed nicely formatted. #ifndef RICHTEXT_H #define RICHTEXT_H -#include <<a href="qvbox-h.html">qvbox.h</a>> +#include <<a href="qvbox-h.html">ntqvbox.h</a>> class TQTextView; class TQPushButton; -class MyRichText : public <a href="qvbox.html">TQVBox</a> +class MyRichText : public <a href="ntqvbox.html">TQVBox</a> { <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> public: - MyRichText( <a href="qwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ); + MyRichText( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ); protected: - <a href="qtextview.html">TQTextView</a> *view; - <a href="qpushbutton.html">TQPushButton</a> *bClose, *bNext, *bPrev; + <a href="ntqtextview.html">TQTextView</a> *view; + <a href="ntqpushbutton.html">TQPushButton</a> *bClose, *bNext, *bPrev; int num; protected slots: @@ -91,12 +91,12 @@ protected slots: #include "richtext.h" -#include <<a href="qhbox-h.html">qhbox.h</a>> -#include <<a href="qhbox-h.html">qhbox.h</a>> -#include <<a href="qpushbutton-h.html">qpushbutton.h</a>> -#include <<a href="qtextview-h.html">qtextview.h</a>> -#include <<a href="qbrush-h.html">qbrush.h</a>> -#include <<a href="qapplication-h.html">qapplication.h</a>> +#include <<a href="qhbox-h.html">ntqhbox.h</a>> +#include <<a href="qhbox-h.html">ntqhbox.h</a>> +#include <<a href="qpushbutton-h.html">ntqpushbutton.h</a>> +#include <<a href="qtextview-h.html">ntqtextview.h</a>> +#include <<a href="qbrush-h.html">ntqbrush.h</a>> +#include <<a href="qapplication-h.html">ntqapplication.h</a>> static const char* sayings[] = { "<b>Saying 1:</b><br>" @@ -156,35 +156,35 @@ static const char* sayings[] = { }; -<a name="f255"></a>MyRichText::MyRichText( <a href="qwidget.html">TQWidget</a> *parent, const char *name ) - : <a href="qvbox.html">TQVBox</a>( parent, name ) +<a name="f255"></a>MyRichText::MyRichText( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name ) + : <a href="ntqvbox.html">TQVBox</a>( parent, name ) { - <a href="qframe.html#setMargin">setMargin</a>( 5 ); - - view = new <a href="qtextview.html">TQTextView</a>( this ); -<a name="x465"></a> view-><a href="qtextedit.html#setText">setText</a>( "This is a <b>Test</b> with <i>italic</i> <u>stuff</u>" ); - <a href="qbrush.html">TQBrush</a> paper; -<a name="x461"></a> paper.<a href="qbrush.html#setPixmap">setPixmap</a>( TQPixmap( "../richtext/marble.png" ) ); -<a name="x460"></a> if ( paper.<a href="qbrush.html#pixmap">pixmap</a>() != 0 ) -<a name="x464"></a> view-><a href="qtextedit.html#setPaper">setPaper</a>( paper ); + <a href="ntqframe.html#setMargin">setMargin</a>( 5 ); + + view = new <a href="ntqtextview.html">TQTextView</a>( this ); +<a name="x465"></a> view-><a href="ntqtextedit.html#setText">setText</a>( "This is a <b>Test</b> with <i>italic</i> <u>stuff</u>" ); + <a href="ntqbrush.html">TQBrush</a> paper; +<a name="x461"></a> paper.<a href="ntqbrush.html#setPixmap">setPixmap</a>( TQPixmap( "../richtext/marble.png" ) ); +<a name="x460"></a> if ( paper.<a href="ntqbrush.html#pixmap">pixmap</a>() != 0 ) +<a name="x464"></a> view-><a href="ntqtextedit.html#setPaper">setPaper</a>( paper ); else - view-><a href="qtextedit.html#setPaper">setPaper</a>( white ); + view-><a href="ntqtextedit.html#setPaper">setPaper</a>( white ); - view-><a href="qtextedit.html#setText">setText</a>( sayings[0] ); -<a name="x467"></a> view-><a href="qwidget.html#setMinimumSize">setMinimumSize</a>( 450, 250 ); + view-><a href="ntqtextedit.html#setText">setText</a>( sayings[0] ); +<a name="x467"></a> view-><a href="ntqwidget.html#setMinimumSize">setMinimumSize</a>( 450, 250 ); - <a href="qhbox.html">TQHBox</a> *buttons = new <a href="qhbox.html">TQHBox</a>( this ); - buttons-><a href="qframe.html#setMargin">setMargin</a>( 5 ); + <a href="ntqhbox.html">TQHBox</a> *buttons = new <a href="ntqhbox.html">TQHBox</a>( this ); + buttons-><a href="ntqframe.html#setMargin">setMargin</a>( 5 ); - bClose = new <a href="qpushbutton.html">TQPushButton</a>( "&Close", buttons ); - bPrev = new <a href="qpushbutton.html">TQPushButton</a>( "<< &Prev", buttons ); - bNext = new <a href="qpushbutton.html">TQPushButton</a>( "&Next >>", buttons ); + bClose = new <a href="ntqpushbutton.html">TQPushButton</a>( "&Close", buttons ); + bPrev = new <a href="ntqpushbutton.html">TQPushButton</a>( "<< &Prev", buttons ); + bNext = new <a href="ntqpushbutton.html">TQPushButton</a>( "&Next >>", buttons ); -<a name="x466"></a> bPrev-><a href="qwidget.html#setEnabled">setEnabled</a>( FALSE ); +<a name="x466"></a> bPrev-><a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE ); -<a name="x462"></a> <a href="qobject.html#connect">connect</a>( bClose, SIGNAL( <a href="qbutton.html#clicked">clicked</a>() ), qApp, SLOT( <a href="qapplication.html#quit">quit</a>() ) ); - <a href="qobject.html#connect">connect</a>( bPrev, SIGNAL( <a href="qbutton.html#clicked">clicked</a>() ), this, SLOT( prev() ) ); - <a href="qobject.html#connect">connect</a>( bNext, SIGNAL( <a href="qbutton.html#clicked">clicked</a>() ), this, SLOT( next() ) ); +<a name="x462"></a> <a href="ntqobject.html#connect">connect</a>( bClose, SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), qApp, SLOT( <a href="ntqapplication.html#quit">quit</a>() ) ); + <a href="ntqobject.html#connect">connect</a>( bPrev, SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, SLOT( prev() ) ); + <a href="ntqobject.html#connect">connect</a>( bNext, SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, SLOT( next() ) ); num = 0; } @@ -196,12 +196,12 @@ void <a name="f256"></a>MyRichText::prev() num--; - view-><a href="qtextedit.html#setText">setText</a>( sayings[num] ); + view-><a href="ntqtextedit.html#setText">setText</a>( sayings[num] ); if ( num == 0 ) - bPrev-><a href="qwidget.html#setEnabled">setEnabled</a>( FALSE ); + bPrev-><a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE ); - bNext-><a href="qwidget.html#setEnabled">setEnabled</a>( TRUE ); + bNext-><a href="ntqwidget.html#setEnabled">setEnabled</a>( TRUE ); } void <a name="f257"></a>MyRichText::next() @@ -209,12 +209,12 @@ void <a name="f257"></a>MyRichText::next() if ( !sayings[++num] ) return; - view-><a href="qtextedit.html#setText">setText</a>( sayings[num] ); + view-><a href="ntqtextedit.html#setText">setText</a>( sayings[num] ); if ( !sayings[num + 1] ) - bNext-><a href="qwidget.html#setEnabled">setEnabled</a>( FALSE ); + bNext-><a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE ); - bPrev-><a href="qwidget.html#setEnabled">setEnabled</a>( TRUE ); + bPrev-><a href="ntqwidget.html#setEnabled">setEnabled</a>( TRUE ); } @@ -236,19 +236,19 @@ void <a name="f257"></a>MyRichText::next() *****************************************************************************/ #include "richtext.h" -#include <<a href="qapplication-h.html">qapplication.h</a>> +#include <<a href="qapplication-h.html">ntqapplication.h</a>> int main( int argc, char **argv ) { - <a href="qapplication.html">TQApplication</a> a( argc, argv ); + <a href="ntqapplication.html">TQApplication</a> a( argc, argv ); MyRichText richtext; - richtext.<a href="qwidget.html#resize">resize</a>( 450, 350 ); - richtext.<a href="qwidget.html#setCaption">setCaption</a>( "TQt Example - Richtext" ); - a.<a href="qapplication.html#setMainWidget">setMainWidget</a>( &richtext ); - richtext.<a href="qwidget.html#show">show</a>(); + richtext.<a href="ntqwidget.html#resize">resize</a>( 450, 350 ); + richtext.<a href="ntqwidget.html#setCaption">setCaption</a>( "TQt Example - Richtext" ); + a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &richtext ); + richtext.<a href="ntqwidget.html#show">show</a>(); - return a.<a href="qapplication.html#exec">exec</a>(); + return a.<a href="ntqapplication.html#exec">exec</a>(); } </pre> |