ReverbSCControlDialog.cpp 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * ReverbSCControlDialog.cpp - control dialog for ReverbSC
  3. *
  4. * Copyright (c) 2017 Paul Batchelor
  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. #include <QLayout>
  25. #include "ReverbSCControlDialog.h"
  26. #include "ReverbSCControls.h"
  27. #include "embed.h"
  28. ReverbSCControlDialog::ReverbSCControlDialog( ReverbSCControls* controls ) :
  29. EffectControlDialog( controls )
  30. {
  31. setAutoFillBackground( true );
  32. QPalette pal;
  33. pal.setBrush( backgroundRole(), PLUGIN_NAME::getIconPixmap( "artwork" ) );
  34. setPalette( pal );
  35. setFixedSize( 185, 55 );
  36. Knob * inputGainKnob = new Knob( knobBright_26, this);
  37. inputGainKnob -> move( 16, 10 );
  38. inputGainKnob->setModel( &controls->m_inputGainModel );
  39. inputGainKnob->setLabel( tr( "Input" ) );
  40. inputGainKnob->setHintText( tr( "Input gain:" ) , "dB" );
  41. Knob * sizeKnob = new Knob( knobBright_26, this);
  42. sizeKnob -> move( 57, 10 );
  43. sizeKnob->setModel( &controls->m_sizeModel );
  44. sizeKnob->setLabel( tr( "Size" ) );
  45. sizeKnob->setHintText( tr( "Size:" ) , "" );
  46. Knob * colorKnob = new Knob( knobBright_26, this);
  47. colorKnob -> move( 98, 10 );
  48. colorKnob->setModel( &controls->m_colorModel );
  49. colorKnob->setLabel( tr( "Color" ) );
  50. colorKnob->setHintText( tr( "Color:" ) , "" );
  51. Knob * outputGainKnob = new Knob( knobBright_26, this);
  52. outputGainKnob -> move( 139, 10 );
  53. outputGainKnob->setModel( &controls->m_outputGainModel );
  54. outputGainKnob->setLabel( tr( "Output" ) );
  55. outputGainKnob->setHintText( tr( "Output gain:" ) , "dB" );
  56. }