Sophie

Sophie

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

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

<class name="QErrorMessage" doc="/**
&lt;p&gt;The &lt;a href=&quot;QErrorMessage.html#QErrorMessage(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QErrorMessage&lt;/tt&gt;&lt;/a&gt; class provides an error message display dialog.&lt;/p&gt;
&lt;p&gt;An error message widget consists of a text label and a checkbox. The checkbox lets the user control whether the same error message will be displayed again in the future, typically displaying the text, &amp;quot;Show this message again&amp;quot; translated into the appropriate local language.&lt;/p&gt;
&lt;p&gt;For production applications, the class can be used to display messages which the user only needs to see once. To use &lt;a href=&quot;QErrorMessage.html#QErrorMessage(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QErrorMessage&lt;/tt&gt;&lt;/a&gt; like this, you create the dialog in the usual way, and show it by calling the &lt;a href=&quot;QErrorMessage.html#showMessage(java.lang.String)&quot;&gt;&lt;tt&gt;showMessage&lt;/tt&gt;&lt;/a&gt; slot or connecting signals to it.&lt;/p&gt;
&lt;p&gt;The static &lt;a href=&quot;QErrorMessage.html#qtHandler()&quot;&gt;&lt;tt&gt;qtHandler&lt;/tt&gt;&lt;/a&gt; function installs a message handler using qInstallMsgHandler() and creates a &lt;a href=&quot;QErrorMessage.html#QErrorMessage(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QErrorMessage&lt;/tt&gt;&lt;/a&gt; that displays qDebug(), qWarning() and qFatal() messages. This is most useful in environments where no console is available to display warnings and error messages.&lt;/p&gt;
&lt;p&gt;In both cases &lt;a href=&quot;QErrorMessage.html#QErrorMessage(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QErrorMessage&lt;/tt&gt;&lt;/a&gt; will queue pending messages and display them in order, with each new message being shown as soon as the user has accepted the previous message. Once the user has specified that a message is not to be shown again it is automatically skipped, and the dialog will show the next appropriate message in the queue.&lt;/p&gt;
&lt;p&gt;The Standard Dialogs&lt;/tt&gt; example shows how to use &lt;a href=&quot;QErrorMessage.html#QErrorMessage(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QErrorMessage&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/qerrormessage.png&quot; /&gt;&lt;/p&gt;
@see &lt;a href=&quot;QMessageBox.html&quot;&gt;&lt;tt&gt;QMessageBox&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QStatusBar::showMessage&lt;/tt&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;QErrorMessage.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;QErrorMessage.html#finished(int)&quot;&gt;&lt;tt&gt;finished&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QErrorMessage.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;QErrorMessage.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;QErrorMessage.html#accepted()&quot;&gt;&lt;tt&gt;accepted&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QErrorMessage.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;QErrorMessage.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;QErrorMessage.html#finished(int)&quot;&gt;&lt;tt&gt;finished&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QErrorMessage.html#accepted()&quot;&gt;&lt;tt&gt;accepted&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QErrorMessage(com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Constructs and installs an error handler window with the given &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QErrorMessage()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QErrorMessage.html#QErrorMessage(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QErrorMessage&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public final void showMessage(java.lang.String message)" doc="/**
&lt;p&gt;Shows the given &lt;tt&gt;message&lt;/tt&gt;, and returns immediately. This function does nothing if the user has requested that &lt;tt&gt;message&lt;/tt&gt; should not be shown again.&lt;/p&gt;
&lt;p&gt;Normally, &lt;tt&gt;message&lt;/tt&gt; is shown at once, but if there are pending messages, &lt;tt&gt;message&lt;/tt&gt; is queued for later display.&lt;/p&gt;
 */"/>
    <method name="protected void changeEvent(com.trolltech.qt.core.QEvent e)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public void done(int arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public native static com.trolltech.qt.gui.QErrorMessage qtHandler()" doc="/**
&lt;p&gt;Returns a pointer to a &lt;a href=&quot;QErrorMessage.html#QErrorMessage(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QErrorMessage&lt;/tt&gt;&lt;/a&gt; object that outputs the default Qt messages. This function creates such an object, if there isn't one already.&lt;/p&gt;
 */"/>
</class>