37 #include "moc_addObjectDialog.cpp" |
37 #include "moc_addObjectDialog.cpp" |
38 |
38 |
39 // ============================================================================= |
39 // ============================================================================= |
40 // ----------------------------------------------------------------------------- |
40 // ----------------------------------------------------------------------------- |
41 class SubfileListItem : public QTreeWidgetItem |
41 class SubfileListItem : public QTreeWidgetItem |
42 { PROPERTY (public, Primitive*, PrimitiveInfo, NO_OPS, NO_CB) |
42 { PROPERTY (public, Primitive*, PrimitiveInfo, NO_OPS, STOCK_WRITE) |
43 |
43 |
44 public: |
44 public: |
45 SubfileListItem (QTreeWidgetItem* parent, Primitive* info) : |
45 SubfileListItem (QTreeWidgetItem* parent, Primitive* info) : |
46 QTreeWidgetItem (parent), |
46 QTreeWidgetItem (parent), |
47 m_PrimitiveInfo (info) {} |
47 m_PrimitiveInfo (info) {} |
219 // le_matrix->setValidator (new QDoubleValidator); |
219 // le_matrix->setValidator (new QDoubleValidator); |
220 matrix defaultMatrix = g_identity; |
220 matrix defaultMatrix = g_identity; |
221 |
221 |
222 if (mo) |
222 if (mo) |
223 { for (const Axis ax : g_Axes) |
223 { for (const Axis ax : g_Axes) |
224 dsb_coords[ax]->setValue (mo->position() [ax]); |
224 dsb_coords[ax]->setValue (mo->getPosition() [ax]); |
225 |
225 |
226 defaultMatrix = mo->getTransform(); |
226 defaultMatrix = mo->getTransform(); |
227 } |
227 } |
228 |
228 |
229 le_matrix->setText (defaultMatrix.stringRep()); |
229 le_matrix->setText (defaultMatrix.stringRep()); |