| 1185 | } |
| 1186 | |
| 1187 | void MacrosWindow::InsertCommandAt(int item) |
| 1188 | { |
| 1189 | if (item == -1) { |
| 1190 | return; |
| 1191 | } |
| 1192 | |
| 1193 | MacroCommandDialog d(this, wxID_ANY, mProject); |
| 1194 | |
| 1195 | if (!d.ShowModal()) { |
| 1196 | Raise(); |
| 1197 | return; |
| 1198 | } |
| 1199 | Raise(); |
| 1200 | |
| 1201 | if(!d.mSelectedCommand.empty()) |
| 1202 | { |
| 1203 | mMacroCommands.AddToMacro(d.mSelectedCommand, |
| 1204 | d.mSelectedParameters, |
| 1205 | item); |
| 1206 | mChanged = true; |
| 1207 | mSave->Enable( mChanged ); |
| 1208 | |
| 1209 | mSelectedCommand = item + 1; |
| 1210 | PopulateList(); |
| 1211 | } |
| 1212 | |
| 1213 | } |
| 1214 | |
| 1215 | void MacrosWindow::OnEditCommandParams(wxCommandEvent & WXUNUSED(event)) |
| 1216 | { |
nothing calls this directly
no test coverage detected