Revision 10787
branches/F2/extensions/extJCRS/src/org/gvsig/crs/gui/panels/wizard/DefinirDatum.java | ||
---|---|---|
17 | 17 |
import javax.swing.JRadioButton; |
18 | 18 |
import javax.swing.JTextField; |
19 | 19 |
|
20 |
import com.iver.andami.PluginServices; |
|
20 | 21 |
import com.iver.utiles.swing.JComboBox; |
21 | 22 |
|
22 | 23 |
/** |
... | ... | |
66 | 67 |
|
67 | 68 |
super(); |
68 | 69 |
//TODO:Agregar un icono en gvSig |
69 |
//ImageIcon imodify = new ImageIcon(AddLayer.class.getClassLoader().getResource("images/nombre_imagen.png"));
|
|
70 |
//ImageIcon imodify = new ImageIcon(AddLayer.class.getClassLoader().getResource("images/search.png"));
|
|
70 | 71 |
imodify = new ImageIcon("C:/gvSIGHead/extJCRS/images/search.png"); |
71 | 72 |
this.setLayout(new BorderLayout()); |
72 | 73 |
this.setBorder(BorderFactory.createEmptyBorder(4,4,4,4)); |
... | ... | |
84 | 85 |
JPanel pMeridian=new JPanel(); |
85 | 86 |
pMain.setLayout(new BorderLayout()); |
86 | 87 |
|
87 |
//TODO: Comprobar que funcionan las traducciones correctamente |
|
88 |
|
|
89 |
/*pMain.setBorder(BorderFactory.createTitledBorder(PluginServices.getText(this,"jpDat_nDatum"))); |
|
90 |
pElipsoide.setBorder(BorderFactory.createTitledBorder(PluginServices.getText(this,"jpDat_nElipsoide"))); |
|
91 |
pMeridian.setBorder(BorderFactory.createTitledBorder(PluginServices.getText(this,"jpDat_nMeridian")));*/ |
|
92 |
|
|
93 |
pMain.setBorder(BorderFactory.createTitledBorder("Datum ")); |
|
94 |
pElipsoide.setBorder(BorderFactory.createTitledBorder("Elipsoide ")); |
|
95 |
pMeridian.setBorder(BorderFactory.createTitledBorder("Meridiano ")); |
|
96 |
|
|
88 |
pMain.setBorder(BorderFactory.createTitledBorder(PluginServices.getText(this,"Dat_nDatum"))); |
|
89 |
pElipsoide.setBorder(BorderFactory.createTitledBorder(PluginServices.getText(this,"Dat_nElipsoide"))); |
|
90 |
pMeridian.setBorder(BorderFactory.createTitledBorder(PluginServices.getText(this,"Dat_nMeridian"))); |
|
97 | 91 |
/*Panel que contiene los datos del Datum*/ |
98 | 92 |
pDatum.setLayout(new GridBagLayout()); |
99 | 93 |
GridBagConstraints z=new GridBagConstraints(); |
... | ... | |
205 | 199 |
public JButton getBtnImportDatum() { |
206 | 200 |
if(btnImportDatum==null){ |
207 | 201 |
btnImportDatum=new JButton(); |
208 |
//TODO: Comprobar que funcionan las traducciones |
|
209 |
//btnImportDatum.setText(PluginServices.getText(this, "jpDat_Importar")); |
|
210 |
btnImportDatum.setText("Importar"); |
|
202 |
btnImportDatum.setText(PluginServices.getText(this, "Dat_Importar")); |
|
211 | 203 |
btnImportDatum.setIcon(imodify); |
212 | 204 |
btnImportDatum.addActionListener(this); |
213 | 205 |
} |
... | ... | |
220 | 212 |
public JButton getBtnImportElipsoide() { |
221 | 213 |
if(btnImportElipsoide==null){ |
222 | 214 |
btnImportElipsoide=new JButton(); |
223 |
//TODO: Comprobar que funcionan las traducciones |
|
224 |
//btnImportElipsoide.setText(PluginServices.getText(this, "jpDat_Importar")); |
|
225 |
btnImportElipsoide.setText("Importar"); |
|
215 |
btnImportElipsoide.setText(PluginServices.getText(this, "Dat_Importar")); |
|
226 | 216 |
btnImportElipsoide.setIcon(imodify); |
227 | 217 |
btnImportElipsoide.addActionListener(this); |
228 | 218 |
} |
... | ... | |
235 | 225 |
public JButton getBtnImportMeridian() { |
236 | 226 |
if(btnImportMeridian==null){ |
237 | 227 |
btnImportMeridian=new JButton(); |
238 |
//TODO: Comprobar que funcionan las traducciones |
|
239 |
//btnImportMeridian.setText(PluginServices.getText(this, "jpDat_Importar")); |
|
240 |
btnImportMeridian.setText("Importar"); |
|
228 |
btnImportMeridian.setText(PluginServices.getText(this, "Dat_Importar")); |
|
241 | 229 |
btnImportMeridian.setIcon(imodify); |
242 | 230 |
btnImportMeridian.addActionListener(this); |
243 | 231 |
} |
... | ... | |
317 | 305 |
public JLabel getLblDatum() { |
318 | 306 |
if (lblDatum==null){ |
319 | 307 |
lblDatum=new JLabel(); |
320 |
//TODO: Comprobar que funcionan las traducciones |
|
321 |
//lblDatum.setText(PluginServices.getText(this,"jpDat_Datum")); |
|
322 |
lblDatum.setText("Introduce el Datum"); |
|
308 |
lblDatum.setText(PluginServices.getText(this,"Dat_Datum")); |
|
323 | 309 |
} |
324 | 310 |
return lblDatum; |
325 | 311 |
} |
... | ... | |
330 | 316 |
public JLabel getLblElipsoide() { |
331 | 317 |
if (lblElipsoide==null){ |
332 | 318 |
lblElipsoide=new JLabel(); |
333 |
//TODO: Comprobar que funcionan las traducciones |
|
334 |
//lblElipsoide.setText(PluginServices.getText(this,"jpDat_Elips")); |
|
335 |
lblElipsoide.setText("Introduce el Elipsoide"); |
|
319 |
lblElipsoide.setText(PluginServices.getText(this,"Dat_Elips")); |
|
320 |
//lblElipsoide.setText("Introduce el Elipsoide"); |
|
336 | 321 |
} |
337 | 322 |
return lblElipsoide; |
338 | 323 |
} |
... | ... | |
344 | 329 |
public JLabel getLblLong() { |
345 | 330 |
if (lblLong==null){ |
346 | 331 |
lblLong=new JLabel(); |
347 |
//TODO: Comprobar que funcionan las traducciones |
|
348 |
//lblLong.setText(PluginServices.getText(this,"jpDat_Long")); |
|
349 |
lblLong.setText("Longitud "); |
|
332 |
lblLong.setText(PluginServices.getText(this,"Dat_Long")); |
|
350 | 333 |
} |
351 | 334 |
return lblLong; |
352 | 335 |
} |
... | ... | |
357 | 340 |
public JLabel getLblMeridian() { |
358 | 341 |
if (lblMeridian==null){ |
359 | 342 |
lblMeridian=new JLabel(); |
360 |
//TODO: Comprobar que funcionan las traducciones |
|
361 |
//lblMeridian.setText(PluginServices.getText(this,"jpDat_Meridian")); |
|
362 |
lblMeridian.setText("Introduce el Meridiano"); |
|
343 |
lblMeridian.setText(PluginServices.getText(this,"Dat_Meridian")); |
|
363 | 344 |
} |
364 | 345 |
return lblMeridian; |
365 | 346 |
} |
... | ... | |
372 | 353 |
public JRadioButton getRbInvF() { |
373 | 354 |
if(rbInvF==null){ |
374 | 355 |
rbInvF=new JRadioButton(); |
375 |
//TODO: Comprobar que funcionan las traducciones |
|
376 |
//rbInvF.setToolTipText(PluginServices.getText(this,"jpDat_InvFToolTipText")); |
|
377 |
rbInvF.setToolTipText("Fijar el par?metro Inverse Flat"); |
|
378 |
//rbInvF.setText(PluginServices.getText(this,"jpDat_InvF")); |
|
379 |
rbInvF.setText("Inverse Flat"); |
|
356 |
rbInvF.setToolTipText(PluginServices.getText(this,"Dat_InvFToolTipText")); |
|
357 |
rbInvF.setText(PluginServices.getText(this,"Dat_InvF")); |
|
380 | 358 |
rbInvF.addActionListener(this); |
381 | 359 |
} |
382 | 360 |
return rbInvF; |
... | ... | |
389 | 367 |
public JRadioButton getRbSemMay() { |
390 | 368 |
if(rbSemMay==null){ |
391 | 369 |
rbSemMay=new JRadioButton(); |
392 |
// TODO: Comprobar que funcionan las traducciones |
|
393 |
//rbSemMay.setToolTipText(PluginServices.getText(this,"jpDat_SemMayToolTipText")); |
|
394 |
rbSemMay.setToolTipText("Fijar el par?metro Semieje Mayor"); |
|
395 |
//rbSemMay.setText(PluginServices.getText(this,"jpDat_SemMay")); |
|
396 |
rbSemMay.setText("Semieje Mayor"); |
|
370 |
rbSemMay.setToolTipText(PluginServices.getText(this,"Dat_SemMayToolTipText")); |
|
371 |
rbSemMay.setText(PluginServices.getText(this,"Dat_SemMay")); |
|
397 | 372 |
rbSemMay.addActionListener(this); |
398 | 373 |
} |
399 | 374 |
return rbSemMay; |
... | ... | |
406 | 381 |
public JRadioButton getRbSemMen() { |
407 | 382 |
if(rbSemMen==null){ |
408 | 383 |
rbSemMen=new JRadioButton(); |
409 |
// TODO: Comprobar que funcionan las traducciones |
|
410 |
//rbSemMen.setToolTipText(PluginServices.getText(this,"jpDat_SemMenToolTipText")); |
|
411 |
rbSemMen.setToolTipText("Fijar el par?metro Semieje Menor"); |
|
412 |
//rbSemMen.setText(PluginServices.getText(this,"jpDat_SemMen")); |
|
413 |
rbSemMen.setText("Semieje Menor"); |
|
384 |
rbSemMen.setToolTipText(PluginServices.getText(this,"Dat_SemMenToolTipText")); |
|
385 |
rbSemMen.setText(PluginServices.getText(this,"Dat_SemMen")); |
|
414 | 386 |
rbSemMen.addActionListener(this); |
415 | 387 |
} |
416 | 388 |
return rbSemMen; |
branches/F2/extensions/extJCRS/src/org/gvsig/crs/gui/panels/wizard/DefCrsUsr.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
|
4 | 4 |
import java.awt.BorderLayout; |
5 |
import java.awt.Color; |
|
6 | 5 |
import java.awt.Dimension; |
7 | 6 |
import java.awt.GridBagConstraints; |
8 | 7 |
import java.awt.GridBagLayout; |
... | ... | |
17 | 16 |
import javax.swing.JRadioButton; |
18 | 17 |
import javax.swing.JScrollPane; |
19 | 18 |
import javax.swing.JTextArea; |
20 |
import javax.swing.border.TitledBorder;
|
|
19 |
import com.iver.andami.PluginServices;
|
|
21 | 20 |
|
22 | 21 |
|
23 | 22 |
/** |
... | ... | |
66 | 65 |
public JPanel getPanel() { |
67 | 66 |
if(panel==null){ |
68 | 67 |
panel=new JPanel(); |
69 |
panel.setBorder(new TitledBorder("Definici?n del Crs por el usuario")); |
|
70 | 68 |
panel.setLayout(new GridBagLayout()); |
71 | 69 |
GridBagConstraints c = new GridBagConstraints(); |
72 | 70 |
c.fill = GridBagConstraints.BOTH; |
... | ... | |
142 | 140 |
|
143 | 141 |
public JRadioButton getRbCadenaWkt() { |
144 | 142 |
if (rbCadenaWkt==null){ |
145 |
//TODO:Comprobar las traducciones |
|
146 |
//rbCadenaWkt=new JRadioButton(PluginServices.getText(this,"jpDefCrsUsr_wkt")); |
|
147 |
rbCadenaWkt=new JRadioButton("Crear de una cadena wkt: "); |
|
143 |
rbCadenaWkt=new JRadioButton(PluginServices.getText(this,"DefCrsUsr_wkt")); |
|
148 | 144 |
rbCadenaWkt.addActionListener(this); |
149 | 145 |
} |
150 | 146 |
return rbCadenaWkt; |
... | ... | |
152 | 148 |
|
153 | 149 |
public JRadioButton getRbCrsExistente() { |
154 | 150 |
if (rbCrsExistente==null){ |
155 |
// TODO:Comprobar las traducciones |
|
156 |
//rbCrsExistente=new JRadioButton(PluginServices.getText(this,"jpDefCrsUsr_existente")); |
|
157 |
rbCrsExistente=new JRadioButton("CRS Existente"); |
|
151 |
rbCrsExistente=new JRadioButton(PluginServices.getText(this,"DefCrsUsr_existente")); |
|
158 | 152 |
rbCrsExistente.addActionListener(this); |
159 | 153 |
} |
160 | 154 |
return rbCrsExistente; |
... | ... | |
162 | 156 |
|
163 | 157 |
public JRadioButton getRbNuevoCrs() { |
164 | 158 |
if (rbNuevoCrs==null){ |
165 |
// TODO:Comprobar las traducciones |
|
166 |
//rbNuevoCrs=new JRadioButton(PluginServices.getText(this,"jpDefCrsUsr_nuevo")); |
|
167 |
rbNuevoCrs=new JRadioButton("Crear un nuevo Crs"); |
|
159 |
rbNuevoCrs=new JRadioButton(PluginServices.getText(this,"DefCrsUsr_nuevo")); |
|
168 | 160 |
rbNuevoCrs.addActionListener(this); |
169 | 161 |
} |
170 | 162 |
return rbNuevoCrs; |
... | ... | |
199 | 191 |
btnImportarWkt=new JButton(); |
200 | 192 |
btnImportarWkt.setText("..."); |
201 | 193 |
btnImportarWkt.addActionListener(this); |
202 |
btnImportarWkt.setToolTipText("Importar cadena Wkt");
|
|
194 |
btnImportarWkt.setToolTipText(PluginServices.getText(this,"DefCrsUsr_importar_wkt"));
|
|
203 | 195 |
} |
204 | 196 |
return btnImportarWkt; |
205 | 197 |
} |
... | ... | |
210 | 202 |
d.width=100; |
211 | 203 |
btnCrsExistente.setSize(d); |
212 | 204 |
btnCrsExistente.addActionListener(this); |
213 |
btnCrsExistente.setToolTipText("Seleccionar Crs Existente");
|
|
205 |
btnCrsExistente.setToolTipText(PluginServices.getText(this,"DefCrsUsr_Seleccionar_Crs"));
|
|
214 | 206 |
} |
215 | 207 |
return btnCrsExistente; |
216 | 208 |
} |
branches/F2/extensions/extJCRS/src/org/gvsig/crs/gui/panels/wizard/DefSistCoordenadas.java | ||
---|---|---|
20 | 20 |
import javax.swing.table.DefaultTableModel; |
21 | 21 |
import javax.swing.table.TableColumn; |
22 | 22 |
|
23 |
import com.iver.andami.PluginServices; |
|
23 | 24 |
|
24 | 25 |
|
26 |
|
|
25 | 27 |
/** |
26 | 28 |
* Panel de Definici?n del Sistema de Coordenadas |
27 | 29 |
* |
... | ... | |
75 | 77 |
*/ |
76 | 78 |
public JRadioButton getRbGeografico() { |
77 | 79 |
if (rbGeografico==null){ |
78 |
//TODO:Comprobar que funcionan las traducciones |
|
79 |
//rbGeografico=new JRadioButton(PluginServices.getText(this,"jpSistCoor_Geografico2D")); |
|
80 |
rbGeografico=new JRadioButton("Geogr?fico 2D"); |
|
80 |
rbGeografico=new JRadioButton(PluginServices.getText(this,"SistCoor_Geografico2D")); |
|
81 | 81 |
rbGeografico.addActionListener(this); |
82 | 82 |
} |
83 | 83 |
return rbGeografico; |
... | ... | |
88 | 88 |
*/ |
89 | 89 |
public JRadioButton getRbProyectado() { |
90 | 90 |
if (rbProyectado==null){ |
91 |
//TODO:Comprobar que funcionan las traducciones |
|
92 |
//rbProyectado=new JRadioButton(PluginServices.getText(this,"jpSistCoor_Proyactado")); |
|
93 |
rbProyectado=new JRadioButton("Proyectado"); |
|
91 |
rbProyectado=new JRadioButton(PluginServices.getText(this,"SistCoor_Proyactado")); |
|
94 | 92 |
rbProyectado.addActionListener(this); |
95 | 93 |
} |
96 | 94 |
return rbProyectado; |
... | ... | |
107 | 105 |
b.setHgap(5); |
108 | 106 |
proyectadoPanel=new JPanel(b); |
109 | 107 |
proyectadoPanel.setBorder(BorderFactory.createEmptyBorder(0,3,0,3)); |
110 |
//JPanel p=new JPanel(new FlowLayout(FlowLayout.CENTER,10,10)); |
|
111 | 108 |
JPanel p=new JPanel(new GridLayout(1,0,10,10)); |
112 | 109 |
JPanel in=new JPanel(new FlowLayout(FlowLayout.RIGHT,3,5)); |
113 | 110 |
in.add(getLblProyeccion()); |
... | ... | |
134 | 131 |
top.add(getRbProyectado()); |
135 | 132 |
//Agrupar las opciones |
136 | 133 |
agruparRadioButtons(); |
137 |
//TODO:Comprobar que funcionan las traducciones |
|
138 |
//top.setBorder(new TitledBorder(PluginServices.getText(this,"jpSistCoor_titmarco"))); |
|
139 |
top.setBorder(new TitledBorder("Sistema de Coordenadas ")); |
|
134 |
top.setBorder(new TitledBorder(PluginServices.getText(this,"SistCoor_titmarco"))); |
|
140 | 135 |
} |
141 | 136 |
return top; |
142 | 137 |
} |
... | ... | |
160 | 155 |
public JLabel getLblProyeccion() { |
161 | 156 |
if (lblProyeccion==null){ |
162 | 157 |
lblProyeccion=new JLabel(); |
163 |
//TODO: Comprobar que funcionan las traducciones |
|
164 |
//lblProyeccion.setText(PluginServices.getText(this,"jpSistCoor_Proyeccion")); |
|
165 |
lblProyeccion.setText("Proyecci?n"); |
|
158 |
lblProyeccion.setText(PluginServices.getText(this,"SistCoor_Proyeccion")); |
|
166 | 159 |
} |
167 | 160 |
return lblProyeccion; |
168 | 161 |
} |
... | ... | |
185 | 178 |
{"", "", "Metros"}, |
186 | 179 |
{"", "", "Metros"}, |
187 | 180 |
{"", "", "Metros"}}; |
188 |
//TODO: Comprobar que funcionan las traducciones |
|
189 |
/*String col1=PluginServices.getText(this,"jpSistCoor_Parametro"); |
|
190 |
String col2=PluginServices.getText(this,"jpSistCoor_Valor"); |
|
191 |
String col3=PluginServices.getText(this,"jpSistCoor_Unidades"); |
|
192 |
Object[] headers = {col1, col2, col3};*/ |
|
193 |
Object[] headers = {"Parametro", "Valor", "Unidades"}; |
|
181 |
|
|
182 |
String col1=PluginServices.getText(this,"SistCoor_Parametro"); |
|
183 |
String col2=PluginServices.getText(this,"SistCoor_Valor"); |
|
184 |
String col3=PluginServices.getText(this,"SistCoor_Unidades"); |
|
185 |
Object[] headers = {col1, col2, col3}; |
|
194 | 186 |
model.setDataVector(data,headers); |
195 | 187 |
/*Agrega otra fila |
196 | 188 |
model.addRow(new Object[]{"fila","","Metros"});*/ |
... | ... | |
229 | 221 |
public JComboBox getCbProyeccion() { |
230 | 222 |
if (cbProyeccion==null){ |
231 | 223 |
cbProyeccion=new JComboBox(); |
232 |
//no se pueden modificar los items del combobox |
|
233 | 224 |
cbProyeccion.setEditable(false); |
234 |
//TODO: //Poner texto con plugin services |
|
235 |
//cbProyeccion.setToolTipText(PluginServices.getText(this,"jpSistCoor_cbToolTip")); |
|
236 |
cbProyeccion.setToolTipText("Selecciona una opci?n"); |
|
225 |
cbProyeccion.setToolTipText(PluginServices.getText(this,"SistCoor_cbToolTip")); |
|
237 | 226 |
/*A?adir las opciones al combo*/ |
238 | 227 |
cbProyeccion.addItem("uno"); |
239 | 228 |
cbProyeccion.addItem("dos"); |
branches/F2/extensions/extJCRS/src/org/gvsig/crs/gui/panels/wizard/MainPanel.java | ||
---|---|---|
51 | 51 |
public JButton getBtnAnterior() { |
52 | 52 |
if(btnAnterior==null){ |
53 | 53 |
btnAnterior=new JButton(); |
54 |
//TODO: Establecer las traducciones |
|
55 |
//btnAnterior.setText(PluginServices.getText(this,"clave")); |
|
56 |
btnAnterior.setText("Anterior"); |
|
54 |
btnAnterior.setText(PluginServices.getText(this,"wz_anterior")); |
|
57 | 55 |
btnAnterior.addActionListener(this); |
58 | 56 |
|
59 | 57 |
} |
... | ... | |
66 | 64 |
public JButton getBtnCancelar() { |
67 | 65 |
if(btnCancelar==null){ |
68 | 66 |
btnCancelar=new JButton(); |
69 |
//TODO: Establecer las traducciones |
|
70 |
//btnCancelar.setText(PluginServices.getText(this,"clave")); |
|
71 |
btnCancelar.setText("Cancelar"); |
|
67 |
btnCancelar.setText(PluginServices.getText(this,"wz_cancel")); |
|
72 | 68 |
btnCancelar.addActionListener(this); |
73 | 69 |
} |
74 | 70 |
return btnCancelar; |
... | ... | |
80 | 76 |
public JButton getBtnFinalizar() { |
81 | 77 |
if(btnFinalizar==null){ |
82 | 78 |
btnFinalizar=new JButton(); |
83 |
//TODO: Establecer las traducciones |
|
84 |
//btnFinalizar.setText(PluginServices.getText(this,"clave")); |
|
85 |
btnFinalizar.setText("Finalizar"); |
|
79 |
btnFinalizar.setText(PluginServices.getText(this,"wz_fin")); |
|
86 | 80 |
btnFinalizar.addActionListener(this); |
87 | 81 |
} |
88 | 82 |
return btnFinalizar; |
... | ... | |
94 | 88 |
public JButton getBtnSiguiente() { |
95 | 89 |
if(btnSiguiente==null){ |
96 | 90 |
btnSiguiente=new JButton(); |
97 |
//TODO: Establecer las traducciones |
|
98 |
//btnSiguiente.setText(PluginServices.getText(this,"clave")); |
|
99 |
btnSiguiente.setText("Siguiente"); |
|
91 |
btnSiguiente.setText(PluginServices.getText(this,"wz_siguiente")); |
|
100 | 92 |
btnSiguiente.addActionListener(this); |
101 | 93 |
} |
102 | 94 |
return btnSiguiente; |
... | ... | |
192 | 184 |
} |
193 | 185 |
public WindowInfo getWindowInfo() { |
194 | 186 |
WindowInfo m_viewinfo=new WindowInfo(WindowInfo.MODALDIALOG); |
195 |
//TODO poner clave con plugin Services |
|
196 |
m_viewinfo.setTitle(PluginServices.getText(this,"definicion de nuevo crs por el usuario")); |
|
187 |
m_viewinfo.setTitle(PluginServices.getText(this,"wz_titulo")); |
|
197 | 188 |
m_viewinfo.setWidth(444); |
198 | 189 |
//m_viewinfo.setHeight(425); |
199 | 190 |
m_viewinfo.setHeight(390); |
Also available in: Unified diff