aboutsummaryrefslogtreecommitdiffstats
path: root/src/chrome/content/dialogs/manager.xul
diff options
context:
space:
mode:
authorjmccrohan <jmccrohan@gmail.com>2011-04-06 15:29:05 +0100
committerjmccrohan <jmccrohan@gmail.com>2011-04-06 15:29:05 +0100
commit67810a8a0b08fc8697ee8fc8843af3757c12a421 (patch)
treeb9117ba19c4eff31666aa76010a69a9950623457 /src/chrome/content/dialogs/manager.xul
parentf5d92fb14f7bfc5105700e60fb6fc35fb4e31401 (diff)
downloadMultiproxy-Switch-67810a8a0b08fc8697ee8fc8843af3757c12a421.tar.gz
Initial Commit
Diffstat (limited to '')
-rw-r--r--src/chrome/content/dialogs/manager.xul36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/chrome/content/dialogs/manager.xul b/src/chrome/content/dialogs/manager.xul
new file mode 100644
index 0000000..3cd0cdd
--- /dev/null
+++ b/src/chrome/content/dialogs/manager.xul
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
+
+<!DOCTYPE dialog SYSTEM "chrome://mproxy/locale/locale.dtd">
+
+<dialog buttons="accept"
+ id="mproxyCookieDialog"
+ ondialogaccept="mproxy_managerClose(); mproxy_openerFocus(); return true;"
+ ondialogcancel="mproxy_openerFocus(); return true;"
+ onload="mproxy_initProxy();"
+ title="&common.manage.label;" persist="height, width"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+
+ <script type="application/x-javascript" src="chrome://mproxy/content/globals.js"></script>
+ <script type="application/x-javascript" src="chrome://mproxy/content/datasource.js"></script>
+ <script type="application/x-javascript" src="chrome://mproxy/content/proxy.js"></script>
+ <script>
+ <![CDATA[
+ function mproxy_managerClose(){
+ try{
+ var oPrefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);
+ oPrefs.setIntPref("mproxy.proxy.rdf.lastupdate", (new Date()).getTime());
+ } catch(e){ alert(e); }
+ }
+ ]]>
+ </script>
+
+ <hbox align="top" flex="1" style="overflow: auto;">
+ <listbox id="manage-proxy-list" flex="2" rows="10"></listbox>
+ <vbox>
+ <button id="new-button" label=" &common.add.label;" oncommand="mproxy_editProxyDialog(true)" image="chrome://mproxy/content/icons/new.png" />
+ <button id="edit-button" label=" &common.edit.label;" oncommand="mproxy_editProxyDialog(false)" image="chrome://mproxy/content/icons/pencil.png" />
+ <button id="remove-button" label=" &common.remove.label;" oncommand="mproxy_removeProxy(false)" image="chrome://mproxy/content/icons/cross.png" />
+ </vbox>
+ </hbox>
+</dialog> \ No newline at end of file