16 #define GETTEXT_DOMAIN "wesnoth-lib"
38 = find_widget<scroll_label>(&
window,
"stack",
false,
true);
40 std::stringstream stack_text;
43 for(
const auto &
i : fdb_.get_call_stack())
45 for(
int d = 0;
d <
c; ++
d) {
48 stack_text <<
"#<span color=\"#00ff00\">" <<
i.counter()
61 = find_widget<scroll_label>(&
window,
"execution",
false,
true);
63 std::stringstream execution_text;
64 for(
const auto &
i : fdb_.get_execution_trace())
66 for(
int d = 0;
d <
i.level(); ++
d) {
70 execution_text <<
"#<span color=\"#00ff00\">" <<
i.counter()
74 execution_text <<
"#<span color=\"#ffff00\">" <<
i.counter()
77 <<
"<span color=\"#ffa500\">"
79 <<
"</span>" << std::endl;
84 execution_label->
set_label(execution_text.str());
87 std::string state_str;
89 if(!fdb_.get_current_breakpoint()) {
92 state_str = fdb_.get_current_breakpoint()->name();
93 if(state_str ==
"End") {
98 find_widget<styled_widget>(&
window,
"state",
false).set_label(state_str);
101 button& step_button = find_widget<button>(&
window,
"step",
false);
106 button& stepout_button = find_widget<button>(&
window,
"stepout",
false);
111 button& next_button = find_widget<button>(&
window,
"next",
false);
116 button& continue_button = find_widget<button>(&
window,
"continue",
false);
base class of top level items, the only item which needs to store the final canvases to draw on.
void set_retval(const int retval, const bool close_window=true)
Sets there return value of the window.
void keyboard_capture(widget *widget)
std::string escape_text(const std::string &text)
Escapes the pango markup characters in a text.
REGISTER_DIALOG(tod_new_schedule)
void connect_signal_mouse_left_click(dispatcher &dispatcher, const signal &signal)
Connects a signal handler for a left mouse button click.
@ OK
Dialog was closed with the OK button.