Skip to content

Commit

Permalink
about
Browse files Browse the repository at this point in the history
  • Loading branch information
moovida committed Jul 9, 2018
1 parent 2e8783e commit 207b98b
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 28 deletions.
12 changes: 11 additions & 1 deletion src/main/java/com/hydrologis/remarkable/TemplatesController.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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<TemplatesController> class1 = TemplatesController.class;
URL resource = class1.getResource("/com/hydrologis/remarkable/hm150.png");
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/com/hydrologis/remarkable/TemplatesView.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
Expand Down
130 changes: 103 additions & 27 deletions src/main/java/com/hydrologis/remarkable/TemplatesView.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
</object>
</at>
<at name="name">hostLabel</at>
<at name="width">172</at>
<at name="width">168</at>
<at name="text">Host</at>
<at name="fill">
<object classname="com.jeta.forms.store.properties.effects.PaintProperty">
Expand Down Expand Up @@ -134,8 +134,8 @@
</object>
</at>
<at name="name">hostField</at>
<at name="width">963</at>
<at name="height">27</at>
<at name="width">967</at>
<at name="height">21</at>
</object>
</at>
</object>
Expand Down Expand Up @@ -188,7 +188,7 @@
</object>
</at>
<at name="name">passwordLabel</at>
<at name="width">172</at>
<at name="width">168</at>
<at name="text">Password</at>
<at name="fill">
<object classname="com.jeta.forms.store.properties.effects.PaintProperty">
Expand Down Expand Up @@ -248,7 +248,7 @@
</object>
</at>
<at name="name">passwordField</at>
<at name="width">963</at>
<at name="width">967</at>
<at name="height">27</at>
</object>
</at>
Expand All @@ -274,7 +274,7 @@
</at>
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at>
</super>
<at name="id">embedded.710010754</at>
<at name="id">embedded.907090833</at>
<at name="rowspecs">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</at>
<at name="colspecs">FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE</at>
<at name="components">
Expand Down Expand Up @@ -323,8 +323,8 @@
</at>
</object>
</at>
<at name="name"></at>
<at name="width">1086</at>
<at name="width">1090</at>
<at name="name"/>
<at name="text">local</at>
<at name="fill">
<object classname="com.jeta.forms.store.properties.effects.PaintProperty">
Expand Down Expand Up @@ -464,8 +464,8 @@
</at>
</object>
</at>
<at name="name"></at>
<at name="width">1086</at>
<at name="width">1090</at>
<at name="name"/>
<at name="text">remote</at>
<at name="fill">
<object classname="com.jeta.forms.store.properties.effects.PaintProperty">
Expand Down Expand Up @@ -525,8 +525,8 @@
</object>
</at>
<at name="name">remotePathField</at>
<at name="width">1086</at>
<at name="height">27</at>
<at name="width">1090</at>
<at name="height">21</at>
</object>
</at>
</object>
Expand Down Expand Up @@ -661,9 +661,9 @@
</at>
<at name="actionCommand">Refresh</at>
<at name="name">refreshRemoteTemplatesButton</at>
<at name="width">53</at>
<at name="width">49</at>
<at name="text">Refresh</at>
<at name="height">27</at>
<at name="height">22</at>
</object>
</at>
</object>
Expand All @@ -688,7 +688,7 @@
</at>
</object>
</at>
<at name="name"></at>
<at name="name"/>
<at name="fill">
<object classname="com.jeta.forms.store.properties.effects.PaintProperty">
<at name="name">fill</at>
Expand Down Expand Up @@ -819,7 +819,7 @@
</object>
</at>
<at name="name">userLabel</at>
<at name="width">172</at>
<at name="width">168</at>
<at name="text">User</at>
<at name="fill">
<object classname="com.jeta.forms.store.properties.effects.PaintProperty">
Expand Down Expand Up @@ -879,8 +879,8 @@
</object>
</at>
<at name="name">userField</at>
<at name="width">963</at>
<at name="height">27</at>
<at name="width">967</at>
<at name="height">21</at>
</object>
</at>
</object>
Expand Down Expand Up @@ -934,9 +934,9 @@
</at>
<at name="actionCommand">Upload local templates</at>
<at name="name">uploadButton</at>
<at name="width">172</at>
<at name="width">168</at>
<at name="text">Upload local (selected mode)</at>
<at name="height">27</at>
<at name="height">22</at>
</object>
</at>
</object>
Expand All @@ -961,7 +961,7 @@
</at>
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at>
</super>
<at name="id">embedded.T46be55dY16478b4dd12TU7ffe</at>
<at name="id">embedded.1142693022</at>
<at name="rowspecs">CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE</at>
<at name="colspecs">FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE</at>
<at name="components">
Expand Down Expand Up @@ -1180,7 +1180,7 @@
</at>
</object>
</at>
<at name="name"></at>
<at name="name"/>
<at name="fill">
<object classname="com.jeta.forms.store.properties.effects.PaintProperty">
<at name="name">fill</at>
Expand All @@ -1191,6 +1191,26 @@
<at name="name">scollBars</at>
<at name="verticalpolicy">21</at>
<at name="horizontalpolicy">31</at>
<at name="border">
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty">
<super classname="com.jeta.forms.store.properties.BorderProperty">
<at name="name">border</at>
</super>
<at name="borders">
<object classname="java.util.LinkedList">
<item >
<at name="value">
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty">
<super classname="com.jeta.forms.store.properties.BorderProperty">
<at name="name">border</at>
</super>
</object>
</at>
</item>
</object>
</at>
</object>
</at>
</object>
</at>
</object>
Expand Down Expand Up @@ -1276,7 +1296,7 @@
</object>
</at>
<at name="name">basefolderLabel</at>
<at name="width">172</at>
<at name="width">168</at>
<at name="text">Basefolder</at>
<at name="fill">
<object classname="com.jeta.forms.store.properties.effects.PaintProperty">
Expand Down Expand Up @@ -1336,8 +1356,8 @@
</object>
</at>
<at name="name">basefolderField</at>
<at name="width">933</at>
<at name="height">27</at>
<at name="width">917</at>
<at name="height">21</at>
</object>
</at>
</object>
Expand Down Expand Up @@ -1391,9 +1411,9 @@
</at>
<at name="actionCommand">...</at>
<at name="name">basefolderButton</at>
<at name="width">19</at>
<at name="width">39</at>
<at name="text">...</at>
<at name="height">27</at>
<at name="height">22</at>
</object>
</at>
</object>
Expand Down Expand Up @@ -1457,6 +1477,62 @@
</object>
</at>
</item>
<item >
<at name="value">
<object classname="com.jeta.forms.store.memento.BeanMemento">
<super classname="com.jeta.forms.store.memento.ComponentMemento">
<at name="cellconstraints">
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento">
<at name="column">19</at>
<at name="row">26</at>
<at name="colspan">1</at>
<at name="rowspan">1</at>
<at name="halign">default</at>
<at name="valign">default</at>
<at name="insets" object="insets">0,0,0,0</at>
</object>
</at>
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at>
</super>
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at>
<at name="beanclass">javax.swing.JButton</at>
<at name="beanproperties">
<object classname="com.jeta.forms.store.memento.PropertiesMemento">
<at name="classname">javax.swing.JButton</at>
<at name="properties">
<object classname="com.jeta.forms.store.support.PropertyMap">
<at name="border">
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty">
<super classname="com.jeta.forms.store.properties.BorderProperty">
<at name="name">border</at>
</super>
<at name="borders">
<object classname="java.util.LinkedList">
<item >
<at name="value">
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty">
<super classname="com.jeta.forms.store.properties.BorderProperty">
<at name="name">border</at>
</super>
</object>
</at>
</item>
</object>
</at>
</object>
</at>
<at name="actionCommand">About</at>
<at name="name">aboutButton</at>
<at name="width">39</at>
<at name="text">About</at>
<at name="height">22</at>
</object>
</at>
</object>
</at>
</object>
</at>
</item>
</object>
</at>
<at name="properties">
Expand Down

0 comments on commit 207b98b

Please sign in to comment.