From 130a23f483fe2e486e6d9d804b9d998c159fbcb0 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 12 Feb 2012 12:12:53 +0000 Subject: Scroll listview content by item count instead of by height, enabled listview mousewheel scrolling. --- src/ui/listview.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/ui/listview.h') diff --git a/src/ui/listview.h b/src/ui/listview.h index b097184..b4c00dc 100644 --- a/src/ui/listview.h +++ b/src/ui/listview.h @@ -64,22 +64,29 @@ public: * @brief sort child ListItems according to their sortkey * Sort will fail with an assert error if the ListView * contains any non-ListItem child widgets - */ + * */ void sort(); /** * @brief reverse sort child ListItems according to their sortkey * Sort will fail with an assert error if the ListView * contains any non-ListItem child widgets - */ + * */ void sort_reverse(); protected: virtual void resize(); - /// emit event handler + /** + * @brief emit event handler + * */ virtual bool on_emit(Widget *sender, const Event event, void *data); + /** + * @brief keypress event handler + * */ + virtual bool on_keypress(const int key, const unsigned int modifier); + private: float listview_scroll; -- cgit v1.2.3