|
| K3UndoRedoAction (Type type, KActionCollection *actionCollection, K3CommandHistory *commandHistory) |
|
| KAction (QObject *parent) |
|
| KAction (const QString &text, QObject *parent) |
|
| KAction (const KIcon &icon, const QString &text, 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 (KAuth::Action *action) |
|
void | setAuthAction (const QString &actionName) |
|
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 |
|
| 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) |
|
| ~QAction () |
|
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 | isOn () const |
|
bool | isSeparator () const |
|
bool | isToggleAction () const |
|
bool | isVisible () 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 | 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) |
|
virtual | ~QObject () |
|
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 |
|
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 |
|
| QWidgetAction (QObject *parent) |
|
virtual | ~QWidgetAction () |
|
QWidget * | defaultWidget () const |
|
void | releaseWidget (QWidget *widget) |
|
QWidget * | requestWidget (QWidget *parent) |
|
void | setDefaultWidget (QWidget *widget) |
|
|
void | authorized (KAuth::Action *action) |
|
void | globalShortcutChanged (const QKeySequence &) |
|
void | triggered (Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers) |
|
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) |
|
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) |
|
QList< QWidget * > | createdWidgets () const |
|
virtual void | deleteWidget (QWidget *widget) |
|
virtual bool | eventFilter (QObject *obj, QEvent *event) |
|
QByteArray | normalizeSignalSlot (const char *signalSlot) |
|
KShortcut | globalShortcut |
|
bool | globalShortcutAllowed |
|
bool | globalShortcutEnabled |
|
KShortcut | shortcut |
|
bool | shortcutConfigurable |
|
| autoRepeat |
|
| checkable |
|
| checked |
|
| enabled |
|
| font |
|
| icon |
|
| iconText |
|
| priority |
|
| shortcut |
|
| shortcutContext |
|
| softKeyRole |
|
| statusTip |
|
| text |
|
| toolTip |
|
| visible |
|
| whatsThis |
|
| objectName |
|
This type of action is used to show undo or redo actions in the menu or in the toolbars.
This action will keep itself up to date and change the text based on the undo history, plus it will disable itself when there is nothing to undo/redo. You will typically need two instances of this action per view (e.g. the mainwindow).
new KUndoRedoAction( KUndoRedoAction::Undo, view->actionCollection(), m_history );
new KUndoRedoAction( KUndoRedoAction::Redo, view->actionCollection(), m_history );
Note that there is no need to connect or even keep a reference to the object as all work is done automatically.
Note: you might want to use the QUndo framework instead. It didn't exist when K3Command was written.
Definition at line 357 of file k3command.h.