Sophie

Sophie

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

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

<class name="QColorDialog" doc="/**
&lt;p&gt;The &lt;a href=&quot;QColorDialog.html&quot;&gt;&lt;tt&gt;QColorDialog&lt;/tt&gt;&lt;/a&gt; class provides a dialog widget for specifying colors.&lt;/p&gt;
&lt;p&gt;The color dialog's function is to allow users to choose colors. For example, you might use this in a drawing program to allow the user to set the brush color.&lt;/p&gt;
&lt;p&gt;The static functions provide modal color dialogs.&lt;/p&gt;
&lt;p&gt;The static &lt;a href=&quot;QColorDialog.html#getColor(com.trolltech.qt.gui.QColor, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;getColor&lt;/tt&gt;&lt;/a&gt; function shows the dialog, and allows the user to specify a color. The getRgba() function does the same, but also allows the user to specify a color with an alpha channel (transparency) value.&lt;/p&gt;
&lt;p&gt;The user can store &lt;a href=&quot;QColorDialog.html#customCount()&quot;&gt;&lt;tt&gt;customCount&lt;/tt&gt;&lt;/a&gt; different custom colors. The custom colors are shared by all color dialogs, and remembered during the execution of the program. Use &lt;a href=&quot;QColorDialog.html#setCustomColor(int, int)&quot;&gt;&lt;tt&gt;setCustomColor&lt;/tt&gt;&lt;/a&gt; to set the custom colors, and use &lt;a href=&quot;QColorDialog.html#customColor(int)&quot;&gt;&lt;tt&gt;customColor&lt;/tt&gt;&lt;/a&gt; to get them.&lt;/p&gt;
&lt;p&gt;Additional widgets that allow users to pick colors are available as Qt Solutions&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The Standard Dialogs&lt;/tt&gt; example shows how to use &lt;a href=&quot;QColorDialog.html&quot;&gt;&lt;tt&gt;QColorDialog&lt;/tt&gt;&lt;/a&gt; as well as other built-in Qt dialogs.&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/plastique-colordialog.png&quot; alt=&quot;A color dialog in the Plastique widget style.&quot; /&gt;&lt;/p&gt;
@see &lt;a href=&quot;QColor.html&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFileDialog.html&quot;&gt;&lt;tt&gt;QFileDialog&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPrintDialog.html&quot;&gt;&lt;tt&gt;QPrintDialog&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFontDialog.html&quot;&gt;&lt;tt&gt;QFontDialog&lt;/tt&gt;&lt;/a&gt;
@see Standard Dialogs Example&lt;/tt&gt; */">
    <signal name="protected final void accepted()" doc="/**
