org.kde.koala
public class KKeySequence extends Object implements QtSupport
UNKNOWN: A KKeySequence object holds a sequence of up to 4 keys.
Field Summary | |
---|---|
static int | MAX_KEYS |
Constructor Summary | |
---|---|
protected | KKeySequence(Class dummy) |
KKeySequence()
Create a new null key sequence. | |
KKeySequence(QKeySequence keySeq)
Copies the given qt key sequence. | |
KKeySequence(KKey key)
Create a new key sequence that only contains the given key. | |
KKeySequence(KKeySequence keySeq)
Copies the given key sequence. | |
KKeySequence(String keySeq)
Creates a new key sequence that contains the given key sequence.
|
Method Summary | |
---|---|
void | clear()
Clears the key sequence. |
int | compare(KKeySequence keySeq)
Compares this object with the given key sequence. |
int | count()
Returns the number of key strokes of this sequence. |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected void | finalize() Deletes the wrapped C++ instance |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
boolean | isNull()
Returns true if the key sequence is null (after clear() or empty
constructor). |
boolean | isTriggerOnRelease() |
KKey | key(int i)
Return the i 'th key of this sequence, or a null key if there
are less then i keys. |
int | keyCodeQt()
Returns the qt key code of the first key. |
static KKeySequence | nil()
Returns a null key sequence. |
boolean | op_equals(KKeySequence seq)
Compares the keys of both sequences. |
boolean | op_lt(KKeySequence seq)
Compares the keys of both sequences. |
boolean | op_not_equals(KKeySequence seq)
Compares the keys of both sequences. |
QKeySequence | qt()
Converts this key sequence to a QKeySequence. |
boolean | setKey(int i, KKey key)
Sets the i 'th key of the sequence. |
boolean | startsWith(KKeySequence keySeq)
Returns true if this key sequence begins with the given sequence. |
String | toString()
Returns the key sequence as a number of key presses as
returned by KKey.toString(), separated by commas. |
String | toStringInternal() |
See Also: KKeySequence KKeySequence KKeySequence
UNKNOWN: Create a new null key sequence.
Parameters: keySeq the qt key sequence to copy
UNKNOWN: Copies the given qt key sequence.
Parameters: key the key to add
UNKNOWN: Create a new key sequence that only contains the given key.
Parameters: keySeq the key sequence to copy
UNKNOWN: Copies the given key sequence.
Parameters: keySeq the description of the key
See Also: KKeyServer#Sym#init
(const
UNKNOWN: Creates a new key sequence that contains the given key sequence.
See Also: KKeySequence
UNKNOWN: Clears the key sequence.
Parameters: keySeq the key sequence to compare to
Returns: a negative number if the given KKeySequence is larger, 0 if they are equal and a positive number this KKeySequence is larger
See Also: KKey
UNKNOWN: Compares this object with the given key sequence.
Returns: the number of key strokes
See Also: MAX_KEYS
UNKNOWN: Returns the number of key strokes of this sequence.
Returns: true if the key sequence is null
See Also: KKeySequence KKeySequence
UNKNOWN: Returns true if the key sequence is null (after clear() or empty constructor).
UNKNOWN:
i
'th key of this sequence, or a null key if there
are less then i keys.Parameters: i the key to retrieve
Returns: the i
'th key, or KKey.null() if there are less
than i keys
See Also: MAX_KEYS
UNKNOWN: Return the i
'th key of this sequence, or a null key if there are less then i keys.
Returns: the qt key code of the first key
See Also: org.kde.qt.Qt#Key KKey
UNKNOWN: Returns the qt key code of the first key.
Returns: the null key sequence
See Also: KKeySequence KKeySequence
UNKNOWN: Returns a null key sequence.
See Also: KKeySequence
UNKNOWN: Compares the keys of both sequences.
See Also: KKeySequence
UNKNOWN: Compares the keys of both sequences.
See Also: KKeySequence
UNKNOWN: Compares the keys of both sequences.
Returns: the QKeySequence
UNKNOWN: Converts this key sequence to a QKeySequence.
i
'th key of the sequence. You can not introduce gaps
in a sequence, so you must use an i
<= count(). Also note that
the maximum length of a key sequence is MAX_KEYS.Parameters: i the position of the new key (<= count(), <= MAX_KEYS) key the key to set
Returns: true if successful, false otherwise
UNKNOWN: Sets the i
'th key of the sequence.
Parameters: keySeq the key sequence to search
Returns: true if this key sequence begins with the given sequence
UNKNOWN: Returns true if this key sequence begins with the given sequence.
Returns: the string represenation of this key sequence
See Also: KKey
UNKNOWN: Returns the key sequence as a number of key presses as returned by KKey.toString(), separated by commas.
UNKNOWN: