24 #ifndef __evGUIMultiBrowser_h 25 #define __evGUIMultiBrowser_h 28 #include <FL/Fl_Multi_Browser.H> 29 #include <FL/Fl_Button.H> 34 #define EVGUIMULTIBROWSER_BUTTON_WIDTH 80 35 #define EVGUIMULTIBROWSER_BUTTON_HEIGHT 20 42 const int width,
const int height,
48 return(
evString(
"evGUIMultiBrowser"));
51 virtual void Clear(
void);
63 static void SelectAll(Fl_Widget *widget,
void *data);
64 static void ClearAll(Fl_Widget *widget,
void *data);
85 for (
unsigned int line = 1;
86 line <= (
unsigned int)this->
Browser->size();
88 if (this->
Browser->selected(line))
99 unsigned int index = 0;
100 for (
unsigned int line = 1;
101 line <= (
unsigned int)this->
Browser->size();
103 if (this->
Browser->selected(line))
104 selected[index++] = line - 1;
void AddLine(const char *line)
Definition: evGUIMultiBrowser.h:75
Fl_Multi_Browser * Browser
Definition: evGUIMultiBrowser.h:57
virtual void Clear(void)
Definition: evGUIMultiBrowser.h:69
Fl_Button * ClearAllButton
Definition: evGUIMultiBrowser.h:61
unsigned int * GetSelected(void) const
Definition: evGUIMultiBrowser.h:95
virtual const evString GetClassName(void) const
Definition: evGUIMultiBrowser.h:46
unsigned int GetNumSelected(void) const
Definition: evGUIMultiBrowser.h:81
static void SelectAll(Fl_Widget *widget, void *data)
Definition: evGUIObject.h:33
static void ClearAll(Fl_Widget *widget, void *data)
virtual ~evGUIMultiBrowser(void)
Fl_Button * SelectAllButton
Definition: evGUIMultiBrowser.h:60
Definition: evGUIMultiBrowser.h:38
evGUIMultiBrowser(const int x, const int y, const int width, const int height, const char *label)
Definition: evString.h:30