# kdecore Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# kstdaccel.h

    00001 /* This file is part of the KDE libraries
    00002     Copyright (C) 1997 Stefan Taferner (taferner@kde.org)
    00003     Copyright (C) 2000 Nicolas Hadacek (hadacek@kde.org)
    00004     Copyright (C) 2001,2002 Ellis Whitehead (ellis@kde.org)
    00005
    00006     This library is free software; you can redistribute it and/or
    00007     modify it under the terms of the GNU Library General Public
    00008     License version 2 as published by the Free Software Foundation.
    00009
    00010     This library is distributed in the hope that it will be useful,
    00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
    00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00013     Library General Public License for more details.
    00014
    00015     You should have received a copy of the GNU Library General Public License
    00016     along with this library; see the file COPYING.LIB.  If not, write to
    00017     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00018     Boston, MA 02111-1307, USA.
    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   // Always add new std-accels to the end of this enum, never in the middle!
    00045   enum StdAccel {
    00046     AccelNone,
    00047     // File menu
    00048     Open, New, Close, Save,
    00049     // The Print item
    00050     Print,
    00051     Quit,
    00052     // Edit menu
    00053     Undo, Redo, Cut, Copy, Paste, SelectAll, Deselect, DeleteWordBack,
    00054     DeleteWordForward, Find, FindNext, FindPrev, Replace,
    00055     // Navigation
    00056     Home, End, Prior, Next, GotoLine, AddBookmark, ZoomIn, ZoomOut,
    00057     Up, Back, Forward, Reload, PopupMenuContext, ShowMenubar,
    00058     // Help menu
    00059     Help, WhatsThis,
    00060     // Text completion
    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.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 12:46:57 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001