| 2461 | |
| 2462 | |
| 2463 | void CsvApplication::addRow(bool before) { |
| 2464 | int row_top, row_bottom, col_top, col_bottom; |
| 2465 | int winIndex = app.getTopWindow(); |
| 2466 | windows[winIndex].grid->get_selection(row_top, col_top, row_bottom, col_bottom); |
| 2467 | showImWorkingWindow("Adding row ..."); |
| 2468 | windows[winIndex].addUndoStateTable("Add row"); |
| 2469 | windows[winIndex].setChanged(true); |
| 2470 | windows[winIndex].setUsed(true); |
| 2471 | if( before ) { |
| 2472 | windows[winIndex].table->addRow(row_top, true); |
| 2473 | windows[winIndex].grid->moveSelection(1,0); |
| 2474 | } else { |
| 2475 | windows[winIndex].table->addRow(row_bottom, false); |
| 2476 | } |
| 2477 | hideImWorkingWindow(); |
| 2478 | windows[winIndex].grid->rows( windows[winIndex].table->getNumberRows() ); |
| 2479 | windows[winIndex].grid->cols( windows[winIndex].table->getNumberCols() ); |
| 2480 | windows[winIndex].grid->redraw(); |
| 2481 | Fl::check(); |
| 2482 | } |
| 2483 | |
| 2484 | |
| 2485 | void CsvApplication::delCols() { |
no test coverage detected