diff options
Diffstat (limited to 'doc/html/xform-example.html')
-rw-r--r-- | doc/html/xform-example.html | 112 |
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 <<a href="qapplication-h.html">ntqapplication.h</a>> -#include <<a href="qdialog-h.html">ntqdialog.h</a>> +#include <<a href="tqdialog-h.html">tqdialog.h</a>> #include <<a href="tqlabel-h.html">tqlabel.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="tqlineedit-h.html">tqlineedit.h</a>> +#include <<a href="tqpushbutton-h.html">tqpushbutton.h</a>> +#include <<a href="tqcheckbox-h.html">tqcheckbox.h</a>> +#include <<a href="tqradiobutton-h.html">tqradiobutton.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="tqlcdnumber-h.html">tqlcdnumber.h</a>> +#include <<a href="tqslider-h.html">tqslider.h</a>> #include <<a href="tqmenubar-h.html">tqmenubar.h</a>> #include <<a href="tqfontdialog-h.html">tqfontdialog.h</a>> #include <<a href="qlayout-h.html">ntqlayout.h</a>> @@ -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-><a href="ntqhbox.html#setSpacing">setSpacing</a>(6); @@ -176,21 +176,21 @@ private: optionals_other-><a href="ntqhbox.html#setSpacing">setSpacing</a>(6); <a name="x1276"></a> optionals-><a href="tqwidgetstack.html#addWidget">addWidget</a>(optionals_text,0); optionals-><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-><a href="tqwidget.html#setFocus">setFocus</a>(); -<a name="x1229"></a> rotLCD-><a href="ntqlcdnumber.html#display">display</a>( " 0'" ); +<a name="x1229"></a> rotLCD-><a href="tqlcdnumber.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="tqobject.html#connect">connect</a>( rotS, TQ_SIGNAL(<a href="ntqslider.html#valueChanged">valueChanged</a>(int)), TQ_SLOT(newMtx()) ); +<a name="x1261"></a> rotS-><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-><a href="ntqlcdnumber.html#display">display</a>( "0.00" ); + shearLCD-><a href="tqlcdnumber.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="tqobject.html#connect">connect</a>( shearS, TQ_SIGNAL(<a href="ntqslider.html#valueChanged">valueChanged</a>(int)), TQ_SLOT(newMtx()) ); + shearS-><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-><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-><a href="ntqbuttongroup.html#insert">insert</a>(rb_pic,2); rb_txt-><a href="ntqbutton.html#setText">setText</a>( <a href="tqobject.html#tr">tr</a>("Text") ); rb_img-><a href="ntqbutton.html#setText">setText</a>( <a href="tqobject.html#tr">tr</a>("Image") ); -<a name="x1249"></a> rb_img-><a href="ntqradiobutton.html#setChecked">setChecked</a>(TRUE); +<a name="x1249"></a> rb_img-><a href="tqradiobutton.html#setChecked">setChecked</a>(TRUE); rb_pic-><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-><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-><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>&)), +<a name="x1230"></a> textEd-><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>&)), TQ_SLOT(newTxt(const <a href="tqstring.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, + magLCD = new <a href="tqlcdnumber.html">TQLCDNumber</a>( 4,optionals_other, "magLCD" ); + magLCD-><a href="tqlcdnumber.html#display">display</a>( "100" ); + magS = new <a href="tqslider.html">TQSlider</a>( TQSlider::Horizontal, optionals_other, "magnifySlider" ); magS-><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-><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-><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-><a href="tqwidget.html#adjustSize">adjustSize</a>(); optionals_other-><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-><a href="ntqslider.html#value">value</a>(); +<a name="x1262"></a> int v = magS-><a href="tqslider.html#value">value</a>(); v = (v+2)+v/10; if ( v >= 200 ) { v = 200; <a href="tqobject.html#killTimers">killTimers</a>(); } - magS-><a href="ntqslider.html#setValue">setValue</a>(v); + magS-><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-><a href="ntqslider.html#value">value</a>()/100; + double magVal = 1.0*magS-><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-><a href="ntqslider.html#value">value</a>()/25; + double shearVal = 1.0*shearS-><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-><a href="ntqslider.html#value">value</a>() ); -<a name="x1223"></a> if ( mirror-><a href="ntqcheckbox.html#isChecked">isChecked</a>() ) { +<a name="x1280"></a> m.<a href="tqwmatrix.html#rotate">rotate</a>( rotS-><a href="tqslider.html#value">value</a>() ); +<a name="x1223"></a> if ( mirror-><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 >= 0 ) <a name="x1264"></a> tmp.<a href="tqstring.html#insert">insert</a>( 0, " " ); - shearLCD-><a href="ntqlcdnumber.html#display">display</a>( tmp ); + shearLCD-><a href="tqlcdnumber.html#display">display</a>( tmp ); - int rot = rotS-><a href="ntqslider.html#value">value</a>(); + int rot = rotS-><a href="tqslider.html#value">value</a>(); if ( rot < 0 ) rot = rot + 360; tmp.<a href="tqstring.html#sprintf">sprintf</a>( "%3i'", rot ); - rotLCD-><a href="ntqlcdnumber.html#display">display</a>( tmp ); + rotLCD-><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-><a href="tqwidgetstack.html#raiseWidget">raiseWidget</a>(0); - rb_txt-><a href="ntqradiobutton.html#setChecked">setChecked</a>(TRUE); + rb_txt-><a href="tqradiobutton.html#setChecked">setChecked</a>(TRUE); } else { optionals-><a href="tqwidgetstack.html#raiseWidget">raiseWidget</a>(1); if ( mode == Image ) - rb_img-><a href="ntqradiobutton.html#setChecked">setChecked</a>(TRUE); + rb_img-><a href="tqradiobutton.html#setChecked">setChecked</a>(TRUE); else - rb_pic-><a href="ntqradiobutton.html#setChecked">setChecked</a>(TRUE); + rb_pic-><a href="tqradiobutton.html#setChecked">setChecked</a>(TRUE); } <a name="x1217"></a> tqApp-><a href="ntqapplication.html#flushX">flushX</a>(); } |