|
|
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
KStdAccel ()
| KStdAccel |
enum StdAccel {Open=0, New, Close, Save, Print, Quit, Cut, Copy, Paste, Undo, Redo, Find, Replace, Insert, Home, End, Prior, Next, Help, FindNext, FindPrev, ZoomIn, ZoomOut, AddBookmark, TextCompletion, PrevCompletion, NextCompletion, RotateUp, RotateDown, PopupMenuContext, WhatThis, Reload, SelectAll, NB_STD_ACCELS } | StdAccel |
uint open ()
| open |
[static]
Open file. Default: Ctrl-o
uint openNew ()
| openNew |
[static]
Create a new document (or whatever). Default: Ctrl-n
uint close ()
| close |
[static]
Close current document. Default: Ctrl-w
uint save ()
| save |
[static]
Save current document. Default: Ctrl-s
uint print ()
|
[static]
Print current document. Default: Ctrl-p
uint quit ()
| quit |
[static]
Quit the program. Default: Ctrl-q
uint cut ()
| cut |
[static]
Cut selected area and store it in the clipboard. Default: Ctrl-x
uint copy ()
| copy |
[static]
Copy selected area into the clipboard. Default: Ctrl-c
uint paste ()
| paste |
[static]
Paste contents of clipboard at mouse/cursor position. Default: Ctrl-v
uint undo ()
| undo |
[static]
Undo last operation. Default: Ctrl-z
uint redo ()
| redo |
[static]
Redo. Default: Shift-Ctrl-z
uint find ()
| find |
[static]
Find, search. Default: Ctrl-f
uint findNext ()
| findNext |
[static]
Find/search next. Default: F3
uint findPrev ()
| findPrev |
[static]
Find/search previous. Default: Shift-F3
uint replace ()
| replace |
[static]
Find and replace matches. Default: Ctrl-r
uint zoomIn ()
| zoomIn |
[static]
Zoom in. Default: Ctrl-Plus
uint zoomOut ()
| zoomOut |
[static]
Zoom out. Default: Ctrl-Minus
uint insert ()
| insert |
[static]
Toggle insert/overwrite (with visual feedback, e.g. in the statusbar). Default: Insert
uint home ()
| home |
[static]
Goto beginning of current line. Default: Home
uint end ()
| end |
[static]
Goto end of current line. Default: End
uint prior ()
| prior |
[static]
Scroll up one page. Default: Prior
uint next ()
| next |
[static]
Scroll down one page. Default: Next
uint addBookmark ()
| addBookmark |
[static]
Add current page to bookmarks. Default: Ctrl+B
uint help ()
| help |
[static]
Help the user in the current situation. Default: F1
uint completion ()
| completion |
[static]
Complete text in input widgets. Default Ctrl+E *
uint prevCompletion ()
| prevCompletion |
[static]
Iterate through a list when completion returns mutiple items. Default: Ctrl+Up *
uint nextCompletion ()
| nextCompletion |
[static]
Iterate through a list when completion returns mutiple items. Default: Ctrl+Down *
uint rotateUp ()
| rotateUp |
[static]
Help users iterate through a list of enteries. Default: Up *
uint rotateDown ()
| rotateDown |
[static]
Help users iterate through a list of enteries. Default: Down *
uint popupMenuContext ()
| popupMenuContext |
[static]
popup a context menu. Default: Menu *
uint whatsThis ()
| whatsThis |
[static]
What's This button. Default: Shift+F1 *
uint reload ()
| reload |
[static]
Reload. Default: F5 *
uint selectAll ()
| selectAll |
[static]
Reload. Default: Ctrl-A *
bool isEqual (QKeyEvent* , int )
| isEqual |
[static]
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:
ev | the key event to be used in the comparison. |
key | the int value to be compared to the key event. |
Returns: true if the int value matches the integer representation of the QKeyEvent
uint key (StdAccel accel)
| key |
[static]
Return the keybinding for accel
.
QString action (StdAccel)
| action |
[static]
QString description (StdAccel)
| description |
[static]
uint defaultKey (StdAccel accel)
| defaultKey |
[static]
Return the hardcoded default keybinding for accel
.
This does not take into account the user's configuration.
Generated by: dfaure on Tue Feb 27 12:46:10 2001, using kdoc 2.0a50. |