fixed unit tests bugs, removed commented out code, removed loading spam
Signed-off-by: chcurran <82187351+carlitosan@users.noreply.github.com>
This commit is contained in:
@@ -251,16 +251,6 @@ namespace ScriptCanvasEditor
|
||||
{
|
||||
if (index >= 0 && index < count())
|
||||
{
|
||||
QVariant tabdata = tabData(index);
|
||||
if (tabdata.isValid())
|
||||
{
|
||||
// #sc_editor_asset fix tabData
|
||||
auto tabAssetId = tabdata.value<GraphTabMetadata>();
|
||||
|
||||
//MemoryAssetNotificationBus::MultiHandler::BusDisconnect(tabAssetId);
|
||||
//AssetTrackerRequestBus::Broadcast(&AssetTrackerRequests::ClearView, tabAssetId);
|
||||
}
|
||||
|
||||
qobject_cast<AzQtComponents::TabWidget*>(parent())->removeTab(index);
|
||||
}
|
||||
}
|
||||
@@ -271,8 +261,6 @@ namespace ScriptCanvasEditor
|
||||
{
|
||||
Q_EMIT TabCloseNoButton(i);
|
||||
}
|
||||
|
||||
MemoryAssetNotificationBus::MultiHandler::BusDisconnect();
|
||||
}
|
||||
|
||||
void GraphTabBar::OnContextMenu(const QPoint& point)
|
||||
@@ -289,8 +277,6 @@ namespace ScriptCanvasEditor
|
||||
auto tabAssetId = tabdata.value<GraphTabMetadata>();
|
||||
|
||||
Tracker::ScriptCanvasFileState fileState = Tracker::ScriptCanvasFileState::INVALID;
|
||||
//AssetTrackerRequestBus::BroadcastResult(fileState , &AssetTrackerRequests::GetFileState, tabAssetId);
|
||||
|
||||
isModified = fileState == Tracker::ScriptCanvasFileState::NEW || fileState == Tracker::ScriptCanvasFileState::MODIFIED;
|
||||
}
|
||||
|
||||
@@ -362,22 +348,6 @@ namespace ScriptCanvasEditor
|
||||
AzQtComponents::TabBar::mouseReleaseEvent(event);
|
||||
}
|
||||
|
||||
void GraphTabBar::OnFileStateChanged(Tracker::ScriptCanvasFileState )
|
||||
{
|
||||
// #sc_editor_asset
|
||||
// const AZ::Data::AssetId* fileAssetId = MemoryAssetNotificationBus::GetCurrentBusId();
|
||||
|
||||
// if (fileAssetId)
|
||||
// {
|
||||
// SetFileState((*fileAssetId), fileState);
|
||||
//
|
||||
// if (FindTab((*fileAssetId)) == currentIndex())
|
||||
// {
|
||||
// Q_EMIT OnActiveFileStateChanged();
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
void GraphTabBar::SetTabText(int tabIndex, const QString& path, Tracker::ScriptCanvasFileState fileState)
|
||||
{
|
||||
if (tabIndex >= 0 && tabIndex < count())
|
||||
|
||||
@@ -42,7 +42,6 @@ namespace ScriptCanvasEditor
|
||||
|
||||
class GraphTabBar
|
||||
: public AzQtComponents::TabBar
|
||||
, public MemoryAssetNotificationBus::MultiHandler
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@@ -63,8 +62,6 @@ namespace ScriptCanvasEditor
|
||||
int InsertGraphTab(int tabIndex, ScriptCanvasEditor::SourceHandle assetId, Tracker::ScriptCanvasFileState fileState);
|
||||
bool SelectTab(ScriptCanvasEditor::SourceHandle assetId);
|
||||
|
||||
// void ConfigureTab(int tabIndex, ScriptCanvasEditor::SourceHandle fileAssetId, const AZStd::string& tabName);
|
||||
|
||||
int FindTab(ScriptCanvasEditor::SourceHandle assetId) const;
|
||||
ScriptCanvasEditor::SourceHandle FindTabByPath(AZStd::string_view path) const;
|
||||
ScriptCanvasEditor::SourceHandle FindAssetId(int tabIndex);
|
||||
@@ -78,10 +75,6 @@ namespace ScriptCanvasEditor
|
||||
|
||||
void mouseReleaseEvent(QMouseEvent* event) override;
|
||||
|
||||
// MemoryAssetNotifications
|
||||
void OnFileStateChanged(Tracker::ScriptCanvasFileState fileState) override;
|
||||
////
|
||||
|
||||
// Updates the tab at the supplied index with the GraphTabMetadata
|
||||
// The host widget field of the tabMetadata is not used and will not overwrite the tab data
|
||||
void SetTabText(int tabIndex, const QString& path, Tracker::ScriptCanvasFileState fileState = Tracker::ScriptCanvasFileState::INVALID);
|
||||
|
||||
@@ -137,17 +137,6 @@ namespace ScriptCanvasEditor
|
||||
m_additionTimer.start();
|
||||
}
|
||||
}
|
||||
|
||||
if (m_updatePolicy == UpdatePolicy::SingleTime)
|
||||
{
|
||||
// #sc_editor_asset
|
||||
// treeItem = CreateChildNodeWithoutAddSignal<ExecutionLogTreeItem>(loggingDataId, nodeType, graphInfo, nodeId);
|
||||
}
|
||||
else
|
||||
{
|
||||
// #sc_editor_asset
|
||||
// treeItem = CreateChildNode<ExecutionLogTreeItem>(loggingDataId, nodeType, graphInfo, nodeId);
|
||||
}
|
||||
|
||||
return treeItem;
|
||||
}
|
||||
@@ -207,9 +196,6 @@ namespace ScriptCanvasEditor
|
||||
|
||||
AZ::NamedEntityId entityName;
|
||||
|
||||
// #sc_editor_asset restore this
|
||||
//LoggingDataRequestBus::EventResult(entityName, m_loggingDataId, &LoggingDataRequests::FindNamedEntityId, m_graphInfo.m_runtimeEntity);
|
||||
|
||||
m_sourceEntityName = entityName.ToString().c_str();
|
||||
m_displayName = nodeId.m_name.c_str();
|
||||
|
||||
@@ -514,7 +500,6 @@ namespace ScriptCanvasEditor
|
||||
|
||||
const ScriptCanvas::GraphIdentifier& ExecutionLogTreeItem::GetGraphIdentifier() const
|
||||
{
|
||||
// #sc_editor_asset
|
||||
return m_graphIdentifier;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user