#include <listbox.hpp>
Public Member Functions | |
tbuilder_listbox (const config &cfg) | |
twidget * | build () const |
Public Member Functions inherited from gui2::implementation::tbuilder_control | |
tbuilder_control (const config &cfg) | |
virtual twidget * | build (const treplacements &replacements) const override |
void | init_control (tcontrol *control) const |
Public Member Functions inherited from gui2::tbuilder_widget | |
tbuilder_widget (const config &cfg) | |
virtual | ~tbuilder_widget () |
Public Member Functions inherited from reference_counted_object | |
reference_counted_object () | |
reference_counted_object (const reference_counted_object &) | |
reference_counted_object & | operator= (const reference_counted_object &) |
virtual | ~reference_counted_object () |
void | add_ref () const |
void | dec_ref () const |
int | refcount () const |
Public Attributes | |
tscrollbar_container::tscrollbar_mode | vertical_scrollbar_mode |
tscrollbar_container::tscrollbar_mode | horizontal_scrollbar_mode |
tbuilder_grid_ptr | header |
tbuilder_grid_ptr | footer |
tbuilder_grid_ptr | list_builder |
std::vector< string_map > | list_data |
Listbox data. More... | |
bool | has_minimum_ |
bool | has_maximum_ |
Public Attributes inherited from gui2::implementation::tbuilder_control | |
std::string | definition |
Parameters for the control. More... | |
t_string | label |
t_string | tooltip |
t_string | help |
bool | use_tooltip_on_label_overflow |
Public Attributes inherited from gui2::tbuilder_widget | |
std::string | id |
Parameters for the widget. More... | |
std::string | linked_group |
int | debug_border_mode |
unsigned | debug_border_color |
Additional Inherited Members | |
Public Types inherited from gui2::tbuilder_widget | |
typedef std::map< std::string, boost::intrusive_ptr < tbuilder_widget > > | treplacements |
The replacements type is used to define replacement types. More... | |
Protected Member Functions inherited from reference_counted_object | |
void | turn_reference_counting_off () const |
Definition at line 374 of file listbox.hpp.
|
explicit |
Definition at line 836 of file listbox.cpp.
References _(), config::child(), config::child_range(), footer, header, i, list_builder, list_data, and VALIDATE.
|
virtual |
Implements gui2::tbuilder_widget.
Definition at line 890 of file listbox.cpp.
References gui2::tgrid::BORDER_ALL, gui2::tcontrol::config(), DBG_GUI_G, gui2::implementation::tbuilder_control::definition, gui2::tlistbox::finalize(), footer, preferences::grid(), has_maximum_, has_minimum_, header, gui2::tgrid::HORIZONTAL_GROW_SEND_TO_CLIENT, horizontal_scrollbar_mode, gui2::implementation::tbuilder_control::init_control(), gui2::tcontainer_::init_grid(), list_builder, list_data, gui2::new_widgets, gui2::tgrid::set_child(), gui2::tscrollbar_container::set_horizontal_scrollbar_mode(), gui2::twidget::set_id(), gui2::tlistbox::set_list_builder(), gui2::tgrid::set_rows_cols(), gui2::tscrollbar_container::set_vertical_scrollbar_mode(), gui2::tgrid::VERTICAL_GROW_SEND_TO_CLIENT, gui2::tgenerator_::vertical_list, and vertical_scrollbar_mode.
tbuilder_grid_ptr gui2::implementation::tbuilder_listbox::footer |
Definition at line 386 of file listbox.hpp.
Referenced by build(), and tbuilder_listbox().
bool gui2::implementation::tbuilder_listbox::has_maximum_ |
Definition at line 398 of file listbox.hpp.
Referenced by build().
bool gui2::implementation::tbuilder_listbox::has_minimum_ |
Definition at line 398 of file listbox.hpp.
Referenced by build().
tbuilder_grid_ptr gui2::implementation::tbuilder_listbox::header |
Definition at line 385 of file listbox.hpp.
Referenced by build(), and tbuilder_listbox().
tscrollbar_container::tscrollbar_mode gui2::implementation::tbuilder_listbox::horizontal_scrollbar_mode |
Definition at line 383 of file listbox.hpp.
Referenced by build().
tbuilder_grid_ptr gui2::implementation::tbuilder_listbox::list_builder |
Definition at line 388 of file listbox.hpp.
Referenced by build(), and tbuilder_listbox().
std::vector<string_map> gui2::implementation::tbuilder_listbox::list_data |
Listbox data.
Contains a vector with the data to set in every cell, it's used to serialize the data in the config, so the config is no longer required.
Definition at line 396 of file listbox.hpp.
Referenced by build(), and tbuilder_listbox().
tscrollbar_container::tscrollbar_mode gui2::implementation::tbuilder_listbox::vertical_scrollbar_mode |
Definition at line 382 of file listbox.hpp.
Referenced by build().