Author: jflesch
Date: 2007-04-11 22:05:54 +0000 (Wed, 11 Apr 2007)
New Revision: 12584

Modified:
   trunk/apps/Thaw/src/thaw/i18n/source.thaw_fr.properties
   trunk/apps/Thaw/src/thaw/i18n/thaw.properties
   trunk/apps/Thaw/src/thaw/i18n/thaw_fr.properties
   trunk/apps/Thaw/src/thaw/plugins/peerMonitor/PeerMonitorPanel.java
Log:
Reduce PeerMonitor panel width

Modified: trunk/apps/Thaw/src/thaw/i18n/source.thaw_fr.properties
===================================================================
--- trunk/apps/Thaw/src/thaw/i18n/source.thaw_fr.properties     2007-04-11 
19:04:30 UTC (rev 12583)
+++ trunk/apps/Thaw/src/thaw/i18n/source.thaw_fr.properties     2007-04-11 
22:05:54 UTC (rev 12584)
@@ -331,7 +331,7 @@
 thaw.plugin.peerMonitor.peerMonitor=Connexion
 thaw.plugin.peerMonitor.yourReference=Votre r?f?rence:
 thaw.plugin.peerMonitor.copyReference=Copier votre r?f?rence vers le 
presse-papier
-thaw.plugin.peerMonitor.nodeStats=Informations sur votre noeud
+thaw.plugin.peerMonitor.nodeStats=Votre noeud
 thaw.plugin.peerMonitor.peerList=Peers:
 thaw.plugin.peerMonitor.nodeInfos=Informations sur votre noeud :
 thaw.plugin.peerMonitor.peerInfos=Informations relatives au peer
@@ -356,8 +356,8 @@
 thaw.plugin.peerMonitor.infos.node.myName=Nom du noeud
 thaw.plugin.peerMonitor.infos.node.runningThreads=Nombre de threads

-thaw.plugin.peerMonitor.infos.nodeMemory=Memoire du noeud
-thaw.plugin.peerMonitor.infos.thawMemory=Memoire de Thaw
+thaw.plugin.peerMonitor.infos.nodeMemory=Mem. du noeud
+thaw.plugin.peerMonitor.infos.thawMemory=Mem. de Thaw
 thaw.plugin.peerMonitor.infos.nodeThreads=Threads (node)
 thaw.plugin.peerMonitor.infos.thawThreads=Threads (Thaw)


Modified: trunk/apps/Thaw/src/thaw/i18n/thaw.properties
===================================================================
--- trunk/apps/Thaw/src/thaw/i18n/thaw.properties       2007-04-11 19:04:30 UTC 
(rev 12583)
+++ trunk/apps/Thaw/src/thaw/i18n/thaw.properties       2007-04-11 22:05:54 UTC 
(rev 12584)
@@ -325,7 +325,7 @@
 thaw.plugin.peerMonitor.peerMonitor=Connection
 thaw.plugin.peerMonitor.yourReference=Your reference:
 thaw.plugin.peerMonitor.copyReference=Copy your reference to the clipboard
-thaw.plugin.peerMonitor.nodeStats=Node informations
+thaw.plugin.peerMonitor.nodeStats=Your node
 thaw.plugin.peerMonitor.peerList=Peers:
 thaw.plugin.peerMonitor.nodeInfos=Node informations:
 thaw.plugin.peerMonitor.peerInfos=Informations relative to peer
@@ -345,8 +345,8 @@
 thaw.plugin.peerMonitor.infos.node.myName=Node name
 thaw.plugin.peerMonitor.infos.node.runningThreads=Running threads

-thaw.plugin.peerMonitor.infos.nodeMemory=Node memory
-thaw.plugin.peerMonitor.infos.thawMemory=Thaw memory
+thaw.plugin.peerMonitor.infos.nodeMemory=Node mem.
+thaw.plugin.peerMonitor.infos.thawMemory=Thaw mem.
 thaw.plugin.peerMonitor.infos.nodeThreads=Node threads
 thaw.plugin.peerMonitor.infos.thawThreads=Thaw threads


