#include <window_builder.hpp>
Public Member Functions | |
tbuilder_grid (const config &cfg) | |
tgrid * | build () const |
twidget * | build (const treplacements &replacements) const |
tgrid * | build (tgrid *grid) const |
void | build (tgrid &grid, const treplacements &replacements) 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 | |
unsigned | rows |
unsigned | cols |
std::vector< unsigned > | row_grow_factor |
The grow factor for the rows / columns. More... | |
std::vector< unsigned > | col_grow_factor |
std::vector< unsigned > | flags |
The flags per grid cell. More... | |
std::vector< unsigned > | border_size |
The border size per grid cell. More... | |
std::vector< tbuilder_widget_ptr > | widgets |
The widgets per grid cell. More... | |
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 121 of file window_builder.hpp.
|
explicit |
Definition at line 522 of file window_builder.cpp.
References _(), border_size, config::child_range(), col_grow_factor, cols, gui2::create_builder_widget(), DBG_GUI_P, gui2::log_gui_parse, log_scope2, gui2::implementation::read_flags(), row_grow_factor, rows, VALIDATE, and widgets.
|
virtual |
Implements gui2::tbuilder_widget.
Definition at line 566 of file window_builder.cpp.
Referenced by build().
|
virtual |
Implements gui2::tbuilder_widget.
Definition at line 571 of file window_builder.cpp.
References build().
Definition at line 578 of file window_builder.cpp.
References border_size, col_grow_factor, cols, DBG_GUI_G, preferences::grid(), gui2::tbuilder_widget::linked_group, gui2::log_gui_general, log_scope2, row_grow_factor, rows, gui2::tgrid::set_child(), gui2::tgrid::set_column_grow_factor(), gui2::twidget::set_id(), gui2::twidget::set_linked_group(), gui2::tgrid::set_row_grow_factor(), gui2::tgrid::set_rows_cols(), and widgets.
void gui2::tbuilder_grid::build | ( | tgrid & | grid, |
const treplacements & | replacements | ||
) | const |
Definition at line 612 of file window_builder.cpp.
References border_size, build(), col_grow_factor, cols, DBG_GUI_G, gui2::tbuilder_widget::linked_group, gui2::log_gui_general, log_scope2, row_grow_factor, rows, gui2::tgrid::set_child(), gui2::tgrid::set_column_grow_factor(), gui2::twidget::set_id(), gui2::twidget::set_linked_group(), gui2::tgrid::set_row_grow_factor(), gui2::tgrid::set_rows_cols(), and widgets.
std::vector<unsigned> gui2::tbuilder_grid::border_size |
The border size per grid cell.
Definition at line 137 of file window_builder.hpp.
Referenced by build(), and tbuilder_grid().
std::vector<unsigned> gui2::tbuilder_grid::col_grow_factor |
Definition at line 131 of file window_builder.hpp.
Referenced by build(), and tbuilder_grid().
unsigned gui2::tbuilder_grid::cols |
Definition at line 127 of file window_builder.hpp.
Referenced by build(), and tbuilder_grid().
std::vector<unsigned> gui2::tbuilder_grid::flags |
The flags per grid cell.
Definition at line 134 of file window_builder.hpp.
std::vector<unsigned> gui2::tbuilder_grid::row_grow_factor |
The grow factor for the rows / columns.
Definition at line 130 of file window_builder.hpp.
Referenced by build(), and tbuilder_grid().
unsigned gui2::tbuilder_grid::rows |
Definition at line 126 of file window_builder.hpp.
Referenced by build(), and tbuilder_grid().
std::vector<tbuilder_widget_ptr> gui2::tbuilder_grid::widgets |
The widgets per grid cell.
Definition at line 140 of file window_builder.hpp.
Referenced by build(), and tbuilder_grid().