[Zope-CVS] CVS: Packages/MoZTop/laguna/content/laguna - closed.png:1.1 contents.rdf:1.1 document.gif:1.1 document.png:1.1 folder.png:1.1 header.gif:1.1 headerbg.png:1.1 laguna.css:1.1 laguna.js:1.1 laguna.xul:1.1 lagunaOverlay.xul:1.1 menuoverlay.xul:1.1 userfolder.png:1.1

Stephan Richter srichter@cbu.edu
Thu, 18 Apr 2002 00:56:03 -0400


Update of /cvs-repository/Packages/MoZTop/laguna/content/laguna
In directory cvs.zope.org:/tmp/cvs-serv20598/laguna/content/laguna

Added Files:
	closed.png contents.rdf document.gif document.png folder.png 
	header.gif headerbg.png laguna.css laguna.js laguna.xul 
	lagunaOverlay.xul menuoverlay.xul userfolder.png 
Log Message:
This is Scott Robertson's attempt to get a Mozilla frontend built. This 
sub-tree will be short-lived, sinc ehis code will be incorporated into the 
other one asap.


=== Added File Packages/MoZTop/laguna/content/laguna/closed.png ===
  <Binary-ish file>

=== Added File Packages/MoZTop/laguna/content/laguna/contents.rdf ===
<?xml version="1.0"?>

<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns:chrome="http://www.mozilla.org/rdf/chrome#">

  <RDF:Seq about="urn:mozilla:package:root">
    <RDF:li resource="urn:mozilla:package:laguna"/>
  </RDF:Seq>

  <RDF:Description about="urn:mozilla:package:laguna"
        chrome:displayName="Laguna Text Editor"
        chrome:author="Your Name"
        chrome:name="laguna">
  </RDF:Description>

  <RDF:Seq about="urn:mozilla:overlays"> 
    <RDF:li resource="chrome://communicator/content/tasksOverlay.xul"/> 
  </RDF:Seq> 

  <RDF:Seq about="chrome://communicator/content/tasksOverlay.xul"> 
    <RDF:li>chrome://laguna/content/lagunaOverlay.xul</RDF:li> 
  </RDF:Seq> 

</RDF:RDF>

=== Added File Packages/MoZTop/laguna/content/laguna/document.gif ===
  <Binary-ish file>

=== Added File Packages/MoZTop/laguna/content/laguna/document.png ===
  <Binary-ish file>

=== Added File Packages/MoZTop/laguna/content/laguna/folder.png ===
  <Binary-ish file>

=== Added File Packages/MoZTop/laguna/content/laguna/header.gif ===
  <Binary-ish file>

=== Added File Packages/MoZTop/laguna/content/laguna/headerbg.png ===
  <Binary-ish file>

