00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KSTANDARDSHORTCUT_H
00021 #define KSTANDARDSHORTCUT_H
00022
00023 #include <QtCore/QString>
00024
00025 #include "kshortcut.h"
00026
00027
00035 namespace KStandardShortcut
00036 {
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00055 enum StandardShortcut {
00056
00057
00058 AccelNone=0,
00059
00060 Open, New, Close, Save,
00061
00062 Print,
00063 Quit,
00064
00065 Undo, Redo, Cut, Copy, Paste, PasteSelection,
00066 SelectAll, Deselect, DeleteWordBack, DeleteWordForward,
00067 Find, FindNext, FindPrev, Replace,
00068
00069 Home, Begin, End, Prior, Next,
00070 Up, Back, Forward, Reload,
00071
00072 BeginningOfLine, EndOfLine, GotoLine,
00073 BackwardWord, ForwardWord,
00074
00075 AddBookmark, ZoomIn, ZoomOut, FullScreen,
00076 ShowMenubar,
00077
00078 TabNext, TabPrev,
00079
00080 Help, WhatsThis,
00081
00082 TextCompletion, PrevCompletion, NextCompletion, SubstringCompletion,
00083
00084 RotateUp, RotateDown,
00085
00086 OpenRecent,
00087 SaveAs,
00088 Revert,
00089 PrintPreview,
00090 Mail,
00091 Clear,
00092 ActualSize,
00093 FitToPage,
00094 FitToWidth,
00095 FitToHeight,
00096 Zoom,
00097 Goto,
00098 GotoPage,
00099 DocumentBack,
00100 DocumentForward,
00101 EditBookmarks,
00102 Spelling,
00103 ShowToolbar,
00104 ShowStatusbar,
00105 SaveOptions,
00106 KeyBindings,
00107 Preferences,
00108 ConfigureToolbars,
00109 ConfigureNotifications,
00110 TipofDay,
00111 ReportBug,
00112 SwitchApplicationLanguage,
00113 AboutApp,
00114 AboutKDE,
00115
00116
00117
00118 StandardShortcutCount
00119 };
00120
00127 KDEUI_EXPORT const KShortcut &shortcut(StandardShortcut id);
00128
00134 KDEUI_EXPORT QString name(StandardShortcut id);
00135
00141 KDEUI_EXPORT QString label(StandardShortcut id);
00142
00148 KDEUI_EXPORT QString whatsThis(StandardShortcut id);
00149
00158 KDEUI_EXPORT StandardShortcut find(const QKeySequence &keySeq);
00159
00168 KDEUI_EXPORT StandardShortcut find(const char *keyName);
00169
00176 KDEUI_EXPORT KShortcut hardcodedDefaultShortcut(StandardShortcut id);
00177
00181 KDEUI_EXPORT void saveShortcut(StandardShortcut id, const KShortcut &newShortcut);
00182
00187 KDEUI_EXPORT const KShortcut &open();
00188
00193 KDEUI_EXPORT const KShortcut &openNew();
00194
00199 KDEUI_EXPORT const KShortcut &close();
00200
00205 KDEUI_EXPORT const KShortcut &save();
00206
00211 KDEUI_EXPORT const KShortcut &print();
00212
00217 KDEUI_EXPORT const KShortcut &quit();
00218
00223 KDEUI_EXPORT const KShortcut &undo();
00224
00229 KDEUI_EXPORT const KShortcut &redo();
00230
00235 KDEUI_EXPORT const KShortcut &cut();
00236
00241 KDEUI_EXPORT const KShortcut ©();
00242
00247 KDEUI_EXPORT const KShortcut &paste();
00248
00253 KDEUI_EXPORT const KShortcut &pasteSelection();
00254
00259 KDEUI_EXPORT const KShortcut &selectAll();
00260
00265 KDEUI_EXPORT const KShortcut &deleteWordBack();
00266
00271 KDEUI_EXPORT const KShortcut &deleteWordForward();
00272
00277 KDEUI_EXPORT const KShortcut &find();
00278
00283 KDEUI_EXPORT const KShortcut &findNext();
00284
00289 KDEUI_EXPORT const KShortcut &findPrev();
00290
00295 KDEUI_EXPORT const KShortcut &replace();
00296
00301 KDEUI_EXPORT const KShortcut &zoomIn();
00302
00307 KDEUI_EXPORT const KShortcut &zoomOut();
00308
00313 KDEUI_EXPORT const KShortcut &insert();
00314
00319 KDEUI_EXPORT const KShortcut &home();
00320
00325 KDEUI_EXPORT const KShortcut &begin();
00326
00331 KDEUI_EXPORT const KShortcut &end();
00332
00337 KDEUI_EXPORT const KShortcut &beginningOfLine();
00338
00343 KDEUI_EXPORT const KShortcut &endOfLine();
00344
00349 KDEUI_EXPORT const KShortcut &prior();
00350
00355 KDEUI_EXPORT const KShortcut &next();
00356
00361 KDEUI_EXPORT const KShortcut &gotoLine();
00362
00367 KDEUI_EXPORT const KShortcut &addBookmark();
00368
00373 KDEUI_EXPORT const KShortcut &tabNext();
00374
00379 KDEUI_EXPORT const KShortcut &tabPrev();
00380
00385 KDEUI_EXPORT const KShortcut &fullScreen();
00386
00391 KDEUI_EXPORT const KShortcut &help();
00392
00397 KDEUI_EXPORT const KShortcut &completion();
00398
00404 KDEUI_EXPORT const KShortcut &prevCompletion();
00405
00411 KDEUI_EXPORT const KShortcut &nextCompletion();
00412
00418 KDEUI_EXPORT const KShortcut &substringCompletion();
00419
00424 KDEUI_EXPORT const KShortcut &rotateUp();
00425
00430 KDEUI_EXPORT const KShortcut &rotateDown();
00431
00436 KDEUI_EXPORT const KShortcut &whatsThis();
00437
00442 KDEUI_EXPORT const KShortcut &reload();
00443
00448 KDEUI_EXPORT const KShortcut &up();
00449
00454 KDEUI_EXPORT const KShortcut &back();
00455
00460 KDEUI_EXPORT const KShortcut &forward();
00461
00466 KDEUI_EXPORT const KShortcut &backwardWord();
00467
00472 KDEUI_EXPORT const KShortcut &forwardWord();
00473
00478 KDEUI_EXPORT const KShortcut &showMenubar();
00479
00480 }
00481
00482 #endif // KSTANDARDSHORTCUT_H