&lt;p&gt;This signal is emitted when the dialog has been accepted either by the user or by calling &lt;a href=&quot;QDialog.html#accept()&quot;&gt;&lt;tt&gt;accept&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QDialog.html#done(int)&quot;&gt;&lt;tt&gt;done&lt;/tt&gt;&lt;/a&gt; with the QDialog::Accepted argument.&lt;/p&gt;
&lt;p&gt;Note that this signal is &lt;i&gt;not&lt;/i&gt; emitted when hiding the dialog with &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QDialog.html#setVisible(boolean)&quot;&gt;&lt;tt&gt;setVisible&lt;/tt&gt;&lt;/a&gt;(false). This includes deleting the dialog while it is visible.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&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;QColorDialog.html#finished(int)&quot;&gt;&lt;tt&gt;finished&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QColorDialog.html#rejected()&quot;&gt;&lt;tt&gt;rejected&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void customContextMenuRequested(com.trolltech.qt.core.QPoint pos)" doc="/**
&lt;p&gt;This signal is emitted when the widget's &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt; is Qt::CustomContextMenu, and the user has requested a context menu on the widget. The position &lt;tt&gt;pos&lt;/tt&gt; is the position of the context menu event that the widget receives. Normally this is in widget coordinates. The exception to this rule is &lt;a href=&quot;QAbstractScrollArea.html&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; and its subclasses that map the context menu event to coordinates of the viewport()&lt;/tt&gt; .&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.core.QPoint pos)&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;QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapToGlobal&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void finished(int result)" doc="/**
&lt;p&gt;This signal is emitted when the dialog's &lt;tt&gt;result&lt;/tt&gt; code has been set, either by the user or by calling &lt;a href=&quot;QDialog.html#done(int)&quot;&gt;&lt;tt&gt;done&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDialog.html#accept()&quot;&gt;&lt;tt&gt;accept&lt;/tt&gt;&lt;/a&gt;, or &lt;a href=&quot;QDialog.html#reject()&quot;&gt;&lt;tt&gt;reject&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Note that this signal is &lt;i&gt;not&lt;/i&gt; emitted when hiding the dialog with &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QDialog.html#setVisible(boolean)&quot;&gt;&lt;tt&gt;setVisible&lt;/tt&gt;&lt;/a&gt;(false). This includes deleting the dialog while it is visible.&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 result)&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;QColorDialog.html#accepted()&quot;&gt;&lt;tt&gt;accepted&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QColorDialog.html#rejected()&quot;&gt;&lt;tt&gt;rejected&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void rejected()" doc="/**
&lt;p&gt;This signal is emitted when the dialog has been rejected either by the user or by calling &lt;a href=&quot;QDialog.html#reject()&quot;&gt;&lt;tt&gt;reject&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QDialog.html#done(int)&quot;&gt;&lt;tt&gt;done&lt;/tt&gt;&lt;/a&gt; with the QDialog::Rejected argument.&lt;/p&gt;
&lt;p&gt;Note that this signal is &lt;i&gt;not&lt;/i&gt; emitted when hiding the dialog with &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QDialog.html#setVisible(boolean)&quot;&gt;&lt;tt&gt;setVisible&lt;/tt&gt;&lt;/a&gt;(false). This includes deleting the dialog while it is visible.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&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;QColorDialog.html#finished(int)&quot;&gt;&lt;tt&gt;finished&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QColorDialog.html#accepted()&quot;&gt;&lt;tt&gt;accepted&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public native static int customColor(int arg__1)" doc="/**
&lt;p&gt;Returns custom color number &lt;tt&gt;arg__1&lt;/tt&gt; as a QRgb value.&lt;/p&gt;

@see &lt;a href=&quot;QColorDialog.html#setCustomColor(int, int)&quot;&gt;&lt;tt&gt;setCustomColor&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static int customCount()" doc="/**
&lt;p&gt;Returns the number of custom colors supported by &lt;a href=&quot;QColorDialog.html&quot;&gt;&lt;tt&gt;QColorDialog&lt;/tt&gt;&lt;/a&gt;. All color dialogs share the same custom colors.&lt;/p&gt;
 */"/>
    <method name="public static com.trolltech.qt.gui.QColor getColor(com.trolltech.qt.gui.QColor init, com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Pops up a modal color dialog, lets the user choose a color, and returns that color. The color is initially set to &lt;tt&gt;init&lt;/tt&gt;. The dialog is a child of &lt;tt&gt;parent&lt;/tt&gt;. It returns an invalid (see QColor::isValid()) color if the user cancels the dialog. All colors allocated by the dialog will be deallocated before this function returns.&lt;/p&gt;
 */"/>
    <method name="public static com.trolltech.qt.gui.QColor getColor(com.trolltech.qt.gui.QColor init)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QColorDialog.html#getColor(com.trolltech.qt.gui.QColor, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;getColor&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;init&lt;/tt&gt;, 0). */"/>
    <method name="public static com.trolltech.qt.gui.QColor getColor()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QColorDialog.html#getColor(com.trolltech.qt.gui.QColor, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;getColor&lt;/tt&gt;&lt;/a&gt;(Qt::white, 0). */"/>
    <method name="public native static void setCustomColor(int arg__1, int arg__2)" doc="/**
&lt;p&gt;Sets the custom color &lt;tt&gt;arg__1&lt;/tt&gt; to the QRgb &lt;tt&gt;arg__2&lt;/tt&gt; value.&lt;/p&gt;

@see &lt;a href=&quot;QColorDialog.html#customColor(int)&quot;&gt;&lt;tt&gt;customColor&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static void setStandardColor(int arg__1, int arg__2)" doc="/**
&lt;p&gt;Sets the standard color &lt;tt&gt;arg__1&lt;/tt&gt; to the QRgb &lt;tt&gt;arg__2&lt;/tt&gt; value given.&lt;/p&gt;
 */"/>
</class>