Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 1933

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QButtonGroup" doc="/**
&lt;p&gt;The &lt;a href=&quot;QButtonGroup.html#QButtonGroup(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QButtonGroup&lt;/tt&gt;&lt;/a&gt; class provides a container to organize groups of button widgets.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QButtonGroup.html#QButtonGroup(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QButtonGroup&lt;/tt&gt;&lt;/a&gt; provides an abstract container into which button widgets can be placed. It does not provide a visual representation of this container (see &lt;a href=&quot;QGroupBox.html&quot;&gt;&lt;tt&gt;QGroupBox&lt;/tt&gt;&lt;/a&gt; for a container widget), but instead manages the states of each of the buttons in the group.&lt;/p&gt;
&lt;p&gt;An &lt;a href=&quot;QButtonGroup.html#exclusive()&quot;&gt;exclusive&lt;/tt&gt;&lt;/a&gt; button group switches off all checkable (toggle) buttons except the one that was clicked. By default, a button group is exclusive. The buttons in a button group are usually checkable &lt;a href=&quot;QPushButton.html&quot;&gt;&lt;tt&gt;QPushButton&lt;/tt&gt;&lt;/a&gt;'s, &lt;a href=&quot;QCheckBox.html&quot;&gt;&lt;tt&gt;QCheckBox&lt;/tt&gt;&lt;/a&gt;es (normally for non-exclusive button groups), or &lt;a href=&quot;QRadioButton.html&quot;&gt;&lt;tt&gt;QRadioButton&lt;/tt&gt;&lt;/a&gt;s. If you create an exclusive button group, you should ensure that one of the buttons in the group is initially checked; otherwise, the group will initially be in a state where no buttons are checked.&lt;/p&gt;
&lt;p&gt;A button is added to the group with &lt;a href=&quot;QButtonGroup.html#addButton(com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;addButton&lt;/tt&gt;&lt;/a&gt;. It can be removed from the group with &lt;a href=&quot;QButtonGroup.html#removeButton(com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;removeButton&lt;/tt&gt;&lt;/a&gt;. If the group is exclusive, the currently checked button is available as &lt;a href=&quot;QButtonGroup.html#checkedButton()&quot;&gt;&lt;tt&gt;checkedButton&lt;/tt&gt;&lt;/a&gt;. If a button is clicked the &lt;a href=&quot;QButtonGroup.html#buttonClicked(com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;buttonClicked&lt;/tt&gt;&lt;/a&gt; signal is emitted. For a checkable button in an exclusive group this means that the button was checked. The list of buttons in the group is returned by &lt;a href=&quot;QButtonGroup.html#buttons()&quot;&gt;&lt;tt&gt;buttons&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In addition, &lt;a href=&quot;QButtonGroup.html#QButtonGroup(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QButtonGroup&lt;/tt&gt;&lt;/a&gt; can map between integers and buttons. You can assign an integer id to a button with &lt;a href=&quot;QButtonGroup.html#setId(com.trolltech.qt.gui.QAbstractButton, int)&quot;&gt;&lt;tt&gt;setId&lt;/tt&gt;&lt;/a&gt;, and retrieve it with &lt;a href=&quot;QButtonGroup.html#id(com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;id&lt;/tt&gt;&lt;/a&gt;. The id of the currently checked button is available with &lt;a href=&quot;QButtonGroup.html#checkedId()&quot;&gt;&lt;tt&gt;checkedId&lt;/tt&gt;&lt;/a&gt;, and there is an overloaded signal &lt;a href=&quot;QButtonGroup.html#buttonClicked(com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;buttonClicked&lt;/tt&gt;&lt;/a&gt; which emits the id of the button. The purpose of the mapping mechanism is to simplify the representation of enum values in a user interface.&lt;/p&gt;

@see &lt;a href=&quot;QGroupBox.html&quot;&gt;&lt;tt&gt;QGroupBox&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPushButton.html&quot;&gt;&lt;tt&gt;QPushButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCheckBox.html&quot;&gt;&lt;tt&gt;QCheckBox&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRadioButton.html&quot;&gt;&lt;tt&gt;QRadioButton&lt;/tt&gt;&lt;/a&gt; */">
    <signal name="protected final void buttonIdClicked(int arg__1)" doc="/**
