TrackViewNewSequenceDialog.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. // Qt
  10. #if !defined(Q_MOC_RUN)
  11. #include <QScopedPointer>
  12. #include <QDialog>
  13. #endif
  14. // CryCommon
  15. #include <CryCommon/Maestro/Types/SequenceType.h>
  16. namespace Ui {
  17. class CTVNewSequenceDialog;
  18. class CTVNewSequenceDialogValidator;
  19. }
  20. class QValidator;
  21. class CTVNewSequenceDialog
  22. : public QDialog
  23. {
  24. Q_OBJECT
  25. public:
  26. CTVNewSequenceDialog(QWidget* pParent = 0);
  27. virtual ~CTVNewSequenceDialog();
  28. const QString& GetSequenceName() const { return m_sequenceName; }
  29. SequenceType GetSequenceType() const { return m_sequenceType; }
  30. void showEvent(QShowEvent* event) override;
  31. friend class CTVNewSequenceDialogValidator;
  32. protected:
  33. virtual void OnOK();
  34. void OnInitDialog();
  35. private:
  36. QString m_sequenceName;
  37. SequenceType m_sequenceType;
  38. QScopedPointer<Ui::CTVNewSequenceDialog> ui;
  39. bool m_inputFocusSet;
  40. QValidator* m_validator;
  41. };