Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
-
3985d911
by tchemit at 2019-06-08T16:38:34Z
10 changed files:
- client-core/src/main/java/fr/ird/observe/client/ui/actions/main/menu/help/ShowAboutAction.java
- + client-core/src/main/resources/icons/logo_cro.jpg
- + client-core/src/main/resources/icons/logo_feamp.png
- client-core/src/main/resources/icons/logo_ird.png
- + client-core/src/main/resources/icons/logo_obs7.png
- + client-core/src/main/resources/icons/logo_sfa.jpg
- observe-i18n/src/main/i18n/templates/about_en_GB.ftl
- observe-i18n/src/main/i18n/templates/about_fr_FR.ftl
- src/site/resources/img/logo_ird.png
- src/site/site_fr.xml
Changes:
| ... | ... | @@ -34,14 +34,19 @@ import org.nuiton.jaxx.widgets.about.AboutUI; |
| 34 | 34 |
import org.nuiton.jaxx.widgets.about.AboutUIBuilder;
|
| 35 | 35 |
import org.nuiton.util.Resource;
|
| 36 | 36 |
|
| 37 |
+import javax.swing.ImageIcon;
|
|
| 37 | 38 |
import javax.swing.JLabel;
|
| 38 | 39 |
import javax.swing.JPanel;
|
| 39 | 40 |
import java.awt.BorderLayout;
|
| 41 |
+import java.awt.Dimension;
|
|
| 42 |
+import java.awt.GridLayout;
|
|
| 43 |
+import java.awt.Image;
|
|
| 40 | 44 |
import java.awt.event.ActionEvent;
|
| 41 | 45 |
import java.io.IOException;
|
| 42 | 46 |
import java.io.InputStreamReader;
|
| 43 | 47 |
import java.io.Reader;
|
| 44 | 48 |
import java.nio.charset.StandardCharsets;
|
| 49 |
+import java.util.Objects;
|
|
| 45 | 50 |
|
| 46 | 51 |
import static io.ultreia.java4all.i18n.I18n.t;
|
| 47 | 52 |
|
| ... | ... | @@ -70,7 +75,7 @@ public class ShowAboutAction extends MenuActionSupport { |
| 70 | 75 |
|
| 71 | 76 |
String changelog = null;
|
| 72 | 77 |
try {
|
| 73 |
- try (Reader resource = new InputStreamReader(getClass().getClassLoader().getResourceAsStream("META-INF/" + name + "-CHANGELOG.md"), StandardCharsets.UTF_8)) {
|
|
| 78 |
+ try (Reader resource = new InputStreamReader(Objects.requireNonNull(getClass().getClassLoader().getResourceAsStream("META-INF/" + name + "-CHANGELOG.md")), StandardCharsets.UTF_8)) {
|
|
| 74 | 79 |
Node node = Parser.builder().build().parseReader(resource);
|
| 75 | 80 |
changelog = HtmlRenderer.builder().build().render(node);
|
| 76 | 81 |
}
|
| ... | ... | @@ -95,11 +100,29 @@ public class ShowAboutAction extends MenuActionSupport { |
| 95 | 100 |
// tweak top panel
|
| 96 | 101 |
JPanel topPanel = about.getTopPanel();
|
| 97 | 102 |
topPanel.removeAll();
|
| 103 |
+ JPanel topPanel2 = new JPanel();
|
|
| 104 |
+ JPanel topPanel3 = new JPanel();
|
|
| 98 | 105 |
topPanel.setLayout(new BorderLayout());
|
| 99 |
- topPanel.add(new JLabel(Resource.getIcon("/icons/logo.png")), BorderLayout.WEST);
|
|
| 100 |
- topPanel.add(new JLabel(Resource.getIcon("/icons/logo_ird.png")), BorderLayout.EAST);
|
|
| 106 |
+ topPanel2.setLayout(new GridLayout(1,0));
|
|
| 107 |
+ topPanel3.setLayout(new GridLayout(1,0));
|
|
| 108 |
+ topPanel.add(topPanel2, BorderLayout.CENTER);
|
|
| 109 |
+ topPanel.add(topPanel3, BorderLayout.SOUTH);
|
|
| 110 |
+ |
|
| 111 |
+ int width = (int) (about.getOwner().getWidth() * 0.9);
|
|
| 112 |
+ int height = (int) (about.getOwner().getHeight() * 0.9)/6;
|
|
| 113 |
+ |
|
| 114 |
+ topPanel2.add(new JLabel(Resource.getIcon("/icons/logo_obs7.png")));
|
|
| 115 |
+ topPanel2.add(new JLabel(Resource.getIcon("/icons/logo_ird.png")));
|
|
| 116 |
+ |
|
| 117 |
+ topPanel3.add(new JLabel(getImage("/icons/logo_sfa.jpg", width/4, height)));
|
|
| 118 |
+ topPanel3.add(new JLabel(getImage("/icons/logo_cro.jpg", width/4, height)));
|
|
| 119 |
+ topPanel3.add(new JLabel(getImage("/icons/logo_feamp.png", width/4, height)));
|
|
| 101 | 120 |
|
| 102 | 121 |
about.display();
|
| 103 | 122 |
|
| 104 | 123 |
}
|
| 124 |
+ |
|
| 125 |
+ private ImageIcon getImage(String image, int width, int height) {
|
|
| 126 |
+ return new ImageIcon(Resource.getIcon(image).getImage().getScaledInstance(width, height, Image.SCALE_DEFAULT));
|
|
| 127 |
+ }
|
|
| 105 | 128 |
}
|
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
| ... | ... | @@ -22,34 +22,36 @@ |
| 22 | 22 |
<html>
|
| 23 | 23 |
<body>
|
| 24 | 24 |
<h3>ObServe</h3>
|
| 25 |
-<a href="http://www.ird.fr/informatique-scientifique/projets/observe/">Système d'Information,
|
|
| 26 |
- d'Observation et de Suivi des pêches thonières tropicales de surface.</a>
|
|
| 25 |
+<a href="http://www.ird.fr/informatique-scientifique/projets/observe/">Système informatique de gestion de données
|
|
| 26 |
+ d'observations embarquées de pêche à la senne et à la palangre.</a>
|
|
| 27 | 27 |
<hr/>
|
| 28 | 28 |
<p>
|
| 29 |
- Application de saisie des données observateurs et de consultation de telles données depuis une base <i>Obstuna</i>.
|
|
| 29 |
+ This project was initialized by IRD in 2009. Financial contributors are:
|
|
| 30 | 30 |
</p>
|
| 31 |
+<ul>
|
|
| 32 |
+ <li>Institut de Recherche pour le Développement (IRD)</li>
|
|
| 33 |
+ <li>Fond Européen pour les Affaires Maritimes et la Pêche (FEAMP)</li>
|
|
| 34 |
+ <li>Seychelles Fishing Authority (SFA)</li>
|
|
| 35 |
+ <li>AZTI Tecnalia</li>
|
|
| 36 |
+ <li>Orthongel</li>
|
|
| 37 |
+</ul>
|
|
| 31 | 38 |
<p>
|
| 32 |
- Ce projet a été initiée en 2008 par l'unité US 007-OSIRIS de <a href="http://www.ird.fr">l'IRD</a> dans le cadre
|
|
| 33 |
- d'un
|
|
| 34 |
- <a href="http://www.ird.fr/informatique-scientifique/soutien/spirales/anciens_projets/affiche_projet.php?code=2008.11">project
|
|
| 35 |
- spirale</a>.</p>
|
|
| 36 |
-<p>
|
|
| 37 |
- Il a été réalisé par la société <a href="http://codelutin.com">Code Lutin</a> en 2009.
|
|
| 39 |
+ It was realized by compagnies <a href="http://codelutin.com">Code Lutin</a> and <a href="https://ultreia.io">Ultreia.io</a> since 2009.
|
|
| 38 | 40 |
</p>
|
| 39 | 41 |
<br/>
|
| 40 | 42 |
<hr/>
|
| 41 | 43 |
<p>
|
| 42 |
- Pour plus d'informations, vous pouvez visiter le <a href="http://observe.codelutin.com">site du projet</a>.
|
|
| 44 |
+ For more information, you might visit <a href="https://ultreiaio.gitlab.io/ird-observe">project's site</a>.
|
|
| 43 | 45 |
</p>
|
| 44 | 46 |
|
| 45 |
-<h4>Version du locigiel</h4>
|
|
| 47 |
+<h4>Version</h4>
|
|
| 46 | 48 |
<dl>
|
| 47 | 49 |
<dt>Version</dt>
|
| 48 | 50 |
<dd>${buildVersion}</dd>
|
| 49 | 51 |
<dt>Date</dt>
|
| 50 | 52 |
<dd>${buildDate?string('dd.MM.yyyy HH:mm:ss')}</dd>
|
| 51 |
- <dt>Numéro de build</dt>
|
|
| 52 |
- <dd><a href="https://gitlab.nuiton.org/codelutin/observe/commit/${buildNumber}">${buildNumber}</a></dd>
|
|
| 53 |
+ <dt>Build number</dt>
|
|
| 54 |
+ <dd><a href="https://gitlab.com/ultreiaio/ird-observe/commit/${buildNumber}">${buildNumber}</a></dd>
|
|
| 53 | 55 |
</dl>
|
| 54 | 56 |
|
| 55 | 57 |
</body>
|
| ... | ... | @@ -22,24 +22,26 @@ |
| 22 | 22 |
<html>
|
| 23 | 23 |
<body>
|
| 24 | 24 |
<h3>ObServe</h3>
|
| 25 |
-<a href="http://www.ird.fr/informatique-scientifique/projets/observe/">Système d'Information,
|
|
| 26 |
- d'Observation et de Suivi des pêches thonières tropicales de surface.</a>
|
|
| 25 |
+<a href="http://www.ird.fr/informatique-scientifique/projets/observe/">Système informatique de gestion de données
|
|
| 26 |
+ d'observations embarquées de pêche à la senne et à la palangre.</a>
|
|
| 27 | 27 |
<hr/>
|
| 28 | 28 |
<p>
|
| 29 |
- Application de saisie des données observateurs et de consultation de telles données depuis une base <i>Obstuna</i>.
|
|
| 29 |
+ Ce projet a été initiée par l'IRD en 2009. Les contributeurs financiers sont :
|
|
| 30 | 30 |
</p>
|
| 31 |
+<ul>
|
|
| 32 |
+ <li>Institut de Recherche pour le Développement (IRD)</li>
|
|
| 33 |
+ <li>Fond Européen pour les Affaires Maritimes et la Pêche (FEAMP)</li>
|
|
| 34 |
+ <li>Seychelles Fishing Authority (SFA)</li>
|
|
| 35 |
+ <li>AZTI Tecnalia</li>
|
|
| 36 |
+ <li>Orthongel</li>
|
|
| 37 |
+</ul>
|
|
| 31 | 38 |
<p>
|
| 32 |
- Ce projet a été initiée en 2008 par l'unité US 007-OSIRIS de <a href="http://www.ird.fr">l'IRD</a> dans le cadre
|
|
| 33 |
- d'un
|
|
| 34 |
- <a href="http://www.ird.fr/informatique-scientifique/soutien/spirales/anciens_projets/affiche_projet.php?code=2008.11">project
|
|
| 35 |
- spirale</a>.</p>
|
|
| 36 |
-<p>
|
|
| 37 |
- Il a été réalisé par la société <a href="http://codelutin.com">Code Lutin</a> en 2009.
|
|
| 39 |
+ Il a été réalisé par les sociétés <a href="http://codelutin.com">Code Lutin</a> et <a href="https://ultreia.io">Ultreia.io</a> depuis 2009.
|
|
| 38 | 40 |
</p>
|
| 39 | 41 |
<br/>
|
| 40 | 42 |
<hr/>
|
| 41 | 43 |
<p>
|
| 42 |
- Pour plus d'informations, vous pouvez visiter le <a href="http://observe.codelutin.com">site du projet</a>.
|
|
| 44 |
+ Pour plus d'informations, vous pouvez visiter le <a href="https://ultreiaio.gitlab.io/ird-observe">site du projet</a>.
|
|
| 43 | 45 |
</p>
|
| 44 | 46 |
|
| 45 | 47 |
<h4>Version du locigiel</h4>
|
No preview for this file type
| ... | ... | @@ -52,6 +52,12 @@ |
| 52 | 52 |
<href>index.html</href>
|
| 53 | 53 |
</bannerLeft>
|
| 54 | 54 |
|
| 55 |
+ <bannerRight>
|
|
| 56 |
+ <name>${project.name}</name>
|
|
| 57 |
+ <src>./img/logo_ird.png</src>
|
|
| 58 |
+ <href>index.html</href>
|
|
| 59 |
+ </bannerRight>
|
|
| 60 |
+ |
|
| 55 | 61 |
<poweredBy>
|
| 56 | 62 |
<logo href="http://jaxx.nuiton.org" name="JAXX" width="120" img="./img/jaxx-logo.png"/>
|
| 57 | 63 |
<logo href="http://topia.nuiton.org" name="ToPIA" width="120" img="./img/topia-logo.png"/>
|