Skip to content

Commit

Permalink
Perform Cell copy and paste operation with regular Ctrl+c and Ctrl+v …
Browse files Browse the repository at this point in the history
…shortcuts
  • Loading branch information
arun3688 committed Sep 26, 2015
1 parent 7ab0a67 commit d547803
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
13 changes: 1 addition & 12 deletions OMNotebook/OMNotebookGUI/notebook.cpp
Expand Up @@ -833,16 +833,6 @@ void NotebookWindow::createCellMenu()
previousCellAction->setStatusTip( tr("Move to previous cell") );
connect(previousCellAction, SIGNAL(triggered()), this, SLOT(moveCursorUp()));

copyCellAction = new QAction( tr("&Copy Cell"), this);
copyCellAction->setShortcut( tr("Ctrl+Shift+C") );
copyCellAction->setStatusTip( tr("Copy selected cell") );
connect(copyCellAction, SIGNAL(triggered()), this, SLOT(copyCell()));

pasteCellAction = new QAction( tr("&Paste Cell"), this);
pasteCellAction->setShortcut( tr("Ctrl+Shift+V") );
pasteCellAction->setStatusTip( tr("Paste in a cell") );
connect(pasteCellAction, SIGNAL(triggered()), this, SLOT(pasteCell()));

// 2005-10-07 AF, Porting, new code for creating menu
// 2006-04-27 AF, remove cut,copy,paste cell from menu
cellMenu = menuBar()->addMenu( tr("&Cell") );
Expand All @@ -862,8 +852,7 @@ void NotebookWindow::createCellMenu()
cellMenu->addSeparator();
cellMenu->addAction( nextCellAction );
cellMenu->addAction( previousCellAction );
cellMenu->addAction( copyCellAction );
cellMenu->addAction( pasteCellAction );

QObject::connect(cellMenu, SIGNAL(aboutToShow()),
this, SLOT(updateCellMenu()));

Expand Down
4 changes: 2 additions & 2 deletions OMNotebook/OMNotebookGUI/notebook.h
Expand Up @@ -262,8 +262,8 @@ private slots:
QAction *showExprAction;

//QAction *cutCellAction;
QAction *copyCellAction;
QAction *pasteCellAction;
//QAction *copyCellAction;
//QAction *pasteCellAction;
QAction *addCellAction;
QAction *ungroupCellAction; // Added 2006-04-26 AF
QAction *splitCellAction; // Added 2006-04-26 AF
Expand Down

0 comments on commit d547803

Please sign in to comment.