diff options
Diffstat (limited to 'doc/html/qmag-example.html')
-rw-r--r-- | doc/html/qmag-example.html | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/html/qmag-example.html b/doc/html/qmag-example.html index 4887b6b37..a4d2f2135 100644 --- a/doc/html/qmag-example.html +++ b/doc/html/qmag-example.html @@ -104,7 +104,7 @@ private: int r; // autorefresh rate (index into refreshrates) bool grabbing; // TRUE if qmag is currently grabbing int grabx, graby; - <a href="ntqstring.html">TQString</a> multifn; // filename for multisave + <a href="tqstring.html">TQString</a> multifn; // filename for multisave }; @@ -234,8 +234,8 @@ void <a name="f487"></a>MagWidget::save() { <a name="x1785"></a> if ( !p.<a href="ntqpixmap.html#isNull">isNull</a>() ) { <a href="tqobject.html#killTimers">killTimers</a>(); -<a name="x1775"></a> <a href="ntqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>(); -<a name="x1792"></a> if ( !fn.<a href="ntqstring.html#isEmpty">isEmpty</a>() ) +<a name="x1775"></a> <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>(); +<a name="x1792"></a> if ( !fn.<a href="tqstring.html#isEmpty">isEmpty</a>() ) <a name="x1786"></a> p.<a href="ntqpixmap.html#save">save</a>( fn, "BMP" ); if ( r ) <a href="tqobject.html#startTimer">startTimer</a>( timer[r] ); @@ -247,7 +247,7 @@ void <a name="f488"></a>MagWidget::multiSave() if ( !p.<a href="ntqpixmap.html#isNull">isNull</a>() ) { multifn = ""; // stops saving multifn = TQFileDialog::<a href="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>(); - if ( multifn.<a href="ntqstring.html#isEmpty">isEmpty</a>() ) + if ( multifn.<a href="tqstring.html#isEmpty">isEmpty</a>() ) <a name="x1789"></a> multiSaveButton-><a href="ntqpushbutton.html#setOn">setOn</a>(FALSE); if ( !r ) p.<a href="ntqpixmap.html#save">save</a>( multifn, "BMP" ); @@ -374,16 +374,16 @@ void <a name="f490"></a>MagWidget::grabAround(TQPoint pos) int x,y; x = e-><a href="qmouseevent.html#pos">pos</a>().x() / z; y = (e-><a href="qmouseevent.html#pos">pos</a>().y() - ( zoom ? zoom-><a href="tqwidget.html#height">height</a>() : 0 ) - 4) / z; - <a href="ntqstring.html">TQString</a> pixelinfo; + <a href="tqstring.html">TQString</a> pixelinfo; <a name="x1777"></a> if ( image.<a href="tqimage.html#valid">valid</a>(x,y) ) { <a name="x1776"></a> TQRgb px = image.<a href="tqimage.html#pixel">pixel</a>(x,y); -<a name="x1795"></a> pixelinfo.<a href="ntqstring.html#sprintf">sprintf</a>(" %3d,%3d,%3d #%02x%02x%02x", +<a name="x1795"></a> pixelinfo.<a href="tqstring.html#sprintf">sprintf</a>(" %3d,%3d,%3d #%02x%02x%02x", <a href="ntqcolor.html#qRed">tqRed</a>(px), tqGreen(px), tqBlue(px), <a href="ntqcolor.html#qRed">tqRed</a>(px), tqGreen(px), tqBlue(px)); } - <a href="ntqstring.html">TQString</a> label; - label.<a href="ntqstring.html#sprintf">sprintf</a>( "x=%d, y=%d %s", + <a href="tqstring.html">TQString</a> label; + label.<a href="tqstring.html#sprintf">sprintf</a>( "x=%d, y=%d %s", x+grabx, y+graby, (const char*)pixelinfo ); rgb-><a href="ntqlabel.html#setText">setText</a>( label ); } @@ -400,13 +400,13 @@ void <a name="f490"></a>MagWidget::grabAround(TQPoint pos) { grab(); /* - if ( multiSaveButton-><a href="ntqbutton.html#isOn">isOn</a>() && !multifn.<a href="ntqstring.html#isEmpty">isEmpty</a>() ) { + if ( multiSaveButton-><a href="ntqbutton.html#isOn">isOn</a>() && !multifn.<a href="tqstring.html#isEmpty">isEmpty</a>() ) { <a href="ntqregexp.html">TQRegExp</a> num("[0-9][0-9]*"); int start; int len; <a name="x1791"></a> if ((start=num.<a href="ntqregexp.html#match">match</a>(multifn,0,&len))>=0) -<a name="x1794"></a> multifn.<a href="ntqstring.html#replace">replace</a>(num, -<a name="x1793"></a> TQString().setNum(multifn.<a href="ntqstring.html#mid">mid</a>(start,len).toInt()+1) +<a name="x1794"></a> multifn.<a href="tqstring.html#replace">replace</a>(num, +<a name="x1793"></a> TQString().setNum(multifn.<a href="tqstring.html#mid">mid</a>(start,len).toInt()+1) ); p.<a href="ntqpixmap.html#save">save</a>( multifn, "BMP" ); } |