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 "kdemacros.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, TabPrev,
00068
00069 FullScreen
00070
00071 #ifndef KDE_NO_COMPAT
00072 , WhatThis = WhatsThis
00073 #endif
00074 };
00075
00080 const KShortcut& shortcut(StdAccel id);
00081
00087 QString name(StdAccel id);
00088
00094 QString label(StdAccel id);
00095
00101 QString whatsThis(StdAccel id);
00102
00111 StdAccel findStdAccel( const KKeySequence &keySeq );
00112
00119 KShortcut shortcutDefault(StdAccel id);
00126 KShortcut shortcutDefault3(StdAccel id);
00133 KShortcut shortcutDefault4(StdAccel id);
00134
00139 const KShortcut& open();
00140
00145 const KShortcut& openNew();
00146
00151 const KShortcut& close();
00152
00157 const KShortcut& save();
00158
00163 const KShortcut& print();
00164
00169 const KShortcut& quit();
00170
00175 const KShortcut& undo();
00176
00181 const KShortcut& redo();
00182
00187 const KShortcut& cut();
00188
00193 const KShortcut& copy();
00194
00199 const KShortcut& paste();
00200
00205 const KShortcut& selectAll();
00206
00211 const KShortcut& deleteWordBack();
00212
00217 const KShortcut& deleteWordForward();
00218
00223 const KShortcut& find();
00224
00229 const KShortcut& findNext();
00230
00235 const KShortcut& findPrev();
00236
00241 const KShortcut& replace();
00242
00247 const KShortcut& zoomIn();
00248
00253 const KShortcut& zoomOut();
00254
00259 const KShortcut& insert();
00260
00265 const KShortcut& home();
00266
00271 const KShortcut& end();
00272
00277 const KShortcut& prior();
00278
00283 const KShortcut& next();
00284
00289 const KShortcut& gotoLine();
00290
00295 const KShortcut& addBookmark();
00296
00302 const KShortcut& tabNext();
00303
00309 const KShortcut& tabPrev();
00310
00316 const KShortcut& fullScreen();
00317
00322 const KShortcut& help();
00323
00328 const KShortcut& completion();
00329
00335 const KShortcut& prevCompletion();
00336
00342 const KShortcut& nextCompletion();
00343
00349 const KShortcut& substringCompletion();
00350
00355 const KShortcut& rotateUp();
00356
00361 const KShortcut& rotateDown();
00362
00367 const KShortcut& popupMenuContext();
00368
00373 const KShortcut& whatsThis();
00374
00379 const KShortcut& reload();
00380
00385 const KShortcut& up();
00386
00391 const KShortcut& back();
00392
00397 const KShortcut& forward();
00398
00403 const KShortcut& showMenubar();
00404
00405 #if !defined(KDE_NO_COMPAT) && !defined(__KSTDACCEL_CPP_)
00406
00410 QString action(StdAccel id) KDE_DEPRECATED;
00415 QString description(StdAccel id) KDE_DEPRECATED;
00420 int key(StdAccel) KDE_DEPRECATED;
00425 int defaultKey(StdAccel accel) KDE_DEPRECATED;
00426
00442 bool isEqual(const QKeyEvent* pEvent, int keyQt) KDE_DEPRECATED;
00443 #endif // !KDE_NO_COMPAT
00444
00445 }
00446
00447 #endif