Modified: trunk/apps/Thaw/src/thaw/i18n/thaw_fr.properties
===================================================================
--- trunk/apps/Thaw/src/thaw/i18n/thaw_fr.properties    2007-04-11 19:04:30 UTC 
(rev 12583)
+++ trunk/apps/Thaw/src/thaw/i18n/thaw_fr.properties    2007-04-11 22:05:54 UTC 
(rev 12584)
@@ -331,7 +331,7 @@
 thaw.plugin.peerMonitor.peerMonitor=Connexion
 thaw.plugin.peerMonitor.yourReference=Votre r\u00e9f\u00e9rence:
 thaw.plugin.peerMonitor.copyReference=Copier votre r\u00e9f\u00e9rence vers le 
presse-papier
-thaw.plugin.peerMonitor.nodeStats=Informations sur votre noeud
+thaw.plugin.peerMonitor.nodeStats=Votre noeud
 thaw.plugin.peerMonitor.peerList=Peers:
 thaw.plugin.peerMonitor.nodeInfos=Informations sur votre noeud :
 thaw.plugin.peerMonitor.peerInfos=Informations relatives au peer
@@ -356,8 +356,8 @@
 thaw.plugin.peerMonitor.infos.node.myName=Nom du noeud
 thaw.plugin.peerMonitor.infos.node.runningThreads=Nombre de threads

-thaw.plugin.peerMonitor.infos.nodeMemory=Memoire du noeud
-thaw.plugin.peerMonitor.infos.thawMemory=Memoire de Thaw
+thaw.plugin.peerMonitor.infos.nodeMemory=Mem. du noeud
+thaw.plugin.peerMonitor.infos.thawMemory=Mem. de Thaw
 thaw.plugin.peerMonitor.infos.nodeThreads=Threads (node)
 thaw.plugin.peerMonitor.infos.thawThreads=Threads (Thaw)


Modified: trunk/apps/Thaw/src/thaw/plugins/peerMonitor/PeerMonitorPanel.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/peerMonitor/PeerMonitorPanel.java  
2007-04-11 19:04:30 UTC (rev 12583)
+++ trunk/apps/Thaw/src/thaw/plugins/peerMonitor/PeerMonitorPanel.java  
2007-04-11 22:05:54 UTC (rev 12584)
@@ -146,7 +146,7 @@

                nodeThreads = new JLabel("");
                thawThreads = new JLabel("");
-               JPanel threadPanel = new JPanel(new GridLayout(1, 2));
+               JPanel threadPanel = new JPanel(new GridLayout(2, 1));
                threadPanel.add(nodeThreads);
                threadPanel.add(thawThreads);

@@ -237,8 +237,7 @@
                
nodeMemBar.setString(I18n.getMessage("thaw.plugin.peerMonitor.infos.nodeMemory")+
 ": "
                                     + thaw.gui.GUIHelper.getPrintableSize(used)
                                     + " / "
-                                    + thaw.gui.GUIHelper.getPrintableSize(max)
-                                    + " ("+Integer.toString(pourcent)+"%)");
+                                    + 
thaw.gui.GUIHelper.getPrintableSize(max));

                nodeMemBar.setValue(pourcent);

@@ -258,8 +257,7 @@
                
thawMemBar.setString(I18n.getMessage("thaw.plugin.peerMonitor.infos.thawMemory")+
 ": "
                                     + thaw.gui.GUIHelper.getPrintableSize(used)
                                     + " / "
-                                    + thaw.gui.GUIHelper.getPrintableSize(max)
-                                    + " ("+Integer.toString(pourcent)+"%)");
+                                    + 
thaw.gui.GUIHelper.getPrintableSize(max));

                thawMemBar.setValue(pourcent);
        }
@@ -301,8 +299,8 @@
                        if (value instanceof Peer) {
                                String txt = ((Peer)value).toString();

-                               if (txt.length() > 35) {
-                                       txt = txt.substring(0, 35) + "(...)";
+                               if (txt.length() > 25) {
+                                       txt = txt.substring(0, 25) + "(...)";
                                }

                                setText(txt);


Reply via email to