|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Shared access to the undo/redo preferences (node "/General/UndoRedo"). More...
Functions | |
| MITKCORE_EXPORT IPreferences * | GetPreferences () |
| Returns the "/General/UndoRedo" preferences node, or nullptr if the preferences service is unavailable. More... | |
| MITKCORE_EXPORT int | GetActiveLimit () |
| The currently configured undo limit (0 = unlimited). Falls back to mitk::DEFAULT_UNDO_REDO_LIMIT if nothing is stored. More... | |
| MITKCORE_EXPORT int | GetLastPositiveLimit () |
| The most recent positive (non-zero) limit the user chose. Falls back to mitk::DEFAULT_UNDO_REDO_LIMIT if nothing is stored. More... | |
| MITKCORE_EXPORT void | StoreLimit (int limit) |
Persists the active limit. Always writes "UndoLimit"; when limit is greater than 0 it also records it as "LastUndoLimit". No-op if the preferences service is unavailable. More... | |
Shared access to the undo/redo preferences (node "/General/UndoRedo").
Used by the UndoController and by the Undo/Redo UI so the node path, the keys and the default all live in one place and cannot drift apart.
Two keys are used:
| MITKCORE_EXPORT int mitk::UndoRedoPreferenceHelper::GetActiveLimit | ( | ) |
The currently configured undo limit (0 = unlimited). Falls back to mitk::DEFAULT_UNDO_REDO_LIMIT if nothing is stored.
| MITKCORE_EXPORT int mitk::UndoRedoPreferenceHelper::GetLastPositiveLimit | ( | ) |
The most recent positive (non-zero) limit the user chose. Falls back to mitk::DEFAULT_UNDO_REDO_LIMIT if nothing is stored.
| MITKCORE_EXPORT IPreferences* mitk::UndoRedoPreferenceHelper::GetPreferences | ( | ) |
Returns the "/General/UndoRedo" preferences node, or nullptr if the preferences service is unavailable.
| MITKCORE_EXPORT void mitk::UndoRedoPreferenceHelper::StoreLimit | ( | int | limit | ) |
Persists the active limit. Always writes "UndoLimit"; when limit is greater than 0 it also records it as "LastUndoLimit". No-op if the preferences service is unavailable.