VecControls.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * VecControls.h - declaration of VecControls class.
  3. *
  4. * Copyright (c) 2019 Martin Pavelek <he29/dot/HS/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. #ifndef VECCONTROLS_H
  25. #define VECCONTROLS_H
  26. #include <QColor>
  27. #include "EffectControls.h"
  28. class Vectorscope;
  29. // Holds all the configuration values
  30. class VecControls : public EffectControls
  31. {
  32. Q_OBJECT
  33. public:
  34. explicit VecControls(Vectorscope *effect);
  35. virtual ~VecControls() {}
  36. EffectControlDialog *createView() override;
  37. void saveSettings (QDomDocument &document, QDomElement &element) override;
  38. void loadSettings (const QDomElement &element) override;
  39. QString nodeName() const override {return "Vectorscope";}
  40. int controlCount() override {return 3;}
  41. private:
  42. Vectorscope *m_effect;
  43. FloatModel m_persistenceModel;
  44. BoolModel m_logarithmicModel;
  45. BoolModel m_highQualityModel;
  46. QColor m_colorFG;
  47. QColor m_colorGrid;
  48. QColor m_colorLabels;
  49. QColor m_colorOutline;
  50. friend class VecControlsDialog;
  51. friend class VectorView;
  52. };
  53. #endif // VECCONTROLS_H