Krita Source Code Documentation
Loading...
Searching...
No Matches
kstandardaction.cpp
Go to the documentation of this file.
1/* This file is part of the KDE libraries
2 SPDX-FileCopyrightText: 1999, 2000 Kurt Granroth <granroth@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-only
5*/
6
7#include "kstandardaction.h"
8#include "kstandardaction_p.h"
9#include "moc_kstandardaction_p.cpp"
10
11#include <QActionGroup>
12#include <QApplication>
13#include <QWidget>
14
15#include <klocalizedstring.h>
16#include <kstandardshortcut.h>
17#include <kacceleratormanager.h>
18
19#include "kdualaction.h"
20#include "krecentfilesaction.h"
21#include "ktogglefullscreenaction.h"
22
23#include <kis_icon_utils.h>
24
26{
27AutomaticAction::AutomaticAction(const QIcon &icon, const QString &text, const QList<QKeySequence> &shortcut, const char *slot,
28 QObject *parent)
29 : QAction(parent)
30{
31 setText(text);
32 setIcon(icon);
33 setShortcuts(shortcut);
34 setProperty("defaultShortcuts", QVariant::fromValue(shortcut));
35 connect(this, SIGNAL(triggered()), this, slot);
36}
37
39{
40 return internal_stdNames();
41}
42
44{
46
47 for (uint i = 0; g_rgActionInfo[i].id != ActionNone; i++) {
48 result.append(g_rgActionInfo[i].id);
49 }
50
51 return result;
52}
53
54KRITAWIDGETUTILS_EXPORT KStandardShortcut::StandardShortcut shortcutForActionId(StandardAction id)
55{
56 const KStandardActionInfo *pInfo = infoPtr(id);
57 return (pInfo) ? pInfo->idAccel : KStandardShortcut::AccelNone;
58}
59
60QAction *create(StandardAction id, const QObject *recvr, const char *slot, QObject *parent)
61{
62 static bool stdNamesInitialized = false;
63
64 if (!stdNamesInitialized) {
65 KAcceleratorManager::addStandardActionNames(stdNames());
66 stdNamesInitialized = true;
67 }
68
69 QAction *pAction = 0;
70 const KStandardActionInfo *pInfo = infoPtr(id);
71
72 // qDebug() << "KStandardAction::create( " << id << "=" << (pInfo ? pInfo->psName : (const char*)0) << ", " << parent << " )"; // ellis
73
74 if (pInfo) {
75 QString sLabel, iconName = pInfo->psIconName;
76 switch (id) {
77 case Back:
78 sLabel = i18nc("go back", "&Back");
79 if (QApplication::isRightToLeft()) {
80 iconName = "go-next";
81 }
82 break;
83
84 case Forward:
85 sLabel = i18nc("go forward", "&Forward");
86 if (QApplication::isRightToLeft()) {
87 iconName = "go-previous";
88 }
89 break;
90
91 case Home:
92 sLabel = i18nc("home page", "&Home");
93 break;
94 case Help:
95 sLabel = i18nc("show help", "&Help");
96 break;
97 case Preferences:
98 case AboutApp:
99 case HelpContents: {
100 QString appDisplayName = QGuiApplication::applicationDisplayName();
101 if (appDisplayName.isEmpty()) {
102 appDisplayName = QCoreApplication::applicationName();
103 }
104 sLabel = i18n(pInfo->psLabel, appDisplayName);
105 }
106 break;
107 default:
108 sLabel = i18n(pInfo->psLabel);
109 }
110
111 if (QApplication::isRightToLeft()) {
112 switch (id) {
113 case Prior: iconName = "go-next-view-page"; break;
114 case Next: iconName = "go-previous-view-page"; break;
115 case FirstPage: iconName = "go-last-view-page"; break;
116 case LastPage: iconName = "go-first-view-page"; break;
117 case DocumentBack: iconName = "go-next"; break;
118 case DocumentForward: iconName = "go-previous"; break;
119 default: break;
120 }
121 }
122
123 QIcon icon = iconName.isEmpty() ? QIcon() : KisIconUtils::loadIcon(iconName);
124
125 switch (id) {
126 case OpenRecent:
127 pAction = new KRecentFilesAction(parent);
128 break;
129 case ShowMenubar:
130 case ShowToolbar:
131 case ShowStatusbar:
132 pAction = new QAction(parent);
133 pAction->setCheckable(true);
134 pAction->setChecked(true);
135 break;
136 case FullScreen:
137 pAction = new KToggleFullScreenAction(parent);
138 pAction->setCheckable(true);
139 break;
140 case PasteText:
141 pAction = new QAction(parent);
142 break;
143 // Same as default, but with the app icon
144 case AboutApp:
145 {
146 pAction = new QAction(parent);
147 icon = qApp->windowIcon();
148 break;
149 }
150
151 default:
152 pAction = new QAction(parent);
153 break;
154 }
155
156 switch (id) {
157 case Quit:
158 pAction->setMenuRole(QAction::QuitRole);
159 break;
160
161 case Preferences:
162 pAction->setMenuRole(QAction::PreferencesRole);
163 break;
164
165 case AboutApp:
166 pAction->setMenuRole(QAction::AboutRole);
167 break;
168
169 default:
170 pAction->setMenuRole(QAction::NoRole);
171 break;
172 }
173
174 pAction->setText(sLabel);
175 if (pInfo->psToolTip) {
176 pAction->setToolTip(i18n(pInfo->psToolTip));
177 }
178 pAction->setIcon(icon);
179
180 QList<QKeySequence> cut = KStandardShortcut::shortcut(pInfo->idAccel);
181 if (!cut.isEmpty()) {
182 // emulate KisKActionCollection::setDefaultShortcuts to allow the use of "configure shortcuts"
183 pAction->setShortcuts(cut);
184 pAction->setProperty("defaultShortcuts", QVariant::fromValue(cut));
185 }
186
187 pAction->setObjectName(pInfo->psName);
188 }
189
190 if (recvr && slot) {
191 if (id == OpenRecent) {
192 // FIXME QAction port: probably a good idea to find a cleaner way to do this
193 // Open Recent is a special case - provide the selected URL
194 QObject::connect(pAction, SIGNAL(urlSelected(QUrl)), recvr, slot);
195 } else if (id == ConfigureToolbars) { // #200815
196 QObject::connect(pAction, SIGNAL(triggered(bool)), recvr, slot, Qt::QueuedConnection);
197 } else {
198 QObject::connect(pAction, SIGNAL(triggered(bool)), recvr, slot);
199 }
200 }
201
202 if (pAction && parent && parent->inherits("KisKActionCollection")) {
203 QMetaObject::invokeMethod(parent, "addAction", Q_ARG(QString, pAction->objectName()), Q_ARG(QAction *, pAction));
204 }
205
206 return pAction;
207}
208
209const char *name(StandardAction id)
210{
211 const KStandardActionInfo *pInfo = infoPtr(id);
212 return (pInfo) ? pInfo->psName : 0;
213}
214
215QAction *openNew(const QObject *recvr, const char *slot, QObject *parent)
216{
217 return KStandardAction::create(New, recvr, slot, parent);
218}
219
220QAction *open(const QObject *recvr, const char *slot, QObject *parent)
221{
222 return KStandardAction::create(Open, recvr, slot, parent);
223}
224
225KRecentFilesAction *openRecent(const QObject *recvr, const char *slot, QObject *parent)
226{
227 return (KRecentFilesAction *) KStandardAction::create(OpenRecent, recvr, slot, parent);
228}
229
230QAction *save(const QObject *recvr, const char *slot, QObject *parent)
231{
232 return KStandardAction::create(Save, recvr, slot, parent);
233}
234
235QAction *saveAs(const QObject *recvr, const char *slot, QObject *parent)
236{
237 return KStandardAction::create(SaveAs, recvr, slot, parent);
238}
239
240QAction *revert(const QObject *recvr, const char *slot, QObject *parent)
241{
242 return KStandardAction::create(Revert, recvr, slot, parent);
243}
244
245QAction *print(const QObject *recvr, const char *slot, QObject *parent)
246{
247 return KStandardAction::create(Print, recvr, slot, parent);
248}
249
250QAction *printPreview(const QObject *recvr, const char *slot, QObject *parent)
251{
252 return KStandardAction::create(PrintPreview, recvr, slot, parent);
253}
254
255QAction *close(const QObject *recvr, const char *slot, QObject *parent)
256{
257 return KStandardAction::create(Close, recvr, slot, parent);
258}
259
260QAction *mail(const QObject *recvr, const char *slot, QObject *parent)
261{
262 return KStandardAction::create(Mail, recvr, slot, parent);
263}
264
265QAction *quit(const QObject *recvr, const char *slot, QObject *parent)
266{
267 return KStandardAction::create(Quit, recvr, slot, parent);
268}
269
270QAction *undo(const QObject *recvr, const char *slot, QObject *parent)
271{
272 return KStandardAction::create(Undo, recvr, slot, parent);
273}
274
275QAction *redo(const QObject *recvr, const char *slot, QObject *parent)
276{
277 return KStandardAction::create(Redo, recvr, slot, parent);
278}
279
280QAction *cut(const QObject *recvr, const char *slot, QObject *parent)
281{
282 return KStandardAction::create(Cut, recvr, slot, parent);
283}
284
285QAction *copy(const QObject *recvr, const char *slot, QObject *parent)
286{
287 return KStandardAction::create(Copy, recvr, slot, parent);
288}
289
290QAction *paste(const QObject *recvr, const char *slot, QObject *parent)
291{
292 return KStandardAction::create(Paste, recvr, slot, parent);
293}
294
295QAction *pasteText(const QObject *recvr, const char *slot, QObject *parent)
296{
297 return KStandardAction::create(PasteText, recvr, slot, parent);
298}
299
300QAction *clear(const QObject *recvr, const char *slot, QObject *parent)
301{
302 return KStandardAction::create(Clear, recvr, slot, parent);
303}
304
305QAction *selectAll(const QObject *recvr, const char *slot, QObject *parent)
306{
307 return KStandardAction::create(SelectAll, recvr, slot, parent);
308}
309
310QAction *deselect(const QObject *recvr, const char *slot, QObject *parent)
311{
312 return KStandardAction::create(Deselect, recvr, slot, parent);
313}
314
315QAction *find(const QObject *recvr, const char *slot, QObject *parent)
316{
317 return KStandardAction::create(Find, recvr, slot, parent);
318}
319
320QAction *findNext(const QObject *recvr, const char *slot, QObject *parent)
321{
322 return KStandardAction::create(FindNext, recvr, slot, parent);
323}
324
325QAction *findPrev(const QObject *recvr, const char *slot, QObject *parent)
326{
327 return KStandardAction::create(FindPrev, recvr, slot, parent);
328}
329
330QAction *replace(const QObject *recvr, const char *slot, QObject *parent)
331{
332 return KStandardAction::create(Replace, recvr, slot, parent);
333}
334
335QAction *actualSize(const QObject *recvr, const char *slot, QObject *parent)
336{
337 return KStandardAction::create(ActualSize, recvr, slot, parent);
338}
339
340QAction *fitToPage(const QObject *recvr, const char *slot, QObject *parent)
341{
342 return KStandardAction::create(FitToPage, recvr, slot, parent);
343}
344
345QAction *fitToWidth(const QObject *recvr, const char *slot, QObject *parent)
346{
347 return KStandardAction::create(FitToWidth, recvr, slot, parent);
348}
349
350QAction *fitToHeight(const QObject *recvr, const char *slot, QObject *parent)
351{
352 return KStandardAction::create(FitToHeight, recvr, slot, parent);
353}
354
355QAction *zoomIn(const QObject *recvr, const char *slot, QObject *parent)
356{
357 return KStandardAction::create(ZoomIn, recvr, slot, parent);
358}
359
360QAction *zoomOut(const QObject *recvr, const char *slot, QObject *parent)
361{
362 return KStandardAction::create(ZoomOut, recvr, slot, parent);
363}
364
365QAction *zoom(const QObject *recvr, const char *slot, QObject *parent)
366{
367 return KStandardAction::create(Zoom, recvr, slot, parent);
368}
369
370QAction *redisplay(const QObject *recvr, const char *slot, QObject *parent)
371{
372 return KStandardAction::create(Redisplay, recvr, slot, parent);
373}
374
375QAction *up(const QObject *recvr, const char *slot, QObject *parent)
376{
377 return KStandardAction::create(Up, recvr, slot, parent);
378}
379
380QAction *back(const QObject *recvr, const char *slot, QObject *parent)
381{
382 return KStandardAction::create(Back, recvr, slot, parent);
383}
384
385QAction *forward(const QObject *recvr, const char *slot, QObject *parent)
386{
387 return KStandardAction::create(Forward, recvr, slot, parent);
388}
389
390QAction *home(const QObject *recvr, const char *slot, QObject *parent)
391{
392 return KStandardAction::create(Home, recvr, slot, parent);
393}
394
395QAction *prior(const QObject *recvr, const char *slot, QObject *parent)
396{
397 return KStandardAction::create(Prior, recvr, slot, parent);
398}
399
400QAction *next(const QObject *recvr, const char *slot, QObject *parent)
401{
402 return KStandardAction::create(Next, recvr, slot, parent);
403}
404
405QAction *goTo(const QObject *recvr, const char *slot, QObject *parent)
406{
407 return KStandardAction::create(Goto, recvr, slot, parent);
408}
409
410QAction *gotoPage(const QObject *recvr, const char *slot, QObject *parent)
411{
412 return KStandardAction::create(GotoPage, recvr, slot, parent);
413}
414
415QAction *gotoLine(const QObject *recvr, const char *slot, QObject *parent)
416{
417 return KStandardAction::create(GotoLine, recvr, slot, parent);
418}
419
420QAction *firstPage(const QObject *recvr, const char *slot, QObject *parent)
421{
422 return KStandardAction::create(FirstPage, recvr, slot, parent);
423}
424
425QAction *lastPage(const QObject *recvr, const char *slot, QObject *parent)
426{
427 return KStandardAction::create(LastPage, recvr, slot, parent);
428}
429
430QAction *documentBack(const QObject *recvr, const char *slot, QObject *parent)
431{
432 return KStandardAction::create(DocumentBack, recvr, slot, parent);
433}
434
435QAction *documentForward(const QObject *recvr, const char *slot, QObject *parent)
436{
437 return KStandardAction::create(DocumentForward, recvr, slot, parent);
438}
439
440QAction *addBookmark(const QObject *recvr, const char *slot, QObject *parent)
441{
442 return KStandardAction::create(AddBookmark, recvr, slot, parent);
443}
444
445QAction *editBookmarks(const QObject *recvr, const char *slot, QObject *parent)
446{
447 return KStandardAction::create(EditBookmarks, recvr, slot, parent);
448}
449
450QAction *spelling(const QObject *recvr, const char *slot, QObject *parent)
451{
452 return KStandardAction::create(Spelling, recvr, slot, parent);
453}
454
455static QAction *buildAutomaticAction(QObject *parent, StandardAction id, const char *slot)
456{
457 const KStandardActionInfo *p = infoPtr(id);
458 if (!p) {
459 return 0;
460 }
461
462 AutomaticAction *action = new AutomaticAction(
463 KisIconUtils::loadIcon(p->psIconName),
464 i18n(p->psLabel),
465 KStandardShortcut::shortcut(p->idAccel),
466 slot,
467 parent);
468
469 action->setObjectName(p->psName);
470 if (p->psToolTip) {
471 action->setToolTip(i18n(p->psToolTip));
472 }
473
474 if (parent && parent->inherits("KisKActionCollection")) {
475 QMetaObject::invokeMethod(parent, "addAction", Q_ARG(QString, action->objectName()), Q_ARG(QAction *, action));
476 }
477
478 return action;
479}
480
481QAction *cut(QObject *parent)
482{
483 return buildAutomaticAction(parent, Cut, SLOT(cut()));
484}
485
486QAction *copy(QObject *parent)
487{
488 return buildAutomaticAction(parent, Copy, SLOT(copy()));
489}
490
491QAction *paste(QObject *parent)
492{
493 return buildAutomaticAction(parent, Paste, SLOT(paste()));
494}
495
496QAction *clear(QObject *parent)
497{
498 return buildAutomaticAction(parent, Clear, SLOT(clear()));
499}
500
501QAction *selectAll(QObject *parent)
502{
503 return buildAutomaticAction(parent, SelectAll, SLOT(selectAll()));
504}
505
506KToggleAction *showMenubar(const QObject *recvr, const char *slot, QObject *parent)
507{
508 KToggleAction *ret = new KToggleAction(i18n("Show &Menubar"), parent);
509 ret->setObjectName(name(ShowMenubar));
510 ret->setIcon(KisIconUtils::loadIcon("show-menu"));
511
512 // emulate KisKActionCollection::setDefaultShortcuts to allow the use of "configure shortcuts"
513// This shortcut is dangerous and should not be enabled by default.
514// ret->setShortcuts(KStandardShortcut::shortcut(KStandardShortcut::ShowMenubar));
515// ret->setProperty("defaultShortcuts", QVariant::fromValue(KStandardShortcut::shortcut(KStandardShortcut::ShowMenubar)));
516
517 ret->setWhatsThis(i18n("Show Menubar<p>"
518 "Shows the menubar again after it has been hidden</p>"));
519
520 ret->setChecked(true);
521
522 if (recvr && slot) {
523 QObject::connect(ret, SIGNAL(triggered(bool)), recvr, slot);
524 }
525
526 if (parent && parent->inherits("KisKActionCollection")) {
527 QMetaObject::invokeMethod(parent, "addAction", Q_ARG(QString, ret->objectName()), Q_ARG(QAction *, ret));
528 }
529
530 return ret;
531}
532
533KToggleAction *showStatusbar(const QObject *recvr, const char *slot, QObject *parent)
534{
535 KToggleAction *ret = new KToggleAction(i18n("Show St&atusbar"), parent);
536 ret->setObjectName(name(ShowStatusbar));
537
538 ret->setWhatsThis(i18n("Show Statusbar<p>"
539 "Shows the statusbar, which is the bar at the bottom of the window used for status information.</p>"));
540
541 ret->setChecked(true);
542
543 if (recvr && slot) {
544 QObject::connect(ret, SIGNAL(triggered(bool)), recvr, slot);
545 }
546
547 if (parent && parent->inherits("KisKActionCollection")) {
548 QMetaObject::invokeMethod(parent, "addAction", Q_ARG(QString, ret->objectName()), Q_ARG(QAction *, ret));
549 }
550
551 return ret;
552}
553
554KToggleFullScreenAction *fullScreen(const QObject *recvr, const char *slot, QWidget *window, QObject *parent)
555{
556 KToggleFullScreenAction *ret;
557 ret = static_cast< KToggleFullScreenAction * >(KStandardAction::create(FullScreen, recvr, slot, parent));
558 ret->setWindow(window);
559
560 return ret;
561}
562
563QAction *saveOptions(const QObject *recvr, const char *slot, QObject *parent)
564{
565 return KStandardAction::create(SaveOptions, recvr, slot, parent);
566}
567
568QAction *keyBindings(const QObject *recvr, const char *slot, QObject *parent)
569{
570 return KStandardAction::create(KeyBindings, recvr, slot, parent);
571}
572
573QAction *preferences(const QObject *recvr, const char *slot, QObject *parent)
574{
575 return KStandardAction::create(Preferences, recvr, slot, parent);
576}
577
578QAction *configureToolbars(const QObject *recvr, const char *slot, QObject *parent)
579{
580 return KStandardAction::create(ConfigureToolbars, recvr, slot, parent);
581}
582
583QAction *resetConfigurations(const QObject *recvr, const char *slot, QObject *parent)
584{
585 return KStandardAction::create(ResetConfigurations, recvr, slot, parent);
586}
587
588QAction *configureNotifications(const QObject *recvr, const char *slot, QObject *parent)
589{
590 return KStandardAction::create(ConfigureNotifications, recvr, slot, parent);
591}
592
593QAction *help(const QObject *recvr, const char *slot, QObject *parent)
594{
595 return KStandardAction::create(Help, recvr, slot, parent);
596}
597
598QAction *helpContents(const QObject *recvr, const char *slot, QObject *parent)
599{
600 return KStandardAction::create(HelpContents, recvr, slot, parent);
601}
602
603QAction *whatsThis(const QObject *recvr, const char *slot, QObject *parent)
604{
605 return KStandardAction::create(WhatsThis, recvr, slot, parent);
606}
607
608QAction *tipOfDay(const QObject *recvr, const char *slot, QObject *parent)
609{
610 return KStandardAction::create(TipofDay, recvr, slot, parent);
611}
612
613QAction *reportBug(const QObject *recvr, const char *slot, QObject *parent)
614{
615 return KStandardAction::create(ReportBug, recvr, slot, parent);
616}
617
618QAction *switchApplicationLanguage(const QObject *recvr, const char *slot, QObject *parent)
619{
620 return KStandardAction::create(SwitchApplicationLanguage, recvr, slot, parent);
621}
622
623QAction *aboutApp(const QObject *recvr, const char *slot, QObject *parent)
624{
625 return KStandardAction::create(AboutApp, recvr, slot, parent);
626}
627
628QAction *aboutKDE(const QObject *recvr, const char *slot, QObject *parent)
629{
630 return KStandardAction::create(AboutKDE, recvr, slot, parent);
631}
632
633}
634
const Params2D p
unsigned int uint
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
Recent files action.
AutomaticAction(const QIcon &icon, const QString &text, const QList< QKeySequence > &shortcut, const char *slot, QObject *parent)
QAction * aboutKDE(const QObject *recvr, const char *slot, QObject *parent)
QAction * replace(const QObject *recvr, const char *slot, QObject *parent)
QAction * documentForward(const QObject *recvr, const char *slot, QObject *parent)
QAction * keyBindings(const QObject *recvr, const char *slot, QObject *parent)
QAction * saveAs(const QObject *recvr, const char *slot, QObject *parent)
QAction * goTo(const QObject *recvr, const char *slot, QObject *parent)
KToggleAction * showStatusbar(const QObject *recvr, const char *slot, QObject *parent)
QAction * lastPage(const QObject *recvr, const char *slot, QObject *parent)
QAction * deselect(const QObject *recvr, const char *slot, QObject *parent)
KToggleAction * showMenubar(const QObject *recvr, const char *slot, QObject *parent)
QAction * firstPage(const QObject *recvr, const char *slot, QObject *parent)
QAction * back(const QObject *recvr, const char *slot, QObject *parent)
QAction * print(const QObject *recvr, const char *slot, QObject *parent)
QAction * fitToWidth(const QObject *recvr, const char *slot, QObject *parent)
QAction * findNext(const QObject *recvr, const char *slot, QObject *parent)
KRITAWIDGETUTILS_EXPORT KStandardShortcut::StandardShortcut shortcutForActionId(StandardAction id)
QAction * redo(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 * redisplay(const QObject *recvr, const char *slot, QObject *parent)
static QStringList internal_stdNames()
QAction * actualSize(const QObject *recvr, const char *slot, QObject *parent)
QAction * editBookmarks(const QObject *recvr, const char *slot, QObject *parent)
QAction * zoomOut(const QObject *recvr, const char *slot, QObject *parent)
QAction * close(const QObject *recvr, const char *slot, QObject *parent)
QAction * tipOfDay(const QObject *recvr, const char *slot, QObject *parent)
QAction * documentBack(const QObject *recvr, const char *slot, QObject *parent)
QAction * copy(const QObject *recvr, const char *slot, QObject *parent)
QAction * whatsThis(const QObject *recvr, const char *slot, QObject *parent)
QAction * helpContents(const QObject *recvr, const char *slot, QObject *parent)
QAction * preferences(const QObject *recvr, const char *slot, QObject *parent)
QAction * resetConfigurations(const QObject *recvr, const char *slot, QObject *parent)
QAction * reportBug(const QObject *recvr, const char *slot, QObject *parent)
QStringList stdNames()
QAction * gotoPage(const QObject *recvr, const char *slot, QObject *parent)
QAction * fitToHeight(const QObject *recvr, const char *slot, QObject *parent)
QAction * selectAll(const QObject *recvr, const char *slot, QObject *parent)
QAction * configureNotifications(const QObject *recvr, const char *slot, QObject *parent)
KRecentFilesAction * openRecent(const QObject *recvr, const char *slot, QObject *parent)
QAction * printPreview(const QObject *recvr, const char *slot, QObject *parent)
QAction * next(const QObject *recvr, const char *slot, QObject *parent)
QAction * spelling(const QObject *recvr, const char *slot, QObject *parent)
QAction * save(const QObject *recvr, const char *slot, QObject *parent)
QAction * paste(const QObject *recvr, const char *slot, QObject *parent)
QAction * mail(const QObject *recvr, const char *slot, QObject *parent)
QAction * configureToolbars(const QObject *recvr, const char *slot, QObject *parent)
QAction * forward(const QObject *recvr, const char *slot, QObject *parent)
QAction * fitToPage(const QObject *recvr, const char *slot, QObject *parent)
QAction * switchApplicationLanguage(const QObject *recvr, const char *slot, QObject *parent)
QAction * aboutApp(const QObject *recvr, const char *slot, QObject *parent)
QAction * zoomIn(const QObject *recvr, const char *slot, QObject *parent)
QAction * pasteText(const QObject *recvr, const char *slot, QObject *parent)
QAction * gotoLine(const QObject *recvr, const char *slot, QObject *parent)
QAction * quit(const QObject *recvr, const char *slot, QObject *parent)
QAction * cut(const QObject *recvr, const char *slot, QObject *parent)
const KStandardActionInfo * infoPtr(StandardAction id)
static constexpr KStandardActionInfo g_rgActionInfo[]
QAction * addBookmark(const QObject *recvr, const char *slot, QObject *parent)
QAction * zoom(const QObject *recvr, const char *slot, QObject *parent)
QAction * open(const QObject *recvr, const char *slot, QObject *parent)
QAction * find(const QObject *recvr, const char *slot, QObject *parent)
QAction * revert(const QObject *recvr, const char *slot, QObject *parent)
QAction * findPrev(const QObject *recvr, const char *slot, QObject *parent)
const char * name(StandardAction id)
KToggleFullScreenAction * fullScreen(const QObject *recvr, const char *slot, QWidget *window, QObject *parent)
QAction * help(const QObject *recvr, const char *slot, QObject *parent)
QAction * clear(const QObject *recvr, const char *slot, QObject *parent)
QAction * openNew(const QObject *recvr, const char *slot, QObject *parent)
QAction * prior(const QObject *recvr, const char *slot, QObject *parent)
QAction * saveOptions(const QObject *recvr, const char *slot, QObject *parent)
QAction * home(const QObject *recvr, const char *slot, QObject *parent)
QList< StandardAction > actionIds()
QAction * create(StandardAction id, const QObject *recvr, const char *slot, QObject *parent)
static QAction * buildAutomaticAction(QObject *parent, StandardAction id, const char *slot)
QIcon loadIcon(const QString &name)
KStandardShortcut::StandardShortcut idAccel