From 044d6714711829b2db193f08702003a6bb73117d 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. --- 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 af8094f6b..6c4e71260 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 );