15 #define GETTEXT_DOMAIN "wesnoth-lib"
33 :
button(video, items.empty() ? empty_combo_label : items[0]),
34 items_(items), selected_(0), oldSelected_(0), video_(&video)
60 const size_t index = size_t(val);
78 nullptr,
"",
nullptr, -1,
nullptr, loc.x, loc.y + loc.h,
virtual void process_event()
std::vector< std::string > items_
GLuint const GLfloat * val
static const int horizontal_padding
combo(CVideo &v, const std::vector< std::string > &items)
const std::vector< std::string > items
static const int font_size
static const int vertical_padding
int show_dialog(CVideo &video, surface image, const std::string &caption, const std::string &message, DIALOG_TYPE type, const std::vector< std::string > *menu_items, const std::vector< preview_pane * > *preview_panes, const std::string &text_widget_label, std::string *text_widget_text, const int text_widget_max_chars, std::vector< check_item > *options, int xloc, int yloc, const dialog_frame::style *dialog_style, std::vector< dialog_button_info > *action_buttons, const menu::sorter *sorter, menu::style *menu_style)
static const style hotkeys_style
void set_selected_internal(int val)
void set_selected(int val)
void set_items(const std::vector< std::string > &items)
void make_drop_down_menu()
static const std::string empty_combo_label
GLsizei const GLcharARB ** string