[Zope-CVS] CVS: Packages/Moztop/moztop/content/Menu - connection-wizard.js:1.1 connection-wizard.xul:1.1 ToolBarOverlay.xul:1.10
Paul Everitt
paul@zope.com
Fri, 7 Feb 2003 06:34:39 -0500
Update of /cvs-repository/Packages/Moztop/moztop/content/Menu
In directory cvs.zope.org:/tmp/cvs-serv15100/content/Menu
Modified Files:
ToolBarOverlay.xul
Added Files:
connection-wizard.js connection-wizard.xul
Log Message:
Its broken!
=== Added File Packages/Moztop/moztop/content/Menu/connection-wizard.js ===
/*****************************************************************************
*
* Copyright (c) 2002, 2003 Zope Corporation and Contributors.
* All Rights Reserved.
*
* This software is subject to the provisions of the Zope Public License,
* Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
* WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
* FOR A PARTICULAR PURPOSE.
*
******************************************************************************
Handles that the wizard truely adds the new site.
$Id: connection-wizard.js,v 1.1 2003/02/07 11:34:06 paul Exp $
******************************************************************************/
/* Create a site from the wizard */
function createSite() {
// The sitesds was passed in as an argument
var sitesds = window.arguments[0];
/* Setting up variables */
var newsite_name = document.getElementById("newsite_name").value;
var newsite_url = document.getElementById("newsite_url").value;
var newsite_username = document.getElementById("newsite_username").value;
var newsite_password = document.getElementById("newsite_password").value;
// Now we call addSite in Explorer/Explorer.js
addSite(newsite_name, newsite_url, newsite_username, newsite_password);
}
=== Added File Packages/Moztop/moztop/content/Menu/connection-wizard.xul ===
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
<?xml-stylesheet href="chrome://moztop/skin" type="text/css"?>
<wizard id="add-conn-wizard" title="Create a new Connection to Zope 3"
onwizardfinish="return createSite();"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/x-javascript" src="global.js"/>
<script type="application/x-javascript" src="rdfds.js"/>
<script type="application/x-javascript" src="connection-wizard.js"/>
<script src="chrome://moztop/content/Explorer/Explorer.js"/>
<wizardpage>
<description>
This Wizard will help you to connect to a new site.
</description>
<label value="Site name:"/>
<textbox id="newsite_name" value="localhost"/>
<label value="Site URL:"/>
<textbox id="newsite_url" value="http://localhost:8080/"/>
</wizardpage>
<wizardpage description="Available Users">
<label value="Please select a user:"/>
<menulist id="newsite_username" label="Username">
<menupopup>
<menuitem label="gandalf (Default Zope 3 Manager)" value="gandalf"/>
<menuitem label="ev (Paul Everitt)" value="ev"/>
<menuitem label="srichter (Stephan Richter)" value="srichter"/>
<menuitem label="zope3 (Zope 3 USer)" value="zope3"/>
</menupopup>
</menulist>
<label value="Enter the password:"/>
<textbox id="newsite_password" type="password" value="" />
</wizardpage>
</wizard>
=== Packages/Moztop/moztop/content/Menu/ToolBarOverlay.xul 1.9 => 1.10 ===
--- Packages/Moztop/moztop/content/Menu/ToolBarOverlay.xul:1.9 Fri Jan 17 10:50:49 2003
+++ Packages/Moztop/moztop/content/Menu/ToolBarOverlay.xul Fri Feb 7 06:34:06 2003
@@ -9,10 +9,10 @@
<toolbar id="moztop-toolbar"
style="background:
url('chrome://communicator/skin/toolbar/prtb-bg-line.gif')">
- <button label="Connect"
+ <button label="New Site"
image="chrome://communicator/skin/icons/online.gif"
- onclick="window.open('chrome://moztop/content/connection-wizard.xul',
- 'Connection Wizard', 'chrome');" />
+ onclick="window.open('chrome://moztop/content/Menu/connection-wizard.xul',
+ 'Connection Wizard', 'chrome',sitesds);" />
<button onclick="reloadContentData();" label="Reload Content" />
<button onclick="removeActiveContentTab();"
label="Remove Active Content Tab" />