From 88a8b528e20013c0aa3cc6bcd9659b0b5ddd9170 Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:20:07 +0200 Subject: 5.4 --- ui/tree_view.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'ui/tree_view.cpp') diff --git a/ui/tree_view.cpp b/ui/tree_view.cpp index b3a9595a..ea73d979 100644 --- a/ui/tree_view.cpp +++ b/ui/tree_view.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -336,7 +337,7 @@ void TreeView::updateView(Predicate pred) if (root.firstFile || !root.subDirs.empty()) { root.baseMap = baseObj; - compressNode(root); + this->compressNode(root); //"this->" required by two-pass lookup as enforced by GCC 4.7 } else newView.pop_back(); @@ -656,18 +657,18 @@ private: case COL_TYPE_NAVI_DIRECTORY: if (const TreeView::RootNode* root = dynamic_cast(node.get())) { - const wxString dirLeft = utf8CvrtTo(beforeLast(root->baseMap_.getBaseDirPf(), FILE_NAME_SEPARATOR)); - const wxString dirRight = utf8CvrtTo(beforeLast(root->baseMap_.getBaseDirPf(), FILE_NAME_SEPARATOR)); + const wxString dirLeft = utfCvrtTo(beforeLast(root->baseMap_.getBaseDirPf(), FILE_NAME_SEPARATOR)); + const wxString dirRight = utfCvrtTo(beforeLast(root->baseMap_.getBaseDirPf(), FILE_NAME_SEPARATOR)); if (dirLeft.empty()) return dirRight; else if (dirRight.empty()) return dirLeft; else - return utf8CvrtTo(dirLeft + L" \x2212 " + dirRight); //\x2212 = unicode minus + return utfCvrtTo(dirLeft + L" \x2212 " + dirRight); //\x2212 = unicode minus } else if (const TreeView::DirNode* dir = dynamic_cast(node.get())) - return utf8CvrtTo(dir->dirObj_.getObjShortName()); + return utfCvrtTo(dir->dirObj_.getObjShortName()); else if (dynamic_cast(node.get())) return _("Files"); break; @@ -801,6 +802,8 @@ private: dc.SetBrush(*wxTRANSPARENT_BRUSH); dc.DrawRectangle(areaPerc); } + + wxDCTextColourChanger dummy3(dc, *wxBLACK); //accessibility: always set both foreground AND background colors! dc.DrawLabel(numberTo(node->percent_) + L"%", areaPerc, wxALIGN_CENTER); rectTmp.x += widthPercentBar + 2 * CELL_BORDER; @@ -816,7 +819,8 @@ private: wxRect rectStat(rectTmp.GetTopLeft(), wxSize(bmp.GetWidth(), bmp.GetHeight())); rectStat.y += (rectTmp.height - rectStat.height) / 2; - clearArea(dc, rectStat, wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW)); + //clearArea(dc, rectStat, wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW)); + clearArea(dc, rectStat, *wxWHITE); //accessibility: always set both foreground AND background colors! drawBitmapRtlMirror(dc, bmp, rectStat, wxALIGN_CENTER, buffer); }; -- cgit