Changeset 12588 in osm for applications
- Timestamp:
- 2008-12-25T19:01:06+01:00 (16 years ago)
- Location:
- applications/editors/josm/plugins
- Files:
-
- 27 added
- 7 deleted
- 50 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/DirectUpload/build.xml
r12022 r12588 21 21 <echo message="creating ${plugin.jar}"/> 22 22 <javac srcdir="src" classpath="${josm}" destdir="build" debug="true" encoding="UTF-8"> 23 <compilerarg value="-Xlint:deprecation"/> 23 24 <include name="**/*.java" /> 24 25 </javac> … … 45 46 <attribute name="Plugin-Author" value="Subhodip Biswas :subhodipbiswas@gmail.com" /> 46 47 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 47 <attribute name="Plugin-Mainversion" value="1"/> 48 <attribute name="Plugin-Mainversion" value="1180"/> 48 49 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 49 50 </manifest> -
applications/editors/josm/plugins/DirectUpload/src/org/openstreetmap/josm/plugins/DirectUpload/UploadDataGuiPlugin.java
r11949 r12588 16 16 import org.openstreetmap.josm.gui.layer.Layer; 17 17 import org.openstreetmap.josm.plugins.Plugin; 18 import org.openstreetmap.josm.tools.Shortcut; 18 19 /** 19 20 * … … 22 23 public class UploadDataGuiPlugin extends Plugin{ 23 24 UploadAction openaction; 24 25 public UploadDataGuiPlugin() { 26 27 openaction = new UploadAction(); 28 Main.main.menu.toolsMenu.add(openaction); 25 26 public UploadDataGuiPlugin() { 27 openaction = new UploadAction(); 28 Main.main.menu.toolsMenu.add(openaction); 29 29 } 30 30 31 class UploadAction extends JosmAction { 32 31 class UploadAction extends JosmAction { 32 33 33 public UploadAction(){ 34 super(tr("Upload Traces"), "UploadAction", tr("Uploads traces to openstreetmap.org"), KeyEvent.VK_G, KeyEvent.CTRL_MASK, 35 false); 34 super(tr("Upload Traces"), "UploadAction", tr("Uploads traces to openstreetmap.org"), 35 Shortcut.registerShortcut("tools:uploadtraces", tr("Tool: {0}", tr("Upload Traces")), 36 KeyEvent.VK_G, Shortcut.GROUP_MENU), false); 36 37 } 37 38 public void actionPerformed(ActionEvent e) { 38 39 UploadDataGui go = new UploadDataGui(); 39 40 go.setVisible(true); 40 41 } 42 } 43 41 } 42 } 44 43 } -
applications/editors/josm/plugins/agpifoj/build.xml
r10439 r12588 49 49 <attribute name="Plugin-Early" value="false" /> 50 50 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 51 <attribute name="Plugin-Mainversion" value="1180"/> 51 52 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 52 53 </manifest> -
applications/editors/josm/plugins/agpifoj/src/org/openstreetmap/josm/plugins/agpifoj/AgpifojDialog.java
r10258 r12588 22 22 import org.openstreetmap.josm.plugins.agpifoj.AgpifojLayer.ImageEntry; 23 23 import org.openstreetmap.josm.tools.ImageProvider; 24 import org.openstreetmap.josm.tools.Shortcut; 24 25 25 26 public class AgpifojDialog extends ToggleDialog implements ActionListener { … … 45 46 46 47 private AgpifojDialog() { 47 super(tr("AgPifoJ - Geotagged pictures"), "agpifoj", tr("Display geotagged photos"), KeyEvent.VK_Y, 200); 48 48 super(tr("AgPifoJ - Geotagged pictures"), "agpifoj", tr("Display geotagged photos"), Shortcut.registerShortcut("tools:geotagged", tr("Tool: {0}", tr("Display geotagged photos")), KeyEvent.VK_Y, Shortcut.GROUP_EDIT), 200); 49 49 50 if (INSTANCE != null) { 50 51 throw new IllegalStateException("Agpifoj dialog should not be instanciated twice !"); -
applications/editors/josm/plugins/agpifoj/src/org/openstreetmap/josm/plugins/agpifoj/AgpifojPlugin.java
r10122 r12588 23 23 import org.openstreetmap.josm.Main; 24 24 import org.openstreetmap.josm.actions.JosmAction; 25 import org.openstreetmap.josm.gui.IconToggleButton; 25 26 import org.openstreetmap.josm.gui.MapFrame; 27 import org.openstreetmap.josm.gui.MainMenu; 26 28 import org.openstreetmap.josm.gui.layer.Layer; 27 29 import org.openstreetmap.josm.plugins.Plugin; … … 35 37 "agpifoj-open", 36 38 tr("Load set of images as a new layer."), 37 0, 0, false);39 null, false); 38 40 } 39 41 … … 82 84 83 85 public AgpifojPlugin() { 84 85 JMenuBar menu = Main.main.menu; 86 JMenu view = null; 87 JMenuItem agpifojMenu = new JMenuItem(new Action()); 88 89 for (int i = 0; i < menu.getMenuCount(); ++i) { 90 if (menu.getMenu(i) != null 91 && tr("File").equals(menu.getMenu(i).getText())) { 92 view = menu.getMenu(i); 93 break; 94 } 95 } 96 97 if (view != null) { 98 view.insert(agpifojMenu, 2); 99 100 } else if (menu.getMenuCount() > 0) { 101 view = menu.getMenu(0); 102 view.insert(agpifojMenu, 0); 103 } 104 105 agpifojMenu.setVisible(true); 86 MainMenu.add(Main.main.menu.fileMenu, new Action()); 106 87 } 107 88 … … 113 94 public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) { 114 95 if (newFrame != null) { 115 if (newFrame.getLayout() instanceof BorderLayout) {116 newFrame.remove(newFrame.toolBarActions);117 newFrame.add(new ScrollViewport(newFrame.toolBarActions, ScrollViewport.VERTICAL_DIRECTION),118 BorderLayout.WEST);119 newFrame.repaint();120 }121 122 96 AgpifojDialog dialog = AgpifojDialog.getInstance(); 123 newFrame.addToggleDialog(dialog); 124 97 IconToggleButton b = newFrame.addToggleDialog(dialog); 98 125 99 boolean found = false; 126 100 for (Layer layer : newFrame.mapView.getAllLayers()) { … … 130 104 } 131 105 } 132 JToolBar tb = newFrame.toolBarActions; 133 ((JToggleButton) tb.getComponent(tb.getComponentCount() - 1)).getModel().setSelected(found); 134 106 b.setSelected(found); 135 107 } else { 136 108 AgpifojDialog.getInstance().displayImage(null, null); -
applications/editors/josm/plugins/build.xml
r12327 r12588 16 16 <ant dir="agpifoj" antfile="build.xml" target="dist"/> 17 17 <ant dir="colorscheme" antfile="build.xml" target="dist"/> 18 <ant dir="duplicateway" antfile="build.xml" target="dist"/>19 18 <ant dir="DirectUpload" antfile="build.xml" target="dist"/> 20 19 <ant dir="globalsat" antfile="build.xml" target="dist"/> 20 <ant dir="imagewaypoint" antfile="build.xml" target="dist"/> 21 21 <ant dir="lakewalker" antfile="build.xml" target="dist"/> 22 22 <ant dir="livegps" antfile="build.xml" target="dist"/> … … 28 28 <ant dir="plastic_laf" antfile="build.xml" target="dist"/> 29 29 <ant dir="pluginmanager" antfile="build.xml" target="dist"/> 30 <ant dir="remotecontrol" antfile="build.xml" target="dist"/> 30 31 <ant dir="slippymap" antfile="build.xml" target="dist"/> 31 32 <ant dir="slippy_map_chooser" antfile="build.xml" target="dist"/> … … 39 40 40 41 <target name="build_defect" depends="compile"> 42 <ant dir="duplicateway" antfile="build.xml" target="dist"/> 41 43 <ant dir="grid" antfile="build.xml" target="dist"/> 42 44 <ant dir="navigator" antfile="build.xml" target="dist"/> … … 49 51 <ant dir="globalsat" antfile="build.xml" target="clean"/> 50 52 <ant dir="grid" antfile="build.xml" target="clean"/> 53 <ant dir="imagewaypoint" antfile="build.xml" target="clean"/> 51 54 <ant dir="lakewalker" antfile="build.xml" target="clean"/> 52 55 <ant dir="livegps" antfile="build.xml" target="clean"/> … … 59 62 <ant dir="plastic_laf" antfile="build.xml" target="clean"/> 60 63 <ant dir="pluginmanager" antfile="build.xml" target="clean"/> 64 <ant dir="remotecontrol" antfile="build.xml" target="clean"/> 61 65 <ant dir="slippymap" antfile="build.xml" target="clean"/> 62 66 <ant dir="slippy_map_chooser" antfile="build.xml" target="clean"/> -
applications/editors/josm/plugins/colorscheme/build.xml
r7287 r12588 10 10 <property name="plugin.jar" value="../../dist/${plugin.name}.jar"/> 11 11 12 <!-- plugin meta data (enter new version number if anything changed!) -->13 <property name="plugin.version" value="0.5.2"/>14 12 <property name="plugin.description" value="Allows the user to create different color schemes and to switch between them. Just change the colors and create a new scheme. Used to switch to a white background with matching colors for better visibility in bright sunlight. See dialog in JOSM's preferences and 'Map Settings' (strange but true :-) (V${plugin.version})."/> 15 13 <property name="plugin.class" value="at.dallermassl.josm.plugin.colorscheme.ColorSchemePlugin"/> … … 38 36 </copy> 39 37 38 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 39 <env key="LANG" value="C"/> 40 <arg value="info"/> 41 <arg value="--xml"/> 42 <arg value="."/> 43 </exec> 44 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 45 <delete file="REVISION"/> 40 46 <!-- create jar file --> 41 47 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> … … 43 49 <attribute name="Plugin-Class" value="${plugin.class}" /> 44 50 <attribute name="Plugin-Description" value="${plugin.description}" /> 45 <attribute name="Plugin-Version" value="${plugin.version}" /> 46 <!--attribute name="Plugin-Dependencies" value="org.eigenheimstrasse.josm" /--> 51 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 52 <attribute name="Plugin-Mainversion" value="1180"/> 53 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 47 54 </manifest> 48 55 </jar> -
applications/editors/josm/plugins/colorscheme/src/at/dallermassl/josm/plugin/colorscheme/ColorSchemePreference.java
r4278 r12588 71 71 JOptionPane.showMessageDialog(Main.parent, tr("Please select a scheme to use.")); 72 72 else { 73 String schemeName = (String) listModel.get(schemesList.getSelectedIndex()); 73 String schemeName = (String) listModel.get(schemesList.getSelectedIndex()); 74 74 getColorPreference().setColorModel(getColorMap(schemeName)); 75 75 } 76 gui.requiresRestart = gui.requiresRestart || false;77 76 } 78 77 }); … … 87 86 listModel.addElement(schemeName); 88 87 saveSchemeNamesToPref(); 89 gui.requiresRestart = gui.requiresRestart || false;90 88 } 91 89 }); … … 101 99 listModel.remove(schemesList.getSelectedIndex()); 102 100 saveSchemeNamesToPref(); 103 gui.requiresRestart = gui.requiresRestart || false;104 101 } 105 102 } … … 135 132 } 136 133 137 public voidok() {138 // nothing to do 134 public boolean ok() { 135 return false;// nothing to do 139 136 } 140 137 … … 179 176 return colorMap; 180 177 } 181 182 178 179 public ColorPreference getColorPreference() { 183 180 if(colorPreference == null) { 184 181 for(PreferenceSetting setting : PreferenceDialog.settings) { … … 190 187 } 191 188 return colorPreference; 192 189 } 193 190 } -
applications/editors/josm/plugins/duplicateway/build.xml
r7287 r12588 31 31 </fileset> 32 32 </copy> 33 <!-- the code still uses no longer existing Segments, disable compile! 34 <javac srcdir="src" classpath="${josm}" debug="true" destdir="build"> 33 <javac srcdir="src" classpath="${josm}" debug="true" destdir="build"> 35 34 <include name="**/*.java" /> 36 </javac> -->35 </javac> 37 36 </target> 38 37 -
applications/editors/josm/plugins/globalsat/build.xml
r10439 r12588 51 51 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 52 52 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 53 <attribute name="Plugin-Mainversion" value="1180"/> 53 54 </manifest> 54 55 </jar> -
applications/editors/josm/plugins/globalsat/src/org/kaintoch/gps/globalsat/dg100/GpsRec.java
r10378 r12588 32 32 private int dg100TypeOfNextRec = -1; 33 33 // calculated data 34 private DatedateTime = null;34 private Calendar dateTime = null; 35 35 36 36 public GpsRec() … … 265 265 SimpleDateFormat sdf = new SimpleDateFormat(dateTimeFormat); 266 266 //logger.info(gsTime + " " + gsDate); 267 Calendar cal = GregorianCalendar.getInstance(); 268 cal.setTime(dateTime); 269 dateTimeString = sdf.format(cal.getTime()); 267 dateTimeString = sdf.format(dateTime.getTime()); 270 268 } 271 269 return dateTimeString; … … 316 314 int MM = (dg100Date - DD * 10000) / 100; 317 315 int YY = dg100Date - DD * 10000 - MM * 100; 318 dateTime = new Date(100 + YY, MM - 1, DD, hh, mm, ss); 316 dateTime = GregorianCalendar.getInstance(); 317 dateTime.set(2000 + YY, MM, DD, hh, mm, ss); 319 318 } 320 319 … … 415 414 * @return Returns the dateTime. 416 415 */ 417 public DategetDateTime()416 public Calendar getDateTime() 418 417 { 419 418 return dateTime; -
applications/editors/josm/plugins/globalsat/src/org/openstreetmap/josm/plugins/globalsat/GlobalsatPlugin.java
r11555 r12588 23 23 import org.openstreetmap.josm.actions.JosmAction; 24 24 import org.openstreetmap.josm.data.gpx.GpxData; 25 import org.openstreetmap.josm.tools.Shortcut; 25 26 26 27 import gnu.io.*; … … 108 109 class GlobalsatImportAction extends JosmAction{ 109 110 public GlobalsatImportAction(){ 110 super(tr("Globalsat Import"), "globalsatImport", tr("Import Data from Globalsat Datalogger DG100 into GPXLayer."), KeyEvent.VK_I, KeyEvent.CTRL_MASK, false); 111 super(tr("Globalsat Import"), "globalsatImport", 112 tr("Import Data from Globalsat Datalogger DG100 into GPXLayer."), 113 Shortcut.registerShortcut("menu:globalsatimport", tr("Menu: {0}", tr("Globalsat Import")), 114 KeyEvent.VK_I, Shortcut.GROUP_MENU), false); 111 115 } 112 116 public void actionPerformed(ActionEvent e){ -
applications/editors/josm/plugins/lakewalker/build.xml
r12256 r12588 59 59 <attribute name="Plugin-Description" value="Interface to Lakewalker module" /> 60 60 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 61 <attribute name="Plugin-Mainversion" value="1 084"/>61 <attribute name="Plugin-Mainversion" value="1180"/> 62 62 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 63 63 <attribute name="Author" value="Brent Easton <b.easton@uws.edu.au>, Jason Reid <jrreid@ucalgary.ca>"/> -
applications/editors/josm/plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker/LakewalkerPreferences.java
r12255 r12588 132 132 * Save entered preference values on OK button 133 133 */ 134 public voidok() {134 public boolean ok() { 135 135 Main.pref.put(PREF_MAX_SEG, maxSegsConfig.getValueString()); 136 136 Main.pref.put(PREF_MAX_NODES, maxNodesConfig.getValueString()); … … 146 146 Main.pref.put(PREF_MAXCACHESIZE, maxCacheSizeConfig.getValueString()); 147 147 Main.pref.put(PREF_MAXCACHEAGE, maxCacheAgeConfig.getValueString()); 148 return false; 148 149 } 149 150 150 } -
applications/editors/josm/plugins/navigator
- Property svn:ignore
-
old new 1 1 bin 2 navigator.jar 2 build 3 3 josm-site.xml
-
- Property svn:ignore
-
applications/editors/josm/plugins/openstreetbugs
-
Property svn:ignore
set to
build
-
Property svn:ignore
set to
-
applications/editors/josm/plugins/openstreetbugs/build.xml
r11569 r12588 50 50 <attribute name="Plugin-Version" value="${version}" /> 51 51 <attribute name="Plugin-Date" value="${current.time}" /> 52 <attribute name="Plugin-Mainversion" value="1180"/> 52 53 <attribute name="Author" value="Henrik Niehaus" /> 53 54 </manifest> -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/OsbDownloadLoop.java
r12398 r12588 28 28 package org.openstreetmap.josm.plugins.osb; 29 29 30 import static org.openstreetmap.josm.tools.I18n.tr; 31 30 32 import java.awt.geom.Point2D; 31 33 import java.util.concurrent.TimeUnit; … … 48 50 49 51 public OsbDownloadLoop() { 50 setName("OpenStreetBugs download loop"); 52 setName(tr("OpenStreetBugs download loop")); 51 53 start(); 52 54 } -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/OsbLayer.java
r12476 r12588 28 28 package org.openstreetmap.josm.plugins.osb; 29 29 30 import static org.openstreetmap.josm.tools.I18n.tr; 31 30 32 import java.awt.Component; 31 33 import java.awt.Graphics; … … 57 59 import org.openstreetmap.josm.plugins.osb.gui.action.OsbAction; 58 60 import org.openstreetmap.josm.plugins.osb.gui.action.PopupFactory; 59 import org.openstreetmap.josm.plugins.osb.i18n.Messages;60 61 import org.openstreetmap.josm.tools.ColorHelper; 61 62 … … 98 99 @Override 99 100 public String getToolTipText() { 100 return Messages.translate(getClass(), "tooltip");101 return tr("Displays OpenStreetBugs issues"); 101 102 } 102 103 -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/OsbPlugin.java
r11569 r12588 28 28 package org.openstreetmap.josm.plugins.osb; 29 29 30 import static org.openstreetmap.josm.tools.I18n.tr; 31 30 32 import java.awt.event.ActionEvent; 31 33 import java.awt.event.ActionListener; -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/OsbUploadHook.java
r11161 r12588 28 28 package org.openstreetmap.josm.plugins.osb; 29 29 30 import static org.openstreetmap.josm.tools.I18n.tr; 31 30 32 import java.util.Collection; 31 33 import java.util.Iterator; … … 47 49 if(containsOsbData) { 48 50 JOptionPane.showMessageDialog(Main.parent, 49 "<html>The selected data contains data from OpenStreetBugs.<br>" + 50 "You cannot upload these data. Maybe you have selected the wrong layer?", 51 "Warning", JOptionPane.WARNING_MESSAGE); 51 tr("<html>The selected data contains data from OpenStreetBugs.<br>" + 52 "You cannot upload these data. Maybe you have selected the wrong layer?"), 53 tr("Warning"), JOptionPane.WARNING_MESSAGE); 52 54 return false; 53 55 } else { -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/api/CloseAction.java
r11157 r12588 28 28 package org.openstreetmap.josm.plugins.osb.api; 29 29 30 import static org.openstreetmap.josm.tools.I18n.tr; 31 30 32 import java.io.IOException; 31 33 … … 36 38 import org.openstreetmap.josm.plugins.osb.ConfigKeys; 37 39 import org.openstreetmap.josm.plugins.osb.api.util.HttpUtils; 38 import org.openstreetmap.josm.plugins.osb.i18n.Messages;39 40 40 41 public class CloseAction { … … 61 62 } else { 62 63 JOptionPane.showMessageDialog(Main.parent, 63 Messages.translate(getClass(), "error_occured", new Object[] {result}),64 Messages.translate(getClass(), "error_occured_title"),64 tr("An error occured: {0}", new Object[] {result}), 65 tr("Error"), 65 66 JOptionPane.ERROR_MESSAGE); 66 67 } -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/api/EditAction.java
r11157 r12588 28 28 package org.openstreetmap.josm.plugins.osb.api; 29 29 30 import static org.openstreetmap.josm.tools.I18n.tr; 31 30 32 import java.io.IOException; 31 33 import java.net.URLEncoder; … … 37 39 import org.openstreetmap.josm.plugins.osb.ConfigKeys; 38 40 import org.openstreetmap.josm.plugins.osb.api.util.HttpUtils; 39 import org.openstreetmap.josm.plugins.osb.i18n.Messages;40 41 41 42 public class EditAction { … … 66 67 } else { 67 68 JOptionPane.showMessageDialog(Main.parent, 68 Messages.translate(getClass(), "error_occured", new Object[] {result}),69 Messages.translate(getClass(), "error_occured_title"),69 tr("An error occured: {0}", new Object[] {result}), 70 tr("Error"), 70 71 JOptionPane.ERROR_MESSAGE); 71 72 } -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/api/NewAction.java
r11587 r12588 27 27 */ 28 28 package org.openstreetmap.josm.plugins.osb.api; 29 30 import static org.openstreetmap.josm.tools.I18n.tr; 29 31 30 32 import java.awt.Point; … … 72 74 id = m.group(1); 73 75 } else { 74 throw new RuntimeException("Couldn't create new bug. Result: " + result); 76 throw new RuntimeException(tr("Couldn't create new bug. Result: {0}" + result)); 75 77 } 76 78 -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/api/util/HttpUtils.java
r11157 r12588 27 27 */ 28 28 package org.openstreetmap.josm.plugins.osb.api.util; 29 30 import static org.openstreetmap.josm.tools.I18n.tr; 29 31 30 32 import java.io.ByteArrayOutputStream; … … 165 167 return value.get(0); 166 168 } else { 167 throw new RuntimeException("Header contains several values and cannot be mapped to a single String"); 169 throw new RuntimeException(tr("Header contains several values and cannot be mapped to a single String")); 168 170 } 169 171 } -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/OsbDialog.java
r11974 r12588 28 28 package org.openstreetmap.josm.plugins.osb.gui; 29 29 30 import static org.openstreetmap.josm.tools.I18n.tr; 31 30 32 import java.awt.BorderLayout; 31 33 import java.awt.GridLayout; … … 72 74 import org.openstreetmap.josm.plugins.osb.gui.action.OsbActionObserver; 73 75 import org.openstreetmap.josm.plugins.osb.gui.action.PopupFactory; 74 import org.openstreetmap.josm.plugins.osb.i18n.Messages;75 76 import org.openstreetmap.josm.tools.Shortcut; 76 77 … … 89 90 90 91 public OsbDialog(final OsbPlugin plugin) { 91 super( "OpenStreetBugs", "icon_error22",92 Messages.translate(OsbDialog.class, "tooltip"),92 super(tr("Open OpenStreetBugs"), "icon_error22", 93 tr("Open the OpenStreetBugs window and activates the automatic download"), 93 94 Shortcut.registerShortcut( 94 Messages.translate(OsbDialog.class, "shortcut"),95 Messages.translate(OsbDialog.class, "shortcut"),96 KeyEvent.VK_O, Shortcut.GROUP_MENU), 95 "view:openstreetbugs", 96 tr("Toggle: {0}", tr("Open OpenStreetBugs")), 97 KeyEvent.VK_O, Shortcut.GROUP_MENU, Shortcut.SHIFT_DEFAULT), 97 98 150); 98 99 … … 110 111 JPanel buttonPanel = new JPanel(new GridLayout(2, 2)); 111 112 add(buttonPanel, BorderLayout.SOUTH); 112 refresh = new JButton( Messages.translate(OsbDialog.class, "refresh"));113 refresh.setToolTipText( Messages.translate(OsbDialog.class, "refresh"));113 refresh = new JButton(tr("Refresh")); 114 refresh.setToolTipText(tr("Refresh")); 114 115 refresh.setIcon(OsbPlugin.loadIcon("view-refresh22.png")); 115 116 refresh.setHorizontalAlignment(SwingConstants.LEFT); … … 120 121 if(Main.map.mapView.zoom() > 15 || Main.map.mapView.zoom() < 9) { 121 122 JOptionPane.showMessageDialog(Main.parent, 122 Messages.translate(OsbDialog.class, "out_of_bounds"),123 Messages.translate(OsbDialog.class, "out_of_bounds_title"),123 tr("The visible area is either too small or too big to download data from OpenStreetBugs"), 124 tr("Warning"), 124 125 JOptionPane.INFORMATION_MESSAGE); 125 126 return; -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/action/AddCommentAction.java
r11568 r12588 28 28 package org.openstreetmap.josm.plugins.osb.gui.action; 29 29 30 import static org.openstreetmap.josm.tools.I18n.tr; 31 30 32 import java.awt.event.ActionEvent; 31 33 … … 35 37 import org.openstreetmap.josm.plugins.osb.ConfigKeys; 36 38 import org.openstreetmap.josm.plugins.osb.api.EditAction; 37 import org.openstreetmap.josm.plugins.osb.i18n.Messages;38 39 39 40 public class AddCommentAction extends OsbAction { … … 44 45 45 46 public AddCommentAction() { 46 super( Messages.translate(AddCommentAction.class, "name"));47 super(tr("Add a comment")); 47 48 } 48 49 … … 52 53 String nickname = Main.pref.get(ConfigKeys.OSB_NICKNAME); 53 54 if(nickname == null || nickname.length() == 0) { 54 nickname = JOptionPane.showInputDialog(Main.parent, Messages.translate(getClass(), "enter_nickname"));55 nickname = JOptionPane.showInputDialog(Main.parent, tr("Please enter a user name")); 55 56 if(nickname == null) { 56 nickname = "NoName";57 nickname = tr("NoName"); 57 58 } else { 58 59 Main.pref.put(ConfigKeys.OSB_NICKNAME, nickname); … … 60 61 } 61 62 62 String comment = JOptionPane.showInputDialog(Main.parent, Messages.translate(getClass(), "enter_comment"));63 String comment = JOptionPane.showInputDialog(Main.parent, tr("Enter your comment")); 63 64 if(comment != null) { 64 65 comment = comment.concat(" [").concat(nickname).concat("]"); -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/action/CloseIssueAction.java
r11568 r12588 28 28 package org.openstreetmap.josm.plugins.osb.gui.action; 29 29 30 import static org.openstreetmap.josm.tools.I18n.tr; 31 30 32 import java.awt.event.ActionEvent; 31 33 import java.io.IOException; … … 35 37 import org.openstreetmap.josm.Main; 36 38 import org.openstreetmap.josm.plugins.osb.api.CloseAction; 37 import org.openstreetmap.josm.plugins.osb.i18n.Messages;38 39 39 40 public class CloseIssueAction extends OsbAction { … … 44 45 45 46 public CloseIssueAction() { 46 super( Messages.translate(CloseIssueAction.class, "name"));47 super(tr("Mark as done")); 47 48 } 48 49 … … 50 51 protected void doActionPerformed(ActionEvent e) throws IOException { 51 52 int result = JOptionPane.showConfirmDialog(Main.parent, 52 Messages.translate(getClass(), "question"),53 Messages.translate(getClass(), "title"),53 tr("Really mark this issue as ''done''?"), 54 tr("Really close?"), 54 55 JOptionPane.YES_NO_OPTION); 55 56 -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/action/NewIssueAction.java
r11568 r12588 28 28 package org.openstreetmap.josm.plugins.osb.gui.action; 29 29 30 import static org.openstreetmap.josm.tools.I18n.tr; 31 30 32 import java.awt.Cursor; 31 33 import java.awt.event.ActionEvent; … … 42 44 import org.openstreetmap.josm.plugins.osb.OsbPlugin; 43 45 import org.openstreetmap.josm.plugins.osb.api.NewAction; 44 import org.openstreetmap.josm.plugins.osb.i18n.Messages;45 46 46 47 public class NewIssueAction extends OsbAction implements MouseListener { … … 55 56 56 57 public NewIssueAction(JToggleButton button, OsbPlugin plugin) { 57 super( Messages.translate(NewIssueAction.class, "name"));58 super(tr("New issue")); 58 59 this.button = button; 59 60 this.plugin = plugin; … … 92 93 String nickname = Main.pref.get(ConfigKeys.OSB_NICKNAME); 93 94 if(nickname == null || nickname.length() == 0) { 94 nickname = JOptionPane.showInputDialog(Main.parent, Messages.translate(AddCommentAction.class, "enter_nickname"));95 nickname = JOptionPane.showInputDialog(Main.parent, tr("Please enter a user name")); 95 96 if(nickname == null) { 96 97 nickname = "NoName"; … … 102 103 // get the comment 103 104 String result = JOptionPane.showInputDialog(Main.parent, 104 Messages.translate(getClass(), "question"),105 Messages.translate(getClass(), "title"),105 tr("Describe the problem precisely"), 106 tr("Create issue"), 106 107 JOptionPane.QUESTION_MESSAGE); 107 108 … … 119 120 e1.printStackTrace(); 120 121 JOptionPane.showMessageDialog(Main.parent, 121 Messages.translate(getClass(), "error_occured", new Object[] {result}),122 Messages.translate(getClass(), "error_occured_title"),122 tr("An error occured: {0}", new Object[] {result}), 123 tr("Error"), 123 124 JOptionPane.ERROR_MESSAGE); 124 125 } -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/action/PopupFactory.java
r11157 r12588 28 28 package org.openstreetmap.josm.plugins.osb.gui.action; 29 29 30 import static org.openstreetmap.josm.tools.I18n.tr; 31 30 32 import javax.swing.JMenuItem; 31 33 import javax.swing.JPopupMenu; … … 45 47 return getFixedPopup(); 46 48 } else { 47 throw new RuntimeException("Unknown issue state"); 49 throw new RuntimeException(tr("Unknown issue state")); 48 50 } 49 51 } -
applications/editors/josm/plugins/openvisible/build.xml
r11975 r12588 17 17 <property name="plugin.jar" value="${plugin.name}.jar"/> 18 18 19 <!-- plugin meta data (enter new version number if anything changed!) -->20 <property name="plugin.version" value="0.2.3"/>21 19 <property name="plugin.description" value="Allows opening gpx/osm files that intersect the currently visible screen area (V${plugin.version})."/> 22 20 <property name="plugin.stage" value="50"/> … … 47 45 <mkdir dir="${plugin.dist.dir}"/> 48 46 47 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 48 <env key="LANG" value="C"/> 49 <arg value="info"/> 50 <arg value="--xml"/> 51 <arg value="."/> 52 </exec> 53 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 54 <delete file="REVISION"/> 49 55 <!-- create jar file --> 50 56 <jar destfile="${plugin.dist.dir}/${plugin.jar}" basedir="${plugin.build.dir}"> … … 52 58 <attribute name="Plugin-Class" value="${plugin.class}" /> 53 59 <attribute name="Plugin-Description" value="${plugin.description}" /> 54 <attribute name="Plugin-Version" value="${plugin.version}" /> 60 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 61 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 62 <attribute name="Plugin-Mainversion" value="1180" /> 55 63 <attribute name="Plugin-Dependencies" value="jgrapht-jdk1.5" /> 56 64 <attribute name="Plugin-Stage" value="${plugin.stage}" /> -
applications/editors/josm/plugins/openvisible/src/at/dallermassl/josm/plugin/openvisible/OpenVisibleAction.java
r7317 r12588 31 31 import org.openstreetmap.josm.io.GpxReader; 32 32 import org.openstreetmap.josm.io.OsmReader; 33 import org.openstreetmap.josm.tools.Shortcut; 33 34 import org.xml.sax.SAXException; 34 35 … … 41 42 42 43 public OpenVisibleAction() { 43 super(tr("Open Visible ..."), "openvisible", tr("Open only files that are visible in current view."), KeyEvent.VK_O, 44 InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK, true); 44 super(tr("Open Visible ..."), "openvisible", 45 tr("Open only files that are visible in current view."), 46 Shortcut.registerShortcut("tools:openvisible", tr("Menu: {0}", tr("Open Visible ...")), 47 KeyEvent.VK_I, Shortcut.GROUP_MENU, Shortcut.SHIFT_DEFAULT), true); 45 48 } 46 49 -
applications/editors/josm/plugins/openvisible/src/at/dallermassl/josm/plugin/openvisible/OpenVisiblePlugin.java
r11974 r12588 8 8 9 9 import org.openstreetmap.josm.Main; 10 import org.openstreetmap.josm.gui.MainMenu; 10 11 import org.openstreetmap.josm.plugins.Plugin; 11 12 import org.openstreetmap.josm.actions.JosmAction; … … 16 17 */ 17 18 public class OpenVisiblePlugin extends Plugin { 18 19 19 20 public OpenVisiblePlugin() { 20 21 super(); 21 JMenu fileMenu = Main.main.menu.fileMenu; 22 JosmAction openVisible = new OpenVisibleAction(); 23 24 //JMenu navigatorMenu = new JMenu("Open Visible"); 25 JMenuItem menuItem = new JMenuItem(openVisible); 26 27 fileMenu.add(menuItem,2); 28 menuItem.setAccelerator(openVisible.shortcut); 22 MainMenu.add(Main.main.menu.fileMenu, new OpenVisibleAction()); 29 23 } 30 24 -
applications/editors/josm/plugins/osmarender/src/OsmarenderPlugin.java
r9603 r12588 139 139 firefox.setText(Main.pref.get("osmarender.firefox")); 140 140 } 141 public voidok() {141 public boolean ok() { 142 142 Main.pref.put("osmarender.firefox", firefox.getText()); 143 return false; 143 144 } 144 145 }; -
applications/editors/josm/plugins/pluginmanager/build.xml
r7287 r12588 17 17 <property name="plugin.jar" value="${plugin.name}.jar"/> 18 18 19 <!-- plugin meta data (enter new version number if anything changed!) -->20 <property name="plugin.version" value="0.3.0"/>21 19 <property name="plugin.description" value="Manage plugins and provide update mechanism (V${plugin.version})."/> 22 20 <property name="plugin.class" value="at.dallermassl.josm.plugin.pluginmanager.PluginManagerPlugin"/> … … 45 43 </copy> 46 44 45 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 46 <env key="LANG" value="C"/> 47 <arg value="info"/> 48 <arg value="--xml"/> 49 <arg value="."/> 50 </exec> 51 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 52 <delete file="REVISION"/> 47 53 <!-- create jar file --> 48 54 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> … … 50 56 <attribute name="Plugin-Class" value="${plugin.class}" /> 51 57 <attribute name="Plugin-Description" value="${plugin.description}" /> 52 <attribute name="Plugin-Version" value="${plugin.version}" /> 53 <!--attribute name="Plugin-Dependencies" value="org.eigenheimstrasse.josm" /--> 58 <attribute name="Plugin-Mainversion" value="1180" /> 59 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 60 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 54 61 </manifest> 55 62 </jar> -
applications/editors/josm/plugins/pluginmanager/src/at/dallermassl/josm/plugin/pluginmanager/PluginManagerPreference.java
r3335 r12588 50 50 private JList siteList; 51 51 private DefaultListModel siteListModel; 52 52 private boolean requiresRestart = false; 53 53 54 protected DefaultListModel createListModel() { 54 55 Map<String, String> sites = Main.pref.getAllPrefix(PREF_KEY_REMOTE_SITE_PREFIX); … … 103 104 return; 104 105 } 105 gui.requiresRestart = gui.requiresRestart || false;106 106 } 107 107 }); … … 117 117 siteListModel.removeElementAt(selected[i]); 118 118 } 119 gui.requiresRestart = gui.requiresRestart || false;120 119 } 121 120 } … … 142 141 PluginUpdateFrame frame = new PluginUpdateFrame(tr("Plugins"), descriptions); 143 142 frame.setVisible(true); 144 gui.requiresRestart = true;143 requiresRestart = true; 145 144 } 146 145 } … … 167 166 * @see org.openstreetmap.josm.gui.preferences.PreferenceSetting#ok() 168 167 */ 169 // only in 1.6 allowed @Override 170 public void ok() { 168 public boolean ok() { 171 169 // first remove all old entries: 172 170 Map<String, String> keys = Main.pref.getAllPrefix(PREF_KEY_REMOTE_SITE_PREFIX); … … 189 187 } 190 188 } 189 return requiresRestart; 191 190 } 192 193 191 } -
applications/editors/josm/plugins/remotecontrol
-
Property svn:ignore
set to
build
-
Property svn:ignore
set to
-
applications/editors/josm/plugins/remotecontrol/build.xml
r9417 r12588 40 40 <attribute name="Plugin-Description" value="A plugin allowing other applications to send commands to JOSM." /> 41 41 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 42 <attribute name="Plugin-Mainversion" value="1180"/> 42 43 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 43 44 <attribute name="Author" value="Frederik Ramm <frederik@remote.org>"/> -
applications/editors/josm/plugins/remotecontrol/src/org/openstreetmap/josm/plugins/remotecontrol/RemoteControlPreferences.java
r9465 r12588 57 57 } 58 58 59 public voidok() {59 public boolean ok() { 60 60 Main.pref.put("remotecontrol.permission.load-data", permissionLoadData.isSelected()); 61 61 Main.pref.put("remotecontrol.permission.change-selection", permissionChangeSelection.isSelected()); 62 62 Main.pref.put("remotecontrol.permission.change-viewport", permissionChangeViewport.isSelected()); 63 63 Main.pref.put("remotecontrol.always-confirm", alwaysAskUserConfirm.isSelected()); 64 64 return false; 65 65 } 66 66 } -
applications/editors/josm/plugins/slippymap/build.xml
r10111 r12588 42 42 <attribute name="Plugin-Description" value="Displays a slippy map tile grid, and tile status info" /> 43 43 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 44 <attribute name="Plugin-Mainversion" value="1180"/> 44 45 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 45 46 </manifest> -
applications/editors/josm/plugins/slippymap/src/org/openstreetmap/josm/plugins/slippymap/SlippyMapPreferenceSetting.java
r10111 r12588 58 58 * Someone pressed the "ok" button 59 59 */ 60 public voidok()60 public boolean ok() 61 61 { 62 62 Main.pref.put(SlippyMapPreferences.PREFERENCE_TILE_URL, tileSourceCombo 63 63 .getSelectedItem().toString()); 64 return false; 64 65 } 65 66 } -
applications/editors/josm/plugins/tagging-preset-tester/build.xml
r7287 r12588 15 15 <echo message="creating ${plugin.jar}"/> 16 16 <mkdir dir="build"/> 17 <javac srcdir="src" destdir="build" classpath="../../core/dist/josm-custom.jar" /> 17 <javac srcdir="src" destdir="build" classpath="../../core/dist/josm-custom.jar"> 18 <compilerarg value="-Xlint:deprecation"/> 19 </javac> 18 20 </target> 19 21 20 22 <target name="dist" depends="compile"> 21 23 <mkdir dir="dist"/> 22 <jar destfile="${plugin.jar}" 23 basedir="build" 24 manifest="src/org/openstreetmap/josm/plugins/taggingpresettester/MANIFEST.MF"> 24 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 25 <env key="LANG" value="C"/> 26 <arg value="info"/> 27 <arg value="--xml"/> 28 <arg value="."/> 29 </exec> 30 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 31 <delete file="REVISION"/> 32 <jar destfile="${plugin.jar}" basedir="build"> 33 <manifest> 34 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 35 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 36 <attribute name="Plugin-Description" value="Make the Tagging Preset Tester tool available in the help menu." /> 37 <attribute name="Main-Class" value="org.openstreetmap.josm.plugins.taggingpresettester.TaggingPresetTester" /> 38 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.taggingpresettester.TaggingPresetTesterAction" /> 39 <attribute name="Plugin-Mainversion" value="1180" /> 40 </manifest> 25 41 <fileset dir="."><include name="images/*"/></fileset> 26 42 </jar> -
applications/editors/josm/plugins/tagging-preset-tester/src/org/openstreetmap/josm/plugins/taggingpresettester/TaggingPresetTesterAction.java
r3639 r12588 10 10 import org.openstreetmap.josm.Main; 11 11 import org.openstreetmap.josm.actions.JosmAction; 12 import org.openstreetmap.josm.gui.MainMenu; 13 import org.openstreetmap.josm.tools.Shortcut; 12 14 13 15 /** … … 18 20 19 21 public TaggingPresetTesterAction() { 20 super(tr("Tagging Preset Tester"), "tagging-preset-tester", tr("Open the tagging preset test tool for previewing tagging preset dialogs."), KeyEvent.VK_A, KeyEvent.CTRL_DOWN_MASK | KeyEvent.ALT_DOWN_MASK, true); 22 super(tr("Tagging Preset Tester"), "tagging-preset-tester", 23 tr("Open the tagging preset test tool for previewing tagging preset dialogs."), 24 Shortcut.registerShortcut("tools:taggingresettester", 25 tr("Tool: {0}", tr("Tagging Preset Tester")), 26 KeyEvent.VK_A, Shortcut.GROUP_EDIT, Shortcut.SHIFT_DEFAULT), true); 21 27 Main.main.menu.helpMenu.addSeparator(); 22 Main.main.menu.helpMenu .add(this);28 MainMenu.add(Main.main.menu.helpMenu, this); 23 29 } 24 30 -
applications/editors/josm/plugins/tcxplugin
-
Property svn:ignore
set to
build
josm-site.xml
-
Property svn:ignore
set to
-
applications/editors/josm/plugins/tcxplugin/build.xml
r11976 r12588 20 20 <property name="livegpsplugin.jar" value="../../dist/livegps.jar"/> 21 21 22 <!-- plugin meta data (enter new version number if anything changed!) -->23 <property name="plugin.version" value="1.1"/>24 22 <property name="plugin.description" value="Adds support for TCX files."/> 25 23 <property name="plugin.stage" value="100"/> … … 51 49 52 50 51 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 52 <env key="LANG" value="C"/> 53 <arg value="info"/> 54 <arg value="--xml"/> 55 <arg value="."/> 56 </exec> 57 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 58 <delete file="REVISION"/> 53 59 <!-- create jar file --> 54 60 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> … … 56 62 <attribute name="Plugin-Class" value="${plugin.class}" /> 57 63 <attribute name="Plugin-Description" value="${plugin.description}" /> 58 <attribute name="Plugin-Version" value="${plugin.version}" />59 64 <attribute name="Plugin-Stage" value="${plugin.stage}" /> 65 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 66 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 67 <attribute name="Plugin-Mainversion" value="1180" /> 60 68 <!-- <attribute name="Class-Path" value="lib/jaxb-api.jar;lib/jaxb-impl.jar" />--> 61 69 </manifest> -
applications/editors/josm/plugins/tcxplugin/src/org/openstreetmap/josm/plugins/TcxPlugin.java
r11974 r12588 19 19 20 20 import org.openstreetmap.josm.Main; 21 import org.openstreetmap.josm.gui.MainMenu; 21 22 import org.openstreetmap.josm.actions.DiskAccessAction; 22 23 import org.openstreetmap.josm.actions.JosmAction; … … 25 26 import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer; 26 27 import org.openstreetmap.josm.io.TcxReader; 28 import org.openstreetmap.josm.tools.Shortcut; 27 29 /** 28 30 * @author adrian … … 35 37 public OpenAction() 36 38 { 37 super("Import TCX File...", "tcxicon", "", KeyEvent.VK_T, KeyEvent.CTRL_MASK); 39 super(tr("Import TCX File..."), "tcxicon", tr("Import TCX file as GPS track"), 40 Shortcut.registerShortcut("menu:importtcx", tr("Menu: {0}", tr("Import TCX File...")), 41 KeyEvent.VK_T, Shortcut.GROUP_MENU)); 38 42 } 39 43 … … 98 102 public TcxPlugin() 99 103 { 100 JMenu menu = Main.main.menu.getMenu(0); 101 102 JosmAction openAction = new OpenAction(); 103 JMenuItem actionItem = new JMenuItem(openAction); 104 menu.insert(actionItem, 2); 105 actionItem.setAccelerator(openAction.shortcut); 106 104 MainMenu.add(Main.main.menu.fileMenu, new OpenAction()); 107 105 } 108 106 } -
applications/editors/josm/plugins/wmsplugin
- Property svn:ignore
-
old new 1 1 build 2 2 dist 3 webkit-image.h
-
- Property svn:ignore
-
applications/editors/josm/plugins/wmsplugin/build.xml
r12472 r12588 56 56 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 57 57 <attribute name="Plugin-Description" value="Allows external WMS resources to be displayed." /> 58 <attribute name="Plugin-Mainversion" value="11 53" />58 <attribute name="Plugin-Mainversion" value="1180" /> 59 59 </manifest> 60 60 </jar> -
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSPreferenceEditor.java
r12321 r12588 109 109 } 110 110 111 public voidok() {111 public boolean ok() { 112 112 boolean change = false; 113 113 for (int i = 0; i < model.getRowCount(); ++i) { … … 145 145 146 146 if (change) WMSPlugin.refreshMenu(); 147 return false; 147 148 } 148 149 -
applications/editors/josm/plugins/wmsplugin/webkit-image.cpp
r12421 r12588 22 22 #define BINARYSTDOUT 23 23 #endif 24 25 #define WIDTH 200026 24 27 25 class Save : public QObject … … 74 72 QObject::connect(page, SIGNAL(loadFinished(bool)), s, SLOT(loaded(bool))); 75 73 QObject::connect(s, SIGNAL(finish(void)), &a, SLOT(quit())); 74 /* set some useful defaults for a webpage */ 75 // page->setViewportSize(QSize(1280,1024)); 76 // page->mainFrame()->setScrollBarPolicy(Qt::Horizontal, Qt::ScrollBarAlwaysOff); 77 // page->mainFrame()->setScrollBarPolicy(Qt::Vertical, Qt::ScrollBarAlwaysOff); 76 78 page->mainFrame()->load (QUrl(url)); 77 79 return a.exec();
Note:
See TracChangeset
for help on using the changeset viewer.