summaryrefslogtreecommitdiffstats
path: root/doc/html/xform-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/xform-example.html')
-rw-r--r--doc/html/xform-example.html112
1 files changed, 56 insertions, 56 deletions
diff --git a/doc/html/xform-example.html b/doc/html/xform-example.html
index 3a7b9bab9..0f0cb74fd 100644
--- a/doc/html/xform-example.html
+++ b/doc/html/xform-example.html
@@ -49,15 +49,15 @@ arbitrarily.
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
-#include &lt;<a href="qdialog-h.html">ntqdialog.h</a>&gt;
+#include &lt;<a href="tqdialog-h.html">tqdialog.h</a>&gt;
#include &lt;<a href="tqlabel-h.html">tqlabel.h</a>&gt;
-#include &lt;<a href="qlineedit-h.html">ntqlineedit.h</a>&gt;
-#include &lt;<a href="qpushbutton-h.html">ntqpushbutton.h</a>&gt;
-#include &lt;<a href="qcheckbox-h.html">ntqcheckbox.h</a>&gt;
-#include &lt;<a href="qradiobutton-h.html">ntqradiobutton.h</a>&gt;
+#include &lt;<a href="tqlineedit-h.html">tqlineedit.h</a>&gt;
+#include &lt;<a href="tqpushbutton-h.html">tqpushbutton.h</a>&gt;
+#include &lt;<a href="tqcheckbox-h.html">tqcheckbox.h</a>&gt;
+#include &lt;<a href="tqradiobutton-h.html">tqradiobutton.h</a>&gt;
#include &lt;<a href="qbuttongroup-h.html">ntqbuttongroup.h</a>&gt;
-#include &lt;<a href="qlcdnumber-h.html">ntqlcdnumber.h</a>&gt;
-#include &lt;<a href="qslider-h.html">ntqslider.h</a>&gt;
+#include &lt;<a href="tqlcdnumber-h.html">tqlcdnumber.h</a>&gt;
+#include &lt;<a href="tqslider-h.html">tqslider.h</a>&gt;
#include &lt;<a href="tqmenubar-h.html">tqmenubar.h</a>&gt;
#include &lt;<a href="tqfontdialog-h.html">tqfontdialog.h</a>&gt;
#include &lt;<a href="qlayout-h.html">ntqlayout.h</a>&gt;
@@ -100,19 +100,19 @@ private slots:
void timerEvent(TQTimerEvent*);
private:
Mode mode;
- <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="tqslider.html">TQSlider</a> *rotS; // Rotation angle scroll bar
+ <a href="tqslider.html">TQSlider</a> *shearS; // Shear value scroll bar
+ <a href="tqslider.html">TQSlider</a> *magS; // Magnification value scroll bar
+ <a href="tqlcdnumber.html">TQLCDNumber</a> *rotLCD; // Rotation angle LCD display
+ <a href="tqlcdnumber.html">TQLCDNumber</a> *shearLCD; // Shear value LCD display
+ <a href="tqlcdnumber.html">TQLCDNumber</a> *magLCD; // Magnification value LCD display
+ <a href="tqcheckbox.html">TQCheckBox</a> *mirror; // Checkbox for mirror image on/of
<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
- <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="tqlineedit.html">TQLineEdit</a> *textEd; // Inp[ut field for xForm text
+ <a href="tqpushbutton.html">TQPushButton</a> *fpb; // Select font push button
+ <a href="tqradiobutton.html">TQRadioButton</a> *rb_txt; // Radio button for text
+ <a href="tqradiobutton.html">TQRadioButton</a> *rb_img; // Radio button for image
+ <a href="tqradiobutton.html">TQRadioButton</a> *rb_pic; // Radio button for picture
<a href="tqfont.html">TQFont</a> currentFont;
};
@@ -159,16 +159,16 @@ private:
currentFont = initialFont;
mode = Image;
- rotLCD = new <a href="ntqlcdnumber.html">TQLCDNumber</a>( 4, this, "rotateLCD" );
- rotS = new <a href="ntqslider.html">TQSlider</a>( TQSlider::Horizontal, this,
+ rotLCD = new <a href="tqlcdnumber.html">TQLCDNumber</a>( 4, this, "rotateLCD" );
+ rotS = new <a href="tqslider.html">TQSlider</a>( TQSlider::Horizontal, this,
"rotateSlider" );
- shearLCD = new <a href="ntqlcdnumber.html">TQLCDNumber</a>( 5,this, "shearLCD" );
- shearS = new <a href="ntqslider.html">TQSlider</a>( TQSlider::Horizontal, this,
+ shearLCD = new <a href="tqlcdnumber.html">TQLCDNumber</a>( 5,this, "shearLCD" );
+ shearS = new <a href="tqslider.html">TQSlider</a>( TQSlider::Horizontal, this,
"shearSlider" );
- 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" );
+ mirror = new <a href="tqcheckbox.html">TQCheckBox</a>( this, "mirrorCheckBox" );
+ rb_txt = new <a href="tqradiobutton.html">TQRadioButton</a>( this, "text" );
+ rb_img = new <a href="tqradiobutton.html">TQRadioButton</a>( this, "image" );
+ rb_pic = new <a href="tqradiobutton.html">TQRadioButton</a>( this, "picture" );
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);
@@ -176,21 +176,21 @@ private:
optionals_other-&gt;<a href="ntqhbox.html#setSpacing">setSpacing</a>(6);
<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" );
+ fpb = new <a href="tqpushbutton.html">TQPushButton</a>( optionals_text, "text" );
+ textEd = new <a href="tqlineedit.html">TQLineEdit</a>( optionals_text, "text" );
textEd-&gt;<a href="tqwidget.html#setFocus">setFocus</a>();
-<a name="x1229"></a> rotLCD-&gt;<a href="ntqlcdnumber.html#display">display</a>( " 0'" );
+<a name="x1229"></a> rotLCD-&gt;<a href="tqlcdnumber.html#display">display</a>( " 0'" );
<a name="x1250"></a> rotS-&gt;<a href="ntqrangecontrol.html#setRange">setRange</a>( -180, 180 );
-<a name="x1261"></a> rotS-&gt;<a href="ntqslider.html#setValue">setValue</a>( 0 );
-<a name="x1263"></a> <a href="tqobject.html#connect">connect</a>( rotS, TQ_SIGNAL(<a href="ntqslider.html#valueChanged">valueChanged</a>(int)), TQ_SLOT(newMtx()) );
+<a name="x1261"></a> rotS-&gt;<a href="tqslider.html#setValue">setValue</a>( 0 );
+<a name="x1263"></a> <a href="tqobject.html#connect">connect</a>( rotS, TQ_SIGNAL(<a href="tqslider.html#valueChanged">valueChanged</a>(int)), TQ_SLOT(newMtx()) );
- shearLCD-&gt;<a href="ntqlcdnumber.html#display">display</a>( "0.00" );
+ shearLCD-&gt;<a href="tqlcdnumber.html#display">display</a>( "0.00" );
shearS-&gt;<a href="ntqrangecontrol.html#setRange">setRange</a>( -25, 25 );
- shearS-&gt;<a href="ntqslider.html#setValue">setValue</a>( 0 );
- <a href="tqobject.html#connect">connect</a>( shearS, TQ_SIGNAL(<a href="ntqslider.html#valueChanged">valueChanged</a>(int)), TQ_SLOT(newMtx()) );
+ shearS-&gt;<a href="tqslider.html#setValue">setValue</a>( 0 );
+ <a href="tqobject.html#connect">connect</a>( shearS, TQ_SIGNAL(<a href="tqslider.html#valueChanged">valueChanged</a>(int)), TQ_SLOT(newMtx()) );
<a name="x1220"></a> mirror-&gt;<a href="ntqbutton.html#setText">setText</a>( <a href="tqobject.html#tr">tr</a>("Mirror") );
<a href="tqobject.html#connect">connect</a>( mirror, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), TQ_SLOT(newMtx()) );
@@ -202,25 +202,25 @@ private:
bg-&gt;<a href="ntqbuttongroup.html#insert">insert</a>(rb_pic,2);
rb_txt-&gt;<a href="ntqbutton.html#setText">setText</a>( <a href="tqobject.html#tr">tr</a>("Text") );
rb_img-&gt;<a href="ntqbutton.html#setText">setText</a>( <a href="tqobject.html#tr">tr</a>("Image") );
-<a name="x1249"></a> rb_img-&gt;<a href="ntqradiobutton.html#setChecked">setChecked</a>(TRUE);
+<a name="x1249"></a> rb_img-&gt;<a href="tqradiobutton.html#setChecked">setChecked</a>(TRUE);
rb_pic-&gt;<a href="ntqbutton.html#setText">setText</a>( <a href="tqobject.html#tr">tr</a>("Picture") );
<a name="x1221"></a> <a href="tqobject.html#connect">connect</a>( bg, TQ_SIGNAL(<a href="ntqbuttongroup.html#clicked">clicked</a>(int)), TQ_SLOT(changeMode(int)) );
fpb-&gt;<a href="ntqbutton.html#setText">setText</a>( <a href="tqobject.html#tr">tr</a>("Select font...") );
<a href="tqobject.html#connect">connect</a>( fpb, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), TQ_SLOT(selectFont()) );
-<a name="x1230"></a> textEd-&gt;<a href="ntqlineedit.html#setText">setText</a>( "Troll" );
-<a name="x1231"></a> <a href="tqobject.html#connect">connect</a>( textEd, TQ_SIGNAL(<a href="ntqlineedit.html#textChanged">textChanged</a>(const <a href="tqstring.html">TQString</a>&amp;)),
+<a name="x1230"></a> textEd-&gt;<a href="tqlineedit.html#setText">setText</a>( "Troll" );
+<a name="x1231"></a> <a href="tqobject.html#connect">connect</a>( textEd, TQ_SIGNAL(<a href="tqlineedit.html#textChanged">textChanged</a>(const <a href="tqstring.html">TQString</a>&amp;)),
TQ_SLOT(newTxt(const <a href="tqstring.html">TQString</a>&amp;)) );
- magLCD = new <a href="ntqlcdnumber.html">TQLCDNumber</a>( 4,optionals_other, "magLCD" );
- magLCD-&gt;<a href="ntqlcdnumber.html#display">display</a>( "100" );
- magS = new <a href="ntqslider.html">TQSlider</a>( TQSlider::Horizontal, optionals_other,
+ magLCD = new <a href="tqlcdnumber.html">TQLCDNumber</a>( 4,optionals_other, "magLCD" );
+ magLCD-&gt;<a href="tqlcdnumber.html#display">display</a>( "100" );
+ magS = new <a href="tqslider.html">TQSlider</a>( TQSlider::Horizontal, optionals_other,
"magnifySlider" );
magS-&gt;<a href="ntqrangecontrol.html#setRange">setRange</a>( 0, 800 );
- <a href="tqobject.html#connect">connect</a>( magS, TQ_SIGNAL(<a href="ntqslider.html#valueChanged">valueChanged</a>(int)), TQ_SLOT(newMtx()) );
- 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 href="tqobject.html#connect">connect</a>( magS, TQ_SIGNAL(<a href="tqslider.html#valueChanged">valueChanged</a>(int)), TQ_SLOT(newMtx()) );
+ magS-&gt;<a href="tqslider.html#setValue">setValue</a>( 0 );
+ <a href="tqobject.html#connect">connect</a>( magS, TQ_SIGNAL(<a href="tqslider.html#valueChanged">valueChanged</a>(int)), magLCD, TQ_SLOT(<a href="tqlcdnumber.html#display">display</a>(int)));
<a name="x1266"></a> optionals_text-&gt;<a href="tqwidget.html#adjustSize">adjustSize</a>();
optionals_other-&gt;<a href="tqwidget.html#adjustSize">adjustSize</a>();
@@ -231,13 +231,13 @@ private:
<a name="x1232"></a>void XFormControl::<a href="tqobject.html#timerEvent">timerEvent</a>(TQTimerEvent*)
{
-<a name="x1262"></a> int v = magS-&gt;<a href="ntqslider.html#value">value</a>();
+<a name="x1262"></a> int v = magS-&gt;<a href="tqslider.html#value">value</a>();
v = (v+2)+v/10;
if ( v &gt;= 200 ) {
v = 200;
<a href="tqobject.html#killTimers">killTimers</a>();
}
- magS-&gt;<a href="ntqslider.html#setValue">setValue</a>(v);
+ magS-&gt;<a href="tqslider.html#setValue">setValue</a>(v);
}
@@ -265,13 +265,13 @@ TQWMatrix <a name="f400"></a>XFormControl::matrix()
{
<a href="tqwmatrix.html">TQWMatrix</a> m;
if (mode != Text) {
- double magVal = 1.0*magS-&gt;<a href="ntqslider.html#value">value</a>()/100;
+ double magVal = 1.0*magS-&gt;<a href="tqslider.html#value">value</a>()/100;
<a name="x1281"></a> m.<a href="tqwmatrix.html#scale">scale</a>( magVal, magVal );
}
- double shearVal = 1.0*shearS-&gt;<a href="ntqslider.html#value">value</a>()/25;
+ double shearVal = 1.0*shearS-&gt;<a href="tqslider.html#value">value</a>()/25;
<a name="x1282"></a> m.<a href="tqwmatrix.html#shear">shear</a>( shearVal, shearVal );
-<a name="x1280"></a> m.<a href="tqwmatrix.html#rotate">rotate</a>( rotS-&gt;<a href="ntqslider.html#value">value</a>() );
-<a name="x1223"></a> if ( mirror-&gt;<a href="ntqcheckbox.html#isChecked">isChecked</a>() ) {
+<a name="x1280"></a> m.<a href="tqwmatrix.html#rotate">rotate</a>( rotS-&gt;<a href="tqslider.html#value">value</a>() );
+<a name="x1223"></a> if ( mirror-&gt;<a href="tqcheckbox.html#isChecked">isChecked</a>() ) {
m.<a href="tqwmatrix.html#scale">scale</a>( 1, -1 );
m.<a href="tqwmatrix.html#rotate">rotate</a>( 180 );
}
@@ -280,13 +280,13 @@ TQWMatrix <a name="f400"></a>XFormControl::matrix()
<a name="x1265"></a> tmp.<a href="tqstring.html#sprintf">sprintf</a>( "%1.2f", shearVal );
if ( shearVal &gt;= 0 )
<a name="x1264"></a> tmp.<a href="tqstring.html#insert">insert</a>( 0, " " );
- shearLCD-&gt;<a href="ntqlcdnumber.html#display">display</a>( tmp );
+ shearLCD-&gt;<a href="tqlcdnumber.html#display">display</a>( tmp );
- int rot = rotS-&gt;<a href="ntqslider.html#value">value</a>();
+ int rot = rotS-&gt;<a href="tqslider.html#value">value</a>();
if ( rot &lt; 0 )
rot = rot + 360;
tmp.<a href="tqstring.html#sprintf">sprintf</a>( "%3i'", rot );
- rotLCD-&gt;<a href="ntqlcdnumber.html#display">display</a>( tmp );
+ rotLCD-&gt;<a href="tqlcdnumber.html#display">display</a>( tmp );
return m;
}
@@ -319,13 +319,13 @@ void <a name="f403"></a>XFormControl::changeMode(int m)
newMtx();
if ( mode == Text ) {
<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);
+ rb_txt-&gt;<a href="tqradiobutton.html#setChecked">setChecked</a>(TRUE);
} else {
optionals-&gt;<a href="tqwidgetstack.html#raiseWidget">raiseWidget</a>(1);
if ( mode == Image )
- rb_img-&gt;<a href="ntqradiobutton.html#setChecked">setChecked</a>(TRUE);
+ rb_img-&gt;<a href="tqradiobutton.html#setChecked">setChecked</a>(TRUE);
else
- rb_pic-&gt;<a href="ntqradiobutton.html#setChecked">setChecked</a>(TRUE);
+ rb_pic-&gt;<a href="tqradiobutton.html#setChecked">setChecked</a>(TRUE);
}
<a name="x1217"></a> tqApp-&gt;<a href="ntqapplication.html#flushX">flushX</a>();
}