From c4e4a3f0faf756262e306984ddb56c262bfb087c Mon Sep 17 00:00:00 2001 From: TheMarlboroMan Date: Mon, 27 Jan 2020 18:32:34 +0100 Subject: Restoring the plugin and a small change to the about tab --- plugin/drumgizmo_plugin.cc | 2 +- plugingui/abouttab.cc | 43 ++++++++++++++----------------------------- 2 files changed, 15 insertions(+), 30 deletions(-) diff --git a/plugin/drumgizmo_plugin.cc b/plugin/drumgizmo_plugin.cc index 0603dfe..e7bc29e 100644 --- a/plugin/drumgizmo_plugin.cc +++ b/plugin/drumgizmo_plugin.cc @@ -127,7 +127,7 @@ std::string DrumGizmoPlugin::getURI() std::string DrumGizmoPlugin::getEffectName() { - return "DrumGizmo (experimental)"; + return "DrumGizmo"; } std::string DrumGizmoPlugin::getVendorString() diff --git a/plugingui/abouttab.cc b/plugingui/abouttab.cc index 7e330cb..360a994 100644 --- a/plugingui/abouttab.cc +++ b/plugingui/abouttab.cc @@ -52,50 +52,35 @@ void AboutTab::resize(std::size_t width, std::size_t height) std::string AboutTab::getAboutText() { + //TODO: This does not respect the original format. + auto generate_header=[](const std::string& header, bool ignore_nl=false) -> std::string + { + + return std::string("*===========*\n ") + +header + +"\n*===========*\n\n\n"; + }; + std::string about_text; // About - about_text.append( - "=============\n" - " About\n" - "=============\n" - "\n"); + about_text.append(generate_header("About")); about_text.append(about.data()); // Version - about_text.append( - "\n" - "=============\n" - " Version\n" - "=============\n" - "\n"); + about_text.append(generate_header("Version")); about_text.append(std::string(VERSION) + "\n"); // Bugs - about_text.append( - "\n" - "=============\n" - " Bugs\n" - "=============\n" - "\n"); + about_text.append(generate_header("Bugs")); about_text.append(bugs.data()); // Authors - about_text.append( - "\n" - "=============\n" - " Authors\n" - "=============\n" - "\n"); + about_text.append(generate_header("Authors")); about_text.append(UTF8().toLatin1(authors.data())); // GPL - about_text.append( - "\n" - "=============\n" - " License\n" - "=============\n" - "\n"); + about_text.append(generate_header("License")); about_text.append(gpl.data()); return about_text; -- cgit v1.2.3