From 1e9fa8e06de5da7fcc268e9cccb2d6b21c5f53a3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 20 Jul 2024 20:15:52 +0900 Subject: Rename graphics class nt* related files to equivalent tq* (part 2) Signed-off-by: Michele Calgaro --- doc/html/scribble-example.html | 48 +++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'doc/html/scribble-example.html') 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 <tqmainwindow.h> -#include <ntqpen.h> -#include <ntqpoint.h> -#include <ntqpixmap.h> +#include <tqpen.h> +#include <tqpoint.h> +#include <tqpixmap.h> #include <tqwidget.h> #include <tqstring.h> -#include <ntqpointarray.h> +#include <tqpointarray.h> class TQMouseEvent; class TQResizeEvent; @@ -72,16 +72,16 @@ public: Canvas( TQWidget *parent = 0, const char *name = 0 ); void setPenColor( const TQColor &c ) - { pen.setColor( c ); } + { pen.setColor( c ); } void setPenWidth( int w ) - { pen.setWidth( w ); } + { pen.setWidth( w ); } TQColor penColor() - { return pen.color(); } + { return pen.color(); } int penWidth() - { return pen.width(); } + { return pen.width(); } void save( const TQString &filename, const TQString &format ); @@ -94,12 +94,12 @@ protected: void resizeEvent( TQResizeEvent *e ); void paintEvent( TQPaintEvent *e ); - TQPen pen; - TQPointArray polyline; + TQPen pen; + TQPointArray polyline; bool mousePressed; - TQPixmap buffer; + TQPixmap buffer; }; @@ -148,8 +148,8 @@ protected slots: #include <tqtoolbutton.h> #include <ntqspinbox.h> #include <tqtooltip.h> -#include <ntqrect.h> -#include <ntqpoint.h> +#include <tqrect.h> +#include <tqpoint.h> #include <tqcolordialog.h> #include <tqfiledialog.h> #include <ntqcursor.h> @@ -208,14 +208,14 @@ void Canvas::clearScreen() painter.drawPolyline( polyline ); painter.end(); - TQRect r = polyline.boundingRect(); - r = r.normalize(); - r.setLeft( r.left() - penWidth() ); - r.setTop( r.top() - penWidth() ); - r.setRight( r.right() + penWidth() ); - r.setBottom( r.bottom() + penWidth() ); + TQRect r = polyline.boundingRect(); + r = r.normalize(); + r.setLeft( r.left() - penWidth() ); + r.setTop( r.top() - penWidth() ); + r.setRight( r.right() + penWidth() ); + r.setBottom( r.bottom() + penWidth() ); - bitBlt( this, r.x(), r.y(), &buffer, r.x(), r.y(), r.width(), r.height() ); + bitBlt( this, r.x(), r.y(), &buffer, r.x(), r.y(), r.width(), r.height() ); } } @@ -228,10 +228,10 @@ void Canvas::clearScreen() int h = height() > buffer.height() ? height() : buffer.height(); - TQPixmap tmp( buffer ); + TQPixmap tmp( buffer ); buffer.resize( w, h ); buffer.fill( colorGroup().base() ); - bitBlt( &buffer, 0, 0, &tmp, 0, 0, tmp.width(), tmp.height() ); + bitBlt( &buffer, 0, 0, &tmp, 0, 0, tmp.width(), tmp.height() ); } void Canvas::paintEvent( TQPaintEvent *e ) @@ -240,8 +240,8 @@ void Canvas::clearScreen() TQMemArray<TQRect> rects = e->region().rects(); for ( uint i = 0; i < rects.count(); i++ ) { - TQRect r = rects[(int)i]; - bitBlt( this, r.x(), r.y(), &buffer, r.x(), r.y(), r.width(), r.height() ); + TQRect r = rects[(int)i]; + bitBlt( this, r.x(), r.y(), &buffer, r.x(), r.y(), r.width(), r.height() ); } } -- cgit v1.2.3