Commit 8e86295d authored by SAPONE Alann's avatar SAPONE Alann

More informations in help sections

parent 03e98bfe
......@@ -261,8 +261,8 @@ public class AboutDialog extends HelpDialog {
}
public static void show(JFrame parent) {
instance = new AboutDialog(parent);
if (instance == null) {
instance = new AboutDialog(parent);
}
instance.setVisible(true);
}
......
......@@ -28,36 +28,46 @@ public class ContributionDialog extends HelpDialog {
wrapper.setLayout(new BoxLayout(wrapper, BoxLayout.PAGE_AXIS));
wrapper.setBorder(new EmptyBorder(15, 15, 15, 15));
JPanel important = new JPanel();
important.setLayout(new BoxLayout(important, BoxLayout.Y_AXIS));
important.setBorder(BorderFactory.createTitledBorder("Important"));
String intro = "<html><div style='text-align: center;'>We are looking for contributors.<br> Please, do not hesitate to contact us at:</div><br></html>";
JLabel introLabel = new JLabel(intro, SwingConstants.CENTER);
important.add(introLabel);
String intro = "<html>"
+ "<div><p>We are always looking for contributors.</p>" +
"<p>A contribution can be a feature request, any issue you can find, or even preset sharing.</p>" +
"<ul>" +
"<li>If you have any feature request, you can create an issue with the \"enhancement\" label.</li><br>" +
"<li>To notify us you found an issue in the software, you can create an issue with the \"bug\" or \"critical\" label.</li><br>" +
"<li>Have you made your own source, instrument, site or observing parameters ?<br>Or even a more simple preset you would like to share, such as a sky emission template ?<br>You are very welcome to share it with the community.<br>Contact us so we can add it in the official repository !<br>Of course, your name will be added in the contributors list, and in the preset name itself.</li><br>" +
"</ul>" +
"</div>"
+ "<div style='text-align:center;'>Thank you for your incoming contributions !</div></html>";
JLabel introLabel = new JLabel(intro, SwingConstants.CENTER);
wrapper.add(introLabel);
HyperlinkLabel contactUrlLabel = new HyperlinkLabel(AboutDialog.CONTACT_URL, AboutDialog.CONTACT_URL, SwingConstants.CENTER);
important.add(contactUrlLabel);
important.setAlignmentX(LEFT_ALIGNMENT);
wrapper.add(important);
contactUrlLabel.setBorder(new EmptyBorder(0, 0, 15, 0));
wrapper.add(contactUrlLabel);
// Code source linking
String source = "<html><div style='text-align: center;'><br>You can download and contribute to the ETC-42 codebase<br>by accessing the project repository:</div><br></html>";
String source = "<html><div style='text-align: center;'><br>You can access the ETC-42 repository:</div><br></html>";
JLabel sourceLabel = new JLabel(source, SwingConstants.CENTER);
sourceLabel.setBorder(new EmptyBorder(10, 0, 0, 0));
wrapper.add(sourceLabel);
HyperlinkLabel sourceURLLabel = new HyperlinkLabel(SOURCE_URL, SOURCE_URL, SwingConstants.CENTER);
wrapper.add(sourceURLLabel);
sourceURLLabel.setBorder(new EmptyBorder(0, 0, 15, 0));
JPanel important = new JPanel();
important.setLayout(new BoxLayout(important, BoxLayout.Y_AXIS));
important.setBorder(BorderFactory.createTitledBorder("Repository"));
important.add(sourceLabel);
important.add(sourceURLLabel);
important.setAlignmentX(LEFT_ALIGNMENT);
wrapper.add(important);
getContentPane().add(wrapper);
pack();
}
public static void show(JFrame parent) {
instance = new ContributionDialog(parent);
if (instance == null) {
instance = new ContributionDialog(parent);
}
instance.setVisible(true);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment