![]() |
![]() |
![]() |
Buzztard Bt-Edit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#include "bt-edit.h" BtChangeLog; BtChangeLog * bt_change_log_new (void
); void bt_change_log_add (BtChangeLog *self
,BtChangeLogger *owner
,gchar *undo_data
,gchar *redo_data
); void bt_change_log_redo (BtChangeLog *self
); void bt_change_log_undo (BtChangeLog *self
);
Tracks edits actions since last save. Logs those to disk for crash recovery. Provides undo/redo.
BtChangeLog * bt_change_log_new (void
);
Create a new instance on first call and return a reference later on.
Returns : |
the new signleton instance |
void bt_change_log_add (BtChangeLog *self
,BtChangeLogger *owner
,gchar *undo_data
,gchar *redo_data
);
Add a new change to the change log. Changes are passed as serialized strings.
The change-log takes ownership of undo_data
and redo_data
.
|
the change log |
|
the owner of the change |
|
how to undo the change |
|
how to redo the change |