Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <QmitkLevelWindowPresetDefinitionDialog.h>
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 | |
PresetTableModel * | m_TableModel |
QSortFilterProxyModel | m_SortModel |
Definition at line 31 of file QmitkLevelWindowPresetDefinitionDialog.h.
QmitkLevelWindowPresetDefinitionDialog::QmitkLevelWindowPresetDefinitionDialog | ( | QWidget * | parent = nullptr , |
Qt::WindowFlags | f = nullptr |
||
) |
Definition at line 23 of file QmitkLevelWindowPresetDefinitionDialog.cpp.
References addPreset(), changePreset(), m_SortModel, removePreset(), and sortPresets().
QmitkLevelWindowPresetDefinitionDialog::~QmitkLevelWindowPresetDefinitionDialog | ( | ) |
Definition at line 40 of file QmitkLevelWindowPresetDefinitionDialog.cpp.
References m_TableModel.
|
protectedslot |
Definition at line 79 of file QmitkLevelWindowPresetDefinitionDialog.cpp.
References QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::addPreset(), QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::contains(), and m_TableModel.
Referenced by QmitkLevelWindowPresetDefinitionDialog().
|
protectedslot |
Definition at line 111 of file QmitkLevelWindowPresetDefinitionDialog.cpp.
References QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::changePreset(), QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::contains(), QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::getPreset(), and m_TableModel.
Referenced by QmitkLevelWindowPresetDefinitionDialog().
std::map< std::string, double > QmitkLevelWindowPresetDefinitionDialog::getLevelPresets | ( | ) |
Definition at line 162 of file QmitkLevelWindowPresetDefinitionDialog.cpp.
References QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::getLevels(), and m_TableModel.
Referenced by QmitkLevelWindowWidgetContextMenu::addPreset().
std::map< std::string, double > QmitkLevelWindowPresetDefinitionDialog::getWindowPresets | ( | ) |
Definition at line 169 of file QmitkLevelWindowPresetDefinitionDialog.cpp.
References QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::getWindows(), and m_TableModel.
Referenced by QmitkLevelWindowWidgetContextMenu::addPreset().
|
protectedslot |
Definition at line 176 of file QmitkLevelWindowPresetDefinitionDialog.cpp.
References QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::getPreset(), QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::Entry::level, m_SortModel, m_TableModel, QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::Entry::name, and QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::Entry::window.
Referenced by setPresets().
|
protectedslot |
Definition at line 102 of file QmitkLevelWindowPresetDefinitionDialog.cpp.
References m_TableModel, and QmitkLevelWindowPresetDefinitionDialog::PresetTableModel::removePreset().
Referenced by QmitkLevelWindowPresetDefinitionDialog().
|
protected |
Definition at line 70 of file QmitkLevelWindowPresetDefinitionDialog.cpp.
Referenced by resizeEvent(), and showEvent().
|
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 | ||
) |
Definition at line 139 of file QmitkLevelWindowPresetDefinitionDialog.cpp.
References ListViewSelectionChanged(), m_SortModel, m_TableModel, and sortPresets().
Referenced by QmitkLevelWindowWidgetContextMenu::addPreset().
|
overrideprotected |
Definition at line 63 of file QmitkLevelWindowPresetDefinitionDialog.cpp.
References resizeColumns().
|
protectedslot |
Definition at line 45 of file QmitkLevelWindowPresetDefinitionDialog.cpp.
Referenced by QmitkLevelWindowPresetDefinitionDialog(), and setPresets().
|
protected |
Definition at line 102 of file QmitkLevelWindowPresetDefinitionDialog.h.
Referenced by ListViewSelectionChanged(), QmitkLevelWindowPresetDefinitionDialog(), and setPresets().
|
protected |
Definition at line 101 of file QmitkLevelWindowPresetDefinitionDialog.h.
Referenced by addPreset(), changePreset(), getLevelPresets(), getWindowPresets(), ListViewSelectionChanged(), removePreset(), setPresets(), and ~QmitkLevelWindowPresetDefinitionDialog().