void item_added(unsigned);
void item_removed(unsigned);
void cleared();
- void refresh_strings();
+ void refresh_item(unsigned);
};
protected:
public:
virtual const char *get_class() const { return "listitem"; }
- virtual void autosize();
+ protected:
+ virtual void autosize_special(const Part &, Geometry &);
+ public:
void set_active(bool);
virtual void render_special(const Part &, GL::Renderer &) const;
int sel_index;
unsigned first;
unsigned max_scroll;
+ unsigned view_size;
VSlider slider;
std::vector<Item *> items;
virtual const char *get_class() const { return "list"; }
- virtual void autosize();
- void autosize_rows(unsigned);
- void autosize_all();
+private:
+ virtual void autosize_special(const Part &, Geometry &);
+public:
void set_data(ListData &);
ListData &get_data() { return *data; }
const ListData &get_data() const { return *data; }
void items_changed();
protected:
virtual Item *create_item(unsigned);
+
public:
+ void set_view_size(unsigned);
+ void set_view_all();
void set_selected_index(int);
int get_selected_index() const { return sel_index; }