org.kde.koala
Class KAccelShortcutList

java.lang.Object
  extended by org.kde.koala.KShortcutList
      extended by org.kde.koala.KAccelShortcutList
All Implemented Interfaces:
org.kde.qt.QtSupport

public class KAccelShortcutList
extends KShortcutList

KShortcutList implementation to access KAccel and KGlobalAccel lists.


Constructor Summary
protected KAccelShortcutList(java.lang.Class dummy)
           
  KAccelShortcutList(KAccel accel)
          Creates a new KShortcutList that accesses the given KAccel.
  KAccelShortcutList(KAccelActions actions, boolean bGlobal)
          Creates a new KShortcutList that accesses the given KAccelActions collection.
  KAccelShortcutList(KGlobalAccel accel)
          Creates a new KShortcutList that accesses the given KGlobalAccel.
 
Method Summary
 int count()
          Returns the number of entries.
 void dispose()
          Delete the wrapped C++ instance ahead of finalize()
protected  void finalize()
          Deletes the wrapped C++ instance
 org.kde.qt.QVariant getOther(int arg1, int index)
          \internal @short \internal
 boolean isConfigurable(int index)
          Checks whether the shortcut with the given index is configurable.
 boolean isDisposed()
          Has the wrapped C++ instance been deleted?
 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 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.
 
Methods inherited from class org.kde.koala.KShortcutList
index, index, instance, readSettings, readSettings, readSettings, writeSettings, writeSettings, writeSettings, writeSettings, writeSettings
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KAccelShortcutList

protected KAccelShortcutList(java.lang.Class dummy)

KAccelShortcutList

public KAccelShortcutList(KAccel accel)
Creates a new KShortcutList that accesses the given KAccel.

Parameters:
accel - the accelerators to access

KAccelShortcutList

public KAccelShortcutList(KGlobalAccel accel)
Creates a new KShortcutList that accesses the given KGlobalAccel.

Parameters:
accel - the accelerators to access

KAccelShortcutList

public KAccelShortcutList(KAccelActions actions,
                          boolean bGlobal)
Creates a new KShortcutList that accesses the given KAccelActions collection.

Parameters:
actions - the actions to access
bGlobal - true to save the actions in the global configuration file
Method Detail

count

public int count()
Description copied from class: KShortcutList
Returns the number of entries.

Overrides:
count in class KShortcutList
Returns:
the number of entries

name

public java.lang.String name(int index)
Description copied from class: KShortcutList
Returns the name of the shortcut with the given index.

Overrides:
name in class KShortcutList
Parameters:
index - the index of the shortcut (must be < count())
Returns:
the name of the shortcut

label

public java.lang.String label(int index)
Description copied from class: KShortcutList
Returns the (i18n'd) label of the shortcut with the given index.

Overrides:
label in class KShortcutList
Parameters:
index - the index of the shortcut (must be < count())
Returns:
the label (i18n'd) of the shortcut

whatsThis

public java.lang.String whatsThis(int index)
Description copied from class: KShortcutList
Returns the (i18n'd) What's This text of the shortcut with the given index.

Overrides:
whatsThis in class KShortcutList
Parameters:
index - the index of the shortcut (must be < count())
Returns:
the What's This text (i18n'd) of the shortcut

shortcut

public KShortcut shortcut(int index)
Description copied from class: KShortcutList
Returns the shortcut with the given index.

Overrides:
shortcut in class KShortcutList
Parameters:
index - the index of the shortcut (must be < count())
Returns:
the shortcut
See Also:
KShortcutList.shortcutDefault(int)

shortcutDefault

public KShortcut shortcutDefault(int index)
Description copied from class: KShortcutList
Returns default shortcut with the given index.

Overrides:
shortcutDefault in class KShortcutList
Parameters:
index - the index of the shortcut (must be < count())
Returns:
the default shortcut
See Also:
KShortcutList.shortcut(int)

isConfigurable

public boolean isConfigurable(int index)
Description copied from class: KShortcutList
Checks whether the shortcut with the given index is configurable.

Overrides:
isConfigurable in class KShortcutList
Parameters:
index - the index of the shortcut (must be < count())
Returns:
true if configurable, false otherwise

setShortcut

public boolean setShortcut(int index,
                           KShortcut shortcut)
Description copied from class: KShortcutList
Sets the shortcut of the given entry

Overrides:
setShortcut in class KShortcutList
Parameters:
index - the index of the shortcut (must be < count())
shortcut - the shortcut

isGlobal

public boolean isGlobal(int index)
Description copied from class: KShortcutList
Checks whether the shortcut with the given index is saved in the global configuration.

Overrides:
isGlobal in class KShortcutList
Parameters:
index - the index of the shortcut (must be < count())
Returns:
true if global, false otherwise

getOther

public org.kde.qt.QVariant getOther(int arg1,
                                    int index)
\internal @short \internal

Overrides:
getOther in class KShortcutList

setOther

public boolean setOther(int arg1,
                        int index,
                        org.kde.qt.QVariant arg3)
\internal @short \internal

Overrides:
setOther in class KShortcutList

save

public boolean save()
Description copied from class: KShortcutList
Save the shortcut list.

Overrides:
save in class KShortcutList
Returns:
true if successful, false otherwise

finalize

protected void finalize()
                 throws java.lang.InternalError
Deletes the wrapped C++ instance

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.InternalError

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()


isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?