ImFusion SDK 4.3
SettingsWidget Class Reference

#include <ImFusion/Dicom/GUI/SettingsWidget.h>

Simple Qt widget to configure the DicomPluginSettings. More...

+ Inheritance diagram for SettingsWidget:

Detailed Description

Simple Qt widget to configure the DicomPluginSettings.

Public Types

enum class  Contents {
  None = 0 , Cache = 1 << 0 , DcmtkSettings = 1 << 1 , Anonymization = 1 << 2 ,
  PACS = 1 << 3 , Everything = 0xFF
}
 Bitflag enumeration to define which settings to show. More...
 

Public Member Functions

 SettingsWidget (Flags< Contents > shownSettings=Contents::Everything, QWidget *parent=nullptr)
 Instantiate a new Qt widget to configure the DICOM settings.
 
void loadSettings ()
 Populate the widget with the current settings.
 
void saveSettings ()
 Write the widget content to the settings.
 
bool updateWidget () override
 Update the widget in the Settings Dialog.
 
- Public Member Functions inherited from Configurable
virtual void configureDefaults ()
 Retrieve the properties of this object, replaces values with their defaults and sets it again.
 
void registerParameter (ParameterBase *param)
 Register the given Parameter or SubProperty, so that it will be configured during configure()/configuration().
 
void unregisterParameter (const ParameterBase *param)
 Remove the given Parameter or SubProperty from the list of registered parameters.
 
 Configurable (const Configurable &rhs)
 
 Configurable (Configurable &&rhs) noexcept
 
Configurableoperator= (const Configurable &)
 
Configurableoperator= (Configurable &&) noexcept
 

Additional Inherited Members

- Public Attributes inherited from Configurable
Signal signalParametersChanged
 Emitted whenever one of the registered Parameters' or SubPropertys' signalValueChanged signal was emitted.
 
- Protected Attributes inherited from Configurable
std::vector< Paramm_params
 List of all registered Parameter and SubProperty instances.
 

Member Enumeration Documentation

◆ Contents

enum class Contents
strong

Bitflag enumeration to define which settings to show.

Enumerator
Cache 

Show settings regarding the DicomDatasetCache.

DcmtkSettings 

Show settings regarding the DCMTK backend.

Anonymization 

Show settings regarding the anonymization of datasets.

PACS 

Show PACS settings.

Everything 

Show all settings.

Constructor & Destructor Documentation

◆ SettingsWidget()

SettingsWidget ( Flags< Contents > shownSettings = Contents::Everything,
QWidget * parent = nullptr )
explicit

Instantiate a new Qt widget to configure the DICOM settings.

Parameters
shownSettingsSelection of settings to show
parentparent widget

Member Function Documentation

◆ updateWidget()

bool updateWidget ( )
overridevirtual

Update the widget in the Settings Dialog.

By default the settings fields of the custom settings will not change after they were registered with SettingsDialog. However if you need to update the fields of your settings widget by adding or removing sub-properties and parameters, have this function return true to indicate that.

Reimplemented from SettingsDialog::CustomSettingsWidget.


The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close