8#ifndef KGUISTANDARDACTION_H
9#define KGUISTANDARDACTION_H
15#include <KStandardShortcut>
16#include <kconfiggui_export.h>
188template<
class Receiver,
class Func>
216#define KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(name, enumValue) \
217 template<class Receiver, class Func> \
218 inline QAction *name(const Receiver *recvr, Func slot, QObject *parent) \
219 { return create(enumValue, recvr, slot, parent); }
225KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(openNew,
New)
230KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(open,
Open)
235KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(save,
Save)
240KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(saveAs,
SaveAs)
246KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(revert,
Revert)
251KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(close,
Close)
256KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(print,
Print)
261KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(printPreview,
PrintPreview)
266KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(mail,
Mail)
276KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(quit,
Quit)
281KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(undo,
Undo)
286KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(redo,
Redo)
291KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(cut,
Cut)
296KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(copy,
Copy)
302KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(paste,
Paste)
307KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(clear,
Clear)
312KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(selectAll,
SelectAll)
317KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(deselect,
Deselect)
322KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(find,
Find)
327KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(findNext,
FindNext)
332KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(findPrev,
FindPrev)
337KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(replace,
Replace)
342KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(actualSize,
ActualSize)
347KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(fitToPage,
FitToPage)
352KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(fitToWidth,
FitToWidth)
357KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(fitToHeight,
FitToHeight)
362KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(zoomIn,
ZoomIn)
367KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(zoomOut,
ZoomOut)
372KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(zoom,
Zoom)
377KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(redisplay,
Redisplay)
382KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(up,
Up)
387KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(back,
Back)
392KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(forward,
Forward)
397KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(home,
Home)
402KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(prior,
Prior)
407KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(next,
Next)
412KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(goTo,
Goto)
417KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(gotoPage,
GotoPage)
422KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(gotoLine,
GotoLine)
427KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(firstPage,
FirstPage)
432KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(lastPage,
LastPage)
437KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(documentBack,
DocumentBack)
442KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(documentForward,
DocumentForward)
447KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(addBookmark,
AddBookmark)
452KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(editBookmarks,
EditBookmarks)
457KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(spelling,
Spelling)
467KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(keyBindings,
KeyBindings)
472KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(preferences,
Preferences)
492KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(helpContents,
HelpContents)
497KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(whatsThis,
WhatsThis)
502KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(reportBug,
ReportBug)
507KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(aboutApp,
AboutApp)
512KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(aboutKDE,
AboutKDE)
517KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(deleteFile,
DeleteFile)
522KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(renameFile,
RenameFile)
527KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(moveToTrash,
MoveToTrash)
532KGUISTANDARDACTION_WITH_NEW_STYLE_CONNECT(donate,
Donate)
Convenience methods to access all standard KDE actions.
KStandardShortcut::StandardShortcut shortcutForActionId(StandardAction id)
Returns the standardshortcut associated with actionId.
QString name(StandardAction id)
This will return the internal name of a given standard action.
QAction * _kgui_createInternal(StandardAction id, QObject *parent)
StandardAction
The standard menubar and toolbar actions.
@ SaveAs
Save the current document under a different name.
@ Revert
Revert the current document to the last saved version.
@ AboutKDE
Display the About KDE dialog.
@ GotoPage
Go to a specific page.
@ Mail
Send the current document by mail.
@ OpenRecent
Open a recently used document.
@ GotoLine
Go to a specific line.
@ Goto
Jump to some specific location in the document.
@ Deselect
Deselect any selected elements in the current document.
@ ZoomIn
Zoom in the current document.
@ FitToHeight
Fit the document view to the height of the current window.
@ FullScreen
Switch to/from full screen mode.
@ Clear
Clear the content of the focus widget.
@ Open
Open an existing file.
@ Save
Save the current document.
@ HamburgerMenu
Opens a menu that substitutes the menubar.
@ ShowToolbar
Show/Hide the toolbar.
@ ReportBug
Open up the Report Bug dialog.
@ Next
Scroll down one page.
@ WhatsThis
Trigger the What's This cursor.
@ Home
Go to the "Home" position or document.
@ RenameFile
Renames files or folders.
@ Spelling
Pop up the spell checker.
@ Prior
Scroll up one page.
@ SwitchApplicationLanguage
Display the Switch Application Language dialog.
@ FitToWidth
Fit the document view to the width of the current window.
@ New
Create a new document or window.
@ ConfigureToolbars
Display the toolbar configuration dialog.
@ ConfigureNotifications
Display the notifications configuration dialog.
@ SelectAll
Select all elements in the current document.
@ FindNext
Find the next instance of a stored 'find'.
@ Undo
Undo the last operation.
@ Donate
Open donation page on kde.org.
@ Print
Print the current document.
@ Up
Move up (web style menu).
@ AddBookmark
Add the current page to the bookmarks tree.
@ Replace
Find and replace matches.
@ LastPage
Jump to the last page.
@ Cut
Cut selected area and store it in the clipboard.
@ KeyBindings
Display the configure key bindings dialog.
@ FindPrev
Find a previous instance of a stored 'find'.
@ Redo
Redo the last operation.
@ Copy
Copy selected area and store it in the clipboard.
@ ShowMenubar
Show/Hide the menubar.
@ DocumentForward
Move forward (document style menu).
@ Back
Move back (web style menu).
@ ZoomOut
Zoom out the current document.
@ PrintPreview
Show a print preview of the current document.
@ Zoom
Select the current zoom level.
@ ActualSize
View the document at its actual size.
@ Forward
Move forward (web style menu).
@ Close
Close the current document.
@ DeleteFile
Permanently deletes files or folders.
@ EditBookmarks
Edit the application bookmarks.
@ FitToPage
Fit the document view to the size of the current window.
@ FirstPage
Jump to the first page.
@ AboutApp
Display the application's About box.
@ DocumentBack
Move back (document style menu).
@ MoveToTrash
Moves files or folders to the trash.
@ HelpContents
Display the handbook of the application.
@ ShowStatusbar
Show/Hide the statusbar.
@ Preferences
Display the preferences/options dialog.
@ Find
Initiate a 'find' request in the current document.
@ Paste
Paste the contents of clipboard at the current mouse or cursor.
@ Redisplay
Redisplay or redraw the document.
QAction * create(StandardAction id, const Receiver *recvr, Func slot, QObject *parent, std::optional< Qt::ConnectionType > connectionType=std::nullopt)
Creates an action corresponding to one of the KStandardActions::StandardAction actions,...
QList< StandardAction > actionIds()
Returns a list of all actionIds.
StandardShortcut
Defines the identifier of all standard accelerators.
void triggered(bool checked)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)