TrackViewFindDlg.h 1.4 KB

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