93 print (tr ("%1 objects deleted"), num); |
93 print (tr ("%1 objects deleted"), num); |
94 } |
94 } |
95 |
95 |
96 void BasicToolset::doInline (bool deep) |
96 void BasicToolset::doInline (bool deep) |
97 { |
97 { |
98 for (LDSubfile* ref : filterByType<LDSubfile> (selectedObjects())) |
98 for (LDSubfileReference* ref : filterByType<LDSubfileReference> (selectedObjects())) |
99 { |
99 { |
100 // Get the index of the subfile so we know where to insert the |
100 // Get the index of the subfile so we know where to insert the |
101 // inlined contents. |
101 // inlined contents. |
102 int idx = ref->lineNumber(); |
102 int idx = ref->lineNumber(); |
103 |
103 |
223 obj->invert(); |
223 obj->invert(); |
224 } |
224 } |
225 |
225 |
226 void BasicToolset::newSubfile() |
226 void BasicToolset::newSubfile() |
227 { |
227 { |
228 AddObjectDialog::staticDialog (OBJ_Subfile, nullptr); |
228 AddObjectDialog::staticDialog (OBJ_SubfileReference, nullptr); |
229 } |
229 } |
230 |
230 |
231 void BasicToolset::newLine() |
231 void BasicToolset::newLine() |
232 { |
232 { |
233 AddObjectDialog::staticDialog (OBJ_Line, nullptr); |
233 AddObjectDialog::staticDialog (OBJ_Line, nullptr); |