KStdAccel Namespace Reference
Convenient methods for access to the common accelerator keys in the key configuration. More...
Compounds | |
class | ShortcutList |
KShortcutList implementation that accesses KStdAccel actions. More... | |
Enumerations | |
enum | StdAccel |
Defines the identifier of all standard accelerators. More... | |
Functions | |
QString | name (StdAccel id) |
Returns a unique name for the given accel. | |
QString | label (StdAccel id) |
Returns a localized label for user-visible display. | |
const KShortcut & | shortcut (StdAccel id) |
Returns the keybinding for accel . | |
StdAccel | findStdAccel (const KKeySequence &seq) |
Return the StdAccel id of the standard accel action which uses this key sequence, or AccelNone if none of them do. | |
KShortcut | shortcutDefault (StdAccel id) |
Returns the hardcoded default shortcut for id . | |
KShortcut | shortcutDefault3 (StdAccel id) |
Returns the hardcoded default 3 modifier shortcut for id . | |
KShortcut | shortcutDefault4 (StdAccel id) |
Returns the hardcoded default 4 modifier shortcut for id . | |
const KShortcut & | open () |
Open file. | |
const KShortcut & | openNew () |
Create a new document (or whatever). | |
const KShortcut & | close () |
Close current document. | |
const KShortcut & | save () |
Save current document. | |
const KShortcut & | print () |
Print current document. | |
const KShortcut & | quit () |
Quit the program. | |
const KShortcut & | cut () |
Cut selected area and store it in the clipboard. | |
const KShortcut & | copy () |
Copy selected area into the clipboard. | |
const KShortcut & | paste () |
Paste contents of clipboard at mouse/cursor position. | |
const KShortcut & | deleteWordBack () |
Delete a word back from mouse/cursor position. | |
const KShortcut & | deleteWordForward () |
Delete a word forward from mouse/cursor position. | |
const KShortcut & | undo () |
Undo last operation. | |
const KShortcut & | redo () |
Redo. | |
const KShortcut & | find () |
Find, search. | |
const KShortcut & | findNext () |
Find/search next. | |
const KShortcut & | findPrev () |
Find/search previous. | |
const KShortcut & | replace () |
Find and replace matches. | |
const KShortcut & | home () |
Goto beginning of current line. | |
const KShortcut & | end () |
Goto end of current line. | |
const KShortcut & | prior () |
Scroll up one page. | |
const KShortcut & | next () |
Scroll down one page. | |
const KShortcut & | gotoLine () |
Go to line. | |
const KShortcut & | addBookmark () |
Add current page to bookmarks. | |
const KShortcut & | zoomIn () |
Zoom in. | |
const KShortcut & | zoomOut () |
Zoom out. | |
const KShortcut & | help () |
Help the user in the current situation. | |
const KShortcut & | completion () |
Complete text in input widgets. | |
const KShortcut & | prevCompletion () |
Iterate through a list when completion returns mutiple items. | |
const KShortcut & | nextCompletion () |
Iterate through a list when completion returns mutiple items. | |
const KShortcut & | rotateUp () |
Help users iterate through a list of entries. | |
const KShortcut & | rotateDown () |
Help users iterate through a list of entries. | |
const KShortcut & | substringCompletion () |
Find a string within another string or list of strings. | |
const KShortcut & | popupMenuContext () |
popup a context menu. | |
const KShortcut & | whatsThis () |
What's This button. | |
const KShortcut & | reload () |
Reload. | |
const KShortcut & | selectAll () |
Reload. | |
const KShortcut & | up () |
Up. | |
const KShortcut & | back () |
Back. | |
const KShortcut & | forward () |
Forward. | |
const KShortcut & | showMenubar () |
Show Menu Bar. | |
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) |
Returns an extended WhatsThis description for the given accelerator. | |
const KShortcut & | insert () |
Toggle insert/overwrite (with visual feedback, e.g. | |
Variables | |
QString | whatsThis (StdAccel) |
What's This button. |
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 45 of file kstdaccel.h. Referenced by action(), defaultKey(), description(), findStdAccel(), key(), label(), name(), shortcut(), shortcutDefault(), shortcutDefault3(), and shortcutDefault4(). |
Function Documentation
|
Returns a unique name for the given accel.
Definition at line 128 of file kstdaccel.cpp. References StdAccel. Referenced by action(). |
|
Returns a localized label for user-visible display.
Definition at line 136 of file kstdaccel.cpp. References StdAccel. Referenced by description(). |
|
Returns the keybinding for
Definition at line 154 of file kstdaccel.cpp. References StdAccel. Referenced by addBookmark(), back(), close(), completion(), copy(), cut(), deleteWordBack(), deleteWordForward(), end(), find(), findNext(), findPrev(), forward(), gotoLine(), help(), home(), key(), next(), nextCompletion(), open(), openNew(), paste(), popupMenuContext(), prevCompletion(), print(), prior(), quit(), redo(), reload(), replace(), rotateDown(), rotateUp(), save(), selectAll(), showMenubar(), substringCompletion(), 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 166 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 182 of file kstdaccel.cpp. References shortcutDefault3(), shortcutDefault4(), and StdAccel. 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 188 of file kstdaccel.cpp. References cut(), and StdAccel. Referenced by shortcutDefault(). |
|
Returns the hardcoded default 4 modifier shortcut for This does not take into account the user's configuration.
Definition at line 205 of file kstdaccel.cpp. References KKeySequence::count(), cut(), KKeySequence::init(), and StdAccel. Referenced by shortcutDefault(). |
|
Open file. Default: Ctrl-o
Definition at line 248 of file kstdaccel.cpp. References shortcut(). |
|
Create a new document (or whatever). Default: Ctrl-n
Definition at line 249 of file kstdaccel.cpp. References shortcut(). |
|
Close current document. Default: Ctrl-w
Definition at line 250 of file kstdaccel.cpp. References shortcut(). |
|
Save current document. Default: Ctrl-s
Definition at line 251 of file kstdaccel.cpp. References shortcut(). |
|
Print current document. Default: Ctrl-p
Definition at line 252 of file kstdaccel.cpp. References shortcut(). |
|
Quit the program. Default: Ctrl-q
Definition at line 253 of file kstdaccel.cpp. References shortcut(). |
|
Cut selected area and store it in the clipboard. Default: Ctrl-x
Definition at line 254 of file kstdaccel.cpp. References shortcut(). Referenced by shortcutDefault3(), and shortcutDefault4(). |
|
Copy selected area into the clipboard. Default: Ctrl-c
Definition at line 255 of file kstdaccel.cpp. References shortcut(). |
|
Paste contents of clipboard at mouse/cursor position. Default: Ctrl-v
Definition at line 256 of file kstdaccel.cpp. References shortcut(). |
|
Delete a word back from mouse/cursor position. Default: Ctrl-Backspace
Definition at line 257 of file kstdaccel.cpp. References shortcut(). |
|
Delete a word forward from mouse/cursor position. Default: Ctrl-Delete
Definition at line 258 of file kstdaccel.cpp. References shortcut(). |
|
Undo last operation. Default: Ctrl-z
Definition at line 259 of file kstdaccel.cpp. References shortcut(). |
|
Redo. Default: Shift-Ctrl-z
Definition at line 260 of file kstdaccel.cpp. References shortcut(). |
|
Find, search. Default: Ctrl-f
Definition at line 261 of file kstdaccel.cpp. References shortcut(). |
|
Find/search next. Default: F3
Definition at line 262 of file kstdaccel.cpp. References shortcut(). |
|
Find/search previous. Default: Shift-F3
Definition at line 263 of file kstdaccel.cpp. References shortcut(). |
|
Find and replace matches. Default: Ctrl-r
Definition at line 264 of file kstdaccel.cpp. References shortcut(). |
|
Goto beginning of current line. Default: Home
Definition at line 265 of file kstdaccel.cpp. References shortcut(). |
|
Goto end of current line. Default: End
Definition at line 266 of file kstdaccel.cpp. References shortcut(). Referenced by KExtendedSocket::connect(), KCodecs::quotedPrintableEncode(), KConfigBase::readPropertyEntry(), KCharsets::resolveEntities(), KCodecs::uudecode(), KCodecs::uuencode(), and KConfigBase::writeEntry(). |
|
Scroll up one page. Default: Prior
Definition at line 267 of file kstdaccel.cpp. References shortcut(). |
|
Scroll down one page. Default: Next
Definition at line 268 of file kstdaccel.cpp. References shortcut(). |
|
Go to line. Default: Ctrl+G
Definition at line 269 of file kstdaccel.cpp. References shortcut(). |
|
Add current page to bookmarks. Default: Ctrl+B
Definition at line 270 of file kstdaccel.cpp. References shortcut(). |
|
Zoom in. Default: Ctrl-Plus
Definition at line 271 of file kstdaccel.cpp. References shortcut(). |
|
Zoom out. Default: Ctrl-Minus
Definition at line 272 of file kstdaccel.cpp. References shortcut(). |
|
Help the user in the current situation. Default: F1
Definition at line 273 of file kstdaccel.cpp. References shortcut(). |
|
Complete text in input widgets. Default Ctrl+E
Definition at line 274 of file kstdaccel.cpp. References shortcut(). Referenced by KGlobalSettings::completionMode(), KCompletion::makeCompletion(), KCompletion::nextMatch(), and KCompletion::previousMatch(). |
|
Iterate through a list when completion returns mutiple items. Default: Ctrl+Up
Definition at line 275 of file kstdaccel.cpp. References shortcut(). |
|
Iterate through a list when completion returns mutiple items. Default: Ctrl+Down
Definition at line 276 of file kstdaccel.cpp. References shortcut(). |
|
Help users iterate through a list of entries. Default: Up
Definition at line 277 of file kstdaccel.cpp. References shortcut(). |
|
Help users iterate through a list of entries. Default: Down
Definition at line 278 of file kstdaccel.cpp. References shortcut(). |
|
Find a string within another string or list of strings. Default: Ctrl-T
Definition at line 279 of file kstdaccel.cpp. References shortcut(). |
|
popup a context menu. Default: Menu
Definition at line 280 of file kstdaccel.cpp. References shortcut(). |
|
What's This button. Default: Shift+F1
Definition at line 281 of file kstdaccel.cpp. References shortcut(). |
|
Reload. Default: F5
Definition at line 282 of file kstdaccel.cpp. References shortcut(). |
|
Reload. Default: Ctrl-A
Definition at line 283 of file kstdaccel.cpp. References shortcut(). |
|
Up. Default: Alt+Up
Definition at line 284 of file kstdaccel.cpp. References shortcut(). |
|
Back. Default: Alt+Left
Definition at line 285 of file kstdaccel.cpp. References shortcut(). |
|
Forward. Default: ALT+Right
Definition at line 286 of file kstdaccel.cpp. References shortcut(). |
|
Show Menu Bar. Default: Ctrl-M
Definition at line 287 of file kstdaccel.cpp. References shortcut(). |
|
Definition at line 350 of file kstdaccel.cpp. References name(), and StdAccel. Referenced by KAccel::insert(). |
|
Definition at line 352 of file kstdaccel.cpp. |
|
Definition at line 354 of file kstdaccel.cpp. References shortcut(), and StdAccel. Referenced by KStandardDirs::addCustomized(), KCharsets::codecForName(), KZoneAllocator::deallocate(), KURLDrag::decode(), KConfigBase::entryIsImmutable(), KConfigBase::hasKey(), KKeySequence::init(), KKeySequence::KKeySequence(), KIconLoader::loadIcon(), KConfigINIBackEnd::parseSingleConfigFile(), KConfig::putData(), KKeySequence::setKey(), and KRootProp::setProp(). |
|
Definition at line 356 of file kstdaccel.cpp. References shortcutDefault(), and StdAccel. |
|
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 359 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
|