Index: ps/trunk/source/gui/CButton.cpp =================================================================== --- ps/trunk/source/gui/CButton.cpp +++ ps/trunk/source/gui/CButton.cpp @@ -23,7 +23,7 @@ #include "lib/ogl.h" CButton::CButton(CGUI* pGUI) - : IGUIObject(pGUI) + : IGUIObject(pGUI), IGUIButtonBehavior(pGUI), IGUITextOwner(pGUI) { AddSetting(GUIST_float, "buffer_zone"); AddSetting(GUIST_CGUIString, "caption"); Index: ps/trunk/source/gui/CChart.cpp =================================================================== --- ps/trunk/source/gui/CChart.cpp +++ ps/trunk/source/gui/CChart.cpp @@ -30,7 +30,7 @@ #include CChart::CChart(CGUI* pGUI) - : IGUIObject(pGUI) + : IGUIObject(pGUI), IGUITextOwner(pGUI) { AddSetting(GUIST_CGUIColor, "axis_color"); AddSetting(GUIST_float, "axis_width"); Index: ps/trunk/source/gui/CCheckBox.cpp =================================================================== --- ps/trunk/source/gui/CCheckBox.cpp +++ ps/trunk/source/gui/CCheckBox.cpp @@ -29,7 +29,7 @@ * Thus the font, caption, textcolor and other settings have no effect. */ CCheckBox::CCheckBox(CGUI* pGUI) - : IGUIObject(pGUI) + : IGUIObject(pGUI), IGUITextOwner(pGUI), IGUIButtonBehavior(pGUI) { AddSetting(GUIST_float, "buffer_zone"); AddSetting(GUIST_CGUIString, "caption"); Index: ps/trunk/source/gui/CList.cpp =================================================================== --- ps/trunk/source/gui/CList.cpp +++ ps/trunk/source/gui/CList.cpp @@ -28,7 +28,7 @@ CList::CList(CGUI* pGUI) - : IGUIObject(pGUI), IGUIScrollBarOwner(pGUI), + : IGUIObject(pGUI), IGUITextOwner(pGUI), IGUIScrollBarOwner(pGUI), m_Modified(false), m_PrevSelectedItem(-1), m_LastItemClickTime(0) { // Add sprite_disabled! TODO Index: ps/trunk/source/gui/CText.cpp =================================================================== --- ps/trunk/source/gui/CText.cpp +++ ps/trunk/source/gui/CText.cpp @@ -24,7 +24,7 @@ #include "lib/ogl.h" CText::CText(CGUI* pGUI) - : IGUIObject(pGUI), IGUIScrollBarOwner(pGUI) + : IGUIObject(pGUI), IGUIScrollBarOwner(pGUI), IGUITextOwner(pGUI) { AddSetting(GUIST_float, "buffer_zone"); AddSetting(GUIST_CGUIString, "caption"); Index: ps/trunk/source/gui/CTooltip.cpp =================================================================== --- ps/trunk/source/gui/CTooltip.cpp +++ ps/trunk/source/gui/CTooltip.cpp @@ -23,7 +23,7 @@ #include CTooltip::CTooltip(CGUI* pGUI) - : IGUIObject(pGUI) + : IGUIObject(pGUI), IGUITextOwner(pGUI) { // If the tooltip is an object by itself: AddSetting(GUIST_float, "buffer_zone"); Index: ps/trunk/source/gui/IGUIButtonBehavior.h =================================================================== --- ps/trunk/source/gui/IGUIButtonBehavior.h +++ ps/trunk/source/gui/IGUIButtonBehavior.h @@ -49,7 +49,7 @@ class IGUIButtonBehavior : virtual public IGUIObject { public: - IGUIButtonBehavior(); + IGUIButtonBehavior(CGUI* pGUI); virtual ~IGUIButtonBehavior(); /** Index: ps/trunk/source/gui/IGUIButtonBehavior.cpp =================================================================== --- ps/trunk/source/gui/IGUIButtonBehavior.cpp +++ ps/trunk/source/gui/IGUIButtonBehavior.cpp @@ -22,7 +22,8 @@ #include "ps/CLogger.h" #include "soundmanager/ISoundManager.h" -IGUIButtonBehavior::IGUIButtonBehavior() : m_Pressed(false) +IGUIButtonBehavior::IGUIButtonBehavior(CGUI* pGUI) + : IGUIObject(pGUI), m_Pressed(false) { } Index: ps/trunk/source/gui/IGUIObject.h =================================================================== --- ps/trunk/source/gui/IGUIObject.h +++ ps/trunk/source/gui/IGUIObject.h @@ -514,7 +514,7 @@ private: // An object can't function stand alone - CGUI* m_pGUI; + CGUI* const m_pGUI; // Internal storage for registered script handlers. std::map > m_ScriptHandlers; Index: ps/trunk/source/gui/IGUIScrollBar.h =================================================================== --- ps/trunk/source/gui/IGUIScrollBar.h +++ ps/trunk/source/gui/IGUIScrollBar.h @@ -155,7 +155,7 @@ class IGUIScrollBar { public: - IGUIScrollBar(CGUI* m_pGUI); + IGUIScrollBar(CGUI* pGUI); virtual ~IGUIScrollBar(); public: Index: ps/trunk/source/gui/IGUIScrollBar.cpp =================================================================== --- ps/trunk/source/gui/IGUIScrollBar.cpp +++ ps/trunk/source/gui/IGUIScrollBar.cpp @@ -20,8 +20,8 @@ #include "GUI.h" #include "maths/MathUtil.h" -IGUIScrollBar::IGUIScrollBar(CGUI* m_pGUI) - : m_pGUI(m_pGUI), +IGUIScrollBar::IGUIScrollBar(CGUI* pGUI) + : m_pGUI(pGUI), m_pStyle(NULL), m_X(300.f), m_Y(300.f), m_ScrollRange(1.f), m_ScrollSpace(0.f), // MaxPos: not 0, due to division. Index: ps/trunk/source/gui/IGUITextOwner.h =================================================================== --- ps/trunk/source/gui/IGUITextOwner.h +++ ps/trunk/source/gui/IGUITextOwner.h @@ -45,7 +45,7 @@ class IGUITextOwner : virtual public IGUIObject { public: - IGUITextOwner(); + IGUITextOwner(CGUI* pGUI); virtual ~IGUITextOwner(); /** Index: ps/trunk/source/gui/IGUITextOwner.cpp =================================================================== --- ps/trunk/source/gui/IGUITextOwner.cpp +++ ps/trunk/source/gui/IGUITextOwner.cpp @@ -19,7 +19,8 @@ #include "gui/GUI.h" -IGUITextOwner::IGUITextOwner() : m_GeneratedTextsValid(false) +IGUITextOwner::IGUITextOwner(CGUI* pGUI) + : IGUIObject(pGUI), m_GeneratedTextsValid(false) { }