16 #define GETTEXT_DOMAIN "wesnoth-lib"
39 = find_widget<scroll_label>(&
window,
"stack",
false,
true);
41 std::stringstream stack_text;
44 for(
const auto &
i : fdb_.get_call_stack())
46 for(
int d = 0;
d <
c; ++
d) {
49 stack_text <<
"#<span color=\"#00ff00\">" <<
i.counter()
62 = find_widget<scroll_label>(&
window,
"execution",
false,
true);
64 std::stringstream execution_text;
65 for(
const auto &
i : fdb_.get_execution_trace())
67 for(
int d = 0;
d <
i.level(); ++
d) {
71 execution_text <<
"#<span color=\"#00ff00\">" <<
i.counter()
75 execution_text <<
"#<span color=\"#ffff00\">" <<
i.counter()
78 <<
"<span color=\"#ffa500\">"
80 <<
"</span>" << std::endl;
85 execution_label->
set_label(execution_text.str());
88 std::string state_str;
90 if(!fdb_.get_current_breakpoint()) {
93 state_str = fdb_.get_current_breakpoint()->name();
94 if(state_str ==
"End") {
99 find_widget<styled_widget>(&
window,
"state",
false).set_label(state_str);
102 button& step_button = find_widget<button>(&
window,
"step",
false);
107 button& stepout_button = find_widget<button>(&
window,
"stepout",
false);
112 button& next_button = find_widget<button>(&
window,
"next",
false);
117 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)
#define REGISTER_DIALOG(window_id)
Wrapper for REGISTER_DIALOG2.
std::string escape_text(const std::string &text)
Escapes the pango markup characters in a text.
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.
This file contains the settings handling of the widget library.