diff options
Diffstat (limited to 'doc/html/menu-example.html')
-rw-r--r-- | doc/html/menu-example.html | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/doc/html/menu-example.html b/doc/html/menu-example.html index 891614463..1ae81bcf5 100644 --- a/doc/html/menu-example.html +++ b/doc/html/menu-example.html @@ -227,27 +227,27 @@ private: <a href="ntqpopupmenu.html">TQPopupMenu</a> *print = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( print ); <a name="x1879"></a> print-><a href="ntqpopupmenu.html#insertTearOffHandle">insertTearOffHandle</a>(); -<a name="x1869"></a> print-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Print to printer", this, SLOT(printer()) ); - print-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Print to &file", this, SLOT(file()) ); - print-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Print to fa&x", this, SLOT(fax()) ); +<a name="x1869"></a> print-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Print to printer", this, TQ_SLOT(printer()) ); + print-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Print to &file", this, TQ_SLOT(file()) ); + print-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Print to fa&x", this, TQ_SLOT(fax()) ); <a name="x1870"></a> print-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - print-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Printer &Setup", this, SLOT(printerSetup()) ); + print-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Printer &Setup", this, TQ_SLOT(printerSetup()) ); <a href="ntqpopupmenu.html">TQPopupMenu</a> *file = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( file ); - file-><a href="ntqmenudata.html#insertItem">insertItem</a>( p1, "&Open", this, SLOT(open()), CTRL+Key_O ); - file-><a href="ntqmenudata.html#insertItem">insertItem</a>( p2, "&New", this, SLOT(news()), CTRL+Key_N ); - file-><a href="ntqmenudata.html#insertItem">insertItem</a>( p3, "&Save", this, SLOT(save()), CTRL+Key_S ); - file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Close", this, SLOT(closeDoc()), CTRL+Key_W ); + file-><a href="ntqmenudata.html#insertItem">insertItem</a>( p1, "&Open", this, TQ_SLOT(open()), CTRL+Key_O ); + file-><a href="ntqmenudata.html#insertItem">insertItem</a>( p2, "&New", this, TQ_SLOT(news()), CTRL+Key_N ); + file-><a href="ntqmenudata.html#insertItem">insertItem</a>( p3, "&Save", this, TQ_SLOT(save()), CTRL+Key_S ); + file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Close", this, TQ_SLOT(closeDoc()), CTRL+Key_W ); file-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Print", print, CTRL+Key_P ); file-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "E&xit", tqApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()), CTRL+Key_Q ); + file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "E&xit", tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()), CTRL+Key_Q ); <a href="ntqpopupmenu.html">TQPopupMenu</a> *edit = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( edit ); - int undoID = edit-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Undo", this, SLOT(undo()) ); - int redoID = edit-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Redo", this, SLOT(redo()) ); + int undoID = edit-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Undo", this, TQ_SLOT(undo()) ); + int redoID = edit-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Redo", this, TQ_SLOT(redo()) ); <a name="x1873"></a> edit-><a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( undoID, FALSE ); edit-><a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( redoID, FALSE ); @@ -255,7 +255,7 @@ private: <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( options ); options-><a href="ntqpopupmenu.html#insertTearOffHandle">insertTearOffHandle</a>(); options-><a href="ntqwidget.html#setCaption">setCaption</a>("Options"); - options-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Normal Font", this, SLOT(normal()) ); + options-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Normal Font", this, TQ_SLOT(normal()) ); options-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); <a name="x1883"></a> options-><a href="ntqwidget.html#polish">polish</a>(); // adjust system settings @@ -263,12 +263,12 @@ private: <a name="x1860"></a> f.<a href="ntqfont.html#setBold">setBold</a>( TRUE ); boldID = options-><a href="ntqmenudata.html#insertItem">insertItem</a>( new MyMenuItem( "Bold", f ) ); <a name="x1871"></a> options-><a href="ntqmenudata.html#setAccel">setAccel</a>( CTRL+Key_B, boldID ); -<a name="x1868"></a> options-><a href="ntqmenudata.html#connectItem">connectItem</a>( boldID, this, SLOT(bold()) ); +<a name="x1868"></a> options-><a href="ntqmenudata.html#connectItem">connectItem</a>( boldID, this, TQ_SLOT(bold()) ); f = <a href="ntqwidget.html#font">font</a>(); <a name="x1861"></a> f.<a href="ntqfont.html#setUnderline">setUnderline</a>( TRUE ); underlineID = options-><a href="ntqmenudata.html#insertItem">insertItem</a>( new MyMenuItem( "Underline", f ) ); options-><a href="ntqmenudata.html#setAccel">setAccel</a>( CTRL+Key_U, underlineID ); - options-><a href="ntqmenudata.html#connectItem">connectItem</a>( underlineID, this, SLOT(underline()) ); + options-><a href="ntqmenudata.html#connectItem">connectItem</a>( underlineID, this, TQ_SLOT(underline()) ); isBold = FALSE; isUnderline = FALSE; @@ -277,8 +277,8 @@ private: <a href="ntqpopupmenu.html">TQPopupMenu</a> *help = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( help ); - help-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&About", this, SLOT(about()), CTRL+Key_H ); - help-><a href="ntqmenudata.html#insertItem">insertItem</a>( "About &TQt", this, SLOT(aboutTQt()) ); + help-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&About", this, TQ_SLOT(about()), CTRL+Key_H ); + help-><a href="ntqmenudata.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="ntqmenubar.html">TQMenuBar</a>( this ); @@ -306,8 +306,8 @@ private: <a name="x1863"></a> label-><a href="ntqframe.html#setLineWidth">setLineWidth</a>( 1 ); label-><a href="ntqlabel.html#setAlignment">setAlignment</a>( AlignCenter ); - <a href="ntqobject.html#connect">connect</a>( this, SIGNAL(explain(const <a href="ntqstring.html">TQString</a>&)), - label, SLOT(<a href="ntqlabel.html#setText">setText</a>(const <a href="ntqstring.html">TQString</a>&)) ); + <a href="ntqobject.html#connect">connect</a>( this, TQ_SIGNAL(explain(const <a href="ntqstring.html">TQString</a>&)), + label, TQ_SLOT(<a href="ntqlabel.html#setText">setText</a>(const <a href="ntqstring.html">TQString</a>&)) ); <a href="ntqwidget.html#setMinimumSize">setMinimumSize</a>( 100, 80 ); <a href="ntqwidget.html#setFocusPolicy">setFocusPolicy</a>( TQWidget::ClickFocus ); @@ -322,14 +322,14 @@ private: "Context Menu</b></u></font>", this ); caption-><a href="ntqlabel.html#setAlignment">setAlignment</a>( TQt::AlignCenter ); contextMenu-><a href="ntqmenudata.html#insertItem">insertItem</a>( caption ); - contextMenu-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&New", this, SLOT(news()), CTRL+Key_N ); - contextMenu-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Open...", this, SLOT(open()), CTRL+Key_O ); - contextMenu-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Save", this, SLOT(save()), CTRL+Key_S ); + contextMenu-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&New", this, TQ_SLOT(news()), CTRL+Key_N ); + contextMenu-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Open...", this, TQ_SLOT(open()), CTRL+Key_O ); + contextMenu-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Save", this, TQ_SLOT(save()), CTRL+Key_S ); <a href="ntqpopupmenu.html">TQPopupMenu</a> *submenu = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( submenu ); - submenu-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Print to printer", this, SLOT(printer()) ); - submenu-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Print to &file", this, SLOT(file()) ); - submenu-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Print to fa&x", this, SLOT(fax()) ); + submenu-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Print to printer", this, TQ_SLOT(printer()) ); + submenu-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Print to &file", this, TQ_SLOT(file()) ); + submenu-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Print to fa&x", this, TQ_SLOT(fax()) ); contextMenu-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Print", submenu ); <a name="x1878"></a><a name="x1859"></a> contextMenu-><a href="ntqpopupmenu.html#exec">exec</a>( TQCursor::<a href="ntqcursor.html#pos">pos</a>() ); delete contextMenu; |