KStdAccel Namespace Reference
Convenient methods for access to the common accelerator keys in the key configuration. More...
Classes | |
class | KStdAccel::ShortcutList |
KShortcutList implementation that accesses KStdAccel actions. More... | |
Enumerations | |
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, TabNext, TabPrev, FullScreen, BackwardWord, ForwardWord, BeginningOfLine, EndOfLine, WhatThis = WhatsThis } |
Functions | |
KStdAccelInfo * | infoPtr (StdAccel id) |
void | initialize (StdAccel id) |
QString | name (StdAccel id) |
QString | label (StdAccel id) |
const KShortcut & | shortcut (StdAccel id) |
StdAccel | findStdAccel (const KKeySequence &seq) |
KShortcut | shortcutDefault (StdAccel id) |
KShortcut | shortcutDefault3 (StdAccel id) |
KShortcut | shortcutDefault4 (StdAccel id) |
const KShortcut & | open () |
const KShortcut & | openNew () |
const KShortcut & | close () |
const KShortcut & | save () |
const KShortcut & | print () |
const KShortcut & | quit () |
const KShortcut & | cut () |
const KShortcut & | copy () |
const KShortcut & | paste () |
const KShortcut & | deleteWordBack () |
const KShortcut & | deleteWordForward () |
const KShortcut & | undo () |
const KShortcut & | redo () |
const KShortcut & | find () |
const KShortcut & | findNext () |
const KShortcut & | findPrev () |
const KShortcut & | replace () |
const KShortcut & | home () |
const KShortcut & | end () |
const KShortcut & | beginningOfLine () |
const KShortcut & | endOfLine () |
const KShortcut & | prior () |
const KShortcut & | next () |
const KShortcut & | backwardWord () |
const KShortcut & | forwardWord () |
const KShortcut & | gotoLine () |
const KShortcut & | addBookmark () |
const KShortcut & | tabNext () |
const KShortcut & | tabPrev () |
const KShortcut & | fullScreen () |
const KShortcut & | zoomIn () |
const KShortcut & | zoomOut () |
const KShortcut & | help () |
const KShortcut & | completion () |
const KShortcut & | prevCompletion () |
const KShortcut & | nextCompletion () |
const KShortcut & | rotateUp () |
const KShortcut & | rotateDown () |
const KShortcut & | substringCompletion () |
const KShortcut & | popupMenuContext () |
const KShortcut & | whatsThis () |
const KShortcut & | reload () |
const KShortcut & | selectAll () |
const KShortcut & | up () |
const KShortcut & | back () |
const KShortcut & | forward () |
const KShortcut & | showMenubar () |
QString | action (StdAccel id) |
QString | description (StdAccel id) |
int | key (StdAccel id) |
int | defaultKey (StdAccel id) |
bool | isEqual (const QKeyEvent *ev, int keyQt) |
QString | whatsThis (StdAccel id) |
const KShortcut & | insert () |
Variables | |
KStdAccelInfo | g_infoStdAccel [] |
QString | whatsThis (StdAccel) |
Detailed Description
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
Enumeration Type Documentation
|
Defines the identifier of all standard accelerators.
Definition at line 47 of file kstdaccel.h. Referenced by findStdAccel(). |
Function Documentation
|
Returns a unique name for the given accel.
Definition at line 139 of file kstdaccel.cpp. Referenced by action(), and KAccel::insert(). |
|
Returns a localized label for user-visible display.
Definition at line 147 of file kstdaccel.cpp. Referenced by description(). |
|
Returns the keybinding for
Definition at line 165 of file kstdaccel.cpp. References KShortcut::null(). Referenced by addBookmark(), back(), backwardWord(), beginningOfLine(), close(), completion(), copy(), cut(), deleteWordBack(), deleteWordForward(), end(), endOfLine(), find(), findNext(), findPrev(), forward(), forwardWord(), fullScreen(), gotoLine(), help(), home(), key(), next(), nextCompletion(), open(), openNew(), paste(), popupMenuContext(), prevCompletion(), print(), prior(), quit(), redo(), reload(), replace(), rotateDown(), rotateUp(), save(), selectAll(), showMenubar(), substringCompletion(), tabNext(), tabPrev(), undo(), up(), whatsThis(), zoomIn(), and zoomOut(). |
|
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.
Definition at line 177 of file kstdaccel.cpp. References KKeySequence::isNull(), and StdAccel. |
|
Returns the hardcoded default shortcut for This does not take into account the user's configuration.
Definition at line 193 of file kstdaccel.cpp. References shortcutDefault3(), and shortcutDefault4(). Referenced by defaultKey(), and KStdAccel::ShortcutList::shortcutDefault(). |
|
Returns the hardcoded default 3 modifier shortcut for This does not take into account the user's configuration.
Definition at line 199 of file kstdaccel.cpp. Referenced by shortcutDefault(). |
|
Returns the hardcoded default 4 modifier shortcut for This does not take into account the user's configuration.
Definition at line 216 of file kstdaccel.cpp. References KKeySequence::count(), and KKeySequence::init(). Referenced by shortcutDefault(). |
|
Open file. Default: Ctrl-o
Definition at line 261 of file kstdaccel.cpp. References shortcut(). |
|
Create a new document (or whatever). Default: Ctrl-n
Definition at line 262 of file kstdaccel.cpp. References shortcut(). |
|
Close current document. Default: Ctrl-w
Definition at line 263 of file kstdaccel.cpp. References shortcut(). |
|
Save current document. Default: Ctrl-s
Definition at line 264 of file kstdaccel.cpp. References shortcut(). |
|
Print current document. Default: Ctrl-p
Definition at line 265 of file kstdaccel.cpp. References shortcut(). |
|
Quit the program. Default: Ctrl-q
Definition at line 266 of file kstdaccel.cpp. References shortcut(). |
|
Cut selected area and store it in the clipboard. Default: Ctrl-x
Definition at line 267 of file kstdaccel.cpp. References shortcut(). |
|
Copy selected area into the clipboard. Default: Ctrl-c
Definition at line 268 of file kstdaccel.cpp. References shortcut(). |
|
Paste contents of clipboard at mouse/cursor position. Default: Ctrl-v
Definition at line 269 of file kstdaccel.cpp. References shortcut(). |
|
Delete a word back from mouse/cursor position. Default: Ctrl-Backspace
Definition at line 270 of file kstdaccel.cpp. References shortcut(). |
|
Delete a word forward from mouse/cursor position. Default: Ctrl-Delete
Definition at line 271 of file kstdaccel.cpp. References shortcut(). |
|
Undo last operation. Default: Ctrl-z
Definition at line 272 of file kstdaccel.cpp. References shortcut(). |
|
Redo. Default: Shift-Ctrl-z
Definition at line 273 of file kstdaccel.cpp. References shortcut(). |
|
Find, search. Default: Ctrl-f
Definition at line 274 of file kstdaccel.cpp. References shortcut(). |
|
Find/search next. Default: F3
Definition at line 275 of file kstdaccel.cpp. References shortcut(). |
|
Find/search previous. Default: Shift-F3
Definition at line 276 of file kstdaccel.cpp. References shortcut(). |
|
Find and replace matches. Default: Ctrl-r
Definition at line 277 of file kstdaccel.cpp. References shortcut(). |
|
Goto beginning of the document. Default: Ctrl-Home
Definition at line 278 of file kstdaccel.cpp. References shortcut(). |
|
Goto end of the document. Default: Ctrl-End
Definition at line 279 of file kstdaccel.cpp. References shortcut(). |
|
Goto beginning of current line. Default: Home
Definition at line 280 of file kstdaccel.cpp. References shortcut(). |
|
Goto end of current line. Default: End
Definition at line 281 of file kstdaccel.cpp. References shortcut(). |
|
Scroll up one page. Default: Prior
Definition at line 282 of file kstdaccel.cpp. References shortcut(). |
|
Scroll down one page. Default: Next
Definition at line 283 of file kstdaccel.cpp. References shortcut(). |
|
BackwardWord. Default: Ctrl+Left
Definition at line 284 of file kstdaccel.cpp. References shortcut(). |
|
ForwardWord. Default: Ctrl+Right
Definition at line 285 of file kstdaccel.cpp. References shortcut(). |
|
Go to line. Default: Ctrl+G
Definition at line 286 of file kstdaccel.cpp. References shortcut(). |
|
Add current page to bookmarks. Default: Ctrl+B
Definition at line 287 of file kstdaccel.cpp. References shortcut(). |
|
Next Tab. Default: Ctrl-<
Definition at line 288 of file kstdaccel.cpp. References shortcut(). |
|
Previous Tab. Default: Ctrl->
Definition at line 289 of file kstdaccel.cpp. References shortcut(). |
|
Full Screen Mode. Default: Ctrl+Shift+F
Definition at line 290 of file kstdaccel.cpp. References shortcut(). |
|
Zoom in. Default: Ctrl-Plus
Definition at line 291 of file kstdaccel.cpp. References shortcut(). |
|
Zoom out. Default: Ctrl-Minus
Definition at line 292 of file kstdaccel.cpp. References shortcut(). |
|
Help the user in the current situation. Default: F1
Definition at line 293 of file kstdaccel.cpp. References shortcut(). |
|
Complete text in input widgets. Default Ctrl+E
Definition at line 294 of file kstdaccel.cpp. References shortcut(). |
|
Iterate through a list when completion returns multiple items. Default: Ctrl+Up
Definition at line 295 of file kstdaccel.cpp. References shortcut(). |
|
Iterate through a list when completion returns multiple items. Default: Ctrl+Down
Definition at line 296 of file kstdaccel.cpp. References shortcut(). |
|
Help users iterate through a list of entries. Default: Up
Definition at line 297 of file kstdaccel.cpp. References shortcut(). |
|
Help users iterate through a list of entries. Default: Down
Definition at line 298 of file kstdaccel.cpp. References shortcut(). |
|
Find a string within another string or list of strings. Default: Ctrl-T
Definition at line 299 of file kstdaccel.cpp. References shortcut(). |
|
popup a context menu. Default: Menu
Definition at line 300 of file kstdaccel.cpp. References shortcut(). |
|
What's This button. Default: Shift+F1
Definition at line 301 of file kstdaccel.cpp. References shortcut(). |
|
Reload. Default: F5
Definition at line 302 of file kstdaccel.cpp. References shortcut(). |
|
Reload. Default: Ctrl-A
Definition at line 303 of file kstdaccel.cpp. References shortcut(). |
|
Up. Default: Alt+Up
Definition at line 304 of file kstdaccel.cpp. References shortcut(). |
|
Back. Default: Alt+Left
Definition at line 305 of file kstdaccel.cpp. References shortcut(). |
|
Forward. Default: ALT+Right
Definition at line 306 of file kstdaccel.cpp. References shortcut(). |
|
Show Menu Bar. Default: Ctrl-M
Definition at line 307 of file kstdaccel.cpp. References shortcut(). |
|
Definition at line 369 of file kstdaccel.cpp. References name(). |
|
Definition at line 371 of file kstdaccel.cpp. References label(). |
|
Definition at line 373 of file kstdaccel.cpp. References KShortcut::keyCodeQt(), and shortcut(). |
|
Definition at line 375 of file kstdaccel.cpp. References KShortcut::keyCodeQt(), and shortcutDefault(). |
|
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.
Definition at line 378 of file kstdaccel.cpp. |
|
Returns an extended WhatsThis description for the given accelerator.
|
|
Toggle insert/overwrite (with visual feedback, e.g. in the statusbar). Default: Insert
|
Variable Documentation
|
What's This button. Default: Shift+F1
|