restored view menu entries for dock widgets
renamed document tab functions Signed-off-by: Guthrie Adams <guthadam@amazon.com>
This commit is contained in:
@@ -72,6 +72,10 @@ namespace AtomToolsFramework
|
||||
addDockWidget(aznumeric_cast<Qt::DockWidgetArea>(area), dockWidget);
|
||||
resizeDocks({ dockWidget }, { 400 }, aznumeric_cast<Qt::Orientation>(orientation));
|
||||
m_dockWidgets[name] = dockWidget;
|
||||
|
||||
m_dockActions[name] = m_menuView->addAction(name.c_str(), [this, name](){
|
||||
SetDockWidgetVisible(name, !IsDockWidgetVisible(name));
|
||||
});
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -83,6 +87,12 @@ namespace AtomToolsFramework
|
||||
delete dockWidgetItr->second;
|
||||
m_dockWidgets.erase(dockWidgetItr);
|
||||
}
|
||||
auto dockActionItr = m_dockActions.find(name);
|
||||
if (dockActionItr != m_dockActions.end())
|
||||
{
|
||||
delete dockActionItr->second;
|
||||
m_dockActions.erase(dockActionItr);
|
||||
}
|
||||
}
|
||||
|
||||
void AtomToolsMainWindow::SetDockWidgetVisible(const AZStd::string& name, bool visible)
|
||||
|
||||
Reference in New Issue
Block a user