Changeset 34422 in osm for applications/editors


Ignore:
Timestamp:
2018-07-13T11:17:51+02:00 (7 years ago)
Author:
nzara
Message:

bug fix

Location:
applications/editors/josm/plugins/pdfimport/src/pdfimport
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/pdfimport/src/pdfimport/GuiFieldString.java

    r34398 r34422  
    77
    88public class GuiFieldString extends JTextField {
     9        /*
     10         * TODO: integrate presentation of dataValid;
     11         */
    912
    1013        protected Border defaultBorder;
  • applications/editors/josm/plugins/pdfimport/src/pdfimport/GuiProjections.java

    r34398 r34422  
    3030        /*
    3131         * provide a component let the user select a projection
     32         * TODO: allow preferences for sub-projections like UTM, Gauss-Krüger, etc.
     33         * TODO: allow selection of projection by code (EPSG)
     34         * TODO: allow selection of custom projection
    3235         */
    3336        private GuiPanel panel = null;
     
    147150                try {
    148151                        bd=p.getWorldBoundsBoxEastNorth();
    149                         s += String.format("Center: (%.0f %.0f) Min:(%.0f %.0f) Max:(%.0f %.0f)", bd.getCenter().east(),bd.getCenter().north(), bd.getMin().east(),bd.getMin().north(),bd.getMax().east(),bd.getMax().north());
     152                        s += String.format("(%3$.0f %4$.0f) : (%5$.0f %6$.0f)", bd.getCenter().east(),bd.getCenter().north(), bd.getMin().east(),bd.getMin().north(),bd.getMax().east(),bd.getMax().north());
    150153                } catch (Exception e) {
     154                        e.toString();
    151155                        // Leave it, if we cant get it
    152156                }
  • applications/editors/josm/plugins/pdfimport/src/pdfimport/LoadPdfDialog.java

    r34398 r34422  
    363363                 /*
    364364                  * perform load PDF file to preview
     365                  * TODO: load preview to previous placement, involves reverse transform
    365366                  */
    366367                final File newFileName = this.chooseFile();
    367368
    368369                if (newFileName == null) {
    369                         return;
     370                        if (Preferences.getGuiMode() == Preferences.GuiMode.Simple) {
     371                                cancelAction();
     372                        } else
     373                                return;
    370374                }
    371375                Logging.debug("PdfImport: Load Preview");
  • applications/editors/josm/plugins/pdfimport/src/pdfimport/PdfImportPlugin.java

    r34398 r34422  
    5050        @Override
    5151        public PreferenceSetting getPreferenceSetting() {
     52                /*
     53                 * TODO: implement it
     54                 */
    5255                return new pdfimportPrefs();
    5356                }
Note: See TracChangeset for help on using the changeset viewer.