diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-23 03:53:51 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-23 03:54:45 +0100 |
commit | 19fa70c8211739949c95404d9a87230656a9227f (patch) | |
tree | e11444f26703d7e67653728bb99713e915ed9481 /LibGUI/GAbstractView.h | |
parent | 5707d7f547026544f4d9c7a320d97ccd6e055784 (diff) | |
download | serenity-19fa70c8211739949c95404d9a87230656a9227f.zip |
LibGUI: Add a GItemView class.
This is a GAbstractView subclass that implements a icon-based view onto
a GModel. It still need a bunch of work, but it's in basic usable shape.
Diffstat (limited to 'LibGUI/GAbstractView.h')
-rw-r--r-- | LibGUI/GAbstractView.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/LibGUI/GAbstractView.h b/LibGUI/GAbstractView.h index 69a45aabad..99fa48e9cd 100644 --- a/LibGUI/GAbstractView.h +++ b/LibGUI/GAbstractView.h @@ -2,6 +2,7 @@ #include <LibGUI/GModel.h> #include <LibGUI/GScrollableWidget.h> +#include <AK/Function.h> class GAbstractView : public GScrollableWidget { friend class GModel; @@ -18,6 +19,10 @@ public: virtual bool accepts_focus() const override { return true; } virtual void did_update_model(); + Function<void(const GModelNotification&)> on_model_notification; + + virtual const char* class_name() const override { return "GAbstractView"; } + protected: virtual void model_notification(const GModelNotification&); |