| 280 | } |
| 281 | |
| 282 | void DotSequencer::ButtonClicked(ClickButton* button, double time) |
| 283 | { |
| 284 | if (button == mClearButton) |
| 285 | mDotGrid->Clear(); |
| 286 | if (button == mDoubleButton) |
| 287 | { |
| 288 | if (mCols * 2 <= mDotGrid->GetMaxColumns()) |
| 289 | { |
| 290 | mCols *= 2; |
| 291 | mDotGrid->SetGrid(mCols, mRows); |
| 292 | for (int col = 0; col < mCols / 2; ++col) |
| 293 | { |
| 294 | for (int row = 0; row < mRows; ++row) |
| 295 | mDotGrid->CopyDot(DotGrid::DotPosition(col, row), DotGrid::DotPosition(col + mCols / 2, row)); |
| 296 | } |
| 297 | } |
| 298 | } |
| 299 | } |
| 300 | |
| 301 | void DotSequencer::DropdownUpdated(DropdownList* list, int oldVal, double time) |
| 302 | { |
nothing calls this directly
no test coverage detected