KConfig
kstandardshortcut.cpp
69 {AccelNone, nullptr, {nullptr, nullptr}, 0, 0, QList<QKeySequence>(), false, Category::InvalidCategory},
70 {Open, "Open", QT_TRANSLATE_NOOP3("KStandardShortcut", "Open", "@action"), CTRL(O), 0, QList<QKeySequence>(), false, Category::File},
71 {New, "New", QT_TRANSLATE_NOOP3("KStandardShortcut", "New", "@action"), CTRL(N), 0, QList<QKeySequence>(), false, Category::File},
72 {Close, "Close", QT_TRANSLATE_NOOP3("KStandardShortcut", "Close", "@action"), CTRL(W), CTRL(Escape), QList<QKeySequence>(), false, Category::File},
73 {Save, "Save", QT_TRANSLATE_NOOP3("KStandardShortcut", "Save", "@action"), CTRL(S), 0, QList<QKeySequence>(), false, Category::File},
74 {Print, "Print", QT_TRANSLATE_NOOP3("KStandardShortcut", "Print", "@action"), CTRL(P), 0, QList<QKeySequence>(), false, Category::File},
75 {Quit, "Quit", QT_TRANSLATE_NOOP3("KStandardShortcut", "Quit", "@action"), CTRL(Q), 0, QList<QKeySequence>(), false, Category::Navigation},
78 {Undo, "Undo", QT_TRANSLATE_NOOP3("KStandardShortcut", "Undo", "@action"), CTRL(Z), 0, QList<QKeySequence>(), false, Category::Edit},
79 {Redo, "Redo", QT_TRANSLATE_NOOP3("KStandardShortcut", "Redo", "@action"), CTRLSHIFT(Z), 0, QList<QKeySequence>(), false, Category::Edit},
82 {Cut, "Cut", QT_TRANSLATE_NOOP3("KStandardShortcut", "Cut", "@action"), CTRL(X), SHIFT(Delete), QList<QKeySequence>(), false, Category::Edit},
83 {Copy, "Copy", QT_TRANSLATE_NOOP3("KStandardShortcut", "Copy", "@action"), CTRL(C), CTRL(Insert), QList<QKeySequence>(), false, Category::Edit},
84 {Paste, "Paste", QT_TRANSLATE_NOOP3("KStandardShortcut", "Paste", "@action"), CTRL(V), SHIFT(Insert), QList<QKeySequence>(), false, Category::Edit},
94 {SelectAll, "SelectAll", QT_TRANSLATE_NOOP3("KStandardShortcut", "Select All", "@action"), CTRL(A), 0, QList<QKeySequence>(), false, Category::Edit},
95 {Deselect, "Deselect", QT_TRANSLATE_NOOP3("KStandardShortcut", "Deselect", "@action"), CTRLSHIFT(A), 0, QList<QKeySequence>(), false, Category::Edit},
113 {Find, "Find", QT_TRANSLATE_NOOP3("KStandardShortcut", "Find", "@action"), CTRL(F), 0, QList<QKeySequence>(), false, Category::Edit},
114 {FindNext, "FindNext", QT_TRANSLATE_NOOP3("KStandardShortcut", "Find Next", "@action"), Qt::Key_F3, 0, QList<QKeySequence>(), false, Category::Edit},
115 {FindPrev, "FindPrev", QT_TRANSLATE_NOOP3("KStandardShortcut", "Find Prev", "@action"), SHIFT(F3), 0, QList<QKeySequence>(), false, Category::Edit},
116 {Replace, "Replace", QT_TRANSLATE_NOOP3("KStandardShortcut", "Replace", "@action"), CTRL(R), 0, QList<QKeySequence>(), false, Category::Edit},
135 {End, "End", QT_TRANSLATE_NOOP3("KStandardShortcut", "End", "@action End of document"), CTRL(End), 0, QList<QKeySequence>(), false, Category::Navigation},
136 {Prior, "Prior", QT_TRANSLATE_NOOP3("KStandardShortcut", "Prior", "@action"), Qt::Key_PageUp, 0, QList<QKeySequence>(), false, Category::Navigation},
146 {Up, "Up", QT_TRANSLATE_NOOP3("KStandardShortcut", "Up", "@action"), ALT(Up), 0, QList<QKeySequence>(), false, Category::Navigation},
147 {Back, "Back", QT_TRANSLATE_NOOP3("KStandardShortcut", "Back", "@action"), ALT(Left), Qt::Key_Back, QList<QKeySequence>(), false, Category::Navigation},
181 {GotoLine, "GotoLine", QT_TRANSLATE_NOOP3("KStandardShortcut", "Go to Line", "@action"), CTRL(G), 0, QList<QKeySequence>(), false, Category::Navigation},
207 {ZoomIn, "ZoomIn", QT_TRANSLATE_NOOP3("KStandardShortcut", "Zoom In", "@action"), CTRL(Plus), CTRL(Equal), QList<QKeySequence>(), false, Category::View},
208 {ZoomOut, "ZoomOut", QT_TRANSLATE_NOOP3("KStandardShortcut", "Zoom Out", "@action"), CTRL(Minus), 0, QList<QKeySequence>(), false, Category::View},
218 {ShowMenubar, "ShowMenubar", QT_TRANSLATE_NOOP3("KStandardShortcut", "Show Menu Bar", "@action"), CTRL(M), 0, QList<QKeySequence>(), false, Category::View},
237 {Help, "Help", QT_TRANSLATE_NOOP3("KStandardShortcut", "Help", "@action"), Qt::Key_F1, 0, QList<QKeySequence>(), false, Category::Help},
238 {WhatsThis, "WhatsThis", QT_TRANSLATE_NOOP3("KStandardShortcut", "What's This", "@action"), SHIFT(F1), 0, QList<QKeySequence>(), false, Category::Help},
291 {OpenRecent, "OpenRecent", QT_TRANSLATE_NOOP3("KStandardShortcut", "Open Recent", "@action"), 0, 0, QList<QKeySequence>(), false, Category::File},
292 {SaveAs, "SaveAs", QT_TRANSLATE_NOOP3("KStandardShortcut", "Save As", "@action"), CTRLSHIFT(S), 0, QList<QKeySequence>(), false, Category::File},
293 {Revert, "Revert", QT_TRANSLATE_NOOP3("KStandardShortcut", "Revert", "@action"), 0, 0, QList<QKeySequence>(), false, Category::Edit},
294 {PrintPreview, "PrintPreview", QT_TRANSLATE_NOOP3("KStandardShortcut", "Print Preview", "@action"), 0, 0, QList<QKeySequence>(), false, Category::File},
295 {Mail, "Mail", QT_TRANSLATE_NOOP3("KStandardShortcut", "Mail", "@action"), 0, 0, QList<QKeySequence>(), false, Category::Help},
296 {Clear, "Clear", QT_TRANSLATE_NOOP3("KStandardShortcut", "Clear", "@action"), 0, 0, QList<QKeySequence>(), false, Category::Edit},
305 {FitToPage, "FitToPage", QT_TRANSLATE_NOOP3("KStandardShortcut", "Fit To Page", "@action"), 0, 0, QList<QKeySequence>(), false, Category::View},
306 {FitToWidth, "FitToWidth", QT_TRANSLATE_NOOP3("KStandardShortcut", "Fit To Width", "@action"), 0, 0, QList<QKeySequence>(), false, Category::View},
307 {FitToHeight, "FitToHeight", QT_TRANSLATE_NOOP3("KStandardShortcut", "Fit To Height", "@action"), 0, 0, QList<QKeySequence>(), false, Category::View},
308 {Zoom, "Zoom", QT_TRANSLATE_NOOP3("KStandardShortcut", "Zoom", "@action"), 0, 0, QList<QKeySequence>(), false, Category::View},
309 {Goto, "Goto", QT_TRANSLATE_NOOP3("KStandardShortcut", "Goto", "@action"), 0, 0, QList<QKeySequence>(), false, Category::Navigation},
310 {GotoPage, "GotoPage", QT_TRANSLATE_NOOP3("KStandardShortcut", "Goto Page", "@action"), 0, 0, QList<QKeySequence>(), false, Category::Navigation},
335 {Spelling, "Spelling", QT_TRANSLATE_NOOP3("KStandardShortcut", "Spelling", "@action"), 0, 0, QList<QKeySequence>(), false, Category::Edit},
336 {ShowToolbar, "ShowToolbar", QT_TRANSLATE_NOOP3("KStandardShortcut", "Show Toolbar", "@action"), 0, 0, QList<QKeySequence>(), false, Category::View},
337 {ShowStatusbar, "ShowStatusbar", QT_TRANSLATE_NOOP3("KStandardShortcut", "Show Statusbar", "@action"), 0, 0, QList<QKeySequence>(), false, Category::View},
370 {ReportBug, "ReportBug", QT_TRANSLATE_NOOP3("KStandardShortcut", "Report Bug", "@action"), 0, 0, QList<QKeySequence>(), false, Category::Help},
379 {AboutApp, "AboutApp", QT_TRANSLATE_NOOP3("KStandardShortcut", "About Application", "@action"), 0, 0, QList<QKeySequence>(), false, Category::Help},
380 {AboutKDE, "AboutKDE", QT_TRANSLATE_NOOP3("KStandardShortcut", "About KDE", "@action"), 0, 0, QList<QKeySequence>(), false, Category::Help},
383 {DeleteFile, "DeleteFile", QT_TRANSLATE_NOOP3("KStandardShortcut", "Delete", "@action"), SHIFT(Delete), 0, QList<QKeySequence>(), false, Category::File},
384 {RenameFile, "RenameFile", QT_TRANSLATE_NOOP3("KStandardShortcut", "Rename", "@action"), Qt::Key_F2, 0, QList<QKeySequence>(), false, Category::File},
393 {Donate, "Donate", QT_TRANSLATE_NOOP3("KStandardShortcut", "Donate", "@action"), 0, 0, QList<QKeySequence>(), false, Category::Help},
412 QT_TRANSLATE_NOOP3("KStandardShortcut", "Open Main Menu", "@action referring to the menu bar or a hamburger menu"),
428 {AccelNone, nullptr, {nullptr, nullptr}, 0, 0, QList<QKeySequence>(), false, Category::InvalidCategory}};
435 if (id >= static_cast<int>(sizeof(g_infoStandardShortcut) / sizeof(KStandardShortcutInfo)) || id < 0) {
520 cg.writeEntry(info->name, QKeySequence::listToString(info->cut), KConfig::Global | KConfig::Persistent | KConfig::Notify);
532 return QCoreApplication::translate("KStandardShortcut", info->description.text, info->description.context);
@ Notify
Notify remote KConfigWatchers of changes (requires DBus support) Implied persistent.
Definition kconfigbase.h:51
@ Global
Save the entry to the global KDE config file instead of the application specific config file.
Definition kconfigbase.h:42
T readEntry(const QString &key, const T &aDefault) const
Reads the value of an entry specified by pKey in the current group.
Definition kconfiggroup.h:223
bool hasKey(const QString &key) const
Checks whether the key has an entry in this group.
Definition kconfiggroup.cpp:1131
void writeEntry(const QString &key, const QVariant &value, WriteConfigFlags pFlags=Normal)
Writes a value to the configuration object.
Definition kconfiggroup.cpp:1014
void deleteEntry(const QString &pKey, WriteConfigFlags pFlags=Normal)
Deletes the entry specified by pKey in the current group.
Definition kconfiggroup.cpp:1087
Convenient methods for access to the common accelerator keys in the key configuration.
Definition kstandardshortcut.cpp:23
const QList< QKeySequence > & beginningOfLine()
Go to beginning of current line.
Definition kstandardshortcut.cpp:693
const QList< QKeySequence > & nextCompletion()
Iterate through a list when completion returns multiple items.
Definition kstandardshortcut.cpp:757
const QList< QKeySequence > & begin()
Go to beginning of the document.
Definition kstandardshortcut.cpp:685
const QList< QKeySequence > & rotateDown()
Help users iterate through a list of entries.
Definition kstandardshortcut.cpp:765
const QList< QKeySequence > & substringCompletion()
Find a string within another string or list of strings.
Definition kstandardshortcut.cpp:769
const QList< QKeySequence > & cut()
Cut selected area and store it in the clipboard.
Definition kstandardshortcut.cpp:633
static KStandardShortcutInfo * guardedStandardShortcutInfo(StandardShortcut id)
Search for the KStandardShortcutInfo object associated with the given id.
Definition kstandardshortcut.cpp:433
Category category(StandardShortcut id)
Returns the appropriate category for the given StandardShortcut id.
Definition kstandardshortcut.cpp:604
const QList< QKeySequence > & addBookmark()
Add current page to bookmarks.
Definition kstandardshortcut.cpp:721
const QList< QKeySequence > & deleteWordBack()
Delete a word back from mouse/cursor position.
Definition kstandardshortcut.cpp:649
const QList< QKeySequence > & openMainMenu()
Open a main menu like the menu bar or a hamburger menu.
Definition kstandardshortcut.cpp:825
const QList< QKeySequence > & find()
Initiate a 'find' request in the current document.
Definition kstandardshortcut.cpp:665
const QList< QKeySequence > & paste()
Paste contents of clipboard at mouse/cursor position.
Definition kstandardshortcut.cpp:641
QString label(StandardShortcut id)
Returns a localized label for user-visible display.
Definition kstandardshortcut.cpp:529
QString name(StandardShortcut id)
Returns a unique name for the given accel.
Definition kstandardshortcut.cpp:524
const QList< QKeySequence > & copy()
Copy selected area into the clipboard.
Definition kstandardshortcut.cpp:637
const QList< QKeySequence > & renameFile()
Rename files or folders.
Definition kstandardshortcut.cpp:805
const QList< QKeySequence > & endOfLine()
Go to end of current line.
Definition kstandardshortcut.cpp:697
const QList< QKeySequence > & completion()
Complete text in input widgets.
Definition kstandardshortcut.cpp:749
QString whatsThis(StandardShortcut)
Returns an extended WhatsThis description for the given accelerator.
Definition kstandardshortcut.cpp:536
const QList< QKeySequence > & findPrev()
Find a previous instance of a stored 'find'.
Definition kstandardshortcut.cpp:673
const QList< QKeySequence > & moveToTrash()
Moves files or folders to the trash.
Definition kstandardshortcut.cpp:813
const QList< QKeySequence > & preferences()
Opens the app's settings window.
Definition kstandardshortcut.cpp:817
const QList< QKeySequence > & deleteFile()
Permanently delete files or folders.
Definition kstandardshortcut.cpp:801
QList< QKeySequence > hardcodedDefaultShortcut(StandardShortcut id)
Returns the hardcoded default shortcut for id.
Definition kstandardshortcut.cpp:584
const QList< QKeySequence > & showHideHiddenFiles()
Shows or hides hidden files.
Definition kstandardshortcut.cpp:821
StandardShortcut findByName(const QString &name)
Return the StandardShortcut id of the standard accelerator action which has name as its name,...
Definition kstandardshortcut.cpp:574
const QList< QKeySequence > & prevCompletion()
Iterate through a list when completion returns multiple items.
Definition kstandardshortcut.cpp:753
const QList< QKeySequence > & shortcut(StandardShortcut id)
Returns the keybinding for accel.
Definition kstandardshortcut.cpp:545
void saveShortcut(StandardShortcut id, const QList< QKeySequence > &newShortcut)
Saves the new shortcut cut for standard accel id.
Definition kstandardshortcut.cpp:493
const QList< QKeySequence > & deleteWordForward()
Delete a word forward from mouse/cursor position.
Definition kstandardshortcut.cpp:653
const QList< QKeySequence > & openNew()
Create a new document (or whatever).
Definition kstandardshortcut.cpp:613
const QList< QKeySequence > & findNext()
Find the next instance of a stored 'find' Default: F3.
Definition kstandardshortcut.cpp:669
static KStandardShortcutInfo g_infoStandardShortcut[]
Array of predefined KStandardShortcutInfo objects, which cover all the "standard" accelerators.
Definition kstandardshortcut.cpp:67
const QList< QKeySequence > & replace()
Find and replace matches.
Definition kstandardshortcut.cpp:677
void initialize(StandardShortcut id)
Initialize the accelerator id by checking if it is overridden in the configuration file (and if it is...
Definition kstandardshortcut.cpp:465
const QList< QKeySequence > & openContextMenu()
Open a context menu for the object with keyboard focus.
Definition kstandardshortcut.cpp:829
const QList< QKeySequence > & pasteSelection()
Paste the selection at mouse/cursor position.
Definition kstandardshortcut.cpp:645
Category
Categories in which the standard shortcuts can be classified.
Definition kstandardshortcut.h:150
const QList< QKeySequence > & help()
Help the user in the current situation.
Definition kstandardshortcut.cpp:745
const QList< QKeySequence > & rotateUp()
Help users iterate through a list of entries.
Definition kstandardshortcut.cpp:761
StandardShortcut
Defines the identifier of all standard accelerators.
Definition kstandardshortcut.h:44
@ OpenContextMenu
Open a context menu for the object with keyboard focus. Necessary for accessibility.
Definition kstandardshortcut.h:140
@ OpenMainMenu
Open a main menu like the menu bar or a hamburger menu. Necessary for accessibility.
Definition kstandardshortcut.h:139
@ FitToWidth
Fit the document view to the width of the current window.
Definition kstandardshortcut.h:114
@ FitToPage
Fit the document view to the size of the current window.
Definition kstandardshortcut.h:113
@ FitToHeight
Fit the document view to the height of the current window.
Definition kstandardshortcut.h:115
@ NextCompletion
Iterate through a list when completion returns multiple items.
Definition kstandardshortcut.h:102
@ DeleteWordForward
Delete a word forward from mouse/cursor position.
Definition kstandardshortcut.h:66
@ SwitchApplicationLanguage
Display the Switch Application Language dialog.
Definition kstandardshortcut.h:130
@ PrevCompletion
Iterate through a list when completion returns multiple items.
Definition kstandardshortcut.h:101
@ ConfigureNotifications
Display the notifications configuration dialog.
Definition kstandardshortcut.h:128
@ SubstringCompletion
Find a string within another string or list of strings.
Definition kstandardshortcut.h:103
QString translate(const char *context, const char *sourceText, const char *disambiguation, int n)
bool isEmpty() const const
QList< QKeySequence > listFromString(const QString &str, SequenceFormat format)
QString listToString(const QList< QKeySequence > &list, SequenceFormat format)
const_reference at(qsizetype i) const const
bool isEmpty() const const
void removeAt(qsizetype i)
qsizetype size() const const
QString fromLatin1(QByteArrayView str)
qsizetype indexOf(const QRegularExpression &re, qsizetype from) const const
Key_F3
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.