From 894ee9ea48c21f33b014bc324732d157991d89ec Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 3 May 2009 15:11:11 +0200 Subject: [PATCH] VstPlugin: added hasEditor() method Added inline method hasEditor() with returns true or false depending on whether the class received a window ID from the remote plugin. (cherry picked from commit 044d6714711829b2db193f08702003a6bb73117d) --- plugins/vst_base/vst_plugin.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/vst_base/vst_plugin.h b/plugins/vst_base/vst_plugin.h index d41a33a9c..a74ac6bff 100644 --- a/plugins/vst_base/vst_plugin.h +++ b/plugins/vst_base/vst_plugin.h @@ -47,6 +47,11 @@ public: virtual bool processMessage( const message & _m ); + inline bool hasEditor( void ) const + { + return m_pluginWindowID != 0; + } + void showEditor( QWidget * _parent = NULL ); void hideEditor( void );