Moved about dialog code to separate function

This commit is contained in:
xenakios 2018-10-07 14:13:53 +03:00
parent f487f8d4f2
commit 08d80338bd
2 changed files with 25 additions and 17 deletions

View File

@ -534,23 +534,7 @@ void PaulstretchpluginAudioProcessorEditor::showSettingsMenu()
}
if (r == 3)
{
String fftlib = fftwf_version;
String juceversiontxt = String("JUCE ") + String(JUCE_MAJOR_VERSION) + "." + String(JUCE_MINOR_VERSION);
String title = g_plugintitle;
#ifdef JUCE_DEBUG
title += " (DEBUG)";
#endif
AlertWindow::showMessageBoxAsync(AlertWindow::InfoIcon,
title,
"Plugin for extreme time stretching and other sound processing\nBuilt on " + String(__DATE__) + " " + String(__TIME__) + "\n"
"Copyright (C) 2006-2011 Nasca Octavian Paul, Tg. Mures, Romania\n"
"(C) 2017-2018 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);
showAbout();
}
if (r == 6)
@ -570,6 +554,29 @@ void PaulstretchpluginAudioProcessorEditor::showSettingsMenu()
}
void PaulstretchpluginAudioProcessorEditor::showAbout()
{
String fftlib = fftwf_version;
String juceversiontxt = String("JUCE ") + String(JUCE_MAJOR_VERSION) + "." + String(JUCE_MINOR_VERSION);
String title = g_plugintitle;
#ifdef JUCE_DEBUG
title += " (DEBUG)";
#endif
PluginHostType host;
AlertWindow::showMessageBoxAsync(AlertWindow::InfoIcon,
title,
"Plugin for extreme time stretching and other sound processing\nBuilt on " + String(__DATE__) + " " + String(__TIME__) + "\n"
"Copyright (C) 2006-2011 Nasca Octavian Paul, Tg. Mures, Romania\n"
"(C) 2017-2018 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"
"Running in : "+host.getHostDescription()+"\n"
, "OK",
this);
}
WaveformComponent::WaveformComponent(AudioFormatManager* afm, AudioThumbnail* thumb, StretchAudioSource* sas)
: m_sas(sas)
{

View File

@ -335,6 +335,7 @@ private:
FreeFilterComponent m_free_filter_component;
MyTabComponent m_wavefilter_tab;
Component* m_wave_container=nullptr;
void showAbout();
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PaulstretchpluginAudioProcessorEditor)
};