SettingsManagerDialog.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. #ifndef CRYINCLUDE_EDITOR_SETTINGSMANAGERDIALOG_H
  9. #define CRYINCLUDE_EDITOR_SETTINGSMANAGERDIALOG_H
  10. #pragma once
  11. #if !defined(Q_MOC_RUN)
  12. #include <QDialog>
  13. #include <QScopedPointer>
  14. #endif
  15. class CSettingsManager;
  16. //////////////////////////////////////////////////////////////////////////
  17. // Settings Manager Dialog
  18. namespace Ui {
  19. class SettingsManagerDialog;
  20. }
  21. class CSettingsManagerDialog
  22. : public QDialog
  23. {
  24. Q_OBJECT
  25. public:
  26. CSettingsManagerDialog(QWidget* pParent = nullptr);
  27. ~CSettingsManagerDialog();
  28. static const GUID& GetClassID();
  29. static void RegisterViewClass();
  30. protected:
  31. void OnReadBtnClick();
  32. void OnExportBtnClick();
  33. void ImportSettings(QString file);
  34. void ImportLayouts(QString file, const QStringList& layouts);
  35. void OnImportBtnClick();
  36. void OnCloseAllTools();
  37. void OnSelectionChanged();
  38. private:
  39. QString m_importFileStr;
  40. QScopedPointer<Ui::SettingsManagerDialog> ui;
  41. };
  42. #endif // CRYINCLUDE_EDITOR_SETTINGSMANAGERDIALOG_H