Listbox rows no longer have a fixed height.

Remove the old part of the code which allowed that.
This commit is contained in:
Mark de Wever 2009-02-28 19:42:36 +00:00
parent 7f6c207a53
commit e77b593dd7
7 changed files with 1 additions and 23 deletions

View file

@ -68,8 +68,6 @@
id = "addon_list"
definition = "default"
assume_fixed_row_size = "true"
[header]
[row]

View file

@ -69,8 +69,6 @@
id = "language_list"
definition = "default"
assume_fixed_row_size = "true"
[list_definition]
[row]

View file

@ -263,7 +263,6 @@
id = "map_list"
definition = "default"
assume_fixed_row_size = "true"
[list_definition]
[row]

View file

@ -109,7 +109,6 @@ The Battle for Wesnoth forum can be found at http://www.wesnoth.org/forum/"
vertical_scrollbar_mode = "never"
horizontal_scrollbar_mode = "never"
assume_fixed_row_size = "true"
[list_definition]

View file

@ -68,8 +68,6 @@
id = "server_list"
definition = "default"
assume_fixed_row_size = "true"
[header]
[row]

View file

@ -695,8 +695,7 @@ tbuilder_listbox::tbuilder_listbox(const config& cfg) :
header(cfg.child("header") ? new tbuilder_grid(*(cfg.child("header"))) : 0),
footer(cfg.child("footer") ? new tbuilder_grid(*(cfg.child("footer"))) : 0),
list_builder(0),
list_data(),
assume_fixed_row_size(utils::string_bool(cfg["assume_fixed_row_size"]))
list_data()
{
/*WIKI
* @page = GUIToolkitWML
@ -730,17 +729,6 @@ tbuilder_listbox::tbuilder_listbox(const config& cfg) :
* initial data for the listbox. Every row
* must have the same number of columns as
* the 'list_definition'.
*
* assume_fixed_row_size (bool = true)
* If not all rows can be shown this value
* becomes important. If fixed size we
* always show X rows and no half rows are
* shown. This doesn't mean the rows need to
* be fixed size eg the addon dialog might
* get the option to show verbose info in
* the same listbox in that case it's still
* allowed to set the value.
*
* @end_table
*
*

View file

@ -174,8 +174,6 @@ public:
* serialize the data in the config, so the config is no longer required.
*/
std::vector<string_map>list_data;
const bool assume_fixed_row_size;
};
struct tbuilder_menubar : public tbuilder_control