diff options
author | Johannes Schickel | 2016-01-24 03:41:29 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-01-24 03:41:29 +0100 |
commit | 5a63ee537506c4a0e90a25ee9fe96cfef4a90519 (patch) | |
tree | e83cfd534ff3d58bd04c124b3043af4d5e4c3bfd | |
parent | 120164ba074196f2c771661dbfb4296f09ed82e1 (diff) | |
download | scummvm-rg350-5a63ee537506c4a0e90a25ee9fe96cfef4a90519.tar.gz scummvm-rg350-5a63ee537506c4a0e90a25ee9fe96cfef4a90519.tar.bz2 scummvm-rg350-5a63ee537506c4a0e90a25ee9fe96cfef4a90519.zip |
GUI: Use "button" instead of "btn" in variable names.
-rw-r--r-- | gui/ThemeEngine.cpp | 18 | ||||
-rw-r--r-- | gui/ThemeEngine.h | 18 | ||||
-rw-r--r-- | gui/onscreendialog.cpp | 34 | ||||
-rw-r--r-- | gui/predictivedialog.cpp | 4 |
4 files changed, 37 insertions, 37 deletions
diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp index 536e5192e0..c840816db1 100644 --- a/gui/ThemeEngine.cpp +++ b/gui/ThemeEngine.cpp @@ -48,17 +48,17 @@ const char * const ThemeEngine::kImageLogo = "logo.bmp"; const char * const ThemeEngine::kImageLogoSmall = "logo_small.bmp"; const char * const ThemeEngine::kImageSearch = "search.bmp"; const char * const ThemeEngine::kImageEraser = "eraser.bmp"; -const char * const ThemeEngine::kImageDelbtn = "delbtn.bmp"; +const char * const ThemeEngine::kImageDelButton = "delbtn.bmp"; const char * const ThemeEngine::kImageList = "list.bmp"; const char * const ThemeEngine::kImageGrid = "grid.bmp"; -const char * const ThemeEngine::kImageStopbtn = "stopbtn.bmp"; -const char * const ThemeEngine::kImageEditbtn = "editbtn.bmp"; -const char * const ThemeEngine::kImageSwitchModebtn = "switchbtn.bmp"; -const char * const ThemeEngine::kImageFastReplaybtn = "fastreplay.bmp"; -const char * const ThemeEngine::kImageStopSmallbtn = "stopbtn_small.bmp"; -const char * const ThemeEngine::kImageEditSmallbtn = "editbtn_small.bmp"; -const char * const ThemeEngine::kImageSwitchModeSmallbtn = "switchbtn_small.bmp"; -const char * const ThemeEngine::kImageFastReplaySmallbtn = "fastreplay_small.bmp"; +const char * const ThemeEngine::kImageStopButton = "stopbtn.bmp"; +const char * const ThemeEngine::kImageEditButton = "editbtn.bmp"; +const char * const ThemeEngine::kImageSwitchModeButton = "switchbtn.bmp"; +const char * const ThemeEngine::kImageFastReplayButton = "fastreplay.bmp"; +const char * const ThemeEngine::kImageStopSmallButton = "stopbtn_small.bmp"; +const char * const ThemeEngine::kImageEditSmallButton = "editbtn_small.bmp"; +const char * const ThemeEngine::kImageSwitchModeSmallButton = "switchbtn_small.bmp"; +const char * const ThemeEngine::kImageFastReplaySmallButton = "fastreplay_small.bmp"; struct TextDrawData { const Graphics::Font *_fontPtr; diff --git a/gui/ThemeEngine.h b/gui/ThemeEngine.h index 7acf830f76..a5ef49c78b 100644 --- a/gui/ThemeEngine.h +++ b/gui/ThemeEngine.h @@ -228,17 +228,17 @@ public: static const char *const kImageLogoSmall; ///< ScummVM logo used in the GMM static const char *const kImageSearch; ///< Search tool image used in the launcher static const char *const kImageEraser; ///< Clear input image used in the launcher - static const char *const kImageDelbtn; ///< Delete characters in the predictive dialog + static const char *const kImageDelButton; ///< Delete characters in the predictive dialog static const char *const kImageList; ///< List image used in save/load chooser selection static const char *const kImageGrid; ///< Grid image used in save/load chooser selection - static const char *const kImageStopbtn; ///< Stop recording button in recorder onscreen dialog - static const char *const kImageEditbtn; ///< Edit recording metadata in recorder onscreen dialog - static const char *const kImageSwitchModebtn; ///< Switch mode button in recorder onscreen dialog - static const char *const kImageFastReplaybtn; ///< Fast playback mode button in recorder onscreen dialog - static const char *const kImageStopSmallbtn; ///< Stop recording button in recorder onscreen dialog (for 320xY) - static const char *const kImageEditSmallbtn; ///< Edit recording metadata in recorder onscreen dialog (for 320xY) - static const char *const kImageSwitchModeSmallbtn; ///< Switch mode button in recorder onscreen dialog (for 320xY) - static const char *const kImageFastReplaySmallbtn; ///< Fast playback mode button in recorder onscreen dialog (for 320xY) + static const char *const kImageStopButton; ///< Stop recording button in recorder onscreen dialog + static const char *const kImageEditButton; ///< Edit recording metadata in recorder onscreen dialog + static const char *const kImageSwitchModeButton; ///< Switch mode button in recorder onscreen dialog + static const char *const kImageFastReplayButton; ///< Fast playback mode button in recorder onscreen dialog + static const char *const kImageStopSmallButton; ///< Stop recording button in recorder onscreen dialog (for 320xY) + static const char *const kImageEditSmallButton; ///< Edit recording metadata in recorder onscreen dialog (for 320xY) + static const char *const kImageSwitchModeSmallButton; ///< Switch mode button in recorder onscreen dialog (for 320xY) + static const char *const kImageFastReplaySmallButton; ///< Fast playback mode button in recorder onscreen dialog (for 320xY) /** * Graphics mode enumeration. diff --git a/gui/onscreendialog.cpp b/gui/onscreendialog.cpp index 0e37834136..8b338f56df 100644 --- a/gui/onscreendialog.cpp +++ b/gui/onscreendialog.cpp @@ -62,37 +62,37 @@ OnScreenDialog::OnScreenDialog(bool isRecord) : Dialog("OnScreenDialog") { #ifndef DISABLE_FANCY_THEMES if (g_gui.xmlEval()->getVar("Globals.OnScreenDialog.ShowPics") == 1 && g_gui.theme()->supportsImages()) { - GUI::PicButtonWidget *btn; - btn = new PicButtonWidget(this, "OnScreenDialog.StopButton", 0, kStopCmd, 0); - btn->useThemeTransparency(true); + GUI::PicButtonWidget *button; + button = new PicButtonWidget(this, "OnScreenDialog.StopButton", 0, kStopCmd, 0); + button->useThemeTransparency(true); if (g_system->getOverlayWidth() > 320) - btn->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageStopbtn)); + button->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageStopButton)); else - btn->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageStopSmallbtn)); + button->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageStopSmallButton)); if (isRecord) { - btn = new PicButtonWidget(this, "OnScreenDialog.EditButton", 0, kEditCmd, 0); - btn->useThemeTransparency(true); + button = new PicButtonWidget(this, "OnScreenDialog.EditButton", 0, kEditCmd, 0); + button->useThemeTransparency(true); if (g_system->getOverlayWidth() > 320) - btn->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageEditbtn)); + button->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageEditButton)); else - btn->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageEditSmallbtn)); + button->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageEditSmallButton)); } else { - btn = new PicButtonWidget(this, "OnScreenDialog.SwitchModeButton", 0, kSwitchModeCmd, 0); - btn->useThemeTransparency(true); + button = new PicButtonWidget(this, "OnScreenDialog.SwitchModeButton", 0, kSwitchModeCmd, 0); + button->useThemeTransparency(true); if (g_system->getOverlayWidth() > 320) - btn->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageSwitchModebtn)); + button->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageSwitchModeButton)); else - btn->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageSwitchModeSmallbtn)); + button->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageSwitchModeSmallButton)); - btn = new PicButtonWidget(this, "OnScreenDialog.FastReplayButton", 0, kFastModeCmd, 0); - btn->useThemeTransparency(true); + button = new PicButtonWidget(this, "OnScreenDialog.FastReplayButton", 0, kFastModeCmd, 0); + button->useThemeTransparency(true); if (g_system->getOverlayWidth() > 320) - btn->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageFastReplaybtn)); + button->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageFastReplayButton)); else - btn->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageFastReplaySmallbtn)); + button->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageFastReplaySmallButton)); } } else #endif diff --git a/gui/predictivedialog.cpp b/gui/predictivedialog.cpp index 4e2ed0c018..cc584a9148 100644 --- a/gui/predictivedialog.cpp +++ b/gui/predictivedialog.cpp @@ -91,7 +91,7 @@ PredictiveDialog::PredictiveDialog() : Dialog("Predictive") { if (g_gui.xmlEval()->getVar("Globals.Predictive.ShowDeletePic") == 1 && g_gui.theme()->supportsImages()) { _button[kDelAct] = new PicButtonWidget(this, "Predictive.Delete", _("Delete char"), kDelCmd); ((PicButtonWidget *)_button[kDelAct])->useThemeTransparency(true); - ((PicButtonWidget *)_button[kDelAct])->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageDelbtn)); + ((PicButtonWidget *)_button[kDelAct])->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageDelButton)); } else #endif _button[kDelAct] = new ButtonWidget(this, "Predictive.Delete" , _("<") , 0, kDelCmd); @@ -163,7 +163,7 @@ void PredictiveDialog::reflowLayout() { if (g_gui.xmlEval()->getVar("Globals.Predictive.ShowDeletePic") == 1 && g_gui.theme()->supportsImages()) { _button[kDelAct] = new PicButtonWidget(this, "Predictive.Delete", _("Delete char"), kDelCmd); ((PicButtonWidget *)_button[kDelAct])->useThemeTransparency(true); - ((PicButtonWidget *)_button[kDelAct])->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageDelbtn)); + ((PicButtonWidget *)_button[kDelAct])->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageDelButton)); } else { _button[kDelAct] = new ButtonWidget(this, "Predictive.Delete" , _("<") , 0, kDelCmd); } |