src/addObjectDialog.cpp

changeset 1070
292c64cb2a75
parent 1069
220cde0fa2d9
child 1071
ff4639b672ae
equal deleted inserted replaced
1069:220cde0fa2d9 1070:292c64cb2a75
191 { 191 {
192 LDMatrixObject* mo = dynamic_cast<LDMatrixObject*> (obj); 192 LDMatrixObject* mo = dynamic_cast<LDMatrixObject*> (obj);
193 QLabel* lb_matrix = new QLabel ("Matrix:"); 193 QLabel* lb_matrix = new QLabel ("Matrix:");
194 le_matrix = new QLineEdit; 194 le_matrix = new QLineEdit;
195 // le_matrix->setValidator (new QDoubleValidator); 195 // le_matrix->setValidator (new QDoubleValidator);
196 Matrix defaultMatrix = IdentityMatrix; 196 Matrix defaultMatrix = Matrix::identity;
197 197
198 if (mo) 198 if (mo)
199 { 199 {
200 mo->position().apply ([&](Axis ax, double value) 200 mo->position().apply ([&](Axis ax, double value)
201 { 201 {
297 297
298 if (type == OBJ_Empty) 298 if (type == OBJ_Empty)
299 return; // Nothing to edit with empties 299 return; // Nothing to edit with empties
300 300
301 const bool newObject = (obj == nullptr); 301 const bool newObject = (obj == nullptr);
302 Matrix transform = IdentityMatrix; 302 Matrix transform = Matrix::identity;
303 AddObjectDialog dlg (type, obj); 303 AddObjectDialog dlg (type, obj);
304 304
305 if (obj and obj->type() != type) 305 if (obj and obj->type() != type)
306 return; 306 return;
307 307

mercurial