commit 72cd6b7a18b7259436623bedfc71b5a2fb915a66
parent 46326637954b8829be5b9e0b86ac87344b81cba0
Author: cfillion <cfillion@users.noreply.github.com>
Date: Sun, 5 Jun 2016 23:24:17 -0400
manager: add browse packages button
Diffstat:
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/manager.cpp b/src/manager.cpp
@@ -66,6 +66,9 @@ void Manager::onCommand(const int id, int)
case IDC_IMPORT:
m_reapack->importRemote();
break;
+ case IDC_BROWSE:
+ m_reapack->browsePackages();
+ break;
case IDC_OPTIONS:
options();
break;
diff --git a/src/resource.hpp b/src/resource.hpp
@@ -64,5 +64,6 @@
#define IDC_UNSELECT 227
#define IDC_OPTIONS 228
#define IDC_ACTIONS 229
+#define IDC_BROWSE 230
#endif
diff --git a/src/resource.rc b/src/resource.rc
@@ -33,8 +33,9 @@ BEGIN
LTEXT "Remote repositories:", IDC_LABEL, 5, 5, 320, 10
CONTROL "", IDC_LIST, WC_LISTVIEW, LVS_REPORT | LVS_SHOWSELALWAYS |
WS_BORDER | WS_TABSTOP, 5, 18, 320, 136
- PUSHBUTTON "&Import...", IDC_IMPORT, 5, 160, 45, 14
- PUSHBUTTON "&Options...", IDC_OPTIONS, 53, 160, 45, 14
+ PUSHBUTTON "&Browse Packages...", IDC_BROWSE, 5, 160, 70, 14
+ PUSHBUTTON "&Import...", IDC_IMPORT, 78, 160, 45, 14
+ PUSHBUTTON "&Options...", IDC_OPTIONS, 126, 160, 45, 14
DEFPUSHBUTTON "&OK", IDOK, 198, 160, 40, 14
PUSHBUTTON "&Cancel", IDCANCEL, 241, 160, 40, 14
PUSHBUTTON "&Apply", IDAPPLY, 284, 160, 40, 14