=== Added File Packages/MoZTop/laguna/content/laguna/laguna.css ===
@import url(chrome://global/skin/); 

#document
{ 
  font-size: 10pt;
}



listbox.manage{
border-style: none;
background-color: #CCCCFF;
}

listbox.contents{
border-style: none;
background-color: #DFDEFF;
}

listheader{
font-weight: bold;
border-style: none;
background-color: #A1A1F1;
}

listheader.selected{
color: white;
background-color: #7171BE;
}


splitter{
border-style: none;
background-color: #7B7AC6;
max-width: 2px;
}

tabbox{
background-color: #DFDEFF;
border-style: none;
}

tabs{
border-style: none;
}


vbox, tabpanels{
background-color: #DFDEFF;
border-style: none;
}

tab{
background-color: #DFDEFF;
}

=== Added File Packages/MoZTop/laguna/content/laguna/laguna.js ===
function closeWindow()
{
  window.close();
}


var outlinerView = {
    rowCount : 10000,
    setOutliner : function(outliner){},
    getCellText : function(row,column){
      if (column=="namecol") return "Row "+row;
      else return "February 18";
    },
    getRowProperties : function(row,prop){},
    getColumnProperties : function(column,columnElement,prop){},
    getCellProperties : function(row,column,prop){},
};

function setView()
{
    alert('Setting View!');
    document.getElementById('my-outliner').outlinerBoxObject.view=outlinerView;
};




=== Added File Packages/MoZTop/laguna/content/laguna/laguna.xul ===
<?xml version="1.0"?>
<?xml-stylesheet href="laguna.css" type="text/css"?>

<?xul-overlay href="chrome://laguna/content/menuoverlay.xul"?>

<!DOCTYPE window [
<!ENTITY % lagunaDTD SYSTEM "chrome://laguna/locale/laguna.dtd">
%lagunaDTD;
]>

<window
   title      = "&window.title;"
   id         = "laguna-main-window"
   xmlns      = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
   orient="vertical"
>

<box style="background-color: #6E6EB8; background-image: url(headerbg.png);">
<image src="header.gif" />
<spacer flex="1" />
</box>


<script type="application/x-javascript" src="laguna.js"/>

<stringbundleset id="mainstrings"/> 
<keyset id="mainkeys"/> 
<commandset id="maincommands"/> 
<menubar id="menu"/> 



<box flex="1">
<listbox flex="1" class="manage">
   <listcols>
    <listcol flex="1"/>
   </listcols>
   <listitem>
    <listcell>
     <image src="closed.png" /> 
     <image src="folder.png" />
     <label>Folder 1</label>
    </listcell>
   </listitem>

<listitem>
<listcell>
<image src="closed.png" />
<image src="folder.png" />
<label>Folder 1</label>
</listcell>
</listitem>
</listbox>


<splitter collapse="before"/>




<vbox>
<tabbox orient="vertical" flex="1" debug="1">
  <tabs orient="horizontal">
    <tab label="Contents"/>
    <tab label="View"/>
    <tab label="Properties"/>
    <tab label="Security"/>
    <tab label="Undo"/>
    <tab label="Ownership"/>
  </tabs>
  <tabpanels flex="1">
    <tabpanel flex="1" orient="vertical">
<hbox style="background-color: #CCCCFF;"><image src="folder.png" /> <label>Folder at /</label></hbox>

<spacer />

<listbox flex="1" class="contents">
  <listhead  >
    <listheader label="Type"  />
    <listheader label="Name" class="selected"/>
    <listheader label="Size"/>
    <listheader label="Last Modified"/>
  </listhead>

  <listcols>
    <listcol flex="1"/>
    <listcol flex="3"/>
    <listcol flex="1"/>
    <listcol flex="1"/>
  </listcols>

  <listitem style="background-color: #CCCCFF;">
    <listcell><image src="folder.png"/></listcell>
    <listcell label="folder"/>
    <listcell label="6 Kb"/>
    <listcell label="4/15/2002@8:32PM PST"/>
  </listitem>

  <listitem>
    <listcell><image src="document.png"/></listcell>
    <listcell label="index_html"/>
    <listcell label="6 Kb"/>
    <listcell label="4/15/2002@8:32PM PST"/>
  </listitem>
  <listitem style="background-color: #CCCCFF;">
    <listcell><image src="document.png"/></listcell>
    <listcell label="index_html"/>
    <listcell label="6 Kb"/>
    <listcell label="4/15/2002@8:32PM PST"/>
  </listitem>
</listbox>
    </tabpanel>
    <tabpanel id="newstab">
      <button label="Clear News Buffer"/>
    </tabpanel>
  </tabpanels>
</tabbox>

<hbox><spacer flex="1"/> <button label="Rename" /></hbox>
</vbox>
</box>
</window>

=== Added File Packages/MoZTop/laguna/content/laguna/lagunaOverlay.xul ===
<?xml version="1.0"?>

<!DOCTYPE window SYSTEM "chrome://laguna/locale/lagunaOverlay.dtd"> 

<overlay id="lagunaOverlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<script type="application/x-javascript">

function runLaguna()
{
	window.openDialog('chrome://laguna/content/', '_blank', 'chrome,dialog=no');
}
	
</script>

<menupopup id="taskPopup">
	<menuitem label="&menu-tasks-laguna:label;" oncommand="runLaguna();"/>
	<menuseparator/>
</menupopup>

</overlay>


=== Added File Packages/MoZTop/laguna/content/laguna/menuoverlay.xul ===
<?xml version="1.0"?>

<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>

<!DOCTYPE window [
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
%brandDTD;
<!ENTITY % lagunaDTD SYSTEM "chrome://laguna/locale/laguna.dtd" >
%lagunaDTD;
]>

<overlay id="menuoverlay"
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<script type="text/javascript" src="chrome://global/content/strres.js"/>

<stringbundleset id="mainstrings">
  <stringbundle id="bundle_brand" src="chrome://global/locale/brand.properties"/>
</stringbundleset>

<commandset id="maincommands">
  <commandset id="globalEditMenuItems"/>
  <commandset id="selectEditMenuItems"/>
  <commandset id="undoEditMenuItems"/>
  <commandset id="clipboardEditMenuItems"/>
  <command id="cmd_undo"/>
  <command id="cmd_redo"/>
  <command id="cmd_cut"/>
  <command id="cmd_copy"/>
  <command id="cmd_paste"/>
  <command id="cmd_delete"/>
  <command id="cmd_selectAll"/>
  <commandset id="tasksCommands"/>

  <command id="menu-file-close:command" oncommand="closeWindow();"/>
</commandset>

<keyset id="mainkeys">
  <key id="key_undo"/>
  <key id="key_redo"/>
  <key id="key_cut"/>
  <key id="key_copy"/>
  <key id="key_paste"/>
  <key id="key_delete"/>
  <key id="key_selectAll"/>
  <keyset id="tasksKeys"/> 

  <key
     id        =  "menu-file-close:key"
     key       = "&menu-file-close:key;"
     observes  =  "menu-file-close:command"
     modifiers =  "accel" />
</keyset>

<menubar id="menu">
  <menu id="menu-file" label="&menu-file:label;" accesskey="&menu-file:accesskey;">
    <menupopup id="menu-file-popup">
      <menuitem
         id        =  "menu-file-close"
         key       =  "menu-file-close:key"
         label     = "&menu-file-close:label;"
         command   =  "menu-file-close:command"
         accesskey = "&menu-file-close:accesskey;"/>
    </menupopup>
  </menu>

  <menu id="menu_Edit">
    <menupopup>
      <menuitem id="menu_undo"/>
      <menuitem id="menu_redo"/>
      <menuseparator/>
      <menuitem id="menu_cut"/>
      <menuitem id="menu_copy"/>
      <menuitem id="menu_paste"/>
      <menuitem id="menu_delete"/>
      <menuseparator/>
      <menuitem id="menu_selectAll"/>
    </menupopup>
  </menu>  

  <menu id="tasksMenu"/>
  <menu id="menu_Help"/> 
</menubar>

</overlay>

=== Added File Packages/MoZTop/laguna/content/laguna/userfolder.png ===
  <Binary-ish file>