46 virtual const std::vector<item_group>&
get_groups()
const override {
static const std::vector<item_group> empty;
return empty; }
void scroll_bottom()
Scroll the editor-palette to the bottom.
void set_start_item(size_t index)
void expand_palette_groups_menu(std::vector< std::pair< std::string, std::string > > &) override
Menu expanding for palette group list.
std::vector< events::sdl_handler * > sdl_handler_vector
void expand_palette_groups_menu(std::vector< std::string > &) override
Menu expanding for palette group list.
virtual bool scroll_up()
Scroll the editor-palette up one step if possible.
boost::ptr_vector< location_palette_item > buttons_
virtual bool is_selected_item(const std::string &id)
virtual std::vector< std::string > action_pressed() const override
virtual void draw_contents()
mouse_action ** active_mouse_action_
std::unique_ptr< location_palette_button > button_goto_
const std::string & selected_item() const
Return the currently selected item.
virtual const std::vector< item_group > & get_groups() const override
location_palette(editor_display &gui, const config &, mouse_action **active_mouse_action)
void adjust_size(const SDL_Rect &target)
Update the size of this widget.
virtual sdl_handler_vector handler_members()
void draw(surface screen)
virtual std::string get_help_string()
Manage the empty-palette in the editor.
int num_visible_items()
Return the maximum number of items shown at the same time.
virtual void prev_group() override
std::string selected_item_
void add_item(const std::string &id)
virtual bool can_scroll_down()
std::unique_ptr< location_palette_button > button_add_
virtual void next_group() override
std::unique_ptr< location_palette_button > button_delete_
void scroll_top()
Scroll the editor-palette to the top.
virtual bool scroll_down()
Scroll the editor-palette down one step if possible.
virtual void select_item(const std::string &item_id)
virtual void set_group(size_t) override
A mouse action receives events from the controller, and responds to them by creating an appropriate e...
A config object defines a single node in a WML file, with access to child nodes.
int num_items()
Return the number of items in the palette.
GLsizei const GLcharARB ** string
void hide(bool hidden) override
std::vector< std::string > items_
virtual bool can_scroll_up()