![]() |
Carousel
|
This class is a wrapper for the toggle actions. More...
#include <ToggleActionWrapper.h>
Inherits Operation.
Public Member Functions | |
ToggleActionWrapper (QAction *toogleAction) | |
ToggleActionWrapper (QAction *toogleAction, const QString &text) | |
ToggleActionWrapper (QAction *toogleAction, const QIcon &icon) | |
ToggleActionWrapper (QAction *toogleAction, const QIcon &icon, const QString &text) | |
void | execute () |
void | stopExecuting () |
![]() | |
Operation (QActionGroup *actionGroup=nullptr) | |
Operation (const QString &text, QActionGroup *actionGroup=nullptr) | |
Operation (const QIcon &icon, const QString &text, QActionGroup *actionGroup=nullptr) | |
QString | category () const |
void | initialize (IServiceLocator *serviceLocator) |
QString | name () const |
![]() | |
QAction (QObject *parent) | |
QAction (const QString &text, QObject *parent) | |
QAction (QObject *parent, const char *name) | |
QAction (const QString &text, const QKeySequence &shortcut, QObject *parent, const char *name) | |
QAction (const QIcon &icon, const QString &text, QObject *parent) | |
QAction (const QIcon &icon, const QString &text, const QKeySequence &shortcut, QObject *parent, const char *name) | |
QKeySequence | accel () const |
QActionGroup * | actionGroup () const |
void | activate (ActionEvent event) |
void | activated (int i) |
bool | addTo (QWidget *w) |
QList< QGraphicsWidget * > | associatedGraphicsWidgets () const |
QList< QWidget * > | associatedWidgets () const |
bool | autoRepeat () const |
void | changed () |
QVariant | data () const |
QFont | font () const |
void | hover () |
void | hovered () |
QIcon | icon () const |
QIcon | iconSet () const |
QString | iconText () const |
bool | isCheckable () const |
bool | isChecked () const |
bool | isEnabled () const |
bool | isIconVisibleInMenu () const |
bool | isOn () const |
bool | isSeparator () const |
bool | isToggleAction () const |
bool | isVisible () const |
QMenu * | menu () const |
MenuRole | menuRole () const |
QString | menuText () const |
QWidget * | parentWidget () const |
Priority | priority () const |
bool | removeFrom (QWidget *w) |
void | setAccel (const QKeySequence &shortcut) |
void | setActionGroup (QActionGroup *group) |
void | setAutoRepeat (bool) |
void | setCheckable (bool) |
void | setChecked (bool) |
void | setData (const QVariant &userData) |
void | setDisabled (bool b) |
void | setEnabled (bool) |
void | setFont (const QFont &font) |
void | setIcon (const QIcon &icon) |
void | setIconSet (const QIcon &i) |
void | setIconText (const QString &text) |
void | setIconVisibleInMenu (bool visible) |
void | setMenu (QMenu *menu) |
void | setMenuRole (MenuRole menuRole) |
void | setMenuText (const QString &text) |
void | setOn (bool b) |
void | setPriority (Priority priority) |
void | setSeparator (bool b) |
void | setShortcut (const QKeySequence &shortcut) |
void | setShortcutContext (Qt::ShortcutContext context) |
void | setShortcuts (QKeySequence::StandardKey key) |
void | setShortcuts (const QList< QKeySequence > &shortcuts) |
void | setSoftKeyRole (SoftKeyRole softKeyRole) |
void | setStatusTip (const QString &statusTip) |
void | setText (const QString &text) |
void | setToggleAction (bool b) |
void | setToolTip (const QString &tip) |
void | setVisible (bool) |
void | setWhatsThis (const QString &what) |
QKeySequence | shortcut () const |
Qt::ShortcutContext | shortcutContext () const |
QList< QKeySequence > | shortcuts () const |
bool | showStatusText (QWidget *widget) |
SoftKeyRole | softKeyRole () const |
QString | statusTip () const |
QString | text () const |
void | toggle () |
void | toggled (bool checked) |
QString | toolTip () const |
void | trigger () |
void | triggered (bool checked) |
QString | whatsThis () const |
![]() | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
![]() | |
virtual void | executingStopped ()=0 |
Additional Inherited Members | |
![]() | |
void | executingStopped () |
![]() | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
![]() | |
void | connectToSignals () |
void | disconectFromSignals () |
void | setCategory (const QString &category) |
void | setName (const QString &name) |
![]() | |
virtual bool | event (QEvent *e) |
![]() | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
![]() | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
![]() | |
autoRepeat | |
checkable | |
checked | |
enabled | |
font | |
icon | |
iconText | |
iconVisibleInMenu | |
menuRole | |
priority | |
shortcut | |
shortcutContext | |
softKeyRole | |
statusTip | |
text | |
toolTip | |
visible | |
whatsThis | |
![]() | |
objectName | |
This class is a wrapper for the toggle actions.
Since carousel interactivity component uses IOperationCatalog for storing operations, already existed QActions (like QDockWidget::toggleViewAction()) should be wrapped into the Operation.
This class provides synchronization mechanizm for between a toggle action and current Operation. To wrap action just create new instance of the ToggleActionWrapper with specified customization, like text or icon:
ToggleActionWrapper::ToggleActionWrapper | ( | QAction * | toogleAction | ) |
Initializes a new instance of the ToggleActionWrapper class using toogleAction action for wrapping.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
ToggleActionWrapper::ToggleActionWrapper | ( | QAction * | toogleAction, |
const QIcon & | icon, | ||
const QString & | text | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
virtual |
Triggers wrapped action.
Implements IOperation.
|
virtual |
Triggers wrapped action.
Reimplemented from Operation.