Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkUndoRedoPreferenceHelper.h File Reference
#include <MitkCoreExports.h>

Go to the source code of this file.

Namespaces

 mitk
 Find image slices visible on a given plane.
 
 mitk::UndoRedoPreferenceHelper
 Shared access to the undo/redo preferences (node "/General/UndoRedo").
 

Functions

MITKCORE_EXPORT IPreferences * mitk::UndoRedoPreferenceHelper::GetPreferences ()
 Returns the "/General/UndoRedo" preferences node, or nullptr if the preferences service is unavailable. More...
 
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. More...
 
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. More...
 
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. More...