diff options
Diffstat (limited to 'doc/html/tqpushbutton.html')
-rw-r--r-- | doc/html/tqpushbutton.html | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/doc/html/tqpushbutton.html b/doc/html/tqpushbutton.html index f121eedf2..971e32631 100644 --- a/doc/html/tqpushbutton.html +++ b/doc/html/tqpushbutton.html @@ -34,7 +34,7 @@ body { background: #ffffff; color: black; } <p>The TQPushButton widget provides a command button. <a href="#details">More...</a> <p><tt>#include <<a href="tqpushbutton-h.html">tqpushbutton.h</a>></tt> -<p>Inherits <a href="ntqbutton.html">TQButton</a>. +<p>Inherits <a href="tqbutton.html">TQButton</a>. <p><a href="tqpushbutton-members.html">List of all member functions.</a> <h2>Public Members</h2> <ul> @@ -118,15 +118,15 @@ In this example the accelerator is <em>Alt+D</em>, and the label text will be displayed as <b><u>D</u>ownload</b>. <p> Push buttons can display a textual label or a pixmap, and optionally a small icon. These can be set using the constructors -and changed later using <a href="ntqbutton.html#setText">setText</a>(), <a href="ntqbutton.html#setPixmap">setPixmap</a>() and <a href="#setIconSet">setIconSet</a>(). +and changed later using <a href="tqbutton.html#setText">setText</a>(), <a href="tqbutton.html#setPixmap">setPixmap</a>() and <a href="#setIconSet">setIconSet</a>(). If the button is disabled the appearance of the text or pixmap and iconset will be manipulated with respect to the GUI style to make the button look "disabled". -<p> A push button emits the signal <a href="ntqbutton.html#clicked">clicked</a>() when it is activated by +<p> A push button emits the signal <a href="tqbutton.html#clicked">clicked</a>() when it is activated by the mouse, the Spacebar or by a keyboard accelerator. Connect to this signal to perform the button's action. Push buttons also -provide less commonly used signals, for example, <a href="ntqbutton.html#pressed">pressed</a>() and -<a href="ntqbutton.html#released">released</a>(). +provide less commonly used signals, for example, <a href="tqbutton.html#pressed">pressed</a>() and +<a href="tqbutton.html#released">released</a>(). <p> Command buttons in dialogs are by default auto-default buttons, i.e. they become the default push button automatically when they receive the keyboard input focus. A default button is a push @@ -161,7 +161,7 @@ but tool buttons. TQt provides a special class (<a href="tqtoolbutton.html">TQTo these buttons. <p> If you need toggle behavior (see <a href="#setToggleButton">setToggleButton</a>()) or a button that auto-repeats the activation signal when being pushed down -like the arrows in a scroll bar (see <a href="ntqbutton.html#setAutoRepeat">setAutoRepeat</a>()), a command +like the arrows in a scroll bar (see <a href="tqbutton.html#setAutoRepeat">setAutoRepeat</a>()), a command button is probably not what you want. When in doubt, use a tool button. <p> A variation of a command button is a menu button. These provide @@ -171,7 +171,7 @@ associate a popup menu with a push button. <p> Other classes of buttons are option buttons (see <a href="tqradiobutton.html">TQRadioButton</a>) and check boxes (see <a href="tqcheckbox.html">TQCheckBox</a>). <p> <img src="tqpushbt-m.png"> <img src="tqpushbt-w.png"> -<p> In TQt, the <a href="ntqbutton.html">TQButton</a> abstract base class provides most of the modes +<p> In TQt, the <a href="tqbutton.html">TQButton</a> abstract base class provides most of the modes and other API, and TQPushButton provides GUI logic. See TQButton for more information about the API. <p> @@ -203,33 +203,33 @@ Destroys the push button. <h3 class=fn><a href="ntqkeysequence.html">TQKeySequence</a> <a name="accel"></a>TQButton::accel () const </h3><p>Returns the accelerator associated with the button. -See the <a href="ntqbutton.html#accel-prop">"accel"</a> property for details. +See the <a href="tqbutton.html#accel-prop">"accel"</a> property for details. <h3 class=fn>bool <a name="autoDefault"></a>TQPushButton::autoDefault () const </h3><p>Returns TRUE if the push button is the auto default button; otherwise returns FALSE. See the <a href="tqpushbutton.html#autoDefault-prop">"autoDefault"</a> property for details. <h3 class=fn>bool <a name="autoRepeat"></a>TQButton::autoRepeat () const </h3><p>Returns TRUE if autoRepeat is enabled; otherwise returns FALSE. -See the <a href="ntqbutton.html#autoRepeat-prop">"autoRepeat"</a> property for details. +See the <a href="tqbutton.html#autoRepeat-prop">"autoRepeat"</a> property for details. <h3 class=fn>void <a name="clicked"></a>TQButton::clicked ()<tt> [signal]</tt> </h3> <p> This signal is emitted when the button is activated (i.e. first pressed down and then released when the mouse cursor is inside the -button), when the accelerator key is typed or when <a href="ntqbutton.html#animateClick">animateClick</a>() -is called. This signal is <em>not</em> emitted if you call <a href="ntqbutton.html#setDown">setDown</a>(). -<p> The <a href="ntqbuttongroup.html#clicked">TQButtonGroup::clicked</a>() signal does the same job, if you want +button), when the accelerator key is typed or when <a href="tqbutton.html#animateClick">animateClick</a>() +is called. This signal is <em>not</em> emitted if you call <a href="tqbutton.html#setDown">setDown</a>(). +<p> The <a href="tqbuttongroup.html#clicked">TQButtonGroup::clicked</a>() signal does the same job, if you want to connect several buttons to the same slot. <p> <b>Warning:</b> Don't launch a model dialog in response to this signal -for a button that has <a href="ntqbutton.html#autoRepeat-prop">autoRepeat</a> turned on. -<p> <p>See also <a href="ntqbutton.html#pressed">pressed</a>(), <a href="ntqbutton.html#released">released</a>(), <a href="ntqbutton.html#toggled">toggled</a>(), <a href="ntqbutton.html#autoRepeat-prop">autoRepeat</a>, and <a href="ntqbutton.html#down-prop">down</a>. +for a button that has <a href="tqbutton.html#autoRepeat-prop">autoRepeat</a> turned on. +<p> <p>See also <a href="tqbutton.html#pressed">pressed</a>(), <a href="tqbutton.html#released">released</a>(), <a href="tqbutton.html#toggled">toggled</a>(), <a href="tqbutton.html#autoRepeat-prop">autoRepeat</a>, and <a href="tqbutton.html#down-prop">down</a>. <p>Examples: <a href="tutorial2-08.html#x2596">chart/setdataform.cpp</a>, <a href="listbox-example.html#x1426">listbox/listbox.cpp</a>, <a href="clientserver-example.html#x792">network/clientserver/client/client.cpp</a>, <a href="progressbar-example.html#x962">progressbar/progressbar.cpp</a>, <a href="richtext-example.html#x462">richtext/richtext.cpp</a>, <a href="tutorial1-02.html#x2290">t2/main.cpp</a>, and <a href="tutorial1-04.html#x2306">t4/main.cpp</a>. -<h3 class=fn><a href="ntqbuttongroup.html">TQButtonGroup</a> * <a name="group"></a>TQButton::group () const +<h3 class=fn><a href="tqbuttongroup.html">TQButtonGroup</a> * <a name="group"></a>TQButton::group () const </h3> Returns the group that this button belongs to. -<p> If the button is not a member of any <a href="ntqbuttongroup.html">TQButtonGroup</a>, this function +<p> If the button is not a member of any <a href="tqbuttongroup.html">TQButtonGroup</a>, this function returns 0. -<p> <p>See also <a href="ntqbuttongroup.html">TQButtonGroup</a>. +<p> <p>See also <a href="tqbuttongroup.html">TQButtonGroup</a>. <h3 class=fn><a href="tqiconset.html">TQIconSet</a> * <a name="iconSet"></a>TQPushButton::iconSet () const </h3><p>Returns the icon set on the push button. @@ -239,10 +239,10 @@ See the <a href="tqpushbutton.html#iconSet-prop">"iconSet"</a> property for deta See the <a href="tqpushbutton.html#default-prop">"default"</a> property for details. <h3 class=fn>bool <a name="isDown"></a>TQButton::isDown () const </h3><p>Returns TRUE if the button is pressed; otherwise returns FALSE. -See the <a href="ntqbutton.html#down-prop">"down"</a> property for details. +See the <a href="tqbutton.html#down-prop">"down"</a> property for details. <h3 class=fn>bool <a name="isExclusiveToggle"></a>TQButton::isExclusiveToggle () const </h3><p>Returns TRUE if the button is an exclusive toggle; otherwise returns FALSE. -See the <a href="ntqbutton.html#exclusiveToggle-prop">"exclusiveToggle"</a> property for details. +See the <a href="tqbutton.html#exclusiveToggle-prop">"exclusiveToggle"</a> property for details. <h3 class=fn>bool <a name="isFlat"></a>TQPushButton::isFlat () const </h3><p>Returns TRUE if the border is disabled; otherwise returns FALSE. See the <a href="tqpushbutton.html#flat-prop">"flat"</a> property for details. @@ -251,13 +251,13 @@ See the <a href="tqpushbutton.html#flat-prop">"flat"</a> property for details. See the <a href="tqpushbutton.html#menuButton-prop">"menuButton"</a> property for details. <h3 class=fn>bool <a name="isOn"></a>TQButton::isOn () const </h3><p>Returns TRUE if the button is toggled; otherwise returns FALSE. -See the <a href="ntqbutton.html#on-prop">"on"</a> property for details. +See the <a href="tqbutton.html#on-prop">"on"</a> property for details. <h3 class=fn>bool <a name="isToggleButton"></a>TQButton::isToggleButton () const </h3><p>Returns TRUE if the button is a toggle button; otherwise returns FALSE. -See the <a href="ntqbutton.html#toggleButton-prop">"toggleButton"</a> property for details. +See the <a href="tqbutton.html#toggleButton-prop">"toggleButton"</a> property for details. <h3 class=fn>const <a href="tqpixmap.html">TQPixmap</a> * <a name="pixmap"></a>TQButton::pixmap () const </h3><p>Returns the pixmap shown on the button. -See the <a href="ntqbutton.html#pixmap-prop">"pixmap"</a> property for details. +See the <a href="tqbutton.html#pixmap-prop">"pixmap"</a> property for details. <h3 class=fn><a href="tqpopupmenu.html">TQPopupMenu</a> * <a name="popup"></a>TQPushButton::popup () const </h3> Returns the button's associated popup menu or 0 if no popup menu @@ -268,30 +268,30 @@ has been set. </h3> <p> This signal is emitted when the button is pressed down. -<p> <p>See also <a href="ntqbutton.html#released">released</a>() and <a href="ntqbutton.html#clicked">clicked</a>(). +<p> <p>See also <a href="tqbutton.html#released">released</a>() and <a href="tqbutton.html#clicked">clicked</a>(). <p>Examples: <a href="httpd-example.html#x724">network/httpd/httpd.cpp</a> and <a href="popup-example.html#x1606">popup/popup.cpp</a>. <h3 class=fn>void <a name="released"></a>TQButton::released ()<tt> [signal]</tt> </h3> <p> This signal is emitted when the button is released. -<p> <p>See also <a href="ntqbutton.html#pressed">pressed</a>(), <a href="ntqbutton.html#clicked">clicked</a>(), and <a href="ntqbutton.html#toggled">toggled</a>(). +<p> <p>See also <a href="tqbutton.html#pressed">pressed</a>(), <a href="tqbutton.html#clicked">clicked</a>(), and <a href="tqbutton.html#toggled">toggled</a>(). <h3 class=fn>void <a name="setAccel"></a>TQButton::setAccel ( const <a href="ntqkeysequence.html">TQKeySequence</a> & )<tt> [virtual]</tt> </h3><p>Sets the accelerator associated with the button. -See the <a href="ntqbutton.html#accel-prop">"accel"</a> property for details. +See the <a href="tqbutton.html#accel-prop">"accel"</a> property for details. <h3 class=fn>void <a name="setAutoDefault"></a>TQPushButton::setAutoDefault ( bool autoDef )<tt> [virtual]</tt> </h3><p>Sets whether the push button is the auto default button to <em>autoDef</em>. See the <a href="tqpushbutton.html#autoDefault-prop">"autoDefault"</a> property for details. <h3 class=fn>void <a name="setAutoRepeat"></a>TQButton::setAutoRepeat ( bool )<tt> [virtual]</tt> </h3><p>Sets whether autoRepeat is enabled. -See the <a href="ntqbutton.html#autoRepeat-prop">"autoRepeat"</a> property for details. +See the <a href="tqbutton.html#autoRepeat-prop">"autoRepeat"</a> property for details. <h3 class=fn>void <a name="setDefault"></a>TQPushButton::setDefault ( bool def )<tt> [virtual]</tt> </h3><p>Sets whether the push button is the default button to <em>def</em>. See the <a href="tqpushbutton.html#default-prop">"default"</a> property for details. <h3 class=fn>void <a name="setDown"></a>TQButton::setDown ( bool )<tt> [virtual]</tt> </h3><p>Sets whether the button is pressed. -See the <a href="ntqbutton.html#down-prop">"down"</a> property for details. +See the <a href="tqbutton.html#down-prop">"down"</a> property for details. <h3 class=fn>void <a name="setFlat"></a>TQPushButton::setFlat ( bool ) </h3><p>Sets whether the border is disabled. See the <a href="tqpushbutton.html#flat-prop">"flat"</a> property for details. @@ -308,7 +308,7 @@ See the <a href="tqpushbutton.html#iconSet-prop">"iconSet"</a> property for deta See the <a href="tqpushbutton.html#on-prop">"on"</a> property for details. <h3 class=fn>void <a name="setPixmap"></a>TQButton::setPixmap ( const <a href="tqpixmap.html">TQPixmap</a> & )<tt> [virtual]</tt> </h3><p>Sets the pixmap shown on the button. -See the <a href="ntqbutton.html#pixmap-prop">"pixmap"</a> property for details. +See the <a href="tqbutton.html#pixmap-prop">"pixmap"</a> property for details. <h3 class=fn>void <a name="setPopup"></a>TQPushButton::setPopup ( <a href="tqpopupmenu.html">TQPopupMenu</a> * popup ) </h3> Associates the popup menu <em>popup</em> with this push button. This @@ -320,38 +320,38 @@ button. <p>Examples: <a href="buttongroups-example.html#x557">buttongroups/buttongroups.cpp</a> and <a href="tqdir-example.html#x1836">tqdir/tqdir.cpp</a>. <h3 class=fn>void <a name="setText"></a>TQButton::setText ( const <a href="tqstring.html">TQString</a> & )<tt> [virtual]</tt> </h3><p>Sets the text shown on the button. -See the <a href="ntqbutton.html#text-prop">"text"</a> property for details. +See the <a href="tqbutton.html#text-prop">"text"</a> property for details. <h3 class=fn>void <a name="setToggleButton"></a>TQPushButton::setToggleButton ( bool ) </h3><p>Sets whether the button is a toggle button. See the <a href="tqpushbutton.html#toggleButton-prop">"toggleButton"</a> property for details. -<h3 class=fn><a href="ntqbutton.html#ToggleState-enum">ToggleState</a> <a name="state"></a>TQButton::state () const +<h3 class=fn><a href="tqbutton.html#ToggleState-enum">ToggleState</a> <a name="state"></a>TQButton::state () const </h3><p>Returns the state of the toggle button. -See the <a href="ntqbutton.html#toggleState-prop">"toggleState"</a> property for details. +See the <a href="tqbutton.html#toggleState-prop">"toggleState"</a> property for details. <h3 class=fn>void <a name="stateChanged"></a>TQButton::stateChanged ( int state )<tt> [signal]</tt> </h3> -<p> This signal is emitted whenever a toggle button changes state. <em>state</em> is <a href="ntqbutton.html#ToggleState-enum">On</a> if the button is on, <a href="ntqbutton.html#ToggleState-enum">NoChange</a> if it is in the -<a href="tqcheckbox.html#setTristate">"no change" state</a> or <a href="ntqbutton.html#ToggleState-enum">Off</a> +<p> This signal is emitted whenever a toggle button changes state. <em>state</em> is <a href="tqbutton.html#ToggleState-enum">On</a> if the button is on, <a href="tqbutton.html#ToggleState-enum">NoChange</a> if it is in the +<a href="tqcheckbox.html#setTristate">"no change" state</a> or <a href="tqbutton.html#ToggleState-enum">Off</a> if the button is off. -<p> This may be the result of a user action, <a href="ntqbutton.html#toggle">toggle</a>() slot activation, -<a href="ntqbutton.html#setState">setState</a>(), or because <a href="#setOn">setOn</a>() was called. -<p> <p>See also <a href="ntqbutton.html#clicked">clicked</a>() and <a href="ntqbutton.html#ToggleState-enum">TQButton::ToggleState</a>. +<p> This may be the result of a user action, <a href="tqbutton.html#toggle">toggle</a>() slot activation, +<a href="tqbutton.html#setState">setState</a>(), or because <a href="#setOn">setOn</a>() was called. +<p> <p>See also <a href="tqbutton.html#clicked">clicked</a>() and <a href="tqbutton.html#ToggleState-enum">TQButton::ToggleState</a>. <h3 class=fn><a href="tqstring.html">TQString</a> <a name="text"></a>TQButton::text () const </h3><p>Returns the text shown on the button. -See the <a href="ntqbutton.html#text-prop">"text"</a> property for details. +See the <a href="tqbutton.html#text-prop">"text"</a> property for details. <h3 class=fn>void <a name="toggle"></a>TQButton::toggle ()<tt> [slot]</tt> </h3> Toggles the state of a toggle button. -<p> <p>See also <a href="#on-prop">on</a>, <a href="#on-prop">on</a>, <a href="ntqbutton.html#toggled">toggled</a>(), and <a href="#toggleButton-prop">toggleButton</a>. +<p> <p>See also <a href="#on-prop">on</a>, <a href="#on-prop">on</a>, <a href="tqbutton.html#toggled">toggled</a>(), and <a href="#toggleButton-prop">toggleButton</a>. <h3 class=fn>void <a name="toggled"></a>TQButton::toggled ( bool on )<tt> [signal]</tt> </h3> <p> This signal is emitted whenever a toggle button changes status. <em>on</em> is TRUE if the button is on, or FALSE if the button is off. -<p> This may be the result of a user action, <a href="ntqbutton.html#toggle">toggle</a>() slot activation, +<p> This may be the result of a user action, <a href="tqbutton.html#toggle">toggle</a>() slot activation, or because <a href="#setOn">setOn</a>() was called. -<p> <p>See also <a href="ntqbutton.html#clicked">clicked</a>(). +<p> <p>See also <a href="tqbutton.html#clicked">clicked</a>(). <p>Example: <a href="listbox-example.html#x1427">listbox/listbox.cpp</a>. <hr><h2>Property Documentation</h2> @@ -381,7 +381,7 @@ auto-default interact. <h3 class=fn>bool <a name="autoRepeat-prop"></a>autoRepeat</h3> <p>This property holds whether autoRepeat is enabled. -<p>If autoRepeat is enabled then the <a href="ntqbutton.html#clicked">clicked</a>() signal is emitted at +<p>If autoRepeat is enabled then the <a href="tqbutton.html#clicked">clicked</a>() signal is emitted at regular intervals if the button is down. This property has no effect on toggle buttons. autoRepeat is off by default. @@ -427,7 +427,7 @@ arrow. <p>This property holds whether the push button is toggled. <p>This property should only be set for toggle push buttons. The default value is FALSE. -<p> <p>See also <a href="#on-prop">on</a>, <a href="ntqbutton.html#toggle">toggle</a>(), <a href="ntqbutton.html#toggled">toggled</a>(), and <a href="#toggleButton-prop">toggleButton</a>. +<p> <p>See also <a href="#on-prop">on</a>, <a href="tqbutton.html#toggle">toggle</a>(), <a href="tqbutton.html#toggled">toggled</a>(), and <a href="#toggleButton-prop">toggleButton</a>. <p>Set this property's value with <a href="#setOn">setOn</a>(). <h3 class=fn><a href="tqpixmap.html">TQPixmap</a> <a name="pixmap-prop"></a>pixmap</h3> @@ -436,7 +436,7 @@ default value is FALSE. this property will set the pixmap to be its own mask. The purpose of this is to draw transparent bitmaps which are important for toggle buttons, for example. -<p> <a href="ntqbutton.html#pixmap">pixmap</a>() returns 0 if no pixmap was set. +<p> <a href="tqbutton.html#pixmap">pixmap</a>() returns 0 if no pixmap was set. <p>Set this property's value with <a href="#setPixmap">setPixmap</a>() and get this property's value with <a href="#pixmap">pixmap</a>(). <h3 class=fn><a href="tqstring.html">TQString</a> <a name="text-prop"></a>text</h3> @@ -454,7 +454,7 @@ defined by the text. <p>This property holds whether the button is a toggle button. <p>Toggle buttons have an on/off state similar to <a href="tqcheckbox.html">check boxes.</a> A push button is initially not a toggle button. -<p> <p>See also <a href="#on-prop">on</a>, <a href="ntqbutton.html#toggle">toggle</a>(), <a href="#toggleButton-prop">toggleButton</a>, and <a href="ntqbutton.html#toggled">toggled</a>(). +<p> <p>See also <a href="#on-prop">on</a>, <a href="tqbutton.html#toggle">toggle</a>(), <a href="#toggleButton-prop">toggleButton</a>, and <a href="tqbutton.html#toggled">toggled</a>(). <p>Set this property's value with <a href="#setToggleButton">setToggleButton</a>(). <!-- eof --> |