diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-10-15 13:05:33 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-10-22 10:05:58 +0900 |
commit | 397b7afa8e3f32268c4454bf4783ac2a5a799658 (patch) | |
tree | 0b41c33e457556bd2b9371788ddbce25263f00d6 /doc/html/menu-example.html | |
parent | 755d46927cc6a5719e695aeb8133be6897de62d8 (diff) | |
download | tqt3-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.html | 30 |
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 <<a href="tqcursor-h.html">tqcursor.h</a>> #include <<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>> -#include <<a href="qapplication-h.html">ntqapplication.h</a>> +#include <<a href="tqapplication-h.html">tqapplication.h</a>> #include <<a href="tqmessagebox-h.html">tqmessagebox.h</a>> #include <<a href="tqpixmap-h.html">tqpixmap.h</a>> #include <<a href="tqpainter-h.html">tqpainter.h</a>> @@ -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-><a href="tqpopupmenu.html#insertTearOffHandle">insertTearOffHandle</a>(); <a name="x1869"></a> print-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Print to printer", this, TQ_SLOT(printer()) ); print-><a href="tqmenudata.html#insertItem">insertItem</a>( "Print to &file", this, TQ_SLOT(file()) ); @@ -233,7 +233,7 @@ private: print-><a href="tqmenudata.html#insertItem">insertItem</a>( "Printer &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-><a href="tqmenudata.html#insertItem">insertItem</a>( p1, "&Open", this, TQ_SLOT(open()), CTRL+Key_O ); file-><a href="tqmenudata.html#insertItem">insertItem</a>( p2, "&New", this, TQ_SLOT(news()), CTRL+Key_N ); file-><a href="tqmenudata.html#insertItem">insertItem</a>( p3, "&Save", this, TQ_SLOT(save()), CTRL+Key_S ); @@ -241,17 +241,17 @@ private: file-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); file-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Print", print, CTRL+Key_P ); file-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); - file-><a href="tqmenudata.html#insertItem">insertItem</a>( "E&xit", tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()), CTRL+Key_Q ); + file-><a href="tqmenudata.html#insertItem">insertItem</a>( "E&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-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Undo", this, TQ_SLOT(undo()) ); int redoID = edit-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Redo", this, TQ_SLOT(redo()) ); <a name="x1873"></a> edit-><a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( undoID, FALSE ); edit-><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-><a href="tqpopupmenu.html#insertTearOffHandle">insertTearOffHandle</a>(); options-><a href="tqwidget.html#setCaption">setCaption</a>("Options"); options-><a href="tqmenudata.html#insertItem">insertItem</a>( "&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-><a href="tqmenudata.html#insertItem">insertItem</a>( "&About", this, TQ_SLOT(about()), CTRL+Key_H ); help-><a href="tqmenudata.html#insertItem">insertItem</a>( "About &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-><a href="tqmenudata.html#insertItem">insertItem</a>( "&File", file ); menu-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Edit", edit ); menu-><a href="tqmenudata.html#insertItem">insertItem</a>( "&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-><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-><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-><a href="tqwidget.html#setGeometry">setGeometry</a>( 20, rect().center().y()-20, width()-40, 40 ); label-><a href="tqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Box | TQFrame::Raised ); <a name="x1863"></a> label-><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>( "<font color=darkblue><u><b>" "Context Menu</b></u></font>", this ); caption-><a href="tqlabel.html#setAlignment">setAlignment</a>( TQt::AlignCenter ); @@ -325,7 +325,7 @@ private: contextMenu-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Open...", this, TQ_SLOT(open()), CTRL+Key_O ); contextMenu-><a href="tqmenudata.html#insertItem">insertItem</a>( "&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-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Print to printer", this, TQ_SLOT(printer()) ); submenu-><a href="tqmenudata.html#insertItem">insertItem</a>( "Print to &file", this, TQ_SLOT(file()) ); submenu-><a href="tqmenudata.html#insertItem">insertItem</a>( "Print to fa&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>( &m ); + a.<a href="tqapplication.html#setMainWidget">setMainWidget</a>( &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> |