From 34002da18372a5269e46a24e9d277e299ffbaca6 Mon Sep 17 00:00:00 2001 From: xenakios Date: Sun, 24 Dec 2017 16:56:22 +0200 Subject: [PATCH] Add about dialog --- Source/PluginEditor.cpp | 20 +++++++++++++++++++- Source/PluginProcessor.cpp | 2 ++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index 32a27c1..83fc9be 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -22,6 +22,8 @@ Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #include "PluginEditor.h" #include +extern String g_plugintitle; + //============================================================================== PaulstretchpluginAudioProcessorEditor::PaulstretchpluginAudioProcessorEditor (PaulstretchpluginAudioProcessor& p) : AudioProcessorEditor (&p), @@ -290,6 +292,7 @@ void PaulstretchpluginAudioProcessorEditor::showSettingsMenu() bufferingmenu.addItem(104,"Very large",true,curbufamount == 4); bufferingmenu.addItem(105,"Huge",true,curbufamount == 5); menu.addSubMenu("Prebuffering", bufferingmenu); + menu.addItem(3, "About...", true, false); int r = menu.show(); if (r == 1) { @@ -299,7 +302,22 @@ void PaulstretchpluginAudioProcessorEditor::showSettingsMenu() { processor.m_capture_when_host_plays = !processor.m_capture_when_host_plays; } - + if (r == 3) + { + String fftlib = fftwf_version; +String juceversiontxt = String("JUCE ") + String(JUCE_MAJOR_VERSION) + "." + String(JUCE_MINOR_VERSION); + AlertWindow::showMessageBoxAsync(AlertWindow::InfoIcon, + g_plugintitle, + "Plugin for extreme time stretching and other processing of sound files\nBuilt on " + String(__DATE__) + " " + String(__TIME__) + "\n" + "Copyright (C) 2006-2011 Nasca Octavian Paul, Tg. Mures, Romania\n" + "(C) 2017 Xenakios\n\n" + "Using " + fftlib + " for FFT\n\n" + + juceversiontxt + " (c) Roli. Used under the GPL license.\n\n" + "GPL licensed source code for this plugin at : https://bitbucket.org/xenakios/paulstretchplugin/overview\n" + , "OK", + this); + + } if (r >= 100 && r < 200) { if (r == 100) diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index 0606131..8e0326b 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -27,6 +27,8 @@ Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #undef max #endif +String g_plugintitle{ "PaulXStretch 1.0.0 preview 4" }; + std::set g_activeprocessors; template