| 1275 | |
| 1276 | /// |
| 1277 | void MacrosWindow::OnUp(wxCommandEvent & WXUNUSED(event)) |
| 1278 | { |
| 1279 | long item = mList->GetNextItem(-1, |
| 1280 | wxLIST_NEXT_ALL, |
| 1281 | wxLIST_STATE_SELECTED); |
| 1282 | if (item == -1 || item == 0 || item + 1 == mList->GetItemCount()) { |
| 1283 | return; |
| 1284 | } |
| 1285 | |
| 1286 | mMacroCommands.AddToMacro(mMacroCommands.GetCommand(item), |
| 1287 | mMacroCommands.GetParams(item), |
| 1288 | item - 1); |
| 1289 | mMacroCommands.DeleteFromMacro(item + 1); |
| 1290 | |
| 1291 | mChanged = true; |
| 1292 | mSave->Enable( mChanged ); |
| 1293 | |
| 1294 | mSelectedCommand = item - 1; |
| 1295 | PopulateList(); |
| 1296 | } |
| 1297 | |
| 1298 | /// |
| 1299 | void MacrosWindow::OnDown(wxCommandEvent & WXUNUSED(event)) |
nothing calls this directly
no test coverage detected