diff options
Diffstat (limited to 'doc/html/simple-application.html')
-rw-r--r-- | doc/html/simple-application.html | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/html/simple-application.html b/doc/html/simple-application.html index 0c8c62fea..91df8c6f2 100644 --- a/doc/html/simple-application.html +++ b/doc/html/simple-application.html @@ -36,7 +36,7 @@ body { background: #ffffff; color: black; } <p> This walkthrough shows simple use of <a href="tqmainwindow.html">TQMainWindow</a>, <a href="tqmenubar.html">TQMenuBar</a>, <a href="tqpopupmenu.html">TQPopupMenu</a>, <a href="tqtoolbar.html">TQToolBar</a> and <a href="tqstatusbar.html">TQStatusBar</a> - classes that every modern application window tends to use. (See also <a href="tutorial2.html">Tutorial #2</a>.) <p> It also illustrates some aspects of <a href="tqwhatsthis.html">TQWhatsThis</a> (for simple help) and a -typical <tt>main()</tt> using <a href="ntqapplication.html">TQApplication</a>. +typical <tt>main()</tt> using <a href="tqapplication.html">TQApplication</a>. <p> Finally, it shows a typical print function based on <a href="tqprinter.html">TQPrinter</a>. <p> <h2> The declaration of ApplicationWindow </h2> @@ -109,16 +109,16 @@ includes <tt>application.h</tt> when <a href="tqtextedit-h.html">tqtextedit.h</a ** *****************************************************************************/ -#include <<a href="qapplication-h.html">ntqapplication.h</a>> +#include <<a href="tqapplication-h.html">tqapplication.h</a>> #include "application.h" int main( int argc, char ** argv ) { - <a href="ntqapplication.html">TQApplication</a> a( argc, argv ); + <a href="tqapplication.html">TQApplication</a> a( argc, argv ); ApplicationWindow *mw = new ApplicationWindow(); mw-><a href="tqwidget.html#setCaption">setCaption</a>( "TQt Example - Application" ); <a name="x1598"></a> mw-><a href="tqwidget.html#show">show</a>(); -<a name="x1599"></a> a.<a href="tqobject.html#connect">connect</a>( &a, TQ_SIGNAL(<a href="ntqapplication.html#lastWindowClosed">lastWindowClosed</a>()), &a, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()) ); - return a.<a href="ntqapplication.html#exec">exec</a>(); +<a name="x1599"></a> a.<a href="tqobject.html#connect">connect</a>( &a, TQ_SIGNAL(<a href="tqapplication.html#lastWindowClosed">lastWindowClosed</a>()), &a, TQ_SLOT(<a href="tqapplication.html#quit">quit</a>()) ); + return a.<a href="tqapplication.html#exec">exec</a>(); } </pre> @@ -126,9 +126,9 @@ int main( int argc, char ** argv ) { <p> <pre> int main( int argc, char ** argv ) { - <a href="ntqapplication.html">TQApplication</a> a( argc, argv ); + <a href="tqapplication.html">TQApplication</a> a( argc, argv ); </pre> -<p> With the above line, we create a <a href="ntqapplication.html">TQApplication</a> object with the usual +<p> With the above line, we create a <a href="tqapplication.html">TQApplication</a> object with the usual constructor and let it parse <em>argc</em> and <em>argv</em>. TQApplication itself takes care of X11-specific command-line options like <em>-geometry</em>, so the program will automatically @@ -140,11 +140,11 @@ behave the way X clients are expected to. <p> We create an <em>ApplicationWindow</em> as a top-level widget, set its window system caption to "Document 1", and <em>show()</em> it. <p> <a name="close"></a> -<pre> a.<a href="tqobject.html#connect">connect</a>( &a, TQ_SIGNAL(<a href="ntqapplication.html#lastWindowClosed">lastWindowClosed</a>()), &a, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()) ); +<pre> a.<a href="tqobject.html#connect">connect</a>( &a, TQ_SIGNAL(<a href="tqapplication.html#lastWindowClosed">lastWindowClosed</a>()), &a, TQ_SLOT(<a href="tqapplication.html#quit">quit</a>()) ); </pre> <p> When the application's last window is closed, it should quit. Both -the signal and the slot are predefined members of <a href="ntqapplication.html">TQApplication</a>. -<p> <pre> return a.<a href="ntqapplication.html#exec">exec</a>(); +the signal and the slot are predefined members of <a href="tqapplication.html">TQApplication</a>. +<p> <pre> return a.<a href="tqapplication.html#exec">exec</a>(); </pre> <p> Having completed the application's initialization, we start the main event loop (the GUI), and eventually return the error code @@ -291,7 +291,7 @@ example for a shorter and easier approach.) file-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); file-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Close", this, TQ_SLOT(<a href="tqwidget.html#close">close</a>()), CTRL+Key_W ); - file-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Quit", tqApp, TQ_SLOT( <a href="ntqapplication.html#closeAllWindows">closeAllWindows</a>() ), CTRL+Key_Q ); + file-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Quit", tqApp, TQ_SLOT( <a href="tqapplication.html#closeAllWindows">closeAllWindows</a>() ), CTRL+Key_Q ); </pre> <p> ... the <em>Print</em> command with "What's This?" help, another separator and two more commands (<em>Close</em> and <em>Quit</em>) without "What's This?" and pixmaps. |