mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:57:45 +00:00
Spreadsheet: Implement extend functionality
Implements ability to extend a cell's contents by clicking the bottom right of the cell and dragging in a linear direction. For now, the content that is extended is simply a copy of the target cell's values.
This commit is contained in:
parent
f6ad98b1a1
commit
9e54815799
2 changed files with 55 additions and 10 deletions
|
@ -78,11 +78,13 @@ private:
|
|||
virtual void mouseup_event(GUI::MouseEvent&) override;
|
||||
virtual void drop_event(GUI::DropEvent&) override;
|
||||
|
||||
bool m_is_dragging_for_select { false };
|
||||
bool m_is_dragging_for_cut { false };
|
||||
bool m_has_committed_to_cutting { false };
|
||||
bool m_is_hovering_extend_zone { false };
|
||||
bool m_is_hovering_cut_zone { false };
|
||||
bool m_is_dragging_for_select { false };
|
||||
bool m_is_dragging_for_cut { false };
|
||||
bool m_is_dragging_for_extend { false };
|
||||
bool m_has_committed_to_cutting { false };
|
||||
bool m_has_committed_to_extending { false };
|
||||
GUI::ModelIndex m_starting_selection_index;
|
||||
GUI::ModelIndex m_target_cell;
|
||||
RefPtr<Core::Timer> m_horizontal_scroll_end_timer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue