AudioSystemPanel.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #if !defined(Q_MOC_RUN)
  10. #include <AudioControl.h>
  11. #include <QTreeWidgetFilter.h>
  12. #include <AudioControlFilters.h>
  13. #include <QWidget>
  14. #include <QMenu>
  15. #include <Source/Editor/ui_AudioSystemPanel.h>
  16. #endif
  17. namespace AudioControls
  18. {
  19. class CATLControlsModel;
  20. class QFilterButton;
  21. //-------------------------------------------------------------------------------------------//
  22. class CAudioSystemPanel
  23. : public QWidget
  24. , public Ui::AudioSystemPanel
  25. {
  26. Q_OBJECT
  27. public:
  28. CAudioSystemPanel();
  29. void Reload();
  30. void SetAllowedControls(EACEControlType type, bool bAllowed);
  31. private slots:
  32. void SetNameFilter(QString filter);
  33. void SetHideConnected(bool bHide);
  34. private:
  35. // Filtering
  36. QTreeWidgetFilter m_filter;
  37. SImplNameFilter m_nameFilter;
  38. SImplTypeFilter m_typeFilter;
  39. bool m_allowedATLTypes[AudioControls::EACEControlType::eACET_NUM_TYPES];
  40. SHideConnectedFilter m_hideConnectedFilter;
  41. };
  42. } // namespace AudioControls