KConfigWidgets
kstandardaction.cpp
40 [standardShortcut, this](KStandardShortcut::StandardShortcut id, const QList<QKeySequence> &newShortcut) {
149 // qCDebug(KCONFIG_WIDGETS_LOG) << "KStandardAction::create( " << id << "=" << (pInfo ? pInfo->psName : (const char*)0) << ", " << parent << " )"; // ellis
252 "Shows the statusbar, which is the bar at the bottom of the window used for status information.</p>"));
275 // Set the text before setting the MenuRole, as on OS X setText will do some heuristic role guessing.
311 [pAction, shortcut = pInfo->idAccel](KStandardShortcut::StandardShortcut id, const QList<QKeySequence> &newShortcut) {
323 QMetaObject::invokeMethod(parent, "addAction", Q_ARG(QString, pAction->objectName()), Q_ARG(QAction *, pAction));
594 AutomaticAction *action = new AutomaticAction(QIcon::fromTheme(p->psIconName.toString()), p->psLabel.toString(), p->idAccel, slot, parent);
602 QMetaObject::invokeMethod(parent, "addAction", Q_ARG(QString, action->objectName()), Q_ARG(QAction *, action));
647KToggleFullScreenAction *fullScreen(const QObject *recvr, const char *slot, QWidget *window, QObject *parent)
650 ret = static_cast<KToggleFullScreenAction *>(KStandardAction::create(FullScreen, recvr, slot, parent));
728 return static_cast<KHamburgerMenu *>(KStandardAction::create(HamburgerMenu, recvr, slot, parent));
static void addStandardActionNames(const QStringList &names)
void shortcutChanged(KStandardShortcut::StandardShortcut id, const QList< QKeySequence > &shortcut)
void setWindow(QWidget *window)
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
Convenience methods to access all standard KDE actions.
Definition kstandardaction.cpp:23
QAction * goTo(const QObject *recvr, const char *slot, QObject *parent)
Jump to some specific location in the document.
Definition kstandardaction.cpp:537
QAction * revert(const QObject *recvr, const char *slot, QObject *parent)
Revert the current document to the last saved version (essentially will undo all changes).
Definition kstandardaction.cpp:377
QAction * lastPage(const QObject *recvr, const char *slot, QObject *parent)
Jump to the last page.
Definition kstandardaction.cpp:557
QAction * fitToWidth(const QObject *recvr, const char *slot, QObject *parent)
Fit the document view to the width of the current window.
Definition kstandardaction.cpp:477
QAction * reportBug(const QObject *recvr, const char *slot, QObject *parent)
Open up the Report Bug dialog.
Definition kstandardaction.cpp:686
QAction * fitToHeight(const QObject *recvr, const char *slot, QObject *parent)
Fit the document view to the height of the current window.
Definition kstandardaction.cpp:482
QAction * configureNotifications(const QObject *recvr, const char *slot, QObject *parent)
Display the notifications configuration dialog.
Definition kstandardaction.cpp:671
KRecentFilesAction * openRecent(const QObject *recvr, const char *slot, QObject *parent)
Open a recently used document.
Definition kstandardaction.cpp:362
QAction * deselect(const QObject *recvr, const char *slot, QObject *parent)
Deselect any selected elements in the current document.
Definition kstandardaction.cpp:442
QAction * _k_createInternal(StandardAction id, QObject *parent)
Definition kstandardaction.cpp:137
QAction * documentForward(const QObject *recvr, const char *slot, QObject *parent)
Move forward (document style menu).
Definition kstandardaction.cpp:567
QAction * cut(const QObject *recvr, const char *slot, QObject *parent)
Cut selected area and store it in the clipboard.
Definition kstandardaction.cpp:417
QAction * aboutKDE(const QObject *recvr, const char *slot, QObject *parent)
Display the About KDE dialog.
Definition kstandardaction.cpp:701
QAction * fitToPage(const QObject *recvr, const char *slot, QObject *parent)
Fit the document view to the size of the current window.
Definition kstandardaction.cpp:472
QAction * redisplay(const QObject *recvr, const char *slot, QObject *parent)
Redisplay or redraw the document.
Definition kstandardaction.cpp:502
KStandardShortcut::StandardShortcut shortcutForActionId(StandardAction id)
Returns the standardshortcut associated with actionId.
Definition kstandardaction.cpp:67
QAction * create(StandardAction id, const QObject *recvr, const char *slot, QObject *parent)
Creates an action corresponding to one of the KStandardAction::StandardAction actions,...
Definition kstandardaction.cpp:329
QAction * keyBindings(const QObject *recvr, const char *slot, QObject *parent)
Display the configure keyboard shortcuts dialog.
Definition kstandardaction.cpp:656
QAction * gotoPage(const QObject *recvr, const char *slot, QObject *parent)
Go to a specific page.
Definition kstandardaction.cpp:542
QAction * spelling(const QObject *recvr, const char *slot, QObject *parent)
Pop up the spell checker.
Definition kstandardaction.cpp:582
QList< StandardAction > actionIds()
Returns a list of all actionIds.
Definition kstandardaction.cpp:56
KToggleAction * showStatusbar(const QObject *recvr, const char *slot, QObject *parent)
Show/Hide the statusbar.
Definition kstandardaction.cpp:640
QAction * documentBack(const QObject *recvr, const char *slot, QObject *parent)
Move back (document style menu).
Definition kstandardaction.cpp:562
QAction * configureToolbars(const QObject *recvr, const char *slot, QObject *parent)
Display the toolbar configuration dialog.
Definition kstandardaction.cpp:666
QAction * firstPage(const QObject *recvr, const char *slot, QObject *parent)
Jump to the first page.
Definition kstandardaction.cpp:552
QAction * printPreview(const QObject *recvr, const char *slot, QObject *parent)
Show a print preview of the current document.
Definition kstandardaction.cpp:387
QAction * mail(const QObject *recvr, const char *slot, QObject *parent)
Send the current document by mail.
Definition kstandardaction.cpp:397
QAction * helpContents(const QObject *recvr, const char *slot, QObject *parent)
Display the handbook of the application.
Definition kstandardaction.cpp:676
QAction * switchApplicationLanguage(const QObject *recvr, const char *slot, QObject *parent)
Display the Switch Application Language dialog.
Definition kstandardaction.cpp:691
KHamburgerMenu * hamburgerMenu(const QObject *recvr, const char *slot, QObject *parent)
Opens a menu that substitutes the menubar.
Definition kstandardaction.cpp:726
QAction * actualSize(const QObject *recvr, const char *slot, QObject *parent)
View the document at its actual size.
Definition kstandardaction.cpp:467
QAction * aboutApp(const QObject *recvr, const char *slot, QObject *parent)
Display the application's About box.
Definition kstandardaction.cpp:696
QAction * donate(const QObject *recvr, const char *slot, QObject *parent)
Open donation page on kde.org.
Definition kstandardaction.cpp:721
QAction * zoom(const QObject *recvr, const char *slot, QObject *parent)
Select the current zoom level.
Definition kstandardaction.cpp:497
QAction * editBookmarks(const QObject *recvr, const char *slot, QObject *parent)
Edit the application bookmarks.
Definition kstandardaction.cpp:577
StandardShortcutWatcher * shortcutWatcher()
const QList< QKeySequence > & shortcut(StandardShortcut id)
StandardShortcut
QuitRole
void setCheckable(bool)
bool isChecked() const const
void setIcon(const QIcon &icon)
void setShortcuts(QKeySequence::StandardKey key)
void setText(const QString &text)
void setToolTip(const QString &tip)
bool isVisible() const const
void setWhatsThis(const QString &what)
applicationName
Show
Type type() const const
applicationDisplayName
bool isRightToLeft()
QIcon fromTheme(const QString &name)
void append(QList< T > &&value)
CurrencyIsoCode
QString currencySymbol(CurrencySymbolFormat format) const const
bool invokeMethod(QObject *context, Functor &&function, FunctorReturnType *ret)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
bool inherits(const char *className) const const
void installEventFilter(QObject *filterObj)
QObject * parent() const const
T qobject_cast(QObject *object)
void setObjectName(QAnyStringView name)
bool setProperty(const char *name, QVariant &&value)
QString arg(Args &&... args) const const
bool isEmpty() const const
QString toLower() const const
QueuedConnection
QVariant fromValue(T &&value)
QLayout * layout() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 11:59:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 11:59:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.