FormFolderBrowseEditWidget.h 1015 B

1234567891011121314151617181920212223242526272829303132333435363738
  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 <FormBrowseEditWidget.h>
  11. #endif
  12. namespace O3DE::ProjectManager
  13. {
  14. class FormFolderBrowseEditWidget
  15. : public FormBrowseEditWidget
  16. {
  17. Q_OBJECT
  18. public:
  19. FormFolderBrowseEditWidget(
  20. const QString& labelText,
  21. const QString& valueText,
  22. const QString& placeholderText,
  23. const QString& errorText,
  24. QWidget* parent = nullptr);
  25. explicit FormFolderBrowseEditWidget(const QString& labelText, const QString& valueText = "", QWidget* parent = nullptr);
  26. ~FormFolderBrowseEditWidget() = default;
  27. void setText(const QString& text) override;
  28. protected:
  29. void HandleBrowseButton() override;
  30. };
  31. } // namespace O3DE::ProjectManager