|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kde.koala.KShortcutList
public class KShortcutList
KShortcutList is an abstract base class for KAccelShortcutList and KStdAccel.ShortcutList. It gives you an unified interface for accessing the accelerator lists of KAccel (using KAccelShortcutList), KGlobalAccel (using KAccelShortcutList), and KStdAccel (using KStdAccel.ShortcutList).
Constructor Summary | |
---|---|
protected |
KShortcutList(java.lang.Class dummy)
|
Method Summary | |
---|---|
int |
count()
Returns the number of entries. |
org.kde.qt.QVariant |
getOther(int arg1,
int index)
\internal @short \internal |
int |
index(KKeySequence keySeq)
Returns the index of the shortcut with he given key sequence. |
int |
index(java.lang.String sName)
Returns the index of the shortcut with he given name. |
KInstanceInterface |
instance()
The KInstance. |
boolean |
isConfigurable(int index)
Checks whether the shortcut with the given index is configurable. |
boolean |
isGlobal(int index)
Checks whether the shortcut with the given index is saved in the
global configuration. |
java.lang.String |
label(int index)
Returns the (i18n'd) label of the shortcut with the given index. |
java.lang.String |
name(int index)
Returns the name of the shortcut with the given index. |
boolean |
readSettings()
|
boolean |
readSettings(java.lang.String sConfigGroup)
|
boolean |
readSettings(java.lang.String sConfigGroup,
KConfigBase pConfig)
Loads the shortcuts from the given configuration file. |
boolean |
save()
Save the shortcut list. |
boolean |
setOther(int arg1,
int index,
org.kde.qt.QVariant arg3)
\internal @short \internal |
boolean |
setShortcut(int index,
KShortcut shortcut)
Sets the shortcut of the given entry |
KShortcut |
shortcut(int index)
Returns the shortcut with the given index. |
KShortcut |
shortcutDefault(int index)
Returns default shortcut with the given index. |
java.lang.String |
whatsThis(int index)
Returns the (i18n'd) What's This text of the shortcut with the given index. |
boolean |
writeSettings()
|
boolean |
writeSettings(java.lang.String sConfigGroup)
|
boolean |
writeSettings(java.lang.String sConfigGroup,
KConfigBase pConfig)
|
boolean |
writeSettings(java.lang.String sConfigGroup,
KConfigBase pConfig,
boolean bWriteAll)
|
boolean |
writeSettings(java.lang.String sConfigGroup,
KConfigBase pConfig,
boolean bWriteAll,
boolean bGlobal)
Writes the shortcuts to the given configuration file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected KShortcutList(java.lang.Class dummy)
Method Detail |
---|
public int count()
public java.lang.String name(int index)
index.
index
- the index of the shortcut (must be < count())
public java.lang.String label(int index)
index.
index
- the index of the shortcut (must be < count())
public java.lang.String whatsThis(int index)
index.
index
- the index of the shortcut (must be < count())
public KShortcut shortcut(int index)
index.
index
- the index of the shortcut (must be < count())
shortcutDefault(int)
public KShortcut shortcutDefault(int index)
index.
index
- the index of the shortcut (must be < count())
shortcut(int)
public boolean isConfigurable(int index)
index
is configurable.
index
- the index of the shortcut (must be < count())
public boolean setShortcut(int index, KShortcut shortcut)
index
- the index of the shortcut (must be < count())shortcut
- the shortcutpublic boolean isGlobal(int index)
index
is saved in the
global configuration.
index
- the index of the shortcut (must be < count())
public int index(java.lang.String sName)
sName
- the name of the shortcut to search
public int index(KKeySequence keySeq)
keySeq
- the key sequence to search for
public KInstanceInterface instance()
public org.kde.qt.QVariant getOther(int arg1, int index)
public boolean setOther(int arg1, int index, org.kde.qt.QVariant arg3)
public boolean save()
public boolean readSettings(java.lang.String sConfigGroup, KConfigBase pConfig)
sConfigGroup
- the group in the configuration filepConfig
- the configuration file to load from
public boolean readSettings(java.lang.String sConfigGroup)
public boolean readSettings()
public boolean writeSettings(java.lang.String sConfigGroup, KConfigBase pConfig, boolean bWriteAll, boolean bGlobal)
sConfigGroup
- the group in the configuration filepConfig
- the configuration file to save tobWriteAll
- true to write all actionsbGlobal
- true to write to the global configuration file
public boolean writeSettings(java.lang.String sConfigGroup, KConfigBase pConfig, boolean bWriteAll)
public boolean writeSettings(java.lang.String sConfigGroup, KConfigBase pConfig)
public boolean writeSettings(java.lang.String sConfigGroup)
public boolean writeSettings()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |