diff options
author | Max Horn | 2008-11-12 13:14:44 +0000 |
---|---|---|
committer | Max Horn | 2008-11-12 13:14:44 +0000 |
commit | 144be21bed1001c4a72739ef7656908cbf71e909 (patch) | |
tree | 45ebe3f4e3ea3079f54f7d9e705de502af9ac91f /gui | |
parent | 190468c79a56eb75e7bdcb2bb558042e347a74d1 (diff) | |
download | scummvm-rg350-144be21bed1001c4a72739ef7656908cbf71e909.tar.gz scummvm-rg350-144be21bed1001c4a72739ef7656908cbf71e909.tar.bz2 scummvm-rg350-144be21bed1001c4a72739ef7656908cbf71e909.zip |
GUI: Got rid of the WidgetSize stuff
svn-id: r35022
Diffstat (limited to 'gui')
-rw-r--r-- | gui/ThemeEval.cpp | 3 | ||||
-rw-r--r-- | gui/newgui.cpp | 4 | ||||
-rw-r--r-- | gui/newgui.h | 2 | ||||
-rw-r--r-- | gui/themes/default.inc | 2 | ||||
-rw-r--r-- | gui/themes/scummclassic.zip | bin | 43779 -> 43668 bytes | |||
-rw-r--r-- | gui/themes/scummclassic/classic_layout.stx | 1 | ||||
-rw-r--r-- | gui/themes/scummclassic/classic_layout_320.stx | 1 | ||||
-rw-r--r-- | gui/themes/scummmodern.zip | bin | 144236 -> 144122 bytes | |||
-rw-r--r-- | gui/themes/scummmodern/scummmodern_layout.stx | 2 | ||||
-rw-r--r-- | gui/themes/scummmodern/scummmodern_layout_320.stx | 1 | ||||
-rw-r--r-- | gui/widget.h | 6 |
11 files changed, 0 insertions, 22 deletions
diff --git a/gui/ThemeEval.cpp b/gui/ThemeEval.cpp index a448048d60..753455e799 100644 --- a/gui/ThemeEval.cpp +++ b/gui/ThemeEval.cpp @@ -38,9 +38,6 @@ void ThemeEval::buildBuiltinVars() { _builtin["kThumbnailWidth"] = kThumbnailWidth; _builtin["kThumbnailHeight"] = kThumbnailHeight1; _builtin["kThumbnailHeight2"] = kThumbnailHeight2; - - _builtin["kNormalWidgetSize"] = GUI::kNormalWidgetSize; - _builtin["kBigWidgetSize"] = GUI::kBigWidgetSize; } void ThemeEval::reset() { diff --git a/gui/newgui.cpp b/gui/newgui.cpp index d8c3a8212e..aa778b834c 100644 --- a/gui/newgui.cpp +++ b/gui/newgui.cpp @@ -380,10 +380,6 @@ void NewGui::animateCursor() { } } -WidgetSize NewGui::getWidgetSize() { - return (WidgetSize)(g_gui.xmlEval()->getVar("Globals.WidgetSize")); -} - void NewGui::clearDragWidget() { if (!_dialogStack.empty()) _dialogStack.top()->_dragWidget = 0; diff --git a/gui/newgui.h b/gui/newgui.h index c87b4fd177..e7ee19769e 100644 --- a/gui/newgui.h +++ b/gui/newgui.h @@ -88,8 +88,6 @@ public: int getStringWidth(const Common::String &str, ThemeEngine::FontStyle style = ThemeEngine::kFontStyleBold) const { return _theme->getStringWidth(str, style); } int getCharWidth(byte c, ThemeEngine::FontStyle style = ThemeEngine::kFontStyleBold) const { return _theme->getCharWidth(c, style); } - WidgetSize getWidgetSize(); - void clearDragWidget(); void screenChange(); diff --git a/gui/themes/default.inc b/gui/themes/default.inc index aa38639ee1..89a9a5d620 100644 --- a/gui/themes/default.inc +++ b/gui/themes/default.inc @@ -310,7 +310,6 @@ "<def var='Line.Height' value='16' /> " "<def var='Font.Height' value='16' /> " "<def var='TabLabelWidth' value='110' /> " -"<def var='WidgetSize' value='kBigWidgetSize' /> " "<def var='About.OuterBorder' value='80'/> " "<def var='PopUpWidget.labelSpacing' value='10' /> " "<def var='Layout.Spacing' value='8' /> " @@ -925,7 +924,6 @@ "<def var='Line.Height' value='12' /> " "<def var='Font.Height' value='10' /> " "<def var='TabLabelWidth' value='100' /> " -"<def var='WidgetSize' value='kNormalWidgetSize' /> " "<def var='About.OuterBorder' value='10'/> " "<def var='PopUpWidget.labelSpacing' value='6' /> " "<def var='Layout.Spacing' value='8'/> " diff --git a/gui/themes/scummclassic.zip b/gui/themes/scummclassic.zip Binary files differindex 91b5362f55..4add34070c 100644 --- a/gui/themes/scummclassic.zip +++ b/gui/themes/scummclassic.zip diff --git a/gui/themes/scummclassic/classic_layout.stx b/gui/themes/scummclassic/classic_layout.stx index 005230b569..3b447e29af 100644 --- a/gui/themes/scummclassic/classic_layout.stx +++ b/gui/themes/scummclassic/classic_layout.stx @@ -29,7 +29,6 @@ <def var = 'Font.Height' value = '16' /> <def var = 'TabLabelWidth' value = '110' /> - <def var = 'WidgetSize' value = 'kBigWidgetSize' /> <def var = 'About.OuterBorder' value = '80'/> <def var = 'PopUpWidget.labelSpacing' value = '10' /> diff --git a/gui/themes/scummclassic/classic_layout_320.stx b/gui/themes/scummclassic/classic_layout_320.stx index 16e71731e9..c77518ea21 100644 --- a/gui/themes/scummclassic/classic_layout_320.stx +++ b/gui/themes/scummclassic/classic_layout_320.stx @@ -29,7 +29,6 @@ <def var = 'Font.Height' value = '10' /> <def var = 'TabLabelWidth' value = '100' /> - <def var = 'WidgetSize' value = 'kNormalWidgetSize' /> <def var = 'About.OuterBorder' value = '10'/> <def var = 'PopUpWidget.labelSpacing' value = '6' /> diff --git a/gui/themes/scummmodern.zip b/gui/themes/scummmodern.zip Binary files differindex 61cb8aa5e8..4e18963deb 100644 --- a/gui/themes/scummmodern.zip +++ b/gui/themes/scummmodern.zip diff --git a/gui/themes/scummmodern/scummmodern_layout.stx b/gui/themes/scummmodern/scummmodern_layout.stx index 6f8033e7bd..8748cc4261 100644 --- a/gui/themes/scummmodern/scummmodern_layout.stx +++ b/gui/themes/scummmodern/scummmodern_layout.stx @@ -29,8 +29,6 @@ <def var = 'Font.Height' value = '16' /> <def var = 'TabLabelWidth' value = '110' /> - <def var = 'WidgetSize' value = 'kBigWidgetSize' /> - <def var = 'Padding.Bottom' value = '16' /> <def var = 'Padding.Left' value = '16' /> <def var = 'Padding.Right' value = '16' /> diff --git a/gui/themes/scummmodern/scummmodern_layout_320.stx b/gui/themes/scummmodern/scummmodern_layout_320.stx index 8ac6af33ef..312135b77e 100644 --- a/gui/themes/scummmodern/scummmodern_layout_320.stx +++ b/gui/themes/scummmodern/scummmodern_layout_320.stx @@ -29,7 +29,6 @@ <def var = 'Font.Height' value = '10' /> <def var = 'TabLabelWidth' value = '100' /> - <def var = 'WidgetSize' value = 'kNormalWidgetSize' /> <def var = 'About.OuterBorder' value = '10'/> <def var = 'PopUpWidget.labelSpacing' value = '6' /> diff --git a/gui/widget.h b/gui/widget.h index 07c5964207..3174d4416a 100644 --- a/gui/widget.h +++ b/gui/widget.h @@ -66,12 +66,6 @@ enum { kCaretBlinkTime = 300 }; -enum WidgetSize { - kDefaultWidgetSize, - kNormalWidgetSize, - kBigWidgetSize -}; - /* Widget */ class Widget : public GuiObject { friend class Dialog; |