tdestdaccel.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., 51 Franklin Street, Fifth Floor, 00018 Boston, MA 02110-1301, USA. 00019 */ 00020 #ifndef TDESTDACCEL_H 00021 #define TDESTDACCEL_H 00022 00023 #include <tqstring.h> 00024 #include <tdeshortcut.h> 00025 #include "tdelibs_export.h" 00026 00027 class TQKeyEvent; 00028 class TDEAccelActions; 00029 00041 namespace TDEStdAccel 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 TDECORE_EXPORT const TDEShortcut& shortcut(StdAccel id); 00091 00097 TDECORE_EXPORT TQString name(StdAccel id); 00098 00104 TDECORE_EXPORT TQString label(StdAccel id); 00105 00111 TDECORE_EXPORT TQString whatsThis(StdAccel id); 00112 00121 TDECORE_EXPORT StdAccel findStdAccel( const KKeySequence &keySeq ); 00122 00129 TDECORE_EXPORT TDEShortcut shortcutDefault(StdAccel id); 00136 TDECORE_EXPORT TDEShortcut shortcutDefault3(StdAccel id); 00143 TDECORE_EXPORT TDEShortcut shortcutDefault4(StdAccel id); 00144 00149 TDECORE_EXPORT const TDEShortcut& open(); 00150 00155 TDECORE_EXPORT const TDEShortcut& openNew(); 00156 00161 TDECORE_EXPORT const TDEShortcut& close(); 00162 00167 TDECORE_EXPORT const TDEShortcut& save(); 00168 00173 TDECORE_EXPORT const TDEShortcut& print(); 00174 00179 TDECORE_EXPORT const TDEShortcut& quit(); 00180 00185 TDECORE_EXPORT const TDEShortcut& undo(); 00186 00191 TDECORE_EXPORT const TDEShortcut& redo(); 00192 00197 TDECORE_EXPORT const TDEShortcut& cut(); 00198 00203 TDECORE_EXPORT const TDEShortcut& copy(); 00204 00209 TDECORE_EXPORT const TDEShortcut& paste(); 00210 00216 TDECORE_EXPORT const TDEShortcut& pasteSelection(); 00217 00222 TDECORE_EXPORT const TDEShortcut& selectAll(); 00223 00228 TDECORE_EXPORT const TDEShortcut& deleteWordBack(); 00229 00234 TDECORE_EXPORT const TDEShortcut& deleteWordForward(); 00235 00240 TDECORE_EXPORT const TDEShortcut& find(); 00241 00246 TDECORE_EXPORT const TDEShortcut& findNext(); 00247 00252 TDECORE_EXPORT const TDEShortcut& findPrev(); 00253 00258 TDECORE_EXPORT const TDEShortcut& replace(); 00259 00264 TDECORE_EXPORT const TDEShortcut& zoomIn(); 00265 00270 TDECORE_EXPORT const TDEShortcut& zoomOut(); 00271 00276 TDECORE_EXPORT const TDEShortcut& insert(); 00277 00282 TDECORE_EXPORT const TDEShortcut& home(); 00283 00288 TDECORE_EXPORT const TDEShortcut& end(); 00289 00295 TDECORE_EXPORT const TDEShortcut& beginningOfLine(); 00296 00302 TDECORE_EXPORT const TDEShortcut& endOfLine(); 00303 00308 TDECORE_EXPORT const TDEShortcut& prior(); 00309 00314 TDECORE_EXPORT const TDEShortcut& next(); 00315 00320 TDECORE_EXPORT const TDEShortcut& gotoLine(); 00321 00326 TDECORE_EXPORT const TDEShortcut& addBookmark(); 00327 00333 TDECORE_EXPORT const TDEShortcut& tabNext(); 00334 00340 TDECORE_EXPORT const TDEShortcut& tabPrev(); 00341 00347 TDECORE_EXPORT const TDEShortcut& fullScreen(); 00348 00353 TDECORE_EXPORT const TDEShortcut& help(); 00354 00359 TDECORE_EXPORT const TDEShortcut& completion(); 00360 00366 TDECORE_EXPORT const TDEShortcut& prevCompletion(); 00367 00373 TDECORE_EXPORT const TDEShortcut& nextCompletion(); 00374 00380 TDECORE_EXPORT const TDEShortcut& substringCompletion(); 00381 00386 TDECORE_EXPORT const TDEShortcut& rotateUp(); 00387 00392 TDECORE_EXPORT const TDEShortcut& rotateDown(); 00393 00398 TDECORE_EXPORT const TDEShortcut& popupMenuContext(); 00399 00404 TDECORE_EXPORT const TDEShortcut& whatsThis(); 00405 00410 TDECORE_EXPORT const TDEShortcut& reload(); 00411 00416 TDECORE_EXPORT const TDEShortcut& up(); 00417 00422 TDECORE_EXPORT const TDEShortcut& back(); 00423 00428 TDECORE_EXPORT const TDEShortcut& forward(); 00429 00435 TDECORE_EXPORT const TDEShortcut& backwardWord(); 00436 00442 TDECORE_EXPORT const TDEShortcut& forwardWord(); 00443 00448 TDECORE_EXPORT const TDEShortcut& showMenubar(); 00449 00450 #if !defined(KDE_NO_COMPAT) && !defined(__KSTDACCEL_CPP_) 00451 00455 TDECORE_EXPORT TQString action(StdAccel id) KDE_DEPRECATED; 00460 TDECORE_EXPORT TQString description(StdAccel id) KDE_DEPRECATED; 00465 TDECORE_EXPORT int key(StdAccel) KDE_DEPRECATED; 00470 TDECORE_EXPORT int defaultKey(StdAccel accel) KDE_DEPRECATED; 00471 00487 TDECORE_EXPORT bool isEqual(const TQKeyEvent* pEvent, int keyQt) KDE_DEPRECATED; 00488 #endif // !KDE_NO_COMPAT 00489 00490 } 00491 00492 #endif