From e377462bed29c4b945fc07fa46f50bf37972d71c Mon Sep 17 00:00:00 2001 From: corvid Date: Sat, 15 Jan 2011 20:55:23 +0000 Subject: fltkui changes --- dw/fltkui.hh | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) (limited to 'dw/fltkui.hh') diff --git a/dw/fltkui.hh b/dw/fltkui.hh index 1130335f..751c94e4 100644 --- a/dw/fltkui.hh +++ b/dw/fltkui.hh @@ -465,15 +465,8 @@ protected: lout::container::typed::List *widgetStacks; lout::container::typed::List *allItems; lout::container::typed::Vector *items; - - Item *createNewItem (typename Item::Type type, - const char *name = NULL, - bool enabled = true, - bool selected = false); - - Fl_Widget *createNewWidget (core::Allocation *allocation); - virtual Fl_Widget *createNewMenu (core::Allocation *allocation) = 0; virtual bool setSelectedItems() { return false; } + virtual void addItem (const char *str, bool enabled, bool selected) = 0; int getMaxStringWidth (); @@ -482,14 +475,6 @@ public: ~FltkSelectionResource (); dw::core::Iterator *iterator (dw::core::Content::Type mask, bool atEnd); - - void addItem (const char *str, bool enabled, bool selected); - - void pushGroup (const char *name, bool enabled); - void popGroup (); - - int getNumberOfItems (); - const char *getItem (int index); }; @@ -497,12 +482,11 @@ class FltkOptionMenuResource: public FltkSelectionResource { protected: - Fl_Widget *createNewMenu (core::Allocation *allocation); + Fl_Widget *createNewWidget (core::Allocation *allocation); virtual bool setSelectedItems() { return true; } - + int getNumberOfItems(); private: static void widgetCallback (Fl_Widget *widget, void *data); - int selection; public: FltkOptionMenuResource (FltkPlatform *platform); @@ -518,7 +502,10 @@ class FltkListResource: public FltkSelectionResource { protected: - Fl_Widget *createNewMenu (core::Allocation *allocation); + Fl_Widget *createNewWidget (core::Allocation *allocation); + + //TODO we'll have to keep track + int getNumberOfItems () {return 0;}; private: static void widgetCallback (Fl_Widget *widget, void *data); -- cgit v1.2.3