TrackViewFBXImportPreviewDialog.h 1.2 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. #ifndef CRYINCLUDE_EDITOR_TRACKVIEWFBXIMPORTPREVIEWDIALOG_H
  9. #define CRYINCLUDE_EDITOR_TRACKVIEWFBXIMPORTPREVIEWDIALOG_H
  10. #pragma once
  11. #if !defined(Q_MOC_RUN)
  12. #include <QDialog>
  13. #endif
  14. namespace Ui
  15. {
  16. class TrackViewFBXImportPreviewDialog;
  17. }
  18. class CTrackViewFBXImportPreviewDialog
  19. : public QDialog
  20. {
  21. Q_OBJECT
  22. public:
  23. CTrackViewFBXImportPreviewDialog(QWidget* parent = nullptr);
  24. virtual ~CTrackViewFBXImportPreviewDialog();
  25. void AddTreeItem(const QString& objectName);
  26. bool IsObjectSelected(const QString& objectName) const;
  27. int exec() override;
  28. protected:
  29. void OnBnSelectAllClicked();
  30. void OnBnUnselectAllClicked();
  31. private:
  32. friend class FBXImportModel;
  33. struct Item
  34. {
  35. QString name;
  36. bool checked;
  37. };
  38. typedef QVector<Item> TItemsMap;
  39. TItemsMap m_fBXItemNames;
  40. QScopedPointer<Ui::TrackViewFBXImportPreviewDialog> m_ui;
  41. };
  42. #endif // CRYINCLUDE_EDITOR_TRACKVIEWFBXIMPORTPREVIEWDIALOG_H