aboutsummaryrefslogtreecommitdiff
path: root/chrome/content/ui
diff options
context:
space:
mode:
authorEinar Egilsson2009-10-12 10:53:53 +0000
committerEinar Egilsson2009-10-12 10:53:53 +0000
commit0065dc23b00c5039ec3036ff895b9a67341c05c0 (patch)
tree63dbf7a568dc88604a9b7d6b154879027df2d12a /chrome/content/ui
parentec3841397d32bf4d344209a305fefdee3441b101 (diff)
Naming changes and final fix to up/down buttons
git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@265 119bf307-c92d-0410-89bd-8f53e6181181
Diffstat (limited to 'chrome/content/ui')
-rw-r--r--chrome/content/ui/settings.xul43
1 files changed, 25 insertions, 18 deletions
diff --git a/chrome/content/ui/settings.xul b/chrome/content/ui/settings.xul
index 641df8c..7004d48 100644
--- a/chrome/content/ui/settings.xul
+++ b/chrome/content/ui/settings.xul
@@ -6,8 +6,8 @@
<!DOCTYPE dialog SYSTEM "chrome://redirector/locale/settings.xul.dtd">
<window title="&window.title;"
orient="vertical"
- onload="RedirectList.onLoad();"
- onunload="RedirectList.onUnload();"
+ onload="Settings.onLoad();"
+ onunload="Settings.onUnload();"
buttons="accept"
width="650px"
height="500px"
@@ -31,8 +31,8 @@
<tabpanels flex="1">
<tabpanel flex="1">
<vbox flex="1">
- <richlistbox seltype="single" id="lstRedirects" flex="1" ondblclick="RedirectList.editRedirect();" onselect="RedirectList.selectionChange();">
- <richlistitem class="redirectListItem" selected="false">
+ <richlistbox seltype="single" id="lstRedirects" flex="1" ondblclick="Settings.editRedirect();" onselect="Settings.selectionChange();">
+ <richlistitem class="SettingsItem" selected="false">
<grid>
<cols />
<rows class="redirectRows">
@@ -57,11 +57,11 @@
</richlistitem>
</richlistbox>
<hbox>
- <button id="btnAdd" oncommand="RedirectList.addRedirect();" accesskey="&btnAdd.accesskey;" label="&btnAdd.label;" tooltiptext="&btnAdd.tooltip;" disabled="false" />
- <button id="btnEdit" oncommand="RedirectList.editRedirect();" accesskey="&btnEdit.accesskey;" label="&btnEdit.label;" tooltiptext="&btnEdit.tooltip;" disabled="true" />
- <button id="btnDelete" oncommand="RedirectList.deleteRedirect();" accesskey="&btnDelete.accesskey;" label="&btnDelete.label;" tooltiptext="&btnDelete.tooltip;" disabled="true" />
- <button id="btnUp" oncommand="RedirectList.moveUp();" tooltiptext="&btnUp.tooltip;" disabled="true" />
- <button id="btnDown" oncommand="RedirectList.moveDown();" tooltiptext="&btnDown.tooltip;" disabled="true" />
+ <button id="btnAdd" oncommand="Settings.addRedirect();" accesskey="&btnAdd.accesskey;" label="&btnAdd.label;" tooltiptext="&btnAdd.tooltip;" disabled="false" />
+ <button id="btnEdit" oncommand="Settings.editRedirect();" accesskey="&btnEdit.accesskey;" label="&btnEdit.label;" tooltiptext="&btnEdit.tooltip;" disabled="true" />
+ <button id="btnDelete" oncommand="Settings.deleteRedirect();" accesskey="&btnDelete.accesskey;" label="&btnDelete.label;" tooltiptext="&btnDelete.tooltip;" disabled="true" />
+ <button id="btnUp" oncommand="Settings.moveUp();" tooltiptext="&btnUp.tooltip;" disabled="true" />
+ <button id="btnDown" oncommand="Settings.moveDown();" tooltiptext="&btnDown.tooltip;" disabled="true" />
</hbox>
</vbox>
</tabpanel>
@@ -70,22 +70,22 @@
<groupbox>
<caption label="&grpGeneralPreferences.label;" />
<hbox>
- <checkbox id="chkEnableRedirector" label="&chkEnableRedirector.label;" oncommand="RedirectList.preferenceChange(event);" accesskey="&chkEnableRedirector.accesskey;" preference="enabled" />
+ <checkbox id="chkEnableRedirector" label="&chkEnableRedirector.label;" oncommand="Settings.preferenceChange(event);" accesskey="&chkEnableRedirector.accesskey;" preference="enabled" />
<spacer flex="1" />
</hbox>
<hbox>
- <checkbox id="chkShowStatusBarIcon" label="&chkShowStatusBarIcon.label;" oncommand="RedirectList.preferenceChange(event);" accesskey="&chkShowStatusBarIcon.accesskey;" preference="showStatusBarIcon" />
+ <checkbox id="chkShowStatusBarIcon" label="&chkShowStatusBarIcon.label;" oncommand="Settings.preferenceChange(event);" accesskey="&chkShowStatusBarIcon.accesskey;" preference="showStatusBarIcon" />
<spacer flex="1" />
</hbox>
<hbox>
- <checkbox id="chkShowContextMenu" label="&chkShowContextMenu.label;" oncommand="RedirectList.preferenceChange(event);" accesskey="&chkShowContextMenu.accesskey;" preference="showContextMenu" />
+ <checkbox id="chkShowContextMenu" label="&chkShowContextMenu.label;" oncommand="Settings.preferenceChange(event);" accesskey="&chkShowContextMenu.accesskey;" preference="showContextMenu" />
<spacer flex="1" />
</hbox>
</groupbox>
<groupbox>
<caption label="&grpDebuggingPreferences.label;" />
<hbox>
- <checkbox id="chkEnableDebugOutput" label="&chkEnableDebugOutput.label;" oncommand="RedirectList.preferenceChange(event);" accesskey="&chkEnableDebugOutput.accesskey;" preference="debugEnabled" />
+ <checkbox id="chkEnableDebugOutput" label="&chkEnableDebugOutput.label;" oncommand="Settings.preferenceChange(event);" accesskey="&chkEnableDebugOutput.accesskey;" preference="debugEnabled" />
<spacer flex="1" />
</hbox>
</groupbox>
@@ -93,11 +93,18 @@
</vbox>
</tabpanel>
<tabpanel>
- <vbox>
- <button id="btnImport" accesskey="&btnImport.accesskey;" onclick="RedirectList.import();" label="&btnImport.label;"/>
- <button id="btnExport" accesskey="&btnExport.accesskey;" onclick="RedirectList.export();" label="&btnExport.label;"/>
- <spacer flex="1" />
- </vbox>
+ <groupbox flex="1">
+ <caption label="&grpImportExportDescription.label;" />
+ <vbox>
+ <hbox align="middle">
+ <button id="btnImport" accesskey="&btnImport.accesskey;" onclick="Settings.import();" label="&btnImport.label;"/>
+ <label value="Import redirects from a .rdx file" />
+ </hbox>
+
+ <button id="btnExport" accesskey="&btnExport.accesskey;" onclick="Settings.export();" label="&btnExport.label;"/>
+ <spacer flex="1" />
+ </vbox>
+ </groupbox>
</tabpanel>
<tabpanel>
<browser type="content" src="chrome://redirector/content/ui/help.html" flex="1" />