diff options
| author | maxim nikonov <maxim.nikonov@hqo.co> | 2026-02-05 23:48:25 +0500 |
|---|---|---|
| committer | maxim nikonov <maxim.nikonov@hqo.co> | 2026-02-05 23:48:25 +0500 |
| commit | c53067d2f6cfd6e3c6b476c51ab8c4b931e40a30 (patch) | |
| tree | 95bfab59b2d9a38a57b6aa05244cab2d0435c7d2 /fluid/proj/undo.cxx | |
| parent | 57860e277f2298ad6c0830b1492087cfa124c862 (diff) | |
wip
Diffstat (limited to 'fluid/proj/undo.cxx')
| -rw-r--r-- | fluid/proj/undo.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fluid/proj/undo.cxx b/fluid/proj/undo.cxx index 0f1a478fb..01d1b68c2 100644 --- a/fluid/proj/undo.cxx +++ b/fluid/proj/undo.cxx @@ -82,7 +82,7 @@ char *Undo::filename(int level) { void Undo::redo() { // int undo_item = main_menubar->find_index(undo_cb); // int redo_item = main_menubar->find_index(redo_cb); - once_type_ = OnceType::ALWAYS; + once_type_ = FLD_UNDO_ONCETYPE_ALWAYS; if (current_ >= last_) { fl_beep(); @@ -126,7 +126,7 @@ void Undo::redo() { void Undo::undo() { // int undo_item = main_menubar->find_index(undo_cb); // int redo_item = main_menubar->find_index(redo_cb); - once_type_ = OnceType::ALWAYS; + once_type_ = FLD_UNDO_ONCETYPE_ALWAYS; if (current_ <= 0) { fl_beep(); @@ -184,8 +184,8 @@ void Undo::undo() { \return 1 if the checkpoint was set, 0 if this is a repeating event */ int Undo::checkpoint(OnceType type) { - if (type == OnceType::ALWAYS) { - once_type_ = OnceType::ALWAYS; + if (type == FLD_UNDO_ONCETYPE_ALWAYS) { + once_type_ = FLD_UNDO_ONCETYPE_ALWAYS; return 0; } if (paused_) return 0; @@ -209,7 +209,7 @@ void Undo::checkpoint() { // int undo_item = main_menubar->find_index(undo_cb); // int redo_item = main_menubar->find_index(redo_cb); - once_type_ = OnceType::ALWAYS; + once_type_ = FLD_UNDO_ONCETYPE_ALWAYS; // Save the current UI to a checkpoint file... const char *file = filename(current_); |
