Moved about dialog code to separate function
This commit is contained in:
		@@ -534,23 +534,7 @@ void PaulstretchpluginAudioProcessorEditor::showSettingsMenu()
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
	if (r == 3)
 | 
						if (r == 3)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		String fftlib = fftwf_version;
 | 
							showAbout();
 | 
				
			||||||
		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);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
	if (r == 6)
 | 
						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)
 | 
					WaveformComponent::WaveformComponent(AudioFormatManager* afm, AudioThumbnail* thumb, StretchAudioSource* sas)
 | 
				
			||||||
	: m_sas(sas)
 | 
						: m_sas(sas)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -335,6 +335,7 @@ private:
 | 
				
			|||||||
	FreeFilterComponent m_free_filter_component;
 | 
						FreeFilterComponent m_free_filter_component;
 | 
				
			||||||
	MyTabComponent m_wavefilter_tab;
 | 
						MyTabComponent m_wavefilter_tab;
 | 
				
			||||||
	Component* m_wave_container=nullptr;
 | 
						Component* m_wave_container=nullptr;
 | 
				
			||||||
 | 
						void showAbout();
 | 
				
			||||||
	JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PaulstretchpluginAudioProcessorEditor)
 | 
						JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PaulstretchpluginAudioProcessorEditor)
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user