[Zope-CVS] CVS: Packages/Moztop/moztop/content/Menu - about.html:1.1 credits.html:1.1 license.html:1.1 MenuOverlay.xul:1.3 ToolBarOverlay.xul:1.11 connection-wizard.xul:1.3

Paul Everitt paul@zope.com
Sat, 15 Feb 2003 05:56:46 -0500


Update of /cvs-repository/Packages/Moztop/moztop/content/Menu
In directory cvs.zope.org:/tmp/cvs-serv17862

Modified Files:
	MenuOverlay.xul ToolBarOverlay.xul connection-wizard.xul 
Added Files:
	about.html credits.html license.html 
Log Message:
Moved some html files in here. Overhauled connection wizard, but it 
still needs a lot of work.  For instance, we should ping the server 
to make sure it exists before adding it to the sites database.



=== Added File Packages/Moztop/moztop/content/Menu/about.html ===
<html>
<head>
<title>Welcome to Moztop</title>
<style>
body {
  font-family: sans-serif;
	font-size: 0.9em;
}
</style>
<body>

<h2><a href="#top">What is the Moztop</a></h2>

This project attempts to build a cool IDE in XUL.

<h2>Getting It</h2>

  Early releases are available only by CVS.  This is intentional.
  Moztop isn't ready yet (in polish and in error handling) for
  anything but narrow use.

  You can check it out of the Zope cvs repository using instructions
  available at dev.zope.org.  It is in 'Packages/Moztop'.

  If you don't want to do a CVS checkout, but you still want to look
  at Moztop, you can always try the QuickTime ports we did. :^)

<h2>Feedback</h2>

  Please use the mailing list at
   <a href="http://mail.iuveno-net.de/mailman/listinfo/moztop">http://mail.iuveno-net.de/mailman/listinfo/moztop</a>.

</body>
</html>


=== Added File Packages/Moztop/moztop/content/Menu/credits.html ===
<html>
<head>
<title>Welcome to Moztop</title>
<style>
body {
  font-family: sans-serif;
	font-size: 0.9em;
}
</style>
<body>

<h2>Credits go to:</h2>

<pre>

Paul Everitt for having the great idea of a XUL-based IDE. 

Christian Theune for spending frustrating hours trying to get the
tree to work.  

Stephan Richter for doing some of the initial development and
being Paul's moral support. 

Gus for ...

Jan for ...

Sidnei da Silva for ...

</pre>

</body>
</html>

=== Added File Packages/Moztop/moztop/content/Menu/license.html ===
<html>
<head>
<title>Welcome to Moztop</title>
<style>
body {
  font-family: sans-serif;
	font-size: 0.9em;
}
</style>
<body>

<h2>Zope Public License (ZPL) Version 2.0</h2>

<pre>
This software is Copyright (c) Zope Corporation (tm) and
Contributors. All rights reserved.

This license has been certified as open source. It has also
been designated as GPL compatible by the Free Software
Foundation (FSF).

Redistribution and use in source and binary forms, with or
without modification, are permitted provided that the
following conditions are met:

1. Redistributions in source code must retain the above
   copyright notice, this list of conditions, and the following
   disclaimer.

2. Redistributions in binary form must reproduce the above
   copyright notice, this list of conditions, and the following
   disclaimer in the documentation and/or other materials
   provided with the distribution.

3. The name Zope Corporation (tm) must not be used to
   endorse or promote products derived from this software
   without prior written permission from Zope Corporation.

