Skip to content

Commit

Permalink
paste whole cell data -> paste cell content
Browse files Browse the repository at this point in the history
  • Loading branch information
shun-iwasawa committed Mar 14, 2023
1 parent 5592660 commit 34af467
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion toonz/sources/include/toonzqt/selectioncommandids.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@
#define MI_ExplodeChild "MI_ExplodeChild"
#define MI_ToggleEditInPlace "MI_ToggleEditInPlace"
#define MI_PasteNumbers "MI_PasteNumbers"
#define MI_PasteWholeCellData "MI_PasteWholeCellData"
#define MI_PasteCellContent "MI_PasteCellContent"

#endif
4 changes: 2 additions & 2 deletions toonz/sources/toonz/cellselection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1509,7 +1509,7 @@ void TCellSelection::enableCommands() {
&TCellSelection::reframeWithEmptyInbetweens);

enableCommand(this, MI_PasteNumbers, &TCellSelection::overwritePasteNumbers);
enableCommand(this, MI_PasteWholeCellData, &TCellSelection::pasteCells);
enableCommand(this, MI_PasteCellContent, &TCellSelection::pasteCells);
enableCommand(this, MI_CreateBlankDrawing,
&TCellSelection::createBlankDrawings);
enableCommand(this, MI_Duplicate, &TCellSelection::duplicateFrames);
Expand Down Expand Up @@ -1555,7 +1555,7 @@ bool TCellSelection::isEnabledCommand(
MI_Undo,
MI_Redo,
MI_PasteNumbers,
MI_PasteWholeCellData,
MI_PasteCellContent,
MI_ConvertToToonzRaster,
MI_ConvertVectorToVector,
MI_CreateBlankDrawing,
Expand Down
4 changes: 2 additions & 2 deletions toonz/sources/toonz/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2299,8 +2299,8 @@ void MainWindow::defineActions() {
"", "shift_keys_up");
createRightClickMenuAction(MI_PasteNumbers, QT_TR_NOOP("&Paste Numbers"), "",
"paste_numbers");
createRightClickMenuAction(MI_PasteWholeCellData,
QT_TR_NOOP("&Paste Whole Cell Data"), "", "paste");
createRightClickMenuAction(MI_PasteCellContent,
QT_TR_NOOP("&Paste Cell Content"), "", "paste");

createRightClickMenuAction(MI_Histogram, QT_TR_NOOP("&Histogram"), "");
// MI_ViewerHistogram command is used as a proxy. It will be called when
Expand Down
3 changes: 1 addition & 2 deletions toonz/sources/toonz/xshcellviewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3866,8 +3866,7 @@ void CellArea::createCellMenu(QMenu &menu, bool isCellSelected, TXshCell cell,
if (Preferences::instance()->getPasteCellsBehavior() == 0)
pasteSpecialMenu->addAction(cmdManager->getAction(MI_PasteNumbers));
else
pasteSpecialMenu->addAction(
cmdManager->getAction(MI_PasteWholeCellData));
pasteSpecialMenu->addAction(cmdManager->getAction(MI_PasteCellContent));
if (!soundTextCellsSelected) {
pasteSpecialMenu->addAction(cmdManager->getAction(MI_PasteDuplicate));
}
Expand Down

0 comments on commit 34af467

Please sign in to comment.