1
0
forked from 0ad/0ad
0ad/source/gui
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
..
scripting Style cleanup by leper, preparing the SpiderMonkey update. Refs #3708 2016-08-02 16:12:11 +00:00
tests Start phasing out the use of CParser in the GUI. Makes GUI parsing generally faster and stricter while adding better tests and debug information. 2014-05-25 03:16:52 +00:00
CButton.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CButton.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CCheckBox.cpp GUI cleanup. 2016-06-21 14:38:06 +00:00
CCheckBox.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CDropDown.cpp GUI engine cleanup. 2016-06-07 12:02:33 +00:00
CDropDown.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CGUI.cpp The old debug API has been removed in SpiderMonkey 38, so remove profiler1 script profiling. 2016-08-02 16:58:30 +00:00
CGUI.h Handle double-clicks on list elements better. Patch by elexis. 2015-11-16 18:23:21 +00:00
CGUIList.h Add GPL header 2009-04-18 17:00:33 +00:00
CGUIScrollBarVertical.cpp GUI engine cleanup. 2016-06-07 15:57:33 +00:00
CGUIScrollBarVertical.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CGUISprite.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CGUISprite.h Allow multiple special sprites, to facilitate cases where we want to add an overlay to a sprite. 2015-12-13 16:03:17 +00:00
CImage.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CImage.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CInput.cpp The old debug API has been removed in SpiderMonkey 38, so remove profiler1 script profiling. 2016-08-02 16:58:30 +00:00
CInput.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CList.cpp 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
CList.h Handle double-clicks on list elements better. Patch by elexis. 2015-11-16 18:23:21 +00:00
COList.cpp Major ordered list GUI cleanup. Patch by Imarok, fixes #3905. 2016-08-31 19:29:48 +00:00
COList.h Major ordered list GUI cleanup. Patch by Imarok, fixes #3905. 2016-08-31 19:29:48 +00:00
CProgressBar.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CProgressBar.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CRadioButton.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CRadioButton.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CText.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CText.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CTooltip.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
CTooltip.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
GUI.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
GUIbase.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
GUIbase.h Handle double-clicks on list elements better. Patch by elexis. 2015-11-16 18:23:21 +00:00
GUIManager.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
GUIManager.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
GUIRenderer.cpp Allow multiple special sprites, to facilitate cases where we want to add an overlay to a sprite. 2015-12-13 16:03:17 +00:00
GUIRenderer.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
GUItext.cpp GUI engine cleanup. 2016-06-07 12:02:33 +00:00
GUItext.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
GUITooltip.cpp Tooltip GUI engine cleanup. 2016-06-15 15:40:05 +00:00
GUITooltip.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
GUItypes.h Fix #402 (Clean up GUItypes.h), based on patch from Caius 2009-11-19 21:44:19 +00:00
GUIutil.cpp The old debug API has been removed in SpiderMonkey 38, so remove profiler1 script profiling. 2016-08-02 16:58:30 +00:00
GUIutil.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
IGUIButtonBehavior.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
IGUIButtonBehavior.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
IGUIObject.cpp The old debug API has been removed in SpiderMonkey 38, so remove profiler1 script profiling. 2016-08-02 16:58:30 +00:00
IGUIObject.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
IGUIScrollBar.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
IGUIScrollBar.h Fix #3415. Removes 'ghost' scrollbar bounding to enable extreme-right hover and selection in dropdowns. Patch by elexis. 2015-10-31 05:40:43 +00:00
IGUIScrollBarOwner.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
IGUIScrollBarOwner.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
IGUITextOwner.cpp GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
IGUITextOwner.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00
MiniMap.cpp The old debug API has been removed in SpiderMonkey 38, so remove profiler1 script profiling. 2016-08-02 16:58:30 +00:00
MiniMap.h GUI code cleanup. Fixes #3354. 2015-08-21 17:08:41 +00:00