Bug 1108557 - Debug log tab needs a findbar. r=aleth
--HG-- extra : amend_source : dfed10bbaa7185bc20ecc00e3a92a01c8ab863ec
This commit is contained in:
Родитель
f71c1d0b98
Коммит
f9c7d5e35d
|
@ -27,6 +27,7 @@
|
|||
</xul:toolbar>
|
||||
<xul:browser anonid="debugLogBrowser" disablehistory="true" type="content"
|
||||
flex="1" src="chrome://instantbird/content/debugLog.html"/>
|
||||
<xul:findbar anonid="findbar"/>
|
||||
</xul:vbox>
|
||||
</content>
|
||||
|
||||
|
@ -37,6 +38,12 @@
|
|||
</getter>
|
||||
</property>
|
||||
|
||||
<property name="findbar" readonly="true">
|
||||
<getter>
|
||||
return document.getAnonymousElementByAttribute(this, "anonid", "findbar");
|
||||
</getter>
|
||||
</property>
|
||||
|
||||
<property name="accountList" readonly="true">
|
||||
<getter>
|
||||
return document.getAnonymousElementByAttribute(this, "anonid", "accountList");
|
||||
|
@ -77,6 +84,7 @@
|
|||
this.accountList.selectedItem = item;
|
||||
}
|
||||
this._accountListInited = true;
|
||||
this.findbar.browser = this.browser;
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
|
|
@ -66,14 +66,17 @@
|
|||
<command id="cmd_textZoomEnlarge" oncommand="if (getBrowser()) FullZoom.enlarge();"/>
|
||||
<command id="cmd_textZoomReset" oncommand="if (getBrowser()) FullZoom.reset();"/>
|
||||
<command id="cmd_find"
|
||||
oncommand="var conv = getTabBrowser().selectedConversation;
|
||||
if (conv) conv.findbar.onFindCommand();"/>
|
||||
oncommand="var panel = getTabBrowser().selectedPanel;
|
||||
if (!panel) return;
|
||||
if (panel.findbar) panel.findbar.onFindCommand();"/>
|
||||
<command id="cmd_findAgain"
|
||||
oncommand="var conv = getTabBrowser().selectedConversation;
|
||||
if (conv) conv.findbar.onFindAgainCommand(true);"/>
|
||||
oncommand="var panel = getTabBrowser().selectedPanel;
|
||||
if (!panel) return;
|
||||
if (panel.findbar) panel.findbar.onFindAgainCommand(true);"/>
|
||||
<command id="cmd_findPrevious"
|
||||
oncommand="var conv = getTabBrowser().selectedConversation;
|
||||
if (conv) conv.findbar.onFindAgainCommand(false);"/>
|
||||
oncommand="var panel = getTabBrowser().selectedPanel;
|
||||
if (!panel) return;
|
||||
if (panel.findbar) panel.findbar.onFindAgainCommand(false);"/>
|
||||
<commandset id="editMenuCommands"/>
|
||||
</commandset>
|
||||
|
||||
|
|
|
@ -440,6 +440,9 @@
|
|||
ensure that it has a parent element in the binding, so the status panel
|
||||
can be attached after it.
|
||||
|
||||
If the panel has a findbar, it should set the findbar property to
|
||||
automatically gain access to keyboard shortcuts.
|
||||
|
||||
Panels can implement the following methods to customize behavior in certain situations:
|
||||
destroy:
|
||||
Called before panel is removed.
|
||||
|
|
Загрузка…
Ссылка в новой задаче