Renamed in-place editing options.

This commit is contained in:
Leonardo Zide 2018-10-14 08:47:28 -07:00
parent 149df626b6
commit 58c63982d2
4 changed files with 13 additions and 13 deletions

View file

@ -1200,18 +1200,18 @@ lcCommand gCommands[LC_NUM_COMMANDS] =
QT_TRANSLATE_NOOP("Status", "Insert the contents of the selected model references into the current model"),
QT_TRANSLATE_NOOP("Shortcut", "")
},
// LC_PIECE_EDIT_TOP_SUBMODEL
{
QT_TRANSLATE_NOOP("Action", "Piece.EditTopSubmodel"),
QT_TRANSLATE_NOOP("Menu", "Edit Top Submodel"),
QT_TRANSLATE_NOOP("Status", "Edit the top submodel"),
QT_TRANSLATE_NOOP("Shortcut", "")
},
// LC_PIECE_EDIT_SELECTED_SUBMODEL
{
QT_TRANSLATE_NOOP("Action", "Piece.EditSelectedSubmodel"),
QT_TRANSLATE_NOOP("Menu", "Edit Selected Submodel"),
QT_TRANSLATE_NOOP("Status", "Edit the currently selected submodel"),
QT_TRANSLATE_NOOP("Status", "Edit the currently selected submodel in-place"),
QT_TRANSLATE_NOOP("Shortcut", "")
},
// LC_PIECE_EDIT_END_SUBMODEL
{
QT_TRANSLATE_NOOP("Action", "Piece.EditEndSubmodel"),
QT_TRANSLATE_NOOP("Menu", "End Submodel Editing"),
QT_TRANSLATE_NOOP("Status", "End in-place submodel editing"),
QT_TRANSLATE_NOOP("Shortcut", "")
},
// LC_PIECE_GROUP

View file

@ -185,8 +185,8 @@ enum lcCommandId
LC_PIECE_VIEW_SELECTED_MODEL,
LC_PIECE_MOVE_SELECTION_TO_MODEL,
LC_PIECE_INLINE_SELECTED_MODELS,
LC_PIECE_EDIT_TOP_SUBMODEL,
LC_PIECE_EDIT_SELECTED_SUBMODEL,
LC_PIECE_EDIT_END_SUBMODEL,
LC_PIECE_GROUP,
LC_PIECE_UNGROUP,
LC_PIECE_GROUP_ADD,

View file

@ -528,8 +528,8 @@ void lcMainWindow::CreateMenus()
PieceMenu->addAction(mActions[LC_PIECE_RESET_PIVOT_POINT]);
PieceMenu->addAction(mActions[LC_PIECE_REMOVE_KEY_FRAMES]);
PieceMenu->addSeparator();
PieceMenu->addAction(mActions[LC_PIECE_EDIT_TOP_SUBMODEL]);
PieceMenu->addAction(mActions[LC_PIECE_EDIT_SELECTED_SUBMODEL]);
PieceMenu->addAction(mActions[LC_PIECE_EDIT_END_SUBMODEL]);
PieceMenu->addAction(mActions[LC_PIECE_VIEW_SELECTED_MODEL]);
PieceMenu->addAction(mActions[LC_PIECE_INLINE_SELECTED_MODELS]);
PieceMenu->addAction(mActions[LC_PIECE_MOVE_SELECTION_TO_MODEL]);
@ -1849,7 +1849,7 @@ void lcMainWindow::UpdateSelectedObjects(bool SelectionChanged)
mActions[LC_PIECE_SHOW_LATER]->setEnabled(Flags & LC_SEL_PIECE);
mActions[LC_TIMELINE_MOVE_SELECTION]->setEnabled(Flags & LC_SEL_PIECE);
mActions[LC_PIECE_EDIT_TOP_SUBMODEL]->setEnabled(GetCurrentTabModel() != ActiveModel);
mActions[LC_PIECE_EDIT_END_SUBMODEL]->setEnabled(GetCurrentTabModel() != ActiveModel);
}
mPropertiesWidget->Update(Selection, Focus);
@ -2695,7 +2695,7 @@ void lcMainWindow::HandleCommand(lcCommandId CommandId)
ActiveModel->InlineSelectedModels();
break;
case LC_PIECE_EDIT_TOP_SUBMODEL:
case LC_PIECE_EDIT_END_SUBMODEL:
if (ActiveView)
ActiveView->SetTopSubmodelActive();
break;

View file

@ -488,8 +488,8 @@ void View::ShowContextMenu() const
Popup->addSeparator();
Popup->addAction(Actions[LC_PIECE_EDIT_TOP_SUBMODEL]);
Popup->addAction(Actions[LC_PIECE_EDIT_SELECTED_SUBMODEL]);
Popup->addAction(Actions[LC_PIECE_EDIT_END_SUBMODEL]);
Popup->addAction(Actions[LC_PIECE_VIEW_SELECTED_MODEL]);
Popup->addAction(Actions[LC_PIECE_INLINE_SELECTED_MODELS]);
Popup->addAction(Actions[LC_PIECE_MOVE_SELECTION_TO_MODEL]);