Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berry::ToggleState Class Reference

#include <berryToggleState.h>

Inheritance diagram for berry::ToggleState:
Collaboration diagram for berry::ToggleState:

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
 

Detailed Description

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 37 of file berryToggleState.h.

Constructor & Destructor Documentation

berry::ToggleState::ToggleState ( )

Constructs a new ToggleState. By default, the toggle is off (e.g., false).

Definition at line 27 of file berryToggleState.cpp.

References SetValue().

Member Function Documentation

void berry::ToggleState::Load ( const SmartPointer< IPreferences > &  store,
const QString &  preferenceKey 
)
override

Definition at line 33 of file berryToggleState.cpp.

References SetValue().

void berry::ToggleState::Save ( const SmartPointer< IPreferences > &  store,
const QString &  preferenceKey 
)
override

Definition at line 49 of file berryToggleState.cpp.

References berry::SmartPointer< TObjectType >::Cast().

void berry::ToggleState::SetValue ( const Object::Pointer value)
override

Definition at line 62 of file berryToggleState.cpp.

References berry::SmartPointer< TObjectType >::Cast().

Referenced by Load(), and ToggleState().


The documentation for this class was generated from the following files: