| gtksourceviewmm
    2.10.3
    | 
Undo manager interface for SourceView. More...
#include <gtksourceviewmm/sourceundomanager.h>

| Public Member Functions | |
| GtkSourceUndoManager* | gobj () | 
| Provides access to the underlying C GObject. | |
| const GtkSourceUndoManager* | gobj () const | 
| Provides access to the underlying C GObject. | |
| bool | can_undo () const | 
| Get whether there are undo operations available. | |
| bool | can_redo () const | 
| Get whether there are redo operations available. | |
| void | undo () | 
| Perform a single undo. | |
| void | redo () | 
| Perform a single redo. | |
| void | begin_not_undoable_action () | 
| Begin a not undoable action on the buffer. | |
| void | end_not_undoable_action () | 
| Ends a not undoable action on the buffer. | |
| void | can_undo_changed () | 
| Emits the 'can-undo-changed' signal. | |
| void | can_redo_changed () | 
| Emits the 'can-redo-changed' signal. | |
| Glib::SignalProxy0< void > | signal_can_undo_changed () | 
| Emitted when the ability to undo has changed. | |
| Glib::SignalProxy0< void > | signal_can_redo_changed () | 
| Emitted when the ability to redo has changed. | |
| Related Functions | |
| (Note that these are not member functions.) | |
| Glib::RefPtr < gtksourceview::SourceUndoManager > | wrap (GtkSourceUndoManager* object, bool take_copy=false) | 
| A Glib::wrap() method for this object. | |
Undo manager interface for SourceView.
The SourceUndoManager interface can be implemented to provide custom undo management to a SourceBuffer. Use SourceBuffer::set_undo_manager() to install a custom undo manager for a particular source buffer.
Use SourceUndoManager::can_undo_changed() and SourceUndoManager::can_redo_changed() when respectively the undo state or redo state of the undo stack has changed.
| void gtksourceview::SourceUndoManager::begin_not_undoable_action | ( | ) | 
Begin a not undoable action on the buffer.
All changes between this call and the call to end_not_undoable_action() cannot be undone. This function should be re-entrant.
| bool gtksourceview::SourceUndoManager::can_redo | ( | ) | const | 
Get whether there are redo operations available.
true if there are redo operations available, false otherwise.| void gtksourceview::SourceUndoManager::can_redo_changed | ( | ) | 
Emits the 'can-redo-changed' signal.
| bool gtksourceview::SourceUndoManager::can_undo | ( | ) | const | 
Get whether there are undo operations available.
true if there are undo operations available, false otherwise.| void gtksourceview::SourceUndoManager::can_undo_changed | ( | ) | 
Emits the 'can-undo-changed' signal.
| void gtksourceview::SourceUndoManager::end_not_undoable_action | ( | ) | 
Ends a not undoable action on the buffer.
| void gtksourceview::SourceUndoManager::redo | ( | ) | 
Perform a single redo.
Calling this function when there are no redo operations available is an error. Use can_redo() to find out if there are redo operations available.
| Glib::SignalProxy0< void > gtksourceview::SourceUndoManager::signal_can_redo_changed | ( | ) | 
Emitted when the ability to redo has changed.
void on_my_can_redo_changed() | Glib::SignalProxy0< void > gtksourceview::SourceUndoManager::signal_can_undo_changed | ( | ) | 
Emitted when the ability to undo has changed.
void on_my_can_undo_changed() | void gtksourceview::SourceUndoManager::undo | ( | ) | 
Perform a single undo.
Calling this function when there are no undo operations available is an error. Use can_undo() to find out if there are undo operations available.
| Glib::RefPtr< gtksourceview::SourceUndoManager > wrap | ( | GtkSourceUndoManager * | object, | 
| bool | take_copy = false | ||
| ) |  [related] | 
A Glib::wrap() method for this object.
| object | The C instance. | 
| take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. | 
 1.7.5
 1.7.5