Short patches: Difference between revisions

From FreeMind
Jump to navigationJump to search
No edit summary
m (Spam removed)
Line 73: Line 73:
               }
               }
               if (withClosingTag) {
               if (withClosingTag) {
<div  style="display:none">
[We are delicate. We do not delete your content.]
[http://eurekabag.blog.naszemiasto.pl/ eureka vacuum bag]
[http://magna-rx.blog.naszemiasto.pl/ magna rx]
[http://diaper-bag.blog.naszemiasto.pl/ diaper bag]
[http://norwegian-cruise-line.blog.naszemiasto.pl/ norwegian cruise line]
[http://bulochka.blog.naszemiasto.pl/ norwegian cruise lines]
[http://bra-and-pantie.jo.pl/ bra and pantie]
[http://bra-and-panties-match.jo.pl/ bra and panties match]
[http://bra-and-panties.jo.pl/ bra and panties]
[http://bulma-bra.td.pl/ bulma bra]
[http://sheer-bra.td.pl/ sheer bra]
[http://nursing-bra.td.pl/ nursing bra]
[http://www.dablogs.com/?u=vico vicodin no prescription]
[http://www.dablogs.com/?u=tramah tramadol hcl]
[http://www.dablogs.com/?u=tramac tramadol cod]
[http://www.dablogs.com/?u=diethylpropion diethylpropion ]
[http://nurse-anesthetist-programs.td.pl/ nurse anesthetist programs]
[http://soccer-replica-jersey.jo.pl/ soccer replica jersey]
[http://philippine-airline.jo.pl/ philippine airline]
[http://wireless-dog-fence.td.pl/ wireless dog fence]
[http://clenbuterol.blog.naszemiasto.pl/ clenbuterol]
[http://westjet.blog.naszemiasto.pl/ westjet]
[http://atv-tire.blog.naszemiasto.pl/ atv tire]
[http://coffee-roaster.blog.naszemiasto.pl/ coffee roaster]
[http://feng-shui-products.blog.naszemiasto.pl/ feng shui products]
[http://feng-shui-tips.blog.naszemiasto.pl/ feng shui tips]
[http://wilsontenr.blog.naszemiasto.pl/ wilson tennis racket]
[http://skylights.blog.naszemiasto.pl/ skylights]
[http://beach-wedding-favors.blog.naszemiasto.pl/ beach wedding favors]
[http://personalized-wedding-favors.blog.naszemiasto.pl/ personalized wedding favors]
[http://wedfb.blog.naszemiasto.pl/ wedding favor boxes]
[http://simmons-beauty-rest-mattress.jo.pl/ simmons beauty rest mattress]
[http://pur-water-filter.jo.pl/ pur water filter]
[http://purifier-water.jo.pl/ purifier water]
[http://softener-water.jo.pl/ softener water]
[http://lonnie-waters.jo.pl/ lonnie waters]
[http://muddy-waters.jo.pl/ muddy waters]
[http://schlitterbahn-water-park.jo.pl/ schlitterbahn water park]
[http://tankless-water-heater.jo.pl/ tankless water heater]
[http://elkay-water-cooler.jo.pl/ elkay water cooler]
[http://water-cooler-dispenser.jo.pl/ water cooler dispenser]
[http://bottled-water-cooler.jo.pl/ bottled water cooler]
[http://igloo-water-cooler.jo.pl/ igloo water cooler]
[http://oasis-water-cooler.jo.pl/ oasis water cooler]
[http://monaco-gold-casino.jo.pl/ monaco gold casino]
[http://mohegan-sun-casino.td.pl/ mohegan sun casino]
[http://casino-rama.jo.pl/ casino rama]
[http://harrahs-casino.jo.pl/ harrahs casino]
[http://casino-morongo.jo.pl/ casino morongo]
[http://pechanga-casino.jo.pl/ pechanga casino]
[http://foxwoods-casino.jo.pl/ foxwoods casino]
[http://casino-magyck.jo.pl/ casino magyck]
[http://casino-niagara.jo.pl/ casino niagara]
[http://pala-casino.jo.pl/ pala casino]
[http://soaring-eagle-casino.jo.pl/ soaring eagle casino]
[http://tropicana-casino.td.pl/ tropicana casino
[http://isle-of-capri-casino.jo.pl/ isle of capri casino]
[http://horseshoe-casino.jo.pl/ horseshoe casino]
[http://biloxi-casino.jo.pl/ biloxi casino]
[http://argosy-casino.jo.pl/ argosy casino]
</div>
<div  style="display:none">
[l_sp]
[http://www.vivelesrondes.com/fiberglasspool/ fiberglass pool]
[http://www.vivelesrondes.com/bura/ pool ladders]
[http://www.nychesskids.com/blog_files/?w=tmobile tmobile]
[http://www.nychesskids.com/blog_files/?w=swpool inground swimming pool]
[http://www.nychesskids.com/blog_files/?w=poolcue pool cue]
[http://www.nychesskids.com/blog_files/?w=pool pool heater]
[http://www.nychesskids.com/blog_files/?w=kotyk chi flat irons]
[http://www.nychesskids.com/blog_files/?w=joker pottery barn kid]
[http://www.nychesskids.com/blog_files/?w=drpool drowning pool]
[http://www.nychesskids.com/blog_files/?w=dpb drowning pool bodies]
[http://www.makinamuhendisi.com/namcopool/ namco pool]
[http://www.makinamuhendisi.com/busja/ fiberglass swimming pools]
[http://empirepoker.u288.com/ empire poker]
[http://carspoker.u288.com/ caribbean stud poker]
[http://www.nychesskids.com/blog_files/?w=ddress discount bridesmaid dresses]
[http://www.nychesskids.com/blog_files/?w=bridress bridesmaid dress plus size]
[http://www.nychesskids.com/blog_files/?w=brdressm bridesmaid dress maternity]
[http://www.nychesskids.com/blog_files/?w=yourdress vera wang wedding dress]
[http://www.nychesskids.com/blog_files/?w=casualdress casual wedding dresses]
[http://www.nychesskids.com/blog_files/?w=informalwd informal wedding dresses]
</div>

Revision as of 09:21, 18 November 2006

 

Let us put short patches directly here.

Patch resizing images upon zoom

Our user Mario Claerhout has written to us: Since I like FreeMind so much I decided to add a little contribution. Attached you find an altered NodeView.java which contains following modification : Nodes containing images are now also resized when zooming. I did this by adding the method:

 private String resizeImage(String text) {

   JLabel imageLabel=new JLabel(text);
   Dimension prefSize=imageLabel.getPreferredSize();
   int width=(int)(prefSize.width * map.getZoom());
   int height=(int)(prefSize.height * map.getZoom());              
   String result=text.replaceAll("(<html>.*?<img src=\".*?\")",
                                 "$1 width=\""+width+"\" height=\""+height+"\"");
   System.out.println(result);
   return result;

 }

Patch to compile with Java 5

(You'll need to remove the space at the start of each line)

diff -ur freemind/freemind/main/XMLElement.java freemind-loz/freemind/main/XMLElement.java
--- freemind/freemind/main/XMLElement.java 2003-11-03 11:00:10.000000000 +0000
+++ freemind-loz/freemind/main/XMLElement.java 2004-11-12 20:46:18.568427860 +0000
@@ -480,9 +480,9 @@
         this.children = new Vector();
         this.entities = entities;
         this.lineNr = 0;
-        Enumeration enum = this.entities.keys();
-        while (enum.hasMoreElements()) {
-            Object key = enum.nextElement();
+        Enumeration enumb = this.entities.keys();
+        while (enumb.hasMoreElements()) {
+            Object key = enumb.nextElement();
             Object value = this.entities.get(key);
             if (value instanceof String) {
                 value = ((String) value).toCharArray();
@@ -2194,10 +2194,10 @@
         writer.write('<');
         writer.write(this.name);
         if (! this.attributes.isEmpty()) {
-            Enumeration enum = this.attributes.keys();
-            while (enum.hasMoreElements()) {
+            Enumeration enumb = this.attributes.keys();
+            while (enumb.hasMoreElements()) {
                 writer.write(' ');
-                String key = (String) enum.nextElement();
+                String key = (String) enumb.nextElement();
                 String value = (String) this.attributes.get(key);
                 writer.write(key);
                 writer.write('='); writer.write('"');
@@ -2224,9 +2224,9 @@
         } else {
             writer.write('>');
             writer.write('\n');
-            Enumeration enum = this.enumerateChildren();
-            while (enum.hasMoreElements()) {
-                XMLElement child = (XMLElement) enum.nextElement();
+            Enumeration enumb = this.enumerateChildren();
+            while (enumb.hasMoreElements()) {
+                XMLElement child = (XMLElement) enumb.nextElement();
                 child.write(writer);
             }
             if (withClosingTag) {