MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkUSNavigationAbstractSettingsWidget.cpp
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
13
14#include "mitkCommon.h"
15#include "mitkDataNode.h"
16
17#include <ctkDirectoryButton.h>
18
19#include <QSettings>
20
25
29
34
35void QmitkUSNavigationAbstractSettingsWidget::SetSettingsNode(mitk::DataNode::Pointer settingsNode, bool overwriteValues)
36{
37 m_SettingsNode = settingsNode;
38
39 this->OnSetSettingsNode(m_SettingsNode, overwriteValues);
40
41 emit SettingsChanged(m_SettingsNode);
42}
43
48
50{
51 this->OnSaveProcessing();
52
53 emit SettingsChanged(m_SettingsNode);
54 emit Saved();
55}
56
void SetSettingsNode(itk::SmartPointer< mitk::DataNode > settingsNode, bool overwriteValues=false)
Setter for the data node in which the settings are loaded. The settings are made available as propert...
void OnCancel()
Ends the settings changing process without saving the changes. OnCancelProcessing() is called and the...
void SettingsChanged(itk::SmartPointer< mitk::DataNode >)
virtual void OnSetSettingsNode(itk::SmartPointer< mitk::DataNode > settingsNode, bool overwriteValues)=0
Method for handling the setting of a new settings node. This method has to be implemented by a concre...
virtual void OnLoadSettingsProcessing()=0
Method for actually loading the settings. This method has to be implemented by a concrete subclass.
virtual void OnSaveProcessing()=0
Method for actually saving the settings. This method has to be implemented by a concrete subclass.
virtual void OnCancelProcessing()
Method for handling the cancel process. This method can be implemented by a concrete subclass....
void OnSave()
Triggers the saving of the current settings. OnSaveProcessing() is called and the Saved() signal is e...
void LoadSettings()
Loads the settings. The actual loading is done by calling the OnLoadSettingsProcessing() method.