KConfig

kstandardshortcut.h
1 /*
2  This file is part of the KDE libraries
3  SPDX-FileCopyrightText: 1997 Stefan Taferner <[email protected]>
4  SPDX-FileCopyrightText: 2000 Nicolas Hadacek <[email protected]>
5  SPDX-FileCopyrightText: 2001, 2002 Ellis Whitehead <[email protected]>
6 
7  SPDX-License-Identifier: LGPL-2.0-or-later
8 */
9 #ifndef KSTANDARDSHORTCUT_H
10 #define KSTANDARDSHORTCUT_H
11 
12 #include <QKeySequence>
13 #include <QString>
14 
15 #include <kconfiggui_export.h>
16 
17 /**
18  * \namespace KStandardShortcut
19  * Convenient methods for access to the common accelerator keys in
20  * the key configuration. These are the standard keybindings that should
21  * be used in all KDE applications. They will be configurable,
22  * so do not hardcode the default behavior.
23  */
24 namespace KStandardShortcut
25 {
26 // STUFF WILL BREAK IF YOU DON'T READ THIS!!!
27 /*
28  *Always add new std-accels to the end of this enum, never in the middle!
29  *Don't forget to add the corresponding entries in g_infoStandardShortcut[] in kstandardshortcut.cpp, too.
30  *Values of elements here and positions of the corresponding entries in
31  *the big array g_infoStandardShortcut[] ABSOLUTELY MUST BE THE SAME.
32  * !!! !!!! !!!!! !!!!
33  * !!!! !!! !!!! !!!!
34  *
35  * Other Rules:
36  *
37  * - Never change the name of an existing shortcut
38  * - Never translate the name of a shortcut
39  */
40 
41 /**
42  * Defines the identifier of all standard accelerators.
43  */
45  // C++ requires that the value of an enum symbol be one more than the previous one.
46  // This means that everything will be well-ordered from here on.
47  AccelNone = 0,
48  // File menu
49  Open, ///< Open file.
50  New, ///< Create a new document.
51  Close, ///< Close current document.
52  Save, ///< Save current document.
53  // The Print item
54  Print, ///< Print current document.
55  Quit, ///< Quit the program.
56  // Edit menu
57  Undo, ///< Undo last operation.
58  Redo, ///< Redo last operation.
59  Cut, ///< Cut selected area and store it in the clipboard.
60  Copy, ///< Copy selected area into the clipboard.
61  Paste, ///< Paste contents of clipboard at mouse/cursor position.
62  PasteSelection, ///< Paste the selection at mouse/cursor position.
63  SelectAll, ///< Select all.
64  Deselect, ///< Deselect any selected elements.
65  DeleteWordBack, ///< Delete a word back from mouse/cursor position.
66  DeleteWordForward, ///< Delete a word forward from mouse/cursor position.
67  Find, ///< Initiate a 'find' request in the current document.
68  FindNext, ///< Find the next instance of a stored 'find'.
69  FindPrev, ///< Find a previous instance of a stored 'find'.
70  Replace, ///< Find and replace matches.
71  // Navigation
72  Home, ///< Go to home page.
73  Begin, ///< Go to beginning of the document.
74  End, ///< Go to end of the document.
75  Prior, ///< Scroll up one page.
76  Next, ///< Scroll down one page.
77  Up, ///< Up.
78  Back, ///< Back.
79  Forward, ///< Forward.
80  Reload, ///< Reload.
81  // Text Navigation
82  BeginningOfLine, ///< Go to beginning of current line.
83  EndOfLine, ///< Go to end of current line.
84  GotoLine, ///< Go to line.
85  BackwardWord, ///< BackwardWord.
86  ForwardWord, ///< ForwardWord.
87  // View parameters
88  AddBookmark, ///< Add current page to bookmarks.
89  ZoomIn, ///< Zoom in.
90  ZoomOut, ///< Zoom out.
91  FullScreen, ///< Full Screen mode.
92  ShowMenubar, ///< Show Menu Bar.
93  // Tabular navigation
94  TabNext, ///< Next Tab.
95  TabPrev, ///< Previous Tab.
96  // Help menu
97  Help, ///< Help the user in the current situation.
98  WhatsThis, ///< What's This button.
99  // Text completion
100  TextCompletion, ///< Complete text in input widgets.
101  PrevCompletion, ///< Iterate through a list when completion returns multiple items.
102  NextCompletion, ///< Iterate through a list when completion returns multiple items.
103  SubstringCompletion, ///< Find a string within another string or list of strings.
104  RotateUp, ///< Help users iterate through a list of entries.
105  RotateDown, ///< Help users iterate through a list of entries.
106  OpenRecent, ///< Open a recently used document.
107  SaveAs, ///< Save the current document under a different name.
108  Revert, ///< Revert the current document to the last saved version.
109  PrintPreview, ///< Show a print preview of the current document.
110  Mail, ///< Send the current document by mail.
111  Clear, ///< Clear the content of the focus widget.
112  ActualSize, ///< View the document at its actual size.
113  FitToPage, ///< Fit the document view to the size of the current window.
114  FitToWidth, ///< Fit the document view to the width of the current window.
115  FitToHeight, ///< Fit the document view to the height of the current window.
116  Zoom, ///< Select the current zoom level.
117  Goto, ///< Jump to some specific location in the document.
118  GotoPage, ///< Go to a specific page.
119  DocumentBack, ///< Move back (document style menu).
120  DocumentForward, ///< Move forward (document style menu).
121  EditBookmarks, ///< Edit the application bookmarks.
122  Spelling, ///< Pop up the spell checker.
123  ShowToolbar, ///< Show/Hide the toolbar.
124  ShowStatusbar, ///< Show/Hide the statusbar.
125 #if KCONFIGGUI_ENABLE_DEPRECATED_SINCE(5, 39)
126  SaveOptions ///< @deprecated since 5.39
127  KCONFIGGUI_ENUMERATOR_DEPRECATED_VERSION_BELATED(5, 82, 5, 39, "No known users"),
128 #else
129  SaveOptions_DEPRECATED_DO_NOT_USE,
130 #endif
131  KeyBindings, ///< Display the configure key bindings dialog.
132  Preferences, ///< Display the preferences/options dialog.
133  ConfigureToolbars, ///< Display the toolbar configuration dialog.
134  ConfigureNotifications, ///< Display the notifications configuration dialog.
135  TipofDay, ///< Display the "Tip of the Day".
136  ReportBug, ///< Display the Report Bug dialog.
137  SwitchApplicationLanguage, ///< Display the Switch Application Language dialog.
138  AboutApp, ///< Display the application's About dialog.
139  AboutKDE, ///< Display the About KDE dialog.
140  DeleteFile, ///< Permanently delete files or folders. @since 5.25
141  RenameFile, ///< Rename files or folders. @since 5.25
142  MoveToTrash, ///< Move files or folders to the trash. @since 5.25
143  Donate, ///< Open donation page on kde.org. @since 5.26
144  ShowHideHiddenFiles, ///< Toggle showing or hiding hidden files @since 5.70
145  CreateFolder, ///< Create a folder. @since 5.74
146  // Insert new items here!
147 
148  StandardShortcutCount, // number of standard shortcuts
149 };
150 
151 /**
152  * Categories in which the standard shortcuts can be classified
153  * @since 5.74
154  */
155 enum class Category {
156  InvalidCategory = -1,
157  File,
158  Edit,
159  Navigation,
160  View,
161  Settings,
162  Help,
163 };
164 
165 /**
166  * Returns the keybinding for @p accel.
167  * On X11, if QApplication was initialized with GUI disabled, the
168  * default keybinding will always be returned.
169  * @param id the id of the accelerator
170  */
171 KCONFIGGUI_EXPORT const QList<QKeySequence> &shortcut(StandardShortcut id);
172 
173 /**
174  * Returns a unique name for the given accel.
175  * @param id the id of the accelerator
176  * @return the unique name of the accelerator
177  */
178 KCONFIGGUI_EXPORT QString name(StandardShortcut id);
179 
180 /**
181  * Returns a localized label for user-visible display.
182  * @param id the id of the accelerator
183  * @return a localized label for the accelerator
184  */
185 KCONFIGGUI_EXPORT QString label(StandardShortcut id);
186 
187 /**
188  * Returns an extended WhatsThis description for the given accelerator.
189  * @param id the id of the accelerator
190  * @return a localized description of the accelerator
191  */
192 KCONFIGGUI_EXPORT QString whatsThis(StandardShortcut id);
193 
194 /**
195  * Return the StandardShortcut id of the standard accel action which
196  * uses this key sequence, or AccelNone if none of them do.
197  * This is used by class KKeyChooser.
198  * @param keySeq the key sequence to search
199  * @return the id of the standard accelerator, or AccelNone if there
200  * is none
201  */
202 KCONFIGGUI_EXPORT StandardShortcut find(const QKeySequence &keySeq);
203 
204 #if KCONFIGGUI_ENABLE_DEPRECATED_SINCE(5, 71)
205 /**
206  * Return the StandardShortcut id of the standard accel action which
207  * has \a keyName as its name, or AccelNone if none of them do.
208  * This is used by class KKeyChooser.
209  * @param keyName the key sequence to search
210  * @return the id of the standard accelerator, or AccelNone if there
211  * is none
212  * @deprecated since 5.71, use findByName(const QString &name) instead
213  */
214 KCONFIGGUI_EXPORT
215 KCONFIGGUI_DEPRECATED_VERSION(5, 71, "Use findByName(const QString &name) instead")
216 StandardShortcut find(const char *keyName);
217 #endif
218 
219 /**
220  * Return the StandardShortcut id of the standard accelerator action which
221  * has \p name as its name, or AccelNone if none of them do.
222  * @param name the name as returned by name(StandardShortcut id)
223  * @return the id of the standard accelerator with the given name or AccelNone
224  * if there is no such accelerator
225  * @since 5.71
226  */
227 KCONFIGGUI_EXPORT StandardShortcut findByName(const QString &name);
228 
229 /**
230  * Returns the hardcoded default shortcut for @p id.
231  * This does not take into account the user's configuration.
232  * @param id the id of the accelerator
233  * @return the default shortcut of the accelerator
234  */
236 
237 /**
238  * Saves the new shortcut \a cut for standard accel \a id.
239  */
240 KCONFIGGUI_EXPORT void saveShortcut(StandardShortcut id, const QList<QKeySequence> &newShortcut);
241 
242 /**
243  * Returns the appropriate category for the given StandardShortcut \p id.
244  * @since 5.73
245  */
246 KCONFIGGUI_EXPORT Category category(StandardShortcut id);
247 
248 /**
249  * Open file. Default: Ctrl-o
250  * @return the shortcut of the standard accelerator
251  */
252 KCONFIGGUI_EXPORT const QList<QKeySequence> &open();
253 
254 /**
255  * Create a new document (or whatever). Default: Ctrl-n
256  * @return the shortcut of the standard accelerator
257  */
258 KCONFIGGUI_EXPORT const QList<QKeySequence> &openNew();
259 
260 /**
261  * Close current document. Default: Ctrl-w
262  * @return the shortcut of the standard accelerator
263  */
264 KCONFIGGUI_EXPORT const QList<QKeySequence> &close();
265 
266 /**
267  * Save current document. Default: Ctrl-s
268  * @return the shortcut of the standard accelerator
269  */
270 KCONFIGGUI_EXPORT const QList<QKeySequence> &save();
271 
272 /**
273  * Print current document. Default: Ctrl-p
274  * @return the shortcut of the standard accelerator
275  */
276 KCONFIGGUI_EXPORT const QList<QKeySequence> &print();
277 
278 /**
279  * Quit the program. Default: Ctrl-q
280  * @return the shortcut of the standard accelerator
281  */
282 KCONFIGGUI_EXPORT const QList<QKeySequence> &quit();
283 
284 /**
285  * Undo last operation. Default: Ctrl-z
286  * @return the shortcut of the standard accelerator
287  */
288 KCONFIGGUI_EXPORT const QList<QKeySequence> &undo();
289 
290 /**
291  * Redo last operation. Default: Shift-Ctrl-z
292  * @return the shortcut of the standard accelerator
293  */
294 KCONFIGGUI_EXPORT const QList<QKeySequence> &redo();
295 
296 /**
297  * Cut selected area and store it in the clipboard. Default: Ctrl-x
298  * @return the shortcut of the standard accelerator
299  */
300 KCONFIGGUI_EXPORT const QList<QKeySequence> &cut();
301 
302 /**
303  * Copy selected area into the clipboard. Default: Ctrl-c
304  * @return the shortcut of the standard accelerator
305  */
306 KCONFIGGUI_EXPORT const QList<QKeySequence> &copy();
307 
308 /**
309  * Paste contents of clipboard at mouse/cursor position. Default: Ctrl-v
310  * @return the shortcut of the standard accelerator
311  */
312 KCONFIGGUI_EXPORT const QList<QKeySequence> &paste();
313 
314 /**
315  * Paste the selection at mouse/cursor position. Default: Ctrl-Shift-Insert
316  * @return the shortcut of the standard accelerator
317  */
318 KCONFIGGUI_EXPORT const QList<QKeySequence> &pasteSelection();
319 
320 /**
321  * Select all. Default: Ctrl-A
322  * @return the shortcut of the standard accelerator
323  **/
324 KCONFIGGUI_EXPORT const QList<QKeySequence> &selectAll();
325 
326 /**
327  * Delete a word back from mouse/cursor position. Default: Ctrl-Backspace
328  * @return the shortcut of the standard accelerator
329  */
330 KCONFIGGUI_EXPORT const QList<QKeySequence> &deleteWordBack();
331 
332 /**
333  * Delete a word forward from mouse/cursor position. Default: Ctrl-Delete
334  * @return the shortcut of the standard accelerator
335  */
336 KCONFIGGUI_EXPORT const QList<QKeySequence> &deleteWordForward();
337 
338 /**
339  * Initiate a 'find' request in the current document. Default: Ctrl-f
340  * @return the shortcut of the standard accelerator
341  */
342 KCONFIGGUI_EXPORT const QList<QKeySequence> &find();
343 
344 /**
345  * Find the next instance of a stored 'find' Default: F3
346  * @return the shortcut of the standard accelerator
347  */
348 KCONFIGGUI_EXPORT const QList<QKeySequence> &findNext();
349 
350 /**
351  * Find a previous instance of a stored 'find'. Default: Shift-F3
352  * @return the shortcut of the standard accelerator
353  */
354 KCONFIGGUI_EXPORT const QList<QKeySequence> &findPrev();
355 
356 /**
357  * Find and replace matches. Default: Ctrl-r
358  * @return the shortcut of the standard accelerator
359  */
360 KCONFIGGUI_EXPORT const QList<QKeySequence> &replace();
361 
362 /**
363  * Zoom in. Default: Ctrl-Plus
364  * @return the shortcut of the standard accelerator
365  */
366 KCONFIGGUI_EXPORT const QList<QKeySequence> &zoomIn();
367 
368 /**
369  * Zoom out. Default: Ctrl-Minus
370  * @return the shortcut of the standard accelerator
371  */
372 KCONFIGGUI_EXPORT const QList<QKeySequence> &zoomOut();
373 
374 /**
375  * Go to home page. Default: Alt-Home
376  * @return the shortcut of the standard accelerator
377  */
378 KCONFIGGUI_EXPORT const QList<QKeySequence> &home();
379 
380 /**
381  * Go to beginning of the document. Default: Ctrl-Home
382  * @return the shortcut of the standard accelerator
383  */
384 KCONFIGGUI_EXPORT const QList<QKeySequence> &begin();
385 
386 /**
387  * Go to end of the document. Default: Ctrl-End
388  * @return the shortcut of the standard accelerator
389  */
390 KCONFIGGUI_EXPORT const QList<QKeySequence> &end();
391 
392 /**
393  * Go to beginning of current line. Default: Home
394  * @return the shortcut of the standard accelerator
395  */
396 KCONFIGGUI_EXPORT const QList<QKeySequence> &beginningOfLine();
397 
398 /**
399  * Go to end of current line. Default: End
400  * @return the shortcut of the standard accelerator
401  */
402 KCONFIGGUI_EXPORT const QList<QKeySequence> &endOfLine();
403 
404 /**
405  * Scroll up one page. Default: Prior
406  * @return the shortcut of the standard accelerator
407  */
408 KCONFIGGUI_EXPORT const QList<QKeySequence> &prior();
409 
410 /**
411  * Scroll down one page. Default: Next
412  * @return the shortcut of the standard accelerator
413  */
414 KCONFIGGUI_EXPORT const QList<QKeySequence> &next();
415 
416 /**
417  * Go to line. Default: Ctrl+G
418  * @return the shortcut of the standard accelerator
419  */
420 KCONFIGGUI_EXPORT const QList<QKeySequence> &gotoLine();
421 
422 /**
423  * Add current page to bookmarks. Default: Ctrl+B
424  * @return the shortcut of the standard accelerator
425  */
426 KCONFIGGUI_EXPORT const QList<QKeySequence> &addBookmark();
427 
428 /**
429  * Next Tab. Default: Ctrl-<
430  * @return the shortcut of the standard accelerator
431  */
432 KCONFIGGUI_EXPORT const QList<QKeySequence> &tabNext();
433 
434 /**
435  * Previous Tab. Default: Ctrl->
436  * @return the shortcut of the standard accelerator
437  */
438 KCONFIGGUI_EXPORT const QList<QKeySequence> &tabPrev();
439 
440 /**
441  * Full Screen Mode. Default: Ctrl+Shift+F
442  * @return the shortcut of the standard accelerator
443  */
444 KCONFIGGUI_EXPORT const QList<QKeySequence> &fullScreen();
445 
446 /**
447  * Help the user in the current situation. Default: F1
448  * @return the shortcut of the standard accelerator
449  */
450 KCONFIGGUI_EXPORT const QList<QKeySequence> &help();
451 
452 /**
453  * Complete text in input widgets. Default Ctrl+E
454  * @return the shortcut of the standard accelerator
455  **/
456 KCONFIGGUI_EXPORT const QList<QKeySequence> &completion();
457 
458 /**
459  * Iterate through a list when completion returns
460  * multiple items. Default: Ctrl+Up
461  * @return the shortcut of the standard accelerator
462  */
463 KCONFIGGUI_EXPORT const QList<QKeySequence> &prevCompletion();
464 
465 /**
466  * Iterate through a list when completion returns
467  * multiple items. Default: Ctrl+Down
468  * @return the shortcut of the standard accelerator
469  */
470 KCONFIGGUI_EXPORT const QList<QKeySequence> &nextCompletion();
471 
472 /**
473  * Find a string within another string or list of strings.
474  * Default: Ctrl-T
475  * @return the shortcut of the standard accelerator
476  */
477 KCONFIGGUI_EXPORT const QList<QKeySequence> &substringCompletion();
478 
479 /**
480  * Help users iterate through a list of entries. Default: Up
481  * @return the shortcut of the standard accelerator
482  */
483 KCONFIGGUI_EXPORT const QList<QKeySequence> &rotateUp();
484 
485 /**
486  * Help users iterate through a list of entries. Default: Down
487  * @return the shortcut of the standard accelerator
488  */
489 KCONFIGGUI_EXPORT const QList<QKeySequence> &rotateDown();
490 
491 /**
492  * What's This button. Default: Shift+F1
493  * @return the shortcut of the standard accelerator
494  */
495 KCONFIGGUI_EXPORT const QList<QKeySequence> &whatsThis();
496 
497 /**
498  * Reload. Default: F5
499  * @return the shortcut of the standard accelerator
500  */
501 KCONFIGGUI_EXPORT const QList<QKeySequence> &reload();
502 
503 /**
504  * Up. Default: Alt+Up
505  * @return the shortcut of the standard accelerator
506  */
507 KCONFIGGUI_EXPORT const QList<QKeySequence> &up();
508 
509 /**
510  * Back. Default: Alt+Left
511  * @return the shortcut of the standard accelerator
512  */
513 KCONFIGGUI_EXPORT const QList<QKeySequence> &back();
514 
515 /**
516  * Forward. Default: ALT+Right
517  * @return the shortcut of the standard accelerator
518  */
519 KCONFIGGUI_EXPORT const QList<QKeySequence> &forward();
520 
521 /**
522  * BackwardWord. Default: Ctrl+Left
523  * @return the shortcut of the standard accelerator
524  */
525 KCONFIGGUI_EXPORT const QList<QKeySequence> &backwardWord();
526 
527 /**
528  * ForwardWord. Default: Ctrl+Right
529  * @return the shortcut of the standard accelerator
530  */
531 KCONFIGGUI_EXPORT const QList<QKeySequence> &forwardWord();
532 
533 /**
534  * Show Menu Bar. Default: Ctrl-M
535  * @return the shortcut of the standard accelerator
536  */
537 KCONFIGGUI_EXPORT const QList<QKeySequence> &showMenubar();
538 
539 /**
540  * Permanently delete files or folders. Default: Shift+Delete
541  * @return the shortcut of the standard accelerator
542  * @since 5.25
543  */
544 KCONFIGGUI_EXPORT const QList<QKeySequence> &deleteFile();
545 
546 /**
547  * Rename files or folders. Default: F2
548  * @return the shortcut of the standard accelerator
549  * @since 5.25
550  */
551 KCONFIGGUI_EXPORT const QList<QKeySequence> &renameFile();
552 
553 /**
554  * Create a folder. Default: F10
555  * @return the shortcut of the standard accelerator
556  * @since 5.74
557  */
558 KCONFIGGUI_EXPORT const QList<QKeySequence> &createFolder();
559 
560 /**
561  * Moves files or folders to the trash. Default: Delete
562  * @return the shortcut of the standard accelerator
563  * @since 5.25
564  */
565 KCONFIGGUI_EXPORT const QList<QKeySequence> &moveToTrash();
566 
567 /**
568  * Opens the app's settings window. Default: Ctrl+Shift+Comma
569  * @return the shortcut of the standard accelerator
570  * @since 5.64
571  */
572 KCONFIGGUI_EXPORT const QList<QKeySequence> &preferences();
573 
574 /**
575  * Shows or hides hidden files. Defaults: Ctrl+H, Alt+.
576  * @return the shortcut of the standard accelerator
577  * @since 5.70
578  */
579 KCONFIGGUI_EXPORT const QList<QKeySequence> &showHideHiddenFiles();
580 
581 }
582 
583 #endif // KSTANDARDSHORTCUT_H
@ DeleteWordBack
Delete a word back from mouse/cursor position.
StandardShortcut find(const QKeySequence &seq)
Return the StandardShortcut id of the standard accel action which uses this key sequence,...
const QList< QKeySequence > & tabPrev()
Previous Tab.
const QList< QKeySequence > & back()
Back.
const QList< QKeySequence > & selectAll()
Select all.
const QList< QKeySequence > & pasteSelection()
Paste the selection at mouse/cursor position.
@ TabPrev
Previous Tab.
@ End
Go to end of the document.
const QList< QKeySequence > & zoomOut()
Zoom out.
void saveShortcut(StandardShortcut id, const QList< QKeySequence > &newShortcut)
Saves the new shortcut cut for standard accel id.
@ Find
Initiate a 'find' request in the current document.
@ PrevCompletion
Iterate through a list when completion returns multiple items.
const QList< QKeySequence > & nextCompletion()
Iterate through a list when completion returns multiple items.
@ Print
Print current document.
QList< QKeySequence > hardcodedDefaultShortcut(StandardShortcut id)
Returns the hardcoded default shortcut for id.
@ ShowToolbar
Show/Hide the toolbar.
const QList< QKeySequence > & shortcut(StandardShortcut id)
Returns the keybinding for accel.
@ OpenRecent
Open a recently used document.
@ MoveToTrash
Move files or folders to the trash.
const QList< QKeySequence > & renameFile()
Rename files or folders.
const QList< QKeySequence > & gotoLine()
Go to line.
@ Save
Save current document.
@ DocumentBack
Move back (document style menu).
@ Goto
Jump to some specific location in the document.
@ Paste
Paste contents of clipboard at mouse/cursor position.
StandardShortcut findByName(const QString &name)
Return the StandardShortcut id of the standard accelerator action which has name as its name,...
const QList< QKeySequence > & reload()
Reload.
@ Copy
Copy selected area into the clipboard.
@ DocumentForward
Move forward (document style menu).
@ SaveAs
Save the current document under a different name.
@ AddBookmark
Add current page to bookmarks.
@ PasteSelection
Paste the selection at mouse/cursor position.
@ EndOfLine
Go to end of current line.
@ Preferences
Display the preferences/options dialog.
@ DeleteWordForward
Delete a word forward from mouse/cursor position.
const QList< QKeySequence > & undo()
Undo last operation.
@ Replace
Find and replace matches.
const QList< QKeySequence > & close()
Close current document.
@ ShowHideHiddenFiles
Toggle showing or hiding hidden files.
const QList< QKeySequence > & begin()
Go to beginning of the document.
const QList< QKeySequence > & showMenubar()
Show Menu Bar.
const QList< QKeySequence > & forwardWord()
ForwardWord.
@ SelectAll
Select all.
const QList< QKeySequence > & addBookmark()
Add current page to bookmarks.
@ FitToWidth
Fit the document view to the width of the current window.
Category
Categories in which the standard shortcuts can be classified.
const QList< QKeySequence > & findNext()
Find the next instance of a stored 'find' Default: F3.
@ Next
Scroll down one page.
const QList< QKeySequence > & substringCompletion()
Find a string within another string or list of strings.
@ ActualSize
View the document at its actual size.
@ NextCompletion
Iterate through a list when completion returns multiple items.
@ Undo
Undo last operation.
const QList< QKeySequence > & help()
Help the user in the current situation.
@ SwitchApplicationLanguage
Display the Switch Application Language dialog.
const QList< QKeySequence > & openNew()
Create a new document (or whatever).
@ TipofDay
Display the "Tip of the Day".
const QList< QKeySequence > & tabNext()
Next Tab.
@ TextCompletion
Complete text in input widgets.
@ AboutKDE
Display the About KDE dialog.
const QList< QKeySequence > & showHideHiddenFiles()
Shows or hides hidden files.
@ PrintPreview
Show a print preview of the current document.
const QList< QKeySequence > & cut()
Cut selected area and store it in the clipboard.
@ RotateUp
Help users iterate through a list of entries.
@ ShowStatusbar
Show/Hide the statusbar.
StandardShortcut
Defines the identifier of all standard accelerators.
@ AboutApp
Display the application's About dialog.
@ FindPrev
Find a previous instance of a stored 'find'.
const QList< QKeySequence > & prior()
Scroll up one page.
@ Prior
Scroll up one page.
const QList< QKeySequence > & deleteFile()
Permanently delete files or folders.
@ EditBookmarks
Edit the application bookmarks.
@ Begin
Go to beginning of the document.
@ BeginningOfLine
Go to beginning of current line.
const QList< QKeySequence > & replace()
Find and replace matches.
@ New
Create a new document.
QString whatsThis(StandardShortcut)
What's This button.
@ ConfigureToolbars
Display the toolbar configuration dialog.
@ Cut
Cut selected area and store it in the clipboard.
@ FullScreen
Full Screen mode.
const QList< QKeySequence > & deleteWordBack()
Delete a word back from mouse/cursor position.
@ ShowMenubar
Show Menu Bar.
@ GotoPage
Go to a specific page.
QString label(StandardShortcut id)
Returns a localized label for user-visible display.
@ Clear
Clear the content of the focus widget.
@ ConfigureNotifications
Display the notifications configuration dialog.
@ Home
Go to home page.
const QList< QKeySequence > & prevCompletion()
Iterate through a list when completion returns multiple items.
@ Donate
Open donation page on kde.org.
const QList< QKeySequence > & quit()
Quit the program.
const QList< QKeySequence > & home()
Go to home page.
@ SubstringCompletion
Find a string within another string or list of strings.
@ KeyBindings
Display the configure key bindings dialog.
@ FitToPage
Fit the document view to the size of the current window.
QString name(StandardShortcut id)
Returns a unique name for the given accel.
const QList< QKeySequence > & save()
Save current document.
@ FitToHeight
Fit the document view to the height of the current window.
const QList< QKeySequence > & deleteWordForward()
Delete a word forward from mouse/cursor position.
const QList< QKeySequence > & print()
Print current document.
const QList< QKeySequence > & next()
Scroll down one page.
const QList< QKeySequence > & up()
Up.
@ GotoLine
Go to line.
const QList< QKeySequence > & backwardWord()
BackwardWord.
const QList< QKeySequence > & rotateUp()
Help users iterate through a list of entries.
const QList< QKeySequence > & paste()
Paste contents of clipboard at mouse/cursor position.
@ RotateDown
Help users iterate through a list of entries.
const QList< QKeySequence > & forward()
Forward.
const QList< QKeySequence > & rotateDown()
Help users iterate through a list of entries.
const QList< QKeySequence > & fullScreen()
Full Screen Mode.
@ Zoom
Select the current zoom level.
@ Quit
Quit the program.
@ Help
Help the user in the current situation.
@ Deselect
Deselect any selected elements.
@ ForwardWord
ForwardWord.
@ Close
Close current document.
@ ReportBug
Display the Report Bug dialog.
const QList< QKeySequence > & moveToTrash()
Moves files or folders to the trash.
@ RenameFile
Rename files or folders.
const QList< QKeySequence > & createFolder()
Create a folder.
@ BackwardWord
BackwardWord.
const QList< QKeySequence > & zoomIn()
Zoom in.
@ Redo
Redo last operation.
Category category(StandardShortcut id)
Returns the appropriate category for the given StandardShortcut id.
@ Spelling
Pop up the spell checker.
const QList< QKeySequence > & open()
Open file.
const QList< QKeySequence > & findPrev()
Find a previous instance of a stored 'find'.
const QList< QKeySequence > & completion()
Complete text in input widgets.
@ Revert
Revert the current document to the last saved version.
@ WhatsThis
What's This button.
const QList< QKeySequence > & end()
Go to end of the document.
@ CreateFolder
Create a folder.
const QList< QKeySequence > & copy()
Copy selected area into the clipboard.
const QList< QKeySequence > & redo()
Redo last operation.
@ Mail
Send the current document by mail.
const QList< QKeySequence > & preferences()
Opens the app's settings window.
const QList< QKeySequence > & beginningOfLine()
Go to beginning of current line.
const QList< QKeySequence > & endOfLine()
Go to end of current line.
@ FindNext
Find the next instance of a stored 'find'.
@ DeleteFile
Permanently delete files or folders.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Dec 11 2023 04:08:32 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.