Medical Imaging Interaction Toolkit  2021.10.99-1c4db16f
Medical Imaging Interaction Toolkit
berryRadioState.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 BERRYRADIOSTATE_H
14 #define BERRYRADIOSTATE_H
15 
16 #include "internal/berryPersistentState.h"
18 
19 namespace berry {
20 
41 class RadioState : public PersistentState, public IExecutableExtension
42 {
43 
44 public:
45 
49  static const QString STATE_ID; // = "org.blueberry.ui.commands.radioState";
50 
54  static const QString PARAMETER_ID; // = "org.blueberry.ui.commands.radioStateParameter";
55 
56  RadioState();
57 
59  const QString& propertyName, const Object::Pointer& data) override;
60 
61  void Load(const SmartPointer<IPreferences>& store, const QString& preferenceKey) override;
62 
63  void Save(const SmartPointer<IPreferences>& store, const QString& preferenceKey) override;
64 
65  void SetValue(const Object::Pointer& value) override;
66 
67 };
68 
69 }
70 
71 #endif // BERRYRADIOSTATE_H
void SetInitializationData(const SmartPointer< IConfigurationElement > &config, const QString &propertyName, const Object::Pointer &data) override
Implements transparent reference counting.
static const QString STATE_ID
static const QString PARAMETER_ID
void SetValue(const Object::Pointer &value) override
void Load(const SmartPointer< IPreferences > &store, const QString &preferenceKey) override
void Save(const SmartPointer< IPreferences > &store, const QString &preferenceKey) override