Revision 1018
org.gvsig.scripting/tags/org.gvsig.scripting-2.3.61/org.gvsig.scripting.app/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
|
|
3 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
4 |
<modelVersion>4.0.0</modelVersion> |
|
5 |
<artifactId>org.gvsig.scripting.app</artifactId> |
|
6 |
<packaging>pom</packaging> |
|
7 |
<name>${project.artifactId}</name> |
|
8 |
<parent> |
|
9 |
<groupId>org.gvsig</groupId> |
|
10 |
<artifactId>org.gvsig.scripting</artifactId> |
|
11 |
<version>2.3.61</version> |
|
12 |
</parent> |
|
13 |
|
|
14 |
<modules> |
|
15 |
<module>org.gvsig.scripting.app.mainplugin</module> |
|
16 |
</modules> |
|
17 |
</project> |
org.gvsig.scripting/tags/org.gvsig.scripting-2.3.61/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
|
|
3 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
4 |
<modelVersion>4.0.0</modelVersion> |
|
5 |
<artifactId>org.gvsig.scripting.app.mainplugin</artifactId> |
|
6 |
<packaging>jar</packaging> |
|
7 |
<name>${project.artifactId}</name> |
|
8 |
<description><![CDATA[ |
|
9 |
This plugin provides support for scripting to gvSIG. |
|
10 |
Among other things it contains: |
|
11 |
|
|
12 |
- The gvSIG scripting engine |
|
13 |
- The gvSIG script editor |
|
14 |
- Script engines for: |
|
15 |
- Jython |
|
16 |
- Groovy |
|
17 |
- javascript |
|
18 |
- Renjin |
|
19 |
|
|
20 |
- The script install module for the add-on manager. |
|
21 |
- Utilities to generate packages of complements with our scripts. |
|
22 |
- Python libraries as: |
|
23 |
- Six - Utilities for writing code that runs on Python 2 and 3 |
|
24 |
- PyLint - Python source code analyzer |
|
25 |
- Pygments - syntax highlighting package |
|
26 |
- CSSUtils - CSS Cascading Style Sheets library |
|
27 |
- Docutils - Python Documentation Utilities |
|
28 |
- geopy - client for several popular geocoding web services |
|
29 |
- PyInliner - CSS-to-inline-styles conversion tool for HTML |
|
30 |
- Statistics - functions for calculating statistics of data |
|
31 |
- Cartodb - simple CartoDB client to perform requests against the CartoDB API |
|
32 |
|
|
33 |
- Java libraries to use from scripting like: |
|
34 |
- Abeille forms deseigner |
|
35 |
- jOpenDocument |
|
36 |
- JNumeric |
|
37 |
- CSSBox |
|
38 |
|
|
39 |
|
|
40 |
This plugin can be configured to be preinstalled automatically, allowing |
|
41 |
"Script" type plugins to be installed during the application installation process. |
|
42 |
To do this, the following entries must be added to the "packages.properties" |
|
43 |
of gvspks:: |
|
44 |
|
|
45 |
installers=scripts |
|
46 |
installer.scripts.initializer=org.gvsig.scripting.app.extension.ScriptsInstallerInitializer |
|
47 |
installer.scripts.package.code=org.gvsig.scripting.app.mainplugin |
|
48 |
installer.scripts.factory.name=Script |
|
49 |
installer.scripts.libs=lib |
|
50 |
|
|
51 |
If the "installers" entry already exists, add "scripts" to the end separating |
|
52 |
it with a space. |
|
53 |
|
|
54 |
]]></description> |
|
55 |
<parent> |
|
56 |
<groupId>org.gvsig</groupId> |
|
57 |
<artifactId>org.gvsig.scripting.app</artifactId> |
|
58 |
<version>2.3.61</version> |
|
59 |
</parent> |
|
60 |
<dependencies> |
|
61 |
<dependency> |
|
62 |
<groupId>org.gvsig</groupId> |
|
63 |
<artifactId>org.gvsig.tools.lib</artifactId> |
|
64 |
<scope>compile</scope> |
|
65 |
</dependency> |
|
66 |
<dependency> |
|
67 |
<groupId>org.gvsig</groupId> |
|
68 |
<artifactId>org.gvsig.tools.lib</artifactId> |
|
69 |
<type>test-jar</type> |
|
70 |
<scope>test</scope> |
|
71 |
</dependency> |
|
72 |
<dependency> |
|
73 |
<groupId>org.gvsig</groupId> |
|
74 |
<artifactId>org.gvsig.i18n</artifactId> |
|
75 |
<scope>compile</scope> |
|
76 |
</dependency> |
|
77 |
<dependency> |
|
78 |
<groupId>org.gvsig</groupId> |
|
79 |
<artifactId>org.gvsig.andami</artifactId> |
|
80 |
<scope>compile</scope> |
|
81 |
</dependency> |
|
82 |
<dependency> |
|
83 |
<groupId>org.gvsig</groupId> |
|
84 |
<artifactId>org.gvsig.app.document.table.app.mainplugin</artifactId> |
|
85 |
<scope>compile</scope> |
|
86 |
</dependency> |
|
87 |
<dependency> |
|
88 |
<groupId>org.gvsig</groupId> |
|
89 |
<artifactId>org.gvsig.app.mainplugin</artifactId> |
|
90 |
<scope>compile</scope> |
|
91 |
</dependency> |
|
92 |
<dependency> |
|
93 |
<groupId>org.gvsig</groupId> |
|
94 |
<artifactId>org.gvsig.tools.swing.impl</artifactId> |
|
95 |
<scope>compile</scope> |
|
96 |
</dependency> |
|
97 |
<dependency> |
|
98 |
<groupId>org.gvsig</groupId> |
|
99 |
<artifactId>org.gvsig.about.api</artifactId> |
|
100 |
<scope>compile</scope> |
|
101 |
</dependency> |
|
102 |
<dependency> |
|
103 |
<groupId>org.gvsig</groupId> |
|
104 |
<artifactId>org.gvsig.scripting.lib.api</artifactId> |
|
105 |
<scope>compile</scope> |
|
106 |
</dependency> |
|
107 |
<dependency> |
|
108 |
<groupId>org.gvsig</groupId> |
|
109 |
<artifactId>org.gvsig.scripting.swing.api</artifactId> |
|
110 |
<scope>compile</scope> |
|
111 |
</dependency> |
|
112 |
<dependency> |
|
113 |
<groupId>org.gvsig</groupId> |
|
114 |
<artifactId>org.gvsig.scripting.lib.impl</artifactId> |
|
115 |
<scope>compile</scope> |
|
116 |
</dependency> |
|
117 |
<dependency> |
|
118 |
<groupId>org.gvsig</groupId> |
|
119 |
<artifactId>org.gvsig.scripting.swing.impl</artifactId> |
|
120 |
<scope>compile</scope> |
|
121 |
</dependency> |
|
122 |
|
|
123 |
<!-- force adding --> |
|
124 |
<dependency> |
|
125 |
<groupId>org.ini4j</groupId> |
|
126 |
<artifactId>ini4j</artifactId> |
|
127 |
<scope>runtime</scope> |
|
128 |
</dependency> |
|
129 |
<dependency> |
|
130 |
<groupId>net.sourceforge.thinlet</groupId> |
|
131 |
<artifactId>thinlet</artifactId> |
|
132 |
<scope>runtime</scope> |
|
133 |
</dependency> |
|
134 |
<dependency> |
|
135 |
<groupId>org.gvsig</groupId> |
|
136 |
<artifactId>org.gvsig.scripting.thing</artifactId> |
|
137 |
<scope>runtime</scope> |
|
138 |
</dependency> |
|
139 |
<dependency> |
|
140 |
<groupId>com.jeta</groupId> |
|
141 |
<artifactId>abeille</artifactId> |
|
142 |
<type>tar.gz</type> |
|
143 |
<scope>runtime</scope> |
|
144 |
</dependency> |
|
145 |
<dependency> |
|
146 |
<groupId>org.jopendocument</groupId> |
|
147 |
<artifactId>jOpenDocument</artifactId> |
|
148 |
<scope>runtime</scope> |
|
149 |
</dependency> |
|
150 |
<dependency> |
|
151 |
<groupId>com.github.tbekolay.jnumeric</groupId> |
|
152 |
<artifactId>jnumeric</artifactId> |
|
153 |
<scope>runtime</scope> |
|
154 |
</dependency> |
|
155 |
|
|
156 |
<dependency> |
|
157 |
<groupId>org.apache.tika</groupId> |
|
158 |
<artifactId>tika-core</artifactId> |
|
159 |
<scope>runtime</scope> |
|
160 |
</dependency> |
|
161 |
|
|
162 |
<dependency> |
|
163 |
<groupId>org.python</groupId> |
|
164 |
<artifactId>${jython.artifactId}</artifactId> |
|
165 |
<scope>runtime</scope> |
|
166 |
</dependency> |
|
167 |
<dependency> |
|
168 |
<groupId>org.codehaus.groovy</groupId> |
|
169 |
<artifactId>groovy-all</artifactId> |
|
170 |
<scope>runtime</scope> |
|
171 |
</dependency> |
|
172 |
<dependency> |
|
173 |
<groupId>org.renjin</groupId> |
|
174 |
<artifactId>renjin-script-engine</artifactId> |
|
175 |
<classifier>jar-with-dependencies</classifier> |
|
176 |
<scope>runtime</scope> |
|
177 |
</dependency> |
|
178 |
|
|
179 |
<!-- |
|
180 |
<dependency> |
|
181 |
<groupId>org.scala-lang</groupId> |
|
182 |
<artifactId>scala-dist</artifactId> |
|
183 |
<scope>runtime</scope> |
|
184 |
</dependency> |
|
185 |
<dependency> |
|
186 |
<groupId>org.scala-lang</groupId> |
|
187 |
<artifactId>scala-compiler</artifactId> |
|
188 |
<scope>runtime</scope> |
|
189 |
</dependency> |
|
190 |
<dependency> |
|
191 |
<groupId>org.scala-lang</groupId> |
|
192 |
<artifactId>scala-library</artifactId> |
|
193 |
<scope>runtime</scope> |
|
194 |
</dependency> |
|
195 |
<dependency> |
|
196 |
<groupId>org.scala-lang</groupId> |
|
197 |
<artifactId>scala-reflect</artifactId> |
|
198 |
<scope>runtime</scope> |
|
199 |
</dependency> |
|
200 |
<dependency> |
|
201 |
<groupId>org.scala-lang</groupId> |
|
202 |
<artifactId>scalap</artifactId> |
|
203 |
<scope>runtime</scope> |
|
204 |
</dependency> |
|
205 |
--> |
|
206 |
<dependency> |
|
207 |
<groupId>jline</groupId> |
|
208 |
<artifactId>jline</artifactId> |
|
209 |
<scope>runtime</scope> |
|
210 |
</dependency> |
|
211 |
<dependency> |
|
212 |
<groupId>net.sf.cssbox</groupId> |
|
213 |
<artifactId>swingbox</artifactId> |
|
214 |
<scope>runtime</scope> |
|
215 |
</dependency> |
|
216 |
<dependency> |
|
217 |
<groupId>net.sf.cssbox</groupId> |
|
218 |
<artifactId>cssbox</artifactId> |
|
219 |
<scope>runtime</scope> |
|
220 |
</dependency> |
|
221 |
|
|
222 |
<dependency> |
|
223 |
<groupId>net.sourceforge.nekohtml</groupId> |
|
224 |
<artifactId>nekohtml</artifactId> |
|
225 |
<scope>runtime</scope> |
|
226 |
</dependency> |
|
227 |
<dependency> |
|
228 |
<groupId>net.sf.cssbox</groupId> |
|
229 |
<artifactId>jstyleparser</artifactId> |
|
230 |
<scope>runtime</scope> |
|
231 |
</dependency> |
|
232 |
<dependency> |
|
233 |
<groupId>org.antlr</groupId> |
|
234 |
<artifactId>antlr-runtime</artifactId> |
|
235 |
<!-- Ojo que forzamos una version en concreto --> |
|
236 |
<version>3.5.2</version> |
|
237 |
</dependency> |
|
238 |
|
|
239 |
<!-- JGit runtime dependencies --> |
|
240 |
<dependency> |
|
241 |
<groupId>org.eclipse.jgit</groupId> |
|
242 |
<artifactId>org.eclipse.jgit</artifactId> |
|
243 |
<scope>runtime</scope> |
|
244 |
</dependency> |
|
245 |
|
|
246 |
<dependency> |
|
247 |
<groupId>org.icepdf.os</groupId> |
|
248 |
<artifactId>icepdf-viewer</artifactId> |
|
249 |
<version>6.2.2</version> |
|
250 |
<exclusions> |
|
251 |
<exclusion> |
|
252 |
<groupId>batik</groupId> |
|
253 |
<artifactId>batik-awt-util</artifactId> |
|
254 |
</exclusion> |
|
255 |
<exclusion> |
|
256 |
<groupId>batik</groupId> |
|
257 |
<artifactId>batik-dom</artifactId> |
|
258 |
</exclusion> |
|
259 |
<exclusion> |
|
260 |
<groupId>batik</groupId> |
|
261 |
<artifactId>batik-svg-dom</artifactId> |
|
262 |
</exclusion> |
|
263 |
<exclusion> |
|
264 |
<groupId>batik</groupId> |
|
265 |
<artifactId>batik-svggen</artifactId> |
|
266 |
</exclusion> |
|
267 |
<exclusion> |
|
268 |
<groupId>batik</groupId> |
|
269 |
<artifactId>batik-util</artifactId> |
|
270 |
</exclusion> |
|
271 |
<exclusion> |
|
272 |
<groupId>batik</groupId> |
|
273 |
<artifactId>batik-xml</artifactId> |
|
274 |
</exclusion> |
|
275 |
</exclusions> |
|
276 |
|
|
277 |
</dependency> |
|
278 |
|
|
279 |
<dependency> |
|
280 |
<groupId>com.vladsch.flexmark</groupId> |
|
281 |
<artifactId>flexmark-all</artifactId> |
|
282 |
<version>0.27.0</version> |
|
283 |
</dependency> |
|
284 |
|
|
285 |
</dependencies> |
|
286 |
|
|
287 |
|
|
288 |
<properties> |
|
289 |
<gvsig.package.info.name>Scripting framework</gvsig.package.info.name> |
|
290 |
<gvsig.package.info.dependencies>required: org.gvsig.app.document.table.app.mainplugin -ge 2</gvsig.package.info.dependencies> |
|
291 |
<gvsig.package.info.poolURL>https://devel.gvsig.org/download/projects/gvsig-scripting/pool</gvsig.package.info.poolURL> |
|
292 |
<gvsig.package.info.sourcesURL>https://devel.gvsig.org/svn/gvsig-scripting</gvsig.package.info.sourcesURL> |
|
293 |
<gvsig.package.info.state>testing</gvsig.package.info.state> |
|
294 |
<gvsig.package.info.categories>Development</gvsig.package.info.categories> |
|
295 |
<gvsig.package.info.official>true</gvsig.package.info.official> |
|
296 |
|
|
297 |
</properties> |
|
298 |
|
|
299 |
<build> |
|
300 |
<plugins> |
|
301 |
|
|
302 |
<plugin> |
|
303 |
<groupId>org.apache.maven.plugins</groupId> |
|
304 |
<artifactId>maven-dependency-plugin</artifactId> |
|
305 |
<executions> |
|
306 |
<execution> |
|
307 |
<id>unpack</id> |
|
308 |
<phase>process-sources</phase> |
|
309 |
<goals> |
|
310 |
<goal>unpack</goal> |
|
311 |
</goals> |
|
312 |
<configuration> |
|
313 |
<artifactItems> |
|
314 |
<artifactItem> |
|
315 |
<groupId>com.jeta</groupId> |
|
316 |
<artifactId>abeille</artifactId> |
|
317 |
<version>2.1.0.M3</version> |
|
318 |
<type>tar.gz</type> |
|
319 |
<overWrite>true</overWrite> |
|
320 |
<outputDirectory>target/abeille</outputDirectory> |
|
321 |
</artifactItem> |
|
322 |
</artifactItems> |
|
323 |
</configuration> |
|
324 |
</execution> |
|
325 |
</executions> |
|
326 |
</plugin> |
|
327 |
|
|
328 |
</plugins> |
|
329 |
</build> |
|
330 |
|
|
331 |
</project> |
org.gvsig.scripting/tags/org.gvsig.scripting-2.3.61/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/buildNumber.properties | ||
---|---|---|
1 |
#Wed May 09 11:49:37 CEST 2018 |
|
2 |
buildNumber=136 |
org.gvsig.scripting/tags/org.gvsig.scripting-2.3.61/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/test/java/org/gvsig/scripting/app/extension/AppTest.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
|
|
23 |
package org.gvsig.scripting.app.extension; |
|
24 |
|
|
25 |
import junit.framework.Test; |
|
26 |
import junit.framework.TestCase; |
|
27 |
import junit.framework.TestSuite; |
|
28 |
|
|
29 |
/** |
|
30 |
* Unit test for simple App. |
|
31 |
*/ |
|
32 |
public class AppTest |
|
33 |
extends TestCase |
|
34 |
{ |
|
35 |
/** |
|
36 |
* Create the test case |
|
37 |
* |
|
38 |
* @param testName name of the test case |
|
39 |
*/ |
|
40 |
public AppTest( String testName ) |
|
41 |
{ |
|
42 |
super( testName ); |
|
43 |
} |
|
44 |
|
|
45 |
/** |
|
46 |
* @return the suite of tests being tested |
|
47 |
*/ |
|
48 |
public static Test suite() |
|
49 |
{ |
|
50 |
return new TestSuite( AppTest.class ); |
|
51 |
} |
|
52 |
|
|
53 |
/** |
|
54 |
* Rigourous Test :-) |
|
55 |
*/ |
|
56 |
public void testApp() |
|
57 |
{ |
|
58 |
assertTrue( true ); |
|
59 |
} |
|
60 |
} |
org.gvsig.scripting/tags/org.gvsig.scripting-2.3.61/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/resources-plugin/plugin-persistence.def | ||
---|---|---|
1 |
<?xml version="1.0"?> |
|
2 |
<!-- |
|
3 |
Definitions of plugin persistence org.gvsig.scripting.app.mainplugin. |
|
4 |
--> |
|
5 |
<definitions> |
|
6 |
<version>1.0.0</version> |
|
7 |
<classes> |
|
8 |
<class name="org.gvsig.scripting.app.mainplugin"> |
|
9 |
<description>Persistence of scripting plugin</description> |
|
10 |
<fields> |
|
11 |
<field name="ComposerUseHisWindowManager" type="boolean" mandatory="true" defaultValue="true"> |
|
12 |
<description>When true the composer use his window manager instead of the gvSIG Window manager.</description> |
|
13 |
</field> |
|
14 |
</fields> |
|
15 |
</class> |
|
16 |
</classes> |
|
17 |
</definitions> |
org.gvsig.scripting/tags/org.gvsig.scripting-2.3.61/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/resources-plugin/i18n/text.properties | ||
---|---|---|
1 |
_Scripting=Scripting |
|
2 |
_Show_scripting_launcher=Abrir lanzador de scripts |
|
3 |
_Show_scripting_composer=Abrir editor de scripts |
|
4 |
_Show_scripting_jython_console=Abrir consola Jython |
|
5 |
|
|
6 |
User=Usuario |
|
7 |
System=Sistema |
|
8 |
|
|
9 |
Accept=Aceptar |
|
10 |
Cancel=Cancelar |
|
11 |
Apply=Aplicar |
|
12 |
|
|
13 |
Retrieving_data=Recibiendo datos... |
|
14 |
|
|
15 |
File=Fichero |
|
16 |
New=Nuevo |
|
17 |
Close_document=Cerrar documento |
|
18 |
Close_all_documents=Cerrar todos los documentos |
|
19 |
Run=Ejecutar |
|
20 |
Save=Guardar |
|
21 |
Close=Cerrar |
|
22 |
Close_current_tab=Cerrar pesta\u00f1a actual |
|
23 |
Open_edition_mode=Abrir modo edici\u00f3n |
|
24 |
Run_selected_script=Ejecutar script seleccionado |
|
25 |
Delete_selected_script=Borrar script seleccionado |
|
26 |
Refresh_directories=Actualizar carpetas |
|
27 |
Move_files=Mover ficheros |
|
28 |
Set_file_preferences=Editar preferencias de fichero |
|
29 |
|
|
30 |
|
|
31 |
Edit=Editar |
|
32 |
Cut=Cortar |
|
33 |
Copy=Copiar |
|
34 |
Paste=Pegar |
|
35 |
Select_all=Seleccionar todo |
|
36 |
|
|
37 |
Tools=Herramientas |
|
38 |
Launcher=Lanzador de scripts |
|
39 |
Scripting_Launcher=Lanzador de scripts |
|
40 |
Scripting_Composer=Editor de scripts |
|
41 |
Jython_Console=Consola Jython |
|
42 |
Import_JavaDoc=Importar JavaDoc |
|
43 |
JavaDoc=Ayuda de Java (JavaDoc) |
|
44 |
Remove_JavaDoc=Eliminar JavaDoc |
|
45 |
Help_contents=Contenido de la ayuda |
|
46 |
About_scripts_editor=Acerca del editor de scripts |
|
47 |
Get_help=Ayuda |
|
48 |
Help=Ayuda |
|
49 |
_Package_script=Empaquetar script... |
|
50 |
_Package_help=Empaquetar ayuda... |
|
51 |
|
|
52 |
Problems=Errores |
|
53 |
Console=Consola |
|
54 |
|
|
55 |
Description=Descripci\u00f3n |
|
56 |
Resource=Recurso |
|
57 |
Location=Ubicaci\u00f3n |
|
58 |
|
|
59 |
no_line=sin l\u00ednea |
|
60 |
Line=L\u00ednea |
|
61 |
|
|
62 |
Welcome_message=Bienvenido al entorno de scripting |
|
63 |
|
|
64 |
Error_opening_in_edition_mode_title=Error al abrir fichero |
|
65 |
Error_opening_in_edition_mode=No se pudo abrir el fichero en modo edici\u00f3n |
|
66 |
|
|
67 |
New_Script=Nuevo elemento |
|
68 |
New_Script_Description=Crea un nuevo script, di\u00e1logo, proyecto, directorio |
|
69 |
|
|
70 |
Deleting_JavaDocs_successfully_title=Operaci\u00f3n realizada con \u00e9xito |
|
71 |
Deleting_JavaDocs_successfully=Eliminaci\u00f3n de los JavaDocs exitosa |
|
72 |
|
|
73 |
Import_JavaDoc_title=Importar JavaDocs desde los directorios de sistema al ScriptingFramework JavaDoc |
|
74 |
Remove_JavaDoc_title=Eliminar JavaDocs del ScriptingFramework JavaDoc |
|
75 |
|
|
76 |
projects_modified_title=Proyectos sin guardar |
|
77 |
projects_modified=Algunos proyectos han sido modificados.\u00bfSalvar cambios? |
|
78 |
project_modified=ha sido modificado.\u00bfSalvar cambios? |
|
79 |
|
|
80 |
Delete_all_title=Borrar el documento |
|
81 |
Delete_all_message=Esta acci\u00f3n elimina el documento o el directorio con todo su contenido. \u00bf Desea continuar ? |
|
82 |
|
|
83 |
About_us_title=Informaci\u00f3n de todos los contribuidores al proyecto gvSIG |
|
84 |
|
|
85 |
Success=Operaci\u00f3n realizada con \u00e9xito |
|
86 |
Error=Error |
|
87 |
Error_renaming=Inesperado error renombrando el fichero |
|
88 |
Error_moving=Inesperado error moviendo el fichero |
|
89 |
Error_help=Selecciona una ayuda |
|
90 |
Rename_succesfully=Renombrado del fichero realizado con \u00e9xito |
|
91 |
Select_first=Debe seleccionar un fichero primero |
|
92 |
help_key=No hay ayuda para el texto |
|
93 |
|
|
94 |
|
|
95 |
script_filesystem=script en el \u00e1rbol de directorio |
|
96 |
Move=Mover |
|
97 |
move_desc=Cambia la ubicaci\u00f3n del fichero seleccionado |
|
98 |
Rename=Renombrar |
|
99 |
rename_desc=Cambia el nombre y otras propiedades del fichero seleccionado |
|
100 |
Moving_succesfully=Reubicaci\u00f3n del fichero realizado con \u00e9xito |
|
101 |
|
|
102 |
Dialog=Di\u00e1logo |
|
103 |
Code=C\u00f3digo |
|
104 |
Properties=Propiedades |
|
105 |
|
|
106 |
current_name=Nombre actual |
|
107 |
new_name=Nuevo name |
|
108 |
rename_name_title=Cambiar el nombre del fichero |
|
109 |
more_properties=M\u00e1s propiedades |
|
110 |
|
|
111 |
Javadoc_remove=Selecciona el JavaDoc a eliminar |
|
112 |
no_Javadoc_remove=No hay JavaDoc para eliminar |
|
113 |
|
|
114 |
Name=Nombre |
|
115 |
Version=Versi\u00f3n |
|
116 |
Created_by=Creado por |
|
117 |
Description=Descripci\u00f3n |
|
118 |
Type=Tipo |
|
119 |
Language=Lenguaje |
|
120 |
Author=Autor |
|
121 |
Move_from=Mover desde |
|
122 |
Move_to=Destino |
|
123 |
Browse=Abrir |
|
124 |
Import_from=Importar desde |
|
125 |
|
|
126 |
Name_blank=El nombre no puede estar en blanco |
|
127 |
Name_exists=Este nombre ya existe. Debe elegir otro |
|
128 |
Import_success=Los JavaDocs se han importado satisfactoriamente |
|
129 |
JavaDoc_Error=Selecciona JavaDoc a importar |
|
130 |
|
|
131 |
go_to_line_Xhorizontal_ellipsisX=Ir a la l\u00ednea\u2026 |
|
132 |
find_Xhorizontal_ellipsisX=Buscar\u2026 |
|
133 |
replace_Xhorizontal_ellipsisX=Reemplazar\u2026 |
|
134 |
_Searching_autorun_scripts_Xhorizontal_ellipsisX=Buscando scripts de autoarranque... |
|
135 |
_Running_autorun_script_from_XnameX=Ejecutando script de autoarranque desde "{0}" |
|
136 |
_The_script_XscriptnameX_is_modified=El script "{0}" ha sido modificado. |
|
137 |
_Save_changes_XquestionX=\u00bf Guardar cambios ? |
|
138 |
_Do_you_want_to_save_changes_XquestionX=\u00bf Desea guardar los cambios ? |
|
139 |
|
|
140 |
_notice=Aviso |
|
141 |
_Initializing_the_scripting_plugin_Xhorizontal_ellipsisX=Inicializando el plugin de scripting... |
|
142 |
_Waiting_to_terminate=Esperando que termine. |
org.gvsig.scripting/tags/org.gvsig.scripting-2.3.61/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/resources-plugin/i18n/text_en.properties | ||
---|---|---|
1 |
_Scripting=Scripting |
|
2 |
_Show_scripting_launcher=Show scripting launcher |
|
3 |
_Show_scripting_composer=Show scripting composer |
|
4 |
_Show_scripting_jython_console=Show Jython console |
|
5 |
|
|
6 |
User=User |
|
7 |
System=System |
|
8 |
|
|
9 |
Accept=Accept |
|
10 |
Cancel=Cancel |
|
11 |
Apply=Apply |
|
12 |
|
|
13 |
Retrieving_data=Retrieving data... |
|
14 |
|
|
15 |
File=File |
|
16 |
New=New |
|
17 |
Close_document=Close document |
|
18 |
Close_all_documents=Cloase all documents |
|
19 |
Run=Run |
|
20 |
Save=Save |
|
21 |
Close=Close |
|
22 |
Close_current_tab=Close current tab |
|
23 |
Open_edition_mode=Open edition mode |
|
24 |
Run_selected_script=Run selected script |
|
25 |
Delete_selected_script=Delete selected script |
|
26 |
Refresh_directories=Refresh directories |
|
27 |
Move_files=Move files |
|
28 |
Set_file_preferences=Set file preferences |
|
29 |
_Running_autorun_script_from_XnameX=Running autorun script from {0} |
|
30 |
|
|
31 |
Edit=Edit |
|
32 |
Cut=Cut |
|
33 |
Copy=Copy |
|
34 |
Paste=Paste |
|
35 |
Select_all=Select all |
|
36 |
|
|
37 |
Tools=Tools |
|
38 |
Launcher=Scripting Launcher |
|
39 |
Scripting_Launcher=Scripting Launcher |
|
40 |
Scripting_Composer=Scripting Composer |
|
41 |
Jython_Console=Jython console |
|
42 |
Import_JavaDoc=Import JavaDoc |
|
43 |
JavaDoc=Java Help (JavaDoc) |
|
44 |
Remove_JavaDoc=Remove JavaDoc |
|
45 |
Help_contents=Help contents |
|
46 |
About_scripts_editor=About scripts editor |
|
47 |
Get_help=Help |
|
48 |
Help=Help |
|
49 |
_Package_script=Package script... |
|
50 |
_Package_help=Package help... |
|
51 |
|
|
52 |
Problems=Errors |
|
53 |
Console=Console |
|
54 |
|
|
55 |
Description=Description |
|
56 |
Resource=Resource |
|
57 |
Location=Location |
|
58 |
|
|
59 |
no_line=no line |
|
60 |
Line=Line |
|
61 |
|
|
62 |
Welcome_message=Welcome to the scripting framework |
|
63 |
|
|
64 |
Error_opening_in_edition_mode_title=Error opening file in edition mode |
|
65 |
Error_opening_in_edition_mode=The file can't be opened in edition mode |
|
66 |
|
|
67 |
New_Script=New element |
|
68 |
New_Script_Description=Create a new script, dialog, project, directory |
|
69 |
|
|
70 |
Deleting_JavaDocs_successfully_title=Operation successful |
|
71 |
Deleting_JavaDocs_successfully=Deleting JavaDocs successfully |
|
72 |
|
|
73 |
Import_JavaDoc_title=Import JavaDocs from filesystem to ScriptingFramework JavaDoc |
|
74 |
Remove_JavaDoc_title=Remove JavaDocs from ScriptingFramework JavaDoc |
|
75 |
|
|
76 |
projects_modified_title=Projects without saving |
|
77 |
projects_modified=Some projects have been modified. Save changes? |
|
78 |
project_modified=has been modified. Save changes? |
|
79 |
|
|
80 |
Delete_all_title=Delete document |
|
81 |
Delete_all_message=This action removes the document or directory with all its content. Do you wish to continue ? |
|
82 |
|
|
83 |
About_us_title=Information about all the gvSIG's contributors |
|
84 |
|
|
85 |
Success=Operation done successfully |
|
86 |
Error=Error |
|
87 |
Error_renaming=Unexpected error renaming the file |
|
88 |
Error_moving=Unexpected error moving the file |
|
89 |
Error_help=Select help |
|
90 |
Rename_succesfully=Renaming successfully |
|
91 |
Select_first=Select a file first |
|
92 |
help_key=There isn't any help to this text |
|
93 |
|
|
94 |
|
|
95 |
script_filesystem=script filesystem |
|
96 |
Move=Move |
|
97 |
move_desc=Change location of selected file |
|
98 |
Rename=Rename |
|
99 |
rename_desc=Change the name and more properties of the selected file |
|
100 |
Moving_succesfully=File moved succesfully |
|
101 |
|
|
102 |
Dialog=Dialog |
|
103 |
Code=Code |
|
104 |
Properties=Properties |
|
105 |
|
|
106 |
current_name=Current name |
|
107 |
new_name=New name |
|
108 |
rename_name_title=Change filename |
|
109 |
more_properties=more properties |
|
110 |
|
|
111 |
Javadoc_remove=Choose JavaDoc to delete |
|
112 |
no_Javadoc_remove=There's no JavaDoc to delete |
|
113 |
|
|
114 |
Name=Name |
|
115 |
Version=Version |
|
116 |
Created_by=Create by |
|
117 |
Description=Description |
|
118 |
Type=Type |
|
119 |
Language=Language |
|
120 |
Author=Author |
|
121 |
Move_from=Move from |
|
122 |
Move_to=Move to |
|
123 |
Browse=Browse |
|
124 |
Import_from=Import from |
|
125 |
|
|
126 |
Name_blank=Name can't be blank |
|
127 |
Name_exists=This name already exists. Choose another one |
|
128 |
Import_success=JavaDocs imported successfully |
|
129 |
JavaDoc_Error=Select JavaDoc to import |
|
130 |
|
|
131 |
|
|
132 |
go_to_line_Xhorizontal_ellipsisX=Go To Line\u2026 |
|
133 |
find_Xhorizontal_ellipsisX=Find\u2026 |
|
134 |
replace_Xhorizontal_ellipsisX=Replace\u2026 |
|
135 |
|
|
136 |
_Searching_autorun_scripts_Xhorizontal_ellipsisX=Searching autorun scripts... |
|
137 |
_Running_autorun_script_from_XnameX=Running autorun script from "{0}" |
|
138 |
_The_script_XscriptnameX_is_modified=The script "{0}" has been modified. |
|
139 |
_Save_changes_XquestionX=Save changes ? |
|
140 |
_Do_you_want_to_save_changes_XquestionX=Do you want to save changes ? |
|
141 |
|
|
142 |
_notice=Notice |
|
143 |
_Initializing_the_scripting_plugin_Xhorizontal_ellipsisX=Initializing the scripting plugin... |
|
144 |
_Waiting_to_terminate=Waiting to terminate. |
org.gvsig.scripting/tags/org.gvsig.scripting-2.3.61/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/resources-plugin/License_Chalkwork_icons.txt | ||
---|---|---|
1 |
---------------------------------------------- |
|
2 |
CHALKWORK BASIC |
|
3 |
by Dave Shea |
|
4 |
mezzoblue.com/icons/chalkwork/basic |
|
5 |
---------------------------------------------- |
|
6 |
CHALKWORK COMMERCE |
|
7 |
by Dave Shea |
|
8 |
mezzoblue.com/icons/chalkwork/commerce |
|
9 |
---------------------------------------------- |
|
10 |
CHALKWORK EDITING CONTROLS |
|
11 |
by Dave Shea |
|
12 |
mezzoblue.com/icons/chalkwork/editing-controls |
|
13 |
---------------------------------------------- |
|
14 |
CHALKWORK INFORMATION MANAGEMENT |
|
15 |
by Dave Shea |
|
16 |
mezzoblue.com/icons/chalkwork/information-management |
|
17 |
---------------------------------------------- |
|
18 |
CHALKWORK HTML (Free Version) |
|
19 |
by Dave Shea |
|
20 |
mezzoblue.com/icons/chalkwork/html |
|
21 |
---------------------------------------------- |
|
22 |
|
|
23 |
Thanks for your interest in the Chalkwork Family. Please consider subscribing to the Chalkwork news feed, which will announce new releases in the family as well as inform existing users of updates if any occur. |
|
24 |
|
|
25 |
http://mezzoblue.com/icons/chalkwork/news.xml |
|
26 |
|
|
27 |
- Dave Shea |
|
28 |
mezzoblue.com |
|
29 |
@mezzoblue on Twitter |
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
LICENSE AGREEMENT |
|
35 |
---------------------------------------------- |
|
36 |
By downloading this icon set, you agree to abide by the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License under which these icons are being made available for non-commercial use. |
|
37 |
|
|
38 |
Applicable Creative Commons License: http://creativecommons.org/licenses/by-nc-sa/3.0/ |
|
39 |
Attribution and additional license information: http://www.mezzoblue.com/icons/license/#license-cc |
|
40 |
|
|
41 |
By purchasing a Chalkwork Commercial License, you agree to abide by the Chalkwork Royalty-Free Stock Icon License Agreement under which these icons are being made available for commercial use. |
|
42 |
|
|
43 |
Chalkwork Commercial License: http://www.mezzoblue.com/icons/license/#license-cc |
|
44 |
|
|
45 |
This notice must be included any time these icons are redistributed. |
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
---------------------------------------------- |
|
51 |
ICON FOLDER INDEX |
|
52 |
---------------------------------------------- |
|
53 |
The icon files are broken down by file format. Due to some formats resulting in higher quality results, those are considered the preferred files and are located in the folder titled 'High Quality'. This package should contain the following folders in this hierarchy: |
|
54 |
|
|
55 |
High Quality |
|
56 |
ICNS (Mac) |
|
57 |
ICO (Windows) |
|
58 |
PNG |
|
59 |
TIF |
|
60 |
Lower Quality |
|
61 |
BMP |
|
62 |
GIF |
|
63 |
|
|
64 |
Within each of the second-level folders, you'll find 102 further folders, one for each icon and its variations. Depending on the file format, you may find multiple sizes within these folders along with any icon variations that may exist. Please note that ICO and ICNS files contain all applicable sizes within a single file, and that ICNS files do not support the 24x24 icon size. |
|
65 |
|
|
66 |
|
|
67 |
---------------------------------------------- |
|
68 |
CHALKWORK INFORMATION MANAGEMENT ICON INDEX |
|
69 |
* indicates that variations of this icon are provided within this set |
|
70 |
--------------------------------------------------------------------- |
|
71 |
|
|
72 |
Ad |
|
73 |
- Ad (Dollars) * |
|
74 |
- Ad (Euros) * |
|
75 |
- Ad (Pounds) * |
|
76 |
Address Book * |
|
77 |
Announcement * |
|
78 |
API |
|
79 |
Archive * |
|
80 |
Attachment * |
|
81 |
Authenticate |
|
82 |
Blog * |
|
83 |
Bookmark * |
|
84 |
Briefcase * |
|
85 |
Category * |
|
86 |
Chart (Area) * |
|
87 |
Chart (Bar) * |
|
88 |
Chart (Pie) * |
|
89 |
Collapse |
|
90 |
Colour Palette * |
|
91 |
Continue |
|
92 |
Control Panel |
|
93 |
Conversation * |
|
94 |
Create |
|
95 |
Dashboard * |
|
96 |
Database * |
|
97 |
Dictionary * |
|
98 |
Document (Area Chart) * |
|
99 |
Document (Bar Chart) * |
|
100 |
Document (Blank) * |
|
101 |
Document (Form) * |
|
102 |
Document (Photo) * |
|
103 |
Document (Pie Chart) * |
|
104 |
Document (Secure) * |
|
105 |
Document (Shred) |
|
106 |
Documents (x2) * |
|
107 |
Documents (x3) * |
|
108 |
Download |
|
109 |
Draw |
|
110 |
Entry * |
|
111 |
Excerpt * |
|
112 |
Expand |
|
113 |
Export |
|
114 |
Fax * |
|
115 |
File * |
|
116 |
- File (Closed) |
|
117 |
- File (Open) |
|
118 |
Filter * |
|
119 |
Flag * |
|
120 |
Flag (Black) * |
|
121 |
Flag (Blue) * |
|
122 |
Flag (Brown) * |
|
123 |
Flag (Green) * |
|
124 |
Flag (Light Blue) * |
|
125 |
Flag (Orange) * |
|
126 |
Flag (Pink) * |
|
127 |
Flag (Purple) * |
|
128 |
Flag (Red) * |
|
129 |
Flag (White) * |
|
130 |
Flag (Yellow) * |
|
131 |
Formatting |
|
132 |
Hierarchy * |
|
133 |
Import |
|
134 |
Inbox * |
|
135 |
Index * |
|
136 |
List * |
|
137 |
Log * |
|
138 |
Map * |
|
139 |
Mobile Phone * |
|
140 |
Moderate |
|
141 |
Module * |
|
142 |
News * |
|
143 |
Notes * |
|
144 |
Notification * |
|
145 |
Office * |
|
146 |
Package * |
|
147 |
Password |
|
148 |
Phone * |
|
149 |
- Phone (Batphone) * |
|
150 |
- Phone (Office) * |
|
151 |
Plugin * |
|
152 |
Preview |
|
153 |
Publish |
|
154 |
Read More |
|
155 |
Rebuild |
|
156 |
Relationship (Data) * |
|
157 |
Relationship (People) * |
|
158 |
Rotate Left |
|
159 |
Rotate Right |
|
160 |
Schedule * |
|
161 |
- Schedule (Noun) |
|
162 |
- Schedule (Verb) |
|
163 |
Script * |
|
164 |
Security * |
|
165 |
Sign In |
|
166 |
Sign Out |
|
167 |
Sort Down |
|
168 |
Sort Up |
|
169 |
Spam * |
|
170 |
Statistics * |
|
171 |
Status * |
|
172 |
- Status (Green) |
|
173 |
- Status (Off) |
|
174 |
- Status (On) |
|
175 |
- Status (Red) |
|
176 |
- Status (Yellow) |
|
177 |
Support * |
|
178 |
Sync |
|
179 |
Template * |
|
180 |
Ticket * |
|
181 |
Time Zone * |
|
182 |
Tools * |
|
183 |
Trackback |
|
184 |
View (Columns) |
|
185 |
View (Lists) |
|
186 |
View (Thumbnails) |
|
187 |
Weather * |
|
188 |
Write |
org.gvsig.scripting/tags/org.gvsig.scripting-2.3.61/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/resources-plugin/package.rst | ||
---|---|---|
1 |
|
|
2 |
This plugin provides support for scripting to gvSIG. |
|
3 |
Among other things it contains: |
|
4 |
|
|
5 |
- The gvSIG scripting engine |
|
6 |
- The gvSIG script editor |
|
7 |
- Script engines for: |
|
8 |
- Jython |
|
9 |
- Groovy |
|
10 |
- javascript |
|
11 |
- Renjin |
|
12 |
|
|
13 |
- The script install module for the add-on manager. |
|
14 |
- Utilities to generate packages of complements with our scripts. |
|
15 |
- Python libraries as: |
|
16 |
- Six - Utilities for writing code that runs on Python 2 and 3 |
|
17 |
- PyLint - Python source code analyzer |
|
18 |
- Pygments - syntax highlighting package |
|
19 |
- CSSUtils - CSS Cascading Style Sheets library |
|
20 |
- Docutils - Python Documentation Utilities |
|
21 |
- geopy - client for several popular geocoding web services |
|
22 |
- PyInliner - CSS-to-inline-styles conversion tool for HTML |
|
23 |
- Statistics - functions for calculating statistics of data |
|
24 |
- Cartodb - simple CartoDB client to perform requests against the CartoDB API |
|
25 |
|
|
26 |
- Java libraries to use from scripting as: |
|
27 |
- Abeille forms deseigner |
|
28 |
- jOpenDocument |
|
29 |
- JNumeric |
|
30 |
- CSSBox |
|
31 |
|
|
32 |
This plugin can be configured to be preinstalled automatically, allowing |
|
33 |
"Script" type plugins to be installed during the application installation process. |
|
34 |
To do this, the following entries must be added to the "packages.properties" |
|
35 |
of gvspks:: |
|
36 |
|
|
37 |
installers=scripts |
|
38 |
installer.scripts.initializer=org.gvsig.scripting.app.extension.ScriptsInstallerInitializer |
|
39 |
installer.scripts.package.code=org.gvsig.scripting.app.mainplugin |
|
40 |
installer.scripts.factory.name=Script |
|
41 |
installer.scripts.libs=lib |
|
42 |
|
|
43 |
If the "installers" entry already exists, add "scripts" to the end separating |
|
44 |
it with a space. |
org.gvsig.scripting/tags/org.gvsig.scripting-2.3.61/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/resources-plugin/scripting/scripts/examples/TOC/addTOCEntry.py | ||
---|---|---|
1 |
# encoding: utf-8 |
|
2 |
|
|
3 |
from gvsig.commonsdialog import msgbox |
|
4 |
|
|
5 |
from org.gvsig.app import ApplicationLocator |
|
6 |
from org.gvsig.andami import PluginsLocator |
|
7 |
from org.gvsig.app.project.documents.view import ViewManager |
|
8 |
from org.gvsig.scripting.app.extension import ScriptingExtension |
|
9 |
|
|
10 |
def main(): |
|
11 |
application = ApplicationLocator.getManager() |
|
12 |
|
|
13 |
# Creamos la accion si no existe ya |
|
14 |
actionManager = PluginsLocator.getActionInfoManager() |
|
15 |
action = actionManager.createAction(ScriptingExtension, "tools-hello", "Hello", "hello", "tools-scripting-launcher", None, 1009000000, "Hello world") |
|
16 |
action = actionManager.registerAction(action) |
|
17 |
|
|
18 |
# Y con ella damos de alta una accion en el TOC |
|
19 |
projectManager = ApplicationLocator.getProjectManager() |
|
20 |
viewManager = projectManager.getDocumentManager(ViewManager.TYPENAME) |
|
21 |
viewManager.addTOCContextAction("tools-hello") |
|
22 |
|
|
23 |
msgbox("Insertada la entrada 'Hello' al TOC de la vista.") |
|
24 |
|
org.gvsig.scripting/tags/org.gvsig.scripting-2.3.61/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/resources-plugin/scripting/scripts/examples/TOC/addTOCEntry.inf | ||
---|---|---|
1 |
[Unit] |
|
2 |
type = Script |
|
3 |
name = addTOCEntry |
|
4 |
description = |
|
5 |
createdBy = |
|
6 |
version = |
|
7 |
|
|
8 |
[Script] |
|
9 |
main = main |
|
10 |
Lang = python |
|
11 |
|
|
12 |
[script] |
|
13 |
enable = true |
|
14 |
|
org.gvsig.scripting/tags/org.gvsig.scripting-2.3.61/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/resources-plugin/scripting/scripts/examples/monitor/monitor_suma3.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
|
|
3 |
<object classname="com.jeta.forms.store.memento.FormPackage"> |
|
4 |
<at name="fileversion"> |
|
5 |
<object classname="com.jeta.forms.store.memento.FormsVersion2"> |
|
6 |
<at name="major">2</at> |
|
7 |
<at name="minor">0</at> |
|
8 |
<at name="sub">0</at> |
|
9 |
</object> |
|
10 |
</at> |
|
11 |
<at name="form"> |
|
12 |
<object classname="com.jeta.forms.store.memento.FormMemento"> |
|
13 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
14 |
<at name="cellconstraints"> |
|
15 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
16 |
<at name="column">1</at> |
|
17 |
<at name="row">1</at> |
|
18 |
<at name="colspan">1</at> |
|
19 |
<at name="rowspan">1</at> |
|
20 |
<at name="halign">default</at> |
|
21 |
<at name="valign">default</at> |
|
22 |
<at name="insets" object="insets">0,0,0,0</at> |
|
23 |
</object> |
|
24 |
</at> |
|
25 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
|
26 |
</super> |
|
27 |
<at name="id">/home/jjdelcerro/gvSIG/plugins/org.gvsig.scripting.app.extension/scripts/monitor/monitor.xml</at> |
|
28 |
<at name="rowspecs">CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE</at> |
|
29 |
<at name="colspecs">FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:DEFAULT:NONE</at> |
|
30 |
<at name="components"> |
|
31 |
<object classname="java.util.LinkedList"> |
|
32 |
<item > |
|
33 |
<at name="value"> |
|
34 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
35 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
36 |
<at name="cellconstraints"> |
|
37 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
38 |
<at name="column">2</at> |
|
39 |
<at name="row">2</at> |
|
40 |
<at name="colspan">1</at> |
|
41 |
<at name="rowspan">1</at> |
|
42 |
<at name="halign">default</at> |
|
43 |
<at name="valign">default</at> |
|
44 |
<at name="insets" object="insets">0,0,0,0</at> |
|
45 |
</object> |
|
46 |
</at> |
|
47 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
48 |
</super> |
|
49 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
50 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
51 |
<at name="beanproperties"> |
|
52 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
53 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
54 |
<at name="properties"> |
|
55 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
56 |
<at name="text">Habitantes:</at> |
|
57 |
<at name="height">14</at> |
|
58 |
<at name="width">65</at> |
|
59 |
<at name="name">lblEtiqueta</at> |
|
60 |
<at name="fill"> |
|
61 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
62 |
<at name="name">fill</at> |
|
63 |
</object> |
|
64 |
</at> |
|
65 |
<at name="border"> |
|
66 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
67 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
68 |
<at name="name">border</at> |
|
69 |
</super> |
|
70 |
<at name="borders"> |
|
71 |
<object classname="java.util.LinkedList"> |
|
72 |
<item > |
|
73 |
<at name="value"> |
|
74 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
75 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
76 |
<at name="name">border</at> |
|
77 |
</super> |
|
78 |
</object> |
|
79 |
</at> |
|
80 |
</item> |
|
81 |
</object> |
|
82 |
</at> |
|
83 |
</object> |
|
84 |
</at> |
|
85 |
</object> |
|
86 |
</at> |
|
87 |
</object> |
|
88 |
</at> |
|
89 |
</object> |
|
90 |
</at> |
|
91 |
</item> |
|
92 |
<item > |
|
93 |
<at name="value"> |
|
94 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
95 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
96 |
<at name="cellconstraints"> |
|
97 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
98 |
<at name="column">4</at> |
|
99 |
<at name="row">2</at> |
|
100 |
<at name="colspan">2</at> |
|
101 |
<at name="rowspan">1</at> |
|
102 |
<at name="halign">default</at> |
|
103 |
<at name="valign">default</at> |
|
104 |
<at name="insets" object="insets">0,0,0,0</at> |
|
105 |
</object> |
|
106 |
</at> |
|
107 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
108 |
</super> |
|
109 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
110 |
<at name="beanclass">javax.swing.JTextField</at> |
|
111 |
<at name="beanproperties"> |
|
112 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
113 |
<at name="classname">javax.swing.JTextField</at> |
|
114 |
<at name="properties"> |
|
115 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
116 |
<at name="height">20</at> |
|
117 |
<at name="width">832</at> |
|
118 |
<at name="name">txtSuma</at> |
|
119 |
<at name="background" object="color">236,233,216</at> |
|
120 |
<at name="border"> |
|
121 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
122 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
123 |
<at name="name">border</at> |
|
124 |
</super> |
|
125 |
<at name="borders"> |
|
126 |
<object classname="java.util.LinkedList"> |
|
127 |
<item > |
|
128 |
<at name="value"> |
|
129 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
130 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
131 |
<at name="name">border</at> |
|
132 |
</super> |
|
133 |
</object> |
|
134 |
</at> |
|
135 |
</item> |
|
136 |
</object> |
|
137 |
</at> |
|
138 |
</object> |
|
139 |
</at> |
|
140 |
<at name="editable">false</at> |
|
141 |
</object> |
|
142 |
</at> |
|
143 |
</object> |
|
144 |
</at> |
|
145 |
</object> |
|
146 |
</at> |
|
147 |
</item> |
|
148 |
<item > |
|
149 |
<at name="value"> |
|
150 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
151 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
152 |
<at name="cellconstraints"> |
|
153 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
154 |
<at name="column">5</at> |
|
155 |
<at name="row">4</at> |
|
156 |
<at name="colspan">1</at> |
|
157 |
<at name="rowspan">1</at> |
|
158 |
<at name="halign">default</at> |
|
159 |
<at name="valign">default</at> |
|
160 |
<at name="insets" object="insets">0,0,0,0</at> |
|
161 |
</object> |
|
162 |
</at> |
|
163 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
164 |
</super> |
|
165 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
166 |
<at name="beanclass">javax.swing.JButton</at> |
|
167 |
<at name="beanproperties"> |
|
168 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
169 |
<at name="classname">javax.swing.JButton</at> |
|
170 |
<at name="properties"> |
|
171 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
172 |
<at name="text">Cerrar</at> |
|
173 |
<at name="height">22</at> |
|
174 |
<at name="width">69</at> |
|
175 |
<at name="name">btnCerrar</at> |
|
176 |
<at name="actionCommand">Cerrar</at> |
|
177 |
<at name="border"> |
|
178 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
179 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
180 |
<at name="name">border</at> |
|
181 |
</super> |
|
182 |
<at name="borders"> |
|
183 |
<object classname="java.util.LinkedList"> |
|
184 |
<item > |
|
185 |
<at name="value"> |
|
186 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
187 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
188 |
<at name="name">border</at> |
|
189 |
</super> |
|
190 |
</object> |
|
191 |
</at> |
|
192 |
</item> |
|
193 |
</object> |
|
194 |
</at> |
|
195 |
</object> |
|
196 |
</at> |
|
197 |
</object> |
|
198 |
</at> |
|
199 |
</object> |
|
200 |
</at> |
|
201 |
</object> |
|
202 |
</at> |
|
203 |
</item> |
|
204 |
</object> |
|
205 |
</at> |
|
206 |
<at name="properties"> |
|
207 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
208 |
<at name="classname">com.jeta.forms.gui.form.GridView</at> |
|
209 |
<at name="properties"> |
|
210 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
211 |
<at name="name"></at> |
|
212 |
<at name="fill"> |
|
213 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
214 |
<at name="name">fill</at> |
|
215 |
</object> |
|
216 |
</at> |
|
217 |
<at name="scollBars"> |
|
218 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
|
219 |
<at name="name">scollBars</at> |
|
220 |
<at name="verticalpolicy">21</at> |
|
221 |
<at name="horizontalpolicy">31</at> |
|
222 |
<at name="border"> |
|
223 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
224 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
225 |
<at name="name">border</at> |
|
226 |
</super> |
|
227 |
<at name="borders"> |
|
228 |
<object classname="java.util.LinkedList"> |
|
229 |
<item > |
|
230 |
<at name="value"> |
|
231 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
232 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
233 |
<at name="name">border</at> |
|
234 |
</super> |
|
235 |
</object> |
|
236 |
</at> |
|
237 |
</item> |
|
238 |
</object> |
|
239 |
</at> |
|
240 |
</object> |
|
241 |
</at> |
|
242 |
</object> |
|
243 |
</at> |
|
244 |
<at name="border"> |
|
245 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
246 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
247 |
<at name="name">border</at> |
|
248 |
</super> |
|
249 |
<at name="borders"> |
|
250 |
<object classname="java.util.LinkedList"/> |
|
251 |
</at> |
|
252 |
</object> |
|
253 |
</at> |
|
254 |
</object> |
|
255 |
</at> |
|
256 |
</object> |
|
257 |
</at> |
|
258 |
<at name="cellpainters"> |
|
259 |
<object classname="com.jeta.forms.store.support.Matrix"> |
|
260 |
<at name="rows"> |
|
261 |
<object classname="[Ljava.lang.Object;" size="4"> |
|
262 |
<at name="item" index="0"> |
|
263 |
<object classname="[Ljava.lang.Object;" size="6"/> |
|
264 |
</at> |
|
265 |
<at name="item" index="1"> |
|
266 |
<object classname="[Ljava.lang.Object;" size="6"/> |
|
267 |
</at> |
|
268 |
<at name="item" index="2"> |
|
269 |
<object classname="[Ljava.lang.Object;" size="6"/> |
|
270 |
</at> |
|
271 |
<at name="item" index="3"> |
|
272 |
<object classname="[Ljava.lang.Object;" size="6"/> |
|
273 |
</at> |
|
274 |
</object> |
|
275 |
</at> |
|
276 |
</object> |
|
277 |
</at> |
|
278 |
<at name="rowgroups"> |
|
279 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
280 |
<at name="groups"> |
|
281 |
<object classname="java.util.HashMap"/> |
|
282 |
</at> |
|
283 |
</object> |
|
284 |
</at> |
|
285 |
<at name="colgroups"> |
|
286 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
287 |
<at name="groups"> |
|
288 |
<object classname="java.util.HashMap"/> |
|
289 |
</at> |
|
290 |
</object> |
|
291 |
</at> |
|
292 |
</object> |
|
293 |
</at> |
|
294 |
</object> |
org.gvsig.scripting/tags/org.gvsig.scripting-2.3.61/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/resources-plugin/scripting/scripts/examples/monitor/monitor_suma1.py | ||
---|---|---|
1 |
# encoding: utf-8 |
|
2 |
|
|
3 |
from gvsig import currentLayer, currentView |
|
4 |
from gvsig.commonsdialog import msgbox, inputbox, QUESTION |
|
5 |
|
|
6 |
""" |
|
7 |
Para probar este ejemplo cargue la capa MANZANAS_POB de la carpeta |
|
8 |
data y seleccionela en el TOC |
|
9 |
""" |
|
10 |
|
|
11 |
def calcular_sumatorio(mapContext, layer, fieldname): |
|
12 |
encuadre = mapContext.getViewPort().getEnvelope().getGeometry() |
|
13 |
lineas = layer.getFeatureStore().getFeatureSet().iterator() |
|
14 |
suma = 0 |
|
15 |
for linea in lineas: |
|
16 |
g = linea.getDefaultGeometry() |
|
17 |
if encuadre.intersects(g) : |
|
18 |
suma += int(linea.get(fieldname)) |
|
19 |
print "Sumatorio de %s: %s" % (fieldname, suma) |
|
20 |
|
|
21 |
def main(*args): |
|
22 |
if currentView() == None: |
|
23 |
msgbox("Debera tener una vista abierta y activa") |
|
24 |
return |
|
25 |
mapContext = currentView().getMapContext() |
|
26 |
|
|
27 |
layer = currentLayer() |
|
28 |
if layer == None: |
|
29 |
msgbox("Debera tener seleccionada la capa sobre la que desea trabajar") |
|
30 |
return |
|
31 |
fieldname = inputbox( |
|
32 |
"Introduzca el nombre del campo para calcular el sumatorio", |
|
33 |
"Nombre de campo", |
|
34 |
QUESTION, |
|
35 |
"pob_total" |
|
36 |
) |
|
37 |
if fieldname in ("",None): |
|
38 |
msgbox("Operacion cancelada") |
|
39 |
return |
|
40 |
calcular_sumatorio(mapContext, layer, fieldname) |
|
41 |
|
org.gvsig.scripting/tags/org.gvsig.scripting-2.3.61/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/resources-plugin/scripting/scripts/examples/monitor/monitor_suma2.py | ||
---|---|---|
1 |
# encoding: utf-8 |
|
2 |
|
|
3 |
from gvsig import currentView, currentLayer |
|
4 |
from gvsig.commonsdialog import msgbox, inputbox, QUESTION |
|
5 |
|
|
6 |
from org.gvsig.fmap.mapcontext.events.listeners import ViewPortListener |
|
7 |
|
|
8 |
""" |
|
9 |
Para probar este ejemplo cargue la capa MANZANAS_POB de la carpeta |
|
10 |
data y seleccionela en el TOC |
|
11 |
|
|
12 |
Ojo!!!!, que este script añade un listener que no elimina nunca, |
|
13 |
con lo que para abortarlo tendremos que cerrar la vista y eliminarla |
|
14 |
del proyecto. |
|
15 |
Usar este script solo con fines didacticos. |
|
16 |
|
|
17 |
""" |
|
18 |
|
|
19 |
class MonitorSuma(ViewPortListener): |
|
20 |
|
|
21 |
def __init__(self, mapContext, layer, fieldname): |
|
22 |
self.mapContext = mapContext |
|
23 |
self.layer = layer |
|
24 |
self.fieldname = fieldname |
|
25 |
self.calcular_sumatorio() |
|
26 |
mapContext.getViewPort().addViewPortListener(self) |
|
27 |
|
|
28 |
def backColorChanged(self,*args): |
|
29 |
pass |
|
30 |
|
|
31 |
def extentChanged(self,*args): |
|
32 |
self.calcular_sumatorio() |
|
33 |
|
|
34 |
def projectionChanged(self,*args): |
|
35 |
pass |
|
36 |
|
|
37 |
def calcular_sumatorio(self): |
|
38 |
encuadre = self.mapContext.getViewPort().getEnvelope().getGeometry() |
|
39 |
lineas = self.layer.getFeatureStore().getFeatureSet().iterator() |
|
40 |
suma = 0 |
|
41 |
for linea in lineas: |
|
42 |
g = linea.getDefaultGeometry() |
|
43 |
if encuadre.intersects(g) : |
|
44 |
suma += int(linea.get(self.fieldname)) |
|
45 |
print "Sumatorio de %s: %s" % (self.fieldname, suma) |
|
46 |
|
|
47 |
def main(*args): |
|
48 |
if currentView() == None: |
|
49 |
msgbox("Debera tener una vista abierta y activa") |
|
50 |
return |
|
51 |
mapContext = currentView().getMapContext() |
|
52 |
|
|
53 |
layer = currentLayer() |
|
54 |
if layer == None: |
|
55 |
msgbox("Debera tener seleccionada la capa sobre la que desea trabajar") |
|
56 |
return |
|
57 |
fieldname = inputbox( |
|
58 |
"Introduzca el nombre del campo para calcular el sumatorio", |
|
59 |
"Nombre de campo", |
|
60 |
QUESTION, |
|
61 |
"pob_total" |
|
62 |
) |
|
63 |
if fieldname in ("",None): |
|
64 |
msgbox("Operacion cancelada") |
|
65 |
return |
|
66 |
monitor = MonitorSuma(mapContext, layer, fieldname) |
org.gvsig.scripting/tags/org.gvsig.scripting-2.3.61/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/resources-plugin/scripting/scripts/examples/monitor/monitor_suma3.py | ||
---|---|---|
1 |
# encoding: utf-8 |
|
2 |
|
|
3 |
from gvsig import currentView, currentLayer, getResource |
|
4 |
from gvsig.commonsdialog import msgbox, inputbox, QUESTION |
|
5 |
import os |
|
6 |
|
|
7 |
""" |
|
8 |
Para probar este ejemplo cargue la capa MANZANAS_POB de la carpeta |
|
9 |
data y seleccionela en el TOC |
|
10 |
""" |
|
11 |
|
|
12 |
from org.gvsig.fmap.mapcontext.events.listeners import ViewPortListener |
|
13 |
|
|
14 |
|
|
15 |
from gvsig.libs.formpanel import ProgressBarWithTaskStatus, FormPanel |
|
16 |
|
|
17 |
class MonitorSuma(ViewPortListener,FormPanel): |
|
18 |
|
|
19 |
def __init__(self, mapContext, layer, label, fieldname): |
|
20 |
FormPanel.__init__(self, os.path.join(os.path.dirname(__file__), "monitor_suma3.xml")) |
|
21 |
|
|
22 |
self.mapContext = mapContext |
|
23 |
self.layer = layer |
|
24 |
self.fieldname = fieldname |
|
25 |
self.lblEtiqueta.setText(label) |
|
26 |
self.calcular_sumatorio() |
|
27 |
mapContext.getViewPort().addViewPortListener(self) |
|
28 |
|
|
29 |
def btnCerrar_click(self,*args): |
|
30 |
self.mapContext.getViewPort().removeViewPortListener(self) |
|
31 |
self.hide() |
|
32 |
|
|
33 |
def backColorChanged(self,*args): |
|
34 |
pass |
|
35 |
|
|
36 |
def extentChanged(self,*args): |
|
37 |
self.calcular_sumatorio() |
|
38 |
|
|
39 |
def projectionChanged(self,*args): |
|
40 |
pass |
|
41 |
|
Also available in: Unified diff