summaryrefslogtreecommitdiffstats
path: root/doc/html/menu-example.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-10-15 13:05:33 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-10-22 10:05:58 +0900
commit397b7afa8e3f32268c4454bf4783ac2a5a799658 (patch)
tree0b41c33e457556bd2b9371788ddbce25263f00d6 /doc/html/menu-example.html
parent755d46927cc6a5719e695aeb8133be6897de62d8 (diff)
downloadtqt3-397b7afa8e3f32268c4454bf4783ac2a5a799658.tar.gz
tqt3-397b7afa8e3f32268c4454bf4783ac2a5a799658.zip
Rename ntqapplication, ntqconfig and ntqmodules files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/menu-example.html')
-rw-r--r--doc/html/menu-example.html30
1 files changed, 15 insertions, 15 deletions
diff --git a/doc/html/menu-example.html b/doc/html/menu-example.html
index 2d8864374..e91c9ee22 100644
--- a/doc/html/menu-example.html
+++ b/doc/html/menu-example.html
@@ -114,7 +114,7 @@ private:
#include "menu.h"
#include &lt;<a href="tqcursor-h.html">tqcursor.h</a>&gt;
#include &lt;<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>&gt;
-#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
+#include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include &lt;<a href="tqmessagebox-h.html">tqmessagebox.h</a>&gt;
#include &lt;<a href="tqpixmap-h.html">tqpixmap.h</a>&gt;
#include &lt;<a href="tqpainter-h.html">tqpainter.h</a>&gt;
@@ -224,7 +224,7 @@ private:
<a href="tqpixmap.html">TQPixmap</a> p2( p2_xpm );
<a href="tqpixmap.html">TQPixmap</a> p3( p3_xpm );
<a href="tqpopupmenu.html">TQPopupMenu</a> *print = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this );
- <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( print );
+ <a href="tqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( print );
<a name="x1879"></a> print-&gt;<a href="tqpopupmenu.html#insertTearOffHandle">insertTearOffHandle</a>();
<a name="x1869"></a> print-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;Print to printer", this, TQ_SLOT(printer()) );
print-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Print to &amp;file", this, TQ_SLOT(file()) );
@@ -233,7 +233,7 @@ private:
print-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Printer &amp;Setup", this, TQ_SLOT(printerSetup()) );
<a href="tqpopupmenu.html">TQPopupMenu</a> *file = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this );
- <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( file );
+ <a href="tqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( file );
file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( p1, "&amp;Open", this, TQ_SLOT(open()), CTRL+Key_O );
file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( p2, "&amp;New", this, TQ_SLOT(news()), CTRL+Key_N );
file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( p3, "&amp;Save", this, TQ_SLOT(save()), CTRL+Key_S );
@@ -241,17 +241,17 @@ private:
file-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;Print", print, CTRL+Key_P );
file-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
- file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "E&amp;xit", tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()), CTRL+Key_Q );
+ file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "E&amp;xit", tqApp, TQ_SLOT(<a href="tqapplication.html#quit">quit</a>()), CTRL+Key_Q );
<a href="tqpopupmenu.html">TQPopupMenu</a> *edit = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this );
- <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( edit );
+ <a href="tqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( edit );
int undoID = edit-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;Undo", this, TQ_SLOT(undo()) );
int redoID = edit-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;Redo", this, TQ_SLOT(redo()) );
<a name="x1873"></a> edit-&gt;<a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( undoID, FALSE );
edit-&gt;<a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( redoID, FALSE );
<a href="tqpopupmenu.html">TQPopupMenu</a>* options = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this );
- <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( options );
+ <a href="tqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( options );
options-&gt;<a href="tqpopupmenu.html#insertTearOffHandle">insertTearOffHandle</a>();
options-&gt;<a href="tqwidget.html#setCaption">setCaption</a>("Options");
options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;Normal Font", this, TQ_SLOT(normal()) );
@@ -275,13 +275,13 @@ private:
<a href="tqpopupmenu.html">TQPopupMenu</a> *help = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this );
- <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( help );
+ <a href="tqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( help );
help-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;About", this, TQ_SLOT(about()), CTRL+Key_H );
help-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "About &amp;TQt", this, TQ_SLOT(aboutTQt()) );
// If we used a TQMainWindow we could use its built-in menuBar().
menu = new <a href="tqmenubar.html">TQMenuBar</a>( this );
- <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( menu );
+ <a href="tqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( menu );
menu-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;File", file );
menu-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;Edit", edit );
menu-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;Options", options );
@@ -291,7 +291,7 @@ private:
<a href="tqlabel.html">TQLabel</a> *msg = new <a href="tqlabel.html">TQLabel</a>( this );
- <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( msg );
+ <a href="tqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( msg );
msg-&gt;<a href="tqlabel.html#setText">setText</a>( "A context menu is available.\n"
"Invoke it by right-clicking or by"
" pressing the 'context' button." );
@@ -299,7 +299,7 @@ private:
<a name="x1864"></a> msg-&gt;<a href="tqlabel.html#setAlignment">setAlignment</a>( AlignCenter );
label = new <a href="tqlabel.html">TQLabel</a>( this );
- <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( label );
+ <a href="tqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( label );
label-&gt;<a href="tqwidget.html#setGeometry">setGeometry</a>( 20, rect().center().y()-20, width()-40, 40 );
label-&gt;<a href="tqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Box | TQFrame::Raised );
<a name="x1863"></a> label-&gt;<a href="tqframe.html#setLineWidth">setLineWidth</a>( 1 );
@@ -316,7 +316,7 @@ private:
<a name="x1881"></a>void MenuExample::<a href="tqwidget.html#contextMenuEvent">contextMenuEvent</a>( <a href="tqcontextmenuevent.html">TQContextMenuEvent</a> * )
{
<a href="tqpopupmenu.html">TQPopupMenu</a>* contextMenu = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this );
- <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( contextMenu );
+ <a href="tqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( contextMenu );
<a href="tqlabel.html">TQLabel</a> *caption = new <a href="tqlabel.html">TQLabel</a>( "&lt;font color=darkblue&gt;&lt;u&gt;&lt;b&gt;"
"Context Menu&lt;/b&gt;&lt;/u&gt;&lt;/font&gt;", this );
caption-&gt;<a href="tqlabel.html#setAlignment">setAlignment</a>( TQt::AlignCenter );
@@ -325,7 +325,7 @@ private:
contextMenu-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;Open...", this, TQ_SLOT(open()), CTRL+Key_O );
contextMenu-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;Save", this, TQ_SLOT(save()), CTRL+Key_S );
<a href="tqpopupmenu.html">TQPopupMenu</a> *submenu = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this );
- <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( submenu );
+ <a href="tqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( submenu );
submenu-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;Print to printer", this, TQ_SLOT(printer()) );
submenu-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Print to &amp;file", this, TQ_SLOT(file()) );
submenu-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Print to fa&amp;x", this, TQ_SLOT(fax()) );
@@ -450,12 +450,12 @@ void <a name="f516"></a>MenuExample::printerSetup()
int main( int argc, char ** argv )
{
- <a href="ntqapplication.html">TQApplication</a> a( argc, argv );
+ <a href="tqapplication.html">TQApplication</a> a( argc, argv );
MenuExample m;
m.<a href="tqwidget.html#setCaption">setCaption</a>("TQt Examples - Menus");
- a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &amp;m );
+ a.<a href="tqapplication.html#setMainWidget">setMainWidget</a>( &amp;m );
m.<a href="tqwidget.html#show">show</a>();
- return a.<a href="ntqapplication.html#exec">exec</a>();
+ return a.<a href="tqapplication.html#exec">exec</a>();
}
</pre>