KStandardAction
Enumerations | |
enum | StandardAction { ActionNone, New, Open, OpenRecent, Save, SaveAs, Revert, Close, Print, PrintPreview, Mail, Quit, Undo, Redo, Cut, Copy, Paste, SelectAll, Deselect, Find, FindNext, FindPrev, Replace, ActualSize, FitToPage, FitToWidth, FitToHeight, ZoomIn, ZoomOut, Zoom, Redisplay, Up, Back, Forward, Home, Prior, Next, Goto, GotoPage, GotoLine, FirstPage, LastPage, DocumentBack, DocumentForward, AddBookmark, EditBookmarks, Spelling, ShowMenubar, ShowToolbar, ShowStatusbar, SaveOptions, KeyBindings, Preferences, ConfigureToolbars, Help, HelpContents, WhatsThis, ReportBug, AboutApp, AboutKDE, TipofDay, ConfigureNotifications, FullScreen, Clear, PasteText, SwitchApplicationLanguage, DeleteFile, RenameFile, MoveToTrash, Donate, HamburgerMenu } |
Functions | |
QAction * | _k_createInternal (StandardAction id, QObject *parent) |
QAction * | aboutApp (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | aboutApp (const QObject *recvr, Func slot, QObject *parent) |
QAction * | aboutKDE (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | aboutKDE (const QObject *recvr, Func slot, QObject *parent) |
QList< StandardAction > | actionIds () |
QAction * | actualSize (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | actualSize (const QObject *recvr, Func slot, QObject *parent) |
QAction * | addBookmark (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | addBookmark (const QObject *recvr, Func slot, QObject *parent) |
QAction * | back (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | back (const QObject *recvr, Func slot, QObject *parent) |
static QAction * | buildAutomaticAction (QObject *parent, StandardAction id, const char *slot) |
QAction * | clear (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | clear (const QObject *recvr, Func slot, QObject *parent) |
QAction * | clear (QObject *parent) |
QAction * | close (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | close (const QObject *recvr, Func slot, QObject *parent) |
QAction * | configureNotifications (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | configureNotifications (const QObject *recvr, Func slot, QObject *parent) |
QAction * | configureToolbars (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | configureToolbars (const QObject *recvr, Func slot, QObject *parent) |
QAction * | copy (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | copy (const QObject *recvr, Func slot, QObject *parent) |
QAction * | copy (QObject *parent) |
QAction * | create (StandardAction id, const QObject *recvr, const char *slot, QObject *parent) |
QAction * | create (StandardAction id, const QObject *recvr, Func slot, QObject *parent, Qt::ConnectionType connectionType=-1) |
QAction * | cut (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | cut (const QObject *recvr, Func slot, QObject *parent) |
QAction * | cut (QObject *parent) |
QAction * | deleteFile (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | deleteFile (const QObject *recvr, Func slot, QObject *parent) |
QAction * | deselect (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | deselect (const QObject *recvr, Func slot, QObject *parent) |
QAction * | documentBack (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | documentBack (const QObject *recvr, Func slot, QObject *parent) |
QAction * | documentForward (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | documentForward (const QObject *recvr, Func slot, QObject *parent) |
QAction * | donate (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | donate (const QObject *recvr, Func slot, QObject *parent) |
QAction * | editBookmarks (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | editBookmarks (const QObject *recvr, Func slot, QObject *parent) |
QAction * | find (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | find (const QObject *recvr, Func slot, QObject *parent) |
QAction * | findNext (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | findNext (const QObject *recvr, Func slot, QObject *parent) |
QAction * | findPrev (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | findPrev (const QObject *recvr, Func slot, QObject *parent) |
QAction * | firstPage (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | firstPage (const QObject *recvr, Func slot, QObject *parent) |
QAction * | fitToHeight (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | fitToHeight (const QObject *recvr, Func slot, QObject *parent) |
QAction * | fitToPage (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | fitToPage (const QObject *recvr, Func slot, QObject *parent) |
QAction * | fitToWidth (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | fitToWidth (const QObject *recvr, Func slot, QObject *parent) |
QAction * | forward (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | forward (const QObject *recvr, Func slot, QObject *parent) |
KToggleFullScreenAction * | fullScreen (const QObject *recvr, const char *slot, QWidget *window, QObject *parent) |
KToggleFullScreenAction * | fullScreen (const QObject *recvr, Func slot, QWidget *window, QObject *parent) |
QAction * | goTo (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | goTo (const QObject *recvr, Func slot, QObject *parent) |
QAction * | gotoLine (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | gotoLine (const QObject *recvr, Func slot, QObject *parent) |
QAction * | gotoPage (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | gotoPage (const QObject *recvr, Func slot, QObject *parent) |
KHamburgerMenu * | hamburgerMenu (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | hamburgerMenu (const QObject *recvr, Func slot, QObject *parent) |
QAction * | help (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | help (const QObject *recvr, Func slot, QObject *parent) |
QAction * | helpContents (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | helpContents (const QObject *recvr, Func slot, QObject *parent) |
QAction * | home (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | home (const QObject *recvr, Func slot, QObject *parent) |
QAction * | keyBindings (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | keyBindings (const QObject *recvr, Func slot, QObject *parent) |
QAction * | lastPage (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | lastPage (const QObject *recvr, Func slot, QObject *parent) |
QAction * | mail (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | mail (const QObject *recvr, Func slot, QObject *parent) |
QAction * | moveToTrash (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | moveToTrash (const QObject *recvr, Func slot, QObject *parent) |
const char * | name (StandardAction id) |
QAction * | next (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | next (const QObject *recvr, Func slot, QObject *parent) |
QAction * | open (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | open (const QObject *recvr, Func slot, QObject *parent) |
QAction * | openNew (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | openNew (const QObject *recvr, Func slot, QObject *parent) |
KRecentFilesAction * | openRecent (const QObject *recvr, const char *slot, QObject *parent) |
KRecentFilesAction * | openRecent (const QObject *recvr, Func slot, QObject *parent) |
QAction * | paste (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | paste (const QObject *recvr, Func slot, QObject *parent) |
QAction * | paste (QObject *parent) |
QAction * | pasteText (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | pasteText (const QObject *recvr, Func slot, QObject *parent) |
QAction * | preferences (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | preferences (const QObject *recvr, Func slot, QObject *parent) |
QAction * | print (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | print (const QObject *recvr, Func slot, QObject *parent) |
QAction * | printPreview (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | printPreview (const QObject *recvr, Func slot, QObject *parent) |
QAction * | prior (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | prior (const QObject *recvr, Func slot, QObject *parent) |
QAction * | quit (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | quit (const QObject *recvr, Func slot, QObject *parent) |
QAction * | redisplay (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | redisplay (const QObject *recvr, Func slot, QObject *parent) |
QAction * | redo (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | redo (const QObject *recvr, Func slot, QObject *parent) |
QAction * | renameFile (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | renameFile (const QObject *recvr, Func slot, QObject *parent) |
QAction * | replace (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | replace (const QObject *recvr, Func slot, QObject *parent) |
QAction * | reportBug (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | reportBug (const QObject *recvr, Func slot, QObject *parent) |
QAction * | revert (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | revert (const QObject *recvr, Func slot, QObject *parent) |
QAction * | save (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | save (const QObject *recvr, Func slot, QObject *parent) |
QAction * | saveAs (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | saveAs (const QObject *recvr, Func slot, QObject *parent) |
QAction * | saveOptions (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | saveOptions (const QObject *recvr, Func slot, QObject *parent) |
QAction * | selectAll (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | selectAll (const QObject *recvr, Func slot, QObject *parent) |
QAction * | selectAll (QObject *parent) |
KStandardShortcut::StandardShortcut | shortcutForActionId (StandardAction id) |
KToggleAction * | showMenubar (const QObject *recvr, const char *slot, QObject *parent) |
KToggleAction * | showMenubar (const QObject *recvr, Func slot, QObject *parent) |
KToggleAction * | showStatusbar (const QObject *recvr, const char *slot, QObject *parent) |
KToggleAction * | showStatusbar (const QObject *recvr, Func slot, QObject *parent) |
QAction * | spelling (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | spelling (const QObject *recvr, Func slot, QObject *parent) |
const char * | stdName (StandardAction act_enum) |
QStringList | stdNames () |
QAction * | switchApplicationLanguage (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | switchApplicationLanguage (const QObject *recvr, Func slot, QObject *parent) |
QAction * | tipOfDay (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | tipOfDay (const QObject *recvr, Func slot, QObject *parent) |
QAction * | undo (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | undo (const QObject *recvr, Func slot, QObject *parent) |
QAction * | up (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | up (const QObject *recvr, Func slot, QObject *parent) |
QAction * | whatsThis (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | whatsThis (const QObject *recvr, Func slot, QObject *parent) |
QAction * | zoom (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | zoom (const QObject *recvr, Func slot, QObject *parent) |
QAction * | zoomIn (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | zoomIn (const QObject *recvr, Func slot, QObject *parent) |
QAction * | zoomOut (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | zoomOut (const QObject *recvr, Func slot, QObject *parent) |
Detailed Description
Convenience methods to access all standard KDE actions.
These actions should be used instead of hardcoding menubar and toolbar items. Using these actions helps your application easily conform to the KDE Human Interface Guidelines.
All of the documentation for QAction holds for KStandardAction also. When in doubt on how things work, check the QAction documentation first. Please note that calling any of these methods automatically adds the action to the actionCollection() of the QObject given by the 'parent' parameter.
Simple Example:
In general, using standard actions should be a drop in replacement for regular actions. For example, if you previously had:
You can replace it with:
Non-standard Usages
It is possible to use the standard actions in various non-recommended ways. Say, for instance, you wanted to have a standard action (with the associated correct text and icon and accelerator, etc) but you didn't want it to go in the standard place (this is not recommended, by the way). One way to do this is to simply not use the XML UI framework and plug it into wherever you want. If you do want to use the XML UI framework (good!), then it is still possible.
Basically, the XML building code matches names in the XML code with the internal names of the actions. You can find out the internal names of each of the standard actions by using the name method like so: KStandardAction::name(KStandardAction::Cut) would return 'edit_cut'. The XML building code will match 'edit_cut' to the attribute in the global XML file and place your action there.
However, you can change the internal name. In this example, just do something like:
Now, in your local XML resource file (e.g., yourappui.rc), simply put 'my_cut' where you want it to go.
Another non-standard usage concerns getting a pointer to an existing action if, say, you want to enable or disable the action. You could do it the recommended way and just grab a pointer when you instantiate it as in the 'openNew' example above... or you could do it the hard way:
Another non-standard usage concerns instantiating the action in the first place. Usually, you would use the member functions as shown above (e.g., KStandardAction::cut(this, SLOT, parent)). You may, however, do this using the enums provided. This author can't think of a reason why you would want to, but, hey, if you do, here's how:
Enumeration Type Documentation
◆ StandardAction
The standard menubar and toolbar actions.
Enumerator | |
---|---|
New | Create a new document or window. |
Open | Open an existing file. |
OpenRecent | Open a recently used document. |
Save | Save the current document. |
SaveAs | Save the current document under a different name. |
Revert | Revert the current document to the last saved version. |
Close | Close the current document. |
Print the current document. | |
PrintPreview | Show a print preview of the current document. |
Send the current document by mail. | |
Quit | Quit the program. |
Undo | Undo the last operation. |
Redo | Redo the last operation. |
Cut | Cut selected area and store it in the clipboard. |
Copy | Copy selected area and store it in the clipboard. |
Paste | Paste the contents of clipboard at the current mouse or cursor. |
SelectAll | Select all elements in the current document. |
Deselect | Deselect any selected elements in the current document. |
Find | Initiate a 'find' request in the current document. |
FindNext | Find the next instance of a stored 'find'. |
FindPrev | Find a previous instance of a stored 'find'. |
Replace | Find and replace matches. |
ActualSize | View the document at its actual size. |
FitToPage | Fit the document view to the size of the current window. |
FitToWidth | Fit the document view to the width of the current window. |
FitToHeight | Fit the document view to the height of the current window. |
ZoomIn | Zoom in the current document. |
ZoomOut | Zoom out the current document. |
Zoom | Select the current zoom level. |
Redisplay | Redisplay or redraw the document. |
Up | Move up (web style menu). |
Back | Move back (web style menu). |
Forward | Move forward (web style menu). |
Home | Go to the "Home" position or document. |
Prior | Scroll up one page. |
Next | Scroll down one page. |
Goto | Jump to some specific location in the document. |
GotoPage | Go to a specific page. |
GotoLine | Go to a specific line. |
FirstPage | Jump to the first page. |
LastPage | Jump to the last page. |
DocumentBack | Move back (document style menu). |
DocumentForward | Move forward (document style menu). |
AddBookmark | Add the current page to the bookmarks tree. |
EditBookmarks | Edit the application bookmarks. |
Spelling | Pop up the spell checker. |
ShowMenubar | Show/Hide the menubar. |
ShowToolbar | Show/Hide the toolbar. |
ShowStatusbar | Show/Hide the statusbar. |
SaveOptions |
|
KeyBindings | Display the configure key bindings dialog. |
Preferences | Display the preferences/options dialog. |
ConfigureToolbars | Display the toolbar configuration dialog. |
Help |
|
HelpContents | Display the handbook of the application. |
WhatsThis | Trigger the What's This cursor. |
ReportBug | Open up the Report Bug dialog. |
AboutApp | Display the application's About box. |
AboutKDE | Display the About KDE dialog. |
TipofDay | Display the "Tip of the Day". |
ConfigureNotifications | Display the notifications configuration dialog. |
FullScreen | Switch to/from full screen mode. |
Clear | Clear the content of the focus widget. |
PasteText |
|
SwitchApplicationLanguage | Display the Switch Application Language dialog. |
DeleteFile | Permanently deletes files or folders.
|
RenameFile | Renames files or folders.
|
MoveToTrash | Moves files or folders to the trash.
|
Donate | Open donation page on kde.org.
|
HamburgerMenu | Opens a menu that substitutes the menubar.
|
Definition at line 118 of file kstandardaction.h.
Function Documentation
◆ _k_createInternal()
QAction * KStandardAction::_k_createInternal | ( | StandardAction | id, |
QObject * | parent | ||
) |
Definition at line 138 of file kstandardaction.cpp.
◆ aboutApp() [1/2]
Display the application's About box.
Definition at line 742 of file kstandardaction.cpp.
◆ aboutApp() [2/2]
Display the application's About box.
- Since
- 5.23
◆ aboutKDE() [1/2]
Display the About KDE dialog.
Definition at line 747 of file kstandardaction.cpp.
◆ aboutKDE() [2/2]
Display the About KDE dialog.
- Since
- 5.23
◆ actionIds()
QList< StandardAction > KStandardAction::actionIds | ( | ) |
◆ actualSize() [1/2]
QAction * KStandardAction::actualSize | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
View the document at its actual size.
Definition at line 494 of file kstandardaction.cpp.
◆ actualSize() [2/2]
View the document at its actual size.
- Since
- 5.23
◆ addBookmark() [1/2]
QAction * KStandardAction::addBookmark | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Add the current page to the bookmarks tree.
Definition at line 599 of file kstandardaction.cpp.
◆ addBookmark() [2/2]
Add the current page to the bookmarks tree.
- Since
- 5.23
◆ back() [1/2]
Move back (web style menu).
Definition at line 539 of file kstandardaction.cpp.
◆ back() [2/2]
Move back (web style menu).
- Since
- 5.23
◆ clear() [1/3]
Clear the content of the focus widget.
Definition at line 459 of file kstandardaction.cpp.
◆ clear() [2/3]
Clear the content of the focus widget.
- Since
- 5.23
◆ clear() [3/3]
Clear selected area.
Calls clear() on the widget with the current focus. Note that for some widgets, this may not provide the intended behavior. For example if you make use of the code above and a K3ListView has the focus, clear() will clear all of the items in the list. If this is not the intended behavior and you want to make use of this slot, you can subclass K3ListView and reimplement this slot. For example the following code would implement a K3ListView without this behavior:
Definition at line 650 of file kstandardaction.cpp.
◆ close() [1/2]
Close the current document.
Definition at line 412 of file kstandardaction.cpp.
◆ close() [2/2]
Close the current document.
- Since
- 5.23
◆ configureNotifications() [1/2]
QAction * KStandardAction::configureNotifications | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Display the notifications configuration dialog.
Definition at line 705 of file kstandardaction.cpp.
◆ configureNotifications() [2/2]
|
inline |
Display the notifications configuration dialog.
- Since
- 5.23
◆ configureToolbars() [1/2]
QAction * KStandardAction::configureToolbars | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Display the toolbar configuration dialog.
Definition at line 700 of file kstandardaction.cpp.
◆ configureToolbars() [2/2]
|
inline |
Display the toolbar configuration dialog.
- Since
- 5.23
◆ copy() [1/3]
Copy the selected area into the clipboard.
Definition at line 442 of file kstandardaction.cpp.
◆ copy() [2/3]
Copy the selected area into the clipboard.
- Since
- 5.23
◆ copy() [3/3]
Copy selected area and store it in the clipboard.
Calls copy() on the widget with the current focus.
Definition at line 640 of file kstandardaction.cpp.
◆ create() [1/2]
QAction * KStandardAction::create | ( | StandardAction | id, |
const QObject * | recvr, | ||
const char * | slot, | ||
QObject * | parent | ||
) |
Creates an action corresponding to one of the KStandardAction::StandardAction actions, which is connected to the given object and slot
, and is owned by parent
.
The signal that is connected to slot
is triggered(bool), except for the case of OpenRecent standard action, which uses the urlSelected(const QUrl &) signal of KRecentFilesAction.
- Parameters
-
id The StandardAction identifier to create a QAction for. recvr The QObject to receive the signal, or nullptr
if no notification is needed.slot The slot to connect the signal to (remember to use the SLOT() macro). parent The QObject that should own the created QAction, or nullptr
if no parent will own the QAction returned (ensure you delete it manually in this case).
Definition at line 349 of file kstandardaction.cpp.
◆ create() [2/2]
|
inline |
This overloads create() to allow using the new connect syntax.
- Note
- if you use
OpenRecent
asid
, you should manually connect to the urlSelected(const QUrl &) signal of the returned KRecentFilesAction instead or use KStandardAction::openRecent(Receiver *, Func).
If not explicitely specified, connectionType
will be AutoConnection for all actions except for ConfigureToolbars that will be QueuedConnection.
- Since
- 5.23 (The connectionType argument was added in 5.95)
Definition at line 251 of file kstandardaction.h.
◆ cut() [1/3]
Cut selected area and store it in the clipboard.
Definition at line 437 of file kstandardaction.cpp.
◆ cut() [2/3]
Cut selected area and store it in the clipboard.
- Since
- 5.23
◆ cut() [3/3]
Cut selected area and store it in the clipboard.
Calls cut() on the widget with the current focus.
Definition at line 635 of file kstandardaction.cpp.
◆ deleteFile() [1/2]
◆ deleteFile() [2/2]
Permanently deletes files or folders.
- Since
- 5.25
◆ deselect() [1/2]
Deselect any selected elements in the current document.
Definition at line 469 of file kstandardaction.cpp.
◆ deselect() [2/2]
Deselect any selected elements in the current document.
- Since
- 5.23
◆ documentBack() [1/2]
QAction * KStandardAction::documentBack | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Move back (document style menu).
Definition at line 589 of file kstandardaction.cpp.
◆ documentBack() [2/2]
|
inline |
Move back (document style menu).
- Since
- 5.23
◆ documentForward() [1/2]
QAction * KStandardAction::documentForward | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Move forward (document style menu).
Definition at line 594 of file kstandardaction.cpp.
◆ documentForward() [2/2]
|
inline |
Move forward (document style menu).
- Since
- 5.23
◆ donate() [1/2]
◆ donate() [2/2]
Open donation page on kde.org.
- Since
- 5.26
◆ editBookmarks() [1/2]
QAction * KStandardAction::editBookmarks | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Edit the application bookmarks.
Definition at line 604 of file kstandardaction.cpp.
◆ editBookmarks() [2/2]
|
inline |
Edit the application bookmarks.
- Since
- 5.23
◆ find() [1/2]
Initiate a 'find' request in the current document.
Definition at line 474 of file kstandardaction.cpp.
◆ find() [2/2]
Initiate a 'find' request in the current document.
- Since
- 5.23
◆ findNext() [1/2]
Find the next instance of a stored 'find'.
Definition at line 479 of file kstandardaction.cpp.
◆ findNext() [2/2]
Find the next instance of a stored 'find'.
- Since
- 5.23
◆ findPrev() [1/2]
Find a previous instance of a stored 'find'.
Definition at line 484 of file kstandardaction.cpp.
◆ findPrev() [2/2]
Find a previous instance of a stored 'find'.
- Since
- 5.23
◆ firstPage() [1/2]
Jump to the first page.
Definition at line 579 of file kstandardaction.cpp.
◆ firstPage() [2/2]
Jump to the first page.
- Since
- 5.23
◆ fitToHeight() [1/2]
QAction * KStandardAction::fitToHeight | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Fit the document view to the height of the current window.
Definition at line 509 of file kstandardaction.cpp.
◆ fitToHeight() [2/2]
Fit the document view to the height of the current window.
- Since
- 5.23
◆ fitToPage() [1/2]
Fit the document view to the size of the current window.
Definition at line 499 of file kstandardaction.cpp.
◆ fitToPage() [2/2]
Fit the document view to the size of the current window.
- Since
- 5.23
◆ fitToWidth() [1/2]
QAction * KStandardAction::fitToWidth | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Fit the document view to the width of the current window.
Definition at line 504 of file kstandardaction.cpp.
◆ fitToWidth() [2/2]
Fit the document view to the width of the current window.
- Since
- 5.23
◆ forward() [1/2]
Move forward (web style menu).
Definition at line 544 of file kstandardaction.cpp.
◆ forward() [2/2]
Move forward (web style menu).
- Since
- 5.23
◆ fullScreen() [1/2]
KToggleFullScreenAction * KStandardAction::fullScreen | ( | const QObject * | recvr, |
const char * | slot, | ||
QWidget * | window, | ||
QObject * | parent | ||
) |
Switch to/from full screen mode.
Definition at line 674 of file kstandardaction.cpp.
◆ fullScreen() [2/2]
|
inline |
◆ goTo() [1/2]
Jump to some specific location in the document.
Definition at line 564 of file kstandardaction.cpp.
◆ goTo() [2/2]
Jump to some specific location in the document.
- Since
- 5.23
◆ gotoLine() [1/2]
Go to a specific line.
Definition at line 574 of file kstandardaction.cpp.
◆ gotoLine() [2/2]
Go to a specific line.
- Since
- 5.23
◆ gotoPage() [1/2]
Go to a specific page.
Definition at line 569 of file kstandardaction.cpp.
◆ gotoPage() [2/2]
Go to a specific page.
- Since
- 5.23
◆ hamburgerMenu() [1/2]
KHamburgerMenu * KStandardAction::hamburgerMenu | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Opens a menu that substitutes the menubar.
- Since
- 5.81
Definition at line 772 of file kstandardaction.cpp.
◆ hamburgerMenu() [2/2]
|
inline |
Opens a menu that substitutes the menubar.
- Since
- 5.81
◆ help() [1/2]
- Deprecated:
- since 5.38 Use helpContents() instead.
Definition at line 711 of file kstandardaction.cpp.
◆ help() [2/2]
- Since
- 5.23
- Deprecated:
- since 5.38 Use helpContents() instead.
◆ helpContents() [1/2]
QAction * KStandardAction::helpContents | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Display the handbook of the application.
Definition at line 717 of file kstandardaction.cpp.
◆ helpContents() [2/2]
|
inline |
Display the handbook of the application.
- Since
- 5.23
◆ home() [1/2]
Go to the "Home" position or document.
Definition at line 549 of file kstandardaction.cpp.
◆ home() [2/2]
Go to the "Home" position or document.
- Since
- 5.23
◆ keyBindings() [1/2]
QAction * KStandardAction::keyBindings | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Display the configure keyboard shortcuts dialog.
Note that you might be able to use the pre-built KXMLGUIFactory's function:
Definition at line 690 of file kstandardaction.cpp.
◆ keyBindings() [2/2]
Display the configure key bindings dialog.
- Since
- 5.23
◆ lastPage() [1/2]
Jump to the last page.
Definition at line 584 of file kstandardaction.cpp.
◆ lastPage() [2/2]
Jump to the last page.
- Since
- 5.23
◆ mail() [1/2]
Send the current document by mail.
Definition at line 417 of file kstandardaction.cpp.
◆ mail() [2/2]
Mail this document.
- Since
- 5.23
◆ moveToTrash() [1/2]
◆ moveToTrash() [2/2]
Moves files or folders to the trash.
- Since
- 5.25
◆ name()
const char * KStandardAction::name | ( | StandardAction | id | ) |
This will return the internal name of a given standard action.
The returned const char* only contains ASCII characters.
Definition at line 366 of file kstandardaction.cpp.
◆ next() [1/2]
Scroll down one page.
Definition at line 559 of file kstandardaction.cpp.
◆ next() [2/2]
Scroll down one page.
- Since
- 5.23
◆ open() [1/2]
Open an existing file.
Definition at line 377 of file kstandardaction.cpp.
◆ open() [2/2]
Open an existing file.
- Since
- 5.23
◆ openNew() [1/2]
Create a new document or window.
Definition at line 372 of file kstandardaction.cpp.
◆ openNew() [2/2]
Create a new document or window.
- Since
- 5.23
◆ openRecent() [1/2]
KRecentFilesAction * KStandardAction::openRecent | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Open a recently used document.
The signature of the slot being called is of the form slotURLSelected( const QUrl & ).
- Parameters
-
recvr object to receive slot slot The SLOT to invoke when a URL is selected. The slot's signature is slotURLSelected( const QUrl & ). parent parent widget
Definition at line 382 of file kstandardaction.cpp.
◆ openRecent() [2/2]
|
inline |
The same as openRecent(const QObject *, const char *, QObject *), but using new-style connect syntax.
- Since
- 5.23
Definition at line 355 of file kstandardaction.h.
◆ paste() [1/3]
Paste the contents of clipboard at the current mouse or cursor position.
Definition at line 447 of file kstandardaction.cpp.
◆ paste() [2/3]
Paste the contents of clipboard at the current mouse or cursor position.
- Since
- 5.23
◆ paste() [3/3]
Paste the contents of clipboard at the current mouse or cursor Calls paste() on the widget with the current focus.
Definition at line 645 of file kstandardaction.cpp.
◆ pasteText() [1/2]
◆ pasteText() [2/2]
- Since
- 5.23
- Deprecated:
- since 5.39. Use paste() instead.
◆ preferences() [1/2]
QAction * KStandardAction::preferences | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Display the preferences/options dialog.
Definition at line 695 of file kstandardaction.cpp.
◆ preferences() [2/2]
Display the preferences/options dialog.
- Since
- 5.23
◆ print() [1/2]
Print the current document.
Definition at line 402 of file kstandardaction.cpp.
◆ print() [2/2]
Print the current document.
- Since
- 5.23
◆ printPreview() [1/2]
QAction * KStandardAction::printPreview | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Show a print preview of the current document.
Definition at line 407 of file kstandardaction.cpp.
◆ printPreview() [2/2]
|
inline |
Show a print preview of the current document.
- Since
- 5.23
◆ prior() [1/2]
Scroll up one page.
Definition at line 554 of file kstandardaction.cpp.
◆ prior() [2/2]
Scroll up one page.
- Since
- 5.23
◆ quit() [1/2]
Quit the program.
Note that you probably want to connect this action to either QWidget::close() or QApplication::closeAllWindows(), but not QApplication::quit(), so that KMainWindow::queryClose() is called on any open window (to warn the user about unsaved changes for example).
Definition at line 422 of file kstandardaction.cpp.
◆ quit() [2/2]
◆ redisplay() [1/2]
Redisplay or redraw the document.
Definition at line 529 of file kstandardaction.cpp.
◆ redisplay() [2/2]
Redisplay or redraw the document.
- Since
- 5.23
◆ redo() [1/2]
Redo the last operation.
Definition at line 432 of file kstandardaction.cpp.
◆ redo() [2/2]
Redo the last operation.
- Since
- 5.23
◆ renameFile() [1/2]
◆ renameFile() [2/2]
Renames files or folders.
- Since
- 5.25
◆ replace() [1/2]
Find and replace matches.
Definition at line 489 of file kstandardaction.cpp.
◆ replace() [2/2]
Find and replace matches.
- Since
- 5.23
◆ reportBug() [1/2]
Open up the Report Bug dialog.
Definition at line 732 of file kstandardaction.cpp.
◆ reportBug() [2/2]
Open up the Report Bug dialog.
- Since
- 5.23
◆ revert() [1/2]
Revert the current document to the last saved version (essentially will undo all changes).
Definition at line 397 of file kstandardaction.cpp.
◆ revert() [2/2]
Revert the current document to the last saved version (essentially will undo all changes).
- Since
- 5.23
◆ save() [1/2]
Save the current document.
Definition at line 387 of file kstandardaction.cpp.
◆ save() [2/2]
Save the current document.
- Since
- 5.23
◆ saveAs() [1/2]
Save the current document under a different name.
Definition at line 392 of file kstandardaction.cpp.
◆ saveAs() [2/2]
Save the current document under a different name.
- Since
- 5.23
◆ saveOptions() [1/2]
QAction * KStandardAction::saveOptions | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Display the save options dialog.
- Deprecated:
- since 5.38
Definition at line 684 of file kstandardaction.cpp.
◆ saveOptions() [2/2]
◆ selectAll() [1/3]
Select all elements in the current document.
Definition at line 464 of file kstandardaction.cpp.
◆ selectAll() [2/3]
Select all elements in the current document.
- Since
- 5.23
◆ selectAll() [3/3]
Calls selectAll() on the widget with the current focus.
Definition at line 655 of file kstandardaction.cpp.
◆ shortcutForActionId()
KStandardShortcut::StandardShortcut KStandardAction::shortcutForActionId | ( | StandardAction | id | ) |
Returns the standardshortcut associated with actionId.
- Parameters
-
id The identifier whose associated shortcut is wanted.
- Since
- 4.2
Definition at line 68 of file kstandardaction.cpp.
◆ showMenubar() [1/2]
KToggleAction * KStandardAction::showMenubar | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Show/Hide the menubar.
Definition at line 660 of file kstandardaction.cpp.
◆ showMenubar() [2/2]
|
inline |
The same as showMenubar(const QObject *, const char *, QObject *), but using new-style connect syntax.
- Since
- 5.23
Definition at line 945 of file kstandardaction.h.
◆ showStatusbar() [1/2]
KToggleAction * KStandardAction::showStatusbar | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Show/Hide the statusbar.
Definition at line 667 of file kstandardaction.cpp.
◆ showStatusbar() [2/2]
|
inline |
◆ spelling() [1/2]
Pop up the spell checker.
Definition at line 609 of file kstandardaction.cpp.
◆ spelling() [2/2]
Pop up the spell checker.
- Since
- 5.23
◆ stdName()
|
inline |
- Deprecated:
- Since 4.0, use name(StandardAction)
Definition at line 275 of file kstandardaction.h.
◆ stdNames()
QStringList KStandardAction::stdNames | ( | ) |
Returns a list of all standard names.
Used by KAccelManager to give those higher weight.
Definition at line 52 of file kstandardaction.cpp.
◆ switchApplicationLanguage() [1/2]
QAction * KStandardAction::switchApplicationLanguage | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Display the Switch Application Language dialog.
- Since
- 5.67
Definition at line 737 of file kstandardaction.cpp.
◆ switchApplicationLanguage() [2/2]
|
inline |
Display the Switch Application Language dialog.
- Since
- 5.67
◆ tipOfDay() [1/2]
Display "Tip of the Day".
Definition at line 727 of file kstandardaction.cpp.
◆ tipOfDay() [2/2]
Display "Tip of the Day".
- Since
- 5.23
◆ undo() [1/2]
Undo the last operation.
Definition at line 427 of file kstandardaction.cpp.
◆ undo() [2/2]
Undo the last operation.
- Since
- 5.23
◆ up() [1/2]
Move up (web style menu).
Definition at line 534 of file kstandardaction.cpp.
◆ up() [2/2]
Move up (web style menu).
- Since
- 5.23
◆ whatsThis() [1/2]
Trigger the What's This cursor.
Definition at line 722 of file kstandardaction.cpp.
◆ whatsThis() [2/2]
Trigger the What's This cursor.
- Since
- 5.23
◆ zoom() [1/2]
Select the current zoom level.
Definition at line 524 of file kstandardaction.cpp.
◆ zoom() [2/2]
Select the current zoom level.
- Since
- 5.23
◆ zoomIn() [1/2]
Zoom in the current document view.
Definition at line 514 of file kstandardaction.cpp.
◆ zoomIn() [2/2]
Zoom in the current document view.
- Since
- 5.23
◆ zoomOut() [1/2]
Zoom out the current document view.
Definition at line 519 of file kstandardaction.cpp.
◆ zoomOut() [2/2]
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 03:50:07 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.