SaControlsDialog.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * SaControlsDialog.h - declatation of SaControlsDialog 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 SACONTROLSDIALOG_H
  25. #define SACONTROLSDIALOG_H
  26. #include "EffectControlDialog.h"
  27. #include "SaControls.h"
  28. #include "SaSpectrumView.h"
  29. #include "SaProcessor.h"
  30. #include "SaWaterfallView.h"
  31. //! Top-level widget holding the configuration GUI and spectrum displays
  32. class SaControlsDialog : public EffectControlDialog
  33. {
  34. Q_OBJECT
  35. public:
  36. explicit SaControlsDialog(SaControls *controls, SaProcessor *processor);
  37. virtual ~SaControlsDialog() {}
  38. bool isResizable() const override {return true;}
  39. QSize sizeHint() const override;
  40. private:
  41. SaControls *m_controls;
  42. SaProcessor *m_processor;
  43. // Pointers to created widgets are needed to keep track of their sizeHint() changes.
  44. // Config widget is a plain QWidget so it has just a fixed height instead.
  45. const int m_configHeight = 75;
  46. SaSpectrumView *m_spectrum;
  47. SaWaterfallView *m_waterfall;
  48. };
  49. #endif // SACONTROLSDIALOG_H