4. The right to distribute this software or to use it for
   any purpose does not give you the right to use Servicemarks
   (sm) or Trademarks (tm) of Zope Corporation. Use of them is
   covered in a separate agreement (see
   http://www.zope.com/Marks).

5. If any files are modified, you must cause the modified
   files to carry prominent notices stating that you changed
   the files and the date of any change.

Disclaimer

  THIS SOFTWARE IS PROVIDED BY ZOPE CORPORATION ``AS IS''
  AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
  NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
  AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN
  NO EVENT SHALL ZOPE CORPORATION OR ITS CONTRIBUTORS BE
  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
  OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
  DAMAGE.


This software consists of contributions made by Zope
Corporation and many individuals on behalf of Zope
Corporation.  Specific attributions are listed in the
accompanying credits file.
</pre>

</body>
</html>

=== Packages/Moztop/moztop/content/Menu/MenuOverlay.xul 1.2 => 1.3 ===
--- Packages/Moztop/moztop/content/Menu/MenuOverlay.xul:1.2	Thu Jan 16 08:41:08 2003
+++ Packages/Moztop/moztop/content/Menu/MenuOverlay.xul	Sat Feb 15 05:56:45 2003
@@ -18,7 +18,8 @@
             <menuitem label="SQLScript"/>
           </menupopup>
         </menu>
-        <menuitem label="Connect" key="close-key"/>
+        <menuitem label="Connect" key="close-key"
+		  command="sitesmanager.connectSelectedSite();"/>
         <menuitem label="Disconnect" key="quit-key"/>
         <menuseparator/>
 				
@@ -44,6 +45,14 @@
         <menuitem id="history-view" label="History" type="checkbox"/>
       </menupopup>
     </menu>
+
+    <menu id="debug-menu" label="Debug">
+      <menupopup id="debug-popup">
+	<menuitem label="Dump Datasources" 
+		  command="menu-debug-dump:command"/>
+      </menupopup>
+    </menu>
+
     <menu id="edit-menu" label="Help">
       <menupopup id="edit-popup">
         <menuitem label="Index"/>
@@ -57,4 +66,4 @@
     </menu>
   </menubar>
 
-</overlay>
\ No newline at end of file
+</overlay>


=== Packages/Moztop/moztop/content/Menu/ToolBarOverlay.xul 1.10 => 1.11 ===
--- Packages/Moztop/moztop/content/Menu/ToolBarOverlay.xul:1.10	Fri Feb  7 06:34:06 2003
+++ Packages/Moztop/moztop/content/Menu/ToolBarOverlay.xul	Sat Feb 15 05:56:45 2003
@@ -3,20 +3,21 @@
 <overlay id="ToolBarOverlay"
          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
-  <script type="application/x-javascript" 
-          src="chrome://moztop/content/Menu/ToolBar.js"/>
+  <script src="chrome://moztop/content/Menu/ToolBar.js"/>
 
-  <toolbar id="moztop-toolbar"
-      style="background: 
-               url('chrome://communicator/skin/toolbar/prtb-bg-line.gif')">
+  <toolbar id="moztop-toolbar">
     <button label="New Site"
-        image="chrome://communicator/skin/icons/online.gif"
-        onclick="window.open('chrome://moztop/content/Menu/connection-wizard.xul',
-                             'Connection Wizard', 'chrome',sitesds);" />
-    <button onclick="reloadContentData();" label="Reload Content" />
-    <button onclick="removeActiveContentTab();" 
+        oncommand="window.openDialog('chrome://moztop/content/Menu/connection-wizard.xul',
+                             'Connection Wizard', 'chrome',sitesmanager);" />
+    <button oncommand="sitesmanager.deleteResource();" 
+	    label="Delete" tooltiptext="Delete selected resource"/>
+    <button oncommand="sitesmanager.connectSelectedSite();" 
+	    label="Connect" tooltiptext="Connect or reload selected site"/>
+    <button oncommand="removeActiveContentTab();" 
             label="Remove Active Content Tab" />
     <spring flex="100%" />
+    <image src="chrome://moztop/skin/moztop.png" height="50" />
+
   </toolbar>
 
 </overlay>


=== Packages/Moztop/moztop/content/Menu/connection-wizard.xul 1.2 => 1.3 ===
--- Packages/Moztop/moztop/content/Menu/connection-wizard.xul:1.2	Fri Feb  7 10:28:44 2003
+++ Packages/Moztop/moztop/content/Menu/connection-wizard.xul	Sat Feb 15 05:56:45 2003
@@ -7,11 +7,23 @@
   onwizardfinish="return createSite();"
   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
-  <script src="chrome://moztop/content/global.js"/>
-  <script src="chrome://moztop/content/moztop.js"/>
-  <script src="chrome://moztop/content/rdfds.js"/>
-  <script src="connection-wizard.js"/>
-  <script src="chrome://moztop/content/Explorer/Explorer.js"/>
+<script>
+/* Create a site from the wizard */
+function createSite() {
+
+  // The sitesmanager was passed in as an argument
+  var sm = 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
+  sm.addSite(newsite_name, newsite_url, newsite_username, newsite_password);
+}
+</script>
 
   <wizardpage>
     <description>
@@ -37,4 +49,4 @@
     <textbox id="newsite_password" type="password" value="" />
   </wizardpage>
 
-</wizard>
\ No newline at end of file
+</wizard>