namespace KStdAccel
|
Convenient methods for access to the common accelerator keys in
the key configuration. More... |
|
|
Public Types
- class ShortcutList
- enum StdAccel { AccelNone,
Open, New, Close, Save, Print, Quit,
Undo, Redo, Cut, Copy, Paste, SelectAll, Deselect, DeleteWordBack,
DeleteWordForward, Find, FindNext, FindPrev, Replace,
Home, End, Prior, Next, GotoLine, AddBookmark, ZoomIn, ZoomOut,
Up, Back, Forward, Reload, PopupMenuContext, ShowMenubar,
Help, WhatsThis,
TextCompletion, PrevCompletion, NextCompletion, SubstringCompletion,
RotateUp, RotateDown
, WhatThis = WhatsThis
}
Public Methods
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
ShortcutList (class) | ShortcutList |
enum StdAccel { AccelNone,
Open, New, Close, Save, Print, Quit,
Undo, Redo, Cut, Copy, Paste, SelectAll, Deselect, DeleteWordBack,
DeleteWordForward, Find, FindNext, FindPrev, Replace,
Home, End, Prior, Next, GotoLine, AddBookmark, ZoomIn, ZoomOut,
Up, Back, Forward, Reload, PopupMenuContext, ShowMenubar,
Help, WhatsThis,
TextCompletion, PrevCompletion, NextCompletion, SubstringCompletion,
RotateUp, RotateDown
, WhatThis = WhatsThis
}
| StdAccel |
const KShortcut& shortcut (StdAccel id)
| shortcut |
Returns the keybinding for accel
.
Returns a unique name for the given accel
.
Returns a localized label for user-visible display.
QString whatsThis (StdAccel id)
| whatsThis |
Returns an extended WhatsThis description for the given accelerator.
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.
KShortcut shortcutDefault (StdAccel id)
| shortcutDefault |
Returns the hardcoded default shortcut for id
.
This does not take into account the user's configuration.
KShortcut shortcutDefault3 (StdAccel id)
| shortcutDefault3 |
Returns the hardcoded default 3 modifier shortcut for id
.
This does not take into account the user's configuration.
KShortcut shortcutDefault4 (StdAccel id)
| shortcutDefault4 |
Returns the hardcoded default 4 modifier shortcut for id
.
This does not take into account the user's configuration.
Open file. Default: Ctrl-o
Create a new document (or whatever). Default: Ctrl-n
Close current document. Default: Ctrl-w
Save current document. Default: Ctrl-s
Print current document. Default: Ctrl-p
Quit the program. Default: Ctrl-q
Undo last operation. Default: Ctrl-z
Redo. Default: Shift-Ctrl-z
Cut selected area and store it in the clipboard. Default: Ctrl-x
Copy selected area into the clipboard. Default: Ctrl-c
Paste contents of clipboard at mouse/cursor position. Default: Ctrl-v
Reload. Default: Ctrl-A
const KShortcut& deleteWordBack ()
| deleteWordBack |
Delete a word back from mouse/cursor position. Default: Ctrl-Backspace
const KShortcut& deleteWordForward ()
| deleteWordForward |
Delete a word forward from mouse/cursor position. Default: Ctrl-Delete
Find, search. Default: Ctrl-f
Find/search next. Default: F3
Find/search previous. Default: Shift-F3
Find and replace matches. Default: Ctrl-r
Zoom in. Default: Ctrl-Plus
Zoom out. Default: Ctrl-Minus
Toggle insert/overwrite (with visual feedback, e.g. in the statusbar). Default: Insert
Goto beginning of current line. Default: Home
Goto end of current line. Default: End
Scroll up one page. Default: Prior
Scroll down one page. Default: Next
Go to line. Default: Ctrl+G
Add current page to bookmarks. Default: Ctrl+B
Help the user in the current situation. Default: F1
Complete text in input widgets. Default Ctrl+E
const KShortcut& prevCompletion ()
| prevCompletion |
Iterate through a list when completion returns
mutiple items. Default: Ctrl+Up
const KShortcut& nextCompletion ()
| nextCompletion |
Iterate through a list when completion returns
mutiple items. Default: Ctrl+Down
const KShortcut& substringCompletion ()
| substringCompletion |
Find a string within another string or list of strings.
Default: Ctrl-T
Help users iterate through a list of entries. Default: Up
Help users iterate through a list of entries. Default: Down
const KShortcut& popupMenuContext ()
| popupMenuContext |
popup a context menu. Default: Menu
What's This button. Default: Shift+F1
Reload. Default: F5
Up. Default: Alt+Up
Back. Default: Alt+Left
Forward. Default: ALT+Right
Show Menu Bar. Default: Ctrl-M
QString action (StdAccel id)
| action |
Obsolete. Use name(). Returns a string representation for accel
.
QString description (StdAccel id)
| description |
Obsolete. Use desc(). Returns a localized description of accel
.
Obsolete. Use shortcut(). Returns the keybinding for accel
.
int defaultKey (StdAccel accel)
| defaultKey |
Obsolete. Use shortcutDefault().
bool isEqual (const QKeyEvent* pEvent, int keyQt)
| isEqual |
Compare the keys generated by the key event with
the value of the integer.
If a modifier (Shift, Alt, Ctrl) key is present in
QKeyEvent, its sum with the actual key value
is used for comparing it with the integer parameter.
Parameters:
pEvent | the key event to be used in the comparison.
|
keyQt | the int value to be compared to the key event.
|
Returns: true if the int value matches the integer representation of the QKeyEvent
Generated by: dfaure on faure on Tue Apr 16 08:49:00 2002, using kdoc 2.0a53. |