mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 14:55:07 +00:00
LibGUI: Move editing logic from GTableView up to GAbstractView.
GAbstractView should be able to manage the high-level editing logic, as long as subclasses implement content_rect(GModelIndex) so we know where to put the editing widgets. :^)
This commit is contained in:
parent
9cab7a0707
commit
18785ba5c3
5 changed files with 46 additions and 39 deletions
|
@ -23,6 +23,10 @@ public:
|
|||
virtual void did_update_model();
|
||||
virtual void did_update_selection();
|
||||
|
||||
virtual Rect content_rect(const GModelIndex&) const { return { }; }
|
||||
void begin_editing(const GModelIndex&);
|
||||
void stop_editing();
|
||||
|
||||
Function<void(const GModelNotification&)> on_model_notification;
|
||||
|
||||
virtual const char* class_name() const override { return "GAbstractView"; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue