Sophie

Sophie

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

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

<class name="QKeyEvent" doc="/**
&lt;p&gt;The &lt;a href=&quot;QKeyEvent.html#QKeyEvent(com.trolltech.qt.core.QEvent.Type, int, com.trolltech.qt.core.Qt.KeyboardModifiers, java.lang.String, boolean, char)&quot;&gt;&lt;tt&gt;QKeyEvent&lt;/tt&gt;&lt;/a&gt; class contains describes a key event.&lt;/p&gt;
&lt;p&gt;Key events are sent to the widget with keyboard input focus when keys are pressed or released.&lt;/p&gt;
&lt;p&gt;A key event contains a special accept flag that indicates whether the receiver will handle the key event. You should call &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QEvent.html#ignore()&quot;&gt;&lt;tt&gt;ignore&lt;/tt&gt;&lt;/a&gt; if the key press or release event is not handled by your widget. A key event is propagated up the parent widget chain until a widget accepts it with &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QEvent.html#accept()&quot;&gt;&lt;tt&gt;accept&lt;/tt&gt;&lt;/a&gt; or an event filter consumes it. Key events for multimedia keys are ignored by default. You should call &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QEvent.html#accept()&quot;&gt;&lt;tt&gt;accept&lt;/tt&gt;&lt;/a&gt; if your widget handles those events.&lt;/p&gt;
&lt;p&gt;The QWidget::setEnable() function can be used to enable or disable mouse and keyboard events for a widget.&lt;/p&gt;
&lt;p&gt;The event handlers QWidget::keyPressEvent() and QWidget::keyReleaseEvent() receive key events.&lt;/p&gt;

@see &lt;a href=&quot;QFocusEvent.html&quot;&gt;&lt;tt&gt;QFocusEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWidget::grabKeyboard&lt;/tt&gt; */">
    <method name="public QKeyEvent(com.trolltech.qt.core.QEvent.Type type, int key, com.trolltech.qt.core.Qt.KeyboardModifiers modifiers, java.lang.String text, boolean autorep, char count)" doc="/**
&lt;p&gt;Constructs a key event object.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;type&lt;/tt&gt; parameter must be QEvent::KeyPress, QEvent::KeyRelease, or QEvent::ShortcutOverride.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;key&lt;/tt&gt; is 0, the event is not a result of a known key; for example, it may be the result of a compose sequence or keyboard macro. The &lt;tt&gt;modifiers&lt;/tt&gt; holds the keyboard modifiers, and the given &lt;tt&gt;text&lt;/tt&gt; is the Unicode text that the key generated. If &lt;tt&gt;autorep&lt;/tt&gt; is true, &lt;a href=&quot;QKeyEvent.html#isAutoRepeat()&quot;&gt;&lt;tt&gt;isAutoRepeat&lt;/tt&gt;&lt;/a&gt; will be true. &lt;tt&gt;count&lt;/tt&gt; is the number of keys involved in the event.&lt;/p&gt;
 */"/>
    <method name="public QKeyEvent(com.trolltech.qt.core.QEvent.Type type, int key, com.trolltech.qt.core.Qt.KeyboardModifiers modifiers, java.lang.String text, boolean autorep)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QKeyEvent.html#QKeyEvent(com.trolltech.qt.core.QEvent.Type, int, com.trolltech.qt.core.Qt.KeyboardModifiers, java.lang.String, boolean, char)&quot;&gt;&lt;tt&gt;QKeyEvent&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;type&lt;/tt&gt;, &lt;tt&gt;key&lt;/tt&gt;, &lt;tt&gt;modifiers&lt;/tt&gt;, &lt;tt&gt;text&lt;/tt&gt;, &lt;tt&gt;autorep&lt;/tt&gt;, 1). */"/>
    <method name="public QKeyEvent(com.trolltech.qt.core.QEvent.Type type, int key, com.trolltech.qt.core.Qt.KeyboardModifiers modifiers, java.lang.String text)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QKeyEvent.html#QKeyEvent(com.trolltech.qt.core.QEvent.Type, int, com.trolltech.qt.core.Qt.KeyboardModifiers, java.lang.String, boolean, char)&quot;&gt;&lt;tt&gt;QKeyEvent&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;type&lt;/tt&gt;, &lt;tt&gt;key&lt;/tt&gt;, &lt;tt&gt;modifiers&lt;/tt&gt;, &lt;tt&gt;text&lt;/tt&gt;, false, 1). */"/>
    <method name="public QKeyEvent(com.trolltech.qt.core.QEvent.Type type, int key, com.trolltech.qt.core.Qt.KeyboardModifiers modifiers)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QKeyEvent.html#QKeyEvent(com.trolltech.qt.core.QEvent.Type, int, com.trolltech.qt.core.Qt.KeyboardModifiers, java.lang.String, boolean, char)&quot;&gt;&lt;tt&gt;QKeyEvent&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;type&lt;/tt&gt;, &lt;tt&gt;key&lt;/tt&gt;, &lt;tt&gt;modifiers&lt;/tt&gt;, QString(), false, 1). */"/>
    <method name="public final int count()" doc="/**
&lt;p&gt;Returns the number of keys involved in this event. If &lt;a href=&quot;QKeyEvent.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt; is not empty, this is simply the length of the string.&lt;/p&gt;

@see &lt;tt&gt;Qt::WA_KeyCompression&lt;/tt&gt; */"/>
    <method name="public final boolean hasExtendedInfo()" doc="/**
&lt;p&gt;This method is used internally by Qt Jambi.
Do not use it in your applications.&lt;/p&gt;
 */"/>
    <method name="public final boolean isAutoRepeat()" doc="/**
&lt;p&gt;Returns true if this event comes from an auto-repeating key; returns false if it comes from an initial key press.&lt;/p&gt;
&lt;p&gt;Note that if the event is a multiple-key compressed event that is partly due to auto-repeat, this function could return either true or false indeterminately.&lt;/p&gt;
 */"/>
    <method name="public final int key()" doc="/**
&lt;p&gt;Returns the code of the key that was pressed or released.&lt;/p&gt;
&lt;p&gt;See Qt::Key&lt;/tt&gt; for the list of keyboard codes. These codes are independent of the underlying window system. Note that this function does not distinguish between capital and non-capital letters, use the &lt;a href=&quot;QKeyEvent.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt; function (returning the Unicode text the key generated) for this purpose.&lt;/p&gt;
&lt;p&gt;A value of either 0 or Qt::Key_unknown means that the event is not the result of a known key; for example, it may be the result of a compose sequence, a keyboard macro, or due to key event compression.&lt;/p&gt;

@see &lt;tt&gt;Qt::WA_KeyCompression&lt;/tt&gt; */"/>
    <method name="public final boolean matches(com.trolltech.qt.gui.QKeySequence.StandardKey key)" doc="/**
&lt;p&gt;Returns true if the key event matches the given standard &lt;tt&gt;key&lt;/tt&gt;; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.Qt.KeyboardModifiers modifiers()" doc="/**
&lt;p&gt;Returns the keyboard modifier flags that existed immediately after the event occurred.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; This function cannot always be trusted. The user can confuse it by pressing both &lt;b&gt;Shift&lt;/b&gt; keys simultaneously and releasing one of them, for example.&lt;/p&gt;

@see &lt;tt&gt;QApplication::keyboardModifiers&lt;/tt&gt; */"/>
    <method name="public final int nativeModifiers()" doc="/**
&lt;p&gt;Returns the native modifiers of a key event. If the key event does not contain this data 0 is returned.&lt;/p&gt;
&lt;p&gt;Note: The native modifiers may be 0, even if the key event contains extended information.&lt;/p&gt;
 */"/>
    <method name="public final int nativeScanCode()" doc="/**
&lt;p&gt;Returns the native scan code of the key event. If the key event does not contain this data 0 is returned.&lt;/p&gt;
&lt;p&gt;Note: The native scan code may be 0, even if the key event contains extended information.&lt;/p&gt;
 */"/>
    <method name="public final int nativeVirtualKey()" doc="/**
&lt;p&gt;Returns the native virtual key, or key sym of the key event. If the key event does not contain this data 0 is returned.&lt;/p&gt;
&lt;p&gt;Note: The native virtual key may be 0, even if the key event contains extended information.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String text()" doc="/**
&lt;p&gt;Returns the Unicode text that this key generated. The text returned can be an empty string in cases where modifier keys, such as Shift, Control, Alt, and Meta, are being pressed or released. In such cases &lt;a href=&quot;QKeyEvent.html#key()&quot;&gt;&lt;tt&gt;key&lt;/tt&gt;&lt;/a&gt; will contain a valid value.&lt;/p&gt;

@see &lt;tt&gt;Qt::WA_KeyCompression&lt;/tt&gt; */"/>
    <method name="public static com.trolltech.qt.gui.QKeyEvent createExtendedKeyEvent(com.trolltech.qt.core.QEvent.Type type, int key, com.trolltech.qt.core.Qt.KeyboardModifiers modifiers, int nativeScanCode, int nativeVirtualKey, int nativeModifiers, java.lang.String text, boolean autorep, char count)" doc="/**
