diff options
author | corvid <corvid@lavabit.com> | 2011-01-29 05:29:09 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2011-01-29 05:29:09 +0000 |
commit | 0862e28f784eef8b785d5fd7b24cf1d3d3c39ad6 (patch) | |
tree | 420bc1e5dc3d2a809d6650fb0a8aa20d07ada3b3 /dw/fltkui.hh | |
parent | 4058c05576c5d04bcd29fb7989461d444d962e2f (diff) |
push/popGroup is back. Implemented for FltkOptionMenu
Diffstat (limited to 'dw/fltkui.hh')
-rw-r--r-- | dw/fltkui.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dw/fltkui.hh b/dw/fltkui.hh index 24875161..cc5f5bc0 100644 --- a/dw/fltkui.hh +++ b/dw/fltkui.hh @@ -467,6 +467,8 @@ protected: lout::container::typed::Vector <Item> *items; virtual bool setSelectedItems() { return false; } virtual void addItem (const char *str, bool enabled, bool selected) = 0; + virtual void pushGroup (const char *name, bool enabled) = 0; + virtual void popGroup () = 0; public: FltkSelectionResource (FltkPlatform *platform); ~FltkSelectionResource (); @@ -486,6 +488,7 @@ protected: private: static void widgetCallback (Fl_Widget *widget, void *data); void enlargeMenu(); + Fl_Menu_Item *newItem(); Fl_Menu_Item *menu; int itemsAllocated, itemsUsed; public: @@ -493,6 +496,8 @@ public: ~FltkOptionMenuResource (); void addItem (const char *str, bool enabled, bool selected); + void pushGroup (const char *name, bool enabled); + void popGroup (); void sizeRequest (core::Requisition *requisition); bool isSelected (int index); @@ -519,6 +524,8 @@ public: ~FltkListResource (); void addItem (const char *str, bool enabled, bool selected); + void pushGroup (const char *name, bool enabled) {}; + void popGroup () {}; void sizeRequest (core::Requisition *requisition); bool isSelected (int index); |