Medical Imaging Interaction Toolkit  2022.04.99-01b95b17
Medical Imaging Interaction Toolkit
berryRegistryToggleState.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 BERRYREGISTRYTOGGLESTATE_H
14 #define BERRYREGISTRYTOGGLESTATE_H
15 
16 #include "berryToggleState.h"
18 
19 namespace berry {
20 
41 {
42 
43 public:
44 
48  static const QString STATE_ID; // = "org.blueberry.ui.commands.toggleState";
49 
50  void SetInitializationData(const SmartPointer<IConfigurationElement>& configurationElement,
51  const QString& propertyName, const Object::Pointer& data) override;
52 
53 private:
54 
63  void ReadDefault(const QString& defaultString);
64 
73  void ReadPersisted(const QString& persistedString);
74 
75 };
76 
77 }
78 
79 #endif // BERRYREGISTRYTOGGLESTATE_H
Implements transparent reference counting.
void SetInitializationData(const SmartPointer< IConfigurationElement > &configurationElement, const QString &propertyName, const Object::Pointer &data) override