diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-06 11:29:57 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-06 11:29:57 +0900 |
commit | dcce5b1f2c449ed9a02b1752e0d74f147a83d07d (patch) | |
tree | d57fe27457a96451f1a67e2a2db268a441d917fc /doc/html/tqaction.html | |
parent | 649c4c61a1f1f479f4532b196f68df476cef2680 (diff) | |
download | tqt-rename/true-false-4.tar.gz tqt-rename/true-false-4.zip |
Replace TRUE/FALSE with boolean values true/false - part 4rename/true-false-4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/tqaction.html')
-rw-r--r-- | doc/html/tqaction.html | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/doc/html/tqaction.html b/doc/html/tqaction.html index 21e6e825c..104e25fe5 100644 --- a/doc/html/tqaction.html +++ b/doc/html/tqaction.html @@ -42,8 +42,8 @@ action that can appear both in menus and tool bars. <li class=fn><a href="#TQAction"><b>TQAction</b></a> ( TQObject * parent, const char * name = 0 )</li> <li class=fn><a href="#TQAction-2"><b>TQAction</b></a> ( const TQString & menuText, TQKeySequence accel, TQObject * parent, const char * name = 0 )</li> <li class=fn><a href="#TQAction-3"><b>TQAction</b></a> ( const TQIconSet & icon, const TQString & menuText, TQKeySequence accel, TQObject * parent, const char * name = 0 )</li> -<li class=fn>TQAction ( const TQString & text, const TQIconSet & icon, const TQString & menuText, TQKeySequence accel, TQObject * parent, const char * name = 0, bool toggle = FALSE ) <em>(obsolete)</em></li> -<li class=fn>TQAction ( const TQString & text, const TQString & menuText, TQKeySequence accel, TQObject * parent, const char * name = 0, bool toggle = FALSE ) <em>(obsolete)</em></li> +<li class=fn>TQAction ( const TQString & text, const TQIconSet & icon, const TQString & menuText, TQKeySequence accel, TQObject * parent, const char * name = 0, bool toggle = false ) <em>(obsolete)</em></li> +<li class=fn>TQAction ( const TQString & text, const TQString & menuText, TQKeySequence accel, TQObject * parent, const char * name = 0, bool toggle = false ) <em>(obsolete)</em></li> <li class=fn>TQAction ( TQObject * parent, const char * name, bool toggle ) <em>(obsolete)</em></li> <li class=fn><a href="#~TQAction"><b>~TQAction</b></a> ()</li> <li class=fn>virtual void <a href="#setIconSet"><b>setIconSet</b></a> ( const TQIconSet & )</li> @@ -129,7 +129,7 @@ Both command and toggle actions emit the <a href="#activated">activated</a>() si they are invoked. Use <a href="#setToggleAction">setToggleAction</a>() to set an action's toggled status. To see if an action is a toggle action use <a href="#isToggleAction">isToggleAction</a>(). A toggle action may be "on", <a href="#isOn">isOn</a>() returns -TRUE, or "off", isOn() returns FALSE. +true, or "off", isOn() returns false. <p> Actions are added to widgets (menus or toolbars) using <a href="#addTo">addTo</a>(), and removed using <a href="#removeFrom">removeFrom</a>(). <p> Once a TQAction has been created it should be added to the relevant @@ -188,7 +188,7 @@ toolbuttons. You can override this by setting a specific description with <a href="#setText">setText</a>(). The same text and <em>accel</em> will be used for tool tips and status tips unless you provide text for these using <a href="#setToolTip">setToolTip</a>() and <a href="#setStatusTip">setStatusTip</a>(). -<p> Call <a href="#setToggleAction">setToggleAction</a>(TRUE) to make the action a toggle action. +<p> Call <a href="#setToggleAction">setToggleAction</a>(true) to make the action a toggle action. <p> <b>Warning:</b> To prevent recursion, don't create an action as a child of a widget that the action is later added to. @@ -208,16 +208,16 @@ toolbuttons. You can override this by setting a specific description with <a href="#setText">setText</a>(). The same text and <em>accel</em> will be used for tool tips and status tips unless you provide text for these using <a href="#setToolTip">setToolTip</a>() and <a href="#setStatusTip">setStatusTip</a>(). -<p> Call <a href="#setToggleAction">setToggleAction</a>(TRUE) to make the action a toggle action. +<p> Call <a href="#setToggleAction">setToggleAction</a>(true) to make the action a toggle action. <p> <b>Warning:</b> To prevent recursion, don't create an action as a child of a widget that the action is later added to. -<h3 class=fn><a name="TQAction-4"></a>TQAction::TQAction ( const <a href="tqstring.html">TQString</a> & text, const <a href="tqiconset.html">TQIconSet</a> & icon, const <a href="tqstring.html">TQString</a> & menuText, <a href="tqkeysequence.html">TQKeySequence</a> accel, <a href="tqobject.html">TQObject</a> * parent, const char * name = 0, bool toggle = FALSE ) +<h3 class=fn><a name="TQAction-4"></a>TQAction::TQAction ( const <a href="tqstring.html">TQString</a> & text, const <a href="tqiconset.html">TQIconSet</a> & icon, const <a href="tqstring.html">TQString</a> & menuText, <a href="tqkeysequence.html">TQKeySequence</a> accel, <a href="tqobject.html">TQObject</a> * parent, const char * name = 0, bool toggle = false ) </h3> <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code. <p> This constructor creates an action with the following properties: the description <em>text</em>, the icon or iconset <em>icon</em>, the menu text <em>menuText</em> and keyboard accelerator <em>accel</em>. It is a child -of <em>parent</em> and called <em>name</em>. If <em>toggle</em> is TRUE the action +of <em>parent</em> and called <em>name</em>. If <em>toggle</em> is true the action will be a toggle action, otherwise it will be a command action. <p> If <em>parent</em> is a <a href="tqactiongroup.html">TQActionGroup</a>, the action automatically becomes a member of it. @@ -227,11 +227,11 @@ a widget, or an action group whose parent is a widget. tips unless you provide specific text for these using <a href="#setToolTip">setToolTip</a>() and <a href="#setStatusTip">setStatusTip</a>(). -<h3 class=fn><a name="TQAction-5"></a>TQAction::TQAction ( const <a href="tqstring.html">TQString</a> & text, const <a href="tqstring.html">TQString</a> & menuText, <a href="tqkeysequence.html">TQKeySequence</a> accel, <a href="tqobject.html">TQObject</a> * parent, const char * name = 0, bool toggle = FALSE ) +<h3 class=fn><a name="TQAction-5"></a>TQAction::TQAction ( const <a href="tqstring.html">TQString</a> & text, const <a href="tqstring.html">TQString</a> & menuText, <a href="tqkeysequence.html">TQKeySequence</a> accel, <a href="tqobject.html">TQObject</a> * parent, const char * name = 0, bool toggle = false ) </h3> <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code. <p> This constructor results in an icon-less action with the description <em>text</em>, the menu text <em>menuText</em> and the keyboard -accelerator <em>accel</em>. Its parent is <em>parent</em> and it is called <em>name</em>. If <em>toggle</em> is TRUE the action will be a toggle action, +accelerator <em>accel</em>. Its parent is <em>parent</em> and it is called <em>name</em>. If <em>toggle</em> is true the action will be a toggle action, otherwise it will be a command action. <p> The action automatically becomes a member of <em>parent</em> if <em>parent</em> is a <a href="tqactiongroup.html">TQActionGroup</a>. <p> For accelerators and status tips to work, <em>parent</em> must either be @@ -243,7 +243,7 @@ and <a href="#setStatusTip">setStatusTip</a>(). <h3 class=fn><a name="TQAction-6"></a>TQAction::TQAction ( <a href="tqobject.html">TQObject</a> * parent, const char * name, bool toggle ) </h3> <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code. <p> Constructs an action called <em>name</em> with parent <em>parent</em>. -<p> If <em>toggle</em> is TRUE the action will be a toggle action, otherwise +<p> If <em>toggle</em> is true the action will be a toggle action, otherwise it will be a command action. <p> If <em>parent</em> is a <a href="tqactiongroup.html">TQActionGroup</a>, the new action inserts itself into <em>parent</em>. @@ -279,9 +279,9 @@ Adds this action to widget <em>w</em>. <p> Currently actions may be added to <a href="tqtoolbar.html">TQToolBar</a> and <a href="tqpopupmenu.html">TQPopupMenu</a> widgets. <p> An action added to a tool bar is automatically displayed as a tool button; an action added to a pop up menu appears as a menu option. -<p> <a href="#addTo">addTo</a>() returns TRUE if the action was added successfully and -FALSE otherwise. (If <em>w</em> is not a TQToolBar or TQPopupMenu the -action will not be added and FALSE will be returned.) +<p> <a href="#addTo">addTo</a>() returns true if the action was added successfully and +false otherwise. (If <em>w</em> is not a TQToolBar or TQPopupMenu the +action will not be added and false will be returned.) <p> <p>See also <a href="#removeFrom">removeFrom</a>(). <p>Examples: <a href="tqaction-application-example.html#x1124">action/application.cpp</a>, <a href="toggleaction-example.html#x2971">action/toggleaction/toggleaction.cpp</a>, and <a href="canvas-chart-example.html#x2870">chart/chartform.cpp</a>. @@ -302,16 +302,16 @@ menu <em>menu</em>. </h3><p>Returns the action's icon. See the <a href="tqaction.html#iconSet-prop">"iconSet"</a> property for details. <h3 class=fn>bool <a name="isEnabled"></a>TQAction::isEnabled () const -</h3><p>Returns TRUE if the action is enabled; otherwise returns FALSE. +</h3><p>Returns true if the action is enabled; otherwise returns false. See the <a href="tqaction.html#enabled-prop">"enabled"</a> property for details. <h3 class=fn>bool <a name="isOn"></a>TQAction::isOn () const -</h3><p>Returns TRUE if a toggle action is on; otherwise returns FALSE. +</h3><p>Returns true if a toggle action is on; otherwise returns false. See the <a href="tqaction.html#on-prop">"on"</a> property for details. <h3 class=fn>bool <a name="isToggleAction"></a>TQAction::isToggleAction () const -</h3><p>Returns TRUE if the action is a toggle action; otherwise returns FALSE. +</h3><p>Returns true if the action is a toggle action; otherwise returns false. See the <a href="tqaction.html#toggleAction-prop">"toggleAction"</a> property for details. <h3 class=fn>bool <a name="isVisible"></a>TQAction::isVisible () const -</h3><p>Returns TRUE if the action can be seen (e.g. in menus and toolbars); otherwise returns FALSE. +</h3><p>Returns true if the action can be seen (e.g. in menus and toolbars); otherwise returns false. See the <a href="tqaction.html#visible-prop">"visible"</a> property for details. <h3 class=fn><a href="tqstring.html">TQString</a> <a name="menuText"></a>TQAction::menuText () const </h3><p>Returns the action's menu text. @@ -319,8 +319,8 @@ See the <a href="tqaction.html#menuText-prop">"menuText"</a> property for detail <h3 class=fn>bool <a name="removeFrom"></a>TQAction::removeFrom ( <a href="tqwidget.html">TQWidget</a> * w )<tt> [virtual]</tt> </h3> Removes the action from widget <em>w</em>. -<p> Returns TRUE if the action was removed successfully; otherwise -returns FALSE. +<p> Returns true if the action was removed successfully; otherwise +returns false. <p> <p>See also <a href="#addTo">addTo</a>(). <h3 class=fn>void <a name="setAccel"></a>TQAction::setAccel ( const <a href="tqkeysequence.html">TQKeySequence</a> & key )<tt> [virtual]</tt> @@ -328,7 +328,7 @@ returns FALSE. See the <a href="tqaction.html#accel-prop">"accel"</a> property for details. <h3 class=fn>void <a name="setDisabled"></a>TQAction::setDisabled ( bool disable )<tt> [slot]</tt> </h3> -Disables the action if <em>disable</em> is TRUE; otherwise +Disables the action if <em>disable</em> is true; otherwise enables the action. <p> See the <a href="#enabled-prop">enabled</a> documentation for more information. @@ -378,8 +378,8 @@ Toggles the state of a toggle action. <p> This signal is emitted when a toggle action changes state; command actions and <a href="tqactiongroup.html">TQActionGroup</a>s don't emit <a href="#toggled">toggled</a>(). -<p> The <em>on</em> argument denotes the new state: If <em>on</em> is TRUE the -toggle action is switched on, and if <em>on</em> is FALSE the toggle +<p> The <em>on</em> argument denotes the new state: If <em>on</em> is true the +toggle action is switched on, and if <em>on</em> is false the toggle action is switched off. <p> To trigger a user command depending on whether a toggle action has been switched on or off connect it to a slot that takes a bool to @@ -438,10 +438,10 @@ text will be used as the menu text. There is no default menu text. <p>Set this property's value with <a href="#setMenuText">setMenuText</a>() and get this property's value with <a href="#menuText">menuText</a>(). <h3 class=fn>bool <a name="on-prop"></a>on</h3> <p>This property holds whether a toggle action is on. -<p>This property is always on (TRUE) for command actions and +<p>This property is always on (true) for command actions and <a href="tqactiongroup.html">TQActionGroup</a>s; <a href="#setOn">setOn</a>() has no effect on them. For action's -where <a href="#isToggleAction">isToggleAction</a>() is TRUE, this property's default value is -off (FALSE). +where <a href="#isToggleAction">isToggleAction</a>() is true, this property's default value is +off (false). <p> <p>See also <a href="#toggleAction-prop">toggleAction</a>. <p>Set this property's value with <a href="#setOn">setOn</a>() and get this property's value with <a href="#isOn">isOn</a>(). @@ -456,7 +456,7 @@ toplevel parent widget provides. <p>Set this property's value with <a href="#setStatusTip">setStatusTip</a>() and get this property's value with <a href="#statusTip">statusTip</a>(). <h3 class=fn><a href="tqstring.html">TQString</a> <a name="text-prop"></a>text</h3> <p>This property holds the action's descriptive text. -<p>If <a href="tqmainwindow.html#usesTextLabel-prop">TQMainWindow::usesTextLabel</a> is TRUE, the text appears as a +<p>If <a href="tqmainwindow.html#usesTextLabel-prop">TQMainWindow::usesTextLabel</a> is true, the text appears as a label in the relevant tool button. It also serves as the default text in menus and tool tips if these have not been specifically defined. There is no default text. @@ -468,13 +468,13 @@ defined. There is no default text. <p>A toggle action is one which has an on/off state. For example a Bold toolbar button is either on or off. An action which is not a toggle action is a command action; a command action is simply -executed, e.g. file save. This property's default is FALSE. +executed, e.g. file save. This property's default is false. <p> In some situations, the state of one toggle action should depend on the state of others. For example, "Left Align", "Center" and "Right Align" toggle actions are mutually exclusive. To achieve exclusive toggling, add the relevant toggle actions to a <a href="tqactiongroup.html">TQActionGroup</a> with the <a href="tqactiongroup.html#exclusive-prop">TQActionGroup::exclusive</a> property set to -TRUE. +true. <p>Set this property's value with <a href="#setToggleAction">setToggleAction</a>() and get this property's value with <a href="#isToggleAction">isToggleAction</a>(). <h3 class=fn><a href="tqstring.html">TQString</a> <a name="toolTip-prop"></a>toolTip</h3> @@ -490,8 +490,8 @@ text. <p>Set this property's value with <a href="#setToolTip">setToolTip</a>() and get this property's value with <a href="#toolTip">toolTip</a>(). <h3 class=fn>bool <a name="visible-prop"></a>visible</h3> <p>This property holds whether the action can be seen (e.g. in menus and toolbars). -<p>If <em>visible</em> is TRUE the action can be seen (e.g. in menus and -toolbars) and chosen by the user; if <em>visible</em> is FALSE the +<p>If <em>visible</em> is true the action can be seen (e.g. in menus and +toolbars) and chosen by the user; if <em>visible</em> is false the action cannot be seen or chosen by the user. <p> Actions which are not visible are <em>not</em> grayed out; they do not appear at all. |