| 1297 | |
| 1298 | /// |
| 1299 | void MacrosWindow::OnDown(wxCommandEvent & WXUNUSED(event)) |
| 1300 | { |
| 1301 | long item = mList->GetNextItem(-1, |
| 1302 | wxLIST_NEXT_ALL, |
| 1303 | wxLIST_STATE_SELECTED); |
| 1304 | if (item == -1 || item + 2 >= mList->GetItemCount()) { |
| 1305 | return; |
| 1306 | } |
| 1307 | |
| 1308 | mMacroCommands.AddToMacro(mMacroCommands.GetCommand(item), |
| 1309 | mMacroCommands.GetParams(item), |
| 1310 | item + 2); |
| 1311 | mMacroCommands.DeleteFromMacro(item); |
| 1312 | |
| 1313 | mChanged = true; |
| 1314 | mSave->Enable( mChanged ); |
| 1315 | |
| 1316 | mSelectedCommand = item + 1; |
| 1317 | PopulateList(); |
| 1318 | } |
| 1319 | |
| 1320 | void MacrosWindow::OnApplyToProject(wxCommandEvent & event) |
| 1321 | { |
nothing calls this directly
no test coverage detected