15 #define GETTEXT_DOMAIN "wesnoth-lib"
133 tlabel * nlabel = &find_widget<tlabel>(&window,
"notification_label",
false);
134 nlabel->
set_tooltip(
_(
"This build of wesnoth does not include support for desktop notifications, contact your package manager"));
138 in_lobby = &find_widget<ttoggle_button>(&window,
"ready_for_start_lobby",
false);
141 in_lobby = &find_widget<ttoggle_button>(&window,
"game_has_begun_lobby",
false);
144 in_lobby = &find_widget<ttoggle_button>(&window,
"turn_changed_sound",
false);
147 in_lobby = &find_widget<ttoggle_button>(&window,
"turn_changed_lobby",
false);
151 defaults = &find_widget<tbutton>(&window,
"revert_to_defaults",
false);
void post_show(twindow &window)
Inherited from tdialog.
GLvoid **typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
void set(CURSOR_TYPE type)
Use the default parameter to reset cursors.
static void setup_item(const std::string &item, twindow &window)
REGISTER_DIALOG(label_settings)
static void set_pref_and_button(const std::string &id, bool value, twindow &window)
void connect_signal_mouse_left_click(tdispatcher &dispatcher, const tsignal_function &signal)
Connects a signal handler for a left mouse button click.
void set(const std::string &key, bool value)
const std::vector< std::string > items
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.
GLdouble GLdouble GLdouble b
static UNUSEDNOWARN std::string _(const char *str)
std::string get(const std::string &key)
bool get_value_bool() const
GLsizei const GLfloat * value
bool available()
Returns whether we were compiled with support for desktop notifications.
static size_t id
Ids for the timers.
void set_tooltip(const t_string &tooltip)
static void revert_to_default_pref_values(twindow &window)
bool get_def_pref_sound(const std::string &id)
bool get_def_pref_lobby(const std::string &id)
static ttoggle_button * setup_pref_toggle_button(const std::string &id, bool def, twindow &window)
GLsizei const GLcharARB ** string
void pre_show(twindow &window)
Inherited from tdialog.
bool get_def_pref_notif(const std::string &id)