Revision 9467
branches/v10/applications/appgvSIG/config/config.xml | ||
---|---|---|
247 | 247 |
tooltip="guardar" |
248 | 248 |
icon="images/save.png" |
249 | 249 |
position="42"/> |
250 |
|
|
250 |
|
|
251 | 251 |
<tool-bar name="Layout_Tools_Zooms" position="20"> |
252 | 252 |
<selectable-tool icon="images/LayoutZoomIn.png" action-command="ZOOM_IN" tooltip="Zoom_Mas"/> |
253 | 253 |
<selectable-tool icon="images/LayoutZoomOut.png" action-command="ZOOM_OUT" tooltip="Zoom_Menos"/> |
... | ... | |
289 | 289 |
<menu text="Mapa/Insertar/imagen" action-command="RECTANGLEPICTURE" tooltip="insertar_imagen" icon="images/MapaImagen.png"/> |
290 | 290 |
|
291 | 291 |
<menu text="Mapa/Insertar/Vista" action-command="RECTANGLEVIEW" tooltip="insertar_vista" icon="images/MapaVista.png"/> |
292 |
<menu text="Mapa/Insertar/Localizador" action-command="RECTANGLEOVERVIEW" tooltip="insertar_localizador" icon="images/MapaLocalizador.png"/> |
|
293 | 292 |
<menu text="Mapa/Insertar/leyenda" action-command="RECTANGLELEGEND" tooltip="insertar_leyenda" icon="images/MapaLeyenda.png"/> |
294 | 293 |
<menu text="Mapa/Insertar/escala" action-command="RECTANGLESCALEBAR" tooltip="insertar_escala" icon="images/MapaEscala.png"/> |
295 | 294 |
<menu text="Mapa/Insertar/north" action-command="RECTANGLENORTH" tooltip="insertar_norte" icon="images/MapaNorth.png"/> |
... | ... | |
314 | 313 |
|
315 | 314 |
<tool-bar name="Layout_Tools_Insert_Cartografy" position="8"> |
316 | 315 |
<selectable-tool icon="images/MapaVista.png" action-command="RECTANGLEVIEW" tooltip="insertar_vista" position="1"/> |
317 |
<selectable-tool icon="images/MapaLocalizador.png" action-command="RECTANGLEOVERVIEW" tooltip="insertar_localizador" position="2"/> |
|
318 | 316 |
<selectable-tool icon="images/MapaLeyenda.png" action-command="RECTANGLELEGEND" tooltip="insertar_leyenda" position="3"/> |
319 | 317 |
<selectable-tool icon="images/MapaEscala.png" action-command="RECTANGLESCALEBAR" tooltip="insertar_escala" position="4"/> |
320 | 318 |
<selectable-tool icon="images/MapaNorth.png" action-command="RECTANGLENORTH" tooltip="insertar_norte" position="5"/> |
... | ... | |
322 | 320 |
</tool-bar> |
323 | 321 |
</extension> |
324 | 322 |
|
323 |
<extension class-name="com.iver.cit.gvsig.LayoutInsertOverViewExtension" |
|
324 |
description="Extensi?n encargada de insertar un localizador sobre el Layout." |
|
325 |
active="false"> |
|
326 |
<menu text="Mapa/Insertar/Localizador" action-command="RECTANGLEOVERVIEW" tooltip="insertar_localizador" icon="images/MapaLocalizador.png"/> |
|
325 | 327 |
|
326 | 328 |
|
329 |
<tool-bar name="Layout_Tools_Insert_Cartografy" position="8"> |
|
330 |
<selectable-tool icon="images/MapaLocalizador.png" action-command="RECTANGLEOVERVIEW" tooltip="insertar_localizador" position="2"/> |
|
331 |
</tool-bar> |
|
332 |
</extension> |
|
333 |
|
|
327 | 334 |
<extension class-name="com.iver.cit.gvsig.FFrameViewExtension" |
328 | 335 |
description="Extensi?n encargada de gestionar los eventos realizados sobre las vistas a?adidas al Layout." |
329 | 336 |
active="true"> |
branches/v10/applications/appgvSIG/src/com/iver/cit/gvsig/LayoutInsertOverViewExtension.java | ||
---|---|---|
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
2 |
* |
|
3 |
* Copyright (C) 2004 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 |
package com.iver.cit.gvsig; |
|
42 |
|
|
43 |
import com.iver.andami.PluginServices; |
|
44 |
import com.iver.andami.plugins.Extension; |
|
45 |
import com.iver.andami.ui.mdiManager.IWindow; |
|
46 |
import com.iver.cit.gvsig.gui.layout.Layout; |
|
47 |
|
|
48 |
|
|
49 |
/** |
|
50 |
* Extensi?n para insertar un localizador sobre el Layout. |
|
51 |
* |
|
52 |
* @author Vicente Caballero Navarro |
|
53 |
*/ |
|
54 |
public class LayoutInsertOverViewExtension extends Extension { |
|
55 |
private Layout layout = null; |
|
56 |
|
|
57 |
|
|
58 |
public void initialize() { |
|
59 |
// TODO Auto-generated method stub |
|
60 |
} |
|
61 |
|
|
62 |
|
|
63 |
public void execute(String s) { |
|
64 |
layout = (Layout) PluginServices.getMDIManager().getActiveWindow(); |
|
65 |
|
|
66 |
if (s.equals("RECTANGLEOVERVIEW")) { |
|
67 |
layout.setTool(Layout.RECTANGLEOVERVIEW); |
|
68 |
} |
|
69 |
} |
|
70 |
|
|
71 |
|
|
72 |
public boolean isEnabled() { |
|
73 |
IWindow f = PluginServices.getMDIManager().getActiveWindow(); |
|
74 |
|
|
75 |
if (f == null) { |
|
76 |
return false; |
|
77 |
} |
|
78 |
|
|
79 |
if (f instanceof Layout) { |
|
80 |
return ((Layout) f).isEditable(); |
|
81 |
} |
|
82 |
|
|
83 |
return false; |
|
84 |
} |
|
85 |
|
|
86 |
|
|
87 |
public boolean isVisible() { |
|
88 |
IWindow f = PluginServices.getMDIManager().getActiveWindow(); |
|
89 |
|
|
90 |
if (f == null) { |
|
91 |
return false; |
|
92 |
} |
|
93 |
|
|
94 |
if (f instanceof Layout) { |
|
95 |
return true; |
|
96 |
} else { |
|
97 |
return false; |
|
98 |
} |
|
99 |
} |
|
100 |
} |
|
0 | 101 |
branches/v10/applications/appgvSIG/src/com/iver/cit/gvsig/LayoutInsertToolsExtension.java | ||
---|---|---|
74 | 74 |
} else if (s.equals("RECTANGLEVIEW")) { |
75 | 75 |
layout.setTool(Layout.RECTANGLEVIEW); |
76 | 76 |
insertGroupPosibility=true; |
77 |
} else if (s.equals("RECTANGLEOVERVIEW")) { |
|
78 |
layout.setTool(Layout.RECTANGLEOVERVIEW); |
|
79 |
insertGroupPosibility=true; |
|
80 | 77 |
} else if (s.equals("RECTANGLEPICTURE")) { |
81 | 78 |
layout.setTool(Layout.RECTANGLEPICTURE); |
82 | 79 |
insertGroupPosibility=true; |
Also available in: Unified diff