diff options
Diffstat (limited to 'fluid/proj/undo.h')
| -rw-r--r-- | fluid/proj/undo.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/fluid/proj/undo.h b/fluid/proj/undo.h index 7bb02b72f..de038908a 100644 --- a/fluid/proj/undo.h +++ b/fluid/proj/undo.h @@ -27,14 +27,16 @@ class Project; namespace proj { +enum { + FLD_UNDO_ONCETYPE_ALWAYS = 0, + FLD_UNDO_ONCETYPE_WINDOW_RESIZE +}; + class Undo { public: - enum class OnceType { - ALWAYS = 0, - WINDOW_RESIZE - }; + typedef int OnceType; /// Link Undo class to this project. Project &proj_; @@ -53,7 +55,7 @@ public: // length w/o filename unsigned int path_len_ = 0; /// Suspend further undos of the same type - OnceType once_type_ = OnceType::ALWAYS; + OnceType once_type_ = FLD_UNDO_ONCETYPE_ALWAYS; public: |
