AutoDirectoryRestoreFileDialog.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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_UTIL_AUTODIRECTORYRESTOREFILEDIALOG_H
  9. #define CRYINCLUDE_EDITOR_UTIL_AUTODIRECTORYRESTOREFILEDIALOG_H
  10. #pragma once
  11. #if !defined(Q_MOC_RUN)
  12. #include <QFileDialog>
  13. #endif
  14. class CAutoDirectoryRestoreFileDialog
  15. : public QFileDialog
  16. {
  17. Q_OBJECT
  18. public:
  19. explicit CAutoDirectoryRestoreFileDialog(
  20. QFileDialog::AcceptMode acceptMode,
  21. QFileDialog::FileMode fileMode = QFileDialog::AnyFile,
  22. const QString& defaultSuffix = {},
  23. const QString& directory = {},
  24. const QString& filter = {},
  25. QFileDialog::Options options = QFileDialog::Options(),
  26. const QString& caption = {},
  27. QWidget* parent = nullptr);
  28. virtual ~CAutoDirectoryRestoreFileDialog() {}
  29. int exec() override;
  30. };
  31. #endif // CRYINCLUDE_EDITOR_UTIL_AUTODIRECTORYRESTOREFILEDIALOG_H