|
5 | 5 | <?xml-stylesheet href="chrome://zotero/skin/standalone.css" type="text/css"?> |
6 | 6 | <?xml-stylesheet href="chrome://zotero-platform/content/overlay.css"?> |
7 | 7 | <?xml-stylesheet href="chrome://__addonRef__/skin/workspace.css" type="text/css"?> |
8 | | -<?xml-stylesheet href="chrome://__addonRef__/content/lib/css/dx.light.css" type="text/css"?> |
9 | 8 | <?xul-overlay href="chrome://zotero/content/standalone/editMenuOverlay.xul"?> |
10 | 9 |
|
11 | 10 | <!DOCTYPE window [ |
|
21 | 20 | %knowledgeDTD; |
22 | 21 | ]> |
23 | 22 |
|
24 | | -<window id="zotero-knowledge-workspace" orient="vertical" width="1000" height="350" title="&zotero.__addonRef__.workspace.title;" persist="screenX screenY width height" windowtype="zotero:knowledgeWorkspace" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml"> |
| 23 | +<window id="zotero-knowledge-workspace" orient="vertical" width="1000" height="350" title="&zotero.__addonRef__.workspace.title;" persist="screenX screenY width height sizemode" windowtype="zotero:knowledgeWorkspace" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml"> |
25 | 24 |
|
26 | 25 | <script src="chrome://zotero/content/include.js" /> |
27 | 26 | <script src="chrome://zotero/content/note.js" /> |
28 | 27 |
|
29 | 28 | <keyset> |
30 | 29 | <key id="key_new" key="N" modifiers="accel" command="cmd_new" /> |
31 | 30 | <key id="key_open" key="O" modifiers="accel" command="cmd_open" /> |
32 | | - <key id="key_import" key="I" modifiers="accel" command="cmd_import" /> |
33 | 31 | <key id="key_export" key="E" modifiers="accel" command="cmd_export" /> |
34 | 32 | <key id="key_close" key="W" modifiers="accel" command="cmd_close" /> |
| 33 | + <key id="key_insertNotes" key="I" modifiers="accel" command="cmd_insertNotes" /> |
35 | 34 | <key id="key_indent" keycode="VK_TAB" command="cmd_indent" /> |
36 | 35 | <key id="key_unindent" keycode="VK_TAB" modifiers="shift" command="cmd_unindent" /> |
37 | 36 | </keyset> |
38 | 37 | <command id="cmd_new" oncommand="Zotero.Knowledge4Zotero.events.onEditorEvent({type: 'createWorkspace'});" /> |
39 | 38 | <command id="cmd_open" oncommand="Zotero.Knowledge4Zotero.events.onEditorEvent({type: 'selectMainKnowledge'});" /> |
40 | | - <command id="cmd_import" oncommand="Zotero.Knowledge4Zotero.events.onEditorEvent({type: 'import'});" /> |
41 | 39 | <command id="cmd_export" oncommand="Zotero.Knowledge4Zotero.events.onEditorEvent({type: 'export', content: {editorInstance: {_item: false}}});" /> |
42 | 40 | <command id="cmd_close" oncommand="window.close();" /> |
| 41 | + <command id="cmd_insertNotes" oncommand="Zotero.Knowledge4Zotero.events.onEditorEvent({type: 'insertNotes'});" /> |
| 42 | + <command id="cmd_editTemplate" oncommand="Zotero.Knowledge4Zotero.events.onEditorEvent({type: 'editTemplate'});" /> |
43 | 43 | <command id="cmd_addheading" oncommand="Zotero.Knowledge4Zotero.events.onEditorEvent({type: 'addHeading'});" /> |
44 | 44 | <command id="cmd_indent" oncommand="Zotero.Knowledge4Zotero.events.onEditorEvent({type: 'indentHeading'});" /> |
45 | 45 | <command id="cmd_unindent" oncommand="Zotero.Knowledge4Zotero.events.onEditorEvent({type: 'unindentHeading'});" /> |
|
57 | 57 | <menupopup id="menu_FilePopup"> |
58 | 58 | <menuitem id="menu_new" label="&zotero.__addonRef__.workspace.menu.new;" key="key_new" accesskey="N" command="cmd_new" /> |
59 | 59 | <menuitem id="menu_open" label="&zotero.__addonRef__.workspace.menu.open;" key="key_open" accesskey="O" command="cmd_open" /> |
60 | | - <menuitem id="menu_import" label="&zotero.__addonRef__.workspace.menu.import;" key="key_import" accesskey="I" command="cmd_import" /> |
61 | 60 | <menuitem id="menu_export" label="&zotero.__addonRef__.workspace.menu.export;" key="key_export" accesskey="E" command="cmd_export" /> |
62 | 61 | <menuitem id="menu_close" label="&closeCmd.label;" key="key_close" accesskey="&closeCmd.accesskey;" command="cmd_close" /> |
63 | 62 | </menupopup> |
64 | 63 | </menu> |
65 | 64 |
|
66 | 65 | <menu id="menu_edit" label="&editMenu.label;" accesskey="&editMenu.accesskey;"> |
67 | 66 | <menupopup id="menu_EditPopup"> |
| 67 | + <menuitem id="menu_insertNotes" label="&zotero.__addonRef__.workspace.menu.insertNotes;" key="key_insertNotes" accesskey="I" command="cmd_insertNotes" /> |
| 68 | + <menu id="menu_insertTextTemplate" label="&zotero.__addonRef__.workspace.menu.insertTextTemplate;"> |
| 69 | + <menupopup id="menu_insertTextTemplatePopup" onpopupshowing="Zotero.Knowledge4Zotero.views.updateTemplateMenu('Text');" /> |
| 70 | + </menu> |
| 71 | + <menu id="menu_insertNoteTemplate" label="&zotero.__addonRef__.workspace.menu.insertNoteTemplate;"> |
| 72 | + <menupopup id="menu_insertNoteTemplatePopup" onpopupshowing="Zotero.Knowledge4Zotero.views.updateTemplateMenu('Note');" /> |
| 73 | + </menu> |
| 74 | + <menu id="menu_insertItemTemplate" label="&zotero.__addonRef__.workspace.menu.insertItemTemplate;"> |
| 75 | + <menupopup id="menu_insertItemTemplatePopup" onpopupshowing="Zotero.Knowledge4Zotero.views.updateTemplateMenu('Item');" /> |
| 76 | + </menu> |
| 77 | + <menuitem id="menu_editTemplate" label="&zotero.__addonRef__.workspace.menu.editTemplate;" command="cmd_editTemplate" /> |
| 78 | + <menuseparator /> |
68 | 79 | <menuitem id="menu_addheading" label="&zotero.__addonRef__.workspace.menu.addheading;" command="cmd_addheading" /> |
69 | 80 | <menuitem id="menu_indent" label="&zotero.__addonRef__.workspace.menu.indent;" command="cmd_indent" key="key_indent" /> |
70 | 81 | <menuitem id="menu_unindent" label="&zotero.__addonRef__.workspace.menu.unindent;" command="cmd_unindent" key="key_unindent" /> |
|
0 commit comments