Medical Imaging Interaction Toolkit
2018.4.99-389bf124
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 38 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 29 of file QmitkPropertyListPopup.cpp.
References fillPopup(), m_PopupMenu, popupAboutToHide(), and popupMenuItemHovered().
|
virtual |
Definition at line 235 of file QmitkPropertyListPopup.cpp.
|
protectedvirtual |
Definition at line 205 of file QmitkPropertyListPopup.cpp.
References m_MaterialMenuAction, m_OpacityMenuAction, m_PopupMenu, m_PropertyList, and MaterialEditorChangesAccepted().
Referenced by fillPopup().
|
protected |
Definition at line 59 of file QmitkPropertyListPopup.cpp.
Referenced by fillPopup().
void QmitkPropertyListPopup::fillPopup | ( | ) |
Definition at line 69 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 342 of file QmitkPropertyListPopup.cpp.
Referenced by AddMaterialPopup().
|
protectedslot |
Definition at line 317 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 295 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 245 of file QmitkPropertyListPopup.cpp.
References mitk::StringProperty::GetValue(), m_PopupMenu, m_PropertyList, propertyListChangesDone(), and mitk::StringProperty::SetValue().
Referenced by fillPopup().
|
protectedslot |
Definition at line 282 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 240 of file QmitkPropertyListPopup.cpp.
References m_PopupMenu.
|
protectedvirtualslot |
Definition at line 346 of file QmitkPropertyListPopup.cpp.
References m_AcceptOnHide, m_OriginalOpacity, m_PropertyList, propertyListChangesDone(), and UpdateNodeMaterialOnPopupHiding().
Referenced by QmitkPropertyListPopup().
|
protectedslot |
Definition at line 370 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 382 of file QmitkPropertyListPopup.cpp.
References m_PropertyList.
Referenced by popupAboutToHide().
|
protected |
Definition at line 85 of file QmitkPropertyListPopup.h.
Referenced by popupAboutToHide(), and popupMenuItemHovered().
|
protected |
Definition at line 76 of file QmitkPropertyListPopup.h.
Referenced by fillPopup(), and onBoolPropertyClicked().
|
protected |
Definition at line 81 of file QmitkPropertyListPopup.h.
Referenced by fillPopup().
|
protected |
Definition at line 89 of file QmitkPropertyListPopup.h.
Referenced by fillPopup().
|
protected |
Definition at line 77 of file QmitkPropertyListPopup.h.
Referenced by fillPopup().
|
protected |
Definition at line 82 of file QmitkPropertyListPopup.h.
Referenced by AddMaterialPopup(), fillPopup(), and popupMenuItemHovered().
|
protected |
Definition at line 79 of file QmitkPropertyListPopup.h.
Referenced by fillPopup().
|
protected |
Definition at line 83 of file QmitkPropertyListPopup.h.
Referenced by AddMaterialPopup(), fillPopup(), and popupMenuItemHovered().
|
protected |
Definition at line 87 of file QmitkPropertyListPopup.h.
Referenced by fillPopup(), and popupAboutToHide().
|
protected |
Definition at line 73 of file QmitkPropertyListPopup.h.
Referenced by AddMaterialPopup(), fillPopup(), onBoolPropertyClicked(), onNameClicked(), popup(), and QmitkPropertyListPopup().
|
protected |
Definition at line 75 of file QmitkPropertyListPopup.h.
Referenced by AddMaterialPopup(), fillPopup(), onColorClicked(), onNameClicked(), onVisibleClicked(), popupAboutToHide(), and UpdateNodeMaterialOnPopupHiding().
|
protected |
Definition at line 80 of file QmitkPropertyListPopup.h.
Referenced by fillPopup(), and onVisibleClicked().