• Skip to content
  • Skip to link menu
KDE 4.1 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 
00050   enum StandardShortcut {
00051     //C++ requires that the value of an enum symbol be one more than the previous one.
00052     //This means that everything will be well-ordered from here on.
00053     AccelNone=0,
00054     // File menu
00055     Open, New, Close, Save,
00056     // The Print item
00057     Print,
00058     Quit,
00059     // Edit menu
00060     Undo, Redo, Cut, Copy, Paste,     PasteSelection,
00061     SelectAll, Deselect, DeleteWordBack, DeleteWordForward,
00062     Find, FindNext, FindPrev, Replace,
00063     // Navigation
00064     Home, Begin, End, Prior, Next,
00065     Up, Back, Forward, Reload,
00066     // Text Navigation
00067     BeginningOfLine, EndOfLine, GotoLine,
00068     BackwardWord, ForwardWord,
00069     // View parameters
00070     AddBookmark, ZoomIn, ZoomOut, FullScreen,
00071     ShowMenubar,
00072     // Tabular navigation
00073     TabNext, TabPrev,
00074     // Help menu
00075     Help, WhatsThis,
00076     // Text completion
00077     TextCompletion, PrevCompletion, NextCompletion, SubstringCompletion,
00078 
00079     RotateUp, RotateDown,
00080 
00081     // Insert new items here!
00082 
00083     StandardShortcutCount // number of standard shortcuts
00084   };
00085 
00092   KDEUI_EXPORT const KShortcut &shortcut(StandardShortcut id);
00093 
00099   KDEUI_EXPORT QString name(StandardShortcut id);
00100 
00106   KDEUI_EXPORT QString label(StandardShortcut id);
00107 
00113   KDEUI_EXPORT QString whatsThis(StandardShortcut id);
00114 
00123   KDEUI_EXPORT StandardShortcut find(const QKeySequence &keySeq);
00124 
00133   KDEUI_EXPORT StandardShortcut find(const char *keyName);
00134 
00141   KDEUI_EXPORT KShortcut hardcodedDefaultShortcut(StandardShortcut id);
00142 
00146   KDEUI_EXPORT void saveShortcut(StandardShortcut id, const KShortcut &newShortcut);
00147 
00152   KDEUI_EXPORT const KShortcut &open();
00153 
00158   KDEUI_EXPORT const KShortcut &openNew();
00159 
00164   KDEUI_EXPORT const KShortcut &close();
00165 
00170   KDEUI_EXPORT const KShortcut &save();
00171 
00176   KDEUI_EXPORT const KShortcut &print();
00177 
00182   KDEUI_EXPORT const KShortcut &quit();
00183 
00188   KDEUI_EXPORT const KShortcut &undo();
00189 
00194   KDEUI_EXPORT const KShortcut &redo();
00195 
00200   KDEUI_EXPORT const KShortcut &cut();
00201 
00206   KDEUI_EXPORT const KShortcut &copy();
00207 
00212   KDEUI_EXPORT const KShortcut &paste();
00213 
00218   KDEUI_EXPORT const KShortcut &pasteSelection();
00219 
00224   KDEUI_EXPORT const KShortcut &selectAll();
00225 
00230   KDEUI_EXPORT const KShortcut &deleteWordBack();
00231 
00236   KDEUI_EXPORT const KShortcut &deleteWordForward();
00237 
00242   KDEUI_EXPORT const KShortcut &find();
00243 
00248   KDEUI_EXPORT const KShortcut &findNext();
00249 
00254   KDEUI_EXPORT const KShortcut &findPrev();
00255 
00260   KDEUI_EXPORT const KShortcut &replace();
00261 
00266   KDEUI_EXPORT const KShortcut &zoomIn();
00267 
00272   KDEUI_EXPORT const KShortcut &zoomOut();
00273 
00278   KDEUI_EXPORT const KShortcut &insert();
00279 
00284   KDEUI_EXPORT const KShortcut &home();
00285 
00290   KDEUI_EXPORT const KShortcut &begin();
00291 
00296   KDEUI_EXPORT const KShortcut &end();
00297 
00302   KDEUI_EXPORT const KShortcut &beginningOfLine();
00303 
00308   KDEUI_EXPORT const KShortcut &endOfLine();
00309 
00314   KDEUI_EXPORT const KShortcut &prior();
00315 
00320   KDEUI_EXPORT const KShortcut &next();
00321 
00326   KDEUI_EXPORT const KShortcut &gotoLine();
00327 
00332   KDEUI_EXPORT const KShortcut &addBookmark();
00333 
00338   KDEUI_EXPORT const KShortcut &tabNext();
00339 
00344   KDEUI_EXPORT const KShortcut &tabPrev();
00345 
00350   KDEUI_EXPORT const KShortcut &fullScreen();
00351 
00356   KDEUI_EXPORT const KShortcut &help();
00357 
00362   KDEUI_EXPORT const KShortcut &completion();
00363 
00369   KDEUI_EXPORT const KShortcut &prevCompletion();
00370 
00376   KDEUI_EXPORT const KShortcut &nextCompletion();
00377 
00383   KDEUI_EXPORT const KShortcut &substringCompletion();
00384 
00389   KDEUI_EXPORT const KShortcut &rotateUp();
00390 
00395   KDEUI_EXPORT const KShortcut &rotateDown();
00396 
00401   KDEUI_EXPORT const KShortcut &whatsThis();
00402 
00407   KDEUI_EXPORT const KShortcut &reload();
00408 
00413   KDEUI_EXPORT const KShortcut &up();
00414 
00419   KDEUI_EXPORT const KShortcut &back();
00420 
00425   KDEUI_EXPORT const KShortcut &forward();
00426 
00431   KDEUI_EXPORT const KShortcut &backwardWord();
00432 
00437   KDEUI_EXPORT const KShortcut &forwardWord();
00438 
00443   KDEUI_EXPORT const KShortcut &showMenubar();
00444 
00445 }
00446 
00447 #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
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
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