b4a2edec6a
* Final update copyright headers to reference license files at the repo root Signed-off-by: spham <spham@amazon.com> * Fix copyright validator unit tests to support the stale O3DE header scenario Signed-off-by: spham <spham@amazon.com>
45 lines
1.6 KiB
C++
45 lines
1.6 KiB
C++
/*
|
|
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
*
|
|
*/
|
|
|
|
#include <Editor/Plugins/SimulatedObject/SimulatedObjectSelectionWindow.h>
|
|
#include <MCore/Source/LogManager.h>
|
|
#include <QLabel>
|
|
#include <QSizePolicy>
|
|
#include <QTreeWidget>
|
|
#include <QPixmap>
|
|
#include <QPushButton>
|
|
#include <QVBoxLayout>
|
|
#include <QIcon>
|
|
#include <QLineEdit>
|
|
#include <QGraphicsDropShadowEffect>
|
|
|
|
|
|
namespace EMStudio
|
|
{
|
|
SimulatedObjectSelectionWindow::SimulatedObjectSelectionWindow(QWidget* parent)
|
|
: QDialog(parent)
|
|
{
|
|
setWindowTitle("SimulatedObject Selection Window");
|
|
|
|
m_OKButton = new QPushButton("OK");
|
|
m_cancelButton = new QPushButton("Cancel");
|
|
|
|
QHBoxLayout* buttonLayout = new QHBoxLayout();
|
|
buttonLayout->addWidget(m_OKButton);
|
|
buttonLayout->addWidget(m_cancelButton);
|
|
|
|
QVBoxLayout* layout = new QVBoxLayout(this);
|
|
m_simulatedObjectSelectionWidget = new SimulatedObjectSelectionWidget(this);
|
|
layout->addWidget(m_simulatedObjectSelectionWidget);
|
|
layout->addLayout(buttonLayout);
|
|
|
|
connect(m_OKButton, &QPushButton::clicked, this, &SimulatedObjectSelectionWindow::accept);
|
|
connect(m_cancelButton, &QPushButton::clicked, this, &SimulatedObjectSelectionWindow::reject);
|
|
connect(m_simulatedObjectSelectionWidget, &SimulatedObjectSelectionWidget::OnDoubleClicked, this, &SimulatedObjectSelectionWindow::accept);
|
|
}
|
|
} // namespace EMStudio
|