LUAEditorSettingsDialog.hxx 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. #if !defined(Q_MOC_RUN)
  9. #include <AzCore/std/parallel/thread.h>
  10. #include <AzCore/std/parallel/semaphore.h>
  11. #include <AzCore/Component/Component.h>
  12. #include "LUAEditorView.hxx"
  13. #include "LUAEditorStyleMessages.h"
  14. #include <QtWidgets/QDialog>
  15. #endif
  16. #pragma once
  17. namespace Ui
  18. {
  19. class LUAEditorSettingsDialog;
  20. }
  21. namespace LUAEditor
  22. {
  23. class LUAEditorSettingsDialog
  24. : public QDialog
  25. {
  26. Q_OBJECT
  27. public:
  28. AZ_CLASS_ALLOCATOR(LUAEditorSettingsDialog, AZ::SystemAllocator);
  29. LUAEditorSettingsDialog(QWidget *parent = 0);
  30. ~LUAEditorSettingsDialog() override;
  31. public Q_SLOTS:
  32. void OnSave();
  33. void OnSaveClose();
  34. void OnCancel();
  35. void OnApply();
  36. private:
  37. void keyPressEvent(QKeyEvent* event) override;
  38. SyntaxStyleSettings m_originalSettings;
  39. Ui::LUAEditorSettingsDialog* m_gui;
  40. };
  41. }