diff options
author | Max Horn | 2003-11-10 23:40:48 +0000 |
---|---|---|
committer | Max Horn | 2003-11-10 23:40:48 +0000 |
commit | 22c22d1e81b25c103100b6c8347b154f16dafc5e (patch) | |
tree | 233ff187add3c769346b5e7c89ee954eb967b477 /scumm | |
parent | 5c2a3da7f2f8f45e20b732defbaed7aa47af00c8 (diff) | |
download | scummvm-rg350-22c22d1e81b25c103100b6c8347b154f16dafc5e.tar.gz scummvm-rg350-22c22d1e81b25c103100b6c8347b154f16dafc5e.tar.bz2 scummvm-rg350-22c22d1e81b25c103100b6c8347b154f16dafc5e.zip |
added namespace GUI
svn-id: r11255
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/dialogs.cpp | 6 | ||||
-rw-r--r-- | scumm/dialogs.h | 8 | ||||
-rw-r--r-- | scumm/scumm.h | 5 |
3 files changed, 9 insertions, 10 deletions
diff --git a/scumm/dialogs.cpp b/scumm/dialogs.cpp index 85e5f9016c..9003732324 100644 --- a/scumm/dialogs.cpp +++ b/scumm/dialogs.cpp @@ -136,12 +136,6 @@ static ResString string_map_table_v5[] = { #pragma mark - -void ScummDialog::addResText(int x, int y, int w, int h, int resID) { - // Get the string - new StaticTextWidget(this, x, y, w, h, queryResString(resID), kTextAlignCenter); -} - - const Common::String ScummDialog::queryResString(int stringno) { byte *result; diff --git a/scumm/dialogs.h b/scumm/dialogs.h index ab6999d38d..f7d22bbc55 100644 --- a/scumm/dialogs.h +++ b/scumm/dialogs.h @@ -30,7 +30,11 @@ #include "scumm/help.h" #endif -class ListWidget; +namespace GUI { + class ListWidget; +} +using namespace GUI; // FIXME: Bad style to use a using directive in a header + namespace Scumm { @@ -46,8 +50,6 @@ protected: ScummEngine *_scumm; - void addResText(int x, int y, int w, int h, int resID); - // Query a string from the resources const String queryResString(int stringno); }; diff --git a/scumm/scumm.h b/scumm/scumm.h index f80d99c244..7ce022db8d 100644 --- a/scumm/scumm.h +++ b/scumm/scumm.h @@ -32,7 +32,10 @@ #include "scumm/gfx.h" #include "scumm/script.h" -class Dialog; +namespace GUI { + class Dialog; +} +using GUI::Dialog; class GameDetector; namespace Scumm { |