diff options
Diffstat (limited to 'doc/html/scribble-example.html')
-rw-r--r-- | doc/html/scribble-example.html | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/doc/html/scribble-example.html b/doc/html/scribble-example.html index 6d0ee2343..9b93e3c5a 100644 --- a/doc/html/scribble-example.html +++ b/doc/html/scribble-example.html @@ -51,12 +51,12 @@ in the canvas with different pens and save the result as picture. #define SCRIBBLE_H #include <<a href="tqmainwindow-h.html">tqmainwindow.h</a>> -#include <<a href="qpen-h.html">ntqpen.h</a>> -#include <<a href="qpoint-h.html">ntqpoint.h</a>> -#include <<a href="qpixmap-h.html">ntqpixmap.h</a>> +#include <<a href="tqpen-h.html">tqpen.h</a>> +#include <<a href="tqpoint-h.html">tqpoint.h</a>> +#include <<a href="tqpixmap-h.html">tqpixmap.h</a>> #include <<a href="tqwidget-h.html">tqwidget.h</a>> #include <<a href="tqstring-h.html">tqstring.h</a>> -#include <<a href="qpointarray-h.html">ntqpointarray.h</a>> +#include <<a href="tqpointarray-h.html">tqpointarray.h</a>> class TQMouseEvent; class TQResizeEvent; @@ -72,16 +72,16 @@ public: Canvas( <a href="tqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ); void setPenColor( const <a href="tqcolor.html">TQColor</a> &c ) -<a name="x903"></a> { pen.<a href="ntqpen.html#setColor">setColor</a>( c ); } +<a name="x903"></a> { pen.<a href="tqpen.html#setColor">setColor</a>( c ); } void setPenWidth( int w ) -<a name="x904"></a> { pen.<a href="ntqpen.html#setWidth">setWidth</a>( w ); } +<a name="x904"></a> { pen.<a href="tqpen.html#setWidth">setWidth</a>( w ); } <a href="tqcolor.html">TQColor</a> penColor() -<a name="x902"></a> { return pen.<a href="ntqpen.html#color">color</a>(); } +<a name="x902"></a> { return pen.<a href="tqpen.html#color">color</a>(); } int penWidth() -<a name="x905"></a> { return pen.<a href="ntqpen.html#width">width</a>(); } +<a name="x905"></a> { return pen.<a href="tqpen.html#width">width</a>(); } void save( const <a href="tqstring.html">TQString</a> &filename, const <a href="tqstring.html">TQString</a> &format ); @@ -94,12 +94,12 @@ protected: void resizeEvent( <a href="qresizeevent.html">TQResizeEvent</a> *e ); void paintEvent( <a href="tqpaintevent.html">TQPaintEvent</a> *e ); - <a href="ntqpen.html">TQPen</a> pen; - <a href="ntqpointarray.html">TQPointArray</a> polyline; + <a href="tqpen.html">TQPen</a> pen; + <a href="tqpointarray.html">TQPointArray</a> polyline; bool mousePressed; - <a href="ntqpixmap.html">TQPixmap</a> buffer; + <a href="tqpixmap.html">TQPixmap</a> buffer; }; @@ -148,8 +148,8 @@ protected slots: #include <<a href="tqtoolbutton-h.html">tqtoolbutton.h</a>> #include <<a href="qspinbox-h.html">ntqspinbox.h</a>> #include <<a href="tqtooltip-h.html">tqtooltip.h</a>> -#include <<a href="qrect-h.html">ntqrect.h</a>> -#include <<a href="qpoint-h.html">ntqpoint.h</a>> +#include <<a href="tqrect-h.html">tqrect.h</a>> +#include <<a href="tqpoint-h.html">tqpoint.h</a>> #include <<a href="tqcolordialog-h.html">tqcolordialog.h</a>> #include <<a href="tqfiledialog-h.html">tqfiledialog.h</a>> #include <<a href="qcursor-h.html">ntqcursor.h</a>> @@ -208,14 +208,14 @@ void <a name="f340"></a>Canvas::clearScreen() <a name="x917"></a> painter.<a href="tqpainter.html#drawPolyline">drawPolyline</a>( polyline ); <a name="x918"></a> painter.<a href="tqpainter.html#end">end</a>(); - <a href="ntqrect.html">TQRect</a> r = polyline.boundingRect(); -<a name="x928"></a> r = r.<a href="ntqrect.html#normalize">normalize</a>(); -<a name="x931"></a><a name="x927"></a> r.<a href="ntqrect.html#setLeft">setLeft</a>( r.<a href="ntqrect.html#left">left</a>() - penWidth() ); -<a name="x934"></a><a name="x933"></a> r.<a href="ntqrect.html#setTop">setTop</a>( r.<a href="ntqrect.html#top">top</a>() - penWidth() ); -<a name="x932"></a><a name="x929"></a> r.<a href="ntqrect.html#setRight">setRight</a>( r.<a href="ntqrect.html#right">right</a>() + penWidth() ); -<a name="x930"></a><a name="x925"></a> r.<a href="ntqrect.html#setBottom">setBottom</a>( r.<a href="ntqrect.html#bottom">bottom</a>() + penWidth() ); + <a href="tqrect.html">TQRect</a> r = polyline.boundingRect(); +<a name="x928"></a> r = r.<a href="tqrect.html#normalize">normalize</a>(); +<a name="x931"></a><a name="x927"></a> r.<a href="tqrect.html#setLeft">setLeft</a>( r.<a href="tqrect.html#left">left</a>() - penWidth() ); +<a name="x934"></a><a name="x933"></a> r.<a href="tqrect.html#setTop">setTop</a>( r.<a href="tqrect.html#top">top</a>() - penWidth() ); +<a name="x932"></a><a name="x929"></a> r.<a href="tqrect.html#setRight">setRight</a>( r.<a href="tqrect.html#right">right</a>() + penWidth() ); +<a name="x930"></a><a name="x925"></a> r.<a href="tqrect.html#setBottom">setBottom</a>( r.<a href="tqrect.html#bottom">bottom</a>() + penWidth() ); -<a name="x937"></a><a name="x936"></a><a name="x926"></a> <a href="tqimage.html#bitBlt">bitBlt</a>( this, r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#y">y</a>(), &buffer, r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#y">y</a>(), r.<a href="ntqrect.html#width">width</a>(), r.<a href="ntqrect.html#height">height</a>() ); +<a name="x937"></a><a name="x936"></a><a name="x926"></a> <a href="tqimage.html#bitBlt">bitBlt</a>( this, r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), &buffer, r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), r.<a href="tqrect.html#width">width</a>(), r.<a href="tqrect.html#height">height</a>() ); } } @@ -228,10 +228,10 @@ void <a name="f340"></a>Canvas::clearScreen() int h = <a href="tqwidget.html#height">height</a>() > buffer.height() ? <a href="tqwidget.html#height">height</a>() : buffer.height(); - <a href="ntqpixmap.html">TQPixmap</a> tmp( buffer ); + <a href="tqpixmap.html">TQPixmap</a> tmp( buffer ); buffer.resize( w, h ); buffer.fill( <a href="tqwidget.html#colorGroup">colorGroup</a>().base() ); -<a name="x922"></a><a name="x921"></a> <a href="tqimage.html#bitBlt">bitBlt</a>( &buffer, 0, 0, &tmp, 0, 0, tmp.<a href="ntqpixmap.html#width">width</a>(), tmp.<a href="ntqpixmap.html#height">height</a>() ); +<a name="x922"></a><a name="x921"></a> <a href="tqimage.html#bitBlt">bitBlt</a>( &buffer, 0, 0, &tmp, 0, 0, tmp.<a href="tqpixmap.html#width">width</a>(), tmp.<a href="tqpixmap.html#height">height</a>() ); } <a name="x951"></a>void Canvas::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="tqpaintevent.html">TQPaintEvent</a> *e ) @@ -240,8 +240,8 @@ void <a name="f340"></a>Canvas::clearScreen() <a name="x920"></a> <a href="tqmemarray.html">TQMemArray</a><TQRect> rects = e-><a href="tqpaintevent.html#region">region</a>().rects(); <a name="x913"></a> for ( uint i = 0; i < rects.<a href="tqmemarray.html#count">count</a>(); i++ ) { - <a href="ntqrect.html">TQRect</a> r = rects[(int)i]; - <a href="tqimage.html#bitBlt">bitBlt</a>( this, r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#y">y</a>(), &buffer, r.<a href="ntqrect.html#x">x</a>(), r.<a href="ntqrect.html#y">y</a>(), r.<a href="ntqrect.html#width">width</a>(), r.<a href="ntqrect.html#height">height</a>() ); + <a href="tqrect.html">TQRect</a> r = rects[(int)i]; + <a href="tqimage.html#bitBlt">bitBlt</a>( this, r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), &buffer, r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), r.<a href="tqrect.html#width">width</a>(), r.<a href="tqrect.html#height">height</a>() ); } } |