Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkUndoRedoPreferenceHelper.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkUndoRedoPreferenceHelper_h
14 #define mitkUndoRedoPreferenceHelper_h
15 
16 #include <MitkCoreExports.h>
17 
18 namespace mitk
19 {
20  class IPreferences;
21 
34  namespace UndoRedoPreferenceHelper
35  {
39 
43 
47 
51  MITKCORE_EXPORT void StoreLimit(int limit);
52  }
53 }
54 
55 #endif
#define MITKCORE_EXPORT
Interface to application preferences.
MITKCORE_EXPORT int GetLastPositiveLimit()
The most recent positive (non-zero) limit the user chose. Falls back to mitk::DEFAULT_UNDO_REDO_LIMIT...
MITKCORE_EXPORT void StoreLimit(int limit)
Persists the active limit. Always writes "UndoLimit"; when limit is greater than 0 it also records it...
MITKCORE_EXPORT int GetActiveLimit()
The currently configured undo limit (0 = unlimited). Falls back to mitk::DEFAULT_UNDO_REDO_LIMIT if n...
MITKCORE_EXPORT IPreferences * GetPreferences()
Returns the "/General/UndoRedo" preferences node, or nullptr if the preferences service is unavailabl...
Find image slices visible on a given plane.