diff options
author | Timothy Pearson <[email protected]> | 2012-01-26 23:32:43 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-01-26 23:32:43 -0600 |
commit | ea318d1431c89e647598c510c4245c6571aa5f46 (patch) | |
tree | 996d29b80c30d453dda86d1a23162d441628f169 /doc/html/xform-example.html | |
parent | aaf89d4b48f69c9293feb187db26362e550b5561 (diff) | |
download | tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip |
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/xform-example.html')
-rw-r--r-- | doc/html/xform-example.html | 458 |
1 files changed, 229 insertions, 229 deletions
diff --git a/doc/html/xform-example.html b/doc/html/xform-example.html index d2d11ebd1..7ee9da2b7 100644 --- a/doc/html/xform-example.html +++ b/doc/html/xform-example.html @@ -47,26 +47,26 @@ arbitrarily. ** *****************************************************************************/ -#include <<a href="qapplication-h.html">qapplication.h</a>> - -#include <<a href="qdialog-h.html">qdialog.h</a>> -#include <<a href="qlabel-h.html">qlabel.h</a>> -#include <<a href="qlineedit-h.html">qlineedit.h</a>> -#include <<a href="qpushbutton-h.html">qpushbutton.h</a>> -#include <<a href="qcheckbox-h.html">qcheckbox.h</a>> -#include <<a href="qradiobutton-h.html">qradiobutton.h</a>> -#include <<a href="qbuttongroup-h.html">qbuttongroup.h</a>> -#include <<a href="qlcdnumber-h.html">qlcdnumber.h</a>> -#include <<a href="qslider-h.html">qslider.h</a>> -#include <<a href="qmenubar-h.html">qmenubar.h</a>> -#include <<a href="qfontdialog-h.html">qfontdialog.h</a>> -#include <<a href="qlayout-h.html">qlayout.h</a>> -#include <<a href="qvbox-h.html">qvbox.h</a>> -#include <<a href="qwidgetstack-h.html">qwidgetstack.h</a>> - -#include <<a href="qpainter-h.html">qpainter.h</a>> -#include <<a href="qpixmap-h.html">qpixmap.h</a>> -#include <<a href="qpicture-h.html">qpicture.h</a>> +#include <<a href="qapplication-h.html">ntqapplication.h</a>> + +#include <<a href="qdialog-h.html">ntqdialog.h</a>> +#include <<a href="qlabel-h.html">ntqlabel.h</a>> +#include <<a href="qlineedit-h.html">ntqlineedit.h</a>> +#include <<a href="qpushbutton-h.html">ntqpushbutton.h</a>> +#include <<a href="qcheckbox-h.html">ntqcheckbox.h</a>> +#include <<a href="qradiobutton-h.html">ntqradiobutton.h</a>> +#include <<a href="qbuttongroup-h.html">ntqbuttongroup.h</a>> +#include <<a href="qlcdnumber-h.html">ntqlcdnumber.h</a>> +#include <<a href="qslider-h.html">ntqslider.h</a>> +#include <<a href="qmenubar-h.html">ntqmenubar.h</a>> +#include <<a href="qfontdialog-h.html">ntqfontdialog.h</a>> +#include <<a href="qlayout-h.html">ntqlayout.h</a>> +#include <<a href="qvbox-h.html">ntqvbox.h</a>> +#include <<a href="qwidgetstack-h.html">ntqwidgetstack.h</a>> + +#include <<a href="qpainter-h.html">ntqpainter.h</a>> +#include <<a href="qpixmap-h.html">ntqpixmap.h</a>> +#include <<a href="qpicture-h.html">ntqpicture.h</a>> #include <stdlib.h> @@ -77,167 +77,167 @@ public: }; -class XFormControl : public <a href="qvbox.html">TQVBox</a>, public ModeNames +class XFormControl : public <a href="ntqvbox.html">TQVBox</a>, public ModeNames { <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> public: - XFormControl( const <a href="qfont.html">TQFont</a> &initialFont, TQWidget *parent=0, const char *name=0 ); + XFormControl( const <a href="ntqfont.html">TQFont</a> &initialFont, TQWidget *parent=0, const char *name=0 ); ~XFormControl() {} - <a href="qwmatrix.html">TQWMatrix</a> matrix(); + <a href="ntqwmatrix.html">TQWMatrix</a> matrix(); signals: - void newMatrix( <a href="qwmatrix.html">TQWMatrix</a> ); - void newText( const <a href="qstring.html">TQString</a>& ); - void newFont( const <a href="qfont.html">TQFont</a> & ); + void newMatrix( <a href="ntqwmatrix.html">TQWMatrix</a> ); + void newText( const <a href="ntqstring.html">TQString</a>& ); + void newFont( const <a href="ntqfont.html">TQFont</a> & ); void newMode( int ); private slots: void newMtx(); - void newTxt(const <a href="qstring.html">TQString</a>&); + void newTxt(const <a href="ntqstring.html">TQString</a>&); void selectFont(); - void fontSelected( const <a href="qfont.html">TQFont</a> & ); + void fontSelected( const <a href="ntqfont.html">TQFont</a> & ); void changeMode(int); void timerEvent(TQTimerEvent*); private: Mode mode; - <a href="qslider.html">TQSlider</a> *rotS; // Rotation angle scroll bar - <a href="qslider.html">TQSlider</a> *shearS; // Shear value scroll bar - <a href="qslider.html">TQSlider</a> *magS; // Magnification value scroll bar - <a href="qlcdnumber.html">TQLCDNumber</a> *rotLCD; // Rotation angle LCD display - <a href="qlcdnumber.html">TQLCDNumber</a> *shearLCD; // Shear value LCD display - <a href="qlcdnumber.html">TQLCDNumber</a> *magLCD; // Magnification value LCD display - <a href="qcheckbox.html">TQCheckBox</a> *mirror; // Checkbox for mirror image on/of - <a href="qwidgetstack.html">TQWidgetStack</a>* optionals; - <a href="qlineedit.html">TQLineEdit</a> *textEd; // Inp[ut field for xForm text - <a href="qpushbutton.html">TQPushButton</a> *fpb; // Select font push button - <a href="qradiobutton.html">TQRadioButton</a> *rb_txt; // Radio button for text - <a href="qradiobutton.html">TQRadioButton</a> *rb_img; // Radio button for image - <a href="qradiobutton.html">TQRadioButton</a> *rb_pic; // Radio button for picture - <a href="qfont.html">TQFont</a> currentFont; + <a href="ntqslider.html">TQSlider</a> *rotS; // Rotation angle scroll bar + <a href="ntqslider.html">TQSlider</a> *shearS; // Shear value scroll bar + <a href="ntqslider.html">TQSlider</a> *magS; // Magnification value scroll bar + <a href="ntqlcdnumber.html">TQLCDNumber</a> *rotLCD; // Rotation angle LCD display + <a href="ntqlcdnumber.html">TQLCDNumber</a> *shearLCD; // Shear value LCD display + <a href="ntqlcdnumber.html">TQLCDNumber</a> *magLCD; // Magnification value LCD display + <a href="ntqcheckbox.html">TQCheckBox</a> *mirror; // Checkbox for mirror image on/of + <a href="ntqwidgetstack.html">TQWidgetStack</a>* optionals; + <a href="ntqlineedit.html">TQLineEdit</a> *textEd; // Inp[ut field for xForm text + <a href="ntqpushbutton.html">TQPushButton</a> *fpb; // Select font push button + <a href="ntqradiobutton.html">TQRadioButton</a> *rb_txt; // Radio button for text + <a href="ntqradiobutton.html">TQRadioButton</a> *rb_img; // Radio button for image + <a href="ntqradiobutton.html">TQRadioButton</a> *rb_pic; // Radio button for picture + <a href="ntqfont.html">TQFont</a> currentFont; }; /* ShowXForm displays a text or a pixmap (TQPixmap) using a coordinate - <a href="qwmatrix.html#TransformationMode">transformation matrix</a> (TQWMatrix) + <a href="ntqwmatrix.html#TransformationMode">transformation matrix</a> (TQWMatrix) */ -class ShowXForm : public <a href="qwidget.html">TQWidget</a>, public ModeNames +class ShowXForm : public <a href="ntqwidget.html">TQWidget</a>, public ModeNames { Q_OBJECT public: - ShowXForm( const <a href="qfont.html">TQFont</a> &f, TQWidget *parent=0, const char *name=0 ); + ShowXForm( const <a href="ntqfont.html">TQFont</a> &f, TQWidget *parent=0, const char *name=0 ); ~ShowXForm() {} void showIt(); // (Re)displays text or pixmap Mode mode() const { return m; } public slots: - void setText( const <a href="qstring.html">TQString</a>& ); - void setMatrix( <a href="qwmatrix.html">TQWMatrix</a> ); - void setFont( const <a href="qfont.html">TQFont</a> &f ); - void setPixmap( <a href="qpixmap.html">TQPixmap</a> ); - void setPicture( const <a href="qpicture.html">TQPicture</a>& ); + void setText( const <a href="ntqstring.html">TQString</a>& ); + void setMatrix( <a href="ntqwmatrix.html">TQWMatrix</a> ); + void setFont( const <a href="ntqfont.html">TQFont</a> &f ); + void setPixmap( <a href="ntqpixmap.html">TQPixmap</a> ); + void setPicture( const <a href="ntqpicture.html">TQPicture</a>& ); void setMode( int ); private: - <a href="qsizepolicy.html">TQSizePolicy</a> sizePolicy() const; - <a href="qsize.html">TQSize</a> sizeHint() const; + <a href="ntqsizepolicy.html">TQSizePolicy</a> sizePolicy() const; + <a href="ntqsize.html">TQSize</a> sizeHint() const; void paintEvent( <a href="qpaintevent.html">TQPaintEvent</a> * ); void resizeEvent( <a href="qresizeevent.html">TQResizeEvent</a> * ); - <a href="qwmatrix.html">TQWMatrix</a> mtx; // coordinate transform matrix - <a href="qstring.html">TQString</a> text; // text to be displayed - <a href="qpixmap.html">TQPixmap</a> pix; // pixmap to be displayed - <a href="qpicture.html">TQPicture</a> picture; // text to be displayed - <a href="qrect.html">TQRect</a> eraseRect; // covers last displayed text/pixmap + <a href="ntqwmatrix.html">TQWMatrix</a> mtx; // coordinate transform matrix + <a href="ntqstring.html">TQString</a> text; // text to be displayed + <a href="ntqpixmap.html">TQPixmap</a> pix; // pixmap to be displayed + <a href="ntqpicture.html">TQPicture</a> picture; // text to be displayed + <a href="ntqrect.html">TQRect</a> eraseRect; // covers last displayed text/pixmap Mode m; }; -<a name="f397"></a>XFormControl::XFormControl( const <a href="qfont.html">TQFont</a> &initialFont, - <a href="qwidget.html">TQWidget</a> *parent, const char *name ) - : <a href="qvbox.html">TQVBox</a>( parent, name ) +<a name="f397"></a>XFormControl::XFormControl( const <a href="ntqfont.html">TQFont</a> &initialFont, + <a href="ntqwidget.html">TQWidget</a> *parent, const char *name ) + : <a href="ntqvbox.html">TQVBox</a>( parent, name ) { - <a href="qhbox.html#setSpacing">setSpacing</a>(6); - <a href="qframe.html#setMargin">setMargin</a>(6); + <a href="ntqhbox.html#setSpacing">setSpacing</a>(6); + <a href="ntqframe.html#setMargin">setMargin</a>(6); currentFont = initialFont; mode = Image; - rotLCD = new <a href="qlcdnumber.html">TQLCDNumber</a>( 4, this, "rotateLCD" ); - rotS = new <a href="qslider.html">TQSlider</a>( TQSlider::Horizontal, this, + rotLCD = new <a href="ntqlcdnumber.html">TQLCDNumber</a>( 4, this, "rotateLCD" ); + rotS = new <a href="ntqslider.html">TQSlider</a>( TQSlider::Horizontal, this, "rotateSlider" ); - shearLCD = new <a href="qlcdnumber.html">TQLCDNumber</a>( 5,this, "shearLCD" ); - shearS = new <a href="qslider.html">TQSlider</a>( TQSlider::Horizontal, this, + shearLCD = new <a href="ntqlcdnumber.html">TQLCDNumber</a>( 5,this, "shearLCD" ); + shearS = new <a href="ntqslider.html">TQSlider</a>( TQSlider::Horizontal, this, "shearSlider" ); - mirror = new <a href="qcheckbox.html">TQCheckBox</a>( this, "mirrorCheckBox" ); - rb_txt = new <a href="qradiobutton.html">TQRadioButton</a>( this, "text" ); - rb_img = new <a href="qradiobutton.html">TQRadioButton</a>( this, "image" ); - rb_pic = new <a href="qradiobutton.html">TQRadioButton</a>( this, "picture" ); - optionals = new <a href="qwidgetstack.html">TQWidgetStack</a>(this); - <a href="qvbox.html">TQVBox</a>* optionals_text = new <a href="qvbox.html">TQVBox</a>(optionals); -<a name="x1228"></a> optionals_text-><a href="qhbox.html#setSpacing">setSpacing</a>(6); - <a href="qvbox.html">TQVBox</a>* optionals_other = new <a href="qvbox.html">TQVBox</a>(optionals); - optionals_other-><a href="qhbox.html#setSpacing">setSpacing</a>(6); -<a name="x1276"></a> optionals-><a href="qwidgetstack.html#addWidget">addWidget</a>(optionals_text,0); - optionals-><a href="qwidgetstack.html#addWidget">addWidget</a>(optionals_other,1); - fpb = new <a href="qpushbutton.html">TQPushButton</a>( optionals_text, "text" ); - textEd = new <a href="qlineedit.html">TQLineEdit</a>( optionals_text, "text" ); - textEd-><a href="qwidget.html#setFocus">setFocus</a>(); - -<a name="x1229"></a> rotLCD-><a href="qlcdnumber.html#display">display</a>( " 0'" ); - -<a name="x1250"></a> rotS-><a href="qrangecontrol.html#setRange">setRange</a>( -180, 180 ); -<a name="x1261"></a> rotS-><a href="qslider.html#setValue">setValue</a>( 0 ); -<a name="x1263"></a> <a href="qobject.html#connect">connect</a>( rotS, SIGNAL(<a href="qslider.html#valueChanged">valueChanged</a>(int)), SLOT(newMtx()) ); - - shearLCD-><a href="qlcdnumber.html#display">display</a>( "0.00" ); - - shearS-><a href="qrangecontrol.html#setRange">setRange</a>( -25, 25 ); - shearS-><a href="qslider.html#setValue">setValue</a>( 0 ); - <a href="qobject.html#connect">connect</a>( shearS, SIGNAL(<a href="qslider.html#valueChanged">valueChanged</a>(int)), SLOT(newMtx()) ); - -<a name="x1220"></a> mirror-><a href="qbutton.html#setText">setText</a>( <a href="qobject.html#tr">tr</a>("Mirror") ); - <a href="qobject.html#connect">connect</a>( mirror, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), SLOT(newMtx()) ); - - <a href="qbuttongroup.html">TQButtonGroup</a> *bg = new <a href="qbuttongroup.html">TQButtonGroup</a>(this); -<a name="x1267"></a> bg-><a href="qwidget.html#hide">hide</a>(); -<a name="x1222"></a> bg-><a href="qbuttongroup.html#insert">insert</a>(rb_txt,0); - bg-><a href="qbuttongroup.html#insert">insert</a>(rb_img,1); - bg-><a href="qbuttongroup.html#insert">insert</a>(rb_pic,2); - rb_txt-><a href="qbutton.html#setText">setText</a>( <a href="qobject.html#tr">tr</a>("Text") ); - rb_img-><a href="qbutton.html#setText">setText</a>( <a href="qobject.html#tr">tr</a>("Image") ); -<a name="x1249"></a> rb_img-><a href="qradiobutton.html#setChecked">setChecked</a>(TRUE); - rb_pic-><a href="qbutton.html#setText">setText</a>( <a href="qobject.html#tr">tr</a>("Picture") ); -<a name="x1221"></a> <a href="qobject.html#connect">connect</a>( bg, SIGNAL(<a href="qbuttongroup.html#clicked">clicked</a>(int)), SLOT(changeMode(int)) ); - - fpb-><a href="qbutton.html#setText">setText</a>( <a href="qobject.html#tr">tr</a>("Select font...") ); - <a href="qobject.html#connect">connect</a>( fpb, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), SLOT(selectFont()) ); - -<a name="x1230"></a> textEd-><a href="qlineedit.html#setText">setText</a>( "Troll" ); -<a name="x1231"></a> <a href="qobject.html#connect">connect</a>( textEd, SIGNAL(<a href="qlineedit.html#textChanged">textChanged</a>(const <a href="qstring.html">TQString</a>&)), - SLOT(newTxt(const <a href="qstring.html">TQString</a>&)) ); - - magLCD = new <a href="qlcdnumber.html">TQLCDNumber</a>( 4,optionals_other, "magLCD" ); - magLCD-><a href="qlcdnumber.html#display">display</a>( "100" ); - magS = new <a href="qslider.html">TQSlider</a>( TQSlider::Horizontal, optionals_other, + mirror = new <a href="ntqcheckbox.html">TQCheckBox</a>( this, "mirrorCheckBox" ); + rb_txt = new <a href="ntqradiobutton.html">TQRadioButton</a>( this, "text" ); + rb_img = new <a href="ntqradiobutton.html">TQRadioButton</a>( this, "image" ); + rb_pic = new <a href="ntqradiobutton.html">TQRadioButton</a>( this, "picture" ); + optionals = new <a href="ntqwidgetstack.html">TQWidgetStack</a>(this); + <a href="ntqvbox.html">TQVBox</a>* optionals_text = new <a href="ntqvbox.html">TQVBox</a>(optionals); +<a name="x1228"></a> optionals_text-><a href="ntqhbox.html#setSpacing">setSpacing</a>(6); + <a href="ntqvbox.html">TQVBox</a>* optionals_other = new <a href="ntqvbox.html">TQVBox</a>(optionals); + optionals_other-><a href="ntqhbox.html#setSpacing">setSpacing</a>(6); +<a name="x1276"></a> optionals-><a href="ntqwidgetstack.html#addWidget">addWidget</a>(optionals_text,0); + optionals-><a href="ntqwidgetstack.html#addWidget">addWidget</a>(optionals_other,1); + fpb = new <a href="ntqpushbutton.html">TQPushButton</a>( optionals_text, "text" ); + textEd = new <a href="ntqlineedit.html">TQLineEdit</a>( optionals_text, "text" ); + textEd-><a href="ntqwidget.html#setFocus">setFocus</a>(); + +<a name="x1229"></a> rotLCD-><a href="ntqlcdnumber.html#display">display</a>( " 0'" ); + +<a name="x1250"></a> rotS-><a href="ntqrangecontrol.html#setRange">setRange</a>( -180, 180 ); +<a name="x1261"></a> rotS-><a href="ntqslider.html#setValue">setValue</a>( 0 ); +<a name="x1263"></a> <a href="ntqobject.html#connect">connect</a>( rotS, SIGNAL(<a href="ntqslider.html#valueChanged">valueChanged</a>(int)), SLOT(newMtx()) ); + + shearLCD-><a href="ntqlcdnumber.html#display">display</a>( "0.00" ); + + shearS-><a href="ntqrangecontrol.html#setRange">setRange</a>( -25, 25 ); + shearS-><a href="ntqslider.html#setValue">setValue</a>( 0 ); + <a href="ntqobject.html#connect">connect</a>( shearS, SIGNAL(<a href="ntqslider.html#valueChanged">valueChanged</a>(int)), SLOT(newMtx()) ); + +<a name="x1220"></a> mirror-><a href="ntqbutton.html#setText">setText</a>( <a href="ntqobject.html#tr">tr</a>("Mirror") ); + <a href="ntqobject.html#connect">connect</a>( mirror, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), SLOT(newMtx()) ); + + <a href="ntqbuttongroup.html">TQButtonGroup</a> *bg = new <a href="ntqbuttongroup.html">TQButtonGroup</a>(this); +<a name="x1267"></a> bg-><a href="ntqwidget.html#hide">hide</a>(); +<a name="x1222"></a> bg-><a href="ntqbuttongroup.html#insert">insert</a>(rb_txt,0); + bg-><a href="ntqbuttongroup.html#insert">insert</a>(rb_img,1); + bg-><a href="ntqbuttongroup.html#insert">insert</a>(rb_pic,2); + rb_txt-><a href="ntqbutton.html#setText">setText</a>( <a href="ntqobject.html#tr">tr</a>("Text") ); + rb_img-><a href="ntqbutton.html#setText">setText</a>( <a href="ntqobject.html#tr">tr</a>("Image") ); +<a name="x1249"></a> rb_img-><a href="ntqradiobutton.html#setChecked">setChecked</a>(TRUE); + rb_pic-><a href="ntqbutton.html#setText">setText</a>( <a href="ntqobject.html#tr">tr</a>("Picture") ); +<a name="x1221"></a> <a href="ntqobject.html#connect">connect</a>( bg, SIGNAL(<a href="ntqbuttongroup.html#clicked">clicked</a>(int)), SLOT(changeMode(int)) ); + + fpb-><a href="ntqbutton.html#setText">setText</a>( <a href="ntqobject.html#tr">tr</a>("Select font...") ); + <a href="ntqobject.html#connect">connect</a>( fpb, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), SLOT(selectFont()) ); + +<a name="x1230"></a> textEd-><a href="ntqlineedit.html#setText">setText</a>( "Troll" ); +<a name="x1231"></a> <a href="ntqobject.html#connect">connect</a>( textEd, SIGNAL(<a href="ntqlineedit.html#textChanged">textChanged</a>(const <a href="ntqstring.html">TQString</a>&)), + SLOT(newTxt(const <a href="ntqstring.html">TQString</a>&)) ); + + magLCD = new <a href="ntqlcdnumber.html">TQLCDNumber</a>( 4,optionals_other, "magLCD" ); + magLCD-><a href="ntqlcdnumber.html#display">display</a>( "100" ); + magS = new <a href="ntqslider.html">TQSlider</a>( TQSlider::Horizontal, optionals_other, "magnifySlider" ); - magS-><a href="qrangecontrol.html#setRange">setRange</a>( 0, 800 ); - <a href="qobject.html#connect">connect</a>( magS, SIGNAL(<a href="qslider.html#valueChanged">valueChanged</a>(int)), SLOT(newMtx()) ); - magS-><a href="qslider.html#setValue">setValue</a>( 0 ); - <a href="qobject.html#connect">connect</a>( magS, SIGNAL(<a href="qslider.html#valueChanged">valueChanged</a>(int)), magLCD, SLOT(<a href="qlcdnumber.html#display">display</a>(int))); + magS-><a href="ntqrangecontrol.html#setRange">setRange</a>( 0, 800 ); + <a href="ntqobject.html#connect">connect</a>( magS, SIGNAL(<a href="ntqslider.html#valueChanged">valueChanged</a>(int)), SLOT(newMtx()) ); + magS-><a href="ntqslider.html#setValue">setValue</a>( 0 ); + <a href="ntqobject.html#connect">connect</a>( magS, SIGNAL(<a href="ntqslider.html#valueChanged">valueChanged</a>(int)), magLCD, SLOT(<a href="ntqlcdnumber.html#display">display</a>(int))); -<a name="x1266"></a> optionals_text-><a href="qwidget.html#adjustSize">adjustSize</a>(); - optionals_other-><a href="qwidget.html#adjustSize">adjustSize</a>(); +<a name="x1266"></a> optionals_text-><a href="ntqwidget.html#adjustSize">adjustSize</a>(); + optionals_other-><a href="ntqwidget.html#adjustSize">adjustSize</a>(); changeMode(Image); - <a href="qobject.html#startTimer">startTimer</a>(20); // start an initial animation + <a href="ntqobject.html#startTimer">startTimer</a>(20); // start an initial animation } -<a name="x1232"></a>void XFormControl::<a href="qobject.html#timerEvent">timerEvent</a>(TQTimerEvent*) +<a name="x1232"></a>void XFormControl::<a href="ntqobject.html#timerEvent">timerEvent</a>(TQTimerEvent*) { -<a name="x1262"></a> int v = magS-><a href="qslider.html#value">value</a>(); +<a name="x1262"></a> int v = magS-><a href="ntqslider.html#value">value</a>(); v = (v+2)+v/10; if ( v >= 200 ) { v = 200; - <a href="qobject.html#killTimers">killTimers</a>(); + <a href="ntqobject.html#killTimers">killTimers</a>(); } - magS-><a href="qslider.html#setValue">setValue</a>(v); + magS-><a href="ntqslider.html#setValue">setValue</a>(v); } @@ -251,7 +251,7 @@ void <a name="f398"></a>XFormControl::newMtx() emit newMatrix( matrix() ); } -void <a name="f399"></a>XFormControl::newTxt(const <a href="qstring.html">TQString</a>& s) +void <a name="f399"></a>XFormControl::newTxt(const <a href="ntqstring.html">TQString</a>& s) { emit newText(s); changeMode(Text); @@ -263,30 +263,30 @@ void <a name="f399"></a>XFormControl::newTxt(const <a href="qstring.html">TQStri */ TQWMatrix <a name="f400"></a>XFormControl::matrix() { - <a href="qwmatrix.html">TQWMatrix</a> m; + <a href="ntqwmatrix.html">TQWMatrix</a> m; if (mode != Text) { - double magVal = 1.0*magS-><a href="qslider.html#value">value</a>()/100; -<a name="x1281"></a> m.<a href="qwmatrix.html#scale">scale</a>( magVal, magVal ); + double magVal = 1.0*magS-><a href="ntqslider.html#value">value</a>()/100; +<a name="x1281"></a> m.<a href="ntqwmatrix.html#scale">scale</a>( magVal, magVal ); } - double shearVal = 1.0*shearS-><a href="qslider.html#value">value</a>()/25; -<a name="x1282"></a> m.<a href="qwmatrix.html#shear">shear</a>( shearVal, shearVal ); -<a name="x1280"></a> m.<a href="qwmatrix.html#rotate">rotate</a>( rotS-><a href="qslider.html#value">value</a>() ); -<a name="x1223"></a> if ( mirror-><a href="qcheckbox.html#isChecked">isChecked</a>() ) { - m.<a href="qwmatrix.html#scale">scale</a>( 1, -1 ); - m.<a href="qwmatrix.html#rotate">rotate</a>( 180 ); + double shearVal = 1.0*shearS-><a href="ntqslider.html#value">value</a>()/25; +<a name="x1282"></a> m.<a href="ntqwmatrix.html#shear">shear</a>( shearVal, shearVal ); +<a name="x1280"></a> m.<a href="ntqwmatrix.html#rotate">rotate</a>( rotS-><a href="ntqslider.html#value">value</a>() ); +<a name="x1223"></a> if ( mirror-><a href="ntqcheckbox.html#isChecked">isChecked</a>() ) { + m.<a href="ntqwmatrix.html#scale">scale</a>( 1, -1 ); + m.<a href="ntqwmatrix.html#rotate">rotate</a>( 180 ); } - <a href="qstring.html">TQString</a> tmp; -<a name="x1265"></a> tmp.<a href="qstring.html#sprintf">sprintf</a>( "%1.2f", shearVal ); + <a href="ntqstring.html">TQString</a> tmp; +<a name="x1265"></a> tmp.<a href="ntqstring.html#sprintf">sprintf</a>( "%1.2f", shearVal ); if ( shearVal >= 0 ) -<a name="x1264"></a> tmp.<a href="qstring.html#insert">insert</a>( 0, " " ); - shearLCD-><a href="qlcdnumber.html#display">display</a>( tmp ); +<a name="x1264"></a> tmp.<a href="ntqstring.html#insert">insert</a>( 0, " " ); + shearLCD-><a href="ntqlcdnumber.html#display">display</a>( tmp ); - int rot = rotS-><a href="qslider.html#value">value</a>(); + int rot = rotS-><a href="ntqslider.html#value">value</a>(); if ( rot < 0 ) rot = rot + 360; - tmp.<a href="qstring.html#sprintf">sprintf</a>( "%3i'", rot ); - rotLCD-><a href="qlcdnumber.html#display">display</a>( tmp ); + tmp.<a href="ntqstring.html#sprintf">sprintf</a>( "%3i'", rot ); + rotLCD-><a href="ntqlcdnumber.html#display">display</a>( tmp ); return m; } @@ -294,14 +294,14 @@ TQWMatrix <a name="f400"></a>XFormControl::matrix() void <a name="f401"></a>XFormControl::selectFont() { bool ok; -<a name="x1224"></a> <a href="qfont.html">TQFont</a> f = TQFontDialog::<a href="qfontdialog.html#getFont">getFont</a>( &ok, currentFont ); +<a name="x1224"></a> <a href="ntqfont.html">TQFont</a> f = TQFontDialog::<a href="ntqfontdialog.html#getFont">getFont</a>( &ok, currentFont ); if ( ok ) { currentFont = f; fontSelected( f ); } } -void <a name="f402"></a>XFormControl::fontSelected( const <a href="qfont.html">TQFont</a> &font ) +void <a name="f402"></a>XFormControl::fontSelected( const <a href="ntqfont.html">TQFont</a> &font ) { emit newFont( font ); changeMode(Text); @@ -318,75 +318,75 @@ void <a name="f403"></a>XFormControl::changeMode(int m) emit newMode( m ); newMtx(); if ( mode == Text ) { -<a name="x1277"></a> optionals-><a href="qwidgetstack.html#raiseWidget">raiseWidget</a>(0); - rb_txt-><a href="qradiobutton.html#setChecked">setChecked</a>(TRUE); +<a name="x1277"></a> optionals-><a href="ntqwidgetstack.html#raiseWidget">raiseWidget</a>(0); + rb_txt-><a href="ntqradiobutton.html#setChecked">setChecked</a>(TRUE); } else { - optionals-><a href="qwidgetstack.html#raiseWidget">raiseWidget</a>(1); + optionals-><a href="ntqwidgetstack.html#raiseWidget">raiseWidget</a>(1); if ( mode == Image ) - rb_img-><a href="qradiobutton.html#setChecked">setChecked</a>(TRUE); + rb_img-><a href="ntqradiobutton.html#setChecked">setChecked</a>(TRUE); else - rb_pic-><a href="qradiobutton.html#setChecked">setChecked</a>(TRUE); + rb_pic-><a href="ntqradiobutton.html#setChecked">setChecked</a>(TRUE); } -<a name="x1217"></a> qApp-><a href="qapplication.html#flushX">flushX</a>(); +<a name="x1217"></a> qApp-><a href="ntqapplication.html#flushX">flushX</a>(); } -<a name="f388"></a>ShowXForm::ShowXForm( const <a href="qfont.html">TQFont</a> &initialFont, - <a href="qwidget.html">TQWidget</a> *parent, const char *name ) - : <a href="qwidget.html">TQWidget</a>( parent, name, WResizeNoErase ) +<a name="f388"></a>ShowXForm::ShowXForm( const <a href="ntqfont.html">TQFont</a> &initialFont, + <a href="ntqwidget.html">TQWidget</a> *parent, const char *name ) + : <a href="ntqwidget.html">TQWidget</a>( parent, name, WResizeNoErase ) { - <a href="qwidget.html#setFont">setFont</a>( initialFont ); - <a href="qwidget.html#setBackgroundColor">setBackgroundColor</a>( white ); + <a href="ntqwidget.html#setFont">setFont</a>( initialFont ); + <a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( white ); m = Text; eraseRect = TQRect( 0, 0, 0, 0 ); } -<a name="x1275"></a>TQSizePolicy ShowXForm::<a href="qwidget.html#sizePolicy">sizePolicy</a>() const +<a name="x1275"></a>TQSizePolicy ShowXForm::<a href="ntqwidget.html#sizePolicy">sizePolicy</a>() const { return TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ); } -<a name="x1274"></a>TQSize ShowXForm::<a href="qwidget.html#sizeHint">sizeHint</a>() const +<a name="x1274"></a>TQSize ShowXForm::<a href="ntqwidget.html#sizeHint">sizeHint</a>() const { return TQSize(400,400); } -void ShowXForm::<a href="qwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> * ) +void ShowXForm::<a href="ntqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> * ) { showIt(); } -<a name="x1269"></a>void ShowXForm::<a href="qwidget.html#resizeEvent">resizeEvent</a>( <a href="qresizeevent.html">TQResizeEvent</a> * ) +<a name="x1269"></a>void ShowXForm::<a href="ntqwidget.html#resizeEvent">resizeEvent</a>( <a href="qresizeevent.html">TQResizeEvent</a> * ) { - eraseRect = TQRect( <a href="qwidget.html#width">width</a>()/2, height()/2, 0, 0 ); - <a href="qwidget.html#repaint">repaint</a>(<a href="qwidget.html#rect">rect</a>()); + eraseRect = TQRect( <a href="ntqwidget.html#width">width</a>()/2, height()/2, 0, 0 ); + <a href="ntqwidget.html#repaint">repaint</a>(<a href="ntqwidget.html#rect">rect</a>()); } -void <a name="f389"></a>ShowXForm::setText( const <a href="qstring.html">TQString</a>& s ) +void <a name="f389"></a>ShowXForm::setText( const <a href="ntqstring.html">TQString</a>& s ) { text = s; showIt(); } -void <a name="f390"></a>ShowXForm::setMatrix( <a href="qwmatrix.html">TQWMatrix</a> w ) +void <a name="f390"></a>ShowXForm::setMatrix( <a href="ntqwmatrix.html">TQWMatrix</a> w ) { mtx = w; showIt(); } -<a name="x1272"></a>void ShowXForm::<a href="qwidget.html#setFont">setFont</a>( const <a href="qfont.html">TQFont</a> &f ) +<a name="x1272"></a>void ShowXForm::<a href="ntqwidget.html#setFont">setFont</a>( const <a href="ntqfont.html">TQFont</a> &f ) { m = Text; - TQWidget::<a href="qwidget.html#setFont">setFont</a>( f ); + TQWidget::<a href="ntqwidget.html#setFont">setFont</a>( f ); } -void <a name="f391"></a>ShowXForm::setPixmap( <a href="qpixmap.html">TQPixmap</a> pm ) +void <a name="f391"></a>ShowXForm::setPixmap( <a href="ntqpixmap.html">TQPixmap</a> pm ) { pix = pm; m = Image; showIt(); } -void <a name="f392"></a>ShowXForm::setPicture( const <a href="qpicture.html">TQPicture</a>& p ) +void <a name="f392"></a>ShowXForm::setPicture( const <a href="ntqpicture.html">TQPicture</a>& p ) { picture = p; m = Picture; @@ -400,70 +400,70 @@ void <a name="f393"></a>ShowXForm::setMode( int mode ) void <a name="f394"></a>ShowXForm::showIt() { - <a href="qpainter.html">TQPainter</a> p; - <a href="qrect.html">TQRect</a> r; // rectangle covering new text/pixmap in virtual coordinates - <a href="qwmatrix.html">TQWMatrix</a> um; // copy user specified transform + <a href="ntqpainter.html">TQPainter</a> p; + <a href="ntqrect.html">TQRect</a> r; // rectangle covering new text/pixmap in virtual coordinates + <a href="ntqwmatrix.html">TQWMatrix</a> um; // copy user specified transform int textYPos = 0; // distance from boundingRect y pos to baseline int textXPos = 0; // distance from boundingRect x pos to text start - <a href="qrect.html">TQRect</a> br; - <a href="qfontmetrics.html">TQFontMetrics</a> fm( <a href="qwidget.html#fontMetrics">fontMetrics</a>() ); // get widget font metrics + <a href="ntqrect.html">TQRect</a> br; + <a href="ntqfontmetrics.html">TQFontMetrics</a> fm( <a href="ntqwidget.html#fontMetrics">fontMetrics</a>() ); // get widget font metrics switch ( mode() ) { case Text: -<a name="x1225"></a> br = fm.<a href="qfontmetrics.html#boundingRect">boundingRect</a>( text ); // rectangle covering text +<a name="x1225"></a> br = fm.<a href="ntqfontmetrics.html#boundingRect">boundingRect</a>( text ); // rectangle covering text r = br; - textYPos = -r.<a href="qrect.html#y">y</a>(); - textXPos = -r.<a href="qrect.html#x">x</a>(); -<a name="x1258"></a><a name="x1254"></a><a name="x1251"></a> br.<a href="qrect.html#moveTopLeft">moveTopLeft</a>( TQPoint( -br.<a href="qrect.html#width">width</a>()/2, -br.<a href="qrect.html#height">height</a>()/2 ) ); + textYPos = -r.<a href="ntqrect.html#y">y</a>(); + textXPos = -r.<a href="ntqrect.html#x">x</a>(); +<a name="x1258"></a><a name="x1254"></a><a name="x1251"></a> br.<a href="ntqrect.html#moveTopLeft">moveTopLeft</a>( TQPoint( -br.<a href="ntqrect.html#width">width</a>()/2, -br.<a href="ntqrect.html#height">height</a>()/2 ) ); break; case Image: -<a name="x1248"></a><a name="x1246"></a> r = TQRect(0, 0, pix.<a href="qpixmap.html#width">width</a>()+1, pix.<a href="qpixmap.html#height">height</a>()+1); +<a name="x1248"></a><a name="x1246"></a> r = TQRect(0, 0, pix.<a href="ntqpixmap.html#width">width</a>()+1, pix.<a href="ntqpixmap.html#height">height</a>()+1); break; case Picture: // ### need TQPicture::boundingRect() r = TQRect(0,0,1000,1000); break; } - r.<a href="qrect.html#moveTopLeft">moveTopLeft</a>( TQPoint(-r.<a href="qrect.html#width">width</a>()/2, -r.<a href="qrect.html#height">height</a>()/2) ); -<a name="x1253"></a> r.<a href="qrect.html#moveBy">moveBy</a>( -1, -1 ); // add border for matrix round off -<a name="x1255"></a> r.<a href="qrect.html#setSize">setSize</a>( TQSize( r.<a href="qrect.html#width">width</a>() + 2,r.<a href="qrect.html#height">height</a>() + 2 ) ); + r.<a href="ntqrect.html#moveTopLeft">moveTopLeft</a>( TQPoint(-r.<a href="ntqrect.html#width">width</a>()/2, -r.<a href="ntqrect.html#height">height</a>()/2) ); +<a name="x1253"></a> r.<a href="ntqrect.html#moveBy">moveBy</a>( -1, -1 ); // add border for matrix round off +<a name="x1255"></a> r.<a href="ntqrect.html#setSize">setSize</a>( TQSize( r.<a href="ntqrect.html#width">width</a>() + 2,r.<a href="ntqrect.html#height">height</a>() + 2 ) ); // compute union of new and old rect // the resulting rectangle will cover what is already displayed // and have room for the new text/pixmap -<a name="x1279"></a><a name="x1257"></a> eraseRect = eraseRect.<a href="qrect.html#unite">unite</a>( mtx.<a href="qwmatrix.html#mapRect">mapRect</a>(r) ); - int pw = TQMIN(eraseRect.<a href="qrect.html#width">width</a>(),width()); - int ph = TQMIN(eraseRect.<a href="qrect.html#height">height</a>(),height()); - <a href="qpixmap.html">TQPixmap</a> pm( pw, ph ); // off-screen drawing pixmap -<a name="x1245"></a> pm.<a href="qpixmap.html#fill">fill</a>( <a href="qwidget.html#backgroundColor">backgroundColor</a>() ); - -<a name="x1233"></a> p.<a href="qpainter.html#begin">begin</a>( &pm ); -<a name="x1283"></a> um.<a href="qwmatrix.html#translate">translate</a>( pw/2, ph/2 ); // 0,0 is center +<a name="x1279"></a><a name="x1257"></a> eraseRect = eraseRect.<a href="ntqrect.html#unite">unite</a>( mtx.<a href="ntqwmatrix.html#mapRect">mapRect</a>(r) ); + int pw = TQMIN(eraseRect.<a href="ntqrect.html#width">width</a>(),width()); + int ph = TQMIN(eraseRect.<a href="ntqrect.html#height">height</a>(),height()); + <a href="ntqpixmap.html">TQPixmap</a> pm( pw, ph ); // off-screen drawing pixmap +<a name="x1245"></a> pm.<a href="ntqpixmap.html#fill">fill</a>( <a href="ntqwidget.html#backgroundColor">backgroundColor</a>() ); + +<a name="x1233"></a> p.<a href="ntqpainter.html#begin">begin</a>( &pm ); +<a name="x1283"></a> um.<a href="ntqwmatrix.html#translate">translate</a>( pw/2, ph/2 ); // 0,0 is center um = mtx * um; -<a name="x1242"></a> p.<a href="qpainter.html#setWorldMatrix">setWorldMatrix</a>( um ); +<a name="x1242"></a> p.<a href="ntqpainter.html#setWorldMatrix">setWorldMatrix</a>( um ); switch ( mode() ) { case Text: -<a name="x1240"></a> p.<a href="qpainter.html#setFont">setFont</a>( <a href="qwidget.html#font">font</a>() ); // use widget font -<a name="x1256"></a><a name="x1252"></a> p.<a href="qpainter.html#drawText">drawText</a>( r.<a href="qrect.html#left">left</a>() + textXPos, r.<a href="qrect.html#top">top</a>() + textYPos, text ); +<a name="x1240"></a> p.<a href="ntqpainter.html#setFont">setFont</a>( <a href="ntqwidget.html#font">font</a>() ); // use widget font +<a name="x1256"></a><a name="x1252"></a> p.<a href="ntqpainter.html#drawText">drawText</a>( r.<a href="ntqrect.html#left">left</a>() + textXPos, r.<a href="ntqrect.html#top">top</a>() + textYPos, text ); #if 0 - p.<a href="qpainter.html#setPen">setPen</a>( red ); - p.<a href="qpainter.html#drawRect">drawRect</a>( br ); + p.<a href="ntqpainter.html#setPen">setPen</a>( red ); + p.<a href="ntqpainter.html#drawRect">drawRect</a>( br ); #endif break; case Image: -<a name="x1235"></a> p.<a href="qpainter.html#drawPixmap">drawPixmap</a>( -pix.<a href="qpixmap.html#width">width</a>()/2, -pix.<a href="qpixmap.html#height">height</a>()/2, pix ); +<a name="x1235"></a> p.<a href="ntqpainter.html#drawPixmap">drawPixmap</a>( -pix.<a href="ntqpixmap.html#width">width</a>()/2, -pix.<a href="ntqpixmap.html#height">height</a>()/2, pix ); break; case Picture: // ### need TQPicture::boundingRect() -<a name="x1239"></a> p.<a href="qpainter.html#scale">scale</a>(0.25,0.25); -<a name="x1243"></a> p.<a href="qpainter.html#translate">translate</a>(-230,-180); -<a name="x1234"></a> p.<a href="qpainter.html#drawPicture">drawPicture</a>( picture ); +<a name="x1239"></a> p.<a href="ntqpainter.html#scale">scale</a>(0.25,0.25); +<a name="x1243"></a> p.<a href="ntqpainter.html#translate">translate</a>(-230,-180); +<a name="x1234"></a> p.<a href="ntqpainter.html#drawPicture">drawPicture</a>( picture ); } -<a name="x1238"></a> p.<a href="qpainter.html#end">end</a>(); +<a name="x1238"></a> p.<a href="ntqpainter.html#end">end</a>(); - int xpos = <a href="qwidget.html#width">width</a>()/2 - pw/2; - int ypos = <a href="qwidget.html#height">height</a>()/2 - ph/2; - <a href="qimage.html#bitBlt">bitBlt</a>( this, xpos, ypos, // copy pixmap to widget + int xpos = <a href="ntqwidget.html#width">width</a>()/2 - pw/2; + int ypos = <a href="ntqwidget.html#height">height</a>()/2 - ph/2; + <a href="ntqimage.html#bitBlt">bitBlt</a>( this, xpos, ypos, // copy pixmap to widget &pm, 0, 0, -1, -1 ); -<a name="x1278"></a> eraseRect = mtx.<a href="qwmatrix.html#map">map</a>( r ); +<a name="x1278"></a> eraseRect = mtx.<a href="ntqwmatrix.html#map">map</a>( r ); } @@ -472,13 +472,13 @@ void <a name="f394"></a>ShowXForm::showIt() together. */ -class XFormCenter : public <a href="qhbox.html">TQHBox</a>, public ModeNames +class XFormCenter : public <a href="ntqhbox.html">TQHBox</a>, public ModeNames { Q_OBJECT public: - XFormCenter( <a href="qwidget.html">TQWidget</a> *parent=0, const char *name=0 ); + XFormCenter( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); public slots: - void setFont( const <a href="qfont.html">TQFont</a> &f ) { sx-><a href="qwidget.html#setFont">setFont</a>( f ); } + void setFont( const <a href="ntqfont.html">TQFont</a> &f ) { sx-><a href="ntqwidget.html#setFont">setFont</a>( f ); } void newMode( int ); private: ShowXForm *sx; @@ -494,38 +494,38 @@ void <a name="f395"></a>XFormCenter::newMode( int m ) return; if ( m == Image && first_i ) { first_i = FALSE; - <a href="qpixmap.html">TQPixmap</a> pm; -<a name="x1247"></a> if ( pm.<a href="qpixmap.html#load">load</a>( "image.any" ) ) + <a href="ntqpixmap.html">TQPixmap</a> pm; +<a name="x1247"></a> if ( pm.<a href="ntqpixmap.html#load">load</a>( "image.any" ) ) sx->setPixmap( pm ); return; } if ( m == Picture && first_p ) { first_p = FALSE; - <a href="qpicture.html">TQPicture</a> p; -<a name="x1244"></a> if (p.<a href="qpicture.html#load">load</a>( "picture.any" )) + <a href="ntqpicture.html">TQPicture</a> p; +<a name="x1244"></a> if (p.<a href="ntqpicture.html#load">load</a>( "picture.any" )) sx->setPicture( p ); return; } sx->setMode(m); } -<a name="f396"></a>XFormCenter::XFormCenter( <a href="qwidget.html">TQWidget</a> *parent, const char *name ) - : <a href="qhbox.html">TQHBox</a>( parent, name ) +<a name="f396"></a>XFormCenter::XFormCenter( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name ) + : <a href="ntqhbox.html">TQHBox</a>( parent, name ) { - <a href="qfont.html">TQFont</a> f( "Charter", 36, TQFont::Bold ); + <a href="ntqfont.html">TQFont</a> f( "Charter", 36, TQFont::Bold ); xc = new XFormControl( f, this ); sx = new ShowXForm( f, this ); - <a href="qhbox.html#setStretchFactor">setStretchFactor</a>(sx,1); - xc-><a href="qframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Raised ); -<a name="x1227"></a> xc-><a href="qframe.html#setLineWidth">setLineWidth</a>( 2 ); - <a href="qobject.html#connect">connect</a>( xc, SIGNAL(newText(const <a href="qstring.html">TQString</a>&)), sx, - SLOT(setText(const <a href="qstring.html">TQString</a>&)) ); - <a href="qobject.html#connect">connect</a>( xc, SIGNAL(newMatrix(TQWMatrix)), + <a href="ntqhbox.html#setStretchFactor">setStretchFactor</a>(sx,1); + xc-><a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Raised ); +<a name="x1227"></a> xc-><a href="ntqframe.html#setLineWidth">setLineWidth</a>( 2 ); + <a href="ntqobject.html#connect">connect</a>( xc, SIGNAL(newText(const <a href="ntqstring.html">TQString</a>&)), sx, + SLOT(setText(const <a href="ntqstring.html">TQString</a>&)) ); + <a href="ntqobject.html#connect">connect</a>( xc, SIGNAL(newMatrix(TQWMatrix)), sx, SLOT(setMatrix(TQWMatrix)) ); - <a href="qobject.html#connect">connect</a>( xc, SIGNAL(newFont(const <a href="qfont.html">TQFont</a>&)), sx, - SLOT(<a href="qwidget.html#setFont">setFont</a>(const <a href="qfont.html">TQFont</a>&)) ); - <a href="qobject.html#connect">connect</a>( xc, SIGNAL(newMode(int)), SLOT(newMode(int)) ); + <a href="ntqobject.html#connect">connect</a>( xc, SIGNAL(newFont(const <a href="ntqfont.html">TQFont</a>&)), sx, + SLOT(<a href="ntqwidget.html#setFont">setFont</a>(const <a href="ntqfont.html">TQFont</a>&)) ); + <a href="ntqobject.html#connect">connect</a>( xc, SIGNAL(newMode(int)), SLOT(newMode(int)) ); sx->setText( "Troll" ); newMode( Image ); sx->setMatrix(xc->matrix()); @@ -534,14 +534,14 @@ void <a name="f395"></a>XFormCenter::newMode( int m ) int main( int argc, char **argv ) { - <a href="qapplication.html">TQApplication</a> a( argc, argv ); + <a href="ntqapplication.html">TQApplication</a> a( argc, argv ); XFormCenter *xfc = new XFormCenter; - a.<a href="qapplication.html#setMainWidget">setMainWidget</a>( xfc ); - xfc-><a href="qwidget.html#setCaption">setCaption</a>("TQt Example - XForm"); - xfc-><a href="qwidget.html#show">show</a>(); - return a.<a href="qapplication.html#exec">exec</a>(); + a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( xfc ); + xfc-><a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - XForm"); + xfc-><a href="ntqwidget.html#show">show</a>(); + return a.<a href="ntqapplication.html#exec">exec</a>(); } #include "xform.moc" // include metadata generated by the <a href="moc.html#moc">moc</a> |