KConfigWidgets

kstandardaction.h
1/*
2 This file is part of the KDE libraries
3 SPDX-FileCopyrightText: 1999, 2000 Kurt Granroth <granroth@kde.org>
4 SPDX-FileCopyrightText: 2001, 2002 Ellis Whitehead <ellis@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.0-only
7*/
8#ifndef KSTANDARDACTION_H
9#define KSTANDARDACTION_H
10
11#include <QAction>
12#include <QList>
13#include <QStringList>
14
15#include <KStandardShortcut>
16#include <KToggleAction>
17#include <kconfigwidgets_export.h>
18#include <khamburgermenu.h>
19#include <krecentfilesaction.h>
20#include <ktogglefullscreenaction.h>
21
22#include <optional>
23#include <type_traits>
24
25class QObject;
26class QWidget;
27class QAction;
28class KToggleAction;
30
31/**
32 * Convenience methods to access all standard KDE actions.
33 *
34 * These actions should be used instead of hardcoding menubar and
35 * toolbar items. Using these actions helps your application easily
36 * conform to the <a href="https://develop.kde.org/hig/">KDE Human Interface Guidelines</a>.
37 *
38 * All of the documentation for QAction holds for KStandardAction
39 * also. When in doubt on how things work, check the QAction
40 * documentation first.
41 * Please note that calling any of these methods automatically adds the action
42 * to the actionCollection() of the QObject given by the 'parent' parameter.
43 *
44 * <b>Simple Example:</b>\n
45 *
46 * In general, using standard actions should be a drop in replacement
47 * for regular actions. For example, if you previously had:
48 * @code
49 * QAction *newAct = new QAction(QIcon::fromTheme("document-new"),
50 * i18n("&New"),
51 * this);
52 * newAct->setShortcut(KStandardShortcut::shortcut(KStandardShortcut::New).constFirst());
53 * connect(newAct, &QAction::triggered, this, &ClassFoo::fileNew);
54 * @endcode
55 *
56 * You can replace it with:
57 * @code
58 * QAction *newAct = KStandardAction::openNew(this, &ClassFoo::fileNew, this);
59 * @endcode
60 *
61 * Alternatively you can instantiate the action using the StandardAction enums
62 * provided. This author can't think of a reason why you would want to, but, hey,
63 * if you do, here's how:
64 *
65 * \code
66 * QAction *newAct = KStandardAction::create(KStandardAction::New, this, &ClassFoo::fileNew, this);
67 * \endcode
68 *
69 * <b>Relationship with KActionCollection from KXMLGui</b>\n
70 *
71 * If a KActionCollection is passed as the parent then the action will be
72 * automatically added to that collection:
73 * \code
74 * QAction *cut = KStandardAction::cut(this, &ClassFoo::editCut, actionCollection());
75 * \endcode
76 *
77 * Each action has a unique internal name which can be queried using the
78 * name method. For example KStandardAction::name(KStandardAction::Cut)
79 * would return 'edit_cut'. This name can be used as a unique identifier
80 * for the actions. So if you wanted to add an existing standard action
81 * to an action collection you can do so like this:
82 * \code
83 * QAction *cut = KStandardAction::cut(this, &ClassFoo::editCut, this);
84 * actionCollection()->addAction(KStandardAction::name(KStandardAction::Cut), cut);
85 * \endcode
86 *
87 * You can then get a pointer to the action using
88 * \code
89 * QAction *cutPtr = actionCollection()->action(KStandardAction::name(KStandardAction::Cut));
90 * \endcode
91 *
92 * @author Kurt Granroth <granroth@kde.org>
93 */
94namespace KStandardAction
95{
96/**
97 * The standard menubar and toolbar actions.
98 */
100 ActionNone,
101 // File Menu
102 New, ///< Create a new document or window.
103 Open, ///< Open an existing file.
104 OpenRecent, ///< Open a recently used document.
105 Save, ///< Save the current document.
106 SaveAs, ///< Save the current document under a different name.
107 Revert, ///< Revert the current document to the last saved version.
108 Close, ///< Close the current document.
109 Print, ///< Print the current document.
110 PrintPreview, ///< Show a print preview of the current document.
111 Mail, ///< Send the current document by mail.
112 Quit, ///< Quit the program.
113 // Edit Menu
114 Undo, ///< Undo the last operation.
115 Redo, ///< Redo the last operation.
116 Cut, ///< Cut selected area and store it in the clipboard.
117 Copy, ///< Copy selected area and store it in the clipboard.
118 Paste, ///< Paste the contents of clipboard at the current mouse or cursor.
119 SelectAll, ///< Select all elements in the current document.
120 Deselect, ///< Deselect any selected elements in the current document.
121 Find, ///< Initiate a 'find' request in the current document.
122 FindNext, ///< Find the next instance of a stored 'find'
123 FindPrev, ///< Find a previous instance of a stored 'find'.
124 Replace, ///< Find and replace matches.
125 // View Menu
126 ActualSize, ///< View the document at its actual size.
127 FitToPage, ///< Fit the document view to the size of the current window.
128 FitToWidth, ///< Fit the document view to the width of the current window.
129 FitToHeight, ///< Fit the document view to the height of the current window.
130 ZoomIn, ///< Zoom in the current document.
131 ZoomOut, ///< Zoom out the current document.
132 Zoom, ///< Select the current zoom level.
133 Redisplay, ///< Redisplay or redraw the document.
134 // Go Menu
135 Up, ///< Move up (web style menu).
136 Back, ///< Move back (web style menu).
137 Forward, ///< Move forward (web style menu).
138 Home, ///< Go to the "Home" position or document.
139 Prior, ///< Scroll up one page.
140 Next, ///< Scroll down one page.
141 Goto, ///< Jump to some specific location in the document.
142 GotoPage, ///< Go to a specific page.
143 GotoLine, ///< Go to a specific line.
144 FirstPage, ///< Jump to the first page.
145 LastPage, ///< Jump to the last page.
146 DocumentBack, ///< Move back (document style menu).
147 DocumentForward, ///< Move forward (document style menu).
148 // Bookmarks Menu
149 AddBookmark, ///< Add the current page to the bookmarks tree.
150 EditBookmarks, ///< Edit the application bookmarks.
151 // Tools Menu
152 Spelling, ///< Pop up the spell checker.
153 // Settings Menu
154 ShowMenubar, ///< Show/Hide the menubar.
155 ShowToolbar, ///< Show/Hide the toolbar.
156 ShowStatusbar, ///< Show/Hide the statusbar.
157 KeyBindings, ///< Display the configure key bindings dialog.
158 Preferences, ///< Display the preferences/options dialog.
159 ConfigureToolbars, ///< Display the toolbar configuration dialog.
160 // Help Menu
161 HelpContents, ///< Display the handbook of the application.
162 WhatsThis, ///< Trigger the What's This cursor.
163 ReportBug, ///< Open up the Report Bug dialog.
164 AboutApp, ///< Display the application's About box.
165 AboutKDE, ///< Display the About KDE dialog.
166 // Other standard actions
167 ConfigureNotifications, ///< Display the notifications configuration dialog.
168 FullScreen, ///< Switch to/from full screen mode.
169 Clear, ///< Clear the content of the focus widget.
170 SwitchApplicationLanguage, ///< Display the Switch Application Language dialog.
171 DeleteFile, ///< Permanently deletes files or folders. @since 5.25
172 RenameFile, ///< Renames files or folders. @since 5.25
173 MoveToTrash, ///< Moves files or folders to the trash. @since 5.25
174 Donate, ///< Open donation page on kde.org. @since 5.26
175 HamburgerMenu ///< Opens a menu that substitutes the menubar. @since 5.81
177
178/**
179 * Creates an action corresponding to one of the
180 * KStandardAction::StandardAction actions, which is connected to the given
181 * object and @p slot, and is owned by @p parent.
182 *
183 * The signal that is connected to @p slot is triggered(bool), except for the case of
184 * OpenRecent standard action, which uses the urlSelected(const QUrl &) signal of
185 * KRecentFilesAction.
186 *
187 * @param id The StandardAction identifier to create a QAction for.
188 * @param recvr The QObject to receive the signal, or @c nullptr if no notification
189 * is needed.
190 * @param slot The slot to connect the signal to (remember to use the SLOT() macro).
191 * @param parent The QObject that should own the created QAction, or @c nullptr if no parent will
192 * own the QAction returned (ensure you delete it manually in this case).
193 */
194KCONFIGWIDGETS_EXPORT QAction *create(StandardAction id, const QObject *recvr, const char *slot, QObject *parent);
195
196/**
197 * @internal
198 */
199KCONFIGWIDGETS_EXPORT QAction *_k_createInternal(StandardAction id, QObject *parent);
200
201/**
202 * This overloads create() to allow using the new connect syntax
203 * @note if you use @c OpenRecent as @p id, you should manually connect to the urlSelected(const QUrl &)
204 * signal of the returned KRecentFilesAction instead or use KStandardAction::openRecent(Receiver *, Func).
205 *
206 * If not explicitly specified, @p connectionType will be AutoConnection for all actions
207 * except for ConfigureToolbars it will be QueuedConnection.
208 *
209 * @see create(StandardAction, const QObject *, const char *, QObject *)
210 * @since 5.23 (The connectionType argument was added in 5.95)
211 */
212#ifdef K_DOXYGEN
213inline QAction *create(StandardAction id, const QObject *recvr, Func slot, QObject *parent, std::optional<Qt::ConnectionType> connectionType = std::nullopt)
214#else
215template<class Receiver, class Func>
216inline typename std::enable_if<!std::is_convertible<Func, const char *>::value, QAction>::type *
217create(StandardAction id, const Receiver *recvr, Func slot, QObject *parent, std::optional<Qt::ConnectionType> connectionType = std::nullopt)
218#endif
219{
220 QAction *action = _k_createInternal(id, parent);
221 // ConfigureToolbars is special because of bug #200815
222 const Qt::ConnectionType defaultConnectionType = (id == ConfigureToolbars) ? Qt::QueuedConnection : Qt::AutoConnection;
223 QObject::connect(action, &QAction::triggered, recvr, slot, connectionType.value_or(defaultConnectionType));
224 return action;
225}
226
227/**
228 * This will return the internal name of a given standard action.
229 */
230KCONFIGWIDGETS_EXPORT QString name(StandardAction id);
231
232/**
233 * Returns a list of all standard names. Used by KAccelManager
234 * to give those higher weight.
235 */
236KCONFIGWIDGETS_EXPORT QStringList stdNames();
237
238/**
239 * Returns a list of all actionIds.
240 *
241 * @since 4.2
242 */
243KCONFIGWIDGETS_EXPORT QList<StandardAction> actionIds();
244
245/**
246 * Returns the standardshortcut associated with @a actionId.
247 *
248 * @param id The identifier whose associated shortcut is wanted.
249 *
250 * @since 4.2
251 */
253
254// clang-format off
255// we have to disable the templated function for const char* as Func, since it is ambiguous otherwise
256// TODO: KF6: unify const char* version and new style by removing std::enable_if
257#ifdef K_DOXYGEN
258#define KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(name, enumValue) \
259 inline QAction *name(const QObject *recvr, Func slot, QObject *parent);
260#else
261#define KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(name, enumValue) \
262 template<class Receiver, class Func> \
263 inline typename std::enable_if<!std::is_convertible<Func, const char*>::value, QAction>::type *name(const Receiver *recvr, Func slot, QObject *parent) \
264 { return create(enumValue, recvr, slot, parent); }
265#endif
266// clang-format on
267
268/**
269 * Create a new document or window.
270 */
271KCONFIGWIDGETS_EXPORT QAction *openNew(const QObject *recvr, const char *slot, QObject *parent);
272
273/**
274 * Create a new document or window.
275 * @since 5.23
276 */
277KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(openNew, New)
278
279/**
280 * Open an existing file.
281 */
282KCONFIGWIDGETS_EXPORT QAction *open(const QObject *recvr, const char *slot, QObject *parent);
283
284/**
285 * Open an existing file.
286 * @since 5.23
287 */
288KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(open, Open)
289
290/**
291 * Open a recently used document. The signature of the slot being called
292 * is of the form slotURLSelected( const QUrl & ).
293 * @param recvr object to receive slot
294 * @param slot The SLOT to invoke when a URL is selected. The slot's
295 * signature is slotURLSelected( const QUrl & ).
296 * @param parent parent widget
297 */
298KCONFIGWIDGETS_EXPORT KRecentFilesAction *openRecent(const QObject *recvr, const char *slot, QObject *parent);
299
300/**
301 * The same as openRecent(const QObject *, const char *, QObject *), but using new-style connect syntax
302 * @see openRecent(const QObject *, const char *, QObject *)
303 * @since 5.23
304 */
305#ifdef K_DOXYGEN
306inline KRecentFilesAction *openRecent(const QObject *recvr, Func slot, QObject *parent)
307#else
308template<class Receiver, class Func>
309inline typename std::enable_if<!std::is_convertible<Func, const char *>::value, KRecentFilesAction>::type *
310openRecent(const Receiver *recvr, Func slot, QObject *parent)
311#endif
312{
313 QAction *action = _k_createInternal(OpenRecent, parent);
314 KRecentFilesAction *recentAction = qobject_cast<KRecentFilesAction *>(action);
315 Q_ASSERT(recentAction);
316 QObject::connect(recentAction, &KRecentFilesAction::urlSelected, recvr, slot);
317 return recentAction;
318}
319
320/**
321 * Save the current document.
322 */
323KCONFIGWIDGETS_EXPORT QAction *save(const QObject *recvr, const char *slot, QObject *parent);
324
325/**
326 * Save the current document.
327 * @since 5.23
328 */
329KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(save, Save)
330
331/**
332 * Save the current document under a different name.
333 */
334KCONFIGWIDGETS_EXPORT QAction *saveAs(const QObject *recvr, const char *slot, QObject *parent);
335
336/**
337 * Save the current document under a different name.
338 * @since 5.23
339 */
340KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(saveAs, SaveAs)
341
342/**
343 * Revert the current document to the last saved version
344 * (essentially will undo all changes).
345 */
346KCONFIGWIDGETS_EXPORT QAction *revert(const QObject *recvr, const char *slot, QObject *parent);
347
348/**
349 * Revert the current document to the last saved version
350 * (essentially will undo all changes).
351 * @since 5.23
352 */
353KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(revert, Revert)
354
355/**
356 * Close the current document.
357 */
358KCONFIGWIDGETS_EXPORT QAction *close(const QObject *recvr, const char *slot, QObject *parent);
359
360/**
361 * Close the current document.
362 * @since 5.23
363 */
364KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(close, Close)
365
366/**
367 * Print the current document.
368 */
369KCONFIGWIDGETS_EXPORT QAction *print(const QObject *recvr, const char *slot, QObject *parent);
370
371/**
372 * Print the current document.
373 * @since 5.23
374 */
375KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(print, Print)
376
377/**
378 * Show a print preview of the current document.
379 */
380KCONFIGWIDGETS_EXPORT QAction *printPreview(const QObject *recvr, const char *slot, QObject *parent);
381
382/**
383 * Show a print preview of the current document.
384 * @since 5.23
385 */
386KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(printPreview, PrintPreview)
387
388/**
389 * Send the current document by mail.
390 */
391KCONFIGWIDGETS_EXPORT QAction *mail(const QObject *recvr, const char *slot, QObject *parent);
392
393/**
394 * Mail this document.
395 * @since 5.23
396 */
397KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(mail, Mail)
398
399/**
400 * Quit the program.
401 *
402 * Note that you probably want to connect this action to either QWidget::close()
403 * or QApplication::closeAllWindows(), but not QApplication::quit(), so that
404 * KMainWindow::queryClose() is called on any open window (to warn the user
405 * about unsaved changes for example).
406 */
407KCONFIGWIDGETS_EXPORT QAction *quit(const QObject *recvr, const char *slot, QObject *parent);
408
409/**
410 * Quit the program.
411 * @see quit(const QObject *recvr, const char *slot, QObject *parent)
412 * @since 5.23
413 */
414KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(quit, Quit)
415
416/**
417 * Undo the last operation.
418 */
419KCONFIGWIDGETS_EXPORT QAction *undo(const QObject *recvr, const char *slot, QObject *parent);
420
421/**
422 * Undo the last operation.
423 * @since 5.23
424 */
425KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(undo, Undo)
426
427/**
428 * Redo the last operation.
429 */
430KCONFIGWIDGETS_EXPORT QAction *redo(const QObject *recvr, const char *slot, QObject *parent);
431
432/**
433 * Redo the last operation.
434 * @since 5.23
435 */
436KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(redo, Redo)
437
438/**
439 * Cut selected area and store it in the clipboard.
440 * Calls cut() on the widget with the current focus.
441 */
442KCONFIGWIDGETS_EXPORT QAction *cut(QObject *parent);
443
444/**
445 * Copy selected area and store it in the clipboard.
446 * Calls copy() on the widget with the current focus.
447 */
448KCONFIGWIDGETS_EXPORT QAction *copy(QObject *parent);
449
450/**
451 * Paste the contents of clipboard at the current mouse or cursor
452 * Calls paste() on the widget with the current focus.
453 */
454KCONFIGWIDGETS_EXPORT QAction *paste(QObject *parent);
455
456// TODO K3ListView is long gone. Is this still relevant?
457/**
458 * Clear selected area. Calls clear() on the widget with the current focus.
459 * Note that for some widgets, this may not provide the intended behavior. For
460 * example if you make use of the code above and a K3ListView has the focus, clear()
461 * will clear all of the items in the list. If this is not the intended behavior
462 * and you want to make use of this slot, you can subclass K3ListView and reimplement
463 * this slot. For example the following code would implement a K3ListView without this
464 * behavior:
465 *
466 * \code
467 * class MyListView : public K3ListView {
468 * Q_OBJECT
469 * public:
470 * MyListView( QWidget * parent = 0, const char * name = 0, WFlags f = 0 ) : K3ListView( parent, name, f ) {}
471 * virtual ~MyListView() {}
472 * public Q_SLOTS:
473 * virtual void clear() {}
474 * };
475 * \endcode
476 */
477KCONFIGWIDGETS_EXPORT QAction *clear(QObject *parent);
478
479/**
480 * Calls selectAll() on the widget with the current focus.
481 */
482KCONFIGWIDGETS_EXPORT QAction *selectAll(QObject *parent);
483
484/**
485 * Cut selected area and store it in the clipboard.
486 */
487KCONFIGWIDGETS_EXPORT QAction *cut(const QObject *recvr, const char *slot, QObject *parent);
488
489/**
490 * Cut selected area and store it in the clipboard.
491 * @since 5.23
492 */
493KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(cut, Cut)
494
495/**
496 * Copy the selected area into the clipboard.
497 */
498KCONFIGWIDGETS_EXPORT QAction *copy(const QObject *recvr, const char *slot, QObject *parent);
499
500/**
501 * Copy the selected area into the clipboard.
502 * @since 5.23
503 */
504KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(copy, Copy)
505
506/**
507 * Paste the contents of clipboard at the current mouse or cursor
508 * position.
509 */
510KCONFIGWIDGETS_EXPORT QAction *paste(const QObject *recvr, const char *slot, QObject *parent);
511
512/**
513 * Paste the contents of clipboard at the current mouse or cursor
514 * position.
515 * @since 5.23
516 */
517KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(paste, Paste)
518
519/**
520 * Clear the content of the focus widget
521 */
522KCONFIGWIDGETS_EXPORT QAction *clear(const QObject *recvr, const char *slot, QObject *parent);
523
524/**
525 * Clear the content of the focus widget
526 * @since 5.23
527 */
528KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(clear, Clear)
529
530/**
531 * Select all elements in the current document.
532 */
533KCONFIGWIDGETS_EXPORT QAction *selectAll(const QObject *recvr, const char *slot, QObject *parent);
534
535/**
536 * Select all elements in the current document.
537 * @since 5.23
538 */
539KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(selectAll, SelectAll)
540
541/**
542 * Deselect any selected elements in the current document.
543 */
544KCONFIGWIDGETS_EXPORT QAction *deselect(const QObject *recvr, const char *slot, QObject *parent);
545
546/**
547 * Deselect any selected elements in the current document.
548 * @since 5.23
549 */
550KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(deselect, Deselect)
551
552/**
553 * Initiate a 'find' request in the current document.
554 */
555KCONFIGWIDGETS_EXPORT QAction *find(const QObject *recvr, const char *slot, QObject *parent);
556
557/**
558 * Initiate a 'find' request in the current document.
559 * @since 5.23
560 */
561KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(find, Find)
562
563/**
564 * Find the next instance of a stored 'find'.
565 */
566KCONFIGWIDGETS_EXPORT QAction *findNext(const QObject *recvr, const char *slot, QObject *parent);
567
568/**
569 * Find the next instance of a stored 'find'.
570 * @since 5.23
571 */
572KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(findNext, FindNext)
573
574/**
575 * Find a previous instance of a stored 'find'.
576 */
577KCONFIGWIDGETS_EXPORT QAction *findPrev(const QObject *recvr, const char *slot, QObject *parent);
578
579/**
580 * Find a previous instance of a stored 'find'.
581 * @since 5.23
582 */
583KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(findPrev, FindPrev)
584
585/**
586 * Find and replace matches.
587 */
588KCONFIGWIDGETS_EXPORT QAction *replace(const QObject *recvr, const char *slot, QObject *parent);
589
590/**
591 * Find and replace matches.
592 * @since 5.23
593 */
594KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(replace, Replace)
595
596/**
597 * View the document at its actual size.
598 */
599KCONFIGWIDGETS_EXPORT QAction *actualSize(const QObject *recvr, const char *slot, QObject *parent);
600
601/**
602 * View the document at its actual size.
603 * @since 5.23
604 */
605KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(actualSize, ActualSize)
606
607/**
608 * Fit the document view to the size of the current window.
609 */
610KCONFIGWIDGETS_EXPORT QAction *fitToPage(const QObject *recvr, const char *slot, QObject *parent);
611
612/**
613 * Fit the document view to the size of the current window.
614 * @since 5.23
615 */
616KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(fitToPage, FitToPage)
617
618/**
619 * Fit the document view to the width of the current window.
620 */
621KCONFIGWIDGETS_EXPORT QAction *fitToWidth(const QObject *recvr, const char *slot, QObject *parent);
622
623/**
624 * Fit the document view to the width of the current window.
625 * @since 5.23
626 */
627KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(fitToWidth, FitToWidth)
628
629/**
630 * Fit the document view to the height of the current window.
631 */
632KCONFIGWIDGETS_EXPORT QAction *fitToHeight(const QObject *recvr, const char *slot, QObject *parent);
633
634/**
635 * Fit the document view to the height of the current window.
636 * @since 5.23
637 */
638KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(fitToHeight, FitToHeight)
639
640/**
641 * Zoom in the current document view.
642 */
643KCONFIGWIDGETS_EXPORT QAction *zoomIn(const QObject *recvr, const char *slot, QObject *parent);
644
645/**
646 * Zoom in the current document view.
647 * @since 5.23
648 */
649KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(zoomIn, ZoomIn)
650
651/**
652 * Zoom out the current document view.
653 */
654KCONFIGWIDGETS_EXPORT QAction *zoomOut(const QObject *recvr, const char *slot, QObject *parent);
655
656/**
657 * Zoom out the current document view.
658 * @since 5.23
659 */
660KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(zoomOut, ZoomOut)
661
662/**
663 * Select the current zoom level.
664 */
665KCONFIGWIDGETS_EXPORT QAction *zoom(const QObject *recvr, const char *slot, QObject *parent);
666
667/**
668 * Select the current zoom level.
669 * @since 5.23
670 */
671KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(zoom, Zoom)
672
673/**
674 * Redisplay or redraw the document.
675 */
676KCONFIGWIDGETS_EXPORT QAction *redisplay(const QObject *recvr, const char *slot, QObject *parent);
677
678/**
679 * Redisplay or redraw the document.
680 * @since 5.23
681 */
682KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(redisplay, Redisplay)
683
684/**
685 * Move up (web style menu).
686 */
687KCONFIGWIDGETS_EXPORT QAction *up(const QObject *recvr, const char *slot, QObject *parent);
688
689/**
690 * Move up (web style menu).
691 * @since 5.23
692 */
693KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(up, Up)
694
695/**
696 * Move back (web style menu).
697 */
698KCONFIGWIDGETS_EXPORT QAction *back(const QObject *recvr, const char *slot, QObject *parent);
699
700/**
701 * Move back (web style menu).
702 * @since 5.23
703 */
704KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(back, Back)
705
706/**
707 * Move forward (web style menu).
708 */
709KCONFIGWIDGETS_EXPORT QAction *forward(const QObject *recvr, const char *slot, QObject *parent);
710
711/**
712 * Move forward (web style menu).
713 * @since 5.23
714 */
715KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(forward, Forward)
716
717/**
718 * Go to the "Home" position or document.
719 */
720KCONFIGWIDGETS_EXPORT QAction *home(const QObject *recvr, const char *slot, QObject *parent);
721
722/**
723 * Go to the "Home" position or document.
724 * @since 5.23
725 */
726KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(home, Home)
727
728/**
729 * Scroll up one page.
730 */
731KCONFIGWIDGETS_EXPORT QAction *prior(const QObject *recvr, const char *slot, QObject *parent);
732
733/**
734 * Scroll up one page.
735 * @since 5.23
736 */
737KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(prior, Prior)
738
739/**
740 * Scroll down one page.
741 */
742KCONFIGWIDGETS_EXPORT QAction *next(const QObject *recvr, const char *slot, QObject *parent);
743
744/**
745 * Scroll down one page.
746 * @since 5.23
747 */
748KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(next, Next)
749
750/**
751 * Jump to some specific location in the document.
752 */
753KCONFIGWIDGETS_EXPORT QAction *goTo(const QObject *recvr, const char *slot, QObject *parent);
754
755/**
756 * Jump to some specific location in the document.
757 * @since 5.23
758 */
759KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(goTo, Goto)
760
761/**
762 * Go to a specific page.
763 */
764KCONFIGWIDGETS_EXPORT QAction *gotoPage(const QObject *recvr, const char *slot, QObject *parent);
765
766/**
767 * Go to a specific page.
768 * @since 5.23
769 */
770KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(gotoPage, GotoPage)
771
772/**
773 * Go to a specific line.
774 */
775KCONFIGWIDGETS_EXPORT QAction *gotoLine(const QObject *recvr, const char *slot, QObject *parent);
776
777/**
778 * Go to a specific line.
779 * @since 5.23
780 */
781KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(gotoLine, GotoLine)
782
783/**
784 * Jump to the first page.
785 */
786KCONFIGWIDGETS_EXPORT QAction *firstPage(const QObject *recvr, const char *slot, QObject *parent);
787
788/**
789 * Jump to the first page.
790 * @since 5.23
791 */
792KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(firstPage, FirstPage)
793
794/**
795 * Jump to the last page.
796 */
797KCONFIGWIDGETS_EXPORT QAction *lastPage(const QObject *recvr, const char *slot, QObject *parent);
798
799/**
800 * Jump to the last page.
801 * @since 5.23
802 */
803KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(lastPage, LastPage)
804
805/**
806 * Move back (document style menu).
807 */
808KCONFIGWIDGETS_EXPORT QAction *documentBack(const QObject *recvr, const char *slot, QObject *parent);
809
810/**
811 * Move back (document style menu).
812 * @since 5.23
813 */
814KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(documentBack, DocumentBack)
815
816/**
817 * Move forward (document style menu).
818 */
819KCONFIGWIDGETS_EXPORT QAction *documentForward(const QObject *recvr, const char *slot, QObject *parent);
820
821/**
822 * Move forward (document style menu).
823 * @since 5.23
824 */
825KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(documentForward, DocumentForward)
826
827/**
828 * Add the current page to the bookmarks tree.
829 */
830KCONFIGWIDGETS_EXPORT QAction *addBookmark(const QObject *recvr, const char *slot, QObject *parent);
831
832/**
833 * Add the current page to the bookmarks tree.
834 * @since 5.23
835 */
836KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(addBookmark, AddBookmark)
837
838/**
839 * Edit the application bookmarks.
840 */
841KCONFIGWIDGETS_EXPORT QAction *editBookmarks(const QObject *recvr, const char *slot, QObject *parent);
842
843/**
844 * Edit the application bookmarks.
845 * @since 5.23
846 */
847KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(editBookmarks, EditBookmarks)
848
849/**
850 * Pop up the spell checker.
851 */
852KCONFIGWIDGETS_EXPORT QAction *spelling(const QObject *recvr, const char *slot, QObject *parent);
853
854/**
855 * Pop up the spell checker.
856 * @since 5.23
857 */
858KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(spelling, Spelling)
859
860/**
861 * Show/Hide the menubar.
862 */
863KCONFIGWIDGETS_EXPORT KToggleAction *showMenubar(const QObject *recvr, const char *slot, QObject *parent);
864
865/**
866 * The same as showMenubar(const QObject *, const char *, QObject *), but using new-style connect syntax
867 * @see showMenubar(const QObject *, const char *, QObject *)
868 * @since 5.23
869 */
870#ifdef K_DOXYGEN
871inline KToggleAction *showMenubar(const QObject *recvr, Func slot, QObject *parent)
872#else
873template<class Receiver, class Func>
874inline typename std::enable_if<!std::is_convertible<Func, const char *>::value, KToggleAction>::type *
875showMenubar(const Receiver *recvr, Func slot, QObject *parent)
876#endif
877{
878 QAction *ret = create(ShowMenubar, recvr, slot, parent);
879 Q_ASSERT(qobject_cast<KToggleAction *>(ret));
880 return static_cast<KToggleAction *>(ret);
881}
882
883/**
884 * Show/Hide the statusbar.
885 */
886KCONFIGWIDGETS_EXPORT KToggleAction *showStatusbar(const QObject *recvr, const char *slot, QObject *parent);
887
888/**
889 * Show/Hide the statusbar.
890 * @since 5.23
891 */
892#ifdef K_DOXYGEN
893inline KToggleAction *showStatusbar(const QObject *recvr, Func slot, QObject *parent)
894#else
895template<class Receiver, class Func>
896inline typename std::enable_if<!std::is_convertible<Func, const char *>::value, KToggleAction>::type *
897showStatusbar(const Receiver *recvr, Func slot, QObject *parent)
898#endif
899{
900 QAction *ret = create(ShowStatusbar, recvr, slot, parent);
901 Q_ASSERT(qobject_cast<KToggleAction *>(ret));
902 return static_cast<KToggleAction *>(ret);
903}
904
905/**
906 * Switch to/from full screen mode
907 */
908KCONFIGWIDGETS_EXPORT KToggleFullScreenAction *fullScreen(const QObject *recvr, const char *slot, QWidget *window, QObject *parent);
909
910/**
911 * Switch to/from full screen mode
912 * @since 5.23
913 */
914#ifdef K_DOXYGEN
915inline KToggleFullScreenAction *fullScreen(const QObject *recvr, Func slot, QWidget *window, QObject *parent)
916#else
917template<class Receiver, class Func>
918inline typename std::enable_if<!std::is_convertible<Func, const char *>::value, KToggleFullScreenAction>::type *
919fullScreen(const Receiver *recvr, Func slot, QWidget *window, QObject *parent)
920#endif
921{
922 QAction *a = create(FullScreen, recvr, slot, parent);
923 Q_ASSERT(qobject_cast<KToggleFullScreenAction *>(a));
924 KToggleFullScreenAction *ret = static_cast<KToggleFullScreenAction *>(a);
925 ret->setWindow(window);
926 return ret;
927}
928
929/**
930 * Display the configure keyboard shortcuts dialog.
931 *
932 * Note that you might be able to use the pre-built KXMLGUIFactory's function:
933 * @code
934 * KStandardAction::keyBindings(guiFactory(), &KXMLGUIFactory::showConfigureShortcutsDialog, actionCollection());
935 * @endcode
936 *
937 */
938KCONFIGWIDGETS_EXPORT QAction *keyBindings(const QObject *recvr, const char *slot, QObject *parent);
939
940/**
941 * Display the configure key bindings dialog.
942 * @see keyBindings(const QObject *recvr, const char *slot, QObject *parent)
943 * @since 5.23
944 */
945KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(keyBindings, KeyBindings)
946
947/**
948 * Display the preferences/options dialog.
949 */
950KCONFIGWIDGETS_EXPORT QAction *preferences(const QObject *recvr, const char *slot, QObject *parent);
951
952/**
953 * Display the preferences/options dialog.
954 * @since 5.23
955 */
956KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(preferences, Preferences)
957
958/**
959 * Display the toolbar configuration dialog.
960 */
961KCONFIGWIDGETS_EXPORT QAction *configureToolbars(const QObject *recvr, const char *slot, QObject *parent);
962
963/**
964 * Display the toolbar configuration dialog.
965 * @since 5.23
966 */
967KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(configureToolbars, ConfigureToolbars)
968
969/**
970 * Display the notifications configuration dialog.
971 */
972KCONFIGWIDGETS_EXPORT QAction *configureNotifications(const QObject *recvr, const char *slot, QObject *parent);
973
974/**
975 * Display the notifications configuration dialog.
976 * @since 5.23
977 */
978KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(configureNotifications, ConfigureNotifications)
979
980/**
981 * Display the Switch Application Language dialog.
982 * @since 5.67
983 */
984KCONFIGWIDGETS_EXPORT QAction *switchApplicationLanguage(const QObject *recvr, const char *slot, QObject *parent);
985
986/**
987 * Display the Switch Application Language dialog.
988 * @since 5.67
989 */
990KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(switchApplicationLanguage, SwitchApplicationLanguage)
991
992/**
993 * Display the handbook of the application.
994 */
995KCONFIGWIDGETS_EXPORT QAction *helpContents(const QObject *recvr, const char *slot, QObject *parent);
996
997/**
998 * Display the handbook of the application.
999 * @since 5.23
1000 */
1001KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(helpContents, HelpContents)
1002
1003/**
1004 * Trigger the What's This cursor.
1005 */
1006KCONFIGWIDGETS_EXPORT QAction *whatsThis(const QObject *recvr, const char *slot, QObject *parent);
1007
1008/**
1009 * Trigger the What's This cursor.
1010 * @since 5.23
1011 */
1012KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(whatsThis, WhatsThis)
1013
1014/**
1015 * Open up the Report Bug dialog.
1016 */
1017KCONFIGWIDGETS_EXPORT QAction *reportBug(const QObject *recvr, const char *slot, QObject *parent);
1018
1019/**
1020 * Open up the Report Bug dialog.
1021 * @since 5.23
1022 */
1023KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(reportBug, ReportBug)
1024
1025/**
1026 * Display the application's About box.
1027 */
1028KCONFIGWIDGETS_EXPORT QAction *aboutApp(const QObject *recvr, const char *slot, QObject *parent);
1029
1030/**
1031 * Display the application's About box.
1032 * @since 5.23
1033 */
1034KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(aboutApp, AboutApp)
1035
1036/**
1037 * Display the About KDE dialog.
1038 */
1039KCONFIGWIDGETS_EXPORT QAction *aboutKDE(const QObject *recvr, const char *slot, QObject *parent);
1040
1041/**
1042 * Display the About KDE dialog.
1043 * @since 5.23
1044 */
1045KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(aboutKDE, AboutKDE)
1046
1047/**
1048 * Permanently deletes files or folders.
1049 * @since 5.25
1050 */
1051KCONFIGWIDGETS_EXPORT QAction *deleteFile(const QObject *recvr, const char *slot, QObject *parent);
1052
1053/**
1054 * Permanently deletes files or folders.
1055 * @since 5.25
1056 */
1057KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(deleteFile, DeleteFile)
1058
1059/**
1060 * Renames files or folders.
1061 * @since 5.25
1062 */
1063KCONFIGWIDGETS_EXPORT QAction *renameFile(const QObject *recvr, const char *slot, QObject *parent);
1064
1065/**
1066 * Renames files or folders.
1067 * @since 5.25
1068 */
1069KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(renameFile, RenameFile)
1070
1071/**
1072 * Moves files or folders to the trash.
1073 * @since 5.25
1074 */
1075KCONFIGWIDGETS_EXPORT QAction *moveToTrash(const QObject *recvr, const char *slot, QObject *parent);
1076
1077/**
1078 * Moves files or folders to the trash.
1079 * @since 5.25
1080 */
1081KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(moveToTrash, MoveToTrash)
1082
1083/**
1084 * Open donation page on kde.org.
1085 * @since 5.26
1086 */
1087KCONFIGWIDGETS_EXPORT QAction *donate(const QObject *recvr, const char *slot, QObject *parent);
1088
1089/**
1090 * Open donation page on kde.org.
1091 * @since 5.26
1092 */
1093KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(donate, Donate)
1094
1095/**
1096 * Opens a menu that substitutes the menubar.
1097 * @since 5.81
1098 */
1099KCONFIGWIDGETS_EXPORT KHamburgerMenu *hamburgerMenu(const QObject *recvr, const char *slot, QObject *parent);
1100
1101/**
1102 * Opens a menu that substitutes the menubar.
1103 * @since 5.81
1104 */
1105KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(hamburgerMenu, HamburgerMenu)
1106
1107}
1108
1109#endif // KSTDACTION_H
A menu that substitutes a menu bar when necessary.
Recent files action.
void urlSelected(const QUrl &url)
This signal gets emitted when the user selects an URL.
void setWindow(QWidget *window)
Convenience methods to access all standard KDE actions.
QAction * goTo(const QObject *recvr, const char *slot, QObject *parent)
Jump to some specific location in the document.
QAction * up(const QObject *recvr, const char *slot, QObject *parent)
Move up (web style menu).
QAction * revert(const QObject *recvr, const char *slot, QObject *parent)
Revert the current document to the last saved version (essentially will undo all changes).
QAction * lastPage(const QObject *recvr, const char *slot, QObject *parent)
Jump to the last page.
QAction * deleteFile(const QObject *recvr, const char *slot, QObject *parent)
Permanently deletes files or folders.
QAction * fitToWidth(const QObject *recvr, const char *slot, QObject *parent)
Fit the document view to the width of the current window.
QAction * home(const QObject *recvr, const char *slot, QObject *parent)
Go to the "Home" position or document.
QAction * prior(const QObject *recvr, const char *slot, QObject *parent)
Scroll up one page.
KToggleAction * showMenubar(const QObject *recvr, const char *slot, QObject *parent)
Show/Hide the menubar.
QAction * preferences(const QObject *recvr, const char *slot, QObject *parent)
Display the preferences/options dialog.
QAction * paste(const QObject *recvr, const char *slot, QObject *parent)
Paste the contents of clipboard at the current mouse or cursor position.
QAction * replace(const QObject *recvr, const char *slot, QObject *parent)
Find and replace matches.
QAction * openNew(const QObject *recvr, const char *slot, QObject *parent)
Create a new document or window.
QAction * reportBug(const QObject *recvr, const char *slot, QObject *parent)
Open up the Report Bug dialog.
QAction * fitToHeight(const QObject *recvr, const char *slot, QObject *parent)
Fit the document view to the height of the current window.
QAction * configureNotifications(const QObject *recvr, const char *slot, QObject *parent)
Display the notifications configuration dialog.
KRecentFilesAction * openRecent(const QObject *recvr, const char *slot, QObject *parent)
Open a recently used document.
QAction * zoomIn(const QObject *recvr, const char *slot, QObject *parent)
Zoom in the current document view.
QAction * close(const QObject *recvr, const char *slot, QObject *parent)
Close the current document.
QAction * forward(const QObject *recvr, const char *slot, QObject *parent)
Move forward (web style menu).
QAction * deselect(const QObject *recvr, const char *slot, QObject *parent)
Deselect any selected elements in the current document.
QAction * _k_createInternal(StandardAction id, QObject *parent)
QAction * documentForward(const QObject *recvr, const char *slot, QObject *parent)
Move forward (document style menu).
QAction * cut(const QObject *recvr, const char *slot, QObject *parent)
Cut selected area and store it in the clipboard.
QAction * undo(const QObject *recvr, const char *slot, QObject *parent)
Undo the last operation.
QAction * aboutKDE(const QObject *recvr, const char *slot, QObject *parent)
Display the About KDE dialog.
QString name(StandardAction id)
This will return the internal name of a given standard action.
QAction * findPrev(const QObject *recvr, const char *slot, QObject *parent)
Find a previous instance of a stored 'find'.
QAction * fitToPage(const QObject *recvr, const char *slot, QObject *parent)
Fit the document view to the size of the current window.
QStringList stdNames()
Returns a list of all standard names.
QAction * renameFile(const QObject *recvr, const char *slot, QObject *parent)
Renames files or folders.
QAction * redisplay(const QObject *recvr, const char *slot, QObject *parent)
Redisplay or redraw the document.
KStandardShortcut::StandardShortcut shortcutForActionId(StandardAction id)
Returns the standardshortcut associated with actionId.
QAction * create(StandardAction id, const QObject *recvr, const char *slot, QObject *parent)
Creates an action corresponding to one of the KStandardAction::StandardAction actions,...
QAction * keyBindings(const QObject *recvr, const char *slot, QObject *parent)
Display the configure keyboard shortcuts dialog.
QAction * copy(const QObject *recvr, const char *slot, QObject *parent)
Copy the selected area into the clipboard.
QAction * gotoPage(const QObject *recvr, const char *slot, QObject *parent)
Go to a specific page.
QAction * spelling(const QObject *recvr, const char *slot, QObject *parent)
Pop up the spell checker.
QAction * zoomOut(const QObject *recvr, const char *slot, QObject *parent)
Zoom out the current document view.
QList< StandardAction > actionIds()
Returns a list of all actionIds.
QAction * redo(const QObject *recvr, const char *slot, QObject *parent)
Redo the last operation.
QAction * selectAll(const QObject *recvr, const char *slot, QObject *parent)
Select all elements in the current document.
KToggleAction * showStatusbar(const QObject *recvr, const char *slot, QObject *parent)
Show/Hide the statusbar.
QAction * save(const QObject *recvr, const char *slot, QObject *parent)
Save the current document.
QAction * back(const QObject *recvr, const char *slot, QObject *parent)
Move back (web style menu).
QAction * documentBack(const QObject *recvr, const char *slot, QObject *parent)
Move back (document style menu).
QAction * configureToolbars(const QObject *recvr, const char *slot, QObject *parent)
Display the toolbar configuration dialog.
StandardAction
The standard menubar and toolbar actions.
@ Revert
Revert the current document to the last saved version.
@ Donate
Open donation page on kde.org.
@ DocumentForward
Move forward (document style menu).
@ Save
Save the current document.
@ Prior
Scroll up one page.
@ ShowMenubar
Show/Hide the menubar.
@ SelectAll
Select all elements in the current document.
@ Goto
Jump to some specific location in the document.
@ PrintPreview
Show a print preview of the current document.
@ Copy
Copy selected area and store it in the clipboard.
@ KeyBindings
Display the configure key bindings dialog.
@ ShowToolbar
Show/Hide the toolbar.
@ WhatsThis
Trigger the What's This cursor.
@ AboutApp
Display the application's About box.
@ SwitchApplicationLanguage
Display the Switch Application Language dialog.
@ Cut
Cut selected area and store it in the clipboard.
@ ConfigureToolbars
Display the toolbar configuration dialog.
@ Quit
Quit the program.
@ ZoomIn
Zoom in the current document.
@ GotoLine
Go to a specific line.
@ AboutKDE
Display the About KDE dialog.
@ EditBookmarks
Edit the application bookmarks.
@ FitToWidth
Fit the document view to the width of the current window.
@ GotoPage
Go to a specific page.
@ Back
Move back (web style menu).
@ Undo
Undo the last operation.
@ ZoomOut
Zoom out the current document.
@ HelpContents
Display the handbook of the application.
@ ShowStatusbar
Show/Hide the statusbar.
@ Spelling
Pop up the spell checker.
@ Find
Initiate a 'find' request in the current document.
@ Print
Print the current document.
@ AddBookmark
Add the current page to the bookmarks tree.
@ DeleteFile
Permanently deletes files or folders.
@ FindNext
Find the next instance of a stored 'find'.
@ Redo
Redo the last operation.
@ Home
Go to the "Home" position or document.
@ FindPrev
Find a previous instance of a stored 'find'.
@ DocumentBack
Move back (document style menu).
@ RenameFile
Renames files or folders.
@ SaveAs
Save the current document under a different name.
@ Mail
Send the current document by mail.
@ Zoom
Select the current zoom level.
@ Paste
Paste the contents of clipboard at the current mouse or cursor.
@ ReportBug
Open up the Report Bug dialog.
@ ActualSize
View the document at its actual size.
@ HamburgerMenu
Opens a menu that substitutes the menubar.
@ Replace
Find and replace matches.
@ Open
Open an existing file.
@ Clear
Clear the content of the focus widget.
@ Deselect
Deselect any selected elements in the current document.
@ Forward
Move forward (web style menu).
@ New
Create a new document or window.
@ FullScreen
Switch to/from full screen mode.
@ MoveToTrash
Moves files or folders to the trash.
@ FirstPage
Jump to the first page.
@ Preferences
Display the preferences/options dialog.
@ Redisplay
Redisplay or redraw the document.
@ Up
Move up (web style menu).
@ Close
Close the current document.
@ Next
Scroll down one page.
@ OpenRecent
Open a recently used document.
@ FitToHeight
Fit the document view to the height of the current window.
@ ConfigureNotifications
Display the notifications configuration dialog.
@ LastPage
Jump to the last page.
@ FitToPage
Fit the document view to the size of the current window.
QAction * firstPage(const QObject *recvr, const char *slot, QObject *parent)
Jump to the first page.
QAction * moveToTrash(const QObject *recvr, const char *slot, QObject *parent)
Moves files or folders to the trash.
QAction * printPreview(const QObject *recvr, const char *slot, QObject *parent)
Show a print preview of the current document.
QAction * next(const QObject *recvr, const char *slot, QObject *parent)
Scroll down one page.
QAction * mail(const QObject *recvr, const char *slot, QObject *parent)
Send the current document by mail.
QAction * helpContents(const QObject *recvr, const char *slot, QObject *parent)
Display the handbook of the application.
QAction * switchApplicationLanguage(const QObject *recvr, const char *slot, QObject *parent)
Display the Switch Application Language dialog.
QAction * findNext(const QObject *recvr, const char *slot, QObject *parent)
Find the next instance of a stored 'find'.
KHamburgerMenu * hamburgerMenu(const QObject *recvr, const char *slot, QObject *parent)
Opens a menu that substitutes the menubar.
QAction * open(const QObject *recvr, const char *slot, QObject *parent)
Open an existing file.
QAction * actualSize(const QObject *recvr, const char *slot, QObject *parent)
View the document at its actual size.
QAction * gotoLine(const QObject *recvr, const char *slot, QObject *parent)
Go to a specific line.
QAction * aboutApp(const QObject *recvr, const char *slot, QObject *parent)
Display the application's About box.
QAction * find(const QObject *recvr, const char *slot, QObject *parent)
Initiate a 'find' request in the current document.
QAction * clear(const QObject *recvr, const char *slot, QObject *parent)
Clear the content of the focus widget.
QAction * donate(const QObject *recvr, const char *slot, QObject *parent)
Open donation page on kde.org.
QAction * zoom(const QObject *recvr, const char *slot, QObject *parent)
Select the current zoom level.
KToggleFullScreenAction * fullScreen(const QObject *recvr, const char *slot, QWidget *window, QObject *parent)
Switch to/from full screen mode.
QAction * saveAs(const QObject *recvr, const char *slot, QObject *parent)
Save the current document under a different name.
QAction * editBookmarks(const QObject *recvr, const char *slot, QObject *parent)
Edit the application bookmarks.
QAction * quit(const QObject *recvr, const char *slot, QObject *parent)
Quit the program.
QAction * addBookmark(const QObject *recvr, const char *slot, QObject *parent)
Add the current page to the bookmarks tree.
QAction * whatsThis(const QObject *recvr, const char *slot, QObject *parent)
Trigger the What's This cursor.
QAction * print(const QObject *recvr, const char *slot, QObject *parent)
Print the current document.
void triggered(bool checked)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
ConnectionType
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:13:01 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.