LadspaSubPluginFeatures.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * LadspaSubPluginFeatures.h - derivation from
  3. * Plugin::Descriptor::SubPluginFeatures for
  4. * hosting LADSPA-plugins
  5. *
  6. * Copyright (c) 2006-2007 Danny McRae <khjklujn/at/users.sourceforge.net>
  7. * Copyright (c) 2006-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
  8. *
  9. * This file is part of LMMS - https://lmms.io
  10. *
  11. * This program is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU General Public
  13. * License as published by the Free Software Foundation; either
  14. * version 2 of the License, or (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  19. * General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public
  22. * License along with this program (see COPYING); if not, write to the
  23. * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  24. * Boston, MA 02110-1301 USA.
  25. *
  26. */
  27. #ifndef LADSPA_SUBPLUGIN_FEATURES_H
  28. #define LADSPA_SUBPLUGIN_FEATURES_H
  29. #include "LadspaManager.h"
  30. #include "Plugin.h"
  31. class LadspaSubPluginFeatures : public Plugin::Descriptor::SubPluginFeatures
  32. {
  33. public:
  34. LadspaSubPluginFeatures( Plugin::PluginTypes _type );
  35. QString displayName(const Key& k) const override;
  36. void fillDescriptionWidget( QWidget * _parent,
  37. const Key * _key ) const override;
  38. virtual void listSubPluginKeys( const Plugin::Descriptor * _desc,
  39. KeyList & _kl ) const override;
  40. static ladspa_key_t subPluginKeyToLadspaKey( const Key * _key );
  41. } ;
  42. #endif