src/addObjectDialog.cpp

changeset 526
b29b6fc45ba9
parent 525
4f6e46a3bfc3
child 538
2f85d4d286e5
equal deleted inserted replaced
525:4f6e46a3bfc3 526:b29b6fc45ba9
32 #include "colorSelectDialog.h" 32 #include "colorSelectDialog.h"
33 #include "history.h" 33 #include "history.h"
34 #include "widgets.h" 34 #include "widgets.h"
35 #include "misc.h" 35 #include "misc.h"
36 #include "primitives.h" 36 #include "primitives.h"
37 #include "moc_addObjectDialog.cpp"
37 38
38 // ============================================================================= 39 // =============================================================================
39 // ----------------------------------------------------------------------------- 40 // -----------------------------------------------------------------------------
40 class SubfileListItem : public QTreeWidgetItem 41 class SubfileListItem : public QTreeWidgetItem
41 { PROPERTY (Primitive*, primInfo, setPrimInfo) 42 { PROPERTY (Primitive*, primInfo, setPrimInfo)
385 return; 386 return;
386 } 387 }
387 388
388 LDSubfile* ref = initObj<LDSubfile> (obj); 389 LDSubfile* ref = initObj<LDSubfile> (obj);
389 390
390 for (const Axis ax : g_Axes) 391 for (const Axis ax : g_Axes)
391 ref->setCoordinate (ax, dlg.dsb_coords[ax]->value()); 392 ref->setCoordinate (ax, dlg.dsb_coords[ax]->value());
392 393
393 ref->setTransform (transform); 394 ref->setTransform (transform);
394 ref->setFileInfo (file); 395 ref->setFileInfo (file);
395 } 396 }
407 LDFile::current()->insertObj (idx, obj); 408 LDFile::current()->insertObj (idx, obj);
408 } 409 }
409 410
410 g_win->fullRefresh(); 411 g_win->fullRefresh();
411 } 412 }
412 #include "moc_addObjectDialog.cpp"

mercurial