ladspa_browser.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /*
  2. * ladspa_browser.h - dialog to display information about installed LADSPA
  3. * plugins
  4. *
  5. * Copyright (c) 2006-2008 Danny McRae <khjklujn/at/users.sourceforge.net>
  6. * Copyright (c) 2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
  7. *
  8. * This file is part of LMMS - https://lmms.io
  9. *
  10. * This program is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public
  12. * License as published by the Free Software Foundation; either
  13. * version 2 of the License, or (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  18. * General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public
  21. * License along with this program (see COPYING); if not, write to the
  22. * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  23. * Boston, MA 02110-1301 USA.
  24. *
  25. */
  26. #ifndef _LADSPA_BROWSER_H
  27. #define _LADSPA_BROWSER_H
  28. #include "LadspaManager.h"
  29. #include "ToolPlugin.h"
  30. #include "ToolPluginView.h"
  31. class TabBar;
  32. class ladspaBrowserView : public ToolPluginView
  33. {
  34. Q_OBJECT
  35. public:
  36. ladspaBrowserView( ToolPlugin * _tool );
  37. virtual ~ladspaBrowserView();
  38. public slots:
  39. void showPorts( const ladspa_key_t & _key );
  40. private:
  41. TabBar * m_tabBar;
  42. QWidget * createTab( QWidget * _parent, const QString & _txt,
  43. ladspaPluginType _type );
  44. } ;
  45. class ladspaBrowser : public ToolPlugin
  46. {
  47. public:
  48. ladspaBrowser();
  49. virtual ~ladspaBrowser();
  50. virtual PluginView * instantiateView( QWidget * )
  51. {
  52. return new ladspaBrowserView( this );
  53. }
  54. virtual QString nodeName() const;
  55. virtual void saveSettings( QDomDocument& doc, QDomElement& element )
  56. {
  57. Q_UNUSED(doc)
  58. Q_UNUSED(element)
  59. }
  60. virtual void loadSettings( const QDomElement& element )
  61. {
  62. Q_UNUSED(element)
  63. }
  64. } ;
  65. #endif