org.kde.koala

Class KStdAccel

public class KStdAccel extends Object

\namespace KStdAccel Convenient methods for access to the common accelerator keys in the key configuration. These are the standard keybindings that should be used in all KDE applications. They will be configurable, so do not hardcode the default behavior. If you want real configurable keybindings in your applications, please checkout the class KAccel in kaccel.h

See Also: KAccelShortcutList

UNKNOWN: \namespace KStdAccel Convenient methods for access to the common accelerator keys in the key configuration.

Field Summary
static intAccelNone
Defines the identifier of all standard accelerators.
static intAddBookmark
static intBack
static intBackwardWord
static intBeginningOfLine
static intClose
static intCopy
static intCut
static intDeleteWordBack
static intDeleteWordForward
static intDeselect
static intEnd
static intEndOfLine
static intFind
static intFindNext
static intFindPrev
static intForward
static intForwardWord
static intFullScreen
static intGotoLine
static intHelp
static intHome
static intNew
static intNext
static intNextCompletion
static intOpen
static intPaste
static intPasteSelection
static intPopupMenuContext
static intPrevCompletion
static intPrint
static intPrior
static intQuit
static intRedo
static intReload
static intReplace
static intRotateDown
static intRotateUp
static intSave
static intSelectAll
static intShowMenubar
static intSubstringCompletion
static intTabNext
static intTabPrev
static intTextCompletion
static intUndo
static intUp
static intWhatsThis
static intWhatThis
static intZoomIn
static intZoomOut
Method Summary
static KShortcutaddBookmark()
Add current page to bookmarks.
static KShortcutback()
Back.
static KShortcutbackwardWord()
BackwardWord.
static KShortcutbeginningOfLine()
Goto beginning of current line.
static KShortcutclose()
Close current document.
static KShortcutcompletion()
Complete text in input widgets.
static KShortcutcopy()
Copy selected area into the clipboard.
static KShortcutcut()
Cut selected area and store it in the clipboard.
static KShortcutdeleteWordBack()
Delete a word back from mouse/cursor position.
static KShortcutdeleteWordForward()
Delete a word forward from mouse/cursor position.
static KShortcutend()
Goto end of the document.
static KShortcutendOfLine()
Goto end of current line.
static KShortcutfind()
Find, search.
static KShortcutfindNext()
Find/search next.
static KShortcutfindPrev()
Find/search previous.
static intfindStdAccel(KKeySequence keySeq)
Return the StdAccel id of the standard accel action which uses this key sequence, or AccelNone if none of them do.
static KShortcutforward()
Forward.
static KShortcutforwardWord()
ForwardWord.
static KShortcutfullScreen()
Full Screen Mode.
static KShortcutgotoLine()
Go to line.
static KShortcuthelp()
Help the user in the current situation.
static KShortcuthome()
Goto beginning of the document.
static Stringlabel(int id)
Returns a localized label for user-visible display.
static Stringname(int id)
Returns a unique name for the given accel.
static KShortcutnext()
Scroll down one page.
static KShortcutnextCompletion()
Iterate through a list when completion returns multiple items.
static KShortcutopen()
Open file.
static KShortcutopenNew()
Create a new document (or whatever).
static KShortcutpaste()
Paste contents of clipboard at mouse/cursor position.
static KShortcutpasteSelection()
Paste the selection at mouse/cursor position.
static KShortcutpopupMenuContext()
popup a context menu.
static KShortcutprevCompletion()
Iterate through a list when completion returns multiple items.
static KShortcutprint()
Print current document.
static KShortcutprior()
Scroll up one page.
static KShortcutquit()
Quit the program.
static KShortcutredo()
Redo.
static KShortcutreload()
Reload.
static KShortcutreplace()
Find and replace matches.
static KShortcutrotateDown()
Help users iterate through a list of entries.
static KShortcutrotateUp()
Help users iterate through a list of entries.
static KShortcutsave()
Save current document.
static KShortcutselectAll()
Reload.
static KShortcutshortcut(int id)
Returns the keybinding for accel.
static KShortcutshortcutDefault(int id)
Returns the hardcoded default shortcut for id. This does not take into account the user's configuration.
static KShortcutshortcutDefault3(int id)
Returns the hardcoded default 3 modifier shortcut for id. This does not take into account the user's configuration.
static KShortcutshortcutDefault4(int id)
Returns the hardcoded default 4 modifier shortcut for id. This does not take into account the user's configuration.
static KShortcutshowMenubar()
Show Menu Bar.
static KShortcutsubstringCompletion()
Find a string within another string or list of strings.
static KShortcuttabNext()
Next Tab.
static KShortcuttabPrev()
Previous Tab.
static KShortcutundo()
Undo last operation.
static KShortcutup()
Up.
static StringwhatsThis(int id)
Returns an extended WhatsThis description for the given accelerator.
static KShortcutwhatsThis()
What's This button.
static KShortcutzoomIn()
Zoom in.
static KShortcutzoomOut()
Zoom out.

