KStdAccel Namespace Reference
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
Classes | |
class | 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, PasteSelection, WhatThis = WhatsThis } |
Functions | |
static KStdAccelInfo * | infoPtr (StdAccel id) |
static void | initialize (StdAccel id) |
QString | name (StdAccel id) |
QString | label (StdAccel id) |
const KShortcut & | shortcut (StdAccel id) |
StdAccel | findStdAccel (const KKeySequence &keySeq) |
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 & | pasteSelection () |
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) KDE_DEPRECATED |
QString | description (StdAccel id) KDE_DEPRECATED |
int | key (StdAccel) KDE_DEPRECATED |
int | defaultKey (StdAccel accel) KDE_DEPRECATED |
bool | isEqual (const QKeyEvent *pEvent, int keyQt) KDE_DEPRECATED |
QString | whatsThis (StdAccel id) |
const KShortcut & | insert () |
Variables | |
static KStdAccelInfo | g_infoStdAccel [] |
QString | whatsThis (StdAccel) |
Enumeration Type Documentation
|
Defines the identifier of all standard accelerators.
Definition at line 47 of file kstdaccel.h. |
Function Documentation
|
Definition at line 379 of file kstdaccel.cpp. |
|
Add current page to bookmarks. Default: Ctrl+B
Definition at line 297 of file kstdaccel.cpp. |
|
Back. Default: Alt+Left
Definition at line 315 of file kstdaccel.cpp. |
|
BackwardWord. Default: Ctrl+Left
Definition at line 294 of file kstdaccel.cpp. |
|
Goto beginning of current line. Default: Home
Definition at line 290 of file kstdaccel.cpp. |
|
Close current document. Default: Ctrl-w
Definition at line 272 of file kstdaccel.cpp. |
|
Complete text in input widgets. Default Ctrl+E
Definition at line 304 of file kstdaccel.cpp. |
|
Copy selected area into the clipboard. Default: Ctrl-c
Definition at line 277 of file kstdaccel.cpp. |
|
Cut selected area and store it in the clipboard. Default: Ctrl-x
Definition at line 276 of file kstdaccel.cpp. |
|
Definition at line 385 of file kstdaccel.cpp. |
|
Delete a word back from mouse/cursor position. Default: Ctrl-Backspace
Definition at line 280 of file kstdaccel.cpp. |
|
Delete a word forward from mouse/cursor position. Default: Ctrl-Delete
Definition at line 281 of file kstdaccel.cpp. |
|
Definition at line 381 of file kstdaccel.cpp. |
|
Goto end of the document. Default: Ctrl-End
Definition at line 289 of file kstdaccel.cpp. |
|
Goto end of current line. Default: End
Definition at line 291 of file kstdaccel.cpp. |
|
Find, search. Default: Ctrl-f
Definition at line 284 of file kstdaccel.cpp. |
|
Find/search next. Default: F3
Definition at line 285 of file kstdaccel.cpp. |
|
Find/search previous. Default: Shift-F3
Definition at line 286 of file kstdaccel.cpp. |
|
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 186 of file kstdaccel.cpp. |
|
Forward. Default: ALT+Right
Definition at line 316 of file kstdaccel.cpp. |
|
ForwardWord. Default: Ctrl+Right
Definition at line 295 of file kstdaccel.cpp. |
|
Full Screen Mode. Default: Ctrl+Shift+F
Definition at line 300 of file kstdaccel.cpp. |
|
Go to line. Default: Ctrl+G
Definition at line 296 of file kstdaccel.cpp. |
|
Help the user in the current situation. Default: F1
Definition at line 303 of file kstdaccel.cpp. |
|
Goto beginning of the document. Default: Ctrl-Home
Definition at line 288 of file kstdaccel.cpp. |
|
Search for the KStdAccelInfo object associated with the given
Definition at line 110 of file kstdaccel.cpp. |
|
Initialize the accelerator
Definition at line 127 of file kstdaccel.cpp. |
|
Toggle insert/overwrite (with visual feedback, e.g. in the statusbar). Default: Insert
|
|
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 388 of file kstdaccel.cpp. |
|
Definition at line 383 of file kstdaccel.cpp. |
|
Returns a localized label for user-visible display.
Definition at line 156 of file kstdaccel.cpp. |
|
Returns a unique name for the given accel.
Definition at line 148 of file kstdaccel.cpp. |
|
Scroll down one page. Default: Next
Definition at line 293 of file kstdaccel.cpp. |
|
Iterate through a list when completion returns multiple items. Default: Ctrl+Down
Definition at line 306 of file kstdaccel.cpp. |
|
Open file. Default: Ctrl-o
Definition at line 270 of file kstdaccel.cpp. |
|
Create a new document (or whatever). Default: Ctrl-n
Definition at line 271 of file kstdaccel.cpp. |
|
Paste contents of clipboard at mouse/cursor position. Default: Ctrl-v
Definition at line 278 of file kstdaccel.cpp. |
|
Paste the selection at mouse/cursor position. Default: Ctrl-Shift-Insert
Definition at line 279 of file kstdaccel.cpp. |
|
popup a context menu. Default: Menu
Definition at line 310 of file kstdaccel.cpp. |
|
Iterate through a list when completion returns multiple items. Default: Ctrl+Up
Definition at line 305 of file kstdaccel.cpp. |
|
Print current document. Default: Ctrl-p
Definition at line 274 of file kstdaccel.cpp. |
|
Scroll up one page. Default: Prior
Definition at line 292 of file kstdaccel.cpp. |
|
Quit the program. Default: Ctrl-q
Definition at line 275 of file kstdaccel.cpp. |
|
Redo. Default: Shift-Ctrl-z
Definition at line 283 of file kstdaccel.cpp. |
|
Reload. Default: F5
Definition at line 312 of file kstdaccel.cpp. |
|
Find and replace matches. Default: Ctrl-r
Definition at line 287 of file kstdaccel.cpp. |
|
Help users iterate through a list of entries. Default: Down
Definition at line 308 of file kstdaccel.cpp. |
|
Help users iterate through a list of entries. Default: Up
Definition at line 307 of file kstdaccel.cpp. |
|
Save current document. Default: Ctrl-s
Definition at line 273 of file kstdaccel.cpp. |
|
Reload. Default: Ctrl-A
Definition at line 313 of file kstdaccel.cpp. |
|
Returns the keybinding for
Definition at line 174 of file kstdaccel.cpp. |
|
Returns the hardcoded default shortcut for This does not take into account the user's configuration.
Definition at line 202 of file kstdaccel.cpp. |
|
Returns the hardcoded default 3 modifier shortcut for This does not take into account the user's configuration.
Definition at line 208 of file kstdaccel.cpp. |
|
Returns the hardcoded default 4 modifier shortcut for This does not take into account the user's configuration.
Definition at line 225 of file kstdaccel.cpp. |
|
Show Menu Bar. Default: Ctrl-M
Definition at line 317 of file kstdaccel.cpp. |
|
Find a string within another string or list of strings. Default: Ctrl-T
Definition at line 309 of file kstdaccel.cpp. |
|
Next Tab. Default: Ctrl-<
Definition at line 298 of file kstdaccel.cpp. |
|
Previous Tab. Default: Ctrl->
Definition at line 299 of file kstdaccel.cpp. |
|
Undo last operation. Default: Ctrl-z
Definition at line 282 of file kstdaccel.cpp. |
|
Up. Default: Alt+Up
Definition at line 314 of file kstdaccel.cpp. |
|
Returns an extended WhatsThis description for the given accelerator.
|
|
What's This button. Default: Shift+F1
Definition at line 311 of file kstdaccel.cpp. |
|
Zoom in. Default: Ctrl-Plus
Definition at line 301 of file kstdaccel.cpp. |
|
Zoom out. Default: Ctrl-Minus
Definition at line 302 of file kstdaccel.cpp. |
Variable Documentation
|
Array of predefined KStdAccelInfo objects, which cover all the "standard" accelerators. Each enum value from StdAccel should appear in this table. Definition at line 50 of file kstdaccel.cpp. |
|
What's This button. Default: Shift+F1
Definition at line 165 of file kstdaccel.cpp. |