commit b00ff42fa9e5a88e3184377b7bedfdd6ebf1acb3
parent 828ab25b9d373bcedb78978a7d219d2ae4ff981c
Author: cfillion <cfillion@users.noreply.github.com>
Date: Tue, 26 Jan 2016 15:28:39 -0500
add actions for "Import remote repository" and "Manage remotes"
Diffstat:
3 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/src/main.cpp b/src/main.cpp
@@ -106,14 +106,14 @@ extern "C" REAPER_PLUGIN_DLL_EXPORT int REAPER_PLUGIN_ENTRYPOINT(
reapack = new ReaPack(instance);
- reapack->setupAction("REAPACK_SYNC", "ReaPack: Synchronize Packages",
+ reapack->setupAction("REAPACK_SYNC", "ReaPack: Synchronize packages",
&reapack->syncAction, bind(&ReaPack::synchronizeAll, reapack));
- reapack->setupAction("REAPACK_IMPORT",
- bind(&ReaPack::importRemote, reapack));
+ reapack->setupAction("REAPACK_IMPORT", "ReaPack: Import remote repository...",
+ &reapack->importAction, bind(&ReaPack::importRemote, reapack));
- reapack->setupAction("REAPACK_MANAGE",
- bind(&ReaPack::manageRemotes, reapack));
+ reapack->setupAction("REAPACK_MANAGE", "ReaPack: Manage remotes...",
+ &reapack->configAction, bind(&ReaPack::manageRemotes, reapack));
plugin_register("hookcommand", (void *)commandHook);
plugin_register("hookcustommenu", (void *)menuHook);
diff --git a/src/reapack.cpp b/src/reapack.cpp
@@ -29,7 +29,8 @@
using namespace std;
ReaPack::ReaPack(REAPER_PLUGIN_HINSTANCE instance)
- : syncAction(), m_transaction(nullptr), m_instance(instance)
+ : syncAction(), importAction(), configAction(),
+ m_transaction(nullptr), m_instance(instance)
{
m_mainWindow = GetMainHwnd();
m_useRootPath = new UseRootPath(GetResourcePath());
diff --git a/src/reapack.hpp b/src/reapack.hpp
@@ -36,6 +36,8 @@ class Transaction;
class ReaPack {
public:
gaccel_register_t syncAction;
+ gaccel_register_t importAction;
+ gaccel_register_t configAction;
ReaPack(REAPER_PLUGIN_HINSTANCE);
~ReaPack();