зеркало из https://github.com/mozilla/pjs.git
Phase 3. Patching XUL files to move the menu bar into the toolbox.
This commit is contained in:
Родитель
464ff83329
Коммит
0541afe016
|
@ -269,7 +269,17 @@
|
||||||
<broadcaster id="dialog.start" ready="false"/>
|
<broadcaster id="dialog.start" ready="false"/>
|
||||||
<observes element="dialog.start" attribute="ready" onchange="EditorStartup('html')"/>
|
<observes element="dialog.start" attribute="ready" onchange="EditorStartup('html')"/>
|
||||||
|
|
||||||
<menubar>
|
<broadcaster id="Editor:Document:Dirty" dirty="false"/>
|
||||||
|
|
||||||
|
<broadcaster id="Editor:Style:IsBold" bold="false"/>
|
||||||
|
<broadcaster id="Editor:Style:IsItalic" italic="false"/>
|
||||||
|
<broadcaster id="Editor:Style:IsUnderline" underline="false"/>
|
||||||
|
<broadcaster id="Editor:Paragraph:Format" format=""/>
|
||||||
|
<broadcaster id="Editor:Font:Face" font=""/>
|
||||||
|
<broadcaster id="Editor:Font:Size" size=""/>
|
||||||
|
|
||||||
|
<toolbox id="EditorToolbars">
|
||||||
|
<menubar>
|
||||||
<menu value="&fileMenu.label;">
|
<menu value="&fileMenu.label;">
|
||||||
<menupopup>
|
<menupopup>
|
||||||
<menuitem value="&newCmd.label;" onaction="EditorNew()"/>
|
<menuitem value="&newCmd.label;" onaction="EditorNew()"/>
|
||||||
|
@ -531,18 +541,9 @@
|
||||||
<menuitem value="&aboutCmd.label;" onaction=""/>
|
<menuitem value="&aboutCmd.label;" onaction=""/>
|
||||||
</menupopup>
|
</menupopup>
|
||||||
</menu>
|
</menu>
|
||||||
|
<spring flex="100%"/>
|
||||||
</menubar>
|
</menubar>
|
||||||
|
|
||||||
<broadcaster id="Editor:Document:Dirty" dirty="false"/>
|
|
||||||
|
|
||||||
<broadcaster id="Editor:Style:IsBold" bold="false"/>
|
|
||||||
<broadcaster id="Editor:Style:IsItalic" italic="false"/>
|
|
||||||
<broadcaster id="Editor:Style:IsUnderline" underline="false"/>
|
|
||||||
<broadcaster id="Editor:Paragraph:Format" format=""/>
|
|
||||||
<broadcaster id="Editor:Font:Face" font=""/>
|
|
||||||
<broadcaster id="Editor:Font:Size" size=""/>
|
|
||||||
|
|
||||||
<toolbox id="EditorToolbars">
|
|
||||||
<toolbar id="EditToolbar">
|
<toolbar id="EditToolbar">
|
||||||
<titledbutton src="&newEditorIcon.url;" align="top" value="&newToolbarCmd.label;" class="popup" onclick="EditorNew()"/>
|
<titledbutton src="&newEditorIcon.url;" align="top" value="&newToolbarCmd.label;" class="popup" onclick="EditorNew()"/>
|
||||||
<titledbutton src="&openEditorIcon.url;" align="top" value="&openToolbarCmd.label;" class="popup" onclick="EditorOpen()"/>
|
<titledbutton src="&openEditorIcon.url;" align="top" value="&openToolbarCmd.label;" class="popup" onclick="EditorOpen()"/>
|
||||||
|
|
|
@ -196,7 +196,13 @@
|
||||||
<broadcaster id="dialog.start" ready="false"/>
|
<broadcaster id="dialog.start" ready="false"/>
|
||||||
<observes element="dialog.start" attribute="ready" onchange="EditorStartup('text')"/>
|
<observes element="dialog.start" attribute="ready" onchange="EditorStartup('text')"/>
|
||||||
|
|
||||||
<menubar>
|
|
||||||
|
<broadcaster id="Editor:Style:IsBold" bold="false"/>
|
||||||
|
<broadcaster id="Editor:Style:IsItalic"/>
|
||||||
|
<broadcaster id="Editor:Style:IsUnderline"/>
|
||||||
|
|
||||||
|
<toolbox>
|
||||||
|
<menubar>
|
||||||
<menu value="&fileMenu.label;">
|
<menu value="&fileMenu.label;">
|
||||||
<menupopup>
|
<menupopup>
|
||||||
<menuitem value="&newCmd.label;" onaction="EditorNew()"/>
|
<menuitem value="&newCmd.label;" onaction="EditorNew()"/>
|
||||||
|
@ -333,13 +339,9 @@
|
||||||
<menuitem value="&aboutCmd.label;" onaction=""/>
|
<menuitem value="&aboutCmd.label;" onaction=""/>
|
||||||
</menupopup>
|
</menupopup>
|
||||||
</menu>
|
</menu>
|
||||||
|
<spring flex="100%"/>
|
||||||
</menubar>
|
</menubar>
|
||||||
|
|
||||||
<broadcaster id="Editor:Style:IsBold" bold="false"/>
|
|
||||||
<broadcaster id="Editor:Style:IsItalic"/>
|
|
||||||
<broadcaster id="Editor:Style:IsUnderline"/>
|
|
||||||
|
|
||||||
<toolbox>
|
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<titledbutton id="ParagraphPopup" value="¶graphToolbarMenu.label;" class="popup" align="left" popup="ParagraphMenu" popupanchor="bottomleft"/>
|
<titledbutton id="ParagraphPopup" value="¶graphToolbarMenu.label;" class="popup" align="left" popup="ParagraphMenu" popupanchor="bottomleft"/>
|
||||||
<titledbutton id="FontFacePopup" value="&fontToolbarMenu.label;" class="popup" align="left" popup="FontFaceMenu" popupanchor="bottomleft"/>
|
<titledbutton id="FontFacePopup" value="&fontToolbarMenu.label;" class="popup" align="left" popup="FontFaceMenu" popupanchor="bottomleft"/>
|
||||||
|
|
|
@ -196,7 +196,13 @@
|
||||||
<broadcaster id="dialog.start" ready="false"/>
|
<broadcaster id="dialog.start" ready="false"/>
|
||||||
<observes element="dialog.start" attribute="ready" onchange="EditorStartup('text')"/>
|
<observes element="dialog.start" attribute="ready" onchange="EditorStartup('text')"/>
|
||||||
|
|
||||||
<menubar>
|
|
||||||
|
<broadcaster id="Editor:Style:IsBold" bold="false"/>
|
||||||
|
<broadcaster id="Editor:Style:IsItalic"/>
|
||||||
|
<broadcaster id="Editor:Style:IsUnderline"/>
|
||||||
|
|
||||||
|
<toolbox>
|
||||||
|
<menubar>
|
||||||
<menu value="&fileMenu.label;">
|
<menu value="&fileMenu.label;">
|
||||||
<menupopup>
|
<menupopup>
|
||||||
<menuitem value="&newCmd.label;" onaction="EditorNew()"/>
|
<menuitem value="&newCmd.label;" onaction="EditorNew()"/>
|
||||||
|
@ -333,13 +339,9 @@
|
||||||
<menuitem value="&aboutCmd.label;" onaction=""/>
|
<menuitem value="&aboutCmd.label;" onaction=""/>
|
||||||
</menupopup>
|
</menupopup>
|
||||||
</menu>
|
</menu>
|
||||||
|
<spring flex="100%"/>
|
||||||
</menubar>
|
</menubar>
|
||||||
|
|
||||||
<broadcaster id="Editor:Style:IsBold" bold="false"/>
|
|
||||||
<broadcaster id="Editor:Style:IsItalic"/>
|
|
||||||
<broadcaster id="Editor:Style:IsUnderline"/>
|
|
||||||
|
|
||||||
<toolbox>
|
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<titledbutton id="ParagraphPopup" value="¶graphToolbarMenu.label;" class="popup" align="left" popup="ParagraphMenu" popupanchor="bottomleft"/>
|
<titledbutton id="ParagraphPopup" value="¶graphToolbarMenu.label;" class="popup" align="left" popup="ParagraphMenu" popupanchor="bottomleft"/>
|
||||||
<titledbutton id="FontFacePopup" value="&fontToolbarMenu.label;" class="popup" align="left" popup="FontFaceMenu" popupanchor="bottomleft"/>
|
<titledbutton id="FontFacePopup" value="&fontToolbarMenu.label;" class="popup" align="left" popup="FontFaceMenu" popupanchor="bottomleft"/>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче