188 // ============================================================================= |
188 // ============================================================================= |
189 // ----------------------------------------------------------------------------- |
189 // ----------------------------------------------------------------------------- |
190 void writeColorGroup (const int colnum, str fname) |
190 void writeColorGroup (const int colnum, str fname) |
191 { QList<LDObject*> objects; |
191 { QList<LDObject*> objects; |
192 |
192 |
193 for (LDObject* obj : LDFile::current()->objects()) |
193 for (LDObject* obj : LDFile::current()->getObjects()) |
194 { if (obj->isColored() == false || obj->color() != colnum) |
194 { if (obj->isColored() == false || obj->getColor() != colnum) |
195 continue; |
195 continue; |
196 |
196 |
197 objects << obj; |
197 objects << obj; |
198 } |
198 } |
199 |
199 |
402 |
402 |
403 QDialog* dlg = new QDialog; |
403 QDialog* dlg = new QDialog; |
404 Ui::IntersectorUI ui; |
404 Ui::IntersectorUI ui; |
405 ui.setupUi (dlg); |
405 ui.setupUi (dlg); |
406 |
406 |
407 makeColorSelector (ui.cmb_incol); |
407 makeColorComboBox (ui.cmb_incol); |
408 makeColorSelector (ui.cmb_cutcol); |
408 makeColorComboBox (ui.cmb_cutcol); |
409 ui.cb_repeat->setWhatsThis ("If this is set, " APPNAME " runs Intersector a second time with inverse files to cut the " |
409 ui.cb_repeat->setWhatsThis ("If this is set, " APPNAME " runs Intersector a second time with inverse files to cut the " |
410 " cutter group with the input group. Both groups are cut by the intersection."); |
410 " cutter group with the input group. Both groups are cut by the intersection."); |
411 ui.cb_edges->setWhatsThis ("Makes " APPNAME " try run Isecalc to create edgelines for the intersection."); |
411 ui.cb_edges->setWhatsThis ("Makes " APPNAME " try run Isecalc to create edgelines for the intersection."); |
412 |
412 |
413 int inCol, cutCol; |
413 int inCol, cutCol; |