Some code cleanup, that might have fixed JoergH's build problem on the way

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5282 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2010-04-26 23:14:59 +00:00
parent 104fa4a1e1
commit 5d827f12ef
3 changed files with 12 additions and 12 deletions

View File

@ -69,14 +69,6 @@ namespace GUIEngine
}; };
/**
* \ingroup guiengine
* \brief Loads a GUI screen from its XML file.
* Builds a hierarchy of Widget objects whose contents are a direct transcription of the XML file,
* with little analysis or layout performed on them.
*/
void parseScreenFileDiv(irr::io::IrrXMLReader* xml, ptr_vector<Widget>& append_to);
/** /**
* \brief Represents a single GUI screen. * \brief Represents a single GUI screen.
* Mainly responsible of its children widgets; Screen lays them * Mainly responsible of its children widgets; Screen lays them
@ -109,6 +101,14 @@ namespace GUIEngine
bool m_throttle_FPS; bool m_throttle_FPS;
/**
* \ingroup guiengine
* \brief Loads a GUI screen from its XML file.
* Builds a hierarchy of Widget objects whose contents are a direct transcription of the XML file,
* with little analysis or layout performed on them.
*/
static void parseScreenFileDiv(irr::io::IrrXMLReader* xml, ptr_vector<Widget>& append_to);
public: public:
@ -226,6 +226,8 @@ namespace GUIEngine
virtual void eventCallback(Widget* widget, const std::string& name, const int playerID) = 0; virtual void eventCallback(Widget* widget, const std::string& name, const int playerID) = 0;
virtual void onUpdate(float dt, irr::video::IVideoDriver*) { }; virtual void onUpdate(float dt, irr::video::IVideoDriver*) { };
}; };
} }

View File

@ -34,7 +34,7 @@ using namespace io;
using namespace gui; using namespace gui;
using namespace GUIEngine; using namespace GUIEngine;
void GUIEngine::parseScreenFileDiv(irr::io::IrrXMLReader* xml, ptr_vector<Widget>& append_to) void Screen::parseScreenFileDiv(irr::io::IrrXMLReader* xml, ptr_vector<Widget>& append_to)
{ {
// parse XML file // parse XML file
while(xml && xml->read()) while(xml && xml->read())

View File

@ -112,8 +112,6 @@ namespace GUIEngine
class Widget : public SkinWidgetContainer class Widget : public SkinWidgetContainer
{ {
protected: protected:
friend void GUIEngine::parseScreenFileDiv(irr::io::IrrXMLReader* xml, ptr_vector<Widget>& append_to);
unsigned int m_magic_number; unsigned int m_magic_number;
friend class EventHandler; friend class EventHandler;