mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:08:13 +00:00
LibGUI: Move selection behavior from TableView up to AbstractView
Let's make SelectionBehavior a view concept where views can either select individual items (row, index) or whole rows. Maybe some day we'll do whole columns, but I don't think we need that now.
This commit is contained in:
parent
c8fb00fe4d
commit
f0138fcb25
5 changed files with 13 additions and 15 deletions
|
@ -51,9 +51,6 @@ public:
|
|||
GridStyle grid_style() const { return m_grid_style; }
|
||||
void set_grid_style(GridStyle);
|
||||
|
||||
CursorStyle cursor_style() const { return m_cursor_style; }
|
||||
void set_cursor_style(CursorStyle);
|
||||
|
||||
virtual void move_cursor(CursorMovement, SelectionUpdate) override;
|
||||
|
||||
protected:
|
||||
|
@ -64,7 +61,6 @@ protected:
|
|||
|
||||
private:
|
||||
GridStyle m_grid_style { GridStyle::None };
|
||||
CursorStyle m_cursor_style { CursorStyle::Row };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue