Tomas Brabenec avatar Tomas Brabenec committed cb127a0

Komodo 7 compatibility

Comments (0)

Files changed (4)

 content sites sites/content/ xpcnativewrappers=yes
 skin sites classic/1.0 sites/skin/
-overlay chrome://komodo/content/komodo.xul chrome://sites/content/overlay.xul
+overlay chrome://komodo/content/komodo.xul chrome://sites/content/overlay.xul appversion<=6.99
+overlay chrome://komodo/content/komodo.xul chrome://sites/content/overlay-ko7.xul appversion>6.99
     <Description about="urn:mozilla:install-manifest">
         <em:id>{e98dde1f-b8ab-49cc-a634-00d32adc7cc3}</em:id>
         <em:name>Sites</em:name>
-        <em:version>0.1.2</em:version>
+        <em:version>0.2</em:version>
         <em:description>Remote and local file browser</em:description>
         <em:creator>Tomas Brabenec</em:creator>
-        <em:creator>Joker</em:creator>
+        <em:contributor>Joker</em:contributor>
         <em:homepageURL>http://community.activestate.com/node/6894</em:homepageURL>
         <em:type>2</em:type> <!-- type=extension -->
 

sites/content/overlay-ko7.xul

+<?xml version="1.0"?>
+<!DOCTYPE overlay PUBLIC "-//MOZILLA//DTD XUL V1.0//EN" "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+<!-- ***** BEGIN LICENSE BLOCK *****
+   * Version: MPL 1.1/GPL 2.0/LGPL 2.1
+   *
+   * The contents of this file are subject to the Mozilla Public License Version
+   * 1.1 (the "License"); you may not use this file except in compliance with
+   * the License. You may obtain a copy of the License at
+   * http://www.mozilla.org/MPL/
+   *
+   * Software distributed under the License is distributed on an "AS IS" basis,
+   * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+   * for the specific language governing rights and limitations under the
+   * License.
+   *
+   * The Initial Developer of the Original Code
+   * Portions created by the Initial Developer are Copyright (C) 2008
+   * the Initial Developer. All Rights Reserved.
+   *
+   * Tomas Brabenec - http://brabenec.net
+   * Based on code JSTreeDrive originally developed by Joker <deck@joker.exnet.su>
+   *
+   * Alternatively, the contents of this file may be used under the terms of
+   * either the GNU General Public License Version 2 or later (the "GPL"), or
+   * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+   * in which case the provisions of the GPL or the LGPL are applicable instead
+   * of those above. If you wish to allow use of your version of this file only
+   * under the terms of either the GPL or the LGPL, and not to allow others to
+   * use your version of this file under the terms of the MPL, indicate your
+   * decision by deleting the provisions above and replace them with the notice
+   * and other provisions required by the LGPL or the GPL. If you do not delete
+   * the provisions above, a recipient may use your version of this file under
+   * the terms of any one of the MPL, the GPL or the LGPL.
+   *
+   * ***** END LICENSE BLOCK ***** -->
+
+<?xml-stylesheet href="chrome://sites/skin/sites.css"    type="text/css"?>
+
+<overlay id="SitesOverlay"
+         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">
+
+
+        <ko-pane id="workspace_left_area">
+            <browser id="sites_browser"
+                     label="Sites" 
+                     type="ko-widget"
+                     src="chrome://sites/content/sites.xul" />
+        </ko-pane>
+
+</overlay>

sites/content/sites.xul

