From ca1578397e2b521911b21259854616bf14d57e30 Mon Sep 17 00:00:00 2001 From: JuanJakobo <34421964+JuanJakobo@users.noreply.github.com> Date: Mon, 15 Feb 2021 12:47:31 +0100 Subject: [PATCH] renaming of "last" to "prev" button --- src/ui/listView.cpp | 8 ++++---- src/ui/listView.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ui/listView.cpp b/src/ui/listView.cpp index d69cea5..54858a7 100644 --- a/src/ui/listView.cpp +++ b/src/ui/listView.cpp @@ -64,7 +64,7 @@ ListView::ListView(const irect *contentRect, const vector &items) : _conte _pageIcon = iRect(_contentRect->w - 100, _contentRect->h + _contentRect->y - _footerHeight, 100, _footerHeight, ALIGN_CENTER); _firstPageButton = iRect(_contentRect->x, _contentRect->h + _contentRect->y - _footerHeight, 130, _footerHeight, ALIGN_CENTER); - _lastPageButton = iRect(_contentRect->x + 150, _contentRect->h + _contentRect->y - _footerHeight, 130, _footerHeight, ALIGN_CENTER); + _prevPageButton = iRect(_contentRect->x + 150, _contentRect->h + _contentRect->y - _footerHeight, 130, _footerHeight, ALIGN_CENTER); _nextPageButton = iRect(_contentRect->x + 300, _contentRect->h + _contentRect->y - _footerHeight, 130, _footerHeight, ALIGN_CENTER); drawEntries(); @@ -98,8 +98,8 @@ void ListView::drawFooter() DrawTextRect2(&_pageIcon, footer.c_str()); FillAreaRect(&_firstPageButton, BLACK); DrawTextRect2(&_firstPageButton, "First"); - FillAreaRect(&_lastPageButton, BLACK); - DrawTextRect2(&_lastPageButton, "Last"); + FillAreaRect(&_prevPageButton, BLACK); + DrawTextRect2(&_prevPageButton, "Prev"); FillAreaRect(&_nextPageButton, BLACK); DrawTextRect2(&_nextPageButton, "Next"); } @@ -148,7 +148,7 @@ int ListView::listClicked(int x, int y) { actualizePage(_shownPage + 1); } - else if (IsInRect(x, y, &_lastPageButton)) + else if (IsInRect(x, y, &_prevPageButton)) { actualizePage(_shownPage - 1); } diff --git a/src/ui/listView.h b/src/ui/listView.h index 9266330..04f7534 100644 --- a/src/ui/listView.h +++ b/src/ui/listView.h @@ -85,7 +85,7 @@ private: int _shownPage; irect _pageIcon; irect _nextPageButton; - irect _lastPageButton; + irect _prevPageButton; irect _firstPageButton; int _itemCount = 7; };