0ad/source/gui
elexis 6ad90aa1b8 Delete wrongful proxy CGUIManager::GetPreDefinedColor from f0d9806b3f.
It is wrong because the predefined colors should be loaded from the GUI
page that requests to have the color parsed, which may be different from
the topmost page.
Similar to FindObjectByName removed in f9b529f2fb.

Achieve this by implementing the CGUISetting<CGUIColor>::FromJSVal
specialization, moved from ScriptInterface::FromJSVal<CGUIColor>,
instead of adding a CGUI pointer to CGUIColor.
Mark ScriptInterface::FromJSVal<GUIColor> and inherited
CColor::ParseString explicitly as deleted, so that people get a compile
error if they forget to check for predefined colors when parsing a
color.

Refs #5387, D1746 > D1684 > this > f9b529f2fb, 9be8a560a9, 415939b59b,
2c47fbd66a, 85a622b13a.

Differential Revision: https://code.wildfiregames.com/D2108
Tested on: clang 8, VS2015

This was SVN commit r22663.
2019-08-13 18:00:41 +00:00
..
scripting Delete wrongful proxy CGUIManager::GetPreDefinedColor from f0d9806b3f. 2019-08-13 18:00:41 +00:00
tests Delete wrongful proxy CGUIManager::GetPreDefinedColor from f0d9806b3f. 2019-08-13 18:00:41 +00:00
CButton.cpp Unfriend the 20 IGUIObject classes from CGUI. 2019-08-10 12:51:27 +00:00
CButton.h Pass the GUI page pointer CGUI* to the IGUIObject and derived classes upon construction, instead of on stray cases. 2019-08-01 20:20:24 +00:00
CChart.cpp Delete wrongful proxy CGUIManager::GetPreDefinedColor from f0d9806b3f. 2019-08-13 18:00:41 +00:00
CChart.h Use NONCOPYABLE for most GUI classes and structs to have the compiler indicate unintended copies, refs 3028551b91 / D2163. 2019-08-10 00:04:17 +00:00
CCheckBox.cpp Unfriend the 20 IGUIObject classes from CGUI. 2019-08-10 12:51:27 +00:00
CCheckBox.h Pass the GUI page pointer CGUI* to the IGUIObject and derived classes upon construction, instead of on stray cases. 2019-08-01 20:20:24 +00:00
CDropDown.cpp Unfriend the 20 IGUIObject classes from CGUI. 2019-08-10 12:51:27 +00:00
CDropDown.h Pass the GUI page pointer CGUI* to the IGUIObject and derived classes upon construction, instead of on stray cases. 2019-08-01 20:20:24 +00:00
CGUI.cpp Delete wrongful proxy CGUIManager::GetPreDefinedColor from f0d9806b3f. 2019-08-13 18:00:41 +00:00
CGUI.h Unfriend the 20 IGUIObject classes from CGUI. 2019-08-10 12:51:27 +00:00
CGUIColor.cpp Delete wrongful proxy CGUIManager::GetPreDefinedColor from f0d9806b3f. 2019-08-13 18:00:41 +00:00
CGUIColor.h Delete wrongful proxy CGUIManager::GetPreDefinedColor from f0d9806b3f. 2019-08-13 18:00:41 +00:00
CGUIList.h Split CGUIString.h from GUIText.h, so that one may have the SGUIText implementation in a separate cpp file. 2019-08-10 19:16:52 +00:00
CGUIScrollBarVertical.cpp Pass the GUI page pointer CGUI* to the IGUIObject and derived classes upon construction, instead of on stray cases. 2019-08-01 20:20:24 +00:00
CGUIScrollBarVertical.h Pass the GUI page pointer CGUI* to the IGUIObject and derived classes upon construction, instead of on stray cases. 2019-08-01 20:20:24 +00:00
CGUISeries.h Use NONCOPYABLE for most GUI classes and structs to have the compiler indicate unintended copies, refs 3028551b91 / D2163. 2019-08-10 00:04:17 +00:00
CGUISprite.cpp Delete wrongful proxy CGUIManager::GetPreDefinedColor from f0d9806b3f. 2019-08-13 18:00:41 +00:00
CGUISprite.h Delete wrongful proxy CGUIManager::GetPreDefinedColor from f0d9806b3f. 2019-08-13 18:00:41 +00:00
CGUIString.cpp Delete wrongful proxy CGUIManager::GetPreDefinedColor from f0d9806b3f. 2019-08-13 18:00:41 +00:00
CGUIString.h Split CGUIString.h from GUIText.h, so that one may have the SGUIText implementation in a separate cpp file. 2019-08-10 19:16:52 +00:00
CImage.cpp Unfriend the 20 IGUIObject classes from CGUI. 2019-08-10 12:51:27 +00:00
CImage.h Pass the GUI page pointer CGUI* to the IGUIObject and derived classes upon construction, instead of on stray cases. 2019-08-01 20:20:24 +00:00
CInput.cpp Unfriend the 20 IGUIObject classes from CGUI. 2019-08-10 12:51:27 +00:00
CInput.h Pass the GUI page pointer CGUI* to the IGUIObject and derived classes upon construction, instead of on stray cases. 2019-08-01 20:20:24 +00:00
CList.cpp Unfriend the 20 IGUIObject classes from CGUI. 2019-08-10 12:51:27 +00:00
CList.h Pass the GUI page pointer CGUI* to the IGUIObject and derived classes upon construction, instead of on stray cases. 2019-08-01 20:20:24 +00:00
COList.cpp Delete wrongful proxy CGUIManager::GetPreDefinedColor from f0d9806b3f. 2019-08-13 18:00:41 +00:00
COList.h Use NONCOPYABLE for most GUI classes and structs to have the compiler indicate unintended copies, refs 3028551b91 / D2163. 2019-08-10 00:04:17 +00:00
CProgressBar.cpp Unfriend the 20 IGUIObject classes from CGUI. 2019-08-10 12:51:27 +00:00
CProgressBar.h Pass the GUI page pointer CGUI* to the IGUIObject and derived classes upon construction, instead of on stray cases. 2019-08-01 20:20:24 +00:00
CRadioButton.cpp Pass the GUI page pointer CGUI* to the IGUIObject and derived classes upon construction, instead of on stray cases. 2019-08-01 20:20:24 +00:00
CRadioButton.h Pass the GUI page pointer CGUI* to the IGUIObject and derived classes upon construction, instead of on stray cases. 2019-08-01 20:20:24 +00:00
CSlider.cpp Unfriend the 20 IGUIObject classes from CGUI. 2019-08-10 12:51:27 +00:00
CSlider.h Pass the GUI page pointer CGUI* to the IGUIObject and derived classes upon construction, instead of on stray cases. 2019-08-01 20:20:24 +00:00
CText.cpp Unfriend the 20 IGUIObject classes from CGUI. 2019-08-10 12:51:27 +00:00
CText.h Pass the GUI page pointer CGUI* to the IGUIObject and derived classes upon construction, instead of on stray cases. 2019-08-01 20:20:24 +00:00
CTooltip.cpp Unfriend the 20 IGUIObject classes from CGUI. 2019-08-10 12:51:27 +00:00
CTooltip.h Pass the GUI page pointer CGUI* to the IGUIObject and derived classes upon construction, instead of on stray cases. 2019-08-01 20:20:24 +00:00
GUI.h Add C++ GUI code for drawing charts. Patch by vladislavbelov. JS will come later. Refs #3403 2016-12-07 19:03:54 +00:00
GUIbase.cpp Move CClientArea ToJSVal / FromJSVal conversion from JSI_IGUIObject (since that should be agnostic of the conversion) to CClientArea (since that defines the properties). 2019-07-26 14:47:27 +00:00
GUIbase.h Use NONCOPYABLE for most GUI classes and structs to have the compiler indicate unintended copies, refs 3028551b91 / D2163. 2019-08-10 00:04:17 +00:00
GUIManager.cpp Delete wrongful proxy CGUIManager::GetPreDefinedColor from f0d9806b3f. 2019-08-13 18:00:41 +00:00
GUIManager.h Delete wrongful proxy CGUIManager::GetPreDefinedColor from f0d9806b3f. 2019-08-13 18:00:41 +00:00
GUIMatrix.cpp Move GetDefaultGuiMatrix to a separate file. 2019-08-04 03:52:00 +00:00
GUIMatrix.h Move GetDefaultGuiMatrix to a separate file. 2019-08-04 03:52:00 +00:00
GUIRenderer.cpp Delete wrongful proxy CGUIManager::GetPreDefinedColor from f0d9806b3f. 2019-08-13 18:00:41 +00:00
GUIRenderer.h Delete wrongful proxy CGUIManager::GetPreDefinedColor from f0d9806b3f. 2019-08-13 18:00:41 +00:00
GUItext.h Split CGUIString.h from GUIText.h, so that one may have the SGUIText implementation in a separate cpp file. 2019-08-10 19:16:52 +00:00
GUITooltip.cpp Tooltip GUI engine cleanup. 2016-06-15 15:40:05 +00:00
GUITooltip.h Use NONCOPYABLE for most GUI classes and structs to have the compiler indicate unintended copies, refs 3028551b91 / D2163. 2019-08-10 00:04:17 +00:00
GUItypes.h Use NONCOPYABLE for most GUI classes and structs to have the compiler indicate unintended copies, refs 3028551b91 / D2163. 2019-08-10 00:04:17 +00:00
GUIutil.cpp Delete wrongful proxy CGUIManager::GetPreDefinedColor from f0d9806b3f. 2019-08-13 18:00:41 +00:00
GUIutil.h Delete wrongful proxy CGUIManager::GetPreDefinedColor from f0d9806b3f. 2019-08-13 18:00:41 +00:00
IGUIButtonBehavior.cpp Unfriend the 20 IGUIObject classes from CGUI. 2019-08-10 12:51:27 +00:00
IGUIButtonBehavior.h Add virtual base initialization missing in 2c47fbd66a. 2019-08-01 23:55:10 +00:00
IGUIObject.cpp Unfriend the 20 IGUIObject classes from CGUI. 2019-08-10 12:51:27 +00:00
IGUIObject.h Unfriend the 20 IGUIObject classes from CGUI. 2019-08-10 12:51:27 +00:00
IGUIScrollBar.cpp Unfriend the 20 IGUIObject classes from CGUI. 2019-08-10 12:51:27 +00:00
IGUIScrollBar.h Use NONCOPYABLE for most GUI classes and structs to have the compiler indicate unintended copies, refs 3028551b91 / D2163. 2019-08-10 00:04:17 +00:00
IGUIScrollBarOwner.cpp Unfriend the 20 IGUIObject classes from CGUI. 2019-08-10 12:51:27 +00:00
IGUIScrollBarOwner.h Pass the GUI page pointer CGUI* to the IGUIObject and derived classes upon construction, instead of on stray cases. 2019-08-01 20:20:24 +00:00
IGUITextOwner.cpp Introduce a JSInterface_IGUITextOwner to encapsulate JSI_IGUIObject::getTextSize from 9c5062147a / D844. 2019-08-02 16:55:15 +00:00
IGUITextOwner.h Fix JSInterface_IGUITextOwner build on VS2015 following 3d07327837 (which works on gcc, clang and Jenkins), reported by minohaka. 2019-08-03 17:52:56 +00:00
MiniMap.cpp Unfriend the 20 IGUIObject classes from CGUI. 2019-08-10 12:51:27 +00:00
MiniMap.h Move GetDefaultGuiMatrix to a separate file. 2019-08-04 03:52:00 +00:00