Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryRegistryToggleState.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef BERRYREGISTRYTOGGLESTATE_H
18 #define BERRYREGISTRYTOGGLESTATE_H
19 
20 #include "berryToggleState.h"
22 
23 namespace berry {
24 
45 {
46 
47 public:
48 
52  static const QString STATE_ID; // = "org.blueberry.ui.commands.toggleState";
53 
54  void SetInitializationData(const SmartPointer<IConfigurationElement>& configurationElement,
55  const QString& propertyName, const Object::Pointer& data) override;
56 
57 private:
58 
67  void ReadDefault(const QString& defaultString);
68 
77  void ReadPersisted(const QString& persistedString);
78 
79 };
80 
81 }
82 
83 #endif // BERRYREGISTRYTOGGLESTATE_H
Implements transparent reference counting.
void SetInitializationData(const SmartPointer< IConfigurationElement > &configurationElement, const QString &propertyName, const Object::Pointer &data) override