&lt;p&gt;This method is used internally by Qt Jambi.
Do not use it in your applications.&lt;/p&gt;
 */"/>
    <method name="public static com.trolltech.qt.gui.QKeyEvent createExtendedKeyEvent(com.trolltech.qt.core.QEvent.Type type, int key, com.trolltech.qt.core.Qt.KeyboardModifiers modifiers, int nativeScanCode, int nativeVirtualKey, int nativeModifiers, java.lang.String text, boolean autorep)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QKeyEvent.html#createExtendedKeyEvent(com.trolltech.qt.core.QEvent.Type, int, com.trolltech.qt.core.Qt.KeyboardModifiers, int, int, int, java.lang.String, boolean, char)&quot;&gt;&lt;tt&gt;createExtendedKeyEvent&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;type&lt;/tt&gt;, &lt;tt&gt;key&lt;/tt&gt;, &lt;tt&gt;modifiers&lt;/tt&gt;, &lt;tt&gt;nativeScanCode&lt;/tt&gt;, &lt;tt&gt;nativeVirtualKey&lt;/tt&gt;, &lt;tt&gt;nativeModifiers&lt;/tt&gt;, &lt;tt&gt;text&lt;/tt&gt;, &lt;tt&gt;autorep&lt;/tt&gt;, 1). */"/>
    <method name="public static com.trolltech.qt.gui.QKeyEvent createExtendedKeyEvent(com.trolltech.qt.core.QEvent.Type type, int key, com.trolltech.qt.core.Qt.KeyboardModifiers modifiers, int nativeScanCode, int nativeVirtualKey, int nativeModifiers, java.lang.String text)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QKeyEvent.html#createExtendedKeyEvent(com.trolltech.qt.core.QEvent.Type, int, com.trolltech.qt.core.Qt.KeyboardModifiers, int, int, int, java.lang.String, boolean, char)&quot;&gt;&lt;tt&gt;createExtendedKeyEvent&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;type&lt;/tt&gt;, &lt;tt&gt;key&lt;/tt&gt;, &lt;tt&gt;modifiers&lt;/tt&gt;, &lt;tt&gt;nativeScanCode&lt;/tt&gt;, &lt;tt&gt;nativeVirtualKey&lt;/tt&gt;, &lt;tt&gt;nativeModifiers&lt;/tt&gt;, &lt;tt&gt;text&lt;/tt&gt;, false, 1). */"/>
    <method name="public static com.trolltech.qt.gui.QKeyEvent createExtendedKeyEvent(com.trolltech.qt.core.QEvent.Type type, int key, com.trolltech.qt.core.Qt.KeyboardModifiers modifiers, int nativeScanCode, int nativeVirtualKey, int nativeModifiers)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QKeyEvent.html#createExtendedKeyEvent(com.trolltech.qt.core.QEvent.Type, int, com.trolltech.qt.core.Qt.KeyboardModifiers, int, int, int, java.lang.String, boolean, char)&quot;&gt;&lt;tt&gt;createExtendedKeyEvent&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;type&lt;/tt&gt;, &lt;tt&gt;key&lt;/tt&gt;, &lt;tt&gt;modifiers&lt;/tt&gt;, &lt;tt&gt;nativeScanCode&lt;/tt&gt;, &lt;tt&gt;nativeVirtualKey&lt;/tt&gt;, &lt;tt&gt;nativeModifiers&lt;/tt&gt;, QString(), false, 1). */"/>
    <method name="protected final int k()"/>
    <method name="protected final void setK(int k)"/>
    <method name="protected final java.lang.String txt()"/>
    <method name="protected final void setTxt(java.lang.String txt)"/>
    <method name="protected final char c()"/>
    <method name="protected final void setC(char c)"/>
    <method name="protected final int autor()"/>
    <method name="protected final void setAutor(int autor)"/>
</class>