move stylesheets into dedicated directory
authorRichard Fairhurst <richard@systemed.net>
Thu, 27 Jan 2011 21:36:31 +0000 (21:36 +0000)
committerRichard Fairhurst <richard@systemed.net>
Thu, 27 Jan 2011 21:36:31 +0000 (21:36 +0000)
15 files changed:
net/systemeD/halcyon/connection/Trace.as
net/systemeD/potlatch2/VectorSourceDialog.mxml
net/systemeD/potlatch2/collections/Stylesheets.as
net/systemeD/potlatch2/collections/VectorBackgrounds.as
net/systemeD/potlatch2/utils/BikeShopLoader.as
net/systemeD/potlatch2/utils/BugLoader.as
net/systemeD/potlatch2/utils/TrackLoader.as
potlatch2.mxml
resources/stylesheets.xml
resources/stylesheets/bikeshops.css [moved from resources/bikeshops.css with 100% similarity]
resources/stylesheets/bugs.css [moved from resources/bugs.css with 100% similarity]
resources/stylesheets/gpx.css [moved from resources/gpx.css with 100% similarity]
resources/stylesheets/opencyclemap.css [moved from resources/opencyclemap.css with 100% similarity]
resources/stylesheets/potlatch.css [moved from resources/potlatch.css with 100% similarity]
resources/stylesheets/wireframe.css [moved from resources/wireframe.css with 100% similarity]

index 55baa01..5c4402f 100644 (file)
@@ -26,7 +26,7 @@ package net.systemeD.halcyon.connection {
         private var _layer:VectorLayer;
         private var simplify:Boolean = false;
 
-        private static const STYLESHEET:String="gpx.css";
+        private static const STYLESHEET:String="stylesheets/gpx.css";
 
         public function Trace() {
             map = Globals.vars.root;
index ea11ab4..776753a 100644 (file)
 
        private function loadFiles(url:String,type:String,simplify:Boolean):void {
                var names:Array=url.split('/'); var name:String=names[names.length-1];
-               var stylesheet:String="potlatch.css";
-               if (type=='gpx') { stylesheet="gpx.css"; }
+               var stylesheet:String="stylesheets/potlatch.css";
+               if (type=='gpx') { stylesheet="stylesheets/gpx.css"; }
                var vectorlayer:VectorLayer=new VectorLayer(name,map,stylesheet);
                vectorlayer.url=url;
 
index 50c2614..29c5038 100644 (file)
@@ -49,7 +49,7 @@ package net.systemeD.potlatch2.collections {
 
             // pick a stylesheet to be set. It should be the saved one, if it is in the menu
             // or alternatively the first one on the menu,
-            // or finally try 'potlatch.css'
+            // or finally try 'stylesheets/potlatch.css'
                        for each (var ss:Object in collection) {
                                if (ss.name==saved_nameĀ || ss.url==saved_url) {
                                        setStylesheet(ss.name, ss.url);
@@ -63,8 +63,8 @@ package net.systemeD.potlatch2.collections {
                 setStylesheet(s.name, s.url);
               } else {
                 //hit and hope. FIXME should this be an error state?
-                collection.push({ name:'Potlatch', url:'potlatch.css'});
-                setStylesheet('Potlatch','potlatch.css');
+                collection.push({ name:'Potlatch', url:'stylesheets/potlatch.css'});
+                setStylesheet('Potlatch','stylesheets/potlatch.css');
               }
             }
                        FunctionKeyManager.instance().registerListener('Map style',
index 9cf7403..6646e3d 100644 (file)
@@ -47,7 +47,7 @@ package net.systemeD.potlatch2.collections {
                   if (set.url) {
                     if (set.@loaded == "true") {
                       name ||= 'GPX file';
-                      var layer:VectorLayer = new VectorLayer(name, _map, 'gpx.css');
+                      var layer:VectorLayer = new VectorLayer(name, _map, 'stylesheets/gpx.css');
                       _map.addVectorLayer(layer);
                       var gpxImporter:GpxImporter = new GpxImporter(layer, layer.paint, [String(set.url)]);
                     } else {
index 7b396db..89e4d9f 100644 (file)
@@ -26,7 +26,7 @@ package net.systemeD.potlatch2.utils {
         private var bikeShopBaseURL:String;
         private var name:String;
         private var _layer:VectorLayer;
-        private static const STYLESHEET:String="bikeshops.css";
+        private static const STYLESHEET:String="stylesheets/bikeshops.css";
 
         public function BikeShopLoader(map:Map, url:String, name:String) {
             this.map = map;
index 509c84a..3ba731f 100644 (file)
@@ -16,7 +16,7 @@ package net.systemeD.potlatch2.utils {
         private var bugDetailsURL:String;
         private var _layer:VectorLayer;
         private var name:String;
-        private static const STYLESHEET:String="bugs.css";
+        private static const STYLESHEET:String="stylesheets/bugs.css";
 
 
         public function BugLoader(map:Map, url:String, bugApiKey:String, name:String, details:String = ''):void {
index f11dcd3..7dee3cf 100644 (file)
@@ -22,7 +22,7 @@ package net.systemeD.potlatch2.utils {
                private var map:Map;
                private var apiBaseURL:String;
 
-               private static const STYLESHEET:String="gpx.css";
+               private static const STYLESHEET:String="stylesheets/gpx.css";
                
                public function TrackLoader(map:Map, url:String) {
                        this.map=map;
index 44ab22c..81dfce4 100644 (file)
 
                        // Load arbitrary GPX from provided URL
                        if (loaderInfo.parameters['gpx_url']) {
-                               var vectorlayer:VectorLayer=new VectorLayer(name,theMap,"gpx.css");
+                               var vectorlayer:VectorLayer=new VectorLayer(name,theMap,"stylesheets/gpx.css");
                                vectorlayer.url=loaderInfo.parameters['gpx_url'];
                                var gpx:GpxImporter=new GpxImporter(vectorlayer, vectorlayer.paint, [vectorlayer.url], 
                                                                    function(success:Boolean,message:String=null):void {
index c9abed1..18da7c5 100644 (file)
@@ -3,22 +3,22 @@
 <stylesheets>
        <stylesheet>
                <name>Potlatch</name>
-               <url>potlatch.css</url>
+               <url>stylesheets/potlatch.css</url>
        </stylesheet>
        <stylesheet>
                <name>Wireframe</name>
-               <url>wireframe.css</url>
+               <url>stylesheets/wireframe.css</url>
        </stylesheet>
     <stylesheet>
         <name>OpenCycleMap</name>
-        <url>opencyclemap.css</url>
+        <url>stylesheets/opencyclemap.css</url>
     </stylesheet>
     <stylesheet>
         <name>GPS</name>
-        <url>gpx.css</url>
+        <url>stylesheets/gpx.css</url>
     </stylesheet>
     <stylesheet>
         <name>Bugs</name>
-        <url>bugs.css</url>
+        <url>stylesheets/bugs.css</url>
     </stylesheet>
 </stylesheets>