KConfigWidgets

kstandardaction.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 1999,2000 Kurt Granroth <[email protected]>
3  Copyright (C) 2001,2002 Ellis Whitehead <[email protected]>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License version 2 as published by the Free Software Foundation.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 #ifndef KSTANDARDACTION_H
20 #define KSTANDARDACTION_H
21 
22 #include <QAction>
23 #include <QList>
24 
25 #include <kconfigwidgets_export.h>
26 #include <kstandardshortcut.h>
27 #include <krecentfilesaction.h>
28 #include <ktoggleaction.h>
29 #include <ktogglefullscreenaction.h>
30 
31 #include <type_traits>
32 
33 class QObject;
34 class QStringList;
35 class QWidget;
36 class QAction;
37 class KDualAction;
38 class KToggleAction;
40 
125 namespace KStandardAction
126 {
131  ActionNone,
132  // File Menu
133  New,
144  // Edit Menu
147  Cut,
156  // View Menu
165  // Go Menu
166  Up,
179  // Bookmarks Menu
182  // Tools Menu
184  // Settings Menu
188 #if KCONFIGWIDGETS_ENABLE_DEPRECATED_SINCE(5, 38)
190 #elif KCONFIGWIDGETS_BUILD_DEPRECATED_SINCE(5, 38)
191  SaveOptions_DEPRECATED_DO_NOT_USE,
192 #endif
196  // Help Menu
197 #if KCONFIGWIDGETS_ENABLE_DEPRECATED_SINCE(5, 38)
199 #elif KCONFIGWIDGETS_BUILD_DEPRECATED_SINCE(5, 38)
200  Help_DEPRECATED_DO_NOT_USE,
201 #endif
208  // Other standard actions
212 #if KCONFIGWIDGETS_ENABLE_DEPRECATED_SINCE(5, 39)
214 #elif KCONFIGWIDGETS_BUILD_DEPRECATED_SINCE(5, 39)
215  PasteText_DEPRECATED_DO_NOT_USE,
216 #endif
222 };
223 
240 KCONFIGWIDGETS_EXPORT QAction *create(StandardAction id, const QObject *recvr, const char *slot,
241  QObject *parent);
242 
246 KCONFIGWIDGETS_EXPORT QAction *_k_createInternal(StandardAction id, QObject *parent);
247 
255 #ifdef K_DOXYGEN
256 inline QAction *create(StandardAction id, const QObject *recvr, Func slot, QObject* parent)
257 #else
258 template<class Receiver, class Func>
259 inline typename std::enable_if<!std::is_convertible<Func, const char*>::value, QAction>::type *create(StandardAction id, const Receiver *recvr, Func slot, QObject *parent)
260 #endif
261 {
262  QAction *action = _k_createInternal(id, parent);
263  Qt::ConnectionType connectionType = Qt::AutoConnection;
264  if (id == ConfigureToolbars) { // bug #200815
265  connectionType = Qt::QueuedConnection;
266  }
267  QObject::connect(action, &QAction::triggered, recvr, slot, connectionType);
268  return action;
269 }
270 
271 
275 KCONFIGWIDGETS_EXPORT const char *name(StandardAction id);
276 
277 #if KCONFIGWIDGETS_ENABLE_DEPRECATED_SINCE(4, 0)
278 KCONFIGWIDGETS_DEPRECATED_VERSION(4, 0, "Use KStandardAction::name(StandardAction)")
280 inline const char *stdName(StandardAction act_enum)
281 {
282  return name(act_enum);
283 }
284 #endif
285 
290 KCONFIGWIDGETS_EXPORT QStringList stdNames();
291 
297 KCONFIGWIDGETS_EXPORT QList<StandardAction> actionIds();
298 
307 
308 
309 // we have to disable the templated function for const char* as Func, since it is ambiguous otherwise
310 // TODO: KF6: unify const char* version and new style by removing std::enable_if
311 #ifdef K_DOXYGEN
312 #define KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(name, enumValue) \
313  inline QAction *name(const QObject *recvr, Func slot, QObject *parent);
314 #else
315 #define KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(name, enumValue) \
316  template<class Receiver, class Func> \
317  inline typename std::enable_if<!std::is_convertible<Func, const char*>::value, QAction>::type *name(const Receiver *recvr, Func slot, QObject *parent) \
318  { return create(enumValue, recvr, slot, parent); }
319 #endif
320 
324 KCONFIGWIDGETS_EXPORT QAction *openNew(const QObject *recvr, const char *slot, QObject *parent);
325 
330 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(openNew, New)
331 
332 
335 KCONFIGWIDGETS_EXPORT QAction *open(const QObject *recvr, const char *slot, QObject *parent);
336 
341 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(open, Open)
342 
343 
351 KCONFIGWIDGETS_EXPORT KRecentFilesAction *openRecent(const QObject *recvr, const char *slot, QObject *parent);
352 
358 #ifdef K_DOXYGEN
359 inline KRecentFilesAction *openRecent(const QObject *recvr, Func slot, QObject *parent)
360 #else
361 template<class Receiver, class Func>
362 inline typename std::enable_if<!std::is_convertible<Func, const char*>::value, KRecentFilesAction>::type *openRecent(const Receiver *recvr, Func slot, QObject *parent)
363 #endif
364 {
365  QAction* action = _k_createInternal(OpenRecent, parent);
366  KRecentFilesAction* recentAction = qobject_cast<KRecentFilesAction*>(action);
367  Q_ASSERT(recentAction);
368  QObject::connect(recentAction, &KRecentFilesAction::urlSelected, recvr, slot);
369  return recentAction;
370 }
371 
375 KCONFIGWIDGETS_EXPORT QAction *save(const QObject *recvr, const char *slot, QObject *parent);
376 
381 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(save, Save)
382 
383 
386 KCONFIGWIDGETS_EXPORT QAction *saveAs(const QObject *recvr, const char *slot, QObject *parent);
387 
392 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(saveAs, SaveAs)
393 
394 
398 KCONFIGWIDGETS_EXPORT QAction *revert(const QObject *recvr, const char *slot, QObject *parent);
399 
405 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(revert, Revert)
406 
407 
410 KCONFIGWIDGETS_EXPORT QAction *close(const QObject *recvr, const char *slot, QObject *parent);
411 
416 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(close, Close)
417 
418 
421 KCONFIGWIDGETS_EXPORT QAction *print(const QObject *recvr, const char *slot, QObject *parent);
422 
427 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(print, Print)
428 
429 
432 KCONFIGWIDGETS_EXPORT QAction *printPreview(const QObject *recvr, const char *slot, QObject *parent);
433 
438 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(printPreview, PrintPreview)
439 
440 
443 KCONFIGWIDGETS_EXPORT QAction *mail(const QObject *recvr, const char *slot, QObject *parent);
444 
449 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(mail, Mail)
450 
451 
459 KCONFIGWIDGETS_EXPORT QAction *quit(const QObject *recvr, const char *slot, QObject *parent);
460 
466 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(quit, Quit)
467 
468 
471 KCONFIGWIDGETS_EXPORT QAction *undo(const QObject *recvr, const char *slot, QObject *parent);
472 
477 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(undo, Undo)
478 
479 
482 KCONFIGWIDGETS_EXPORT QAction *redo(const QObject *recvr, const char *slot, QObject *parent);
483 
488 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(redo, Redo)
489 
490 
494 KCONFIGWIDGETS_EXPORT QAction *cut(QObject *parent);
495 
500 KCONFIGWIDGETS_EXPORT QAction *copy(QObject *parent);
501 
506 KCONFIGWIDGETS_EXPORT QAction *paste(QObject *parent);
507 
528 KCONFIGWIDGETS_EXPORT QAction *clear(QObject *parent);
529 
533 KCONFIGWIDGETS_EXPORT QAction *selectAll(QObject *parent);
534 
538 KCONFIGWIDGETS_EXPORT QAction *cut(const QObject *recvr, const char *slot, QObject *parent);
539 
544 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(cut, Cut)
545 
546 
549 KCONFIGWIDGETS_EXPORT QAction *copy(const QObject *recvr, const char *slot, QObject *parent);
550 
555 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(copy, Copy)
556 
557 
561 KCONFIGWIDGETS_EXPORT QAction *paste(const QObject *recvr, const char *slot, QObject *parent);
562 
568 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(paste, Paste)
569 
570 #if KCONFIGWIDGETS_ENABLE_DEPRECATED_SINCE(5, 39)
571 
574 KCONFIGWIDGETS_DEPRECATED_VERSION(5, 39, "Use KStandardAction::paste(const QObject *, const char *, QObject *)")
575 KCONFIGWIDGETS_EXPORT QAction *pasteText(const QObject *recvr, const char *slot, QObject *parent);
576 #endif
577 
578 #if KCONFIGWIDGETS_ENABLE_DEPRECATED_SINCE(5, 39)
579 
583 #ifdef K_DOXYGEN
584  inline QAction *pasteText(const QObject *recvr, Func slot, QObject *parent);
585 #else
586 template<class Receiver, class Func>
587 KCONFIGWIDGETS_DEPRECATED_VERSION(5, 39, "Use KStandardAction::paste(const QObject *, Func, QObject *)")
588 inline typename std::enable_if<!std::is_convertible<Func, const char*>::value, QAction>::type *pasteText(const Receiver *recvr, Func slot, QObject *parent)
589 { return create(PasteText, recvr, slot, parent); }
590 #endif // K_DOXYGEN
591 #endif // KCONFIGWIDGETS_ENABLE_DEPRECATED_SINCE
592 
596 KCONFIGWIDGETS_EXPORT QAction *clear(const QObject *recvr, const char *slot, QObject *parent);
597 
602 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(clear, Clear)
603 
604 
607 KCONFIGWIDGETS_EXPORT QAction *selectAll(const QObject *recvr, const char *slot, QObject *parent);
608 
613 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(selectAll, SelectAll)
614 
615 
618 KCONFIGWIDGETS_EXPORT QAction *deselect(const QObject *recvr, const char *slot, QObject *parent);
619 
624 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(deselect, Deselect)
625 
626 
629 KCONFIGWIDGETS_EXPORT QAction *find(const QObject *recvr, const char *slot, QObject *parent);
630 
635 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(find, Find)
636 
637 
640 KCONFIGWIDGETS_EXPORT QAction *findNext(const QObject *recvr, const char *slot, QObject *parent);
641 
646 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(findNext, FindNext)
647 
648 
651 KCONFIGWIDGETS_EXPORT QAction *findPrev(const QObject *recvr, const char *slot, QObject *parent);
652 
657 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(findPrev, FindPrev)
658 
659 
662 KCONFIGWIDGETS_EXPORT QAction *replace(const QObject *recvr, const char *slot, QObject *parent);
663 
668 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(replace, Replace)
669 
670 
673 KCONFIGWIDGETS_EXPORT QAction *actualSize(const QObject *recvr, const char *slot, QObject *parent);
674 
679 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(actualSize, ActualSize)
680 
681 
684 KCONFIGWIDGETS_EXPORT QAction *fitToPage(const QObject *recvr, const char *slot, QObject *parent);
685 
690 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(fitToPage, FitToPage)
691 
692 
695 KCONFIGWIDGETS_EXPORT QAction *fitToWidth(const QObject *recvr, const char *slot, QObject *parent);
696 
701 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(fitToWidth, FitToWidth)
702 
703 
706 KCONFIGWIDGETS_EXPORT QAction *fitToHeight(const QObject *recvr, const char *slot, QObject *parent);
707 
712 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(fitToHeight, FitToHeight)
713 
714 
717 KCONFIGWIDGETS_EXPORT QAction *zoomIn(const QObject *recvr, const char *slot, QObject *parent);
718 
723 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(zoomIn, ZoomIn)
724 
725 
728 KCONFIGWIDGETS_EXPORT QAction *zoomOut(const QObject *recvr, const char *slot, QObject *parent);
729 
734 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(zoomOut, ZoomOut)
735 
736 
739 KCONFIGWIDGETS_EXPORT QAction *zoom(const QObject *recvr, const char *slot, QObject *parent);
740 
745 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(zoom, Zoom)
746 
747 
750 KCONFIGWIDGETS_EXPORT QAction *redisplay(const QObject *recvr, const char *slot, QObject *parent);
751 
756 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(redisplay, Redisplay)
757 
758 
761 KCONFIGWIDGETS_EXPORT QAction *up(const QObject *recvr, const char *slot, QObject *parent);
762 
767 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(up, Up)
768 
769 
772 KCONFIGWIDGETS_EXPORT QAction *back(const QObject *recvr, const char *slot, QObject *parent);
773 
778 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(back, Back)
779 
780 
783 KCONFIGWIDGETS_EXPORT QAction *forward(const QObject *recvr, const char *slot, QObject *parent);
784 
789 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(forward, Forward)
790 
791 
794 KCONFIGWIDGETS_EXPORT QAction *home(const QObject *recvr, const char *slot, QObject *parent);
795 
800 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(home, Home)
801 
802 
805 KCONFIGWIDGETS_EXPORT QAction *prior(const QObject *recvr, const char *slot, QObject *parent);
806 
811 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(prior, Prior)
812 
813 
816 KCONFIGWIDGETS_EXPORT QAction *next(const QObject *recvr, const char *slot, QObject *parent);
817 
822 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(next, Next)
823 
824 
827 KCONFIGWIDGETS_EXPORT QAction *goTo(const QObject *recvr, const char *slot, QObject *parent);
828 
833 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(goTo, Goto)
834 
835 
838 KCONFIGWIDGETS_EXPORT QAction *gotoPage(const QObject *recvr, const char *slot, QObject *parent);
839 
844 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(gotoPage, GotoPage)
845 
846 
849 KCONFIGWIDGETS_EXPORT QAction *gotoLine(const QObject *recvr, const char *slot, QObject *parent);
850 
855 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(gotoLine, GotoLine)
856 
857 
860 KCONFIGWIDGETS_EXPORT QAction *firstPage(const QObject *recvr, const char *slot, QObject *parent);
861 
866 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(firstPage, FirstPage)
867 
868 
871 KCONFIGWIDGETS_EXPORT QAction *lastPage(const QObject *recvr, const char *slot, QObject *parent);
872 
877 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(lastPage, LastPage)
878 
879 
882 KCONFIGWIDGETS_EXPORT QAction *documentBack(const QObject *recvr, const char *slot, QObject *parent);
883 
888 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(documentBack, DocumentBack)
889 
890 
893 KCONFIGWIDGETS_EXPORT QAction *documentForward(const QObject *recvr, const char *slot, QObject *parent);
894 
899 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(documentForward, DocumentForward)
900 
901 
904 KCONFIGWIDGETS_EXPORT QAction *addBookmark(const QObject *recvr, const char *slot, QObject *parent);
905 
910 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(addBookmark, AddBookmark)
911 
912 
915 KCONFIGWIDGETS_EXPORT QAction *editBookmarks(const QObject *recvr, const char *slot, QObject *parent);
916 
921 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(editBookmarks, EditBookmarks)
922 
923 
926 KCONFIGWIDGETS_EXPORT QAction *spelling(const QObject *recvr, const char *slot, QObject *parent);
927 
932 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(spelling, Spelling)
933 
934 
937 KCONFIGWIDGETS_EXPORT KToggleAction *showMenubar(const QObject *recvr, const char *slot, QObject *parent);
938 
944 #ifdef K_DOXYGEN
945 inline KToggleAction *showMenubar(const QObject *recvr, Func slot, QObject *parent)
946 #else
947 template<class Receiver, class Func>
948 inline typename std::enable_if<!std::is_convertible<Func, const char*>::value, KToggleAction>::type *showMenubar(const Receiver *recvr, Func slot, QObject *parent)
949 #endif
950 {
951  QAction* ret = create(ShowMenubar, recvr, slot, parent);
952  Q_ASSERT(qobject_cast<KToggleAction *>(ret));
953  return static_cast<KToggleAction *>(ret);
954 }
955 
959 KCONFIGWIDGETS_EXPORT KToggleAction *showStatusbar(const QObject *recvr, const char *slot, QObject *parent);
960 
965 #ifdef K_DOXYGEN
966 inline KToggleAction *showStatusbar(const QObject *recvr, Func slot, QObject *parent)
967 #else
968 template<class Receiver, class Func>
969 inline typename std::enable_if<!std::is_convertible<Func, const char*>::value, KToggleAction>::type *showStatusbar(const Receiver *recvr, Func slot, QObject *parent)
970 #endif
971 {
972  QAction* ret = create(ShowStatusbar, recvr, slot, parent);
973  Q_ASSERT(qobject_cast<KToggleAction *>(ret));
974  return static_cast<KToggleAction *>(ret);
975 }
976 
980 KCONFIGWIDGETS_EXPORT KToggleFullScreenAction *fullScreen(const QObject *recvr, const char *slot, QWidget *window, QObject *parent);
981 
986 #ifdef K_DOXYGEN
987 inline KToggleFullScreenAction *fullScreen(const QObject *recvr, Func slot, QWidget *window, QObject *parent)
988 #else
989 template<class Receiver, class Func>
990 inline typename std::enable_if<!std::is_convertible<Func, const char*>::value, KToggleFullScreenAction>::type *fullScreen(const Receiver *recvr, Func slot, QWidget *window, QObject *parent)
991 #endif
992 {
993  QAction* a = create(FullScreen, recvr, slot, parent);
994  Q_ASSERT(qobject_cast<KToggleFullScreenAction *>(a));
995  KToggleFullScreenAction *ret = static_cast<KToggleFullScreenAction *>(a);
996  ret->setWindow(window);
997  return ret;
998 }
999 
1000 #if KCONFIGWIDGETS_ENABLE_DEPRECATED_SINCE(5, 38)
1001 
1005 KCONFIGWIDGETS_DEPRECATED_VERSION(5, 38, "No usage known, candidate for removal on next ABI break")
1006 KCONFIGWIDGETS_EXPORT QAction *saveOptions(const QObject *recvr, const char *slot, QObject *parent);
1007 #endif
1008 
1009 #if KCONFIGWIDGETS_ENABLE_DEPRECATED_SINCE(5, 38)
1010 
1015 #ifdef K_DOXYGEN
1016  inline QAction *saveOptions(const QObject *recvr, Func slot, QObject *parent);
1017 #else
1018 template<class Receiver, class Func>
1019 KCONFIGWIDGETS_DEPRECATED_VERSION(5, 38, "No usage known, candidate for removal on next ABI break")
1020 KCONFIGWIDGETS_EXPORT inline typename std::enable_if<!std::is_convertible<Func, const char*>::value, QAction>::type *saveOptions(const Receiver *recvr, Func slot, QObject *parent)
1021 { return create(SaveOptions, recvr, slot, parent); }
1022 #endif // K_DOXYGEN
1023 #endif // KCONFIGWIDGETS_ENABLE_DEPRECATED_SINCE
1024 
1031 KCONFIGWIDGETS_EXPORT QAction *keyBindings(const QObject *recvr, const char *slot, QObject *parent);
1032 
1038 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(keyBindings, KeyBindings)
1039 
1040 
1043 KCONFIGWIDGETS_EXPORT QAction *preferences(const QObject *recvr, const char *slot, QObject *parent);
1044 
1049 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(preferences, Preferences)
1050 
1051 
1054 KCONFIGWIDGETS_EXPORT QAction *configureToolbars(const QObject *recvr, const char *slot, QObject *parent);
1055 
1060 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(configureToolbars, ConfigureToolbars)
1061 
1062 
1065 KCONFIGWIDGETS_EXPORT QAction *configureNotifications(const QObject *recvr, const char *slot, QObject *parent);
1066 
1071 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(configureNotifications, ConfigureNotifications)
1072 
1073 
1077 KCONFIGWIDGETS_EXPORT QAction *switchApplicationLanguage(const QObject *recvr, const char *slot, QObject *parent);
1078 
1083 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(switchApplicationLanguage, SwitchApplicationLanguage)
1084 
1085 #if KCONFIGWIDGETS_ENABLE_DEPRECATED_SINCE(5, 23)
1086 
1089 KCONFIGWIDGETS_DEPRECATED_VERSION(5, 23, "Use KStandardAction::helpContents(const QObject *, const char *, QObject *)")
1090 KCONFIGWIDGETS_EXPORT QAction *help(const QObject *recvr, const char *slot, QObject *parent);
1091 #endif
1092 
1093 #if KCONFIGWIDGETS_ENABLE_DEPRECATED_SINCE(5, 38)
1094 
1098 #ifdef K_DOXYGEN
1099  inline QAction *help(const QObject *recvr, Func slot, QObject *parent);
1100 #else
1101 template<class Receiver, class Func>
1102 KCONFIGWIDGETS_DEPRECATED_VERSION(5, 38, "Use KStandardAction::helpContents(const QObject *, Func, QObject *)")
1103 KCONFIGWIDGETS_EXPORT inline typename std::enable_if<!std::is_convertible<Func, const char*>::value, QAction>::type *help(const Receiver *recvr, Func slot, QObject *parent)
1104 { return create(Help, recvr, slot, parent); }
1105 #endif // K_DOXYGEN
1106 #endif // KCONFIGWIDGETS_ENABLE_DEPRECATED_SINCE
1107 
1111 KCONFIGWIDGETS_EXPORT QAction *helpContents(const QObject *recvr, const char *slot, QObject *parent);
1112 
1117 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(helpContents, HelpContents)
1118 
1119 
1122 KCONFIGWIDGETS_EXPORT QAction *whatsThis(const QObject *recvr, const char *slot, QObject *parent);
1123 
1128 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(whatsThis, WhatsThis)
1129 
1130 
1133 KCONFIGWIDGETS_EXPORT QAction *tipOfDay(const QObject *recvr, const char *slot, QObject *parent);
1134 
1139 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(tipOfDay, TipofDay)
1140 
1141 
1144 KCONFIGWIDGETS_EXPORT QAction *reportBug(const QObject *recvr, const char *slot, QObject *parent);
1145 
1150 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(reportBug, ReportBug)
1151 
1152 
1155 KCONFIGWIDGETS_EXPORT QAction *aboutApp(const QObject *recvr, const char *slot, QObject *parent);
1156 
1161 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(aboutApp, AboutApp)
1162 
1163 
1166 KCONFIGWIDGETS_EXPORT QAction *aboutKDE(const QObject *recvr, const char *slot, QObject *parent);
1167 
1172 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(aboutKDE, AboutKDE)
1173 
1174 
1178 KCONFIGWIDGETS_EXPORT QAction *deleteFile(const QObject *recvr, const char *slot, QObject *parent);
1179 
1184 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(deleteFile, DeleteFile)
1185 
1186 
1190 KCONFIGWIDGETS_EXPORT QAction *renameFile(const QObject *recvr, const char *slot, QObject *parent);
1191 
1196 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(renameFile, RenameFile)
1197 
1198 
1202 KCONFIGWIDGETS_EXPORT QAction *moveToTrash(const QObject *recvr, const char *slot, QObject *parent);
1203 
1208 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(moveToTrash, MoveToTrash)
1209 
1210 
1214 KCONFIGWIDGETS_EXPORT QAction *donate(const QObject *recvr, const char *slot, QObject *parent);
1215 
1220 KSTANDARDACTION_WITH_NEW_STYLE_CONNECT(donate, Donate)
1221 
1222 }
1223 
1224 #endif // KSTDACTION_H
Paste the contents of clipboard at the current mouse or cursor.
void setWindow(QWidget *window)
QAction * selectAll(const QObject *recvr, const char *slot, QObject *parent)
Select all elements in the current document.
Fit the document view to the size of the current window.
Move forward (document style menu).
Show/Hide the toolbar.
QAction * donate(const QObject *recvr, const char *slot, QObject *parent)
Open donation page on kde.org.
Display the preferences/options dialog.
QAction * forward(const QObject *recvr, const char *slot, QObject *parent)
Move forward (web style menu).
QAction * fitToHeight(const QObject *recvr, const char *slot, QObject *parent)
Fit the document view to the height of the current window.
void triggered(bool checked)
QStringList stdNames()
Returns a list of all standard names.
QAction * switchApplicationLanguage(const QObject *recvr, const char *slot, QObject *parent)
Display the Switch Application Language dialog.
QAction * mail(const QObject *recvr, const char *slot, QObject *parent)
Send the current document by mail.
QAction * goTo(const QObject *recvr, const char *slot, QObject *parent)
Jump to some specific location in the document.
QAction * cut(const QObject *recvr, const char *slot, QObject *parent)
Cut selected area and store it in the clipboard.
QAction * fitToWidth(const QObject *recvr, const char *slot, QObject *parent)
Fit the document view to the width of the current window.
Select the current zoom level.
Redo the last operation.
QList< StandardAction > actionIds()
Returns a list of all actionIds.
QAction * actualSize(const QObject *recvr, const char *slot, QObject *parent)
View the document at its actual size.
QAction * paste(const QObject *recvr, const char *slot, QObject *parent)
Paste the contents of clipboard at the current mouse or cursor position.
Pop up the spell checker.
QAction * save(const QObject *recvr, const char *slot, QObject *parent)
Save the current document.
Moves files or folders to the trash.
Revert the current document to the last saved version.
Redisplay or redraw the document.
Send the current document by mail.
QAction * fitToPage(const QObject *recvr, const char *slot, QObject *parent)
Fit the document view to the size of the current window.
Zoom out the current document.
QAction * preferences(const QObject *recvr, const char *slot, QObject *parent)
Display the preferences/options dialog.
KToggleAction * showStatusbar(const QObject *recvr, const char *slot, QObject *parent)
Show/Hide the statusbar.
Scroll up one page.
StandardAction
The standard menubar and toolbar actions.
QAction * configureNotifications(const QObject *recvr, const char *slot, QObject *parent)
Display the notifications configuration dialog.
Quit the program.
QAction * documentForward(const QObject *recvr, const char *slot, QObject *parent)
Move forward (document style menu).
QAction * clear(const QObject *recvr, const char *slot, QObject *parent)
Clear the content of the focus widget.
Save the current document under a different name.
Fit the document view to the width of the current window.
Cut selected area and store it in the clipboard.
Show a print preview of the current document.
QAction * saveAs(const QObject *recvr, const char *slot, QObject *parent)
Save the current document under a different name.
const char * name(StandardAction id)
This will return the internal name of a given standard action.
QAction * whatsThis(const QObject *recvr, const char *slot, QObject *parent)
Trigger the What&#39;s This cursor.
Display the handbook of the application.
Open up the Report Bug dialog.
Display the toolbar configuration dialog.
Copy selected area and store it in the clipboard.
Print the current document.
Undo the last operation.
QAction * saveOptions(const QObject *recvr, const char *slot, QObject *parent)
Display the save options dialog.
KStandardShortcut::StandardShortcut shortcutForActionId(StandardAction id)
Returns the standardshortcut associated with actionId.
View the document at its actual size.
QAction * revert(const QObject *recvr, const char *slot, QObject *parent)
Revert the current document to the last saved version (essentially will undo all changes).
Create a new document or window.
Permanently deletes files or folders.
QAction * spelling(const QObject *recvr, const char *slot, QObject *parent)
Pop up the spell checker.
void urlSelected(const QUrl &url)
This signal gets emitted when the user selects an URL.
Show/Hide the menubar.
Find a previous instance of a stored &#39;find&#39;.
Go to the "Home" position or document.
QAction * lastPage(const QObject *recvr, const char *slot, QObject *parent)
Jump to the last page.
QAction * reportBug(const QObject *recvr, const char *slot, QObject *parent)
Open up the Report Bug dialog.
Open donation page on kde.org.
Deselect any selected elements in the current document.
QAction * next(const QObject *recvr, const char *slot, QObject *parent)
Scroll down one page.
QAction * undo(const QObject *recvr, const char *slot, QObject *parent)
Undo the last operation.
QAction * close(const QObject *recvr, const char *slot, QObject *parent)
Close the current document.
QAction * aboutApp(const QObject *recvr, const char *slot, QObject *parent)
Display the application&#39;s About box.
Trigger the What&#39;s This cursor.
Convenience methods to access all standard KDE actions.
Move up (web style menu).
Move back (document style menu).
Close the current document.
Display the configure key bindings dialog.
QAction * up(const QObject *recvr, const char *slot, QObject *parent)
Move up (web style menu).
Jump to the first page.
Find and replace matches.
Go to a specific page.
QAction * pasteText(const QObject *recvr, const char *slot, QObject *parent)
QAction * helpContents(const QObject *recvr, const char *slot, QObject *parent)
Display the handbook of the application.
Switch to/from full screen mode.
Display the Switch Application Language dialog.
Select all elements in the current document.
QAction * home(const QObject *recvr, const char *slot, QObject *parent)
Go to the "Home" position or document.
QAction * copy(const QObject *recvr, const char *slot, QObject *parent)
Copy the selected area into the clipboard.
Initiate a &#39;find&#39; request in the current document.
Scroll down one page.
QAction * print(const QObject *recvr, const char *slot, QObject *parent)
Print the current document.
Find the next instance of a stored &#39;find&#39;.
QAction * addBookmark(const QObject *recvr, const char *slot, QObject *parent)
Add the current page to the bookmarks tree.
QAction * gotoLine(const QObject *recvr, const char *slot, QObject *parent)
Go to a specific line.
Display the notifications configuration dialog.
Save the current document.
QAction * replace(const QObject *recvr, const char *slot, QObject *parent)
Find and replace matches.
QAction * gotoPage(const QObject *recvr, const char *slot, QObject *parent)
Go to a specific page.
Move back (web style menu).
QAction * findPrev(const QObject *recvr, const char *slot, QObject *parent)
Find a previous instance of a stored &#39;find&#39;.
QAction * redisplay(const QObject *recvr, const char *slot, QObject *parent)
Redisplay or redraw the document.
Show/Hide the statusbar.
QAction * deselect(const QObject *recvr, const char *slot, QObject *parent)
Deselect any selected elements in the current document.
Fit the document view to the height of the current window.
QAction * editBookmarks(const QObject *recvr, const char *slot, QObject *parent)
Edit the application bookmarks.
Move forward (web style menu).
Open an existing file.
QAction * moveToTrash(const QObject *recvr, const char *slot, QObject *parent)
Moves files or folders to the trash.
Add the current page to the bookmarks tree.
QAction * documentBack(const QObject *recvr, const char *slot, QObject *parent)
Move back (document style menu).
QAction * zoomIn(const QObject *recvr, const char *slot, QObject *parent)
Zoom in the current document view.
Jump to the last page.
QAction * redo(const QObject *recvr, const char *slot, QObject *parent)
Redo the last operation.
QAction * quit(const QObject *recvr, const char *slot, QObject *parent)
Quit the program.
Clear the content of the focus widget.
QAction * prior(const QObject *recvr, const char *slot, QObject *parent)
Scroll up one page.
const char * stdName(StandardAction act_enum)
Edit the application bookmarks.
KRecentFilesAction * openRecent(const QObject *recvr, const char *slot, QObject *parent)
Open a recently used document.
QAction * keyBindings(const QObject *recvr, const char *slot, QObject *parent)
Display the configure key bindings dialog.
Open a recently used document.
Recent files action.
QAction * _k_createInternal(StandardAction id, QObject *parent)
QAction * tipOfDay(const QObject *recvr, const char *slot, QObject *parent)
Display "Tip of the Day".
Display the application&#39;s About box.
Display the "Tip of the Day".
Go to a specific line.
Jump to some specific location in the document.
QAction * zoom(const QObject *recvr, const char *slot, QObject *parent)
Select the current zoom level.
QAction * aboutKDE(const QObject *recvr, const char *slot, QObject *parent)
Display the About KDE dialog.
QAction * back(const QObject *recvr, const char *slot, QObject *parent)
Move back (web style menu).
Display the About KDE dialog.
QAction * renameFile(const QObject *recvr, const char *slot, QObject *parent)
Renames files or folders.
QAction * open(const QObject *recvr, const char *slot, QObject *parent)
Open an existing file.
KToggleFullScreenAction * fullScreen(const QObject *recvr, const char *slot, QWidget *window, QObject *parent)
Switch to/from full screen mode.
KToggleAction * showMenubar(const QObject *recvr, const char *slot, QObject *parent)
Show/Hide the menubar.
QAction * printPreview(const QObject *recvr, const char *slot, QObject *parent)
Show a print preview of the current document.
QAction * zoomOut(const QObject *recvr, const char *slot, QObject *parent)
Zoom out the current document view.
QAction * help(const QObject *recvr, const char *slot, QObject *parent)
QAction * find(const QObject *recvr, const char *slot, QObject *parent)
Initiate a &#39;find&#39; request in the current document.
Renames files or folders.
QAction * 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.
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QAction * deleteFile(const QObject *recvr, const char *slot, QObject *parent)
Permanently deletes files or folders.
QAction * openNew(const QObject *recvr, const char *slot, QObject *parent)
Create a new document or window.
QAction * firstPage(const QObject *recvr, const char *slot, QObject *parent)
Jump to the first page.
QAction * findNext(const QObject *recvr, const char *slot, QObject *parent)
Find the next instance of a stored &#39;find&#39;.
Zoom in the current document.
QAction * configureToolbars(const QObject *recvr, const char *slot, QObject *parent)
Display the toolbar configuration dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Jun 5 2020 22:33:13 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.