|
Krita Source Code Documentation
|
Classes | |
| class | AutomaticAction |
| struct | KStandardActionInfo |
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 , ResetConfigurations , Help , HelpContents , WhatsThis , ReportBug , AboutApp , AboutKDE , TipofDay , ConfigureNotifications , FullScreen , Clear , PasteText , SwitchApplicationLanguage } |
Functions | |
| QAction * | aboutApp (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | aboutKDE (const QObject *recvr, const char *slot, QObject *parent) |
| QList< StandardAction > | actionIds () |
| QAction * | actualSize (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | addBookmark (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | back (const QObject *recvr, const char *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 (QObject *parent) |
| QAction * | close (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | configureNotifications (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | configureToolbars (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | copy (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | copy (QObject *parent) |
| QAction * | create (StandardAction id, const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | cut (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | cut (QObject *parent) |
| QAction * | deselect (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | documentBack (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | documentForward (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | editBookmarks (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | find (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | findNext (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | findPrev (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | firstPage (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | fitToHeight (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | fitToPage (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | fitToWidth (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | forward (const QObject *recvr, const char *slot, QObject *parent) |
| KToggleFullScreenAction * | fullScreen (const QObject *recvr, const char *slot, QWidget *window, QObject *parent) |
| QAction * | goTo (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | gotoLine (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | gotoPage (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | help (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | helpContents (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | home (const QObject *recvr, const char *slot, QObject *parent) |
| const KStandardActionInfo * | infoPtr (StandardAction id) |
| static QStringList | internal_stdNames () |
| QAction * | keyBindings (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | lastPage (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | mail (const QObject *recvr, const char *slot, QObject *parent) |
| const char * | name (StandardAction id) |
| QAction * | next (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | open (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | openNew (const QObject *recvr, const char *slot, QObject *parent) |
| KRecentFilesAction * | openRecent (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | paste (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | paste (QObject *parent) |
| QAction * | pasteText (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | preferences (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | print (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | printPreview (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | prior (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | quit (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | redisplay (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | redo (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | replace (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | reportBug (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | resetConfigurations (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | revert (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | save (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | saveAs (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | saveOptions (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | selectAll (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | selectAll (QObject *parent) |
| KRITAWIDGETUTILS_EXPORT KStandardShortcut::StandardShortcut | shortcutForActionId (StandardAction id) |
| KToggleAction * | showMenubar (const QObject *recvr, const char *slot, QObject *parent) |
| KToggleAction * | showStatusbar (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | spelling (const QObject *recvr, const char *slot, QObject *parent) |
| KRITAWIDGETUTILS_DEPRECATED const char * | stdName (StandardAction act_enum) |
| QStringList | stdNames () |
| QAction * | switchApplicationLanguage (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | tipOfDay (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | undo (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | up (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | whatsThis (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | zoom (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | zoomIn (const QObject *recvr, const char *slot, QObject *parent) |
| QAction * | zoomOut (const QObject *recvr, const char *slot, QObject *parent) |
Variables | |
| static constexpr KStandardActionInfo | g_rgActionInfo [] |
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 UI Style Guide.
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 could drop that and 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:
The standard menubar and toolbar actions.
Definition at line 111 of file kstandardaction.h.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::aboutApp | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Display the application's About box.
Definition at line 623 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::aboutKDE | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Display the About KDE dialog.
Definition at line 628 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QList< StandardAction > KStandardAction::actionIds | ( | ) |
Returns a list of all actionIds.
Definition at line 43 of file kstandardaction.cpp.
References ActionNone, g_rgActionInfo, and KStandardAction::KStandardActionInfo::id.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::actualSize | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
View the document at its actual size.
Definition at line 335 of file kstandardaction.cpp.
References ActualSize, and create().
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::addBookmark | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Add the current page to the bookmarks tree.
Definition at line 440 of file kstandardaction.cpp.
References AddBookmark, and create().
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::back | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Move back (web style menu).
Definition at line 380 of file kstandardaction.cpp.
|
static |
Definition at line 455 of file kstandardaction.cpp.
References infoPtr(), KisIconUtils::loadIcon(), and p.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::clear | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Clear the content of the focus widget
Definition at line 300 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::clear | ( | QObject * | parent | ) |
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 496 of file kstandardaction.cpp.
References buildAutomaticAction(), clear(), and Clear.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::close | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Close the current document.
Definition at line 255 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::configureNotifications | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
The Configure Notifications dialog.
Definition at line 588 of file kstandardaction.cpp.
References ConfigureNotifications, and create().
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::configureToolbars | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
The Customize Toolbar dialog.
Definition at line 578 of file kstandardaction.cpp.
References ConfigureToolbars, and create().
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::copy | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Copy the selected area into the clipboard.
Definition at line 285 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::copy | ( | QObject * | parent | ) |
Copy selected area and store it in the clipboard. Calls copy() on the widget with the current focus.
Definition at line 486 of file kstandardaction.cpp.
References buildAutomaticAction(), copy(), and Copy.
| KRITAWIDGETUTILS_EXPORT 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.
| id | The StandardAction identifier to create a QAction for. |
| recvr | The QObject to receive the signal, or 0 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 0 if no parent will own the QAction returned (ensure you delete it manually in this case). |
Definition at line 60 of file kstandardaction.cpp.
References AboutApp, Back, ConfigureToolbars, cut(), DocumentBack, DocumentForward, FirstPage, Forward, FullScreen, Help, HelpContents, Home, KStandardAction::KStandardActionInfo::idAccel, infoPtr(), LastPage, KisIconUtils::loadIcon(), Next, OpenRecent, PasteText, Preferences, Prior, KStandardAction::KStandardActionInfo::psIconName, KStandardAction::KStandardActionInfo::psLabel, KStandardAction::KStandardActionInfo::psName, KStandardAction::KStandardActionInfo::psToolTip, Quit, ShowMenubar, ShowStatusbar, ShowToolbar, and stdNames().
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::cut | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Cut selected area and store it in the clipboard.
Definition at line 280 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::cut | ( | QObject * | parent | ) |
Cut selected area and store it in the clipboard. Calls cut() on the widget with the current focus.
Definition at line 481 of file kstandardaction.cpp.
References buildAutomaticAction(), cut(), and Cut.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::deselect | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Deselect any selected elements in the current document.
Definition at line 310 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::documentBack | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Move back (document style menu).
Definition at line 430 of file kstandardaction.cpp.
References create(), and DocumentBack.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::documentForward | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Move forward (document style menu).
Definition at line 435 of file kstandardaction.cpp.
References create(), and DocumentForward.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::editBookmarks | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Edit the application bookmarks.
Definition at line 445 of file kstandardaction.cpp.
References create(), and EditBookmarks.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::find | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Initiate a 'find' request in the current document.
Definition at line 315 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::findNext | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Find the next instance of a stored 'find'.
Definition at line 320 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::findPrev | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Find a previous instance of a stored 'find'.
Definition at line 325 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::firstPage | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Jump to the first page.
Definition at line 420 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT 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 350 of file kstandardaction.cpp.
References create(), and FitToHeight.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::fitToPage | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Fit the document view to the size of the current window.
Definition at line 340 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT 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 345 of file kstandardaction.cpp.
References create(), and FitToWidth.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::forward | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Move forward (web style menu).
Definition at line 385 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT KToggleFullScreenAction * KStandardAction::fullScreen | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QWidget * | window, | ||
| QObject * | parent ) |
Switch to/from full screen mode
Definition at line 554 of file kstandardaction.cpp.
References create(), and FullScreen.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::goTo | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Go to somewhere in general.
Definition at line 405 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::gotoLine | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Go to a specific line (dialog).
Definition at line 415 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::gotoPage | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Go to a specific page (dialog).
Definition at line 410 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::help | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Display the help.
Definition at line 593 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::helpContents | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Display the help contents.
Definition at line 598 of file kstandardaction.cpp.
References create(), and HelpContents.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::home | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Go to the "Home" position or document.
Definition at line 390 of file kstandardaction.cpp.
|
inline |
Definition at line 110 of file kstandardaction_p.h.
References ActionNone, g_rgActionInfo, and KStandardAction::KStandardActionInfo::id.
|
inlinestatic |
Definition at line 121 of file kstandardaction_p.h.
References ActionNone, g_rgActionInfo, and KStandardAction::KStandardActionInfo::id.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::keyBindings | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Display the configure key bindings dialog.
Note that you might be able to use the pre-built KisKXMLGUIFactory's function: KStandardAction::keyBindings(guiFactory(), SLOT(configureShortcuts()), actionCollection());
Definition at line 568 of file kstandardaction.cpp.
References create(), and KeyBindings.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::lastPage | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Jump to the last page.
Definition at line 425 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::mail | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Mail this document.
Definition at line 260 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT const char * KStandardAction::name | ( | StandardAction | id | ) |
This will return the internal name of a given standard action.
Definition at line 209 of file kstandardaction.cpp.
References infoPtr(), and KStandardAction::KStandardActionInfo::psName.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::next | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Scroll down one page.
Definition at line 400 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::open | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Open an existing file.
Definition at line 220 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::openNew | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Create a new document or window.
Definition at line 215 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT 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 & ).
| 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 225 of file kstandardaction.cpp.
References create(), and OpenRecent.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::paste | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Paste the contents of clipboard at the current mouse or cursor position.
Definition at line 290 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::paste | ( | QObject * | parent | ) |
Paste the contents of clipboard at the current mouse or cursor Calls paste() on the widget with the current focus.
Definition at line 491 of file kstandardaction.cpp.
References buildAutomaticAction(), paste(), and Paste.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::pasteText | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Paste the contents of clipboard at the current mouse or cursor position. Provide a button on the toolbar with the clipboard history menu if Klipper is running.
Definition at line 295 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::preferences | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Display the preferences/options dialog.
Definition at line 573 of file kstandardaction.cpp.
References create(), and Preferences.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::print | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Print the current document.
Definition at line 245 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::printPreview | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Show a print preview of the current document.
Definition at line 250 of file kstandardaction.cpp.
References create(), and PrintPreview.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::prior | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Scroll up one page.
Definition at line 395 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::quit | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
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 KisKMainWindow::queryClose() is called on any open window (to warn the user about unsaved changes for example).
Definition at line 265 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::redisplay | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Redisplay or redraw the document.
Definition at line 370 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::redo | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Redo the last operation.
Definition at line 275 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::replace | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Find and replace matches.
Definition at line 330 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::reportBug | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Open up the Report Bug dialog.
Definition at line 613 of file kstandardaction.cpp.
| QAction * KStandardAction::resetConfigurations | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Definition at line 583 of file kstandardaction.cpp.
References create(), and ResetConfigurations.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::revert | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Revert the current document to the last saved version (essentially will undo all changes).
Definition at line 240 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::save | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Save the current document.
Definition at line 230 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::saveAs | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Save the current document under a different name.
Definition at line 235 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::saveOptions | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Display the save options dialog.
Definition at line 563 of file kstandardaction.cpp.
References create(), and SaveOptions.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::selectAll | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Select all elements in the current document.
Definition at line 305 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::selectAll | ( | QObject * | parent | ) |
Calls selectAll() on the widget with the current focus.
Definition at line 501 of file kstandardaction.cpp.
References buildAutomaticAction(), selectAll(), and SelectAll.
| KRITAWIDGETUTILS_EXPORT KStandardShortcut::StandardShortcut KStandardAction::shortcutForActionId | ( | StandardAction | id | ) |
Returns the standardshortcut associated with actionId.
| id | The actionId whose associated shortcut is wanted. |
Definition at line 54 of file kstandardaction.cpp.
References KStandardAction::KStandardActionInfo::idAccel, and infoPtr().
| KRITAWIDGETUTILS_EXPORT KToggleAction * KStandardAction::showMenubar | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Show/Hide the menubar.
Definition at line 506 of file kstandardaction.cpp.
References KisIconUtils::loadIcon(), name(), and ShowMenubar.
| KRITAWIDGETUTILS_EXPORT KToggleAction * KStandardAction::showStatusbar | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Show/Hide the statusbar.
Definition at line 533 of file kstandardaction.cpp.
References name(), and ShowStatusbar.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::spelling | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Pop up the spell checker.
Definition at line 450 of file kstandardaction.cpp.
|
inline |
| KRITAWIDGETUTILS_EXPORT QStringList KStandardAction::stdNames | ( | ) |
Returns a list of all standard names. Used by KAccelManager to give those higher weight.
Definition at line 38 of file kstandardaction.cpp.
References internal_stdNames().
| QAction * KStandardAction::switchApplicationLanguage | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Definition at line 618 of file kstandardaction.cpp.
References create(), and SwitchApplicationLanguage.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::tipOfDay | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Display "Tip of the Day"
Definition at line 608 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::undo | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Undo the last operation.
Definition at line 270 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::up | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Move up (web style menu).
Definition at line 375 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::whatsThis | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Trigger the What's This cursor.
Definition at line 603 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::zoom | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Popup a zoom dialog.
Definition at line 365 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::zoomIn | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Zoom in.
Definition at line 355 of file kstandardaction.cpp.
| KRITAWIDGETUTILS_EXPORT QAction * KStandardAction::zoomOut | ( | const QObject * | recvr, |
| const char * | slot, | ||
| QObject * | parent ) |
Zoom out.
Definition at line 360 of file kstandardaction.cpp.
|
staticconstexpr |
Definition at line 32 of file kstandardaction_p.h.