kstdaccel.h
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
00026 class QKeyEvent;
00027 class KAccelActions;
00028
00039 namespace KStdAccel
00040 {
00041
00045 enum StdAccel {
00046 AccelNone,
00047
00048 Open, New, Close, Save,
00049
00050 Print,
00051 Quit,
00052
00053 Undo, Redo, Cut, Copy, Paste, SelectAll, Deselect, DeleteWordBack,
00054 DeleteWordForward, Find, FindNext, FindPrev, Replace,
00055
00056 Home, End, Prior, Next, GotoLine, AddBookmark, ZoomIn, ZoomOut,
00057 Up, Back, Forward, Reload, PopupMenuContext, ShowMenubar,
00058
00059 Help, WhatsThis,
00060
00061 TextCompletion, PrevCompletion, NextCompletion, SubstringCompletion,
00062 RotateUp, RotateDown
00063
00064 #ifndef KDE_NO_COMPAT
00065 , WhatThis = WhatsThis
00066 #endif
00067 };
00068
00073 const KShortcut& shortcut(StdAccel id);
00074
00080 QString name(StdAccel id);
00081
00087 QString label(StdAccel id);
00088
00094 QString whatsThis(StdAccel id);
00095
00104 StdAccel findStdAccel( const KKeySequence &keySeq );
00105
00112 KShortcut shortcutDefault(StdAccel id);
00119 KShortcut shortcutDefault3(StdAccel id);
00126 KShortcut shortcutDefault4(StdAccel id);
00127
00132 const KShortcut& open();
00133
00138 const KShortcut& openNew();
00139
00144 const KShortcut& close();
00145
00150 const KShortcut& save();
00151
00156 const KShortcut& print();
00157
00162 const KShortcut& quit();
00163
00168 const KShortcut& undo();
00169
00174 const KShortcut& redo();
00175
00180 const KShortcut& cut();
00181
00186 const KShortcut& copy();
00187
00192 const KShortcut& paste();
00193
00198 const KShortcut& selectAll();
00199
00204 const KShortcut& deleteWordBack();
00205
00210 const KShortcut& deleteWordForward();
00211
00216 const KShortcut& find();
00217
00222 const KShortcut& findNext();
00223
00228 const KShortcut& findPrev();
00229
00234 const KShortcut& replace();
00235
00240 const KShortcut& zoomIn();
00241
00246 const KShortcut& zoomOut();
00247
00252 const KShortcut& insert();
00253
00258 const KShortcut& home();
00259
00264 const KShortcut& end();
00265
00270 const KShortcut& prior();
00271
00276 const KShortcut& next();
00277
00282 const KShortcut& gotoLine();
00283
00288 const KShortcut& addBookmark();
00289
00294 const KShortcut& help();
00295
00300 const KShortcut& completion();
00301
00307 const KShortcut& prevCompletion();
00308
00314 const KShortcut& nextCompletion();
00315
00321 const KShortcut& substringCompletion();
00322
00327 const KShortcut& rotateUp();
00328
00333 const KShortcut& rotateDown();
00334
00339 const KShortcut& popupMenuContext();
00340
00345 const KShortcut& whatsThis();
00346
00351 const KShortcut& reload();
00352
00357 const KShortcut& up();
00358
00363 const KShortcut& back();
00364
00369 const KShortcut& forward();
00370
00375 const KShortcut& showMenubar();
00376
00377 #ifndef KDE_NO_COMPAT
00378
00382 QString action(StdAccel id);
00387 QString description(StdAccel id);
00392 int key(StdAccel);
00397 int defaultKey(StdAccel accel);
00398
00414 bool isEqual(const QKeyEvent* pEvent, int keyQt);
00415 #endif // !KDE_NO_COMPAT
00416
00417 };
00418
00419 #endif
This file is part of the documentation for kdelibs Version 3.1.0.