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
00050 enum StandardShortcut {
00051
00052
00053 AccelNone=0,
00054
00055 Open, New, Close, Save,
00056
00057 Print,
00058 Quit,
00059
00060 Undo, Redo, Cut, Copy, Paste, PasteSelection,
00061 SelectAll, Deselect, DeleteWordBack, DeleteWordForward,
00062 Find, FindNext, FindPrev, Replace,
00063
00064 Home, Begin, End, Prior, Next,
00065 Up, Back, Forward, Reload,
00066
00067 BeginningOfLine, EndOfLine, GotoLine,
00068 BackwardWord, ForwardWord,
00069
00070 AddBookmark, ZoomIn, ZoomOut, FullScreen,
00071 ShowMenubar,
00072
00073 TabNext, TabPrev,
00074
00075 Help, WhatsThis,
00076
00077 TextCompletion, PrevCompletion, NextCompletion, SubstringCompletion,
00078
00079 RotateUp, RotateDown,
00080
00081
00082
00083 StandardShortcutCount
00084 };
00085
00092 KDEUI_EXPORT const KShortcut &shortcut(StandardShortcut id);
00093
00099 KDEUI_EXPORT QString name(StandardShortcut id);
00100
00106 KDEUI_EXPORT QString label(StandardShortcut id);
00107
00113 KDEUI_EXPORT QString whatsThis(StandardShortcut id);
00114
00123 KDEUI_EXPORT StandardShortcut find(const QKeySequence &keySeq);
00124
00133 KDEUI_EXPORT StandardShortcut find(const char *keyName);
00134
00141 KDEUI_EXPORT KShortcut hardcodedDefaultShortcut(StandardShortcut id);
00142
00146 KDEUI_EXPORT void saveShortcut(StandardShortcut id, const KShortcut &newShortcut);
00147
00152 KDEUI_EXPORT const KShortcut &open();
00153
00158 KDEUI_EXPORT const KShortcut &openNew();
00159
00164 KDEUI_EXPORT const KShortcut &close();
00165
00170 KDEUI_EXPORT const KShortcut &save();
00171
00176 KDEUI_EXPORT const KShortcut &print();
00177
00182 KDEUI_EXPORT const KShortcut &quit();
00183
00188 KDEUI_EXPORT const KShortcut &undo();
00189
00194 KDEUI_EXPORT const KShortcut &redo();
00195
00200 KDEUI_EXPORT const KShortcut &cut();
00201
00206 KDEUI_EXPORT const KShortcut ©();
00207
00212 KDEUI_EXPORT const KShortcut &paste();
00213
00218 KDEUI_EXPORT const KShortcut &pasteSelection();
00219
00224 KDEUI_EXPORT const KShortcut &selectAll();
00225
00230 KDEUI_EXPORT const KShortcut &deleteWordBack();
00231
00236 KDEUI_EXPORT const KShortcut &deleteWordForward();
00237
00242 KDEUI_EXPORT const KShortcut &find();
00243
00248 KDEUI_EXPORT const KShortcut &findNext();
00249
00254 KDEUI_EXPORT const KShortcut &findPrev();
00255
00260 KDEUI_EXPORT const KShortcut &replace();
00261
00266 KDEUI_EXPORT const KShortcut &zoomIn();
00267
00272 KDEUI_EXPORT const KShortcut &zoomOut();
00273
00278 KDEUI_EXPORT const KShortcut &insert();
00279
00284 KDEUI_EXPORT const KShortcut &home();
00285
00290 KDEUI_EXPORT const KShortcut &begin();
00291
00296 KDEUI_EXPORT const KShortcut &end();
00297
00302 KDEUI_EXPORT const KShortcut &beginningOfLine();
00303
00308 KDEUI_EXPORT const KShortcut &endOfLine();
00309
00314 KDEUI_EXPORT const KShortcut &prior();
00315
00320 KDEUI_EXPORT const KShortcut &next();
00321
00326 KDEUI_EXPORT const KShortcut &gotoLine();
00327
00332 KDEUI_EXPORT const KShortcut &addBookmark();
00333
00338 KDEUI_EXPORT const KShortcut &tabNext();
00339
00344 KDEUI_EXPORT const KShortcut &tabPrev();
00345
00350 KDEUI_EXPORT const KShortcut &fullScreen();
00351
00356 KDEUI_EXPORT const KShortcut &help();
00357
00362 KDEUI_EXPORT const KShortcut &completion();
00363
00369 KDEUI_EXPORT const KShortcut &prevCompletion();
00370
00376 KDEUI_EXPORT const KShortcut &nextCompletion();
00377
00383 KDEUI_EXPORT const KShortcut &substringCompletion();
00384
00389 KDEUI_EXPORT const KShortcut &rotateUp();
00390
00395 KDEUI_EXPORT const KShortcut &rotateDown();
00396
00401 KDEUI_EXPORT const KShortcut &whatsThis();
00402
00407 KDEUI_EXPORT const KShortcut &reload();
00408
00413 KDEUI_EXPORT const KShortcut &up();
00414
00419 KDEUI_EXPORT const KShortcut &back();
00420
00425 KDEUI_EXPORT const KShortcut &forward();
00426
00431 KDEUI_EXPORT const KShortcut &backwardWord();
00432
00437 KDEUI_EXPORT const KShortcut &forwardWord();
00438
00443 KDEUI_EXPORT const KShortcut &showMenubar();
00444
00445 }
00446
00447 #endif // KSTANDARDSHORTCUT_H