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 , KeyBindings , Preferences , ConfigureToolbars , HelpContents , WhatsThis , ReportBug , AboutApp , AboutKDE , ConfigureNotifications , FullScreen , Clear , 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, std::optional< Qt::ConnectionType > connectionType=std::nullopt) |
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 * | 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) |
QString | 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 * | 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 * | 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) |
QStringList | stdNames () |
QAction * | switchApplicationLanguage (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | switchApplicationLanguage (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:
Alternatively you can instantiate the action using the StandardAction enums provided. This author can't think of a reason why you would want to, but, hey, if you do, here's how:
Relationship with KActionCollection from KXMLGui
If a KActionCollection is passed as the parent then the action will be automatically added to that collection:
Each action has a unique internal name which can be queried using the name method. For example KStandardAction::name(KStandardAction::Cut) would return 'edit_cut'. This name can be used as a unique identifier for the actions. So if you wanted to add an existing standard action to an action collection you can do so like this:
You can then get a pointer to the action using
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. |
KeyBindings | Display the configure key bindings dialog. |
Preferences | Display the preferences/options dialog. |
ConfigureToolbars | Display the toolbar configuration dialog. |
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. |
ConfigureNotifications | Display the notifications configuration dialog. |
FullScreen | Switch to/from full screen mode. |
Clear | Clear the content of the focus widget. |
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 98 of file kstandardaction.h.
Function Documentation
◆ _k_createInternal()
QAction * KStandardAction::_k_createInternal | ( | StandardAction | id, |
QObject * | parent ) |
Definition at line 137 of file kstandardaction.cpp.
◆ aboutApp() [1/2]
Display the application's About box.
Definition at line 696 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 701 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 467 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 572 of file kstandardaction.cpp.
◆ addBookmark() [2/2]
|
inline |
Add the current page to the bookmarks tree.
- Since
- 5.23
◆ back() [1/2]
Move back (web style menu).
Definition at line 512 of file kstandardaction.cpp.
◆ back() [2/2]
Move back (web style menu).
- Since
- 5.23
◆ buildAutomaticAction()
|
static |
Definition at line 587 of file kstandardaction.cpp.
◆ clear() [1/3]
Clear the content of the focus widget.
Definition at line 432 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 623 of file kstandardaction.cpp.
◆ close() [1/2]
Close the current document.
Definition at line 392 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 671 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 666 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 422 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 613 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 329 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 explicitly specified, connectionType
will be AutoConnection for all actions except for ConfigureToolbars it will be QueuedConnection.
- Since
- 5.23 (The connectionType argument was added in 5.95)
Definition at line 212 of file kstandardaction.h.
◆ cut() [1/3]
Cut selected area and store it in the clipboard.
Definition at line 417 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 608 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 442 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 562 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 567 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 577 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 447 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 452 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 457 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 552 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 482 of file kstandardaction.cpp.
◆ fitToHeight() [2/2]
|
inline |
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 472 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 477 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 517 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 647 of file kstandardaction.cpp.
◆ fullScreen() [2/2]
|
inline |
◆ goTo() [1/2]
Jump to some specific location in the document.
Definition at line 537 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 547 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 542 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 726 of file kstandardaction.cpp.
◆ hamburgerMenu() [2/2]
|
inline |
Opens a menu that substitutes the menubar.
- Since
- 5.81
◆ helpContents() [1/2]
QAction * KStandardAction::helpContents | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent ) |
Display the handbook of the application.
Definition at line 676 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 522 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 656 of file kstandardaction.cpp.
◆ keyBindings() [2/2]
|
inline |
Display the configure key bindings dialog.
- Since
- 5.23
◆ lastPage() [1/2]
Jump to the last page.
Definition at line 557 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 397 of file kstandardaction.cpp.
◆ mail() [2/2]
Mail this document.
- Since
- 5.23
◆ moveToTrash() [1/2]
◆ moveToTrash() [2/2]
|
inline |
Moves files or folders to the trash.
- Since
- 5.25
◆ name()
QString KStandardAction::name | ( | StandardAction | id | ) |
This will return the internal name of a given standard action.
Definition at line 346 of file kstandardaction.cpp.
◆ next() [1/2]
Scroll down one page.
Definition at line 532 of file kstandardaction.cpp.
◆ next() [2/2]
Scroll down one page.
- Since
- 5.23
◆ open() [1/2]
Open an existing file.
Definition at line 357 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 352 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 362 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 305 of file kstandardaction.h.
◆ paste() [1/3]
Paste the contents of clipboard at the current mouse or cursor position.
Definition at line 427 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 618 of file kstandardaction.cpp.
◆ preferences() [1/2]
QAction * KStandardAction::preferences | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent ) |
Display the preferences/options dialog.
Definition at line 661 of file kstandardaction.cpp.
◆ preferences() [2/2]
|
inline |
Display the preferences/options dialog.
- Since
- 5.23
◆ print() [1/2]
Print the current document.
Definition at line 382 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 387 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 527 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 402 of file kstandardaction.cpp.
◆ quit() [2/2]
◆ redisplay() [1/2]
Redisplay or redraw the document.
Definition at line 502 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 412 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 462 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 686 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 377 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 367 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 372 of file kstandardaction.cpp.
◆ saveAs() [2/2]
Save the current document under a different name.
- Since
- 5.23
◆ selectAll() [1/3]
Select all elements in the current document.
Definition at line 437 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 628 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 67 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 633 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 870 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 640 of file kstandardaction.cpp.
◆ showStatusbar() [2/2]
|
inline |
◆ spelling() [1/2]
Pop up the spell checker.
Definition at line 582 of file kstandardaction.cpp.
◆ spelling() [2/2]
Pop up the spell checker.
- Since
- 5.23
◆ stdNames()
QStringList KStandardAction::stdNames | ( | ) |
Returns a list of all standard names.
Used by KAccelManager to give those higher weight.
Definition at line 51 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 691 of file kstandardaction.cpp.
◆ switchApplicationLanguage() [2/2]
|
inline |
Display the Switch Application Language dialog.
- Since
- 5.67
◆ undo() [1/2]
Undo the last operation.
Definition at line 407 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 507 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 681 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 497 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 487 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 492 of file kstandardaction.cpp.
◆ zoomOut() [2/2]
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:54:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.