stereomatrix_control_dialog.cpp 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * stereomatrix_control_dialog.cpp - control dialog for stereoMatrix-effect
  3. *
  4. * Copyright (c) 2008 Paul Giblock <drfaygo/at/gmail/dot/com>
  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 <QLabel>
  26. #include "stereomatrix_control_dialog.h"
  27. #include "stereomatrix_controls.h"
  28. #include "embed.h"
  29. stereoMatrixControlDialog::stereoMatrixControlDialog(
  30. stereoMatrixControls * _controls ) :
  31. EffectControlDialog( _controls )
  32. {
  33. setFixedSize( 160, 185 );
  34. setAutoFillBackground( true );
  35. QPalette pal;
  36. pal.setBrush( backgroundRole(),
  37. PLUGIN_NAME::getIconPixmap( "artwork" ) );
  38. setPalette( pal );
  39. Knob * llKnob = new Knob( knobBright_26, this );
  40. llKnob->setModel( &_controls->m_llModel );
  41. llKnob->setHintText( tr( "Left to Left Vol:" ) , "" );
  42. llKnob->move( 10, 79 );
  43. Knob * lrKnob = new Knob( knobBright_26, this );
  44. lrKnob->setModel( &_controls->m_lrModel );
  45. lrKnob->setHintText( tr( "Left to Right Vol:" ) , "" );
  46. lrKnob->move( 48, 79 );
  47. Knob * rlKnob = new Knob( knobBright_26, this );
  48. rlKnob->setModel( &_controls->m_rlModel );
  49. rlKnob->setHintText( tr( "Right to Left Vol:" ) , "" );
  50. rlKnob->move( 85, 79 );
  51. Knob * rrKnob = new Knob( knobBright_26, this );
  52. rrKnob->setModel( &_controls->m_rrModel );
  53. rrKnob->setHintText( tr( "Right to Right Vol:" ) , "" );
  54. rrKnob->move( 123, 79 );
  55. }