src/toolsets/basictoolset.cpp

changeset 1011
4fdd74a04790
parent 1006
a6b462051ae0
child 1014
f0a8ecb6a357
child 1217
314e12e23c3a
equal deleted inserted replaced
1010:969b48eddd6b 1011:4fdd74a04790
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);

mercurial