summaryrefslogtreecommitdiffstats
path: root/doc/html/xform-example.html
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-06-02 23:07:22 +0900
committerMichele Calgaro <[email protected]>2024-06-02 23:22:42 +0900
commit8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 (patch)
treeb95884617b9a37accc843676d5d42be4116a3f54 /doc/html/xform-example.html
parent68b81013e8668f50fc18b7e26a520ec93a7a1251 (diff)
downloadtqt3-8ac0e970e4464d9f8f73c0fb34a178ff135be8c3.tar.gz
tqt3-8ac0e970e4464d9f8f73c0fb34a178ff135be8c3.zip
Rename ntqwidget* related files to equivalent tqwidget*
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'doc/html/xform-example.html')
-rw-r--r--doc/html/xform-example.html72
1 files changed, 36 insertions, 36 deletions
diff --git a/doc/html/xform-example.html b/doc/html/xform-example.html
index 14103d998..8d2fd197a 100644
--- a/doc/html/xform-example.html
+++ b/doc/html/xform-example.html
@@ -62,7 +62,7 @@ arbitrarily.
#include &lt;<a href="qfontdialog-h.html">ntqfontdialog.h</a>&gt;
#include &lt;<a href="qlayout-h.html">ntqlayout.h</a>&gt;
#include &lt;<a href="qvbox-h.html">ntqvbox.h</a>&gt;
-#include &lt;<a href="qwidgetstack-h.html">ntqwidgetstack.h</a>&gt;
+#include &lt;<a href="tqwidgetstack-h.html">tqwidgetstack.h</a>&gt;
#include &lt;<a href="qpainter-h.html">ntqpainter.h</a>&gt;
#include &lt;<a href="qpixmap-h.html">ntqpixmap.h</a>&gt;
@@ -107,7 +107,7 @@ private:
<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="tqwidgetstack.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
@@ -121,7 +121,7 @@ private:
<a href="ntqwmatrix.html#TransformationMode">transformation matrix</a> (TQWMatrix)
*/
-class ShowXForm : public <a href="ntqwidget.html">TQWidget</a>, public ModeNames
+class ShowXForm : public <a href="tqwidget.html">TQWidget</a>, public ModeNames
{
TQ_OBJECT
public:
@@ -151,7 +151,7 @@ private:
};
<a name="f397"></a>XFormControl::XFormControl( const <a href="ntqfont.html">TQFont</a> &amp;initialFont,
- <a href="ntqwidget.html">TQWidget</a> *parent, const char *name )
+ <a href="tqwidget.html">TQWidget</a> *parent, const char *name )
: <a href="ntqvbox.html">TQVBox</a>( parent, name )
{
<a href="ntqhbox.html#setSpacing">setSpacing</a>(6);
@@ -169,16 +169,16 @@ private:
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);
+ optionals = new <a href="tqwidgetstack.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-&gt;<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-&gt;<a href="ntqhbox.html#setSpacing">setSpacing</a>(6);
-<a name="x1276"></a> optionals-&gt;<a href="ntqwidgetstack.html#addWidget">addWidget</a>(optionals_text,0);
- optionals-&gt;<a href="ntqwidgetstack.html#addWidget">addWidget</a>(optionals_other,1);
+<a name="x1276"></a> optionals-&gt;<a href="tqwidgetstack.html#addWidget">addWidget</a>(optionals_text,0);
+ optionals-&gt;<a href="tqwidgetstack.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-&gt;<a href="ntqwidget.html#setFocus">setFocus</a>();
+ textEd-&gt;<a href="tqwidget.html#setFocus">setFocus</a>();
<a name="x1229"></a> rotLCD-&gt;<a href="ntqlcdnumber.html#display">display</a>( " 0'" );
@@ -196,7 +196,7 @@ private:
<a href="tqobject.html#connect">connect</a>( mirror, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), TQ_SLOT(newMtx()) );
<a href="ntqbuttongroup.html">TQButtonGroup</a> *bg = new <a href="ntqbuttongroup.html">TQButtonGroup</a>(this);
-<a name="x1267"></a> bg-&gt;<a href="ntqwidget.html#hide">hide</a>();
+<a name="x1267"></a> bg-&gt;<a href="tqwidget.html#hide">hide</a>();
<a name="x1222"></a> bg-&gt;<a href="ntqbuttongroup.html#insert">insert</a>(rb_txt,0);
bg-&gt;<a href="ntqbuttongroup.html#insert">insert</a>(rb_img,1);
bg-&gt;<a href="ntqbuttongroup.html#insert">insert</a>(rb_pic,2);
@@ -222,8 +222,8 @@ private:
magS-&gt;<a href="ntqslider.html#setValue">setValue</a>( 0 );
<a href="tqobject.html#connect">connect</a>( magS, TQ_SIGNAL(<a href="ntqslider.html#valueChanged">valueChanged</a>(int)), magLCD, TQ_SLOT(<a href="ntqlcdnumber.html#display">display</a>(int)));
-<a name="x1266"></a> optionals_text-&gt;<a href="ntqwidget.html#adjustSize">adjustSize</a>();
- optionals_other-&gt;<a href="ntqwidget.html#adjustSize">adjustSize</a>();
+<a name="x1266"></a> optionals_text-&gt;<a href="tqwidget.html#adjustSize">adjustSize</a>();
+ optionals_other-&gt;<a href="tqwidget.html#adjustSize">adjustSize</a>();
changeMode(Image);
<a href="tqobject.html#startTimer">startTimer</a>(20); // start an initial animation
@@ -318,10 +318,10 @@ void <a name="f403"></a>XFormControl::changeMode(int m)
emit newMode( m );
newMtx();
if ( mode == Text ) {
-<a name="x1277"></a> optionals-&gt;<a href="ntqwidgetstack.html#raiseWidget">raiseWidget</a>(0);
+<a name="x1277"></a> optionals-&gt;<a href="tqwidgetstack.html#raiseWidget">raiseWidget</a>(0);
rb_txt-&gt;<a href="ntqradiobutton.html#setChecked">setChecked</a>(TRUE);
} else {
- optionals-&gt;<a href="ntqwidgetstack.html#raiseWidget">raiseWidget</a>(1);
+ optionals-&gt;<a href="tqwidgetstack.html#raiseWidget">raiseWidget</a>(1);
if ( mode == Image )
rb_img-&gt;<a href="ntqradiobutton.html#setChecked">setChecked</a>(TRUE);
else
@@ -331,34 +331,34 @@ void <a name="f403"></a>XFormControl::changeMode(int m)
}
<a name="f388"></a>ShowXForm::ShowXForm( const <a href="ntqfont.html">TQFont</a> &amp;initialFont,
- <a href="ntqwidget.html">TQWidget</a> *parent, const char *name )
- : <a href="ntqwidget.html">TQWidget</a>( parent, name, WResizeNoErase )
+ <a href="tqwidget.html">TQWidget</a> *parent, const char *name )
+ : <a href="tqwidget.html">TQWidget</a>( parent, name, WResizeNoErase )
{
- <a href="ntqwidget.html#setFont">setFont</a>( initialFont );
- <a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( white );
+ <a href="tqwidget.html#setFont">setFont</a>( initialFont );
+ <a href="tqwidget.html#setBackgroundColor">setBackgroundColor</a>( white );
m = Text;
eraseRect = TQRect( 0, 0, 0, 0 );
}
-<a name="x1275"></a>TQSizePolicy ShowXForm::<a href="ntqwidget.html#sizePolicy">sizePolicy</a>() const
+<a name="x1275"></a>TQSizePolicy ShowXForm::<a href="tqwidget.html#sizePolicy">sizePolicy</a>() const
{
return TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding );
}
-<a name="x1274"></a>TQSize ShowXForm::<a href="ntqwidget.html#sizeHint">sizeHint</a>() const
+<a name="x1274"></a>TQSize ShowXForm::<a href="tqwidget.html#sizeHint">sizeHint</a>() const
{
return TQSize(400,400);
}
-void ShowXForm::<a href="ntqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> * )
+void ShowXForm::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> * )
{
showIt();
}
-<a name="x1269"></a>void ShowXForm::<a href="ntqwidget.html#resizeEvent">resizeEvent</a>( <a href="qresizeevent.html">TQResizeEvent</a> * )
+<a name="x1269"></a>void ShowXForm::<a href="tqwidget.html#resizeEvent">resizeEvent</a>( <a href="qresizeevent.html">TQResizeEvent</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>());
+ eraseRect = TQRect( <a href="tqwidget.html#width">width</a>()/2, height()/2, 0, 0 );
+ <a href="tqwidget.html#repaint">repaint</a>(<a href="tqwidget.html#rect">rect</a>());
}
void <a name="f389"></a>ShowXForm::setText( const <a href="ntqstring.html">TQString</a>&amp; s )
@@ -373,10 +373,10 @@ void <a name="f390"></a>ShowXForm::setMatrix( <a href="ntqwmatrix.html">TQWMatri
showIt();
}
-<a name="x1272"></a>void ShowXForm::<a href="ntqwidget.html#setFont">setFont</a>( const <a href="ntqfont.html">TQFont</a> &amp;f )
+<a name="x1272"></a>void ShowXForm::<a href="tqwidget.html#setFont">setFont</a>( const <a href="ntqfont.html">TQFont</a> &amp;f )
{
m = Text;
- TQWidget::<a href="ntqwidget.html#setFont">setFont</a>( f );
+ TQWidget::<a href="tqwidget.html#setFont">setFont</a>( f );
}
void <a name="f391"></a>ShowXForm::setPixmap( <a href="ntqpixmap.html">TQPixmap</a> pm )
@@ -406,7 +406,7 @@ void <a name="f394"></a>ShowXForm::showIt()
int textYPos = 0; // distance from boundingRect y pos to baseline
int textXPos = 0; // distance from boundingRect x pos to text start
<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
+ <a href="ntqfontmetrics.html">TQFontMetrics</a> fm( <a href="tqwidget.html#fontMetrics">fontMetrics</a>() ); // get widget font metrics
switch ( mode() ) {
case Text:
<a name="x1225"></a> br = fm.<a href="ntqfontmetrics.html#boundingRect">boundingRect</a>( text ); // rectangle covering text
@@ -433,7 +433,7 @@ void <a name="f394"></a>ShowXForm::showIt()
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="x1245"></a> pm.<a href="ntqpixmap.html#fill">fill</a>( <a href="tqwidget.html#backgroundColor">backgroundColor</a>() );
<a name="x1233"></a> p.<a href="ntqpainter.html#begin">begin</a>( &amp;pm );
<a name="x1283"></a> um.<a href="ntqwmatrix.html#translate">translate</a>( pw/2, ph/2 ); // 0,0 is center
@@ -441,7 +441,7 @@ void <a name="f394"></a>ShowXForm::showIt()
<a name="x1242"></a> p.<a href="ntqpainter.html#setWorldMatrix">setWorldMatrix</a>( um );
switch ( mode() ) {
case 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="x1240"></a> p.<a href="ntqpainter.html#setFont">setFont</a>( <a href="tqwidget.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="ntqpainter.html#setPen">setPen</a>( red );
@@ -459,8 +459,8 @@ void <a name="f394"></a>ShowXForm::showIt()
}
<a name="x1238"></a> p.<a href="ntqpainter.html#end">end</a>();
- int xpos = <a href="ntqwidget.html#width">width</a>()/2 - pw/2;
- int ypos = <a href="ntqwidget.html#height">height</a>()/2 - ph/2;
+ int xpos = <a href="tqwidget.html#width">width</a>()/2 - pw/2;
+ int ypos = <a href="tqwidget.html#height">height</a>()/2 - ph/2;
<a href="ntqimage.html#bitBlt">bitBlt</a>( this, xpos, ypos, // copy pixmap to widget
&amp;pm, 0, 0, -1, -1 );
<a name="x1278"></a> eraseRect = mtx.<a href="ntqwmatrix.html#map">map</a>( r );
@@ -476,9 +476,9 @@ class XFormCenter : public <a href="ntqhbox.html">TQHBox</a>, public ModeNames
{
TQ_OBJECT
public:
- XFormCenter( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
+ XFormCenter( <a href="tqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
public slots:
- void setFont( const <a href="ntqfont.html">TQFont</a> &amp;f ) { sx-&gt;<a href="ntqwidget.html#setFont">setFont</a>( f ); }
+ void setFont( const <a href="ntqfont.html">TQFont</a> &amp;f ) { sx-&gt;<a href="tqwidget.html#setFont">setFont</a>( f ); }
void newMode( int );
private:
ShowXForm *sx;
@@ -509,7 +509,7 @@ void <a name="f395"></a>XFormCenter::newMode( int m )
sx-&gt;setMode(m);
}
-<a name="f396"></a>XFormCenter::XFormCenter( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name )
+<a name="f396"></a>XFormCenter::XFormCenter( <a href="tqwidget.html">TQWidget</a> *parent, const char *name )
: <a href="ntqhbox.html">TQHBox</a>( parent, name )
{
<a href="ntqfont.html">TQFont</a> f( "Charter", 36, TQFont::Bold );
@@ -524,7 +524,7 @@ void <a name="f395"></a>XFormCenter::newMode( int m )
<a href="tqobject.html#connect">connect</a>( xc, TQ_SIGNAL(newMatrix(TQWMatrix)),
sx, TQ_SLOT(setMatrix(TQWMatrix)) );
<a href="tqobject.html#connect">connect</a>( xc, TQ_SIGNAL(newFont(const <a href="ntqfont.html">TQFont</a>&amp;)), sx,
- TQ_SLOT(<a href="ntqwidget.html#setFont">setFont</a>(const <a href="ntqfont.html">TQFont</a>&amp;)) );
+ TQ_SLOT(<a href="tqwidget.html#setFont">setFont</a>(const <a href="ntqfont.html">TQFont</a>&amp;)) );
<a href="tqobject.html#connect">connect</a>( xc, TQ_SIGNAL(newMode(int)), TQ_SLOT(newMode(int)) );
sx-&gt;setText( "Troll" );
newMode( Image );
@@ -539,8 +539,8 @@ int main( int argc, char **argv )
XFormCenter *xfc = new XFormCenter;
a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( xfc );
- xfc-&gt;<a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - XForm");
- xfc-&gt;<a href="ntqwidget.html#show">show</a>();
+ xfc-&gt;<a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - XForm");
+ xfc-&gt;<a href="tqwidget.html#show">show</a>();
return a.<a href="ntqapplication.html#exec">exec</a>();
}