X-Git-Url: http://git.sourceforge.jp/view?p=neighbornote%2FNeighborNote.git;a=blobdiff_plain;f=src%2Fcx%2Ffbn%2Fnevernote%2Fgui%2FContentView.java;h=648570bd368d1417fb77e55c097ed23a4a80ee0f;hp=2dfef1f60da00323816b3767a24178f2a86cf2ef;hb=adf1dae4e586ae493c99a71f6892eb5797a5111a;hpb=e33b38d4db96bc5d525201eafeb39449a4a7fae8;ds=sidebyside diff --git a/src/cx/fbn/nevernote/gui/ContentView.java b/src/cx/fbn/nevernote/gui/ContentView.java index 2dfef1f..648570b 100644 --- a/src/cx/fbn/nevernote/gui/ContentView.java +++ b/src/cx/fbn/nevernote/gui/ContentView.java @@ -62,6 +62,8 @@ public class ContentView extends QWebView { QShortcut rotateImageLeftShortcut; QAction insertLinkAction; QShortcut insertLinkShortcut; + QAction insertLatexAction; + QShortcut insertLatexShortcut; QAction insertTableAction; QShortcut insertTableShortcut; QAction insertTableRowAction; @@ -170,6 +172,14 @@ public class ContentView extends QWebView { insertLinkShortcut = new QShortcut(this); setupShortcut(insertLinkShortcut, "Edit_Insert_Hyperlink"); insertLinkShortcut.activated.connect(parent, "insertLink()"); + + insertLatexAction = new QAction(tr("Insert LaTeX Formula"), this); + insertLatexAction.triggered.connect(parent, "insertLatex()"); + setupShortcut(insertLatexAction, "Insert_Latex"); + contextMenu.addAction(insertLatexAction); + insertLatexShortcut = new QShortcut(this); + setupShortcut(insertLatexShortcut, "Latex_Insert"); + insertLatexShortcut.activated.connect(parent, "insertLatex()"); contextMenu.addMenu(tableMenu); tableMenu.setTitle("Table");