VstEffectControlDialog.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * VstEffectControlDialog.h - dialog for displaying GUI of VST-effect-plugin
  3. *
  4. * Copyright (c) 2006-2010 Tobias Doerffel <tobydox/at/users.sourceforge.net>
  5. *
  6. * This file is part of LMMS - https://lmms.io
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public
  10. * License as published by the Free Software Foundation; either
  11. * version 2 of the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public
  19. * License along with this program (see COPYING); if not, write to the
  20. * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  21. * Boston, MA 02110-1301 USA.
  22. *
  23. */
  24. #ifndef _VST_EFFECT_CONTROL_DIALOG_H
  25. #define _VST_EFFECT_CONTROL_DIALOG_H
  26. #include "EffectControlDialog.h"
  27. #include "VstPlugin.h"
  28. #include <QObject>
  29. #include <QPainter>
  30. #include <QLabel>
  31. #include <QSharedPointer>
  32. class VstEffectControls;
  33. class PixmapButton;
  34. class QPixmap;
  35. class QPushButton;
  36. class PixmapButton;
  37. class VstEffectControlDialog : public EffectControlDialog
  38. {
  39. Q_OBJECT
  40. public:
  41. VstEffectControlDialog( VstEffectControls * _controls );
  42. virtual ~VstEffectControlDialog();
  43. protected:
  44. void paintEvent( QPaintEvent * _pe ) override;
  45. void showEvent( QShowEvent* _se ) override;
  46. private:
  47. QWidget * m_pluginWidget;
  48. QPushButton * m_togglePluginButton;
  49. PixmapButton * m_openPresetButton;
  50. PixmapButton * m_rolLPresetButton;
  51. PixmapButton * m_rolRPresetButton;
  52. PixmapButton * m_managePluginButton;
  53. PixmapButton * m_savePresetButton;
  54. QSharedPointer<VstPlugin> m_plugin;
  55. QLabel * tbLabel;
  56. public slots:
  57. void togglePluginUI( bool checked );
  58. } ;
  59. #endif