diff options
Diffstat (limited to 'doc/html/ntqapplication.html')
-rw-r--r-- | doc/html/ntqapplication.html | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/doc/html/ntqapplication.html b/doc/html/ntqapplication.html index d076d1911..b9da3ea72 100644 --- a/doc/html/ntqapplication.html +++ b/doc/html/ntqapplication.html @@ -544,7 +544,7 @@ the active modal widget at the top of the stack. <h3 class=fn><a href="tqwidget.html">TQWidget</a> * <a name="activePopupWidget"></a>TQApplication::activePopupWidget ()<tt> [static]</tt> </h3> Returns the active popup widget. -<p> A popup widget is a special top level widget that sets the <a href="ntqt.html#WidgetFlags-enum">WType_Popup</a> widget flag, e.g. the <a href="ntqpopupmenu.html">TQPopupMenu</a> widget. When the +<p> A popup widget is a special top level widget that sets the <a href="ntqt.html#WidgetFlags-enum">WType_Popup</a> widget flag, e.g. the <a href="tqpopupmenu.html">TQPopupMenu</a> widget. When the application opens a popup widget, all events are sent to the popup. Normal widgets and modal widgets cannot be accessed before the popup widget is closed. @@ -686,8 +686,8 @@ top-level windows. It could, for example, be connected to a "Quit" entry in the file menu as shown in the following code example: <p> <pre> // the "Quit" menu entry should try to close all windows - <a href="ntqpopupmenu.html">TQPopupMenu</a>* file = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this ); - file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Quit", tqApp, TQ_SLOT(<a href="#closeAllWindows">closeAllWindows</a>()), CTRL+Key_Q ); + <a href="tqpopupmenu.html">TQPopupMenu</a>* file = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this ); + file-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Quit", tqApp, TQ_SLOT(<a href="#closeAllWindows">closeAllWindows</a>()), CTRL+Key_Q ); // when the last window is closed, the application should quit <a href="tqobject.html#connect">connect</a>( tqApp, TQ_SIGNAL( <a href="#lastWindowClosed">lastWindowClosed</a>() ), tqApp, TQ_SLOT( <a href="#quit">quit</a>() ) ); @@ -698,7 +698,7 @@ accept the close event. <p> <p>See also <a href="tqwidget.html#close">TQWidget::close</a>(), <a href="tqwidget.html#closeEvent">TQWidget::closeEvent</a>(), <a href="#lastWindowClosed">lastWindowClosed</a>(), <a href="#quit">quit</a>(), <a href="#topLevelWidgets">topLevelWidgets</a>(), and <a href="tqwidget.html#isTopLevel-prop">TQWidget::isTopLevel</a>. <p> -<p>Examples: <a href="qaction-application-example.html#x1127">action/application.cpp</a>, <a href="simple-application-example.html#x1544">application/application.cpp</a>, <a href="helpviewer-example.html#x980">helpviewer/helpwindow.cpp</a>, <a href="mdi-example.html#x2020">mdi/application.cpp</a>, and <a href="qwerty-example.html#x358">qwerty/qwerty.cpp</a>. +<p>Examples: <a href="tqaction-application-example.html#x1127">action/application.cpp</a>, <a href="simple-application-example.html#x1544">application/application.cpp</a>, <a href="helpviewer-example.html#x980">helpviewer/helpwindow.cpp</a>, <a href="mdi-example.html#x2020">mdi/application.cpp</a>, and <a href="qwerty-example.html#x358">qwerty/qwerty.cpp</a>. <h3 class=fn>bool <a name="closingDown"></a>TQApplication::closingDown ()<tt> [static]</tt> </h3> Returns TRUE if the application objects are being destroyed; @@ -711,11 +711,11 @@ Returns the color specification. <p>See also <a href="#setColorSpec">TQApplication::setColorSpec</a>(). <p>Example: <a href="showimg-example.html#x1309">showimg/showimg.cpp</a>. -<h3 class=fn>void <a name="commitData"></a>TQApplication::commitData ( <a href="ntqsessionmanager.html">TQSessionManager</a> & sm )<tt> [virtual]</tt> +<h3 class=fn>void <a name="commitData"></a>TQApplication::commitData ( <a href="tqsessionmanager.html">TQSessionManager</a> & sm )<tt> [virtual]</tt> </h3> <p> This function deals with <a href="session.html">session - management</a>. It is invoked when the <a href="ntqsessionmanager.html">TQSessionManager</a> wants the + management</a>. It is invoked when the <a href="tqsessionmanager.html">TQSessionManager</a> wants the application to commit all its data. <p> Usually this means saving all open files, after getting permission from the user. Furthermore you may want to provide a means @@ -724,8 +724,8 @@ by which the user can cancel the shutdown. Instead, the session manager may or may not do this afterwards, depending on the context. <p> <b>Warning:</b> Within this function, no user interaction is possible, <em>unless</em> you ask the session manager <em>sm</em> for explicit permission. -See <a href="ntqsessionmanager.html#allowsInteraction">TQSessionManager::allowsInteraction</a>() and -<a href="ntqsessionmanager.html#allowsErrorInteraction">TQSessionManager::allowsErrorInteraction</a>() for details and example +See <a href="tqsessionmanager.html#allowsInteraction">TQSessionManager::allowsInteraction</a>() and +<a href="tqsessionmanager.html#allowsErrorInteraction">TQSessionManager::allowsErrorInteraction</a>() for details and example usage. <p> The default implementation requests interaction and sends a close event to all visible top level widgets. If any event was @@ -866,7 +866,7 @@ application font if <em>w</em> is 0. Returns display (screen) font metrics for the application font. <p> <p>See also <a href="#font">font</a>(), <a href="#setFont">setFont</a>(), <a href="tqwidget.html#fontMetrics">TQWidget::fontMetrics</a>(), and <a href="ntqpainter.html#fontMetrics">TQPainter::fontMetrics</a>(). -<h3 class=fn><a href="ntqsize.html">TQSize</a> <a name="globalStrut"></a>TQApplication::globalStrut ()<tt> [static]</tt> +<h3 class=fn><a href="tqsize.html">TQSize</a> <a name="globalStrut"></a>TQApplication::globalStrut ()<tt> [static]</tt> </h3> <p> Returns the application's global strut. @@ -1113,14 +1113,14 @@ Tells the application to exit with return code 0 (success). Equivalent to calling <a href="#exit">TQApplication::exit</a>( 0 ). <p> It's common to connect the <a href="#lastWindowClosed">lastWindowClosed</a>() signal to <a href="#quit">quit</a>(), and you also often connect e.g. <a href="ntqbutton.html#clicked">TQButton::clicked</a>() or signals in -<a href="ntqaction.html">TQAction</a>, <a href="ntqpopupmenu.html">TQPopupMenu</a> or <a href="ntqmenubar.html">TQMenuBar</a> to it. +<a href="tqaction.html">TQAction</a>, <a href="tqpopupmenu.html">TQPopupMenu</a> or <a href="tqmenubar.html">TQMenuBar</a> to it. <p> Example: <pre> <a href="ntqpushbutton.html">TQPushButton</a> *quitButton = new <a href="ntqpushbutton.html">TQPushButton</a>( "Quit" ); <a href="tqobject.html#connect">connect</a>( quitButton, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), tqApp, TQ_SLOT(<a href="#quit">quit</a>()) ); </pre> -<p> <p>See also <a href="#exit">exit</a>(), <a href="#aboutToQuit">aboutToQuit</a>(), <a href="#lastWindowClosed">lastWindowClosed</a>(), and <a href="ntqaction.html">TQAction</a>. +<p> <p>See also <a href="#exit">exit</a>(), <a href="#aboutToQuit">aboutToQuit</a>(), <a href="#lastWindowClosed">lastWindowClosed</a>(), and <a href="tqaction.html">TQAction</a>. <p>Examples: <a href="addressbook-example.html#x609">addressbook/main.cpp</a>, <a href="mdi-example.html#x2097">mdi/main.cpp</a>, <a href="archivesearch-example.html#x488">network/archivesearch/main.cpp</a>, <a href="regexptester-example.html#x2510">regexptester/main.cpp</a>, <a href="tutorial1-02.html#x2288">t2/main.cpp</a>, <a href="tutorial1-04.html#x2304">t4/main.cpp</a>, and <a href="tutorial1-06.html#x2321">t6/main.cpp</a>. <h3 class=fn>void <a name="removeLibraryPath"></a>TQApplication::removeLibraryPath ( const <a href="tqstring.html">TQString</a> & path )<tt> [static]</tt> @@ -1164,12 +1164,12 @@ mirrored (right to left) fashion. Returns FALSE if dialogs and widgets will be laid out left to right. <p> <p>See also <a href="#setReverseLayout">setReverseLayout</a>(). -<h3 class=fn>void <a name="saveState"></a>TQApplication::saveState ( <a href="ntqsessionmanager.html">TQSessionManager</a> & sm )<tt> [virtual]</tt> +<h3 class=fn>void <a name="saveState"></a>TQApplication::saveState ( <a href="tqsessionmanager.html">TQSessionManager</a> & sm )<tt> [virtual]</tt> </h3> <p> This function deals with <a href="session.html">session management</a>. It is invoked when the -<a href="ntqsessionmanager.html">session manager</a> wants the application +<a href="tqsessionmanager.html">session manager</a> wants the application to preserve its state for a future session. <p> For example, a text editor would create a temporary file that includes the current contents of its edit buffers, the location of @@ -1181,8 +1181,8 @@ managers will very likely request a saved state immediately after the application has been started. This permits the session manager to learn about the application's restart policy. <p> <b>Warning:</b> Within this function, no user interaction is possible, <em>unless</em> you ask the session manager <em>sm</em> for explicit permission. -See <a href="ntqsessionmanager.html#allowsInteraction">TQSessionManager::allowsInteraction</a>() and -<a href="ntqsessionmanager.html#allowsErrorInteraction">TQSessionManager::allowsErrorInteraction</a>() for details. +See <a href="tqsessionmanager.html#allowsInteraction">TQSessionManager::allowsInteraction</a>() and +<a href="tqsessionmanager.html#allowsErrorInteraction">TQSessionManager::allowsErrorInteraction</a>() for details. <p> <p>See also <a href="#isSessionRestored">isSessionRestored</a>(), <a href="#sessionId">sessionId</a>(), <a href="#commitData">commitData</a>(), and <a href="session.html">the Session Management overview</a>. <h3 class=fn>bool <a name="sendEvent"></a>TQApplication::sendEvent ( <a href="tqobject.html">TQObject</a> * receiver, <a href="ntqevent.html">TQEvent</a> * event )<tt> [static]</tt> @@ -1389,7 +1389,7 @@ setGlobalMouseTracking(FALSE): <p> <p>See also <a href="#hasGlobalMouseTracking">hasGlobalMouseTracking</a>() and <a href="tqwidget.html#mouseTracking-prop">TQWidget::mouseTracking</a>. -<h3 class=fn>void <a name="setGlobalStrut"></a>TQApplication::setGlobalStrut ( const <a href="ntqsize.html">TQSize</a> & strut )<tt> [static]</tt> +<h3 class=fn>void <a name="setGlobalStrut"></a>TQApplication::setGlobalStrut ( const <a href="tqsize.html">TQSize</a> & strut )<tt> [static]</tt> </h3> Sets the application's global strut to <em>strut</em>. <p> The strut is a size object whose dimensions are the minimum that any |