Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
berryToggleState.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 BERRYTOGGLESTATE_H
14 #define BERRYTOGGLESTATE_H
15 
16 #include "internal/berryPersistentState.h"
17 
18 namespace berry {
19 
33 class ToggleState : public PersistentState
34 {
35 
36 public:
37 
42  ToggleState();
43 
44  void Load(const mitk::IPreferences* store,
45  const std::string& preferenceKey) override;
46 
47  void Save(mitk::IPreferences* store,
48  const std::string& preferenceKey) override;
49 
50  void SetValue(const Object::Pointer& value) override;
51 };
52 
53 }
54 
55 #endif // BERRYTOGGLESTATE_H
berry::ToggleState
Definition: berryToggleState.h:33
berry::ToggleState::SetValue
void SetValue(const Object::Pointer &value) override
berry::SmartPointer
Implements transparent reference counting.
Definition: berryICommandCategoryListener.h:21
berry::ToggleState::Load
void Load(const mitk::IPreferences *store, const std::string &preferenceKey) override
berry::ToggleState::ToggleState
ToggleState()
berry::ToggleState::Save
void Save(mitk::IPreferences *store, const std::string &preferenceKey) override
mitk::IPreferences
Interface to application preferences.
Definition: mitkIPreferences.h:50
berry
Definition: QmitkPropertyItemModel.h:24