Author: jflesch
Date: 2008-02-03 14:42:33 +0000 (Sun, 03 Feb 2008)
New Revision: 17503

Added:
   trunk/apps/Thaw/images/min-trust.png
   trunk/apps/Thaw/images/trust.png
   trunk/apps/Thaw/src/thaw/plugins/WebOfTrust.java
Modified:
   trunk/apps/Thaw/src/thaw/gui/IconBox.java
   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/index/IndexTree.java
Log:
Indexbrowser : Change the order of some options in the rightclick menu

Added: trunk/apps/Thaw/images/min-trust.png
===================================================================
(Binary files differ)


Property changes on: trunk/apps/Thaw/images/min-trust.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/apps/Thaw/images/trust.png
===================================================================
(Binary files differ)


Property changes on: trunk/apps/Thaw/images/trust.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Modified: trunk/apps/Thaw/src/thaw/gui/IconBox.java
===================================================================
--- trunk/apps/Thaw/src/thaw/gui/IconBox.java   2008-02-03 00:20:53 UTC (rev 
17502)
+++ trunk/apps/Thaw/src/thaw/gui/IconBox.java   2008-02-03 14:42:33 UTC (rev 
17503)
@@ -175,6 +175,9 @@

        public static ImageIcon miniFrostGmailView;
        public static ImageIcon miniFrostOutlookView;
