diff --git a/src/game_launcher.cpp b/src/game_launcher.cpp index ee4397afa0c6..b77ee350c8ee 100644 --- a/src/game_launcher.cpp +++ b/src/game_launcher.cpp @@ -173,9 +173,9 @@ game_launcher::game_launcher(const commandline_options& cmdline_opts, const char } #ifdef DEBUG_WINDOW_LAYOUT_GRAPHS if (cmdline_opts_.debug_dot_domain) - gui2::tdebug_layout_graph::set_domain (*cmdline_opts_.debug_dot_domain); + gui2::debug_layout_graph::set_domain (*cmdline_opts_.debug_dot_domain); if (cmdline_opts_.debug_dot_level) - gui2::tdebug_layout_graph::set_level (*cmdline_opts_.debug_dot_level); + gui2::debug_layout_graph::set_level (*cmdline_opts_.debug_dot_level); #endif if (cmdline_opts_.editor) { diff --git a/src/gui/widgets/debug.cpp b/src/gui/widgets/debug.cpp index a521e26afdd6..3d0b3aaf806d 100644 --- a/src/gui/widgets/debug.cpp +++ b/src/gui/widgets/debug.cpp @@ -221,7 +221,7 @@ void debug_layout_graph::widget_generate_info(std::ostream& out, } out << "];\n"; - const grid* grid = dynamic_cast(widget); + const grid* grid = dynamic_cast(widget); if(!grid) { const container_base* container = dynamic_cast(widget); @@ -233,16 +233,16 @@ void debug_layout_graph::widget_generate_info(std::ostream& out, } const scrollbar_container* scrollbar_container - = dynamic_cast(widget); + = dynamic_cast(widget); if(scrollbar_container) { widget_generate_info( - out, scrollbar_container->content_grid_, id + "_C", true); + out, scrollbar_container->content_grid_.get(), id + "_C", true); out << "\t" << id << " -> " << id << "_C" << " [label=\"(content)\"];\n"; } - const listbox* listbox = dynamic_cast(widget); + const listbox* listbox = dynamic_cast(widget); if(listbox) { assert(listbox->generator_); } @@ -285,7 +285,7 @@ void debug_layout_graph::widget_generate_basic_info(std::ostream& out, { std::string header_background = level_ & (SIZE_INFO | STATE_INFO) ? " bgcolor=\"gray\"" : ""; - const styled_widget* styled_widget = dynamic_cast(widget); + const styled_widget* control = dynamic_cast(widget); out << "" << '\n' << "type=" << get_type(widget) << '\n' << "" << '\n' @@ -296,7 +296,7 @@ void debug_layout_graph::widget_generate_basic_info(std::ostream& out, << "parent=" << widget->parent_ << '\n' << "" << '\n'; if(control) { out << "" << '\n' - << "label=" << format_label(control->label()) << '\n' << "" << '\n' << "definition=" << control->definition_ << '\n' << "" << '\n' << "\n"; @@ -307,7 +307,7 @@ void debug_layout_graph::widget_generate_state_info(std::ostream& out, const widget* widget) const { - const styled_widget* control = dynamic_cast(widget); + const styled_widget* control = dynamic_cast(widget); if(!control) { return; } @@ -321,9 +321,9 @@ void debug_layout_graph::widget_generate_state_info(std::ostream& out, << "\n" << "active=" << control->get_active() << '\n' << "\n" << "\n" - << "visible=" << control->get_visible() << '\n' << "\n" + << "visible=" << static_cast(control->get_visible()) << '\n' << "\n" << "\n" - << "drawing action=" << control->get_drawing_action() << '\n' + << "drawing action=" << static_cast(control->get_drawing_action()) << '\n' << "\n" << "\n" << "clip rect=" << control->clipping_rectangle_ << '\n' @@ -337,7 +337,7 @@ void debug_layout_graph::widget_generate_state_info(std::ostream& out, << '\n' << "\n"; const scrollbar_container* scrollbar_container - = dynamic_cast(widget); + = dynamic_cast(widget); if(scrollbar_container) { out << "\n" @@ -367,7 +367,7 @@ void debug_layout_graph::widget_generate_size_info(std::ostream& out, << "layout_size_=" << widget->layout_size_ << '\n' << "\n"; - const styled_widget* control = dynamic_cast(widget); + const styled_widget* control = dynamic_cast(widget); if(control) { out << "\n" @@ -406,7 +406,7 @@ void debug_layout_graph::grid_generate_info(std::ostream& out, for(unsigned row = 0; row < grid->get_rows(); ++row) { for(unsigned col = 0; col < grid->get_cols(); ++col) { - const widget* widget = grid->child(row, col).widget(); + const widget* widget = grid->get_widget(row, col); assert(widget); widget_generate_info( @@ -420,7 +420,7 @@ void debug_layout_graph::grid_generate_info(std::ostream& out, for(unsigned col = 0; col < grid->get_cols(); ++col) { child_generate_info(out, - grid->child(row, col), + grid->get_child(row, col), get_child_id(parent_id, row, col)); } } @@ -533,11 +533,11 @@ void debug_layout_graph::child_generate_info(std::ostream& out, std::string debug_layout_graph::get_type(const widget* widget) const { - const styled_widget* control = dynamic_cast(widget); + const styled_widget* control = dynamic_cast(widget); if(control) { return control->get_control_type(); } else { - const grid* grid = dynamic_cast(widget); + const grid* grid = dynamic_cast(widget); const generator_base* generator = dynamic_cast(widget); if(grid) {