From 0578aa4de27cc960cd3709eb2e15f40e02e1272d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 16 Apr 2015 15:41:10 +0200 Subject: convert BROWSER_ constants to scoped enum and fix a couple of places where it was mixing these flags up with the WinBits flags and calling the wrong constructor. Change-Id: I65c66bdd5a263e2f1db179c853f3f00e9ac7659e --- chart2/source/controller/dialogs/DataBrowser.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'chart2') diff --git a/chart2/source/controller/dialogs/DataBrowser.cxx b/chart2/source/controller/dialogs/DataBrowser.cxx index f430d3723fce..7fae410c9c4e 100644 --- a/chart2/source/controller/dialogs/DataBrowser.cxx +++ b/chart2/source/controller/dialogs/DataBrowser.cxx @@ -52,23 +52,23 @@ #include #include -/* BROWSER_COLUMNSELECTION : single cells may be selected rather than only +/* BrowserMode::COLUMNSELECTION : single cells may be selected rather than only entire rows BROWSER_(H|V)LINES : show horizontal or vertical grid-lines BROWSER_AUTO_(H|V)SCROLL : scroll automated horizontally or vertically when cursor is moved beyond the edge of the dialog - BROWSER_HIGHLIGHT_NONE : Do not mark the current row with selection color + BrowserMode::HIDESELECT : Do not mark the current row with selection color (usually blue) */ #define BROWSER_STANDARD_FLAGS \ - BROWSER_COLUMNSELECTION | \ - BROWSER_HLINES | BROWSER_VLINES | \ - BROWSER_AUTO_HSCROLL | BROWSER_AUTO_VSCROLL | \ - BROWSER_HIGHLIGHT_NONE + BrowserMode::COLUMNSELECTION | \ + BrowserMode::HLINES | BrowserMode::VLINES | \ + BrowserMode::AUTO_HSCROLL | BrowserMode::AUTO_VSCROLL | \ + BrowserMode::HIDESELECT -// BROWSER_HIDECURSOR would prevent flickering in edit fields, but navigating +// BrowserMode::HIDECURSOR would prevent flickering in edit fields, but navigating // with shift up/down, and entering non-editable cells would be problematic, // e.g. the first cell, or when being in read-only mode -- cgit