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

KDEUI

kstandardshortcut.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 KSTANDARDSHORTCUT_H
00021 #define KSTANDARDSHORTCUT_H
00022 
00023 #include <QtCore/QString>
00024 
00025 #include "kshortcut.h"
00026 
00027 
00035 namespace KStandardShortcut
00036 { // STUFF WILL BREAK IF YOU DON'T READ THIS!!!
00037   /*
00038    *Always add new std-accels to the end of this enum, never in the middle!
00039    *Don't forget to add the corresponding entries in g_infoStandardShortcut[] in kstandardshortcut.cpp, too.
00040    *Values of elements here and positions of the corresponding entries in
00041    *the big array g_infoStandardShortcut[] ABSOLUTELY MUST BE THE SAME.
00042    * !!!    !!!!   !!!!!    !!!!
00043    *    !!!!    !!!     !!!!    !!!!
00044    * Remember to also update kdoctools/genshortcutents.cpp.
00045    *
00046    * Other Rules:
00047    *
00048    * - Never change the name of an existing shortcut
00049    * - Never translate the name of an shortcut
00050    */
00051 
00055   enum StandardShortcut {
00056     //C++ requires that the value of an enum symbol be one more than the previous one.
00057     //This means that everything will be well-ordered from here on.
00058     AccelNone=0,
00059     // File menu
00060     Open, New, Close, Save,
00061     // The Print item
00062     Print,
00063     Quit,
00064     // Edit menu
00065     Undo, Redo, Cut, Copy, Paste,     PasteSelection,
00066     SelectAll, Deselect, DeleteWordBack, DeleteWordForward,
00067     Find, FindNext, FindPrev, Replace,
00068     // Navigation
00069     Home, Begin, End, Prior, Next,
00070     Up, Back, Forward, Reload,
00071     // Text Navigation
00072     BeginningOfLine, EndOfLine, GotoLine,
00073     BackwardWord, ForwardWord,
00074     // View parameters
00075     AddBookmark, ZoomIn, ZoomOut, FullScreen,
00076     ShowMenubar,
00077     // Tabular navigation
00078     TabNext, TabPrev,
00079     // Help menu
00080     Help, WhatsThis,
00081     // Text completion
00082     TextCompletion, PrevCompletion, NextCompletion, SubstringCompletion,
00083 
00084     RotateUp, RotateDown,
00085 
00086     OpenRecent,
00087     SaveAs,
00088     Revert,
00089     PrintPreview,
00090     Mail,
00091     Clear,
00092     ActualSize,
00093     FitToPage,
00094     FitToWidth,
00095     FitToHeight,
00096     Zoom,
00097     Goto,
00098     GotoPage,
00099     DocumentBack,
00100     DocumentForward,
00101     EditBookmarks,
00102     Spelling,
00103     ShowToolbar,
00104     ShowStatusbar,
00105     SaveOptions,
00106     KeyBindings,
00107     Preferences,
00108     ConfigureToolbars,
00109     ConfigureNotifications,
00110     TipofDay,
00111     ReportBug,
00112     SwitchApplicationLanguage,
00113     AboutApp,
00114     AboutKDE,
00115 
00116     // Insert new items here!
00117 
00118     StandardShortcutCount // number of standard shortcuts
00119   };
00120 
00127   KDEUI_EXPORT const KShortcut &shortcut(StandardShortcut id);
00128 
00134   KDEUI_EXPORT QString name(StandardShortcut id);
00135 
00141   KDEUI_EXPORT QString label(StandardShortcut id);
00142 
00148   KDEUI_EXPORT QString whatsThis(StandardShortcut id);
00149 
00158   KDEUI_EXPORT StandardShortcut find(const QKeySequence &keySeq);
00159 
00168   KDEUI_EXPORT StandardShortcut find(const char *keyName);
00169 
00176   KDEUI_EXPORT KShortcut hardcodedDefaultShortcut(StandardShortcut id);
00177 
00181   KDEUI_EXPORT void saveShortcut(StandardShortcut id, const KShortcut &newShortcut);
00182 
00187   KDEUI_EXPORT const KShortcut &open();
00188 
00193   KDEUI_EXPORT const KShortcut &openNew();
00194 
00199   KDEUI_EXPORT const KShortcut &close();
00200 
00205   KDEUI_EXPORT const KShortcut &save();
00206 
00211   KDEUI_EXPORT const KShortcut &print();
00212 
00217   KDEUI_EXPORT const KShortcut &quit();
00218 
00223   KDEUI_EXPORT const KShortcut &undo();
00224 
00229   KDEUI_EXPORT const KShortcut &redo();
00230 
00235   KDEUI_EXPORT const KShortcut &cut();
00236 
00241   KDEUI_EXPORT const KShortcut &copy();
00242 
00247   KDEUI_EXPORT const KShortcut &paste();
00248 
00253   KDEUI_EXPORT const KShortcut &pasteSelection();
00254 
00259   KDEUI_EXPORT const KShortcut &selectAll();
00260 
00265   KDEUI_EXPORT const KShortcut &deleteWordBack();
00266 
00271   KDEUI_EXPORT const KShortcut &deleteWordForward();
00272 
00277   KDEUI_EXPORT const KShortcut &find();
00278 
00283   KDEUI_EXPORT const KShortcut &findNext();
00284 
00289   KDEUI_EXPORT const KShortcut &findPrev();
00290 
00295   KDEUI_EXPORT const KShortcut &replace();
00296 
00301   KDEUI_EXPORT const KShortcut &zoomIn();
00302 
00307   KDEUI_EXPORT const KShortcut &zoomOut();
00308 
00313   KDEUI_EXPORT const KShortcut &insert();
00314 
00319   KDEUI_EXPORT const KShortcut &home();
00320 
00325   KDEUI_EXPORT const KShortcut &begin();
00326 
00331   KDEUI_EXPORT const KShortcut &end();
00332 
00337   KDEUI_EXPORT const KShortcut &beginningOfLine();
00338 
00343   KDEUI_EXPORT const KShortcut &endOfLine();
00344 
00349   KDEUI_EXPORT const KShortcut &prior();
00350 
00355   KDEUI_EXPORT const KShortcut &next();
00356 
00361   KDEUI_EXPORT const KShortcut &gotoLine();
00362 
00367   KDEUI_EXPORT const KShortcut &addBookmark();
00368 
00373   KDEUI_EXPORT const KShortcut &tabNext();
00374 
00379   KDEUI_EXPORT const KShortcut &tabPrev();
00380 
00385   KDEUI_EXPORT const KShortcut &fullScreen();
00386 
00391   KDEUI_EXPORT const KShortcut &help();
00392 
00397   KDEUI_EXPORT const KShortcut &completion();
00398 
00404   KDEUI_EXPORT const KShortcut &prevCompletion();
00405 
00411   KDEUI_EXPORT const KShortcut &nextCompletion();
00412 
00418   KDEUI_EXPORT const KShortcut &substringCompletion();
00419 
00424   KDEUI_EXPORT const KShortcut &rotateUp();
00425 
00430   KDEUI_EXPORT const KShortcut &rotateDown();
00431 
00436   KDEUI_EXPORT const KShortcut &whatsThis();
00437 
00442   KDEUI_EXPORT const KShortcut &reload();
00443 
00448   KDEUI_EXPORT const KShortcut &up();
00449 
00454   KDEUI_EXPORT const KShortcut &back();
00455 
00460   KDEUI_EXPORT const KShortcut &forward();
00461 
00466   KDEUI_EXPORT const KShortcut &backwardWord();
00467 
00472   KDEUI_EXPORT const KShortcut &forwardWord();
00473 
00478   KDEUI_EXPORT const KShortcut &showMenubar();
00479 
00480 }
00481 
00482 #endif // KSTANDARDSHORTCUT_H

KDEUI

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
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