46 mListModel(listModel),
57 const std::string &eventId)
162 if (space < 0 || space < labelWidth)
173 const std::string &eventId =
event.getId();
208 return std::string();
242 for (
int f = 0; f < num; f ++)
virtual void add(Widget *const widget)
void draw(Graphics *const graphics)
int getWidth(const std::string &text) const
void setCaption(const std::string &caption)
virtual std::string getElementAt(int i)=0
virtual int getNumberOfElements()=0
int getMaxLabelWidth() const
void action(const ActionEvent &event)
void mouseWheelMovedUp(MouseEvent &event)
void safeDraw(Graphics *const graphics)
void mouseWheelMovedDown(MouseEvent &event)
void setSelectedString(const std::string &str)
void setSelected(const int idx)
SliderList(const Widget2 *const widget, ListModel *const listModel)
std::string getSelectedString() const
void draw(Graphics *const graphics)
void postInit2(ActionListener *const listener, const std::string &eventId)
#define BLOCK_START(name)
static const int buttonSpace
static const int buttonWidth
static const int sliderHeight