![]() |
OpenWalnut
1.5.0dev
|
Implements a property widget for MATRIX4X4. More...
#include <WPropertyMatrix4X4Widget.h>
Inheritance diagram for WPropertyMatrix4X4Widget:
Collaboration diagram for WPropertyMatrix4X4Widget:Public Slots | |
| void | editChanged () |
| Called whenever the edit field changes. More... | |
| void | textEdited (const QString &text) |
| Called when the text in m_edit changes. More... | |
Public Member Functions | |
| WPropertyMatrix4X4Widget (WPropMatrix4X4 property, QGridLayout *propertyGrid, QWidget *parent=0) | |
| Constructor. More... | |
| virtual | ~WPropertyMatrix4X4Widget () |
| Destructor. More... | |
Public Member Functions inherited from WPropertyWidget | |
| WPropertyWidget (std::shared_ptr< WPropertyBase > property, QGridLayout *propertyGrid, QWidget *parent=0) | |
| Constructor. More... | |
| virtual | ~WPropertyWidget () |
| Destructor. More... | |
| std::shared_ptr< WPropertyBase > | getProperty () |
| Returns the handled property. More... | |
| virtual void | invalidate (bool invalid=true) |
| This method marks this widget as invalid. More... | |
| virtual std::string | getTooltip () const |
| Gets the tooltip that should be used for this widget. More... | |
| QWidget * | getParameterWidgets () |
| Returns the parameter widget for this property. More... | |
| QWidget * | getInformationWidgets () |
| Returns the info widget for this property. More... | |
| virtual void | requestUpdate () |
| Request an update of the property widget. More... | |
| void | forceInformationMode (bool force=true) |
| Force the widget to use the information widgets. More... | |
Protected Member Functions | |
| virtual void | update () |
| Called whenever the widget should update. More... | |
| void | setPropertyFromWidgets (bool validateOnly=false) |
| Updates the property using the edit X Y and Z widgets. More... | |
Protected Member Functions inherited from WPropertyWidget | |
| virtual bool | event (QEvent *event) |
| Custom event dispatcher. More... | |
Protected Attributes | |
| WPropMatrix4X4 | m_matrixProperty |
| The integer property represented by this widget. More... | |
| QLineEdit | m_edits [16] |
| The edit field showing the value of the slider. More... | |
| QVBoxLayout | m_layout |
| Layout used to position the label and the widgets. More... | |
| WScaleLabel | m_asText |
| Used to show the property as text. More... | |
| QHBoxLayout | m_infoLayout |
| The layout used for the pure output (information properties) More... | |
Protected Attributes inherited from WPropertyWidget | |
| std::shared_ptr< WPropertyBase > | m_property |
| The property handled by the widget. More... | |
| QGridLayout * | m_propertyGrid |
| The grid used to layout label and widget. More... | |
| WScaleLabel | m_label |
| The label used to name the property. More... | |
| QWidget | m_separator |
| Separator after each property. More... | |
| bool | m_useLabel |
| If set to true, the widgets uses the control layout to combine the widget with a label. More... | |
| QWidget | m_parameterWidgets |
| The widget containing a layout and provides the edit widgets for the property. More... | |
| QWidget | m_informationWidgets |
| The widget containing a layout and provides the widgets for showing information properties. More... | |
| bool | m_invalid |
| Flag denoting whether the widget is set to an invalid value. More... | |
| boost::signals2::connection | m_connection |
| The connection for propertyChangeNotifier(). More... | |
| QColor | m_sepCol |
| The color to use for separators. More... | |
| QColor | m_labelCol |
| The color to use for the property labels. More... | |
| QColor | m_propertyCol |
| The color to use for property widgets. More... | |
| QColor | m_errorCol |
| Color used for indicating errors. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from WPropertyWidget | |
| static WPropertyWidget * | construct (WPropertyBase::SPtr property, QGridLayout *propertyGrid=NULL, QWidget *parent=NULL) |
| Constructs a proper widget for the specified property. More... | |
Implements a property widget for MATRIX4X4.
Definition at line 43 of file WPropertyMatrix4X4Widget.h.
| WPropertyMatrix4X4Widget::WPropertyMatrix4X4Widget | ( | WPropMatrix4X4 | property, |
| QGridLayout * | propertyGrid, | ||
| QWidget * | parent = 0 |
||
| ) |
Constructor.
Creates a new widget appropriate for the specified property.
| property | the property to handle |
| parent | the parent widget. |
| propertyGrid | the grid used to layout the labels and property widgets |
Definition at line 38 of file WPropertyMatrix4X4Widget.cpp.
References editChanged(), m_asText, m_edits, m_infoLayout, WPropertyWidget::m_informationWidgets, m_layout, WPropertyWidget::m_parameterWidgets, textEdited(), and update().
Here is the call graph for this function:
|
virtual |
Destructor.
Definition at line 79 of file WPropertyMatrix4X4Widget.cpp.
|
slot |
Called whenever the edit field changes.
Definition at line 102 of file WPropertyMatrix4X4Widget.cpp.
References setPropertyFromWidgets().
Referenced by WPropertyMatrix4X4Widget().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Updates the property using the edit X Y and Z widgets.
| validateOnly | true if the prop should not really be set. Just validated. |
Definition at line 112 of file WPropertyMatrix4X4Widget.cpp.
References WPropertyWidget::invalidate(), m_edits, and m_matrixProperty.
Referenced by editChanged(), and textEdited().
Here is the call graph for this function:
Here is the caller graph for this function:
|
slot |
Called when the text in m_edit changes.
| text |
Definition at line 107 of file WPropertyMatrix4X4Widget.cpp.
References setPropertyFromWidgets().
Referenced by WPropertyMatrix4X4Widget().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protectedvirtual |
Called whenever the widget should update.
Implements WPropertyWidget.
Definition at line 84 of file WPropertyMatrix4X4Widget.cpp.
References m_asText, m_edits, m_matrixProperty, WScaleLabel::setText(), and string_utils::toString().
Referenced by WPropertyMatrix4X4Widget().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Used to show the property as text.
Definition at line 85 of file WPropertyMatrix4X4Widget.h.
Referenced by update(), and WPropertyMatrix4X4Widget().
|
protected |
The edit field showing the value of the slider.
Definition at line 75 of file WPropertyMatrix4X4Widget.h.
Referenced by setPropertyFromWidgets(), update(), and WPropertyMatrix4X4Widget().
|
protected |
The layout used for the pure output (information properties)
Definition at line 90 of file WPropertyMatrix4X4Widget.h.
Referenced by WPropertyMatrix4X4Widget().
|
protected |
Layout used to position the label and the widgets.
Definition at line 80 of file WPropertyMatrix4X4Widget.h.
Referenced by WPropertyMatrix4X4Widget().
|
protected |
The integer property represented by this widget.
Definition at line 70 of file WPropertyMatrix4X4Widget.h.
Referenced by setPropertyFromWidgets(), and update().