• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.5 API Reference
  • KDE Home
  • Contact Us
 

KDEUI

  • kdeui
  • shortcuts
kstandardshortcut.h
Go to the documentation of this file.
1 /* This file is part of the KDE libraries
2  Copyright (C) 1997 Stefan Taferner (taferner@kde.org)
3  Copyright (C) 2000 Nicolas Hadacek (hadacek@kde.org)
4  Copyright (C) 2001,2002 Ellis Whitehead (ellis@kde.org)
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License version 2 as published by the Free Software Foundation.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 #ifndef KSTANDARDSHORTCUT_H
21 #define KSTANDARDSHORTCUT_H
22 
23 #include <QtCore/QString>
24 
25 #include "kshortcut.h"
26 
27 
35 namespace KStandardShortcut
36 { // STUFF WILL BREAK IF YOU DON'T READ THIS!!!
37  /*
38  *Always add new std-accels to the end of this enum, never in the middle!
39  *Don't forget to add the corresponding entries in g_infoStandardShortcut[] in kstandardshortcut.cpp, too.
40  *Values of elements here and positions of the corresponding entries in
41  *the big array g_infoStandardShortcut[] ABSOLUTELY MUST BE THE SAME.
42  * !!! !!!! !!!!! !!!!
43  * !!!! !!! !!!! !!!!
44  * Remember to also update kdoctools/genshortcutents.cpp.
45  *
46  * Other Rules:
47  *
48  * - Never change the name of an existing shortcut
49  * - Never translate the name of a shortcut
50  */
51 
55  enum StandardShortcut {
56  //C++ requires that the value of an enum symbol be one more than the previous one.
57  //This means that everything will be well-ordered from here on.
58  AccelNone=0,
59  // File menu
60  Open, New, Close, Save,
61  // The Print item
62  Print,
63  Quit,
64  // Edit menu
65  Undo, Redo, Cut, Copy, Paste, PasteSelection,
66  SelectAll, Deselect, DeleteWordBack, DeleteWordForward,
67  Find, FindNext, FindPrev, Replace,
68  // Navigation
69  Home, Begin, End, Prior, Next,
70  Up, Back, Forward, Reload,
71  // Text Navigation
72  BeginningOfLine, EndOfLine, GotoLine,
73  BackwardWord, ForwardWord,
74  // View parameters
75  AddBookmark, ZoomIn, ZoomOut, FullScreen,
76  ShowMenubar,
77  // Tabular navigation
78  TabNext, TabPrev,
79  // Help menu
80  Help, WhatsThis,
81  // Text completion
82  TextCompletion, PrevCompletion, NextCompletion, SubstringCompletion,
83 
84  RotateUp, RotateDown,
85 
86  OpenRecent,
87  SaveAs,
88  Revert,
89  PrintPreview,
90  Mail,
91  Clear,
92  ActualSize,
93  FitToPage,
94  FitToWidth,
95  FitToHeight,
96  Zoom,
97  Goto,
98  GotoPage,
99  DocumentBack,
100  DocumentForward,
101  EditBookmarks,
102  Spelling,
103  ShowToolbar,
104  ShowStatusbar,
105  SaveOptions,
106  KeyBindings,
107  Preferences,
108  ConfigureToolbars,
109  ConfigureNotifications,
110  TipofDay,
111  ReportBug,
112  SwitchApplicationLanguage,
113  AboutApp,
114  AboutKDE,
115 
116  // Insert new items here!
117 
118  StandardShortcutCount // number of standard shortcuts
119  };
120 
127  KDEUI_EXPORT const KShortcut &shortcut(StandardShortcut id);
128 
134  KDEUI_EXPORT QString name(StandardShortcut id);
135 
141  KDEUI_EXPORT QString label(StandardShortcut id);
142 
148  KDEUI_EXPORT QString whatsThis(StandardShortcut id);
149 
158  KDEUI_EXPORT StandardShortcut find(const QKeySequence &keySeq);
159 
168  KDEUI_EXPORT StandardShortcut find(const char *keyName);
169 
176  KDEUI_EXPORT KShortcut hardcodedDefaultShortcut(StandardShortcut id);
177 
181  KDEUI_EXPORT void saveShortcut(StandardShortcut id, const KShortcut &newShortcut);
182 
187  KDEUI_EXPORT const KShortcut &open();
188 
193  KDEUI_EXPORT const KShortcut &openNew();
194 
199  KDEUI_EXPORT const KShortcut &close();
200 
205  KDEUI_EXPORT const KShortcut &save();
206 
211  KDEUI_EXPORT const KShortcut &print();
212 
217  KDEUI_EXPORT const KShortcut &quit();
218 
223  KDEUI_EXPORT const KShortcut &undo();
224 
229  KDEUI_EXPORT const KShortcut &redo();
230 
235  KDEUI_EXPORT const KShortcut &cut();
236 
241  KDEUI_EXPORT const KShortcut &copy();
242 
247  KDEUI_EXPORT const KShortcut &paste();
248 
253  KDEUI_EXPORT const KShortcut &pasteSelection();
254 
259  KDEUI_EXPORT const KShortcut &selectAll();
260 
265  KDEUI_EXPORT const KShortcut &deleteWordBack();
266 
271  KDEUI_EXPORT const KShortcut &deleteWordForward();
272 
277  KDEUI_EXPORT const KShortcut &find();
278 
283  KDEUI_EXPORT const KShortcut &findNext();
284 
289  KDEUI_EXPORT const KShortcut &findPrev();
290 
295  KDEUI_EXPORT const KShortcut &replace();
296 
301  KDEUI_EXPORT const KShortcut &zoomIn();
302 
307  KDEUI_EXPORT const KShortcut &zoomOut();
308 
313  KDEUI_EXPORT const KShortcut &insert();
314 
319  KDEUI_EXPORT const KShortcut &home();
320 
325  KDEUI_EXPORT const KShortcut &begin();
326 
331  KDEUI_EXPORT const KShortcut &end();
332 
337  KDEUI_EXPORT const KShortcut &beginningOfLine();
338 
343  KDEUI_EXPORT const KShortcut &endOfLine();
344 
349  KDEUI_EXPORT const KShortcut &prior();
350 
355  KDEUI_EXPORT const KShortcut &next();
356 
361  KDEUI_EXPORT const KShortcut &gotoLine();
362 
367  KDEUI_EXPORT const KShortcut &addBookmark();
368 
373  KDEUI_EXPORT const KShortcut &tabNext();
374 
379  KDEUI_EXPORT const KShortcut &tabPrev();
380 
385  KDEUI_EXPORT const KShortcut &fullScreen();
386 
391  KDEUI_EXPORT const KShortcut &help();
392 
397  KDEUI_EXPORT const KShortcut &completion();
398 
404  KDEUI_EXPORT const KShortcut &prevCompletion();
405 
411  KDEUI_EXPORT const KShortcut &nextCompletion();
412 
418  KDEUI_EXPORT const KShortcut &substringCompletion();
419 
424  KDEUI_EXPORT const KShortcut &rotateUp();
425 
430  KDEUI_EXPORT const KShortcut &rotateDown();
431 
436  KDEUI_EXPORT const KShortcut &whatsThis();
437 
442  KDEUI_EXPORT const KShortcut &reload();
443 
448  KDEUI_EXPORT const KShortcut &up();
449 
454  KDEUI_EXPORT const KShortcut &back();
455 
460  KDEUI_EXPORT const KShortcut &forward();
461 
466  KDEUI_EXPORT const KShortcut &backwardWord();
467 
472  KDEUI_EXPORT const KShortcut &forwardWord();
473 
478  KDEUI_EXPORT const KShortcut &showMenubar();
479 
480 }
481 
482 #endif // KSTANDARDSHORTCUT_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Mon Jul 15 2013 13:04:43 by doxygen 1.8.3.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

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

kdelibs-4.10.5 API Reference

Skip menu "kdelibs-4.10.5 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal