diff options
author | Michele Calgaro <[email protected]> | 2024-07-02 21:37:22 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-07-06 11:24:55 +0900 |
commit | 7552c6d73043b1040139033f6864db48ae5446cf (patch) | |
tree | f90d24d072dd3ee6a3f909bf7778abc7669f03ef /doc/html/scribble-example.html | |
parent | c113da2069b66130f67a0f27c699e1cec83588a5 (diff) | |
download | tqt3-7552c6d73043b1040139033f6864db48ae5446cf.tar.gz tqt3-7552c6d73043b1040139033f6864db48ae5446cf.zip |
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 <[email protected]>
Diffstat (limited to 'doc/html/scribble-example.html')
-rw-r--r-- | doc/html/scribble-example.html | 40 |
1 files changed, 20 insertions, 20 deletions
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 <<a href="qmainwindow-h.html">ntqmainwindow.h</a>> +#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>> @@ -103,7 +103,7 @@ protected: }; -class Scribble : public <a href="ntqmainwindow.html">TQMainWindow</a> +class Scribble : public <a href="tqmainwindow.html">TQMainWindow</a> { TQ_OBJECT @@ -114,7 +114,7 @@ protected: Canvas* canvas; <a href="ntqspinbox.html">TQSpinBox</a> *bPWidth; - <a href="ntqtoolbutton.html">TQToolButton</a> *bPColor, *bSave, *bClear; + <a href="tqtoolbutton.html">TQToolButton</a> *bPColor, *bSave, *bClear; protected slots: void slotSave(); @@ -144,10 +144,10 @@ protected slots: #include <<a href="qapplication-h.html">ntqapplication.h</a>> #include <<a href="qevent-h.html">ntqevent.h</a>> #include <<a href="qpainter-h.html">ntqpainter.h</a>> -#include <<a href="qtoolbar-h.html">ntqtoolbar.h</a>> -#include <<a href="qtoolbutton-h.html">ntqtoolbutton.h</a>> +#include <<a href="tqtoolbar-h.html">tqtoolbar.h</a>> +#include <<a href="tqtoolbutton-h.html">tqtoolbutton.h</a>> #include <<a href="qspinbox-h.html">ntqspinbox.h</a>> -#include <<a href="qtooltip-h.html">ntqtooltip.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="qcolordialog-h.html">ntqcolordialog.h</a>> @@ -155,7 +155,7 @@ protected slots: #include <<a href="qcursor-h.html">ntqcursor.h</a>> #include <<a href="tqimage-h.html">tqimage.h</a>> #include <<a href="tqstrlist-h.html">tqstrlist.h</a>> -#include <<a href="qpopupmenu-h.html">ntqpopupmenu.h</a>> +#include <<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>> #include <<a href="qintdict-h.html">ntqintdict.h</a>> const bool no_writing = FALSE; @@ -248,47 +248,47 @@ void <a name="f340"></a>Canvas::clearScreen() //------------------------------------------------------ <a name="f341"></a>Scribble::Scribble( <a href="tqwidget.html">TQWidget</a> *parent, const char *name ) - : <a href="ntqmainwindow.html">TQMainWindow</a>( parent, name ) + : <a href="tqmainwindow.html">TQMainWindow</a>( parent, name ) { canvas = new Canvas( this ); - <a href="ntqmainwindow.html#setCentralWidget">setCentralWidget</a>( canvas ); + <a href="tqmainwindow.html#setCentralWidget">setCentralWidget</a>( canvas ); - <a href="ntqtoolbar.html">TQToolBar</a> *tools = new <a href="ntqtoolbar.html">TQToolBar</a>( this ); + <a href="tqtoolbar.html">TQToolBar</a> *tools = new <a href="tqtoolbar.html">TQToolBar</a>( this ); - bSave = new <a href="ntqtoolbutton.html">TQToolButton</a>( TQPixmap(), "Save", "Save as PNG image", this, TQ_SLOT( slotSave() ), tools ); + bSave = new <a href="tqtoolbutton.html">TQToolButton</a>( TQPixmap(), "Save", "Save as PNG image", this, TQ_SLOT( slotSave() ), tools ); <a name="x944"></a> bSave-><a href="ntqbutton.html#setText">setText</a>( "Save as..." ); -<a name="x943"></a> tools-><a href="ntqtoolbar.html#addSeparator">addSeparator</a>(); +<a name="x943"></a> tools-><a href="tqtoolbar.html#addSeparator">addSeparator</a>(); - bPColor = new <a href="ntqtoolbutton.html">TQToolButton</a>( TQPixmap(), "Choose Pen Color", "Choose Pen Color", this, TQ_SLOT( slotColor() ), tools ); + bPColor = new <a href="tqtoolbutton.html">TQToolButton</a>( TQPixmap(), "Choose Pen Color", "Choose Pen Color", this, TQ_SLOT( slotColor() ), tools ); bPColor-><a href="ntqbutton.html#setText">setText</a>( "Choose Pen Color..." ); - tools-><a href="ntqtoolbar.html#addSeparator">addSeparator</a>(); + tools-><a href="tqtoolbar.html#addSeparator">addSeparator</a>(); bPWidth = new <a href="ntqspinbox.html">TQSpinBox</a>( 1, 20, 1, tools ); -<a name="x945"></a> TQToolTip::<a href="ntqtooltip.html#add">add</a>( bPWidth, "Choose Pen Width" ); +<a name="x945"></a> TQToolTip::<a href="tqtooltip.html#add">add</a>( bPWidth, "Choose Pen Width" ); <a name="x939"></a> <a href="tqobject.html#connect">connect</a>( bPWidth, TQ_SIGNAL( <a href="ntqspinbox.html#valueChanged">valueChanged</a>( int ) ), this, TQ_SLOT( slotWidth( int ) ) ); <a name="x938"></a> bPWidth-><a href="ntqspinbox.html#setValue">setValue</a>( 3 ); - tools-><a href="ntqtoolbar.html#addSeparator">addSeparator</a>(); + tools-><a href="tqtoolbar.html#addSeparator">addSeparator</a>(); - bClear = new <a href="ntqtoolbutton.html">TQToolButton</a>( TQPixmap(), "Clear Screen", "Clear Screen", this, TQ_SLOT( slotClear() ), tools ); + bClear = new <a href="tqtoolbutton.html">TQToolButton</a>( TQPixmap(), "Clear Screen", "Clear Screen", this, TQ_SLOT( slotClear() ), tools ); bClear-><a href="ntqbutton.html#setText">setText</a>( "Clear Screen" ); } void <a name="f342"></a>Scribble::slotSave() { - <a href="ntqpopupmenu.html">TQPopupMenu</a> *menu = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( 0 ); + <a href="tqpopupmenu.html">TQPopupMenu</a> *menu = new <a href="tqpopupmenu.html">TQPopupMenu</a>( 0 ); <a href="ntqintdict.html">TQIntDict</a><TQString> formats; <a name="x924"></a> formats.<a href="tqptrcollection.html#setAutoDelete">setAutoDelete</a>( TRUE ); for ( unsigned int i = 0; i < TQImageIO::<a href="tqimageio.html#outputFormats">outputFormats</a>().count(); i++ ) { <a name="x911"></a> <a href="tqstring.html">TQString</a> str = TQString( TQImageIO::<a href="tqimageio.html#outputFormats">outputFormats</a>().at( i ) ); -<a name="x912"></a> formats.<a href="ntqintdict.html#insert">insert</a>( menu-><a href="ntqmenudata.html#insertItem">insertItem</a>( TQString( "%1..." ).arg( str ) ), new <a href="tqstring.html">TQString</a>( str ) ); +<a name="x912"></a> formats.<a href="ntqintdict.html#insert">insert</a>( menu-><a href="tqmenudata.html#insertItem">insertItem</a>( TQString( "%1..." ).arg( str ) ), new <a href="tqstring.html">TQString</a>( str ) ); } <a name="x953"></a> menu-><a href="tqwidget.html#setMouseTracking">setMouseTracking</a>( TRUE ); -<a name="x947"></a><a name="x946"></a><a name="x923"></a> int id = menu-><a href="ntqpopupmenu.html#exec">exec</a>( bSave-><a href="tqwidget.html#mapToGlobal">mapToGlobal</a>( TQPoint( 0, bSave-><a href="tqwidget.html#height">height</a>() + 1 ) ) ); +<a name="x947"></a><a name="x946"></a><a name="x923"></a> int id = menu-><a href="tqpopupmenu.html#exec">exec</a>( bSave-><a href="tqwidget.html#mapToGlobal">mapToGlobal</a>( TQPoint( 0, bSave-><a href="tqwidget.html#height">height</a>() + 1 ) ) ); if ( id != -1 ) { <a href="tqstring.html">TQString</a> format = *formats[ id ]; |