diff --git a/src/main/java/com/hydrologis/remarkable/TemplatesController.java b/src/main/java/com/hydrologis/remarkable/TemplatesController.java index 0d60e42..4b3805d 100644 --- a/src/main/java/com/hydrologis/remarkable/TemplatesController.java +++ b/src/main/java/com/hydrologis/remarkable/TemplatesController.java @@ -197,6 +197,16 @@ public void postWork() throws Exception { _backupButton.setVisible(true); } }); + + _aboutButton.addActionListener(e -> { + JOptionPane.showMessageDialog(this, + "This software is developed by HydroloGIS S.r.l. and released under GPL v3.0 license.\n\n" + + "We carry no responability if the software burned your reMarkable to death\n" + + "or destroyed your data (but yes, we would be very sorry about that).\n\n" + + "If you find the application useful and feel the urge to thank us, send us a box of good beer from your country.", + "ABOUT Remarkable-HyUtilities v1.0", JOptionPane.INFORMATION_MESSAGE); + }); + if (checkLocalPath(localPath)) { _basefolderField.setText(localPath); } @@ -614,7 +624,7 @@ public static void main( String[] args ) { DefaultGuiBridgeImpl gBridge = new DefaultGuiBridgeImpl(); final TemplatesController controller = new TemplatesController(gBridge); - final JFrame frame = gBridge.showWindow(controller.asJComponent(), "Remarkable Utilities"); + final JFrame frame = gBridge.showWindow(controller.asJComponent(), "Remarkable HyUtilities"); Class class1 = TemplatesController.class; URL resource = class1.getResource("/com/hydrologis/remarkable/hm150.png"); diff --git a/src/main/java/com/hydrologis/remarkable/TemplatesView.java b/src/main/java/com/hydrologis/remarkable/TemplatesView.java index 39fa37f..49bfa61 100644 --- a/src/main/java/com/hydrologis/remarkable/TemplatesView.java +++ b/src/main/java/com/hydrologis/remarkable/TemplatesView.java @@ -43,6 +43,7 @@ public class TemplatesView extends JPanel JTextField _basefolderField = new JTextField(); JButton _basefolderButton = new JButton(); JButton _backupButton = new JButton(); + JButton _aboutButton = new JButton(); /** * Default constructor @@ -183,6 +184,11 @@ public JPanel createPanel() _backupButton.setText("Backup to local"); jpanel1.add(_backupButton,cc.xy(4,26)); + _aboutButton.setActionCommand("About"); + _aboutButton.setName("aboutButton"); + _aboutButton.setText("About"); + jpanel1.add(_aboutButton,cc.xy(19,26)); + addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27 }); return jpanel1; } diff --git a/src/main/java/com/hydrologis/remarkable/TemplatesView.xml b/src/main/java/com/hydrologis/remarkable/TemplatesView.xml index c97e5da..c2f7a07 100644 --- a/src/main/java/com/hydrologis/remarkable/TemplatesView.xml +++ b/src/main/java/com/hydrologis/remarkable/TemplatesView.xml @@ -74,7 +74,7 @@ hostLabel - 172 + 168 Host @@ -134,8 +134,8 @@ hostField - 963 - 27 + 967 + 21 @@ -188,7 +188,7 @@ passwordLabel - 172 + 168 Password @@ -248,7 +248,7 @@ passwordField - 963 + 967 27 @@ -274,7 +274,7 @@ com.jeta.forms.gui.form.FormComponent - embedded.710010754 + embedded.907090833 CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),CENTER:DEFAULT:NONE FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE @@ -323,8 +323,8 @@ - - 1086 + 1090 + local @@ -464,8 +464,8 @@ - - 1086 + 1090 + remote @@ -525,8 +525,8 @@ remotePathField - 1086 - 27 + 1090 + 21 @@ -661,9 +661,9 @@ Refresh refreshRemoteTemplatesButton - 53 + 49 Refresh - 27 + 22 @@ -688,7 +688,7 @@ - + fill @@ -819,7 +819,7 @@ userLabel - 172 + 168 User @@ -879,8 +879,8 @@ userField - 963 - 27 + 967 + 21 @@ -934,9 +934,9 @@ Upload local templates uploadButton - 172 + 168 Upload local (selected mode) - 27 + 22 @@ -961,7 +961,7 @@ com.jeta.forms.gui.form.FormComponent - embedded.T46be55dY16478b4dd12TU7ffe + embedded.1142693022 CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE @@ -1180,7 +1180,7 @@ - + fill @@ -1191,6 +1191,26 @@ scollBars 21 31 + + + + border + + + + + + + + border + + + + + + + + @@ -1276,7 +1296,7 @@ basefolderLabel - 172 + 168 Basefolder @@ -1336,8 +1356,8 @@ basefolderField - 933 - 27 + 917 + 21 @@ -1391,9 +1411,9 @@ ... basefolderButton - 19 + 39 ... - 27 + 22 @@ -1457,6 +1477,62 @@ + + + + + + + 19 + 26 + 1 + 1 + default + default + 0,0,0,0 + + + com.jeta.forms.gui.form.StandardComponent + + com.jeta.forms.gui.beans.JETABean + javax.swing.JButton + + + javax.swing.JButton + + + + + + border + + + + + + + + border + + + + + + + + + About + aboutButton + 39 + About + 22 + + + + + + +