Tool bar buttons with pop up menus for undo and redo.
More...
#include <undogui.h>
|
void | undo (int steps) |
| Emitted when undo is requested. More...
|
|
void | redo (int steps) |
| Emitted when redo is requested. More...
|
|
void | paletteShown (bool) |
| Let the action for this palette know when something changes and it hasnt caused it.
|
|
|
| UndoWidget (QWidget *parent=0, const char *name=0) |
| Creates a new UndoWidget instance.
|
|
virtual | ~UndoWidget () |
| Destroys the widget.
|
|
void | clear () |
| Empties the undo stack for this widget.
|
|
virtual void | updateUndoActions () |
| Update the scrActions.
|
|
| UndoGui (QWidget *parent=0, const char *name="UndoGui", Qt::WindowFlags f=0) |
| Creates a new UndoGui instance. More...
|
|
virtual | ~UndoGui () |
| Destroys the widget.
|
|
virtual void | languageChange () |
| Sets GUI strings on language change.
|
|
| ScDockPalette (QWidget *parent=NULL, const QString &prefsContext=QString::null, Qt::WindowFlags f=0) |
|
virtual void | hide () |
| Sample way to grab keystrokes, simply calls superclass at this point.
|
|
void | startup () |
|
|
virtual void | setPrefsContext (QString context) |
| Set the Preferences context to be used for storage of startup visibility and position and size.
|
|
void | storePosition () |
|
void | storePosition (int newX, int newY) |
|
void | storeSize () |
|
void | storeVisibility (bool) |
|
void | storeDockState () |
|
virtual void | showEvent (QShowEvent *showEvent) |
| Restore the geometry of the window when showing it.
|
|
virtual void | closeEvent (QCloseEvent *closeEvent) |
| Captures the close event and changes it to hide.
|
|
virtual void | hideEvent (QHideEvent *) |
| Stores the geometry of the window when hiding.
|
|
PrefsContext * | palettePrefs |
|
QString | prefsContextName |
|
bool | visibleOnStartup |
|
QWidget * | originalParent |
|
QWidget * | tempParent |
|
Tool bar buttons with pop up menus for undo and redo.
Provides tool bar buttons for undo and redo. There is also a pop up menu attached to these buttons for taking more than a single undo/redo step.
- Author
- Riku Leino tsoot.nosp@m.s@gm.nosp@m.ail.c.nosp@m.om
- Date
- December 2004
Insert a new redo item.
- Parameters
-
target | Target of the redo action |
state | State describing the action |
Insert a new undo item.
After an undoable action has happened and if this UndoGui is registered to the UndoManager this slot will be used to register the action to the widget.
- Parameters
-
target | Target of the undo action |
state | State describing the action |
void UndoWidget::redo |
( |
int |
steps | ) |
|
|
signal |
Emitted when redo is requested.
When redo action is done by this class this signal is emitted.
- Parameters
-
steps | How many redo steps to take |
void UndoWidget::undo |
( |
int |
steps | ) |
|
|
signal |
Emitted when undo is requested.
When undo action is done by this class this signal is emitted.
- Parameters
-
steps | How many undo steps to take |
void UndoWidget::updateRedo |
( |
int |
steps | ) |
|
|
slot |
Update redo stack representation with number of steps.
When some other UndoGui subclass has received a redo request this slot is used to inform this UndoGui to update it's UndoStack representation.
- Parameters
-
steps | Number of steps to take |
void UndoWidget::updateUndo |
( |
int |
steps | ) |
|
|
slot |
Update undo stack representation with number of steps.
When some other UndoGui subclass has received an undo request this slot is used to inform this UndoGui to update it's UndoStack representation.
- Parameters
-
steps | Number of steps to take |
The documentation for this class was generated from the following files:
- /Users/ale/src/Scribus/scribus/undogui.h
- /Users/ale/src/Scribus/scribus/undogui.cpp