Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bandwagon/content/ui/settings.xul
diff options
context:
space:
mode:
Diffstat (limited to 'bandwagon/content/ui/settings.xul')
-rw-r--r--bandwagon/content/ui/settings.xul296
1 files changed, 214 insertions, 82 deletions
diff --git a/bandwagon/content/ui/settings.xul b/bandwagon/content/ui/settings.xul
index 90126ed..3985d6b 100644
--- a/bandwagon/content/ui/settings.xul
+++ b/bandwagon/content/ui/settings.xul
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
+
<!-- ***** BEGIN LICENSE BLOCK *****
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
-
@@ -20,7 +21,7 @@
- the Initial Developer. All Rights Reserved.
-
- Contributor(s): David McNamara
- - Brian King
+ - Brian King <brian (at) briks (dot) si>
-
- Alternatively, the contents of this file may be used under the terms of
- either the GNU General Public License Version 2 or later (the "GPL"), or
@@ -37,41 +38,115 @@
- ***** END LICENSE BLOCK ***** -->
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
-<?xml-stylesheet href="chrome://bandwagon/skin/global.css" type="text/css"?>
+<?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css"?>
<?xml-stylesheet href="chrome://bandwagon/skin/settings.css" type="text/css"?>
-<?xml-stylesheet href="chrome://bandwagon/content/ui/bindings/bandwagon.css" type="text/css"?>
<!DOCTYPE prefwindow SYSTEM "chrome://bandwagon/locale/settings.dtd">
<prefwindow id="bandwagon-settings"
- windowtype="Bandwagon:Settings"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title="&window.title;"
ondialogaccept="return Bandwagon.Controller.Settings.doAccept();"
- ondialogcancel="return Bandwagon.Controller.Settings.doCancel();">
-
- <script src="chrome://bandwagon/content/ui/dialog.js"/>
- <script src="chrome://bandwagon/content/ui/settingsController.js"/>
-
- <stringbundleset>
- <stringbundle id="bandwagon-strings" src="chrome://bandwagon/locale/settings.properties"/>
- </stringbundleset>
+ ondialogcancel="return Bandwagon.Controller.Settings.doCancel();"
+ persist="lastSelected screenX screenY">
- <prefpane id="pane1"
+ <prefpane id="paneManage"
+ label="&manage.label;"
flex="1">
<preferences>
<preference id="extensions.bandwagon.updateall.enabled"
name="extensions.bandwagon.updateall.enabled"
type="bool"/>
- <preference id="extensions.bandwagon.feeditemsperpage.enabled"
- name="extensions.bandwagon.feeditemsperpage.enabled"
+ <preference id="extensions.bandwagon.addonsperpage.enabled"
+ name="extensions.bandwagon.addonsperpage.enabled"
type="bool"/>
- <preference id="extensions.bandwagon.feeditemsperpage"
- name="extensions.bandwagon.feeditemsperpage"
- type="int"/>
<preference id="extensions.bandwagon.notifyall.enabled"
name="extensions.bandwagon.notifyall.enabled"
type="bool"/>
+ </preferences>
+
+ <hbox>
+ <vbox>
+ <label id="collections-list-header" crop="end" value="&subscriptions.header;"/>
+ <richlistbox id="collections-list" flex="1"/>
+ </vbox>
+ <vbox flex="1">
+ <!-- <label id="collection-name" crop="end" value=""/> -->
+
+ <!-- Update Interval Settings -->
+ <groupbox>
+ <caption label="&frequency.label;"/>
+ <radiogroup id="updates-group">
+ <radio id="updates-default" label="&default.label;"/>
+ <hbox align="center">
+ <radio id="updates-custom" label="&custom.label;"/>
+ <label id="checkbox-updateinterval-percollection" value="&updatesingle.label;"/>
+ <textbox id="textbox-updateinterval-quantity-percollection"
+ type="number"
+ min="1"
+ size="3"
+ maxlength="3"
+ value=""/>
+ <menulist id="menulist-updateinterval-units-percollection"
+ class=""
+ crop="none">
+ <menupopup>
+ <menuitem label="&minutes.label;" value="1"/>
+ <menuitem label="&hours.label;" value="2"/>
+ <menuitem label="&days.label;" value="3"/>
+ </menupopup>
+ </menulist>
+ </hbox>
+ </radiogroup>
+ </groupbox>
+
+ <!-- Show Notification Settings -->
+ <groupbox>
+ <caption label="&notifications.label;"/>
+ <radiogroup id="notifications-group">
+ <radio id="notifications-default" label="&default.label;"/>
+ <hbox>
+ <radio id="notifications-custom" label="&custom.label;"/>
+ <radiogroup id="checkbox-shownotifications-percollection"
+ orient="horizontal">
+ <radio id="shownotifications-percollection-on" label="&on.label;"/>
+ <radio id="shownotifications-percollection-off" label="&off.label;"/>
+ </radiogroup>
+ </hbox>
+ </radiogroup>
+ </groupbox>
+
+ <!-- Add-ons Per Page Settings -->
+ <groupbox>
+ <caption label="&perpage.label;"/>
+ <radiogroup id="perpage-group">
+ <radio id="perpage-default" label="&default.label;"/>
+ <hbox align="center">
+ <radio id="perpage-custom" label="&custom.label;"/>
+ <label id="label-addonsshow-percollection"> &addonsleadin.label;</label>
+ <textbox id="textbox-addonsperpage-percollection"
+ type="number"
+ size="3"/>
+ <label id="label-addonsperpage-percollection"> &addonsperpage.label;</label>
+ </hbox>
+ </radiogroup>
+ </groupbox>
+ <hbox align="center" pack="end">
+ <button id="remove-button"
+ label="&remove.label;"
+ oncommand="Bandwagon.Controller.Settings.doRemove();"/>
+ </hbox>
+ </vbox>
+ </hbox>
+
+ </prefpane>
+
+ <prefpane id="paneGeneral"
+ label="&general.label;">
+ <preferences>
+ <preference id="extensions.bandwagon.addonsperpage"
+ name="extensions.bandwagon.addonsperpage"
+ type="int"/>
<preference id="extensions.bandwagon.updateall.interval"
name="extensions.bandwagon.updateall.interval"
type="int"/>
@@ -79,73 +154,130 @@
name="extensions.bandwagon.updateall.units"
type="int"/>
</preferences>
+ <groupbox>
+ <caption label="&subscriptions.label;"/>
+ <hbox align="center">
+ <label id="updateinterval-all" value="&updateall.label;"/>
+ <textbox id="textbox-updateinterval-quantity"
+ type="number"
+ min="1"
+ size="3"
+ maxlength="3"
+ value=""
+ onkeypress=""
+ onchange=""
+ preference="extensions.bandwagon.updateall.interval"/>
+ <menulist id="menulist-updateinterval-units" class="" crop="none" preference="extensions.bandwagon.updateallglobal.units">
+ <menupopup>
+ <menuitem label="&minutes.label;" value="1"/>
+ <menuitem label="&hours.label;" value="2"/>
+ <menuitem label="&days.label;" value="3"/>
+ </menupopup>
+ </menulist>
+ </hbox>
+ <hbox align="center">
+ <label id="notify-all" value="&notifyglobal.label;"/>
+ <radiogroup id="notify-all-group" orient="horizontal">
+ <radio id="notify-all-on" label="&on.label;"/>
+ <radio id="notify-all-off" label="&off.label;"/>
+ </radiogroup>
+ </hbox>
+ <hbox align="center">
+ <label id="label-addonsshow"> &addonsleadin.label;</label>
+ <textbox id="textbox-addonsperpage-global"
+ type="number"
+ size="3"
+ preference="extensions.bandwagon.addonsperpage"/>
+ <label id="label-addonsperpage"> &addonsperpage.label;</label>
+ </hbox>
+ </groupbox>
- <hbox flex="1">
- <vbox>
- <richlistbox id="feeds-list" flex="1"/>
- <toolbox class="bandwagon-feeds-toolbox">
- <toolbar pack="start"
- align="center">
- <toolbarbutton id="add-feed-button"
- tooltiptext="&add.label;"
- oncommand="Bandwagon.Controller.Settings.doAdd();"/>
- <toolbarbutton id="remove-feed-button"
- tooltiptext="&remove.label;"
- oncommand="Bandwagon.Controller.Settings.doRemove();"/>
- </toolbar>
- </toolbox>
- </vbox>
- <vbox flex="1">
- <label id="feed-name" crop="end" value=""/>
-
- <!-- Update Interval Settings -->
-
- <hbox align="center">
- <checkbox id="checkbox-updateinterval-perfeed" label="&updatesingle.label;"/>
- <textbox id="textbox-updateinterval-quantity"
- type="number"
- min="1"
- size="3"
- maxlength="3"
- value=""
- onkeypress=""
- onchange=""
- preference="extensions.bandwagon.updateall.interval"
- />
- <menulist id="menulist-updateinterval-units" class="" crop="none" preference="extensions.bandwagon.updateall.units">
- <menupopup>
- <menuitem label="&minutes.label;" value="1"/>
- <menuitem label="&hours.label;" value="2"/>
- <menuitem label="&days.label;" value="3"/>
- </menupopup>
- </menulist>
- </hbox>
- <checkbox id="checkbox-updateinterval-global" class="all-check" label="&applyall.label;"/>
- <separator class="groove"/>
-
- <!-- Show Notification Settings -->
-
- <checkbox id="checkbox-shownotifications-perfeed" label="&notify.label;"/>
- <checkbox id="checkbox-shownotifications-global" class="all-check" label="&applyall.label;"/>
- <separator class="groove"/>
-
- <!-- Add-ons Per Page Settings -->
-
- <hbox align="center">
- <textbox id="textbox-feeditemsperpage-global"
- type="number"
- size="3"
- preference="extensions.bandwagon.feeditemsperpage"/>
- <label id="label-feeditemsperpage"> &feeditemsperpage.label;</label>
- </hbox>
-
- <!-- Auto-publish Settings -->
+ <groupbox>
+ <caption label="&data.label;"/>
+ <hbox align="center" pack="start">
+ <label id="clear-emails-text" value="" />
+ <button id="clear-emails-button"
+ label="&clearemails.label;"
+ oncommand="Bandwagon.Controller.Settings.doClearEmails();"/>
+ </hbox>
+ <hbox align="center" pack="start">
+ <label id="login-status-text" value="" />
+ <button id="login-button"
+ label="&login.label;"
+ oncommand="Bandwagon.Controller.Settings.doLogin();"/>
+ <button id="logout-button"
+ label="&logout.label;"
+ oncommand="Bandwagon.Controller.Settings.doLogout();"
+ collapsed="true"/>
+ </hbox>
+ </groupbox>
+ </prefpane>
- <checkbox id="checkbox-autopublish-perfeed" label="&autopublish.label;"/>
+ <prefpane id="paneAuto"
+ label="&pub.label;">
+ <!-- Auto-publish Settings -->
+ <!--
+ <checkbox id="checkbox-autopublish-percollection" label="&autopublish.label;"/>
+ -->
+ <groupbox>
+ <caption label="&auto.label;"/>
+ <description>&autoleadin.label;</description>
+ <separator class="thin"/>
+ <grid>
+ <columns>
+ <column/>
+ <column/>
+ </columns>
+ <rows>
+ <row align="center">
+ <label value="&name.label;"/>
+ <textbox id="auto-name"/>
+ </row>
+ <row align="center">
+ <spacer/>
+ <checkbox id="auto-list" label="&list.label;"/>
+ </row>
+ </rows>
+ </grid>
+ <separator class="thin"/>
+ <grid>
+ <columns>
+ <column/>
+ <column/>
+ <column/>
+ </columns>
+ <rows>
+ <row align="center">
+ <label value="&types.label;"/>
+ <checkbox id="auto-type-extensions" label="&type.extensions.label;"/>
+ <checkbox id="auto-type-themes" label="&type.themes.label;"/>
+ </row>
+ <row align="center">
+ <spacer/>
+ <checkbox id="auto-type-dicts" label="&type.dicts.label;"/>
+ <checkbox id="auto-type-langpacks" label="&type.langpacks.label;"/>
+ </row>
+ </rows>
+ </grid>
+ </groupbox>
+ <hbox class="bottomBox" pack="center">
+ <groupbox id="auto-groupbox" orient="horizontal">
+ <button id="auto-create-button"
+ label="&createauto.label;"
+ oncommand="Bandwagon.Controller.Settings.doAutoCreate();"/>
+ <button id="auto-delete-button"
+ label="&deleteauto.label;"
+ oncommand="Bandwagon.Controller.Settings.doAutoDelete();"
+ collapsed="true"/>
+ <image id="auto-spinner" src="chrome://bandwagon/skin/images/spinner-small.gif" collapsed="true"/>
+ </groupbox>
+ </hbox>
+ <label id="auto-error" style="color: red;" value=" " collapsed="true"/>
+ </prefpane>
- </vbox>
- </hbox>
+ <stringbundle id="bandwagon-strings" src="chrome://bandwagon/locale/settings.properties"/>
- </prefpane>
+ <script type="application/x-javascript" src="chrome://bandwagon/content/ui/dialog.js"/>
+ <script type="application/x-javascript" src="chrome://bandwagon/content/ui/settingsController.js"/>
</prefwindow>