KDEUI
#include <ktoggletoolbaraction.h>

Public Member Functions | |
KToggleToolBarAction (const char *toolBarName, const QString &text, QObject *parent) | |
KToggleToolBarAction (KToolBar *toolBar, const QString &text, QObject *parent) | |
virtual | ~KToggleToolBarAction () |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
KToolBar * | toolBar () |
![]() | |
KToggleAction (const KIcon &icon, const QString &text, QObject *parent) | |
KToggleAction (const QString &text, QObject *parent) | |
KToggleAction (QObject *parent) | |
virtual | ~KToggleAction () |
void | setCheckedState (const KGuiItem &checkedItem) |
![]() | |
KAction (const KIcon &icon, const QString &text, QObject *parent) | |
KAction (const QString &text, QObject *parent) | |
KAction (QObject *parent) | |
virtual | ~KAction () |
KAuth::Action * | authAction () const |
bool | event (QEvent *) |
void | forgetGlobalShortcut () |
const KShortcut & | globalShortcut (ShortcutTypes type=ActiveShortcut) const |
bool | globalShortcutAllowed () const |
bool | isGlobalShortcutEnabled () const |
bool | isShortcutConfigurable () const |
KRockerGesture | rockerGesture (ShortcutTypes type=ActiveShortcut) const |
void | setAuthAction (const QString &actionName) |
void | setAuthAction (KAuth::Action *action) |
void | setGlobalShortcut (const KShortcut &shortcut, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut), GlobalShortcutLoading loading=Autoloading) |
void | setGlobalShortcutAllowed (bool allowed, GlobalShortcutLoading loading=Autoloading) |
void | setHelpText (const QString &text) |
void | setRockerGesture (const KRockerGesture &gest, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut)) |
void | setShapeGesture (const KShapeGesture &gest, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut)) |
void | setShortcut (const KShortcut &shortcut, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut)) |
void | setShortcut (const QKeySequence &shortcut, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut)) |
void | setShortcutConfigurable (bool configurable) |
void | setShortcuts (const QList< QKeySequence > &shortcuts, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut)) |
KShapeGesture | shapeGesture (ShortcutTypes type=ActiveShortcut) const |
KShortcut | shortcut (ShortcutTypes types=ActiveShortcut) const |
Additional Inherited Members | |
![]() | |
enum | GlobalShortcutLoading { Autoloading = 0x0 , NoAutoloading = 0x4 } |
enum | ShortcutType { ActiveShortcut = 0x1 , DefaultShortcut = 0x2 } |
![]() | |
void | authorized (KAuth::Action *action) |
void | globalShortcutChanged (const QKeySequence &) |
void | triggered (Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers) |
![]() | |
virtual void | slotToggled (bool checked) |
![]() | |
KShortcut | globalShortcut |
bool | globalShortcutAllowed |
bool | globalShortcutEnabled |
KShortcut | shortcut |
bool | shortcutConfigurable |
Detailed Description
An action that takes care of everything associated with showing or hiding a toolbar by a menu action.
It will show or hide the toolbar with the given name when activated, and check or uncheck itself if the toolbar is manually shown or hidden.
If you need to perfom some additional action when the toolbar is shown or hidden, connect to the toggled(bool) signal. It will be emitted after the toolbar's visibility has changed, whenever it changes.
Definition at line 46 of file ktoggletoolbaraction.h.
Constructor & Destructor Documentation
◆ KToggleToolBarAction() [1/2]
KToggleToolBarAction::KToggleToolBarAction | ( | const char * | toolBarName, |
const QString & | text, | ||
QObject * | parent | ||
) |
Create a KToggleToolbarAction that manages the toolbar named toolBarName.
This can be either the name of a toolbar in an xml ui file, or a toolbar programmatically created with that name.
- Parameters
-
The action's parent object.
Definition at line 53 of file ktoggletoolbaraction.cpp.
◆ KToggleToolBarAction() [2/2]
KToggleToolBarAction::KToggleToolBarAction | ( | KToolBar * | toolBar, |
const QString & | text, | ||
QObject * | parent | ||
) |
Create a KToggleToolbarAction that manages the.
- Parameters
-
toolBar. This can be either the name of a toolbar in an xml ui file, or a toolbar programmatically created with that name. toolBar the toolbar to be managed parent The action's parent object.
Definition at line 60 of file ktoggletoolbaraction.cpp.
◆ ~KToggleToolBarAction()
|
virtual |
Destroys toggle toolbar action.
Definition at line 75 of file ktoggletoolbaraction.cpp.
Member Function Documentation
◆ eventFilter()
|
virtual |
◆ toolBar()
KToolBar * KToggleToolBarAction::toolBar | ( | ) |
Returns a pointer to the tool bar it manages.
Definition at line 109 of file ktoggletoolbaraction.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.