15 #define GETTEXT_DOMAIN "wesnoth-lib"
45 SCALING_ALGORITHM algo = SCALING_ALGORITHM::LINEAR;
60 SCALING_ALGORITHM
scale = SCALING_ALGORITHM::from_int(
x);
61 ttoggle_button* button = &find_widget<ttoggle_button>(&window, pref_id +
"_" + scale.to_string(),
false);
70 SCALING_ALGORITHM new_val =
groups_[case_id].get_active_member_value();
static const std::vector< std::string > scale_cases
SCALING_ALGORITHM get_scale_pref(const std::string &pref_id)
GLenum GLenum GLenum GLenum GLenum scale
void setup_scale_case(const std::string &, twindow &)
MAKE_ENUM(SCALING_ALGORITHM,(LINEAR,"linear")(NEAREST_NEIGHBOR,"nn")(XBRZ_LIN,"xbrzlin")(XBRZ_NN,"xbrznn")) private void pre_show(twindow &window)
Inherited from tdialog, implemented by REGISTER_DIALOG.
std::map< std::string, tgroup< SCALING_ALGORITHM > > groups_
REGISTER_DIALOG(label_settings)
void set(const std::string &key, bool value)
base class of top level items, the only item which needs to store the final canvases to draw on ...
A class inherited from ttext_box that displays its input as stars.
void update_scale_case(const std::string &)
std::string get(const std::string &key)
Dialog is closed with ok button.
GLuint GLuint GLsizei count
GLint GLint GLint GLint GLint x
void post_show(twindow &window)
Inherited from tdialog.
void add_member(tselectable_ *widget, const T &value)
Adds a widget/value pair to the group vector.
bool update_from_preferences()
initialize any private data, e.g. algorithm choices from preferences
GLsizei const GLcharARB ** string
void set_member_states(const T &value)
Sets the toggle values for all widgets besides the one associated with the specified value to false...
tadvanced_graphics_options()
Constructor.