ProjectsHome.cpp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
  3. * its licensors.
  4. *
  5. * For complete copyright and license terms please see the LICENSE at the root of this
  6. * distribution (the "License"). All use of this software is governed by the License,
  7. * or, if provided, by the license below or the license accompanying this file. Do not
  8. * remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
  9. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. *
  11. */
  12. #include <ProjectsHome.h>
  13. #include <Source/ui_ProjectsHome.h>
  14. namespace O3DE::ProjectManager
  15. {
  16. ProjectsHome::ProjectsHome(ProjectManagerWindow* window)
  17. : ScreenWidget(window)
  18. , m_ui(new Ui::ProjectsHomeClass())
  19. {
  20. m_ui->setupUi(this);
  21. ConnectSlotsAndSignals();
  22. }
  23. ProjectsHome::~ProjectsHome()
  24. {
  25. }
  26. void ProjectsHome::ConnectSlotsAndSignals()
  27. {
  28. QObject::connect(m_ui->newProjectButton, &QPushButton::pressed, this, &ProjectsHome::HandleNewProjectButton);
  29. QObject::connect(m_ui->addProjectButton, &QPushButton::pressed, this, &ProjectsHome::HandleAddProjectButton);
  30. QObject::connect(m_ui->editProjectButton, &QPushButton::pressed, this, &ProjectsHome::HandleEditProjectButton);
  31. }
  32. void ProjectsHome::HandleNewProjectButton()
  33. {
  34. m_projectManagerWindow->ChangeToScreen(ProjectManagerScreen::NewProjectSettings);
  35. }
  36. void ProjectsHome::HandleAddProjectButton()
  37. {
  38. //Do nothing for now
  39. }
  40. void ProjectsHome::HandleEditProjectButton()
  41. {
  42. m_projectManagerWindow->ChangeToScreen(ProjectManagerScreen::ProjectSettings);
  43. }
  44. } // namespace O3DE::ProjectManager