Field Detail

AccelNone

public static final int AccelNone
Defines the identifier of all standard accelerators.

UNKNOWN: Defines the identifier of all standard accelerators.

AddBookmark

public static final int AddBookmark

Back

public static final int Back

BackwardWord

public static final int BackwardWord

BeginningOfLine

public static final int BeginningOfLine

Close

public static final int Close

Copy

public static final int Copy

Cut

public static final int Cut

DeleteWordBack

public static final int DeleteWordBack

DeleteWordForward

public static final int DeleteWordForward

Deselect

public static final int Deselect

End

public static final int End

EndOfLine

public static final int EndOfLine

Find

public static final int Find

FindNext

public static final int FindNext

FindPrev

public static final int FindPrev

Forward

public static final int Forward

ForwardWord

public static final int ForwardWord

FullScreen

public static final int FullScreen

GotoLine

public static final int GotoLine

Help

public static final int Help

Home

public static final int Home

New

public static final int New

public static final int Next

NextCompletion

public static final int NextCompletion

Open

public static final int Open

Paste

public static final int Paste

PasteSelection

public static final int PasteSelection

PopupMenuContext

public static final int PopupMenuContext

PrevCompletion

public static final int PrevCompletion

Print

public static final int Print

Prior

public static final int Prior

Quit

public static final int Quit

Redo

public static final int Redo

Reload

public static final int Reload

Replace

public static final int Replace

RotateDown

public static final int RotateDown

RotateUp

public static final int RotateUp

Save

public static final int Save

SelectAll

public static final int SelectAll

ShowMenubar

public static final int ShowMenubar

SubstringCompletion

public static final int SubstringCompletion

TabNext

public static final int TabNext

TabPrev

public static final int TabPrev

TextCompletion

public static final int TextCompletion

Undo

public static final int Undo

Up

public static final int Up

WhatsThis

public static final int WhatsThis

WhatThis

public static final int WhatThis

ZoomIn

public static final int ZoomIn

ZoomOut

public static final int ZoomOut

Method Detail

addBookmark

public static KShortcut addBookmark()
Add current page to bookmarks. Default: Ctrl+B

Returns: the shortcut of the standard accelerator

UNKNOWN: Add current page to bookmarks.

back

public static KShortcut back()
Back. Default: Alt+Left

Returns: the shortcut of the standard accelerator

UNKNOWN: Back.

backwardWord

public static KShortcut backwardWord()
BackwardWord. Default: Ctrl+Left

Returns: the shortcut of the standard accelerator

UNKNOWN: BackwardWord.

beginningOfLine

public static KShortcut beginningOfLine()
Goto beginning of current line. Default: Home

Returns: the shortcut of the standard accelerator

UNKNOWN: Goto beginning of current line.

close

public static KShortcut close()
Close current document. Default: Ctrl-w

Returns: the shortcut of the standard accelerator

UNKNOWN: Close current document.

completion

public static KShortcut completion()
Complete text in input widgets. Default Ctrl+E

Returns: the shortcut of the standard accelerator

UNKNOWN: Complete text in input widgets.

copy

public static KShortcut copy()
Copy selected area into the clipboard. Default: Ctrl-c

Returns: the shortcut of the standard accelerator

UNKNOWN: Copy selected area into the clipboard.

cut

public static KShortcut cut()
Cut selected area and store it in the clipboard. Default: Ctrl-x

Returns: the shortcut of the standard accelerator

UNKNOWN: Cut selected area and store it in the clipboard.

deleteWordBack

public static KShortcut deleteWordBack()
Delete a word back from mouse/cursor position. Default: Ctrl-Backspace

Returns: the shortcut of the standard accelerator

UNKNOWN: Delete a word back from mouse/cursor position.

deleteWordForward

public static KShortcut deleteWordForward()
Delete a word forward from mouse/cursor position. Default: Ctrl-Delete

Returns: the shortcut of the standard accelerator

UNKNOWN: Delete a word forward from mouse/cursor position.