+<?xml version="1.0"?>
+
+<!-- ***** BEGIN LICENSE BLOCK *****
+ Version: MPL 1.1/GPL 2.0/LGPL 2.1
+ 
+ The contents of this file are subject to the Mozilla Public License
+ Version 1.1 (the "License"); you may not use this file except in
+ compliance with the License. You may obtain a copy of the License at
+ http://www.mozilla.org/MPL/
+ 
+ Software distributed under the License is distributed on an "AS IS"
+ basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+ License for the specific language governing rights and limitations
+ under the License.
+ 
+ The Original Code is Komodo code.
+ 
+ The Initial Developer of the Original Code is ActiveState Software Inc.
+ Portions created by ActiveState Software Inc are Copyright (C) 2000-2010
+ ActiveState Software Inc. All Rights Reserved.
+ 
+ Contributor(s):
+   ActiveState Software Inc
+ 
+ Alternatively, the contents of this file may be used under the terms of
+ either the GNU General Public License Version 2 or later (the "GPL"), or
+ the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ in which case the provisions of the GPL or the LGPL are applicable instead
+ of those above. If you wish to allow use of your version of this file only
+ under the terms of either the GPL or the LGPL, and not to allow others to
+ use your version of this file under the terms of the MPL, indicate your
+ decision by deleting the provisions above and replace them with the notice
+ and other provisions required by the GPL or the LGPL. If you do not delete
+ the provisions above, a recipient may use your version of this file under
+ the terms of any one of the MPL, the GPL or the LGPL.
+ 
+ ***** END LICENSE BLOCK ***** -->
+
+<!DOCTYPE window PUBLIC "-//MOZILLA//DTD XUL V1.0//EN" "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+
+<?xml-stylesheet href="chrome://komodo/skin/global/global.css"       type="text/css"?>
+<?xml-stylesheet href="chrome://komodo/skin/bindings/scrolltabs.css" type="text/css"?>
+<?xml-stylesheet href="chrome://global/skin/filepicker.css"          type="text/css"?>
+<?xml-stylesheet href="chrome://global/skin/global.css"              type="text/css"?>
+<?xml-stylesheet href="chrome://sites/skin/sites.css"                type="text/css"?>
+
+
+<page id="sites-pane" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+
+    <script src="chrome://sites/content/dinamicTree.js"   type="application/x-javascript"/>
+    <script src="chrome://sites/content/imageView.js"     type="application/x-javascript"/>
+    <script src="chrome://sites/content/servers.js"       type="application/x-javascript"/>
+
+    <!--<popupset>-->
+        <menupopup id="sites_edit_Smenu" onpopupshowing="ko.extensions.Sites.on_popupShowing(event)" >
+            <menuitem id="menu_rename_S" label="Rename"       class="menuitem-iconic rename-iconz"   oncommand="ko.extensions.Sites.on_rename('S');"/>
+            <menuitem id="menu_link_S"   label="Make favorite" class="menuitem-iconic link-iconz"     oncommand="ko.extensions.Sites.on_link();"/>
+            <menuitem id="menu_reload_S" label="Reload"       class="menuitem-iconic reload-iconz"   oncommand="ko.extensions.Sites.S.init_List_forView();"/>
+            <menuitem id="menu_delete_S" label="Delete"       class="menuitem-iconic delete-iconz"   oncommand="ko.extensions.Sites.on_delete('S');"/>
+            <menuitem id="menu_create_subdir_S" label="Create subdirectory"       class="menuitem-iconic newfolder-iconz"   oncommand="ko.extensions.Sites.on_mkDir();"/>
+            <menuitem id="menu_create_file_S" label="Create file"       class="menuitem-iconic newfile-iconz"   oncommand="ko.extensions.Sites.on_mkFile();"/>
+        </menupopup>
+    <!--</popupset>        -->
+        <menupopup id="sites_edit_Fmenu">
+            <menuitem id="menu_rename_F" label="Rename" class="menuitem-iconic rename-iconz" oncommand="ko.extensions.Sites.on_rename('F');"/>
+            <menuitem id="menu_delete_F" label="Delete" class="menuitem-iconic delete-iconz" oncommand="ko.extensions.Sites.on_delete('F');"/>
+        </menupopup>    
+    
+    <vbox flex="1" id="sites_main">
+        <hbox align="center" id="sites_button_panel" class="toolbar-box">
+            <toolbarbutton
+                id="sites_refresh_button"
+                tooltiptext="Refresh"
+                buttonstyle="pictures"
+                label="Refresh"
+                class="all-reload-icon"
+                oncommand="ko.extensions.Sites.on_reload();" />
+            <toolbarbutton
+                id="sites_refresh_button"
+                tooltiptext="Create Directory"
+                label="Create Directory"
+                buttonstyle="pictures"
+                class="newfolder-iconz"
+                oncommand="ko.extensions.Sites.on_mkDir();" />
+            <toolbarbutton
+                id="sites_refresh_button"
+                tooltiptext="Create File"
+                label="Create File"
+                buttonstyle="pictures"
+                class="newfile-iconz"
+                oncommand="ko.extensions.Sites.on_mkFile();" />
+
+            <spacer flex="1"/>
+
+          <toolbarbutton
+                id="sites_accounts_refresh_button"
+                tooltiptext="Refresh accounts"
+                label="Refresh accounts"
+                buttonstyle="pictures"
+                class="all-reload-icon"
+                oncommand="ko.extensions.Sites.S.init_List_forView();" />
+
+            <toolbarbutton
+                id="sites_accounts_button"
+                tooltiptext="Accounts"
+                label="Accounts"
+                buttonstyle="pictures"
+                class="server-pref-icon"
+                oncommand="ko.windowManager.getMainWindow().prefs_doGlobalPrefs('serversItem');" />
+        </hbox>
+
+        <tree id="sites_S_tree"
+              flex="1" seltype="single" flags="dont-build-content"
+              onselect="ko.extensions.Sites.on_directorySelect(event);"
+              hidecolumnpicker="true"
+              style="margin: 0px; padding: 0px;">
+            <treecols>
+                <treecol id="tree_col_folder_name"
+                         primary="true" flex="1"
+                         hideheader="true"/>
+            </treecols>
+            <treechildren  flex="1" context="sites_edit_Smenu" />
+        </tree>
+
+        <splitter id="sites_splitter"
+                  collapse="after"
+                  class="grippy_splitter_collapsable"
+                  orient="vertical"
+                  persist="state"
+                  style="margin: 0px; padding: 0px;"><!-- border: none;  -->
+        </splitter>
+
+        <tree id="sites_F_tree"
+              flex="1"
+              seltype="single"
+              onclick="ko.extensions.Sites.on_Open(event);"
+              onkeypress="ko.extensions.Sites.on_Open(event);"
+              style="margin: 0px; padding: 0px;"><!--seltype="multiple"-->
+            <treecols>
+                <treecol id="file_tree_col_name"
+                         label="Files name"
+                         flex="3"
+                         crop="center"
+                         persist="width ordinal hidden sortActive sortDirection"
+                         class="sortDirectionIndicator"
+                         sortActive="true"/>
+                <splitter class="tree-splitter" />
+                <treecol id="file_tree_col_size"
+                         label="Size"
+                         flex="1"
+                         persist="width ordinal hidden sortActive sortDirection"
+                         class="sortDirectionIndicator"/>
+                <splitter class="tree-splitter" />
+                <treecol id="file_tree_col_date"
+                         label="Date"
+                         flex="1"
+                         persist="width ordinal hidden sortActive sortDirection"
+                         class="sortDirectionIndicator"/>
+            </treecols>
+            <treechildren flex="1" context="sites_edit_Fmenu" />
+        </tree>
+    </vbox>
+
+</page>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.