-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathAboutBox.java
100 lines (87 loc) · 4.7 KB
/
AboutBox.java
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/*
Copyright (C) Paul Falstad and Iain Sharp
Version 4 by Vinyasi on 11/Jul/2017 20:19
// Mod.Begin
// Mod.End
This file is part of Vinyasi's port of CircuitJS1 specializing in
Surge Circuits exhibiting Pure Resonance. See, Prof. Arthur Mattuck
on YouTube and MIT Open Course Ware.
CircuitJS1 is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
CircuitJS1 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with CircuitJS1. If not, see <http://www.gnu.org/licenses/>.
*/
package com.lushprojects.circuitjs1.client;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.dom.client.NativeEvent;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.MouseDownEvent;
import com.google.gwt.event.dom.client.MouseDownHandler;
import com.google.gwt.event.dom.client.KeyPressEvent;
import com.google.gwt.event.dom.client.KeyPressHandler;
import com.google.gwt.user.client.ui.PopupPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.core.shared.GWT;
import com.google.gwt.event.dom.client.MouseOutEvent;
import com.google.gwt.event.dom.client.MouseOutHandler;
import com.google.gwt.event.dom.client.MouseWheelEvent;
import com.google.gwt.event.dom.client.MouseWheelHandler;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Button;
public class AboutBox extends PopupPanel {
VerticalPanel vp;
Button okButton;
AboutBox(String version) {
super();
vp = new VerticalPanel();
setWidget(vp);
// Mod.Begin
vp.setWidth("500px");
vp.add(new HTML("<img src='http://vinyasi.info/testjs/immortality-25pc.jpg' width='179' height='135' border='0' align='right' alt='Electrodynamic Immortality Defines Free Energy' />" +
// Mod.End
"<p>Circuit Simulator version "+version+".</p>"+
"<p>Original by Paul Falstad.<br><a href='http://www.falstad.com/' target='_blank'>http://www.falstad.com/</a></p>"+
"<p>JavaScript conversion by Iain Sharp.<br><a href='http://lushprojects.com/' target='_blank'>http://lushprojects.com/</a></p>"+
// Mod.Begin
"<p>Modified by Vinyasi – <b>v4</b>.<br><a href='http://vinyasi.info/' target='_blank'>http://vinyasi.info/</a></p>"+
// Mod.End
"<p>Thanks to: Edward Calver for 15 new components and other improvements; Rodrigo Hausen for file import/export and many other UI improvements; "+
"J. Mike Rollins for the Zener diode code; Julius Schmidt for the spark gap code and some examples; Dustin Soodak for help with the user interface improvements; "+
"Jacob Calvert for the T Flip Flop; Ben Hayden for scope spectrum; " +
"Thomas Reitinger for the German translation; " +
"Andre Adrian for improved emitter coupled oscillator; Felthry for many examples.</p>"+
"<p style='font-size:9px'>This program is free software: you can redistribute it and/or modify it "+
"under the terms of the GNU General Public License as published by "+
"the Free Software Foundation, either version 2 of the License, or "+
"(at your option) any later version.</p>"+
"<p style='font-size:9px'>This program is distributed in the hope that it will be useful,"+
"but WITHOUT ANY WARRANTY; without even the implied warranty of "+
"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the "+
"GNU General Public License for more details.</p>"+
"<p style='font-size:9px'>For details of licensing see <A href='http://www.gnu.org/licenses/' target='_blank'>http://www.gnu.org/licenses/</A>.</p>"+
"<p style='font-size:9px'>Source code (Paul):<A href='https://github.com/pfalstad/circuitjs1' target='_blank'>https://github.com/pfalstad/circuitjs1</A></p>"+
"<p style='font-size:9px'>Source code (Iain):<A href='https://github.com/sharpie7/circuitjs1' target='_blank'>https://github.com/sharpie7/circuitjs1</A></p>"+
// Mod.Begin
"<p style='font-size:9px'>Mods (Vinyasi):<A href='https://github.com/Vinyasi/circuitjs1-falstad-vinyasi' target='_blank'>https://github.com/Vinyasi/circuitjs1-falstad-vinyasi</A></p>"));
// Mod.End
vp.add(okButton = new Button("OK"));
okButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
close();
}
});
center();
show();
}
public void close() {
hide();
}
}