Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#include <berryToggleState.h>
Public Member Functions | |
ToggleState () | |
void | Load (const SmartPointer< IPreferences > &store, const QString &preferenceKey) override |
void | Save (const SmartPointer< IPreferences > &store, const QString &preferenceKey) override |
void | SetValue (const Object::Pointer &value) override |
A piece of state storing a bool
.
If this state is registered using IMenuStateIds#STYLE, then it will control the presentation of the command if displayed in the menus, tool bars or status line.
Clients may instantiate this class, but must not extend.
Definition at line 33 of file berryToggleState.h.
berry::ToggleState::ToggleState | ( | ) |
Constructs a new ToggleState
. By default, the toggle is off (e.g., false
).
Definition at line 23 of file berryToggleState.cpp.
References SetValue().
|
override |
Definition at line 29 of file berryToggleState.cpp.
References SetValue().
|
override |
Definition at line 45 of file berryToggleState.cpp.
References berry::SmartPointer< TObjectType >::Cast().
|
override |
Definition at line 58 of file berryToggleState.cpp.
References berry::SmartPointer< TObjectType >::Cast().
Referenced by Load(), berry::RegistryToggleState::SetInitializationData(), and ToggleState().