• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

  • tdecore
tdestdaccel.h
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 TDESTDACCEL_H
21 #define TDESTDACCEL_H
22 
23 #include <tqstring.h>
24 #include <tdeshortcut.h>
25 #include "tdelibs_export.h"
26 
27 class TQKeyEvent;
28 class TDEAccelActions;
29 
41 namespace TDEStdAccel
42 {
43  // Always add new std-accels to the end of this enum, never in the middle!
47  enum StdAccel {
48  AccelNone,
49  // File menu
50  Open, New, Close, Save,
51  // The Print item
52  Print,
53  Quit,
54  // Edit menu
55  Undo, Redo, Cut, Copy, Paste, SelectAll, Deselect, DeleteWordBack,
56  DeleteWordForward, Find, FindNext, FindPrev, Replace,
57  // Navigation
58  Home, End, Prior, Next, GotoLine, AddBookmark, ZoomIn, ZoomOut,
59  Up, Back, Forward, Reload, PopupMenuContext, ShowMenubar,
60  // Help menu
61  Help, WhatsThis,
62  // Text completion
63  TextCompletion, PrevCompletion, NextCompletion, SubstringCompletion,
64  RotateUp, RotateDown,
65 
66  // Tabular navigation
67  TabNext,
68  TabPrev,
69 
70  // Full screen mode
71  FullScreen,
72 
73  // Text Navigation
74  BackwardWord,
75  ForwardWord,
76  BeginningOfLine,
77  EndOfLine,
78 
79  PasteSelection
80 
81 #ifndef KDE_NO_COMPAT
82  , WhatThis = WhatsThis
83 #endif
84  };
85 
90  TDECORE_EXPORT const TDEShortcut& shortcut(StdAccel id);
91 
97  TDECORE_EXPORT TQString name(StdAccel id);
98 
104  TDECORE_EXPORT TQString label(StdAccel id);
105 
111  TDECORE_EXPORT TQString whatsThis(StdAccel id);
112 
121  TDECORE_EXPORT StdAccel findStdAccel( const KKeySequence &keySeq );
122 
129  TDECORE_EXPORT TDEShortcut shortcutDefault(StdAccel id);
136  TDECORE_EXPORT TDEShortcut shortcutDefault3(StdAccel id);
143  TDECORE_EXPORT TDEShortcut shortcutDefault4(StdAccel id);
144 
149  TDECORE_EXPORT const TDEShortcut& open();
150 
155  TDECORE_EXPORT const TDEShortcut& openNew();
156 
161  TDECORE_EXPORT const TDEShortcut& close();
162 
167  TDECORE_EXPORT const TDEShortcut& save();
168 
173  TDECORE_EXPORT const TDEShortcut& print();
174 
179  TDECORE_EXPORT const TDEShortcut& quit();
180 
185  TDECORE_EXPORT const TDEShortcut& undo();
186 
191  TDECORE_EXPORT const TDEShortcut& redo();
192 
197  TDECORE_EXPORT const TDEShortcut& cut();
198 
203  TDECORE_EXPORT const TDEShortcut& copy();
204 
209  TDECORE_EXPORT const TDEShortcut& paste();
210 
216  TDECORE_EXPORT const TDEShortcut& pasteSelection();
217 
222  TDECORE_EXPORT const TDEShortcut& selectAll();
223 
228  TDECORE_EXPORT const TDEShortcut& deleteWordBack();
229 
234  TDECORE_EXPORT const TDEShortcut& deleteWordForward();
235 
240  TDECORE_EXPORT const TDEShortcut& find();
241 
246  TDECORE_EXPORT const TDEShortcut& findNext();
247 
252  TDECORE_EXPORT const TDEShortcut& findPrev();
253 
258  TDECORE_EXPORT const TDEShortcut& replace();
259 
264  TDECORE_EXPORT const TDEShortcut& zoomIn();
265 
270  TDECORE_EXPORT const TDEShortcut& zoomOut();
271 
276  TDECORE_EXPORT const TDEShortcut& insert();
277 
282  TDECORE_EXPORT const TDEShortcut& home();
283 
288  TDECORE_EXPORT const TDEShortcut& end();
289 
295  TDECORE_EXPORT const TDEShortcut& beginningOfLine();
296 
302  TDECORE_EXPORT const TDEShortcut& endOfLine();
303 
308  TDECORE_EXPORT const TDEShortcut& prior();
309 
314  TDECORE_EXPORT const TDEShortcut& next();
315 
320  TDECORE_EXPORT const TDEShortcut& gotoLine();
321 
326  TDECORE_EXPORT const TDEShortcut& addBookmark();
327 
333  TDECORE_EXPORT const TDEShortcut& tabNext();
334 
340  TDECORE_EXPORT const TDEShortcut& tabPrev();
341 
347  TDECORE_EXPORT const TDEShortcut& fullScreen();
348 
353  TDECORE_EXPORT const TDEShortcut& help();
354 
359  TDECORE_EXPORT const TDEShortcut& completion();
360 
366  TDECORE_EXPORT const TDEShortcut& prevCompletion();
367 
373  TDECORE_EXPORT const TDEShortcut& nextCompletion();
374 
380  TDECORE_EXPORT const TDEShortcut& substringCompletion();
381 
386  TDECORE_EXPORT const TDEShortcut& rotateUp();
387 
392  TDECORE_EXPORT const TDEShortcut& rotateDown();
393 
398  TDECORE_EXPORT const TDEShortcut& popupMenuContext();
399 
404  TDECORE_EXPORT const TDEShortcut& whatsThis();
405 
410  TDECORE_EXPORT const TDEShortcut& reload();
411 
416  TDECORE_EXPORT const TDEShortcut& up();
417 
422  TDECORE_EXPORT const TDEShortcut& back();
423 
428  TDECORE_EXPORT const TDEShortcut& forward();
429 
435  TDECORE_EXPORT const TDEShortcut& backwardWord();
436 
442  TDECORE_EXPORT const TDEShortcut& forwardWord();
443 
448  TDECORE_EXPORT const TDEShortcut& showMenubar();
449 
450 #if !defined(KDE_NO_COMPAT) && !defined(__KSTDACCEL_CPP_)
451 
455  TDECORE_EXPORT TQString action(StdAccel id) KDE_DEPRECATED;
460  TDECORE_EXPORT TQString description(StdAccel id) KDE_DEPRECATED;
465  TDECORE_EXPORT int key(StdAccel) KDE_DEPRECATED;
470  TDECORE_EXPORT int defaultKey(StdAccel accel) KDE_DEPRECATED;
471 
487  TDECORE_EXPORT bool isEqual(const TQKeyEvent* pEvent, int keyQt) KDE_DEPRECATED;
488 #endif // !KDE_NO_COMPAT
489 
490 }
491 
492 #endif

tdecore

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

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.8.1.2
This website is maintained by Timothy Pearson.