org.kde.koala
public class KCommandHistory extends QObject
UNKNOWN: The command history stores a (user) configurable amount of Commands.
Constructor Summary | |
---|---|
protected | KCommandHistory(Class dummy) |
KCommandHistory()
Creates a command history, to store commands.
| |
KCommandHistory(KActionCollection actionCollection, boolean withMenus)
Creates a command history, to store commands.
| |
KCommandHistory(KActionCollection actionCollection) |
Method Summary | |
---|---|
void | addCommand(KCommand command, boolean execute)
Adds a command to the history. |
void | addCommand(KCommand command) |
String | className() |
void | clear()
Erases all the undo/redo history.
|
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
void | documentSaved()
Remembers when you saved the document.
|
protected void | finalize() Deletes the wrapped C++ instance |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
QMetaObject | metaObject() |
void | redo()
Redoes the last undone action.
|
int | redoLimit() |
void | setRedoLimit(int limit)
Sets the maximum number of items in the redo history. |
void | setUndoLimit(int limit)
Sets the maximum number of items in the undo history. |
protected void | slotRedoAboutToShow() |
protected void | slotRedoActivated(int arg1) |
protected void | slotUndoAboutToShow() |
protected void | slotUndoActivated(int arg1) |
void | undo()
Undoes the last action.
|
int | undoLimit() |
void | updateActions()
Enable or disable the undo and redo actions.
|
UNKNOWN: Creates a command history, to store commands.
actionCollection
,
using the standard names ("edit_undo" and "edit_redo").Parameters: withMenus if true, the actions will display a menu when plugged into a toolbar. actionCollection the parent collection
UNKNOWN: Creates a command history, to store commands.
command
you create.
Unless you set execute
to false, this will also execute the command.
This means, most of the application's code will look like
MyCommand cmd = new MyCommand(i18n("Capitalized Name"), parameters);
m_historyCommand.addCommand( cmd );UNKNOWN: Adds a command to the history.
UNKNOWN: Erases all the undo/redo history.
UNKNOWN: Remembers when you saved the document.
UNKNOWN: Redoes the last undone action.
Returns: the maximum number of items in the redo history
UNKNOWN:
UNKNOWN: Sets the maximum number of items in the redo history.
UNKNOWN: Sets the maximum number of items in the undo history.
UNKNOWN: Undoes the last action.
Returns: the maximum number of items in the undo history
UNKNOWN:
UNKNOWN: Enable or disable the undo and redo actions.