XacroParamsPage.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 <QFileDialog>
  11. #include <QLabel>
  12. #include <QLineEdit>
  13. #include <QPushButton>
  14. #include <QString>
  15. #include <QTableWidget>
  16. #include <QWizardPage>
  17. #include <RobotImporter/xacro/XacroUtils.h>
  18. #endif
  19. namespace ROS2RobotImporter
  20. {
  21. class RobotImporterWidget;
  22. //! Wizard page that allows user to modify Xacro parameters
  23. class XacroParamsPage : public QWizardPage
  24. {
  25. Q_OBJECT
  26. public:
  27. explicit XacroParamsPage(RobotImporterWidget* parent);
  28. bool isComplete() const override;
  29. void SetXacroParameters(const Utils::xacro::Params& params);
  30. Utils::xacro::Params GetXacroParameters() const;
  31. private:
  32. Utils::xacro::Params m_defaultParams;
  33. QTableWidget* m_table{};
  34. };
  35. } // namespace ROS2RobotImporter