+       
+       public static ImageIcon trust;
+       public static ImageIcon minTrust;


        /**
@@ -321,6 +324,8 @@
                IconBox.web                 = 
IconBox.loadIcon("images/web.png");
                IconBox.miniFrostGmailView  = 
IconBox.loadIcon("images/miniFrost-view-gmail.png");
                IconBox.miniFrostOutlookView = 
IconBox.loadIcon("images/miniFrost-view-outlook.png");
+               IconBox.trust               = 
IconBox.loadIcon("images/trust.png");
+               IconBox.minTrust            = 
IconBox.loadIcon("images/min-trust.png");
        }

 }

Modified: trunk/apps/Thaw/src/thaw/i18n/source.thaw_fr.properties
===================================================================
--- trunk/apps/Thaw/src/thaw/i18n/source.thaw_fr.properties     2008-02-03 
00:20:53 UTC (rev 17502)
+++ trunk/apps/Thaw/src/thaw/i18n/source.thaw_fr.properties     2008-02-03 
14:42:33 UTC (rev 17503)
@@ -709,3 +709,5 @@
 thaw.plugin.index.treeRebuilder.finished=R?paration de l'arbre finie
 thaw.plugin.index.treeRebuilder.failed=La r?paration de l'arbre a ?chou? :(

+## Web of Trust
+thaw.plugin.wot=Toile de confiance

Modified: trunk/apps/Thaw/src/thaw/i18n/thaw.properties
===================================================================
--- trunk/apps/Thaw/src/thaw/i18n/thaw.properties       2008-02-03 00:20:53 UTC 
(rev 17502)
+++ trunk/apps/Thaw/src/thaw/i18n/thaw.properties       2008-02-03 14:42:33 UTC 
(rev 17503)
@@ -717,3 +717,8 @@
 thaw.plugin.index.treeRebuilder=Index tree rebuilder
 thaw.plugin.index.treeRebuilder.finished=Index tree rebuilding finished
 thaw.plugin.index.treeRebuilder.failed=Index tree rebuilding failed ! :(
+
+## Web of trust
+
+thaw.plugin.wot=Web of Trust
+

Modified: trunk/apps/Thaw/src/thaw/i18n/thaw_fr.properties
===================================================================
--- trunk/apps/Thaw/src/thaw/i18n/thaw_fr.properties    2008-02-03 00:20:53 UTC 
(rev 17502)
+++ trunk/apps/Thaw/src/thaw/i18n/thaw_fr.properties    2008-02-03 14:42:33 UTC 
(rev 17503)
@@ -709,3 +709,5 @@
 thaw.plugin.index.treeRebuilder.finished=R\u00e9paration de l'arbre finie
 thaw.plugin.index.treeRebuilder.failed=La r\u00e9paration de l'arbre a 
\u00e9chou\u00e9 :(

+## Web of Trust
+thaw.plugin.wot=Toile de confiance

Added: trunk/apps/Thaw/src/thaw/plugins/WebOfTrust.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/WebOfTrust.java                            
(rev 0)
+++ trunk/apps/Thaw/src/thaw/plugins/WebOfTrust.java    2008-02-03 14:42:33 UTC 
(rev 17503)
@@ -0,0 +1,32 @@
+package thaw.plugins;
+
+import javax.swing.ImageIcon;
+
+import thaw.core.Core;
+import thaw.core.Plugin;
+import thaw.core.I18n;
+
+public class WebOfTrust implements Plugin {
+       
+       public WebOfTrust() {
+
+       }
+
+       public ImageIcon getIcon() {
+               return thaw.gui.IconBox.trust;
+       }
+
+       public String getNameForUser() {
+               return I18n.getMessage("thaw.plugin.wot");
+       }
+
+       public boolean run(Core core) {
+
+               return false;
+       }
+
+       public void stop() {
+
+       }
+
+}

Modified: trunk/apps/Thaw/src/thaw/plugins/index/IndexTree.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/index/IndexTree.java       2008-02-03 
00:20:53 UTC (rev 17502)
+++ trunk/apps/Thaw/src/thaw/plugins/index/IndexTree.java       2008-02-03 
14:42:33 UTC (rev 17503)
@@ -176,7 +176,21 @@
                indexFolderActions.add(new 
IndexManagementHelper.NodeNameDisplayer(item));

                indexFolderMenu.addSeparator();
+               
+               item = new 
JMenuItem(I18n.getMessage("thaw.plugin.index.addAlreadyExistingIndex"),
+                            IconBox.minIndexReadOnly);
+               indexFolderMenu.add(item);
+               indexFolderActions.add(new 
IndexManagementHelper.IndexReuser(queueManager, indexBrowser, item));

+               item = new 
JMenuItem(I18n.getMessage("thaw.plugin.index.addCategory"),
+                               IconBox.minFolderNew);
+               indexFolderMenu.add(item);
+               indexFolderActions.add(new 
IndexManagementHelper.IndexFolderAdder(indexBrowser, item));
+
+               item = new 
JMenuItem(I18n.getMessage("thaw.plugin.index.createIndex"), 
IconBox.minIndexNew);
+               indexFolderMenu.add(item);
+               indexFolderActions.add(new 
IndexManagementHelper.IndexCreator(queueManager, indexBrowser, item));
+
                item = new 
JMenuItem(I18n.getMessage("thaw.plugin.index.downloadIndexes"),
                                     IconBox.minRefreshAction);
                indexFolderMenu.add(item);
@@ -193,21 +207,7 @@
                item = new 
JMenuItem(I18n.getMessage("thaw.plugin.index.sortAlphabetically"));
                indexFolderMenu.add(item);
                indexFolderActions.add(new 
IndexManagementHelper.IndexFolderReorderer(indexBrowser, item));
-               
-               item = new 
JMenuItem(I18n.getMessage("thaw.plugin.index.addAlreadyExistingIndex"),
-                                    IconBox.minIndexReadOnly);
-               indexFolderMenu.add(item);
-               indexFolderActions.add(new 
IndexManagementHelper.IndexReuser(queueManager, indexBrowser, item));

-               item = new 
JMenuItem(I18n.getMessage("thaw.plugin.index.addCategory"),
-                                    IconBox.minFolderNew);
-               indexFolderMenu.add(item);
-               indexFolderActions.add(new 
IndexManagementHelper.IndexFolderAdder(indexBrowser, item));
-
-               item = new 
JMenuItem(I18n.getMessage("thaw.plugin.index.createIndex"), 
IconBox.minIndexNew);
-               indexFolderMenu.add(item);
-               indexFolderActions.add(new 
IndexManagementHelper.IndexCreator(queueManager, indexBrowser, item));
-
                item = new 
JMenuItem(I18n.getMessage("thaw.plugin.index.rename"));
                indexFolderMenu.add(item);
                indexFolderActions.add(new 
IndexManagementHelper.IndexRenamer(indexBrowser, item));


Reply via email to