30 #include "core/common/WStringUtils.h"
31 #include "core/common/WLogger.h"
32 #include "core/common/WPropertyVariable.h"
33 #include "../WGuiConsts.h"
34 #include "../guiElements/WScaleLabel.h"
36 #include "WPropertyMatrix4X4Widget.h"
40 m_matrixProperty( property ),
41 m_layout( &m_parameterWidgets ),
42 m_asText( &m_informationWidgets ),
43 m_infoLayout( &m_informationWidgets )
46 for(
size_t row = 0; row < 4; ++row )
48 QHBoxLayout* h =
new QHBoxLayout();
50 for(
size_t col = 0; col < 4; ++col )
52 size_t i = row * 4 + col;
54 m_edits[ i ].setMinimumHeight( WMIN_WIDGET_HEIGHT );
67 m_layout.setMargin( WGLOBAL_MARGIN );
68 m_layout.setSpacing( WGLOBAL_SPACING );
89 for(
size_t row = 0; row < 4; ++row )
91 for(
size_t col = 0; col < 4; ++col )
93 size_t i = row * 4 + col;
119 for(
size_t row = 0; row < 4; ++row )
121 for(
size_t col = 0; col < 4; ++col )
123 size_t i = row * 4 + col;
127 double value =
m_edits[ i ].text().toDouble( &tmp );
128 valid = valid && tmp;
129 m( row, col ) = value;
virtual void setText(const QString &text)
reimplemented function to setText
std::string toString(const T &value)
Convert a given value to a string.