summaryrefslogtreecommitdiffstats
path: root/content/manager/accounts.xhtml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--content/manager/accounts.xhtml119
1 files changed, 119 insertions, 0 deletions
diff --git a/content/manager/accounts.xhtml b/content/manager/accounts.xhtml
new file mode 100644
index 0000000..663c835
--- /dev/null
+++ b/content/manager/accounts.xhtml
@@ -0,0 +1,119 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
+<?xml-stylesheet href="chrome://tbsync/content/manager/manager.css" type="text/css"?>
+
+<window
+ xmlns:html="http://www.w3.org/1999/xhtml"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ onload="tbSyncAccounts.onload();"
+ onunload="tbSyncAccounts.onunload();"
+ title="TbSync Account Settings" >
+
+ <popupset>
+ <menupopup id="tbsync.accountmanger.ContextMenu" onpopupshowing="tbSyncAccounts.updateDropdown('contextMenu');">
+ <menuitem id="contextMenuRetryConnectAccount"
+ class="menuitem-iconic"
+ image="chrome://tbsync/content/skin/connect16.png"
+ label="__TBSYNCMSG_manager.RetryConnectAccount__"
+ oncommand="tbSyncAccounts.synchronizeAccount();"/>
+ <menuitem id="contextMenuSyncAccount"
+ class="menuitem-iconic"
+ image="chrome://tbsync/content/skin/sync16.png"
+ label="__TBSYNCMSG_manager.SynchronizeAccount__"
+ oncommand="tbSyncAccounts.synchronizeAccount();"/>
+ <menuitem id="contextMenuEnableAccount"
+ class="menuitem-iconic"
+ image="chrome://tbsync/content/skin/connect16.png"
+ label="__TBSYNCMSG_manager.EnableAccount__"
+ oncommand="tbSyncAccounts.toggleEnableState();"/>
+ <menuitem id="contextMenuDisableAccount"
+ class="menuitem-iconic"
+ image="chrome://tbsync/content/skin/disabled16.png"
+ label="__TBSYNCMSG_manager.DisableAccount__"
+ oncommand="tbSyncAccounts.toggleEnableState();"/>
+ <menuitem id="contextMenuDeleteAccount"
+ class="menuitem-iconic"
+ image="chrome://tbsync/content/skin/del16.png"
+ label="__TBSYNCMSG_manager.DeleteAccount__"
+ oncommand="tbSyncAccounts.deleteAccount();"/>
+ </menupopup>
+ </popupset>
+
+ <hbox flex="1">
+ <vbox width="200">
+ <richlistbox
+ id="tbSyncAccounts.accounts"
+ flex="1"
+ style="margin: 0 1px; width: 200px;"
+ seltype="single"
+ context="tbsync.accountmanger.ContextMenu"
+ onkeypress="if (event.keyCode == 46) {tbSyncAccounts.deleteAccount();}"
+ onselect="tbSyncAccounts.loadSelectedAccount();">
+ <listheader style="border-bottom: 1px solid lightgrey;">
+ <treecol style="font-weight:bold;" label="" width="26" flex="0" />
+ <treecol style="font-weight:bold;" label="__TBSYNCMSG_manager.accounts__" flex="1" />
+ <treecol style="font-weight:bold;text-align:right;" label="__TBSYNCMSG_manager.status__" flex="0" />
+ </listheader>
+ </richlistbox>
+ <hbox style="margin:1ex 0 0 0">
+ <vbox style="margin:0" flex="1">
+ <button
+ id="tbSyncAccounts.btnAccountActions"
+ label="__TBSYNCMSG_manager.AccountActions__"
+ style="margin:0"
+ type="menu">
+ <menupopup id="accountActionsDropdown" onpopupshowing="tbSyncAccounts.updateDropdown('accountActions');">
+ <menu
+ class="menu-iconic"
+ image="chrome://tbsync/content/skin/add16.png"
+ label="__TBSYNCMSG_manager.AddAccount__">
+ <menupopup id="accountActionsAddAccount" />
+ </menu>
+ <menuitem id="accountActionsSyncAllAccounts"
+ class="menuitem-iconic"
+ image="chrome://tbsync/content/skin/sync16.png"
+ label="__TBSYNCMSG_manager.SyncAll__"
+ oncommand="TbSync.core.syncAllAccounts();"/>
+ <menuitem id="accountActionsShowEventLog"
+ class="menuitem-iconic"
+ image="chrome://tbsync/content/skin/warning16.png"
+ label="__TBSYNCMSG_manager.ShowEventLog__"
+ oncommand="TbSync.eventlog.open()"/>
+ <menuseparator id="accountActionsSeparator"/>
+ <menuitem id="accountActionsDeleteAccount"
+ class="menuitem-iconic"
+ image="chrome://tbsync/content/skin/del16.png"
+ label="__TBSYNCMSG_manager.DeleteAccount__"
+ oncommand="tbSyncAccounts.deleteAccount();"/>
+ <menuitem id="accountActionsDisableAccount"
+ class="menuitem-iconic"
+ image="chrome://tbsync/content/skin/disabled16.png"
+ label="__TBSYNCMSG_manager.DisableAccount__"
+ oncommand="tbSyncAccounts.toggleEnableState();"/>
+ <menuitem id="accountActionsEnableAccount"
+ class="menuitem-iconic"
+ image="chrome://tbsync/content/skin/connect16.png"
+ label="__TBSYNCMSG_manager.EnableAccount__"
+ oncommand="tbSyncAccounts.toggleEnableState();"/>
+ <menuitem id="accountActionsSyncAccount"
+ class="menuitem-iconic"
+ image="chrome://tbsync/content/skin/sync16.png"
+ label="__TBSYNCMSG_manager.SynchronizeAccount__"
+ oncommand="tbSyncAccounts.synchronizeAccount();"/>
+ <menuitem id="accountActionsRetryConnectAccount"
+ class="menuitem-iconic"
+ image="chrome://tbsync/content/skin/connect16.png"
+ label="__TBSYNCMSG_manager.RetryConnectAccount__"
+ oncommand="tbSyncAccounts.synchronizeAccount();"/>
+ </menupopup>
+ </button>
+ </vbox>
+ </hbox>
+ </vbox>
+ <browser id="tbSyncAccounts.contentFrame" type="chrome" src="" disablehistory="true" flex="1" style="margin-left:12px;"/>
+ </hbox>
+
+ <script type="text/javascript" src="chrome://tbsync/content/manager/accounts.js" />
+ <script type="text/javascript" src="chrome://tbsync/content/scripts/locales.js" />
+</window>