diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-03-13 18:46:17 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-03-13 18:46:17 +0100 |
commit | d55de707c3352a468a227d69920a56ef2550a7cc (patch) | |
tree | 3f7ac91962d7e09328fb24d4eb52707a3f6e7f22 /plugingui/listbox.h | |
parent | c17046353762a0893914e671f1f19eadce6f94f5 (diff) |
Added path lineedit and drive selection (win32) to filebrowser. Made a lot of small layout tweaks.
Diffstat (limited to 'plugingui/listbox.h')
-rw-r--r-- | plugingui/listbox.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/plugingui/listbox.h b/plugingui/listbox.h index d7a5021..842a00f 100644 --- a/plugingui/listbox.h +++ b/plugingui/listbox.h @@ -49,7 +49,9 @@ public: std::string selectedName(); std::string selectedValue(); - void registerDblClickHandler(void (*handler)(void *), void *ptr); + void registerSelectHandler(void (*handler)(void *), void *ptr); + void registerClickHandler(void (*handler)(void *), void *ptr); + void registerValueChangeHandler(void (*handler)(void *), void *ptr); virtual void repaintEvent(RepaintEvent *e); virtual void buttonEvent(ButtonEvent *e); @@ -57,6 +59,8 @@ public: virtual void keyEvent(KeyEvent *e); private: + void setSelection(int index); + struct item { std::string name; std::string value; @@ -64,13 +68,20 @@ private: std::vector<struct item> items; int selected; + int marked; GUI::Font font; int padding; int btn_size; int scroll_offset; - void (*dblclk_handler)(void *); - void *ptr; + void (*sel_handler)(void *); + void *sel_ptr; + + void (*clk_handler)(void *); + void *clk_ptr; + + void (*valch_handler)(void *); + void *valch_ptr; }; }; |