1
0
forked from 0ad/0ad
0ad/source
elexis 8f1b37b216 Major ordered list GUI cleanup. Patch by Imarok, fixes #3905.
Remove m_SelectedDef, m_SelectedColumnOrder and m_HeadingHeight. Use
GetSetting and SetSetting instead. Thus
implement selecting a column / column order sprite from JS correctly.
Since the actual list sorting is done in JS, only the column header
sprites were inaccurate.

Remove "selected_def" since that is redundant with "selected_column".
Merge "selected_column" with "default_column" (and
"selected_column_order" with "default_column_order") since
all properties provided in XML pages are defaults and to remove the
copying on init.

Rename "def" to "column" and "ObjectDef" to "COListColumn".
Replace 30px header height hardcoded in the C++ with an option set by
the style.
Remove the unneeded requirement to specify a "list_name".
Thus rename "list_name" to "list_month" in the replay menu.
Remove unneeded "list_" prefix and substr(5) in column checks.
Use ranged loops.
Fix typo "Avalible".
Add an error message if the GUI style doesn't specify the selected
column order.

This was SVN commit r18652.
2016-08-31 19:29:48 +00:00
..
collada Fix line endings of all files in source/ except source/third_party/. 2016-07-25 09:07:45 +00:00
graphics Fix compilation failure. 2016-08-21 20:35:10 +00:00
gui Major ordered list GUI cleanup. Patch by Imarok, fixes #3905. 2016-08-31 19:29:48 +00:00
i18n Mark method const. 2016-08-21 20:35:06 +00:00
lib Use the debugger output on Windows for invalid parameter tests (see bd9bc6db78). 2016-08-15 12:15:19 +00:00
lobby Display the gamestart time in the lobby. Patch by Imarok, combined with d7d0a7f869 fixes #3476. 2016-08-14 09:03:30 +00:00
maths Fix build for gcc 4.6. Patch by Vladislav 2016-04-14 16:36:12 +00:00
mocks More FreeBSD build fixes. 2012-01-30 06:21:11 +00:00
network Remove duplication of the Hexify function. 2016-08-08 12:50:39 +00:00
pch Switch to std::shared_ptr and std::weak_ptr. 2015-01-25 03:10:58 +00:00
ps Fix compilation failure. 2016-08-21 20:35:10 +00:00
renderer Improve water rendering, partly based on a patch by aeonios, including: 2016-06-26 16:54:58 +00:00
scriptinterface Tiny whitespace cleanup. 2016-08-07 17:44:27 +00:00
simulation2 Keep mounting the cache directory in tests. Fixes oversight in 493990f472. 2016-08-22 01:00:23 +00:00
soundmanager Header cleanup: profile.h is no longer unnecessarily included in scriptinterface.h but rather in the required .cpp files 2016-06-21 10:33:11 +00:00
third_party Update tinygettext. 2015-12-08 18:05:11 +00:00
tools Fix indentation. 2016-08-21 20:35:13 +00:00
main.cpp Fix calls to CXeromyces::Terminate in the main loop to fix several possible memory leaks. 2016-08-08 08:32:57 +00:00
test_setup.cpp Properly shut down SpiderMonkey using JS_ShutDown. 2016-08-06 15:41:59 +00:00