&lt;p&gt;This signal is emitted when a button with the given &lt;tt&gt;arg__1&lt;/tt&gt; is clicked.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int arg__1)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QButtonGroup.html#checkedButton()&quot;&gt;&lt;tt&gt;checkedButton&lt;/tt&gt;&lt;/a&gt;, &lt;tt&gt;QAbstractButton::clicked&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void buttonClicked(com.trolltech.qt.gui.QAbstractButton arg__1)" doc="/**
&lt;p&gt;This signal is emitted when the given &lt;tt&gt;arg__1&lt;/tt&gt; is clicked. A button is clicked when it is first pressed and then released, when its shortcut key is typed, or programmatically when QAbstractButton::click() or QAbstractButton::animateClick() is called.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.gui.QAbstractButton arg__1)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QButtonGroup.html#checkedButton()&quot;&gt;&lt;tt&gt;checkedButton&lt;/tt&gt;&lt;/a&gt;, &lt;tt&gt;QAbstractButton::clicked&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void buttonPressed(com.trolltech.qt.gui.QAbstractButton arg__1)" doc="/**
&lt;p&gt;This signal is emitted when the given &lt;tt&gt;arg__1&lt;/tt&gt; is pressed down.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.gui.QAbstractButton arg__1)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;QAbstractButton::pressed&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void buttonIdPressed(int arg__1)" doc="/**
&lt;p&gt;This signal is emitted when a button with the given &lt;tt&gt;arg__1&lt;/tt&gt; is pressed down.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int arg__1)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;QAbstractButton::pressed&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void buttonIdReleased(int arg__1)" doc="/**
&lt;p&gt;This signal is emitted when a button with the given &lt;tt&gt;arg__1&lt;/tt&gt; is released.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int arg__1)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;QAbstractButton::released&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void buttonReleased(com.trolltech.qt.gui.QAbstractButton arg__1)" doc="/**
&lt;p&gt;This signal is emitted when the given &lt;tt&gt;arg__1&lt;/tt&gt; is released.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.gui.QAbstractButton arg__1)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;QAbstractButton::released&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QButtonGroup(com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Constructs a new, empty button group with the given &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QButtonGroup.html#addButton(com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;addButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QButtonGroup.html#setExclusive(boolean)&quot;&gt;&lt;tt&gt;setExclusive&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QButtonGroup()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QButtonGroup.html#QButtonGroup(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QButtonGroup&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public final void addButton(com.trolltech.qt.gui.QAbstractButton arg__1, int id)" doc="/**
&lt;p&gt;Adds the given &lt;tt&gt;arg__1&lt;/tt&gt; to the button group, with the given &lt;tt&gt;id&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QButtonGroup.html#removeButton(com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;removeButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QButtonGroup.html#buttons()&quot;&gt;&lt;tt&gt;buttons&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void addButton(com.trolltech.qt.gui.QAbstractButton arg__1)" doc="/**
&lt;p&gt;Adds the given &lt;tt&gt;arg__1&lt;/tt&gt; to the end of the group's internal list of buttons.&lt;/p&gt;

@see &lt;a href=&quot;QButtonGroup.html#removeButton(com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;removeButton&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QAbstractButton button(int id)" doc="/**
&lt;p&gt;Returns the button with the specified &lt;tt&gt;id&lt;/tt&gt;, or 0 if no such button exists.&lt;/p&gt;
 */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QAbstractButton&gt; buttons()" doc="/**
&lt;p&gt;Returns the list of this groups's buttons. This may be empty.&lt;/p&gt;

@see &lt;a href=&quot;QButtonGroup.html#addButton(com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;addButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QButtonGroup.html#removeButton(com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;removeButton&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QAbstractButton checkedButton()" doc="/**
&lt;p&gt;Returns the button group's checked button, or 0 if no buttons are checked.&lt;/p&gt;

@see &lt;a href=&quot;QButtonGroup.html#buttonClicked(com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;buttonClicked&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int checkedId()" doc="/**
&lt;p&gt;Returns the id of the &lt;a href=&quot;QButtonGroup.html#checkedButton()&quot;&gt;&lt;tt&gt;checkedButton&lt;/tt&gt;&lt;/a&gt;, or -1 if no button is checked.&lt;/p&gt;

@see &lt;a href=&quot;QButtonGroup.html#setId(com.trolltech.qt.gui.QAbstractButton, int)&quot;&gt;&lt;tt&gt;setId&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean exclusive()" doc="/**
&lt;p&gt;Returns whether the button group is exclusive.&lt;/p&gt;
&lt;p&gt;If this property is true then only one button in the group can be checked at any given time. The user can click on any button to check it, and that button will replace the existing one as the checked button in the group.&lt;/p&gt;
&lt;p&gt;In an exclusive group, the user cannot uncheck the currently checked button by clicking on it; instead, another button in the group must be clicked to set the new checked button for that group.&lt;/p&gt;
&lt;p&gt;By default, this property is true.&lt;/p&gt;

@see &lt;a href=&quot;QButtonGroup.html#setExclusive(boolean)&quot;&gt;&lt;tt&gt;setExclusive&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int id(com.trolltech.qt.gui.QAbstractButton button)" doc="/**
&lt;p&gt;Returns the id for the specified &lt;tt&gt;button&lt;/tt&gt;, or -1 if no such button exists.&lt;/p&gt;

@see &lt;a href=&quot;QButtonGroup.html#setId(com.trolltech.qt.gui.QAbstractButton, int)&quot;&gt;&lt;tt&gt;setId&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void removeButton(com.trolltech.qt.gui.QAbstractButton arg__1)" doc="/**
&lt;p&gt;Removes the given &lt;tt&gt;arg__1&lt;/tt&gt; from the button group.&lt;/p&gt;

@see &lt;a href=&quot;QButtonGroup.html#addButton(com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;addButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QButtonGroup.html#buttons()&quot;&gt;&lt;tt&gt;buttons&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setExclusive(boolean arg__1)" doc="/**
&lt;p&gt;Sets whether the button group is exclusive to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If this property is true then only one button in the group can be checked at any given time. The user can click on any button to check it, and that button will replace the existing one as the checked button in the group.&lt;/p&gt;
&lt;p&gt;In an exclusive group, the user cannot uncheck the currently checked button by clicking on it; instead, another button in the group must be clicked to set the new checked button for that group.&lt;/p&gt;
&lt;p&gt;By default, this property is true.&lt;/p&gt;

@see &lt;a href=&quot;QButtonGroup.html#exclusive()&quot;&gt;&lt;tt&gt;exclusive&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setId(com.trolltech.qt.gui.QAbstractButton button, int id)" doc="/**
&lt;p&gt;Sets the &lt;tt&gt;id&lt;/tt&gt; for the specified &lt;tt&gt;button&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QButtonGroup.html#id(com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;id&lt;/tt&gt;&lt;/a&gt; */"/>
</class>