Revision 20027
branches/F2/extensions/extJCRS/.classpath | ||
---|---|---|
8 | 8 |
<classpathentry kind="lib" path="/libFMap/lib/gt2-main.jar"/> |
9 | 9 |
<classpathentry combineaccessrules="false" kind="src" path="/libJCRS"/> |
10 | 10 |
<classpathentry kind="src" path="/_fwAndami"/> |
11 |
<classpathentry kind="lib" path="/libFMap/lib/org.cresques.cts.jar"/> |
|
12 |
<classpathentry kind="src" path="/libUIComponent"/> |
|
13 | 11 |
<classpathentry combineaccessrules="false" kind="src" path="/appgvSIG"/> |
14 | 12 |
<classpathentry combineaccessrules="false" kind="src" path="/libFMap"/> |
15 | 13 |
<classpathentry kind="lib" path="/libJCRS/lib/jGridShiftApi.jar"/> |
14 |
<classpathentry kind="lib" path="/libFMap/lib/cms.jar" sourcepath="/libCq CMS for java"/> |
|
15 |
<classpathentry combineaccessrules="false" kind="src" path="/libUI"/> |
|
16 | 16 |
<classpathentry kind="output" path="bin"/> |
17 | 17 |
</classpath> |
branches/F2/extensions/extJCRS/config/config.xml | ||
---|---|---|
9 | 9 |
active="true" |
10 | 10 |
priority="1"> |
11 | 11 |
</extension> |
12 |
<extension class-name="org.gvsig.crs.InitialWarningExtension" |
|
13 |
description="Advertencia JCRS." |
|
14 |
active="true" |
|
15 |
priority="1"> |
|
16 |
</extension> |
|
12 | 17 |
</extensions> |
13 | 18 |
</plugin-config> |
branches/F2/extensions/extJCRS/config/text.properties | ||
---|---|---|
73 | 73 |
infoCRS=Informacion del CRS |
74 | 74 |
Informacion=Informaci\u00f3n |
75 | 75 |
info_transformations= Informaci\u00f3n de la transformaci\u00f3n |
76 |
initial_jcrs_warning=<html><b>\u00a1ATENCI\u00d3N\!</b><br>Est\u00e1 utilizando una Versi\u00f3n en pruebas de la extensi?n JCRS. Puede contener errores importantes.</html> |
|
76 | 77 |
invFlattening=Inverso del aplanamiento |
77 | 78 |
inv_f=Inversa del aplanamiento |
78 | 79 |
importar=Importar |
branches/F2/extensions/extJCRS/config/about.htm | ||
---|---|---|
1 | 1 |
<html> |
2 | 2 |
<head> |
3 |
<title>Extesi?n JCRS</title>
|
|
3 |
<title>Extesión JCRS</title>
|
|
4 | 4 |
<meta content=""> |
5 | 5 |
<style></style> |
6 | 6 |
</head> |
... | ... | |
15 | 15 |
Generalitat Valenciana, Instituto de Desarrollo Regional, UCLM 2006.</font></td> |
16 | 16 |
</tr> |
17 | 17 |
</table> |
18 |
<h3>Extesi?n JCRS V 0.1</h3> |
|
19 |
<p>Extensi?n para el manejo de Sistemas de Referencia de Coordenadas:</p> |
|
18 |
<h3>Extesión JCRS V 0.2</h3> |
|
19 |
<h4>¡Atención! Esta es una versión para pruebas, puede presentar errores importantes.</h4> |
|
20 |
<p>Extensión para el manejo de Sistemas de Referencia de Coordenadas:</p> |
|
20 | 21 |
<ul> |
21 |
<li>Nuevos repositorios de CRS: EPSG, IAU2000</li> |
|
22 |
<li>Nuevos repositorios de CRSs: EPSG, ESRI, IAU2000</li> |
|
23 |
<li>CRSs Definidos por el usuario</li> |
|
22 | 24 |
<li>Transformaciones EPSG</li> |
23 |
<li>Transformaciones por fichero Rejilla</li> |
|
25 |
<li>Transformaciones por fichero Rejilla (NTv2)</li> |
|
26 |
<li>Transformaciones definidas por el usuario</li> |
|
27 |
<li>Transformaciones compuestas</li> |
|
24 | 28 |
<li>...</li> |
25 | 29 |
</ul> |
26 |
<p><br><br><b> Build Number: #build.number#</b></p>
|
|
30 |
<p><br><br><b> Build Number: 1045.4</b></p>
|
|
27 | 31 |
</body> |
28 | 32 |
</html> |
branches/F2/extensions/extJCRS/build.number | ||
---|---|---|
1 | 1 |
#Build Number for ANT. Do not edit! |
2 |
#Tue Feb 13 11:59:38 CET 2007 |
|
3 |
build.number=3 |
|
2 |
#Tue Apr 08 10:23:20 BST 2008 |
|
3 |
build.number=4 |
branches/F2/extensions/extJCRS/src/org/gvsig/crs/gui/panels/ProjChooserPanel.java | ||
---|---|---|
54 | 54 |
|
55 | 55 |
import com.iver.andami.PluginServices; |
56 | 56 |
import com.iver.andami.ui.mdiManager.IWindow; |
57 |
import com.iver.cit.gvsig.addlayer.AddLayerDialog; |
|
58 | 57 |
import com.iver.cit.gvsig.gui.panels.CRSSelectPanel; |
59 |
import com.iver.cit.gvsig.project.documents.view.gui.BaseView; |
|
58 |
import com.iver.cit.gvsig.project.documents.gui.FOpenDialog; |
|
59 |
import com.iver.cit.gvsig.project.documents.view.gui.View; |
|
60 | 60 |
|
61 | 61 |
/** |
62 | 62 |
* @author Luis W. Sevilla (sevilla_lui@gva.es) |
... | ... | |
82 | 82 |
super(proj); |
83 | 83 |
IProjection pr = proj; |
84 | 84 |
IWindow activeWindow = PluginServices.getMDIManager().getActiveWindow(); |
85 |
if (activeWindow instanceof BaseView) {
|
|
86 |
BaseView activeView = (com.iver.cit.gvsig.project.documents.view.gui.BaseView) activeWindow;
|
|
85 |
if (activeWindow instanceof View) { |
|
86 |
View activeView = (com.iver.cit.gvsig.project.documents.view.gui.View) activeWindow;
|
|
87 | 87 |
pr = activeView.getMapControl().getProjection(); |
88 | 88 |
} |
89 |
AddLayerDialog.setLastProjection(pr);
|
|
89 |
FOpenDialog.setLastProjection(pr);
|
|
90 | 90 |
setCurProj(pr); |
91 | 91 |
initialize(); |
92 | 92 |
} |
... | ... | |
139 | 139 |
abrev = dataSource+ ":" +String.valueOf(curProj.getCode()); |
140 | 140 |
|
141 | 141 |
jLblProj.setText(dataSource+ ":" +String.valueOf(curProj.getCode()));//.getAbrev()); |
142 |
AddLayerDialog.setLastProjection(curProj);
|
|
142 |
FOpenDialog.setLastProjection(curProj);
|
|
143 | 143 |
okPressed = true; |
144 | 144 |
if (actionListener != null) { |
145 | 145 |
actionListener.actionPerformed(e); |
... | ... | |
152 | 152 |
trSelect = new TRSelectionDialog(curProj); |
153 | 153 |
|
154 | 154 |
trSelect.setProjection(curProj); |
155 |
trSelect.setLayout(new GridLayout(0,1)); |
|
155 |
|
|
156 |
trSelect.setLayout(new GridLayout(0,1)); |
|
156 | 157 |
|
157 | 158 |
PluginServices.getMDIManager().addWindow(trSelect); |
158 | 159 |
setTargetNad(trSelect.getTargetNad()); |
... | ... | |
164 | 165 |
//dataSource = trSelect.getProjPanel().getDataSource(); |
165 | 166 |
//abrev = trSelect.getProjectionName(); |
166 | 167 |
jLblProj.setText(dataSource+ ":" +String.valueOf(curProj.getCode()));//abrev); |
167 |
AddLayerDialog.setLastProjection(curProj);
|
|
168 |
FOpenDialog.setLastProjection(curProj);
|
|
168 | 169 |
okPressed = true; |
169 | 170 |
|
170 | 171 |
if (actionListener != null) { |
branches/F2/extensions/extJCRS/src/org/gvsig/crs/InitialWarningExtension.java | ||
---|---|---|
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
2 |
* |
|
3 |
* Copyright (C) 2005 IVER T.I. and Generalitat Valenciana. |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU General Public License |
|
7 |
* as published by the Free Software Foundation; either version 2 |
|
8 |
* of the License, or (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
18 |
* |
|
19 |
* For more information, contact: |
|
20 |
* |
|
21 |
* Generalitat Valenciana |
|
22 |
* Conselleria d'Infraestructures i Transport |
|
23 |
* Av. Blasco Ib??ez, 50 |
|
24 |
* 46010 VALENCIA |
|
25 |
* SPAIN |
|
26 |
* |
|
27 |
* +34 963862235 |
|
28 |
* gvsig@gva.es |
|
29 |
* www.gvsig.gva.es |
|
30 |
* |
|
31 |
* or |
|
32 |
* |
|
33 |
* IVER T.I. S.A |
|
34 |
* Salamanca 50 |
|
35 |
* 46005 Valencia |
|
36 |
* Spain |
|
37 |
* |
|
38 |
* +34 963163400 |
|
39 |
* dac@iver.es |
|
40 |
*/ |
|
41 |
|
|
42 |
/* CVS MESSAGES: |
|
43 |
* |
|
44 |
* $Id: InitialWarningExtension.java 8765 2006-11-15 00:08:29Z jjdelcerro $ |
|
45 |
* $Log$ |
|
46 |
* Revision 1.3.4.1 2006-11-15 00:08:08 jjdelcerro |
|
47 |
* *** empty log message *** |
|
48 |
* |
|
49 |
* Revision 1.4 2006/10/02 13:52:34 jaume |
|
50 |
* organize impots |
|
51 |
* |
|
52 |
* Revision 1.3 2006/08/29 07:56:27 cesar |
|
53 |
* Rename the *View* family of classes to *Window* (ie: SingletonView to SingletonWindow, ViewInfo to WindowInfo, etc) |
|
54 |
* |
|
55 |
* Revision 1.2 2006/08/29 07:13:53 cesar |
|
56 |
* Rename class com.iver.andami.ui.mdiManager.View to com.iver.andami.ui.mdiManager.IWindow |
|
57 |
* |
|
58 |
* Revision 1.1 2006/05/25 16:27:21 jaume |
|
59 |
* *** empty log message *** |
|
60 |
* |
|
61 |
* |
|
62 |
*/ |
|
63 |
package org.gvsig.crs; |
|
64 |
|
|
65 |
import java.awt.Color; |
|
66 |
import java.awt.Window; |
|
67 |
|
|
68 |
import javax.swing.JButton; |
|
69 |
import javax.swing.JCheckBox; |
|
70 |
import javax.swing.JLabel; |
|
71 |
import javax.swing.JPanel; |
|
72 |
import javax.swing.JWindow; |
|
73 |
import javax.swing.border.TitledBorder; |
|
74 |
|
|
75 |
import com.iver.andami.PluginServices; |
|
76 |
import com.iver.andami.plugins.Extension; |
|
77 |
import com.iver.andami.ui.mdiManager.WindowInfo; |
|
78 |
|
|
79 |
public class InitialWarningExtension extends Extension { |
|
80 |
// public static Preferences fPrefs = Preferences.userRoot().node( "gvsig.initial_warkning" ); |
|
81 |
// private boolean show = fPrefs.getBoolean( "show_panel", true); |
|
82 |
private DlgWaring dlgWarning; |
|
83 |
/** |
|
84 |
* @see com.iver.andami.plugins.IExtension#isEnabled() |
|
85 |
*/ |
|
86 |
public boolean isEnabled() { |
|
87 |
return true; |
|
88 |
} |
|
89 |
|
|
90 |
/** |
|
91 |
* @see com.iver.mdiApp.plugins.IExtension#isVisible() |
|
92 |
*/ |
|
93 |
public boolean isVisible() { |
|
94 |
return true; |
|
95 |
} |
|
96 |
|
|
97 |
/** |
|
98 |
* @see com.iver.andami.plugins.IExtension#initialize() |
|
99 |
*/ |
|
100 |
public void initialize() { |
|
101 |
dlgWarning = new DlgWaring(); |
|
102 |
dlgWarning.setText(PluginServices.getText(this, "initial_jcrs_warning")); |
|
103 |
dlgWarning.setVisible(true); |
|
104 |
} |
|
105 |
|
|
106 |
/** |
|
107 |
* @see com.iver.andami.plugins.IExtension#execute(java.lang.String) |
|
108 |
*/ |
|
109 |
public void execute(String actionCommand) { |
|
110 |
} |
|
111 |
|
|
112 |
private class DlgWaring extends JWindow{ |
|
113 |
|
|
114 |
private JButton btnOk = null; |
|
115 |
private JCheckBox chkBoxShowAgain = null; |
|
116 |
private JLabel lblText = null; |
|
117 |
private JPanel panel=null; |
|
118 |
private JPanel panel2; |
|
119 |
/** |
|
120 |
* This is the default constructor |
|
121 |
*/ |
|
122 |
public DlgWaring() { |
|
123 |
super((Window)PluginServices.getMainFrame()); |
|
124 |
Window window=(Window)PluginServices.getMainFrame(); |
|
125 |
setLocation(window.getWidth()/2+window.getX()-150,window.getHeight()/2+window.getY()-150); |
|
126 |
initialize(); |
|
127 |
this.setAlwaysOnTop(true); |
|
128 |
} |
|
129 |
|
|
130 |
public void setText(String string) { |
|
131 |
lblText.setText(string); |
|
132 |
} |
|
133 |
|
|
134 |
/** |
|
135 |
* This method initializes this |
|
136 |
* |
|
137 |
* @return void |
|
138 |
*/ |
|
139 |
private void initialize() { |
|
140 |
panel=new JPanel(); |
|
141 |
panel.setBackground(Color.black); |
|
142 |
panel.setLayout(null); |
|
143 |
panel.setBounds(0,0,300,300); |
|
144 |
panel2=new JPanel(); |
|
145 |
panel2.setLayout(null); |
|
146 |
panel2.setBounds(2,2,298,298); |
|
147 |
lblText = new JLabel(); |
|
148 |
lblText.setBounds(15, 15, 271, 200); |
|
149 |
lblText.setText("JLabel"); |
|
150 |
lblText.setBorder(new TitledBorder(PluginServices.getText(this, "warning"))); |
|
151 |
panel2.add(lblText); |
|
152 |
panel2.setSize((int)(panel.getSize().getWidth()-4),(int)(panel.getSize().getHeight()-4)); |
|
153 |
panel.add(panel2); |
|
154 |
this.setLayout(null); |
|
155 |
this.setSize(300, 300); |
|
156 |
this.add(getBtnOk(), null); |
|
157 |
// this.add(getChkBoxShowAgain(), null); |
|
158 |
this.add(panel, null); |
|
159 |
} |
|
160 |
|
|
161 |
/** |
|
162 |
* This method initializes btnOk |
|
163 |
* |
|
164 |
* @return javax.swing.JButton |
|
165 |
*/ |
|
166 |
private JButton getBtnOk() { |
|
167 |
if (btnOk == null) { |
|
168 |
btnOk = new JButton(); |
|
169 |
btnOk.setBounds(100, 250, 100, 20); |
|
170 |
btnOk.setText(PluginServices.getText(this, "aceptar")); |
|
171 |
btnOk.addActionListener(new java.awt.event.ActionListener() { |
|
172 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
|
173 |
dlgWarning.setVisible(false); |
|
174 |
dlgWarning.dispose(); |
|
175 |
// PluginServices.getMDIManager().closeWindow(dlgWarning); |
|
176 |
} |
|
177 |
}); |
|
178 |
} |
|
179 |
return btnOk; |
|
180 |
} |
|
181 |
|
|
182 |
/** |
|
183 |
* This method initializes chkBoxShowAgain |
|
184 |
* |
|
185 |
* @return javax.swing.JCheckBox |
|
186 |
*/ |
|
187 |
// private JCheckBox getChkBoxShowAgain() { |
|
188 |
// if (chkBoxShowAgain == null) { |
|
189 |
// chkBoxShowAgain = new JCheckBox(); |
|
190 |
// chkBoxShowAgain.setBounds(44, 116, 241, 21); |
|
191 |
// chkBoxShowAgain.setSelected(true); |
|
192 |
// chkBoxShowAgain.setText(PluginServices.getText(this, "show_this_dialog_next_startup")); |
|
193 |
// } |
|
194 |
// return chkBoxShowAgain; |
|
195 |
// } |
|
196 |
|
|
197 |
public WindowInfo getWindowInfo() { |
|
198 |
WindowInfo vi = new WindowInfo(WindowInfo.MODALDIALOG); |
|
199 |
vi.setWidth(300+8); |
|
200 |
vi.setHeight(250); |
|
201 |
vi.setTitle(PluginServices.getText(this, "warning")); |
|
202 |
return vi; |
|
203 |
} |
|
204 |
|
|
205 |
} // @jve:decl-index=0:visual-constraint="10,10" |
|
206 |
|
|
207 |
} |
Also available in: Unified diff