mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
Spreadsheet: Add support for copying ranges of cells to other cells
Now the entire range is copied to the area around the target cell, translating the current cursor to the target.
This commit is contained in:
parent
7878596532
commit
e99c2261e3
8 changed files with 187 additions and 53 deletions
|
@ -29,6 +29,7 @@
|
|||
#include "Spreadsheet.h"
|
||||
#include <LibGUI/AbstractTableView.h>
|
||||
#include <LibGUI/ModelEditingDelegate.h>
|
||||
#include <LibGUI/TableView.h>
|
||||
#include <LibGUI/Widget.h>
|
||||
#include <string.h>
|
||||
|
||||
|
@ -87,6 +88,11 @@ public:
|
|||
const Sheet& sheet() const { return *m_sheet; }
|
||||
Sheet& sheet() { return *m_sheet; }
|
||||
|
||||
const GUI::ModelIndex* cursor() const
|
||||
{
|
||||
return &m_table_view->cursor_index();
|
||||
}
|
||||
|
||||
Function<void(Vector<Position>&&)> on_selection_changed;
|
||||
Function<void()> on_selection_dropped;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue