From b1a83aee9683d73f728fd9eea76c54636036acbc Mon Sep 17 00:00:00 2001 From: corvid Date: Sat, 29 Jan 2011 07:30:44 +0000 Subject: clean out FltkSelectionResource --- dw/fltkui.hh | 34 ++-------------------------------- 1 file changed, 2 insertions(+), 32 deletions(-) (limited to 'dw/fltkui.hh') diff --git a/dw/fltkui.hh b/dw/fltkui.hh index 741db2ab..f62e7a3e 100644 --- a/dw/fltkui.hh +++ b/dw/fltkui.hh @@ -436,43 +436,13 @@ template class FltkSelectionResource: public FltkSpecificResource { protected: - class Item: public lout::object::Object - { - public: - enum Type { ITEM, START, END } type; - - const char *name; - bool enabled, initSelected; - - Item (Type type, const char *name = NULL, bool enabled = true, - bool selected = false); - ~Item (); - - Item *createNewWidget (int index); -// Fl_ItemGroup *createNewGroupWidget (); - }; - - class WidgetStack: public lout::object::Object - { - public: - Fl_Menu *widget; - lout::container::typed::Stack > *stack; - - WidgetStack (Fl_Menu *widget); - ~WidgetStack (); - }; - - lout::container::typed::List *widgetStacks; - lout::container::typed::List *allItems; - lout::container::typed::Vector *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 (); - + FltkSelectionResource (FltkPlatform *platform) : + FltkSpecificResource (platform) {}; dw::core::Iterator *iterator (dw::core::Content::Type mask, bool atEnd); }; -- cgit v1.2.3