From 4c22afc29b4d66a7103ed24c415b7a36ec246c82 Mon Sep 17 00:00:00 2001 From: Nathan Jeffords Date: Thu, 14 Feb 2013 21:37:33 -0800 Subject: [PATCH] made a pass at conforming to established naming convention --- apps/openmw/mwgui/bookpage.cpp | 435 ++++++++++++------------- apps/openmw/mwgui/bookpage.hpp | 2 +- apps/openmw/mwgui/journalbooks.cpp | 16 +- apps/openmw/mwgui/journalviewmodel.cpp | 182 +++++------ apps/openmw/mwgui/journalviewmodel.hpp | 16 +- apps/openmw/mwgui/journalwindow.cpp | 53 ++- 6 files changed, 350 insertions(+), 354 deletions(-) diff --git a/apps/openmw/mwgui/bookpage.cpp b/apps/openmw/mwgui/bookpage.cpp index 309b23725c..e8cbd8c43c 100644 --- a/apps/openmw/mwgui/bookpage.cpp +++ b/apps/openmw/mwgui/bookpage.cpp @@ -36,78 +36,78 @@ struct MWGui::TypesetBook : ITypesetBook typedef utf8_stream::point utf8_point; typedef std::pair range; - struct style : IBookTypesetter::IStyle + struct Style : IBookTypesetter::IStyle { - IFont* Font; - Colour HotColour; - Colour ActiveColour; - Colour NormalColour; - interactive_id InteractiveId; + IFont* mFont; + Colour mHotColour; + Colour mActiveColour; + Colour mNormalColour; + interactive_id mInteractiveId; bool match (IFont* tstFont, Colour tstHotColour, Colour tstActiveColour, Colour tstNormalColour, intptr_t tstInteractiveId) { - return (Font == tstFont) && + return (mFont == tstFont) && partal_match (tstHotColour, tstActiveColour, tstNormalColour, tstInteractiveId); } bool match (char const * tstFont, Colour tstHotColour, Colour tstActiveColour, Colour tstNormalColour, intptr_t tstInteractiveId) { - return (Font->getResourceName () == tstFont) && + return (mFont->getResourceName () == tstFont) && partal_match (tstHotColour, tstActiveColour, tstNormalColour, tstInteractiveId); } bool partal_match (Colour tstHotColour, Colour tstActiveColour, Colour tstNormalColour, intptr_t tstInteractiveId) { return - (HotColour == tstHotColour ) && - (ActiveColour == tstActiveColour ) && - (NormalColour == tstNormalColour ) && - (InteractiveId == tstInteractiveId ) ; + (mHotColour == tstHotColour ) && + (mActiveColour == tstActiveColour ) && + (mNormalColour == tstNormalColour ) && + (mInteractiveId == tstInteractiveId ) ; } }; - typedef std::list