00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KSTDACCEL_H
00021 #define KSTDACCEL_H
00022
00023 #include <qstring.h>
00024 #include <kshortcut.h>
00025 #include "kdelibs_export.h"
00026
00027 class QKeyEvent;
00028 class KAccelActions;
00029
00041 namespace KStdAccel
00042 {
00043
00047 enum StdAccel {
00048 AccelNone,
00049
00050 Open, New, Close, Save,
00051
00052 Print,
00053 Quit,
00054
00055 Undo, Redo, Cut, Copy, Paste, SelectAll, Deselect, DeleteWordBack,
00056 DeleteWordForward, Find, FindNext, FindPrev, Replace,
00057
00058 Home, End, Prior, Next, GotoLine, AddBookmark, ZoomIn, ZoomOut,
00059 Up, Back, Forward, Reload, PopupMenuContext, ShowMenubar,
00060
00061 Help, WhatsThis,
00062
00063 TextCompletion, PrevCompletion, NextCompletion, SubstringCompletion,
00064 RotateUp, RotateDown,
00065
00066
00067 TabNext,
00068 TabPrev,
00069
00070
00071 FullScreen,
00072
00073
00074 BackwardWord,
00075 ForwardWord,
00076 BeginningOfLine,
00077 EndOfLine,
00078
00079 PasteSelection
00080
00081 #ifndef KDE_NO_COMPAT
00082 , WhatThis = WhatsThis
00083 #endif
00084 };
00085
00090 KDECORE_EXPORT const KShortcut& shortcut(StdAccel id);
00091
00097 KDECORE_EXPORT QString name(StdAccel id);
00098
00104 KDECORE_EXPORT QString label(StdAccel id);
00105
00111 KDECORE_EXPORT QString whatsThis(StdAccel id);
00112
00121 KDECORE_EXPORT StdAccel findStdAccel( const KKeySequence &keySeq );
00122
00129 KDECORE_EXPORT KShortcut shortcutDefault(StdAccel id);
00136 KDECORE_EXPORT KShortcut shortcutDefault3(StdAccel id);
00143 KDECORE_EXPORT KShortcut shortcutDefault4(StdAccel id);
00144
00149 KDECORE_EXPORT const KShortcut& open();
00150
00155 KDECORE_EXPORT const KShortcut& openNew();
00156
00161 KDECORE_EXPORT const KShortcut& close();
00162
00167 KDECORE_EXPORT const KShortcut& save();
00168
00173 KDECORE_EXPORT const KShortcut& print();
00174
00179 KDECORE_EXPORT const KShortcut& quit();
00180
00185 KDECORE_EXPORT const KShortcut& undo();
00186
00191 KDECORE_EXPORT const KShortcut& redo();
00192
00197 KDECORE_EXPORT const KShortcut& cut();
00198
00203 KDECORE_EXPORT const KShortcut& copy();
00204
00209 KDECORE_EXPORT const KShortcut& paste();
00210
00216 KDECORE_EXPORT const KShortcut& pasteSelection();
00217
00222 KDECORE_EXPORT const KShortcut& selectAll();
00223
00228 KDECORE_EXPORT const KShortcut& deleteWordBack();
00229
00234 KDECORE_EXPORT const KShortcut& deleteWordForward();
00235
00240 KDECORE_EXPORT const KShortcut& find();
00241
00246 KDECORE_EXPORT const KShortcut& findNext();
00247
00252 KDECORE_EXPORT const KShortcut& findPrev();
00253
00258 KDECORE_EXPORT const KShortcut& replace();
00259
00264 KDECORE_EXPORT const KShortcut& zoomIn();
00265
00270 KDECORE_EXPORT const KShortcut& zoomOut();
00271
00276 KDECORE_EXPORT const KShortcut& insert();
00277
00282 KDECORE_EXPORT const KShortcut& home();
00283
00288 KDECORE_EXPORT const KShortcut& end();
00289
00295 KDECORE_EXPORT const KShortcut& beginningOfLine();
00296
00302 KDECORE_EXPORT const KShortcut& endOfLine();
00303
00308 KDECORE_EXPORT const KShortcut& prior();
00309
00314 KDECORE_EXPORT const KShortcut& next();
00315
00320 KDECORE_EXPORT const KShortcut& gotoLine();
00321
00326 KDECORE_EXPORT const KShortcut& addBookmark();
00327
00333 KDECORE_EXPORT const KShortcut& tabNext();
00334
00340 KDECORE_EXPORT const KShortcut& tabPrev();
00341
00347 KDECORE_EXPORT const KShortcut& fullScreen();
00348
00353 KDECORE_EXPORT const KShortcut& help();
00354
00359 KDECORE_EXPORT const KShortcut& completion();
00360
00366 KDECORE_EXPORT const KShortcut& prevCompletion();
00367
00373 KDECORE_EXPORT const KShortcut& nextCompletion();
00374
00380 KDECORE_EXPORT const KShortcut& substringCompletion();
00381
00386 KDECORE_EXPORT const KShortcut& rotateUp();
00387
00392 KDECORE_EXPORT const KShortcut& rotateDown();
00393
00398 KDECORE_EXPORT const KShortcut& popupMenuContext();
00399
00404 KDECORE_EXPORT const KShortcut& whatsThis();
00405
00410 KDECORE_EXPORT const KShortcut& reload();
00411
00416 KDECORE_EXPORT const KShortcut& up();
00417
00422 KDECORE_EXPORT const KShortcut& back();
00423
00428 KDECORE_EXPORT const KShortcut& forward();
00429
00435 KDECORE_EXPORT const KShortcut& backwardWord();
00436
00442 KDECORE_EXPORT const KShortcut& forwardWord();
00443
00448 KDECORE_EXPORT const KShortcut& showMenubar();
00449
00450 #if !defined(KDE_NO_COMPAT) && !defined(__KSTDACCEL_CPP_)
00451
00455 KDECORE_EXPORT QString action(StdAccel id) KDE_DEPRECATED;
00460 KDECORE_EXPORT QString description(StdAccel id) KDE_DEPRECATED;
00465 KDECORE_EXPORT int key(StdAccel) KDE_DEPRECATED;
00470 KDECORE_EXPORT int defaultKey(StdAccel accel) KDE_DEPRECATED;
00471
00487 KDECORE_EXPORT bool isEqual(const QKeyEvent* pEvent, int keyQt) KDE_DEPRECATED;
00488 #endif // !KDE_NO_COMPAT
00489
00490 }
00491
00492 #endif