ConfigurationWidget.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 <Editor/Configuration/GNConfiguration.h>
  11. #include <AzCore/Memory/SystemAllocator.h>
  12. #endif
  13. namespace GeomNodes
  14. {
  15. namespace Editor
  16. {
  17. class SettingsWidget;
  18. /// Widget for editing GeomNodes configuration and settings.
  19. ///
  20. class ConfigurationWidget
  21. : public QWidget
  22. {
  23. Q_OBJECT
  24. public:
  25. AZ_CLASS_ALLOCATOR(ConfigurationWidget, AZ::SystemAllocator);
  26. explicit ConfigurationWidget(QWidget* parent = nullptr);
  27. ~ConfigurationWidget() override;
  28. void SetConfiguration(const GNConfiguration& gnSystemConfiguration);
  29. signals:
  30. void onConfigurationChanged(const GNConfiguration& gnSystemConfiguration);
  31. private:
  32. GNConfiguration m_gnSystemConfiguration;
  33. SettingsWidget* m_settings;
  34. };
  35. } // namespace Editor
  36. } // namespace GeomNodes