Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkLevelWindowPresetDefinitionDialog Class Reference

#include <QmitkLevelWindowPresetDefinitionDialog.h>

Inheritance diagram for QmitkLevelWindowPresetDefinitionDialog:
Collaboration diagram for QmitkLevelWindowPresetDefinitionDialog:

Classes

class  PresetTableModel
 

Public Member Functions

 QmitkLevelWindowPresetDefinitionDialog (QWidget *parent=nullptr, Qt::WindowFlags f=nullptr)
 
 ~QmitkLevelWindowPresetDefinitionDialog ()
 
void setPresets (std::map< std::string, double > &level, std::map< std::string, double > &window, QString initLevel, QString initWindow)
 
std::map< std::string, double > getLevelPresets ()
 
std::map< std::string, double > getWindowPresets ()
 

Protected Slots

void addPreset ()
 
void removePreset ()
 
void changePreset ()
 
void ListViewSelectionChanged (const QItemSelection &, const QItemSelection &)
 
void sortPresets (int index)
 

Protected Member Functions

void resizeEvent (QResizeEvent *event) override
 
void showEvent (QShowEvent *event) override
 
void resizeColumns ()
 

Protected Attributes

PresetTableModelm_TableModel
 
QSortFilterProxyModel m_SortModel
 

Detailed Description

Definition at line 31 of file QmitkLevelWindowPresetDefinitionDialog.h.

Constructor & Destructor Documentation

QmitkLevelWindowPresetDefinitionDialog::QmitkLevelWindowPresetDefinitionDialog ( QWidget *  parent = nullptr,
Qt::WindowFlags  f = nullptr 
)
QmitkLevelWindowPresetDefinitionDialog::~QmitkLevelWindowPresetDefinitionDialog ( )

Definition at line 40 of file QmitkLevelWindowPresetDefinitionDialog.cpp.

References m_TableModel.

Member Function Documentation

std::map< std::string, double > QmitkLevelWindowPresetDefinitionDialog::getLevelPresets ( )
std::map< std::string, double > QmitkLevelWindowPresetDefinitionDialog::getWindowPresets ( )
void QmitkLevelWindowPresetDefinitionDialog::removePreset ( )
protectedslot
void QmitkLevelWindowPresetDefinitionDialog::resizeColumns ( )
protected

Definition at line 70 of file QmitkLevelWindowPresetDefinitionDialog.cpp.

Referenced by resizeEvent(), and showEvent().

void QmitkLevelWindowPresetDefinitionDialog::resizeEvent ( QResizeEvent *  event)
overrideprotected

Definition at line 56 of file QmitkLevelWindowPresetDefinitionDialog.cpp.

References resizeColumns().

void QmitkLevelWindowPresetDefinitionDialog::setPresets ( std::map< std::string, double > &  level,
std::map< std::string, double > &  window,
QString  initLevel,
QString  initWindow 
)
void QmitkLevelWindowPresetDefinitionDialog::showEvent ( QShowEvent *  event)
overrideprotected

Definition at line 63 of file QmitkLevelWindowPresetDefinitionDialog.cpp.

References resizeColumns().

void QmitkLevelWindowPresetDefinitionDialog::sortPresets ( int  index)
protectedslot

Member Data Documentation

QSortFilterProxyModel QmitkLevelWindowPresetDefinitionDialog::m_SortModel
protected

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