From b7b1e7a33569236400de14981f6629c4f48421c1 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 5 Apr 2021 16:54:39 +1000 Subject: Change IndentView, WhiteSpaceVisibility, and TabDrawMode to enum class. --- src/ViewStyle.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ViewStyle.h') diff --git a/src/ViewStyle.h b/src/ViewStyle.h index d33feb485..7f50804c2 100644 --- a/src/ViewStyle.h +++ b/src/ViewStyle.h @@ -40,11 +40,11 @@ public: void Realise(Surface &surface, int zoomLevel, int technology, const FontSpecification &fs); }; -enum IndentView {ivNone, ivReal, ivLookForward, ivLookBoth}; +enum class IndentView {none, real, lookForward, lookBoth}; -enum WhiteSpaceVisibility {wsInvisible=0, wsVisibleAlways=1, wsVisibleAfterIndent=2, wsVisibleOnlyInIndent=3}; +enum class WhiteSpace {invisible=0, visibleAlways=1, visibleAfterIndent=2, visibleOnlyInIndent=3}; -enum TabDrawMode {tdLongArrow=0, tdStrikeOut=1}; +enum class TabDrawMode {longArrow=0, strikeOut=1}; typedef std::map> FontMap; @@ -123,7 +123,7 @@ public: bool marginInside; ///< true: margin included in text view, false: separate views int textStart; ///< Starting x position of text within the view int zoomLevel; - WhiteSpaceVisibility viewWhitespace; + WhiteSpace viewWhitespace; TabDrawMode tabDrawMode; int whitespaceSize; IndentView viewIndentationGuides; -- cgit v1.2.3