15 #define GETTEXT_DOMAIN "wesnoth-lib"
72 = find_widget<tscroll_label>(&window,
"stack",
false,
true);
74 std::stringstream stack_text;
77 for(
const auto &
i : fdb_.get_call_stack())
79 for(
int d = 0;
d <
c; ++
d) {
82 stack_text <<
"#<span color=\"green\">" <<
i.counter()
91 window.keyboard_capture(stack_label);
95 = find_widget<tscroll_label>(&window,
"execution",
false,
true);
97 std::stringstream execution_text;
98 for(
const auto &
i : fdb_.get_execution_trace())
100 for(
int d = 0;
d <
i.level(); ++
d) {
104 execution_text <<
"#<span color=\"green\">" <<
i.counter()
108 execution_text <<
"#<span color=\"yellow\">" <<
i.counter()
111 <<
"<span color=\"orange\">"
113 <<
"</span>" << std::endl;
118 execution_label->
set_label(execution_text.str());
123 if(!fdb_.get_current_breakpoint()) {
126 state_str = fdb_.get_current_breakpoint()->name();
127 if(state_str ==
"End") {
132 find_widget<tcontrol>(&window,
"state",
false).
set_label(state_str);
135 tbutton& step_button = find_widget<tbutton>(&window,
"step",
false);
142 tbutton& stepout_button = find_widget<tbutton>(&window,
"stepout",
false);
149 tbutton& next_button = find_widget<tbutton>(&window,
"next",
false);
156 tbutton& continue_button = find_widget<tbutton>(&window,
"continue",
false);
GLvoid **typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
REGISTER_DIALOG(label_settings)
void connect_signal_mouse_left_click(tdispatcher &dispatcher, const tsignal_function &signal)
Connects a signal handler for a left mouse button click.
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.
Dialog is closed with ok button.
void set_retval(const int retval, const bool close_window=true)
Sets there return value of the window.
std::string escape_text(const std::string &text)
Escapes the markup characters in a text.
static void set_label(twindow &window, const std::string &id, const std::string &label)
GLsizei const GLcharARB ** string