From 4d495175043c399fdca6e1bb4c74ef176fc76fb4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Aug 2025 11:29:57 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Signed-off-by: Michele Calgaro --- doc/html/tqaction.html | 60 +++++++++++++++++++++++++------------------------- 1 file changed, 30 insertions(+), 30 deletions(-) (limited to 'doc/html/tqaction.html') 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.
  • TQAction ( TQObject * parent, const char * name = 0 )
  • TQAction ( const TQString & menuText, TQKeySequence accel, TQObject * parent, const char * name = 0 )
  • TQAction ( const TQIconSet & icon, const TQString & menuText, TQKeySequence accel, TQObject * parent, const char * name = 0 )
  • -
  • TQAction ( const TQString & text, const TQIconSet & icon, const TQString & menuText, TQKeySequence accel, TQObject * parent, const char * name = 0, bool toggle = FALSE )  (obsolete)
  • -
  • TQAction ( const TQString & text, const TQString & menuText, TQKeySequence accel, TQObject * parent, const char * name = 0, bool toggle = FALSE )  (obsolete)
  • +
  • TQAction ( const TQString & text, const TQIconSet & icon, const TQString & menuText, TQKeySequence accel, TQObject * parent, const char * name = 0, bool toggle = false )  (obsolete)
  • +
  • TQAction ( const TQString & text, const TQString & menuText, TQKeySequence accel, TQObject * parent, const char * name = 0, bool toggle = false )  (obsolete)
  • TQAction ( TQObject * parent, const char * name, bool toggle )  (obsolete)
  • ~TQAction ()
  • virtual void setIconSet ( const TQIconSet & )
  • @@ -129,7 +129,7 @@ Both command and toggle actions emit the activated() si they are invoked. Use setToggleAction() to set an action's toggled status. To see if an action is a toggle action use isToggleAction(). A toggle action may be "on", isOn() returns -TRUE, or "off", isOn() returns FALSE. +true, or "off", isOn() returns false.

    Actions are added to widgets (menus or toolbars) using addTo(), and removed using removeFrom().

    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 setText(). The same text and accel will be used for tool tips and status tips unless you provide text for these using setToolTip() and setStatusTip(). -

    Call setToggleAction(TRUE) to make the action a toggle action. +

    Call setToggleAction(true) to make the action a toggle action.

    Warning: 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 setText(). The same text and accel will be used for tool tips and status tips unless you provide text for these using setToolTip() and setStatusTip(). -

    Call setToggleAction(TRUE) to make the action a toggle action. +

    Call setToggleAction(true) to make the action a toggle action.

    Warning: To prevent recursion, don't create an action as a child of a widget that the action is later added to. -

    TQAction::TQAction ( const TQString & text, const TQIconSet & icon, const TQString & menuText, TQKeySequence accel, TQObject * parent, const char * name = 0, bool toggle = FALSE ) +

    TQAction::TQAction ( const TQString & text, const TQIconSet & icon, const TQString & menuText, TQKeySequence accel, TQObject * parent, const char * name = 0, bool toggle = false )

    This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code.

    This constructor creates an action with the following properties: the description text, the icon or iconset icon, the menu text menuText and keyboard accelerator accel. It is a child -of parent and called name. If toggle is TRUE the action +of parent and called name. If toggle is true the action will be a toggle action, otherwise it will be a command action.

    If parent is a TQActionGroup, 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 setToolTip() and setStatusTip(). -

    TQAction::TQAction ( const TQString & text, const TQString & menuText, TQKeySequence accel, TQObject * parent, const char * name = 0, bool toggle = FALSE ) +

    TQAction::TQAction ( const TQString & text, const TQString & menuText, TQKeySequence accel, TQObject * parent, const char * name = 0, bool toggle = false )

    This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code.

    This constructor results in an icon-less action with the description text, the menu text menuText and the keyboard -accelerator accel. Its parent is parent and it is called name. If toggle is TRUE the action will be a toggle action, +accelerator accel. Its parent is parent and it is called name. If toggle is true the action will be a toggle action, otherwise it will be a command action.

    The action automatically becomes a member of parent if parent is a TQActionGroup.

    For accelerators and status tips to work, parent must either be @@ -243,7 +243,7 @@ and setStatusTip().

    TQAction::TQAction ( TQObject * parent, const char * name, bool toggle )

    This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code.

    Constructs an action called name with parent parent. -

    If toggle is TRUE the action will be a toggle action, otherwise +

    If toggle is true the action will be a toggle action, otherwise it will be a command action.

    If parent is a TQActionGroup, the new action inserts itself into parent. @@ -279,9 +279,9 @@ Adds this action to widget w.

    Currently actions may be added to TQToolBar and TQPopupMenu widgets.

    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. -

    addTo() returns TRUE if the action was added successfully and -FALSE otherwise. (If w is not a TQToolBar or TQPopupMenu the -action will not be added and FALSE will be returned.) +

    addTo() returns true if the action was added successfully and +false otherwise. (If w is not a TQToolBar or TQPopupMenu the +action will not be added and false will be returned.)

    See also removeFrom().

    Examples: action/application.cpp, action/toggleaction/toggleaction.cpp, and chart/chartform.cpp. @@ -302,16 +302,16 @@ menu menu.

    Returns the action's icon. See the "iconSet" property for details.

    bool TQAction::isEnabled () const -

    Returns TRUE if the action is enabled; otherwise returns FALSE. +

    Returns true if the action is enabled; otherwise returns false. See the "enabled" property for details.

    bool TQAction::isOn () const -

    Returns TRUE if a toggle action is on; otherwise returns FALSE. +

    Returns true if a toggle action is on; otherwise returns false. See the "on" property for details.

    bool TQAction::isToggleAction () const -

    Returns TRUE if the action is a toggle action; otherwise returns FALSE. +

    Returns true if the action is a toggle action; otherwise returns false. See the "toggleAction" property for details.

    bool TQAction::isVisible () const -

    Returns TRUE if the action can be seen (e.g. in menus and toolbars); otherwise returns FALSE. +

    Returns true if the action can be seen (e.g. in menus and toolbars); otherwise returns false. See the "visible" property for details.

    TQString TQAction::menuText () const

    Returns the action's menu text. @@ -319,8 +319,8 @@ See the "menuText" property for detail

    bool TQAction::removeFrom ( TQWidget * w ) [virtual]

    Removes the action from widget w. -

    Returns TRUE if the action was removed successfully; otherwise -returns FALSE. +

    Returns true if the action was removed successfully; otherwise +returns false.

    See also addTo().

    void TQAction::setAccel ( const TQKeySequence & key ) [virtual] @@ -328,7 +328,7 @@ returns FALSE. See the "accel" property for details.

    void TQAction::setDisabled ( bool disable ) [slot]

    -Disables the action if disable is TRUE; otherwise +Disables the action if disable is true; otherwise enables the action.

    See the enabled documentation for more information. @@ -378,8 +378,8 @@ Toggles the state of a toggle action.

    This signal is emitted when a toggle action changes state; command actions and TQActionGroups don't emit toggled(). -

    The on argument denotes the new state: If on is TRUE the -toggle action is switched on, and if on is FALSE the toggle +

    The on argument denotes the new state: If on is true the +toggle action is switched on, and if on is false the toggle action is switched off.

    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.

    Set this property's value with setMenuText() and get this property's value with menuText().

    bool on

    This property holds whether a toggle action is on. -

    This property is always on (TRUE) for command actions and +

    This property is always on (true) for command actions and TQActionGroups; setOn() has no effect on them. For action's -where isToggleAction() is TRUE, this property's default value is -off (FALSE). +where isToggleAction() is true, this property's default value is +off (false).

    See also toggleAction.

    Set this property's value with setOn() and get this property's value with isOn(). @@ -456,7 +456,7 @@ toplevel parent widget provides.

    Set this property's value with setStatusTip() and get this property's value with statusTip().

    TQString text

    This property holds the action's descriptive text. -

    If TQMainWindow::usesTextLabel is TRUE, the text appears as a +

    If TQMainWindow::usesTextLabel 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.

    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.

    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 TQActionGroup with the TQActionGroup::exclusive property set to -TRUE. +true.

    Set this property's value with setToggleAction() and get this property's value with isToggleAction().

    TQString toolTip

    @@ -490,8 +490,8 @@ text.

    Set this property's value with setToolTip() and get this property's value with toolTip().

    bool visible

    This property holds whether the action can be seen (e.g. in menus and toolbars). -

    If visible is TRUE the action can be seen (e.g. in menus and -toolbars) and chosen by the user; if visible is FALSE the +

    If visible is true the action can be seen (e.g. in menus and +toolbars) and chosen by the user; if visible is false the action cannot be seen or chosen by the user.

    Actions which are not visible are not grayed out; they do not appear at all. -- cgit v1.2.3