IntroPage.cpp 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. #include "IntroPage.h"
  9. #include <QVBoxLayout>
  10. namespace ROS2
  11. {
  12. IntroPage::IntroPage(QWizard* parent)
  13. : QWizardPage(parent)
  14. {
  15. setTitle(QObject::tr("Introduction"));
  16. m_label = new QLabel(
  17. QObject::tr("This wizard allows you to build a robot prefab using a URDF description file or object/environment prefab using an SDF file."
  18. " Before processing, please make sure that all of the robot's description packages have been built and sourced."
  19. " Details can be found <a "
  20. "href=\"https://www.o3de.org/docs/user-guide/interactivity/robotics/importing-robot/"
  21. "#loading-the-robot-definition-file-with-robot-importer\">here</a>."
  22. " The Open 3D Engine can only use files in its internal <a "
  23. "href=\"https://www.o3de.org/docs/user-guide/assets/asset-types/\">format</a>."
  24. "During the import process, the assets will be imported and processed."
  25. "A level must be opened before using the URDF/SDF Importer."));
  26. m_label->setTextFormat(Qt::RichText);
  27. m_label->setOpenExternalLinks(true);
  28. m_label->setWordWrap(true);
  29. QVBoxLayout* layout = new QVBoxLayout;
  30. layout->addWidget(m_label);
  31. setLayout(layout);
  32. }
  33. } // namespace ROS2