From 7552c6d73043b1040139033f6864db48ae5446cf Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 2 Jul 2024 21:37:22 +0900 Subject: Rename main window nt* related files to equivalent tq*. The file "ntqsession.h" was totally unnecessary and has been removed. Signed-off-by: Michele Calgaro --- doc/html/scribble-example.html | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'doc/html/scribble-example.html') diff --git a/doc/html/scribble-example.html b/doc/html/scribble-example.html index aef0d91b5..bad11b1c1 100644 --- a/doc/html/scribble-example.html +++ b/doc/html/scribble-example.html @@ -50,7 +50,7 @@ in the canvas with different pens and save the result as picture. #ifndef SCRIBBLE_H #define SCRIBBLE_H -#include <ntqmainwindow.h> +#include <tqmainwindow.h> #include <ntqpen.h> #include <ntqpoint.h> #include <ntqpixmap.h> @@ -103,7 +103,7 @@ protected: }; -class Scribble : public TQMainWindow +class Scribble : public TQMainWindow { TQ_OBJECT @@ -114,7 +114,7 @@ protected: Canvas* canvas; TQSpinBox *bPWidth; - TQToolButton *bPColor, *bSave, *bClear; + TQToolButton *bPColor, *bSave, *bClear; protected slots: void slotSave(); @@ -144,10 +144,10 @@ protected slots: #include <ntqapplication.h> #include <ntqevent.h> #include <ntqpainter.h> -#include <ntqtoolbar.h> -#include <ntqtoolbutton.h> +#include <tqtoolbar.h> +#include <tqtoolbutton.h> #include <ntqspinbox.h> -#include <ntqtooltip.h> +#include <tqtooltip.h> #include <ntqrect.h> #include <ntqpoint.h> #include <ntqcolordialog.h> @@ -155,7 +155,7 @@ protected slots: #include <ntqcursor.h> #include <tqimage.h> #include <tqstrlist.h> -#include <ntqpopupmenu.h> +#include <tqpopupmenu.h> #include <ntqintdict.h> const bool no_writing = FALSE; @@ -248,47 +248,47 @@ void Canvas::clearScreen() //------------------------------------------------------ Scribble::Scribble( TQWidget *parent, const char *name ) - : TQMainWindow( parent, name ) + : TQMainWindow( parent, name ) { canvas = new Canvas( this ); - setCentralWidget( canvas ); + setCentralWidget( canvas ); - TQToolBar *tools = new TQToolBar( this ); + TQToolBar *tools = new TQToolBar( this ); - bSave = new TQToolButton( TQPixmap(), "Save", "Save as PNG image", this, TQ_SLOT( slotSave() ), tools ); + bSave = new TQToolButton( TQPixmap(), "Save", "Save as PNG image", this, TQ_SLOT( slotSave() ), tools ); bSave->setText( "Save as..." ); - tools->addSeparator(); + tools->addSeparator(); - bPColor = new TQToolButton( TQPixmap(), "Choose Pen Color", "Choose Pen Color", this, TQ_SLOT( slotColor() ), tools ); + bPColor = new TQToolButton( TQPixmap(), "Choose Pen Color", "Choose Pen Color", this, TQ_SLOT( slotColor() ), tools ); bPColor->setText( "Choose Pen Color..." ); - tools->addSeparator(); + tools->addSeparator(); bPWidth = new TQSpinBox( 1, 20, 1, tools ); - TQToolTip::add( bPWidth, "Choose Pen Width" ); + TQToolTip::add( bPWidth, "Choose Pen Width" ); connect( bPWidth, TQ_SIGNAL( valueChanged( int ) ), this, TQ_SLOT( slotWidth( int ) ) ); bPWidth->setValue( 3 ); - tools->addSeparator(); + tools->addSeparator(); - bClear = new TQToolButton( TQPixmap(), "Clear Screen", "Clear Screen", this, TQ_SLOT( slotClear() ), tools ); + bClear = new TQToolButton( TQPixmap(), "Clear Screen", "Clear Screen", this, TQ_SLOT( slotClear() ), tools ); bClear->setText( "Clear Screen" ); } void Scribble::slotSave() { - TQPopupMenu *menu = new TQPopupMenu( 0 ); + TQPopupMenu *menu = new TQPopupMenu( 0 ); TQIntDict<TQString> formats; formats.setAutoDelete( TRUE ); for ( unsigned int i = 0; i < TQImageIO::outputFormats().count(); i++ ) { TQString str = TQString( TQImageIO::outputFormats().at( i ) ); - formats.insert( menu->insertItem( TQString( "%1..." ).arg( str ) ), new TQString( str ) ); + formats.insert( menu->insertItem( TQString( "%1..." ).arg( str ) ), new TQString( str ) ); } menu->setMouseTracking( TRUE ); - int id = menu->exec( bSave->mapToGlobal( TQPoint( 0, bSave->height() + 1 ) ) ); + int id = menu->exec( bSave->mapToGlobal( TQPoint( 0, bSave->height() + 1 ) ) ); if ( id != -1 ) { TQString format = *formats[ id ]; -- cgit v1.2.1