15 #ifndef GUI_WIDGETS_TREE_VIEW_HPP_INCLUDED
16 #define GUI_WIDGETS_TREE_VIEW_HPP_INCLUDED
24 struct tbuilder_tree_view;
47 explicit ttree_view(
const std::vector<tnode_definition>& node_definitions);
58 const std::map<std::string /* widget id */, string_map>&
data);
65 const std::vector<twidget*>& call_stack)
override;
145 const int height_modification,
146 const int width__modification_pos = -1,
147 const int height_modification_pos = -1);
162 template<ttree_view_node* (ttree_view_node::*func) ()>
165 template<ttree_view_node* (ttree_view_node::*func) ()>
tscrollbar_container::tscrollbar_mode horizontal_scrollbar_mode
unsigned indention_step_size_
implementation::ttree_node tnode_definition
bool handle_up_down_arrow()
tresolution(const config &cfg)
ttree_view_node * selected_item()
tscrollbar_container::tscrollbar_mode vertical_scrollbar_mode
const std::vector< tnode_definition > node_definitions_
ttree_view_node * selected_item_
void set_indention_step_size(const unsigned indention_step_size)
virtual void finalize_setup()
Inherited from tcontainer_.
virtual const std::string & get_control_type() const override
See tcontrol::get_control_type.
GLint GLenum GLsizei GLint GLsizei const GLvoid * data
void handle_key_down_arrow(SDLMod modifier, bool &handled)
Inherited from tscrollbar_container.
Base class of a resolution, contains the common keys for a resolution.
ttree_view_node * root_node_
base class of top level items, the only item which needs to store the final canvases to draw on ...
ttree_view_node & add_node(const std::string &id, const std::map< std::string, string_map > &data)
A class inherited from ttext_box that displays its input as stars.
std::function< void(twidget &)> selection_change_callback_
void set_selection_change_callback(std::function< void(twidget &)> callback)
std::vector< ttree_node > nodes
The types of nodes in the tree view.
virtual void set_self_active(const bool active) override
See tcontainer_::set_self_active.
tbuilder_grid_ptr builder
void handle_key_left_arrow(SDLMod modifier, bool &handled)
Inherited from tscrollbar_container.
tbuilder_tree_view(const config &cfg)
tevent
The event send to the dispatcher.
ttree_view_definition(const config &cfg)
void signal_handler_left_button_down(const event::tevent event)
void handle_key_up_arrow(SDLMod modifier, bool &handled)
Inherited from tscrollbar_container.
ttree_view_node & get_root_node()
unsigned indention_step_size
ttree_node(const config &cfg)
void handle_key_right_arrow(SDLMod modifier, bool &handled)
Inherited from tscrollbar_container.
ttree_view(const std::vector< tnode_definition > &node_definitions)
ttree_view_node * get_next_node()
const ttree_view_node * selected_item() const
void remove_node(ttree_view_node *tree_view_node)
A config object defines a single node in a WML file, with access to child nodes.
virtual void layout_children() override
See twidget::layout_children.
GLsizei const GLcharARB ** string
Contains the implementation details for lexical_cast and shouldn't be used directly.
void resize_content(const int width_modification, const int height_modification, const int width__modification_pos=-1, const int height_modification_pos=-1)
Resizes the content.
virtual void child_populate_dirty_list(twindow &caller, const std::vector< twidget * > &call_stack) override
See twidget::child_populate_dirty_list.