Removed Reset Cameras.

This commit is contained in:
Leonardo Zide
2021-02-27 11:35:42 -08:00
parent 4a77391c6b
commit b057afdd63
3 changed files with 0 additions and 30 deletions
-7
View File
@@ -976,13 +976,6 @@ const lcCommand gCommands[] =
QT_TRANSLATE_NOOP("Status", "Use this camera"),
""
},
// LC_VIEW_CAMERA_RESET
{
QT_TRANSLATE_NOOP("Action", "View.Cameras.Reset"),
QT_TRANSLATE_NOOP("Menu", "Reset"),
QT_TRANSLATE_NOOP("Status", "Reset views to their default positions"),
""
},
// LC_VIEW_TIME_FIRST
{
QT_TRANSLATE_NOOP("Action", "View.Time.First"),
-1
View File
@@ -149,7 +149,6 @@ enum lcCommandId
LC_VIEW_CAMERA15,
LC_VIEW_CAMERA16,
LC_VIEW_CAMERA_LAST = LC_VIEW_CAMERA16,
LC_VIEW_CAMERA_RESET,
LC_VIEW_TIME_FIRST,
LC_VIEW_TIME_PREVIOUS,
LC_VIEW_TIME_NEXT,
-22
View File
@@ -413,9 +413,6 @@ void lcMainWindow::CreateMenus()
for (int actionIdx = LC_VIEW_CAMERA_FIRST; actionIdx <= LC_VIEW_CAMERA_LAST; actionIdx++)
mCameraMenu->addAction(mActions[actionIdx]);
mCameraMenu->addSeparator();
mCameraMenu->addAction(mActions[LC_VIEW_CAMERA_RESET]);
mViewpointMenu = new QMenu(tr("&Viewpoints"), this);
mViewpointMenu->addAction(mActions[LC_VIEW_VIEWPOINT_FRONT]);
mViewpointMenu->addAction(mActions[LC_VIEW_VIEWPOINT_BACK]);
@@ -1647,21 +1644,6 @@ void lcMainWindow::SetCurrentModelTab(lcModel* Model)
NewView->ZoomExtents();
}
void lcMainWindow::ResetCameras()
{
lcModelTabWidget* CurrentTab = (lcModelTabWidget*)mModelTabWidget->currentWidget();
if (!CurrentTab)
return;
const QList<lcViewWidget*> ViewWidgets = CurrentTab->findChildren<lcViewWidget*>();
for (lcViewWidget* ViewWidget : ViewWidgets)
ViewWidget->GetView()->SetDefaultCamera();
lcGetActiveModel()->DeleteAllCameras();
}
void lcMainWindow::AddView(lcView* View)
{
lcModelTabWidget* TabWidget = GetTabWidgetForModel(View->GetModel());
@@ -3238,10 +3220,6 @@ void lcMainWindow::HandleCommand(lcCommandId CommandId)
ActiveView->SetCameraIndex(CommandId - LC_VIEW_CAMERA1);
break;
case LC_VIEW_CAMERA_RESET:
ResetCameras();
break;
case LC_MODEL_NEW:
lcGetActiveProject()->CreateNewModel(true);
break;