Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe Commits: 3985d911 by tchemit at 2019-06-08T16:38:34Z Rafraichissement de la page 'A propos' - See #1237 - - - - - 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: ===================================== client-core/src/main/java/fr/ird/observe/client/ui/actions/main/menu/help/ShowAboutAction.java ===================================== @@ -34,14 +34,19 @@ import org.nuiton.jaxx.widgets.about.AboutUI; import org.nuiton.jaxx.widgets.about.AboutUIBuilder; import org.nuiton.util.Resource; +import javax.swing.ImageIcon; import javax.swing.JLabel; import javax.swing.JPanel; import java.awt.BorderLayout; +import java.awt.Dimension; +import java.awt.GridLayout; +import java.awt.Image; import java.awt.event.ActionEvent; import java.io.IOException; import java.io.InputStreamReader; import java.io.Reader; import java.nio.charset.StandardCharsets; +import java.util.Objects; import static io.ultreia.java4all.i18n.I18n.t; @@ -70,7 +75,7 @@ public class ShowAboutAction extends MenuActionSupport { String changelog = null; try { - try (Reader resource = new InputStreamReader(getClass().getClassLoader().getResourceAsStream("META-INF/" + name + "-CHANGELOG.md"), StandardCharsets.UTF_8)) { + try (Reader resource = new InputStreamReader(Objects.requireNonNull(getClass().getClassLoader().getResourceAsStream("META-INF/" + name + "-CHANGELOG.md")), StandardCharsets.UTF_8)) { Node node = Parser.builder().build().parseReader(resource); changelog = HtmlRenderer.builder().build().render(node); } @@ -95,11 +100,29 @@ public class ShowAboutAction extends MenuActionSupport { // tweak top panel JPanel topPanel = about.getTopPanel(); topPanel.removeAll(); + JPanel topPanel2 = new JPanel(); + JPanel topPanel3 = new JPanel(); topPanel.setLayout(new BorderLayout()); - topPanel.add(new JLabel(Resource.getIcon("/icons/logo.png")), BorderLayout.WEST); - topPanel.add(new JLabel(Resource.getIcon("/icons/logo_ird.png")), BorderLayout.EAST); + topPanel2.setLayout(new GridLayout(1,0)); + topPanel3.setLayout(new GridLayout(1,0)); + topPanel.add(topPanel2, BorderLayout.CENTER); + topPanel.add(topPanel3, BorderLayout.SOUTH); + + int width = (int) (about.getOwner().getWidth() * 0.9); + int height = (int) (about.getOwner().getHeight() * 0.9)/6; + + topPanel2.add(new JLabel(Resource.getIcon("/icons/logo_obs7.png"))); + topPanel2.add(new JLabel(Resource.getIcon("/icons/logo_ird.png"))); + + topPanel3.add(new JLabel(getImage("/icons/logo_sfa.jpg", width/4, height))); + topPanel3.add(new JLabel(getImage("/icons/logo_cro.jpg", width/4, height))); + topPanel3.add(new JLabel(getImage("/icons/logo_feamp.png", width/4, height))); about.display(); } + + private ImageIcon getImage(String image, int width, int height) { + return new ImageIcon(Resource.getIcon(image).getImage().getScaledInstance(width, height, Image.SCALE_DEFAULT)); + } } ===================================== client-core/src/main/resources/icons/logo_cro.jpg ===================================== Binary files /dev/null and b/client-core/src/main/resources/icons/logo_cro.jpg differ ===================================== client-core/src/main/resources/icons/logo_feamp.png ===================================== Binary files /dev/null and b/client-core/src/main/resources/icons/logo_feamp.png differ ===================================== client-core/src/main/resources/icons/logo_ird.png ===================================== Binary files a/client-core/src/main/resources/icons/logo_ird.png and b/client-core/src/main/resources/icons/logo_ird.png differ ===================================== client-core/src/main/resources/icons/logo_obs7.png ===================================== Binary files /dev/null and b/client-core/src/main/resources/icons/logo_obs7.png differ ===================================== client-core/src/main/resources/icons/logo_sfa.jpg ===================================== Binary files /dev/null and b/client-core/src/main/resources/icons/logo_sfa.jpg differ ===================================== observe-i18n/src/main/i18n/templates/about_en_GB.ftl ===================================== @@ -22,34 +22,36 @@ <html> <body> <h3>ObServe</h3> -<a href="http://www.ird.fr/informatique-scientifique/projets/observe/">Système d'Information, - d'Observation et de Suivi des pêches thonières tropicales de surface.</a> +<a href="http://www.ird.fr/informatique-scientifique/projets/observe/">Système informatique de gestion de données + d'observations embarquées de pêche à la senne et à la palangre.</a> <hr/> <p> - Application de saisie des données observateurs et de consultation de telles données depuis une base <i>Obstuna</i>. + This project was initialized by IRD in 2009. Financial contributors are: </p> +<ul> + <li>Institut de Recherche pour le Développement (IRD)</li> + <li>Fond Européen pour les Affaires Maritimes et la Pêche (FEAMP)</li> + <li>Seychelles Fishing Authority (SFA)</li> + <li>AZTI Tecnalia</li> + <li>Orthongel</li> +</ul> <p> - 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 - d'un - <a href="http://www.ird.fr/informatique-scientifique/soutien/spirales/anciens_projets/affiche_projet.php?code=2008.11">project - spirale</a>.</p> -<p> - Il a été réalisé par la société <a href="http://codelutin.com">Code Lutin</a> en 2009. + It was realized by compagnies <a href="http://codelutin.com">Code Lutin</a> and <a href="https://ultreia.io">Ultreia.io</a> since 2009. </p> <br/> <hr/> <p> - Pour plus d'informations, vous pouvez visiter le <a href="http://observe.codelutin.com">site du projet</a>. + For more information, you might visit <a href="https://ultreiaio.gitlab.io/ird-observe">project's site</a>. </p> -<h4>Version du locigiel</h4> +<h4>Version</h4> <dl> <dt>Version</dt> <dd>${buildVersion}</dd> <dt>Date</dt> <dd>${buildDate?string('dd.MM.yyyy HH:mm:ss')}</dd> - <dt>Numéro de build</dt> - <dd><a href="https://gitlab.nuiton.org/codelutin/observe/commit/${buildNumber}">${buildNumber}</a></dd> + <dt>Build number</dt> + <dd><a href="https://gitlab.com/ultreiaio/ird-observe/commit/${buildNumber}">${buildNumber}</a></dd> </dl> </body> ===================================== observe-i18n/src/main/i18n/templates/about_fr_FR.ftl ===================================== @@ -22,24 +22,26 @@ <html> <body> <h3>ObServe</h3> -<a href="http://www.ird.fr/informatique-scientifique/projets/observe/">Système d'Information, - d'Observation et de Suivi des pêches thonières tropicales de surface.</a> +<a href="http://www.ird.fr/informatique-scientifique/projets/observe/">Système informatique de gestion de données + d'observations embarquées de pêche à la senne et à la palangre.</a> <hr/> <p> - Application de saisie des données observateurs et de consultation de telles données depuis une base <i>Obstuna</i>. + Ce projet a été initiée par l'IRD en 2009. Les contributeurs financiers sont : </p> +<ul> + <li>Institut de Recherche pour le Développement (IRD)</li> + <li>Fond Européen pour les Affaires Maritimes et la Pêche (FEAMP)</li> + <li>Seychelles Fishing Authority (SFA)</li> + <li>AZTI Tecnalia</li> + <li>Orthongel</li> +</ul> <p> - 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 - d'un - <a href="http://www.ird.fr/informatique-scientifique/soutien/spirales/anciens_projets/affiche_projet.php?code=2008.11">project - spirale</a>.</p> -<p> - Il a été réalisé par la société <a href="http://codelutin.com">Code Lutin</a> en 2009. + 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. </p> <br/> <hr/> <p> - Pour plus d'informations, vous pouvez visiter le <a href="http://observe.codelutin.com">site du projet</a>. + Pour plus d'informations, vous pouvez visiter le <a href="https://ultreiaio.gitlab.io/ird-observe">site du projet</a>. </p> <h4>Version du locigiel</h4> ===================================== src/site/resources/img/logo_ird.png ===================================== Binary files a/src/site/resources/img/logo_ird.png and b/src/site/resources/img/logo_ird.png differ ===================================== src/site/site_fr.xml ===================================== @@ -52,6 +52,12 @@ <href>index.html</href> </bannerLeft> + <bannerRight> + <name>${project.name}</name> + <src>./img/logo_ird.png</src> + <href>index.html</href> + </bannerRight> + <poweredBy> <logo href="http://jaxx.nuiton.org" name="JAXX" width="120" img="./img/jaxx-logo.png"/> <logo href="http://topia.nuiton.org" name="ToPIA" width="120" img="./img/topia-logo.png"/> View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/commit/3985d9113c344528e0adb0f46039... -- View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/commit/3985d9113c344528e0adb0f46039... You're receiving this email because of your account on gitlab.com.
participants (1)
-
Tony CHEMIT