Browse Source

Added version metadata to plugin

tags/v0.5.0
Andrew Belt 7 years ago
parent
commit
a1836e7c57
5 changed files with 15 additions and 2 deletions
  1. +3
    -0
      CHANGELOG.md
  2. +1
    -0
      include/plugin.hpp
  3. +1
    -1
      src/app.cpp
  4. +6
    -0
      src/app/RackWidget.cpp
  5. +4
    -1
      src/gui.cpp

+ 3
- 0
CHANGELOG.md View File

@@ -3,6 +3,9 @@ Tip: Use `git checkout v0.4.0` for example to check out any previous version men


### dev ### dev


- Audible Instruments
- Added Low CPU mode to Braids for draft-quality rendering



### v0.4.0 ### v0.4.0
- Cables can now stack on output ports - Cables can now stack on output ports


+ 1
- 0
include/plugin.hpp View File

@@ -26,6 +26,7 @@ struct Plugin {
/** Optional metadata for the Add Module context menu */ /** Optional metadata for the Add Module context menu */
std::string homepageUrl; std::string homepageUrl;
std::string manualUrl; std::string manualUrl;
std::string version;
}; };


struct Model { struct Model {


+ 1
- 1
src/app.cpp View File

@@ -8,7 +8,7 @@ std::string gApplicationVersion =
#ifdef VERSION #ifdef VERSION
TOSTRING(VERSION); TOSTRING(VERSION);
#else #else
"dev";
"";
#endif #endif
std::string gApiHost = "http://api.vcvrack.com"; std::string gApiHost = "http://api.vcvrack.com";




+ 6
- 0
src/app/RackWidget.cpp View File

@@ -434,6 +434,12 @@ struct AddPluginMenuItem : MenuItem {
menu->pushChild(item); menu->pushChild(item);
} }


if (!plugin->version.empty()) {
MenuLabel *item = new MenuLabel();
item->text = "Version: v" + plugin->version;
menu->pushChild(item);
}

return menu; return menu;
} }
}; };


+ 4
- 1
src/gui.cpp View File

@@ -324,7 +324,10 @@ void guiRun() {
mouseButtonStickyPop(); mouseButtonStickyPop();


// Set window title // Set window title
std::string title = gApplicationName + " " + gApplicationVersion;
std::string title = gApplicationName;
if (!gApplicationVersion.empty()) {
title += " v" + gApplicationVersion;
}
if (!gRackWidget->lastPath.empty()) { if (!gRackWidget->lastPath.empty()) {
title += " - "; title += " - ";
title += extractFilename(gRackWidget->lastPath); title += extractFilename(gRackWidget->lastPath);


Loading…
Cancel
Save