JointSelectionDialog.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 <AzCore/std/containers/vector.h>
  11. #include <AzCore/std/string/string.h>
  12. #include <QDialog>
  13. #endif
  14. namespace EMotionFX
  15. {
  16. class JointSelectionWidget;
  17. class JointSelectionDialog
  18. : public QDialog
  19. {
  20. Q_OBJECT // AUTOMOC
  21. public:
  22. JointSelectionDialog(bool singleSelection, const QString& title, const QString& descriptionLabelText, QWidget* parent);
  23. ~JointSelectionDialog();
  24. void SelectByJointNames(const AZStd::vector<AZStd::string>& jointNames);
  25. AZStd::vector<AZStd::string> GetSelectedJointNames() const;
  26. void SetFilterState(const QString& category, const QString& displayName, bool enabled);
  27. void HideIcons();
  28. private slots:
  29. void OnItemDoubleClicked(const QModelIndex& modelIndex);
  30. private:
  31. JointSelectionWidget* m_jointSelectionWidget;
  32. };
  33. } // namespace EMotionFX