[Scummvm-cvs-logs] SF.net SVN: scummvm:[46317] scummvm/trunk/engines/gob

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Wed Dec 9 19:15:04 CET 2009


Revision: 46317
          http://scummvm.svn.sourceforge.net/scummvm/?rev=46317&view=rev
Author:   fingolfin
Date:     2009-12-09 18:15:04 +0000 (Wed, 09 Dec 2009)

Log Message:
-----------
Change GOB engine so that not all its files depend on gui/dialog.h (and thus tons of other headers in gui/ and graphics/)

Modified Paths:
--------------
    scummvm/trunk/engines/gob/gob.cpp
    scummvm/trunk/engines/gob/gob.h

Modified: scummvm/trunk/engines/gob/gob.cpp
===================================================================
--- scummvm/trunk/engines/gob/gob.cpp	2009-12-09 18:12:51 UTC (rev 46316)
+++ scummvm/trunk/engines/gob/gob.cpp	2009-12-09 18:15:04 UTC (rev 46317)
@@ -33,6 +33,7 @@
 #include "sound/mididrv.h"
 
 #include "gui/GuiManager.h"
+#include "gui/dialog.h"
 #include "gui/widget.h"
 
 #include "gob/gob.h"
@@ -71,6 +72,18 @@
 };
 
 
+class PauseDialog : public GUI::Dialog {
+public:
+	PauseDialog();
+
+  virtual void reflowLayout();
+	virtual void handleKeyDown(Common::KeyState state);
+
+private:
+	Common::String _message;
+	GUI::StaticTextWidget *_text;
+};
+
 PauseDialog::PauseDialog() : GUI::Dialog("PauseDialog") {
 	_backgroundType = GUI::ThemeEngine::kDialogBackgroundSpecial;
 

Modified: scummvm/trunk/engines/gob/gob.h
===================================================================
--- scummvm/trunk/engines/gob/gob.h	2009-12-09 18:12:51 UTC (rev 46316)
+++ scummvm/trunk/engines/gob/gob.h	2009-12-09 18:15:04 UTC (rev 46317)
@@ -29,8 +29,6 @@
 #include "common/system.h"
 #include "common/savefile.h"
 
-#include "gui/dialog.h"
-
 #include "engines/engine.h"
 
 namespace GUI {
@@ -147,18 +145,6 @@
 
 struct GOBGameDescription;
 
-class PauseDialog : public GUI::Dialog {
-public:
-	PauseDialog();
-
-  virtual void reflowLayout();
-	virtual void handleKeyDown(Common::KeyState state);
-
-private:
-	Common::String _message;
-	GUI::StaticTextWidget *_text;
-};
-
 class GobEngine : public Engine {
 private:
 	GameType _gameType;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list