Removes NewGraphDialog from Gems/ScriptCanvas

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2022-01-05 19:31:10 -08:00
parent 1342d54c7d
commit 3db71950e8
5 changed files with 0 additions and 160 deletions
@@ -20,7 +20,6 @@
#include <Editor/Framework/ScriptCanvasGraphUtilities.h>
#include <Editor/Settings.h>
#include <Editor/SystemComponent.h>
#include <Editor/View/Dialogs/NewGraphDialog.h>
#include <Editor/View/Dialogs/SettingsDialog.h>
#include <Editor/View/Widgets/SourceHandlePropertyAssetCtrl.h>
#include <Editor/View/Windows/MainWindow.h>
@@ -1,51 +0,0 @@
/*
* 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 "NewGraphDialog.h"
#include <QLineEdit>
#include <QPushButton>
#include "Editor/View/Dialogs/ui_NewGraphDialog.h"
namespace ScriptCanvasEditor
{
NewGraphDialog::NewGraphDialog(const QString& title, const QString& text, QWidget* pParent /*=nullptr*/)
: QDialog(pParent)
, ui(new Ui::NewGraphDialog)
, m_text(text)
{
ui->setupUi(this);
setWindowTitle(title);
QObject::connect(ui->GraphName, &QLineEdit::returnPressed, this, &NewGraphDialog::OnOK);
QObject::connect(ui->GraphName, &QLineEdit::textChanged, this, &NewGraphDialog::OnTextChanged);
QObject::connect(ui->ok, &QPushButton::clicked, this, &NewGraphDialog::OnOK);
QObject::connect(ui->cancel, &QPushButton::clicked, this, &QDialog::reject);
ui->ok->setEnabled(false);
}
void NewGraphDialog::OnTextChanged(const QString& text)
{
ui->ok->setEnabled(!text.isEmpty());
}
void NewGraphDialog::OnOK()
{
QString itemName = ui->GraphName->text();
m_text = itemName.toLocal8Bit().constData();
accept();
}
#include <Editor/View/Dialogs/moc_NewGraphDialog.cpp>
}
@@ -1,42 +0,0 @@
/*
* 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
*
*/
#pragma once
#if !defined(Q_MOC_RUN)
#include <QDialog>
#include <AzCore/std/smart_ptr/unique_ptr.h>
#endif
namespace Ui
{
class NewGraphDialog;
}
namespace ScriptCanvasEditor
{
class NewGraphDialog
: public QDialog
{
Q_OBJECT
public:
NewGraphDialog(const QString& title, const QString& text, QWidget* pParent = nullptr);
const QString& GetText() const { return m_text; }
protected:
void OnOK();
void OnTextChanged(const QString& text);
QString m_text;
Ui::NewGraphDialog* ui;
};
}
@@ -1,63 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>NewGraphDialog</class>
<widget class="QDialog" name="NewGraphDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>300</width>
<height>72</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="name">
<property name="text">
<string>Name:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="GraphName">
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="1" column="0" colspan="4">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>10</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="ok">
<property name="text">
<string>OK</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="cancel">
<property name="text">
<string>Cancel</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>
@@ -125,9 +125,6 @@ set(FILES
Editor/Utilities/RecentFiles.cpp
Editor/Utilities/RecentAssetPath.h
Editor/Utilities/RecentAssetPath.cpp
Editor/View/Dialogs/NewGraphDialog.h
Editor/View/Dialogs/NewGraphDialog.cpp
Editor/View/Dialogs/NewGraphDialog.ui
Editor/View/Dialogs/SettingsDialog.h
Editor/View/Dialogs/SettingsDialog.cpp
Editor/View/Dialogs/SettingsDialog.ui