• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KDECore

kstdaccel.h

Go to the documentation of this file.
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., 51 Franklin Street, Fifth Floor,
00018     Boston, MA 02110-1301, USA.
00019 */
00020 #ifndef KSTDACCEL_H
00021 #define KSTDACCEL_H
00022 
00023 #include <qstring.h>
00024 #include <kshortcut.h>
00025 #include "kdelibs_export.h"
00026 
00027 class QKeyEvent;
00028 class KAccelActions;
00029 
00041 namespace KStdAccel
00042 {
00043   // Always add new std-accels to the end of this enum, never in the middle!
00047   enum StdAccel {
00048     AccelNone,
00049     // File menu
00050     Open, New, Close, Save,
00051     // The Print item
00052     Print,
00053     Quit,
00054     // Edit menu
00055     Undo, Redo, Cut, Copy, Paste, SelectAll, Deselect, DeleteWordBack,
00056     DeleteWordForward, Find, FindNext, FindPrev, Replace,
00057     // Navigation
00058     Home, End, Prior, Next, GotoLine, AddBookmark, ZoomIn, ZoomOut,
00059     Up, Back, Forward, Reload, PopupMenuContext, ShowMenubar,
00060     // Help menu
00061     Help, WhatsThis,
00062     // Text completion
00063     TextCompletion, PrevCompletion, NextCompletion, SubstringCompletion,
00064     RotateUp, RotateDown,
00065 
00066     // Tabular navigation
00067     TabNext,           
00068     TabPrev,           
00069 
00070     // Full screen mode
00071     FullScreen,        
00072 
00073     // Text Navigation
00074     BackwardWord,      
00075     ForwardWord,       
00076     BeginningOfLine,   
00077     EndOfLine,         
00078 
00079     PasteSelection     
00080 
00081 #ifndef KDE_NO_COMPAT
00082     , WhatThis = WhatsThis
00083 #endif
00084   };
00085 
00090   KDECORE_EXPORT const KShortcut& shortcut(StdAccel id);
00091 
00097   KDECORE_EXPORT QString name(StdAccel id);
00098 
00104   KDECORE_EXPORT QString label(StdAccel id);
00105 
00111   KDECORE_EXPORT QString whatsThis(StdAccel id);
00112 
00121   KDECORE_EXPORT StdAccel findStdAccel( const KKeySequence &keySeq );
00122 
00129   KDECORE_EXPORT KShortcut shortcutDefault(StdAccel id);
00136   KDECORE_EXPORT KShortcut shortcutDefault3(StdAccel id);
00143   KDECORE_EXPORT KShortcut shortcutDefault4(StdAccel id);
00144 
00149   KDECORE_EXPORT const KShortcut& open();
00150 
00155   KDECORE_EXPORT const KShortcut& openNew();
00156 
00161   KDECORE_EXPORT const KShortcut& close();
00162 
00167   KDECORE_EXPORT const KShortcut& save();
00168 
00173   KDECORE_EXPORT const KShortcut& print();
00174 
00179   KDECORE_EXPORT const KShortcut& quit();
00180 
00185   KDECORE_EXPORT const KShortcut& undo();
00186 
00191   KDECORE_EXPORT const KShortcut& redo();
00192 
00197   KDECORE_EXPORT const KShortcut& cut();
00198 
00203   KDECORE_EXPORT const KShortcut& copy();
00204 
00209   KDECORE_EXPORT const KShortcut& paste();
00210 
00216   KDECORE_EXPORT const KShortcut& pasteSelection();
00217 
00222   KDECORE_EXPORT const KShortcut& selectAll();
00223 
00228   KDECORE_EXPORT const KShortcut& deleteWordBack();
00229 
00234   KDECORE_EXPORT const KShortcut& deleteWordForward();
00235 
00240   KDECORE_EXPORT const KShortcut& find();
00241 
00246   KDECORE_EXPORT const KShortcut& findNext();
00247 
00252   KDECORE_EXPORT const KShortcut& findPrev();
00253 
00258   KDECORE_EXPORT const KShortcut& replace();
00259 
00264   KDECORE_EXPORT const KShortcut& zoomIn();
00265 
00270   KDECORE_EXPORT const KShortcut& zoomOut();
00271 
00276   KDECORE_EXPORT const KShortcut& insert();
00277 
00282   KDECORE_EXPORT const KShortcut& home();
00283 
00288   KDECORE_EXPORT const KShortcut& end();
00289 
00295   KDECORE_EXPORT const KShortcut& beginningOfLine();
00296 
00302   KDECORE_EXPORT const KShortcut& endOfLine();
00303 
00308   KDECORE_EXPORT const KShortcut& prior();
00309 
00314   KDECORE_EXPORT const KShortcut& next();
00315 
00320   KDECORE_EXPORT const KShortcut& gotoLine();
00321 
00326   KDECORE_EXPORT const KShortcut& addBookmark();
00327 
00333   KDECORE_EXPORT const KShortcut& tabNext();
00334 
00340   KDECORE_EXPORT const KShortcut& tabPrev();
00341 
00347   KDECORE_EXPORT const KShortcut& fullScreen();
00348 
00353   KDECORE_EXPORT const KShortcut& help();
00354 
00359   KDECORE_EXPORT const KShortcut& completion();
00360 
00366   KDECORE_EXPORT const KShortcut& prevCompletion();
00367 
00373   KDECORE_EXPORT const KShortcut& nextCompletion();
00374 
00380   KDECORE_EXPORT const KShortcut& substringCompletion();
00381 
00386   KDECORE_EXPORT const KShortcut& rotateUp();
00387 
00392   KDECORE_EXPORT const KShortcut& rotateDown();
00393 
00398   KDECORE_EXPORT const KShortcut& popupMenuContext();
00399 
00404   KDECORE_EXPORT const KShortcut& whatsThis();
00405 
00410   KDECORE_EXPORT const KShortcut& reload();
00411 
00416   KDECORE_EXPORT const KShortcut& up();
00417 
00422   KDECORE_EXPORT const KShortcut& back();
00423 
00428   KDECORE_EXPORT const KShortcut& forward();
00429 
00435   KDECORE_EXPORT const KShortcut& backwardWord();
00436 
00442   KDECORE_EXPORT const KShortcut& forwardWord();
00443 
00448   KDECORE_EXPORT const KShortcut& showMenubar();
00449 
00450 #if !defined(KDE_NO_COMPAT) && !defined(__KSTDACCEL_CPP_)
00451 
00455   KDECORE_EXPORT QString action(StdAccel id) KDE_DEPRECATED;
00460   KDECORE_EXPORT QString description(StdAccel id) KDE_DEPRECATED;
00465   KDECORE_EXPORT int key(StdAccel) KDE_DEPRECATED;
00470   KDECORE_EXPORT int defaultKey(StdAccel accel) KDE_DEPRECATED;
00471 
00487   KDECORE_EXPORT bool isEqual(const QKeyEvent* pEvent, int keyQt) KDE_DEPRECATED;
00488 #endif // !KDE_NO_COMPAT
00489 
00490 }
00491 
00492 #endif

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal