TrackViewFindDlg.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. // TrackViewFindDlg.h : header file
  10. #if !defined(Q_MOC_RUN)
  11. #include <QDialog>
  12. #include <QScopedPointer>
  13. #endif
  14. #include <AzCore/std/containers/vector.h>
  15. class CTrackViewDialog;
  16. namespace Ui {
  17. class TrackViewFindDlg;
  18. }
  19. //////////////////////////////////////////////////////////////////////////
  20. // CTrackViewFindDlg dialog
  21. class CTrackViewFindDlg
  22. : public QDialog
  23. {
  24. Q_OBJECT
  25. // Construction
  26. public:
  27. CTrackViewFindDlg(const char* title = nullptr, QWidget* pParent = nullptr); // standard constructor
  28. ~CTrackViewFindDlg();
  29. //Functions
  30. void FillData();
  31. void FillList();
  32. void Init(CTrackViewDialog* tvDlg);
  33. void ProcessSel();
  34. protected slots:
  35. void OnOK();
  36. void OnCancel();
  37. void OnFilterChange(const QString& text);
  38. void OnItemDoubleClicked();
  39. protected:
  40. struct ObjName
  41. {
  42. QString m_objName;
  43. QString m_directorName;
  44. QString m_seqName;
  45. };
  46. AZStd::vector<ObjName> m_objs;
  47. AZStd::vector<int> m_objsSourceIndex;
  48. CTrackViewDialog* m_tvDlg;
  49. int m_numSeqs;
  50. QScopedPointer<Ui::TrackViewFindDlg> ui;
  51. };