KStdAccel Namespace Reference
Convenient methods for access to the common accelerator keys in the key configuration. More...
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 &seq) |
KShortcut | shortcutDefault (StdAccel id) |
KShortcut | shortcutDefault3 (StdAccel id) |
KShortcut | shortcutDefault4 (StdAccel id) |
void | createAccelActions (KAccelActions &actions) |
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 () |
KDECORE_EXPORT QString | action (StdAccel id) |
KDECORE_EXPORT QString | description (StdAccel id) |
KDECORE_EXPORT int | key (StdAccel id) |
KDECORE_EXPORT int | defaultKey (StdAccel id) |
KDECORE_EXPORT bool | isEqual (const QKeyEvent *ev, int keyQt) |
KDECORE_EXPORT QString | whatsThis (StdAccel id) |
KDECORE_EXPORT const KShortcut & | insert () |
Variables | |
static 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. |
Function Documentation
|
Returns a unique name for the given accel.
Definition at line 140 of file kstdaccel.cpp. Referenced by action(), KAccel::changeMenuAccel(), KAccel::insert(), and KAccel::insertStdItem(). |
|
Returns a localized label for user-visible display.
Definition at line 148 of file kstdaccel.cpp. Referenced by description(), and KAccel::insert(). |
|
Returns the keybinding for
Definition at line 166 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(), KAccel::insert(), KAccel::insertStdItem(), key(), next(), nextCompletion(), open(), openNew(), paste(), pasteSelection(), 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 178 of file kstdaccel.cpp. References KKeySequence::isNull(). |
|
Returns the hardcoded default shortcut for This does not take into account the user's configuration.
Definition at line 194 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 200 of file kstdaccel.cpp. References KShortcut::append(), cut(), and KShortcut::init(). Referenced by KAccel::insert(), KAccel::insertStdItem(), and shortcutDefault(). |
|
Returns the hardcoded default 4 modifier shortcut for This does not take into account the user's configuration.
Definition at line 217 of file kstdaccel.cpp. References KShortcut::append(), KKeySequence::count(), cut(), KKeySequence::init(), and KShortcut::init(). Referenced by KAccel::insert(), KAccel::insertStdItem(), and shortcutDefault(). |
|
Open file. Default: Ctrl-o
Definition at line 262 of file kstdaccel.cpp. References shortcut(). |
|
Create a new document (or whatever). Default: Ctrl-n
Definition at line 263 of file kstdaccel.cpp. References shortcut(). |
|
Close current document. Default: Ctrl-w
Definition at line 264 of file kstdaccel.cpp. References shortcut(). |
|
Save current document. Default: Ctrl-s
Definition at line 265 of file kstdaccel.cpp. References shortcut(). |
|
Print current document. Default: Ctrl-p
Definition at line 266 of file kstdaccel.cpp. References shortcut(). |
|
Quit the program. Default: Ctrl-q
Definition at line 267 of file kstdaccel.cpp. References shortcut(). |
|
Cut selected area and store it in the clipboard. Default: Ctrl-x
Definition at line 268 of file kstdaccel.cpp. References shortcut(). Referenced by KStdAccel::ShortcutList::shortcutDefault(), shortcutDefault3(), and shortcutDefault4(). |
|
Copy selected area into the clipboard. Default: Ctrl-c
Definition at line 269 of file kstdaccel.cpp. References shortcut(). |
|
Paste contents of clipboard at mouse/cursor position. Default: Ctrl-v
Definition at line 270 of file kstdaccel.cpp. References shortcut(). |
|
Paste the selection at mouse/cursor position. Default: Ctrl-Shift-Insert
Definition at line 271 of file kstdaccel.cpp. References PasteSelection, and shortcut(). |
|
Delete a word back from mouse/cursor position. Default: Ctrl-Backspace
Definition at line 272 of file kstdaccel.cpp. References shortcut(). |
|
Delete a word forward from mouse/cursor position. Default: Ctrl-Delete
Definition at line 273 of file kstdaccel.cpp. References shortcut(). |
|
Undo last operation. Default: Ctrl-z
Definition at line 274 of file kstdaccel.cpp. References shortcut(). |
|
Redo. Default: Shift-Ctrl-z
Definition at line 275 of file kstdaccel.cpp. References shortcut(). |
|
Find, search. Default: Ctrl-f
Definition at line 276 of file kstdaccel.cpp. References shortcut(). |
|
Find/search next. Default: F3
Definition at line 277 of file kstdaccel.cpp. References shortcut(). |
|
Find/search previous. Default: Shift-F3
Definition at line 278 of file kstdaccel.cpp. References shortcut(). |
|
Find and replace matches. Default: Ctrl-r
Definition at line 279 of file kstdaccel.cpp. References shortcut(). |
|
Goto beginning of the document. Default: Ctrl-Home
Definition at line 280 of file kstdaccel.cpp. References shortcut(). |
|
Goto end of the document. Default: Ctrl-End
Definition at line 281 of file kstdaccel.cpp. References shortcut(). |
|
Goto beginning of current line. Default: Home
Definition at line 282 of file kstdaccel.cpp. References BeginningOfLine, and shortcut(). |
|
Goto end of current line. Default: End
Definition at line 283 of file kstdaccel.cpp. References EndOfLine, and shortcut(). |
|
Scroll up one page. Default: Prior
Definition at line 284 of file kstdaccel.cpp. References shortcut(). |
|
Scroll down one page. Default: Next
Definition at line 285 of file kstdaccel.cpp. References shortcut(). |
|
BackwardWord. Default: Ctrl+Left
Definition at line 286 of file kstdaccel.cpp. References BackwardWord, and shortcut(). |
|
ForwardWord. Default: Ctrl+Right
Definition at line 287 of file kstdaccel.cpp. References ForwardWord, and shortcut(). |
|
Go to line. Default: Ctrl+G
Definition at line 288 of file kstdaccel.cpp. References shortcut(). |
|
Add current page to bookmarks. Default: Ctrl+B
Definition at line 289 of file kstdaccel.cpp. References shortcut(). |
|
Next Tab. Default: Ctrl-<
Definition at line 290 of file kstdaccel.cpp. References shortcut(), and TabNext. |
|
Previous Tab. Default: Ctrl->
Definition at line 291 of file kstdaccel.cpp. References shortcut(), and TabPrev. |
|
Full Screen Mode. Default: Ctrl+Shift+F
Definition at line 292 of file kstdaccel.cpp. References FullScreen, and shortcut(). |
|
Zoom in. Default: Ctrl-Plus
Definition at line 293 of file kstdaccel.cpp. References shortcut(). |
|
Zoom out. Default: Ctrl-Minus
Definition at line 294 of file kstdaccel.cpp. References shortcut(). |
|
Help the user in the current situation. Default: F1
Definition at line 295 of file kstdaccel.cpp. References shortcut(). |
|
Complete text in input widgets. Default Ctrl+E
Definition at line 296 of file kstdaccel.cpp. References shortcut(). |
|
Iterate through a list when completion returns multiple items. Default: Ctrl+Up
Definition at line 297 of file kstdaccel.cpp. References shortcut(). |
|
Iterate through a list when completion returns multiple items. Default: Ctrl+Down
Definition at line 298 of file kstdaccel.cpp. References shortcut(). |
|
Help users iterate through a list of entries. Default: Up
Definition at line 299 of file kstdaccel.cpp. References shortcut(). |
|
Help users iterate through a list of entries. Default: Down
Definition at line 300 of file kstdaccel.cpp. References shortcut(). |
|
Find a string within another string or list of strings. Default: Ctrl-T
Definition at line 301 of file kstdaccel.cpp. References shortcut(). |
|
popup a context menu. Default: Menu
Definition at line 302 of file kstdaccel.cpp. References shortcut(). |
|
What's This button. Default: Shift+F1
Definition at line 303 of file kstdaccel.cpp. References shortcut(). |
|
Reload. Default: F5
Definition at line 304 of file kstdaccel.cpp. References shortcut(). |
|
Reload. Default: Ctrl-A
Definition at line 305 of file kstdaccel.cpp. References shortcut(). |
|
Up. Default: Alt+Up
Definition at line 306 of file kstdaccel.cpp. References shortcut(). |
|
Back. Default: Alt+Left
Definition at line 307 of file kstdaccel.cpp. References shortcut(). |
|
Forward. Default: ALT+Right
Definition at line 308 of file kstdaccel.cpp. References shortcut(). |
|
Show Menu Bar. Default: Ctrl-M
Definition at line 309 of file kstdaccel.cpp. References shortcut(). |
|
accel .
Definition at line 371 of file kstdaccel.cpp. References name(). |
|
accel .
Definition at line 373 of file kstdaccel.cpp. References label(). |
|
accel .
Definition at line 375 of file kstdaccel.cpp. References shortcut(). |
|
Definition at line 377 of file kstdaccel.cpp. References shortcutDefault(). |
|
Use KKey(const QKeyEvent*) == KKey(int). 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.
Definition at line 380 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
Referenced by KAccel::insert(). |