reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit f1fdeb67eb72cb3241b824878a91c4b25a2d66f4
parent 16e6a15bdd61659474cc241a413cb09f61371fdf
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Sat,  9 Apr 2016 00:50:35 -0400

rename the "Action..." button as "Actions..." in the browser

Diffstat:
Msrc/browser.cpp | 9++++-----
Msrc/browser.hpp | 3+--
Msrc/resource.hpp | 2+-
Msrc/resource.rc | 2+-
4 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/src/browser.cpp b/src/browser.cpp @@ -54,7 +54,6 @@ Browser::Browser(ReaPack *reapack) void Browser::onInit() { - m_action = getControl(IDC_ACTION); m_apply = getControl(IDAPPLY); m_filterHandle = getControl(IDC_FILTER); m_display = getControl(IDC_DISPLAY); @@ -124,8 +123,8 @@ void Browser::onCommand(const int id, const int event) m_list->unselectAll(); SetFocus(m_list->handle()); break; - case IDC_ACTION: - actionButton(); + case IDC_ACTIONS: + actionsButton(); break; case ACTION_LATEST: installLatest(m_currentIndex); @@ -290,10 +289,10 @@ void Browser::selectionMenu(Menu &menu) const menu.addAction(AUTO_STR("&Clear queued action"), ACTION_RESET_ALL); } -void Browser::actionButton() +void Browser::actionsButton() { RECT rect; - GetWindowRect(m_action, &rect); + GetWindowRect(getControl(IDC_ACTIONS), &rect); const Entry *entry = nullptr; if(m_list->selectionSize() == 1) diff --git a/src/browser.hpp b/src/browser.hpp @@ -99,7 +99,7 @@ private: ListView::Row makeRow(const Entry &) const; const Entry *getEntry(int) const; void selectionMenu(Menu &) const; - void actionButton(); + void actionsButton(); bool hasAction(const Entry *e) const { return m_actions.count(e) > 0; } bool isTarget(const Entry *, const Version *) const; void setAction(const int index, const Version *, bool toggle = true); @@ -133,7 +133,6 @@ private: HWND m_display; std::map<int, HWND> m_types; ListView *m_list; - HWND m_action; HWND m_apply; }; diff --git a/src/resource.hpp b/src/resource.hpp @@ -65,7 +65,7 @@ #define IDC_DISPLAY 228 #define IDC_SELECT 229 #define IDC_UNSELECT 230 -#define IDC_ACTION 231 +#define IDC_ACTIONS 231 #define IDC_OPTIONS 232 #endif diff --git a/src/resource.rc b/src/resource.rc @@ -96,7 +96,7 @@ BEGIN WS_BORDER | WS_TABSTOP, 5, 22, 490, 204 PUSHBUTTON "&Select all", IDC_SELECT, 5, 230, 45, 14 PUSHBUTTON "&Unselect all", IDC_UNSELECT, 53, 230, 45, 14 - PUSHBUTTON "&Action...", IDC_ACTION, 101, 230, 45, 14 + PUSHBUTTON "&Actions...", IDC_ACTIONS, 101, 230, 45, 14 DEFPUSHBUTTON "&OK", IDOK, 368, 230, 40, 14 PUSHBUTTON "&Cancel", IDCANCEL, 411, 230, 40, 14 PUSHBUTTON "&Apply", IDAPPLY, 454, 230, 40, 14