namespace KStdAccel

Convenient methods for access to the common accelerator keys in the key configuration. More...

List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods


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

ShortcutList (class)

ShortcutList

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 , WhatThis = WhatsThis }

StdAccel

const KShortcut&  shortcut (StdAccel id)

shortcut

Returns the keybinding for accel.

QString  name (StdAccel id)

name

Returns a unique name for the given accel.

QString  label (StdAccel id)

label

Returns a localized label for user-visible display.

QString  whatsThis (StdAccel id)

whatsThis

Returns an extended WhatsThis description for the given accelerator.

StdAccel  findStdAccel ( const KKeySequence& )

findStdAccel

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.

KShortcut  shortcutDefault (StdAccel id)

shortcutDefault

Returns the hardcoded default shortcut for id. This does not take into account the user's configuration.

KShortcut  shortcutDefault3 (StdAccel id)

shortcutDefault3

Returns the hardcoded default 3 modifier shortcut for id. This does not take into account the user's configuration.

KShortcut  shortcutDefault4 (StdAccel id)

shortcutDefault4

Returns the hardcoded default 4 modifier shortcut for id. This does not take into account the user's configuration.

const KShortcut&  open ()

open

Open file. Default: Ctrl-o

const KShortcut&  openNew ()

openNew

Create a new document (or whatever). Default: Ctrl-n

const KShortcut&  close ()

close

Close current document. Default: Ctrl-w

const KShortcut&  save ()

save

Save current document. Default: Ctrl-s

const KShortcut&  print ()

print

Print current document. Default: Ctrl-p

const KShortcut&  quit ()

quit

Quit the program. Default: Ctrl-q

const KShortcut&  undo ()

undo

Undo last operation. Default: Ctrl-z

const KShortcut&  redo ()

redo

Redo. Default: Shift-Ctrl-z

const KShortcut&  cut ()

cut

Cut selected area and store it in the clipboard. Default: Ctrl-x

const KShortcut&  copy ()

copy

Copy selected area into the clipboard. Default: Ctrl-c

const KShortcut&  paste ()

paste

Paste contents of clipboard at mouse/cursor position. Default: Ctrl-v

const KShortcut&  selectAll ()

selectAll

Reload. Default: Ctrl-A

const KShortcut&  deleteWordBack ()

deleteWordBack

Delete a word back from mouse/cursor position. Default: Ctrl-Backspace

const KShortcut&  deleteWordForward ()

deleteWordForward

Delete a word forward from mouse/cursor position. Default: Ctrl-Delete

const KShortcut&  find ()

find

Find, search. Default: Ctrl-f

const KShortcut&  findNext ()

findNext

Find/search next. Default: F3

const KShortcut&  findPrev ()

findPrev

Find/search previous. Default: Shift-F3

const KShortcut&  replace ()

replace

Find and replace matches. Default: Ctrl-r

const KShortcut&  zoomIn ()

zoomIn

Zoom in. Default: Ctrl-Plus

const KShortcut&  zoomOut ()

zoomOut

Zoom out. Default: Ctrl-Minus

const KShortcut&  insert ()

insert

Toggle insert/overwrite (with visual feedback, e.g. in the statusbar). Default: Insert

const KShortcut&  home ()

home

Goto beginning of current line. Default: Home

const KShortcut&  end ()

end

Goto end of current line. Default: End

const KShortcut&  prior ()

prior

Scroll up one page. Default: Prior

const KShortcut&  next ()

next

Scroll down one page. Default: Next

const KShortcut&  gotoLine ()

gotoLine

Go to line. Default: Ctrl+G

const KShortcut&  addBookmark ()

addBookmark

Add current page to bookmarks. Default: Ctrl+B

const KShortcut&  help ()

help

Help the user in the current situation. Default: F1

const KShortcut&  completion ()

completion

Complete text in input widgets. Default Ctrl+E

const KShortcut&  prevCompletion ()

prevCompletion

Iterate through a list when completion returns mutiple items. Default: Ctrl+Up

const KShortcut&  nextCompletion ()

nextCompletion

Iterate through a list when completion returns mutiple items. Default: Ctrl+Down

const KShortcut&  substringCompletion ()

substringCompletion

Find a string within another string or list of strings. Default: Ctrl-T

const KShortcut&  rotateUp ()

rotateUp

Help users iterate through a list of entries. Default: Up

const KShortcut&  rotateDown ()

rotateDown

Help users iterate through a list of entries. Default: Down

const KShortcut&  popupMenuContext ()

popupMenuContext

popup a context menu. Default: Menu

const KShortcut&  whatsThis ()

whatsThis

What's This button. Default: Shift+F1

const KShortcut&  reload ()

reload

Reload. Default: F5

const KShortcut&  up ()

up

Up. Default: Alt+Up

const KShortcut&  back ()

back

Back. Default: Alt+Left

const KShortcut&  forward ()

forward

Forward. Default: ALT+Right

const KShortcut&  showMenubar ()

showMenubar

Show Menu Bar. Default: Ctrl-M

QString  action (StdAccel id)

action

Obsolete. Use name(). Returns a string representation for accel.

QString  description (StdAccel id)

description

Obsolete. Use desc(). Returns a localized description of accel.

int  key (StdAccel)

key

Obsolete. Use shortcut(). Returns the keybinding for accel.

int  defaultKey (StdAccel accel)

defaultKey

Obsolete. Use shortcutDefault().

bool  isEqual (const QKeyEvent* pEvent, int keyQt)

isEqual

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:
pEventthe key event to be used in the comparison.
keyQtthe int value to be compared to the key event.

Returns: true if the int value matches the integer representation of the QKeyEvent


Generated by: dfaure on faure on Tue Apr 16 08:49:00 2002, using kdoc 2.0a53.