39 struct builder_unit_preview_pane;
62 virtual void set_active(
const bool active)
override;
68 virtual unsigned get_state()
const override;
105 static const std::string&
type();
143 virtual std::unique_ptr<widget>
build()
const override;
A config object defines a single node in a WML file, with access to child nodes.
A generic container base class.
void profile_button_callback()
Callback for the profile button.
static const std::string & type()
Static type getter that does not rely on the widget being constructed.
virtual void set_active(const bool active) override
See styled_widget::set_active.
styled_widget * label_details_
void set_displayed_unit(const unit &u)
Displays the stats of a specific unit.
unit_preview_pane(const implementation::builder_unit_preview_pane &builder)
virtual bool get_active() const override
See styled_widget::get_active.
void print_attack_details(T attacks, tree_view_node &parent_node)
void set_image_mods(const std::string &mods)
Sets the facing of the unit image.
virtual void set_self_active(const bool active) override
See container_base::set_self_active.
virtual const std::string & get_control_type() const override
Inherited from styled_widget, implemented by REGISTER_WIDGET.
tree_view * tree_details_
void set_displayed_type(const unit_type &type)
Displays the stats of a specified unit type.
virtual unsigned get_state() const override
See styled_widget::get_state.
utils::optional_reference< const unit_type > current_type_
void finalize_setup()
Initializes the internal sub-widget pointers.
A single unit type that the player may recruit.
This class represents a single unit of a specific type.
std::string label
What to show in the filter's drop-down list.
std::shared_ptr< builder_grid > builder_grid_ptr
Functions to load and save images from/to disk.
Contains the implementation details for lexical_cast and shouldn't be used directly.
virtual std::unique_ptr< widget > build() const override
builder_unit_preview_pane(const config &cfg)
const std::string image_mods_
resolution(const config &cfg)
unit_preview_pane_definition(const config &cfg)