PythonScriptsDialog.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 <AzCore/std/containers/vector.h>
  11. #include <QWidget>
  12. #include <QScopedPointer>
  13. #endif
  14. namespace Ui {
  15. class CPythonScriptsDialog;
  16. }
  17. class CPythonScriptsDialog
  18. : public QWidget
  19. {
  20. Q_OBJECT
  21. public:
  22. explicit CPythonScriptsDialog(QWidget* parent = nullptr);
  23. ~CPythonScriptsDialog();
  24. static const GUID& GetClassID()
  25. {
  26. // {C61C9C4C-CFED-47C4-8FE1-79069D0284E1}
  27. static const GUID guid = {
  28. 0xc61c9c4c, 0xcfed, 0x47c4, { 0x8f, 0xe1, 0x79, 0x6, 0x9d, 0x2, 0x84, 0xe1 }
  29. };
  30. return guid;
  31. }
  32. static void RegisterViewClass();
  33. private slots:
  34. void OnExecute();
  35. protected:
  36. void ScanFolderForScripts(QString path, AZStd::vector<QString>& scriptFolders) const;
  37. private:
  38. QScopedPointer<Ui::CPythonScriptsDialog> ui;
  39. };