Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkNavigationToolManagementWidget Class Reference

An object of this class offers an UI to manage NavigationTools and NavigationToolStorages. This means a user may create, save and load single NavigationTools and/or NavigationToolStorages with this widget. More...

#include <QmitkNavigationToolManagementWidget.h>

Inheritance diagram for QmitkNavigationToolManagementWidget:
Collaboration diagram for QmitkNavigationToolManagementWidget:

Signals

void NewStorageAdded (mitk::NavigationToolStorage::Pointer newStorage, std::string storageName)
 

Public Member Functions

void Initialize (mitk::DataStorage *dataStorage)
 
void LoadStorage (mitk::NavigationToolStorage::Pointer storageToLoad)
 
 QmitkNavigationToolManagementWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 
 ~QmitkNavigationToolManagementWidget ()
 

Static Public Attributes

static const std::string VIEW_ID
 

Protected Slots

void OnAddTool ()
 
void OnDeleteTool ()
 
void OnEditTool ()
 
void OnLoadTool ()
 
void OnSaveTool ()
 
void OnMoveToolUp ()
 
void OnMoveToolDown ()
 
void OnLoadStorage ()
 
void OnSaveStorage ()
 
void OnCreateStorage ()
 
void OnAddToolCancel ()
 
void OnAddToolSave ()
 

Protected Member Functions

virtual void CreateConnections ()
 Creation of the connections. More...
 
virtual void CreateQtPartControl (QWidget *parent)
 
void MessageBox (std::string s)
 
void UpdateToolTable ()
 
void DisableStorageControls ()
 
void EnableStorageControls ()
 

Protected Attributes

Ui::QmitkNavigationToolManagementWidgetControls * m_Controls
 
mitk::DataStoragem_DataStorage
 holds the DataStorage More...
 
mitk::NavigationToolStorage::Pointer m_NavigationToolStorage
 holds the NavigationToolStorage we are working with. More...
 
bool m_edit
 shows if we are in edit mode, if not we create new navigation tool objects. More...
 

Detailed Description

An object of this class offers an UI to manage NavigationTools and NavigationToolStorages. This means a user may create, save and load single NavigationTools and/or NavigationToolStorages with this widget.

Documentation: Be sure to call the Initialize-methode before you start the widget otherwise some errors might occure.

Definition at line 41 of file QmitkNavigationToolManagementWidget.h.

Constructor & Destructor Documentation

QmitkNavigationToolManagementWidget::QmitkNavigationToolManagementWidget ( QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)
QmitkNavigationToolManagementWidget::~QmitkNavigationToolManagementWidget ( )

Definition at line 46 of file QmitkNavigationToolManagementWidget.cpp.

Member Function Documentation

void QmitkNavigationToolManagementWidget::CreateConnections ( )
protectedvirtual
void QmitkNavigationToolManagementWidget::CreateQtPartControl ( QWidget *  parent)
protectedvirtual
void QmitkNavigationToolManagementWidget::DisableStorageControls ( )
protected

Definition at line 367 of file QmitkNavigationToolManagementWidget.cpp.

References m_Controls.

Referenced by CreateQtPartControl(), and LoadStorage().

void QmitkNavigationToolManagementWidget::EnableStorageControls ( )
protected

Definition at line 383 of file QmitkNavigationToolManagementWidget.cpp.

References m_Controls.

Referenced by LoadStorage(), and OnCreateStorage().

void QmitkNavigationToolManagementWidget::Initialize ( mitk::DataStorage dataStorage)

Initializes the widget. Has to be called before any action, otherwise errors might occur.

Definition at line 122 of file QmitkNavigationToolManagementWidget.cpp.

References m_Controls, and m_DataStorage.

void QmitkNavigationToolManagementWidget::LoadStorage ( mitk::NavigationToolStorage::Pointer  storageToLoad)

Loads a storage to the widget. The old storage storage is dropped, so be careful, if the storage is not saved somewhere else it might be lost. You might want to ask the user if he wants to save the storage to the harddisk before calling this method.

Parameters
storageToLoadThis storage will be loaded and might be modified by the user.

Definition at line 128 of file QmitkNavigationToolManagementWidget.cpp.

References DisableStorageControls(), EnableStorageControls(), m_Controls, m_NavigationToolStorage, and UpdateToolTable().

Referenced by OnLoadStorage().

void QmitkNavigationToolManagementWidget::MessageBox ( std::string  s)
protected
void QmitkNavigationToolManagementWidget::NewStorageAdded ( mitk::NavigationToolStorage::Pointer  newStorage,
std::string  storageName 
)
signal

This signal is emmited if a new storage was added by the widget itself, e.g. because a storage was loaded from the harddisk.

Parameters
newStorageHolds the new storage which was added.
storageNameName of the new storage (e.g. filename)

Referenced by OnCreateStorage(), and OnLoadStorage().

void QmitkNavigationToolManagementWidget::OnAddTool ( )
protectedslot
void QmitkNavigationToolManagementWidget::OnAddToolCancel ( )
protectedslot

Definition at line 327 of file QmitkNavigationToolManagementWidget.cpp.

References m_Controls.

Referenced by CreateConnections().

void QmitkNavigationToolManagementWidget::OnAddToolSave ( )
protectedslot
void QmitkNavigationToolManagementWidget::OnCreateStorage ( )
protectedslot
void QmitkNavigationToolManagementWidget::OnDeleteTool ( )
protectedslot
void QmitkNavigationToolManagementWidget::OnEditTool ( )
protectedslot
void QmitkNavigationToolManagementWidget::OnLoadStorage ( )
protectedslot
void QmitkNavigationToolManagementWidget::OnLoadTool ( )
protectedslot
void QmitkNavigationToolManagementWidget::OnMoveToolDown ( )
protectedslot
void QmitkNavigationToolManagementWidget::OnMoveToolUp ( )
protectedslot
void QmitkNavigationToolManagementWidget::OnSaveStorage ( )
protectedslot
void QmitkNavigationToolManagementWidget::OnSaveTool ( )
protectedslot

Member Data Documentation

mitk::DataStorage* QmitkNavigationToolManagementWidget::m_DataStorage
protected

holds the DataStorage

Definition at line 98 of file QmitkNavigationToolManagementWidget.h.

Referenced by Initialize(), OnAddTool(), OnCreateStorage(), OnDeleteTool(), OnLoadStorage(), and OnLoadTool().

bool QmitkNavigationToolManagementWidget::m_edit
protected

shows if we are in edit mode, if not we create new navigation tool objects.

Definition at line 104 of file QmitkNavigationToolManagementWidget.h.

Referenced by OnAddTool(), OnAddToolSave(), and OnEditTool().

mitk::NavigationToolStorage::Pointer QmitkNavigationToolManagementWidget::m_NavigationToolStorage
protected
const std::string QmitkNavigationToolManagementWidget::VIEW_ID
static

Definition at line 46 of file QmitkNavigationToolManagementWidget.h.


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