end

public static KShortcut end()
Goto end of the document. Default: Ctrl-End

Returns: the shortcut of the standard accelerator

UNKNOWN: Goto end of the document.

endOfLine

public static KShortcut endOfLine()
Goto end of current line. Default: End

Returns: the shortcut of the standard accelerator

UNKNOWN: Goto end of current line.

find

public static KShortcut find()
Find, search. Default: Ctrl-f

Returns: the shortcut of the standard accelerator

UNKNOWN: Find, search.

findNext

public static KShortcut findNext()
Find/search next. Default: F3

Returns: the shortcut of the standard accelerator

UNKNOWN: Find/search next.

findPrev

public static KShortcut findPrev()
Find/search previous. Default: Shift-F3

Returns: the shortcut of the standard accelerator

UNKNOWN: Find/search previous.

findStdAccel

public static int findStdAccel(KKeySequence keySeq)
Return the StdAccel id of the standard accel action which uses this key sequence, or AccelNone if none of them do. This is used by class KKeyChooser.

Parameters: keySeq the key sequence to search

Returns: the id of the standard accelerator, or AccelNone if there is none

UNKNOWN: Return the StdAccel id of the standard accel action which uses this key sequence, or AccelNone if none of them do.

forward

public static KShortcut forward()
Forward. Default: ALT+Right

Returns: the shortcut of the standard accelerator

UNKNOWN: Forward.

forwardWord

public static KShortcut forwardWord()
ForwardWord. Default: Ctrl+Right

Returns: the shortcut of the standard accelerator

UNKNOWN: ForwardWord.

fullScreen

public static KShortcut fullScreen()
Full Screen Mode. Default: Ctrl+Shift+F

Returns: the shortcut of the standard accelerator

UNKNOWN: Full Screen Mode.

gotoLine

public static KShortcut gotoLine()
Go to line. Default: Ctrl+G

Returns: the shortcut of the standard accelerator

UNKNOWN: Go to line.

help

public static KShortcut help()
Help the user in the current situation. Default: F1

Returns: the shortcut of the standard accelerator

UNKNOWN: Help the user in the current situation.

home

public static KShortcut home()
Goto beginning of the document. Default: Ctrl-Home

Returns: the shortcut of the standard accelerator

UNKNOWN: Goto beginning of the document.

label

public static String label(int id)
Returns a localized label for user-visible display.

Parameters: id the id of the accelerator

Returns: a localized label for the accelerator

UNKNOWN: Returns a localized label for user-visible display.

name

public static String name(int id)
Returns a unique name for the given accel.

Parameters: id the id of the accelerator

Returns: the unique name of the accelerator

UNKNOWN: Returns a unique name for the given accel.

next

public static KShortcut next()
Scroll down one page. Default: Next

Returns: the shortcut of the standard accelerator

UNKNOWN: Scroll down one page.

nextCompletion

public static KShortcut nextCompletion()
Iterate through a list when completion returns multiple items. Default: Ctrl+Down

Returns: the shortcut of the standard accelerator

UNKNOWN: Iterate through a list when completion returns multiple items.

open

public static KShortcut open()
Open file. Default: Ctrl-o

Returns: the shortcut of the standard accelerator

UNKNOWN: Open file.

openNew

public static KShortcut openNew()
Create a new document (or whatever). Default: Ctrl-n

Returns: the shortcut of the standard accelerator

UNKNOWN: Create a new document (or whatever).

paste

public static KShortcut paste()
Paste contents of clipboard at mouse/cursor position. Default: Ctrl-v

Returns: the shortcut of the standard accelerator

UNKNOWN: Paste contents of clipboard at mouse/cursor position.

pasteSelection

public static KShortcut pasteSelection()
Paste the selection at mouse/cursor position. Default: Ctrl-Shift-Insert

Returns: the shortcut of the standard accelerator

UNKNOWN: Paste the selection at mouse/cursor position.

popupMenuContext

public static KShortcut popupMenuContext()
popup a context menu. Default: Menu

Returns: the shortcut of the standard accelerator

UNKNOWN: popup a context menu.

prevCompletion

public static KShortcut prevCompletion()
Iterate through a list when completion returns multiple items. Default: Ctrl+Up

Returns: the shortcut of the standard accelerator

UNKNOWN: Iterate through a list when completion returns multiple items.

print

public static KShortcut print()
Print current document. Default: Ctrl-p

Returns: the shortcut of the standard accelerator

UNKNOWN: Print current document.

prior

public static KShortcut prior()
Scroll up one page. Default: Prior

Returns: the shortcut of the standard accelerator

UNKNOWN: Scroll up one page.

quit

public static KShortcut quit()
Quit the program. Default: Ctrl-q

Returns: the shortcut of the standard accelerator

UNKNOWN: Quit the program.

redo

public static KShortcut redo()
Redo. Default: Shift-Ctrl-z

Returns: the shortcut of the standard accelerator

UNKNOWN: Redo.

reload

public static KShortcut reload()
Reload. Default: F5

Returns: the shortcut of the standard accelerator

UNKNOWN: Reload.

replace

public static KShortcut replace()
Find and replace matches. Default: Ctrl-r

Returns: the shortcut of the standard accelerator

UNKNOWN: Find and replace matches.

rotateDown

public static KShortcut rotateDown()
Help users iterate through a list of entries. Default: Down

Returns: the shortcut of the standard accelerator

UNKNOWN: Help users iterate through a list of entries.

rotateUp

public static KShortcut rotateUp()
Help users iterate through a list of entries. Default: Up

Returns: the shortcut of the standard accelerator

UNKNOWN: Help users iterate through a list of entries.

save

public static KShortcut save()
Save current document. Default: Ctrl-s

Returns: the shortcut of the standard accelerator

UNKNOWN: Save current document.

selectAll

public static KShortcut selectAll()
Reload. Default: Ctrl-A

Returns: the shortcut of the standard accelerator

UNKNOWN: Reload.

shortcut

public static KShortcut shortcut(int id)
Returns the keybinding for accel.

Parameters: id the id of the accelerator

UNKNOWN: Returns the keybinding for accel.

shortcutDefault

public static KShortcut shortcutDefault(int id)
Returns the hardcoded default shortcut for id. This does not take into account the user's configuration.

Parameters: id the id of the accelerator

Returns: the default shortcut of the accelerator

UNKNOWN: Returns the hardcoded default shortcut for id.

shortcutDefault3

public static KShortcut shortcutDefault3(int id)
Returns the hardcoded default 3 modifier shortcut for id. This does not take into account the user's configuration.

Parameters: id the id of the accelerator

Returns: the default 3 modifier shortcut

UNKNOWN: Returns the hardcoded default 3 modifier shortcut for id.

shortcutDefault4

public static KShortcut shortcutDefault4(int id)
Returns the hardcoded default 4 modifier shortcut for id. This does not take into account the user's configuration.

Parameters: id the id of the accelerator

Returns: the default 4 modifier shortcut

UNKNOWN: Returns the hardcoded default 4 modifier shortcut for id.

showMenubar

public static KShortcut showMenubar()
Show Menu Bar. Default: Ctrl-M

Returns: the shortcut of the standard accelerator

UNKNOWN: Show Menu Bar.

substringCompletion

public static KShortcut substringCompletion()
Find a string within another string or list of strings. Default: Ctrl-T

Returns: the shortcut of the standard accelerator

UNKNOWN: Find a string within another string or list of strings.

tabNext

public static KShortcut tabNext()
Next Tab. Default: Ctrl-<

Returns: the shortcut of the standard accelerator

UNKNOWN: Next Tab.

tabPrev

public static KShortcut tabPrev()
Previous Tab. Default: Ctrl.

Returns: the shortcut of the standard accelerator

UNKNOWN: Previous Tab.

undo

public static KShortcut undo()
Undo last operation. Default: Ctrl-z

Returns: the shortcut of the standard accelerator

UNKNOWN: Undo last operation.

up

public static KShortcut up()
Up. Default: Alt+Up

Returns: the shortcut of the standard accelerator

UNKNOWN: Up.

whatsThis

public static String whatsThis(int id)
Returns an extended WhatsThis description for the given accelerator.

Parameters: id the id of the accelerator

Returns: a localized description of the accelerator

UNKNOWN: Returns an extended WhatsThis description for the given accelerator.

whatsThis

public static KShortcut whatsThis()
What's This button. Default: Shift+F1

Returns: the shortcut of the standard accelerator

UNKNOWN: What's This button.

zoomIn

public static KShortcut zoomIn()
Zoom in. Default: Ctrl-Plus

Returns: the shortcut of the standard accelerator

UNKNOWN: Zoom in.

zoomOut

public static KShortcut zoomOut()
Zoom out. Default: Ctrl-Minus

Returns: the shortcut of the standard accelerator

UNKNOWN: Zoom out.