Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <QmitkPropertyListPopup.h>
Signals | |
void | propertyListChangesDone () |
Public Member Functions | |
QmitkPropertyListPopup (mitk::PropertyList *, QObject *parent=0, bool disableBoolProperties=false, bool fillMenuImmediatelty=true, const char *name=0) | |
virtual | ~QmitkPropertyListPopup () |
void | popup (const QPoint &pos, QAction *action=0) |
void | fillPopup () |
Protected Slots | |
void | onNameClicked () |
void | onVisibleClicked () |
void | onColorClicked () |
void | onBoolPropertyClicked (int) |
virtual void | MaterialEditorChangesAccepted (QmitkMaterialEditor *ed) |
virtual void | popupAboutToHide () |
void | popupMenuItemHovered (QAction *action) |
Protected Member Functions | |
virtual bool | AddMaterialPopup () |
virtual void | UpdateNodeMaterialOnPopupHiding (bool &changes) |
QIcon | createColorIcon (QColor color) |
Protected Attributes | |
QMenu * | m_PopupMenu |
mitk::PropertyList::Pointer | m_PropertyList |
std::vector< mitk::BoolProperty::Pointer > | m_BoolProperties |
QMenu * | m_InfoPopup |
QAction * | m_NameMenuAction |
QAction * | m_VisibleMenuAction |
QAction * | m_ColorMenuAction |
QAction * | m_MaterialMenuAction |
QAction * | m_OpacityMenuAction |
bool | m_AcceptOnHide |
mitk::FloatProperty::Pointer | m_OriginalOpacity |
bool | m_DisableBoolProperties |
Definition at line 42 of file QmitkPropertyListPopup.h.
QmitkPropertyListPopup::QmitkPropertyListPopup | ( | mitk::PropertyList * | list, |
QObject * | parent = 0 , |
||
bool | disableBoolProperties = false , |
||
bool | fillMenuImmediatelty = true , |
||
const char * | name = 0 |
||
) |
Definition at line 33 of file QmitkPropertyListPopup.cpp.
References fillPopup(), m_PopupMenu, popupAboutToHide(), and popupMenuItemHovered().
|
virtual |
Definition at line 239 of file QmitkPropertyListPopup.cpp.
|
protectedvirtual |
Definition at line 209 of file QmitkPropertyListPopup.cpp.
References m_MaterialMenuAction, m_OpacityMenuAction, m_PopupMenu, m_PropertyList, MaterialEditorChangesAccepted(), and mitk::New().
Referenced by fillPopup().
|
protected |
Definition at line 63 of file QmitkPropertyListPopup.cpp.
Referenced by fillPopup().
void QmitkPropertyListPopup::fillPopup | ( | ) |
Definition at line 73 of file QmitkPropertyListPopup.cpp.
References AddMaterialPopup(), createColorIcon(), mitk::ColorProperty::GetColor(), mitk::GenericProperty< T >::GetValue(), m_BoolProperties, m_ColorMenuAction, m_DisableBoolProperties, m_InfoPopup, m_MaterialMenuAction, m_NameMenuAction, m_OpacityMenuAction, m_OriginalOpacity, m_PopupMenu, m_PropertyList, m_VisibleMenuAction, mitk::FloatProperty::New(), onBoolPropertyClicked(), onColorClicked(), onNameClicked(), onVisibleClicked(), QmitkNumberPropertySlider::setMaxValue(), QmitkNumberPropertySlider::setMinValue(), and QmitkNumberPropertySlider::setShowPercent().
Referenced by QmitkPropertyListPopup().
|
protectedvirtualslot |
Definition at line 346 of file QmitkPropertyListPopup.cpp.
Referenced by AddMaterialPopup().
|
protectedslot |
Definition at line 321 of file QmitkPropertyListPopup.cpp.
References mitk::RenderingManager::GetInstance(), m_BoolProperties, m_PopupMenu, propertyListChangesDone(), mitk::RenderingManager::RequestUpdateAll(), and mitk::GenericProperty< T >::SetValue().
Referenced by fillPopup().
|
protectedslot |
Definition at line 299 of file QmitkPropertyListPopup.cpp.
References mitk::ColorProperty::GetColor(), mitk::RenderingManager::GetInstance(), m_PropertyList, propertyListChangesDone(), mitk::RenderingManager::RequestUpdateAll(), and mitk::ColorProperty::SetColor().
Referenced by fillPopup().
|
protectedslot |
Definition at line 249 of file QmitkPropertyListPopup.cpp.
References mitk::StringProperty::GetValue(), m_PopupMenu, m_PropertyList, propertyListChangesDone(), and mitk::StringProperty::SetValue().
Referenced by fillPopup().
|
protectedslot |
Definition at line 286 of file QmitkPropertyListPopup.cpp.
References mitk::RenderingManager::GetInstance(), m_PropertyList, m_VisibleMenuAction, propertyListChangesDone(), mitk::RenderingManager::RequestUpdateAll(), and mitk::GenericProperty< T >::SetValue().
Referenced by fillPopup().
void QmitkPropertyListPopup::popup | ( | const QPoint & | pos, |
QAction * | action = 0 |
||
) |
Definition at line 244 of file QmitkPropertyListPopup.cpp.
References m_PopupMenu.
|
protectedvirtualslot |
Definition at line 350 of file QmitkPropertyListPopup.cpp.
References m_AcceptOnHide, m_OriginalOpacity, m_PropertyList, propertyListChangesDone(), and UpdateNodeMaterialOnPopupHiding().
Referenced by QmitkPropertyListPopup().
|
protectedslot |
Definition at line 374 of file QmitkPropertyListPopup.cpp.
References m_AcceptOnHide, m_MaterialMenuAction, and m_OpacityMenuAction.
Referenced by QmitkPropertyListPopup().
|
signal |
Referenced by onBoolPropertyClicked(), onColorClicked(), onNameClicked(), onVisibleClicked(), and popupAboutToHide().
|
protectedvirtual |
Definition at line 386 of file QmitkPropertyListPopup.cpp.
References m_PropertyList.
Referenced by popupAboutToHide().
|
protected |
Definition at line 89 of file QmitkPropertyListPopup.h.
Referenced by popupAboutToHide(), and popupMenuItemHovered().
|
protected |
Definition at line 80 of file QmitkPropertyListPopup.h.
Referenced by fillPopup(), and onBoolPropertyClicked().
|
protected |
Definition at line 85 of file QmitkPropertyListPopup.h.
Referenced by fillPopup().
|
protected |
Definition at line 93 of file QmitkPropertyListPopup.h.
Referenced by fillPopup().
|
protected |
Definition at line 81 of file QmitkPropertyListPopup.h.
Referenced by fillPopup().
|
protected |
Definition at line 86 of file QmitkPropertyListPopup.h.
Referenced by AddMaterialPopup(), fillPopup(), and popupMenuItemHovered().
|
protected |
Definition at line 83 of file QmitkPropertyListPopup.h.
Referenced by fillPopup().
|
protected |
Definition at line 87 of file QmitkPropertyListPopup.h.
Referenced by AddMaterialPopup(), fillPopup(), and popupMenuItemHovered().
|
protected |
Definition at line 91 of file QmitkPropertyListPopup.h.
Referenced by fillPopup(), and popupAboutToHide().
|
protected |
Definition at line 77 of file QmitkPropertyListPopup.h.
Referenced by AddMaterialPopup(), fillPopup(), onBoolPropertyClicked(), onNameClicked(), popup(), and QmitkPropertyListPopup().
|
protected |
Definition at line 79 of file QmitkPropertyListPopup.h.
Referenced by AddMaterialPopup(), fillPopup(), onColorClicked(), onNameClicked(), onVisibleClicked(), popupAboutToHide(), and UpdateNodeMaterialOnPopupHiding().
|
protected |
Definition at line 84 of file QmitkPropertyListPopup.h.
Referenced by fillPopup(), and onVisibleClicked().