Ignore:
Timestamp:
2010-03-01T18:48:22+01:00 (14 years ago)
Author:
pieren
Message:

Grabbed images resolution configurable + fixed minor issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePlugin.java

    r20214 r20240  
    9999 *                 - raster image rotation issues fixed, now using shift+ctrl key instead of ctrl
    100100 *                 - raster image adjustment using default system menu modifier (ctrl for windows) for Mac support
     101 *                 - image resolution configurable (high, medium, low) like the online interface
    101102 *                 - from Erik Amzallag:
    102103 *                 -     possibility to modify the auto-sourcing text just before upload
     
    129130
    130131    public static boolean drawBoundaries = false;
     132
     133    public static int imageWidth, imageHeight;
    131134
    132135    static private boolean menuEnabled = false;
     
    177180            });
    178181
    179             JMenuItem menuResetCookie = new JMenuItem(new MenuActionResetCookie());
     182            //JMenuItem menuResetCookie = new JMenuItem(new MenuActionResetCookie());
    180183            //JMenuItem menuLambertZone = new JMenuItem(new MenuActionLambertZone());
    181184            JMenuItem menuLoadFromCache = new JMenuItem(new MenuActionLoadFromCache());
     
    210213            transparency = 1.0f;
    211214        }
     215        String currentResolution = Main.pref.get("cadastrewms.resolution", "high");
     216        if (currentResolution.equals("high")) {
     217            imageWidth = 1000; imageHeight = 800;
     218        } else if (currentResolution.equals("medium")){
     219            imageWidth = 800; imageHeight = 600;
     220        } else {
     221            imageWidth = 600; imageHeight = 400;
     222        }
     223       
    212224        // overwrite F11 shortcut used from the beginning by this plugin and recently used
    213225        // for full-screen switch in JOSM core
Note: See TracChangeset for help on using the changeset viewer.