OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 182 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 182 Rev 185
Line 77... Line 77...
77
        this.add(comboLook, c);
77
        this.add(comboLook, c);
78
 
78
 
79
        c.gridy++;
79
        c.gridy++;
80
        c.gridx = 0;
80
        c.gridx = 0;
81
        this.add(new JLabel("High DPI"), c);
81
        this.add(new JLabel("High DPI"), c);
82
        this.comboDPI = new JComboBox(new String[] { "Désactivé", "x1.3", "x2", "x3", "x4" });
82
        this.comboDPI = new JComboBox(new String[] { "Désactivé", "x1.15", "x1.3", "x2", "x3", "x4" });
83
        String dpi = this.properties.getProperty(UI_DPI);
83
        String dpi = this.properties.getProperty(UI_DPI);
84
        if (dpi != null && !dpi.equals("1")) {
84
        if (dpi != null && !dpi.equals("1")) {
-
 
85
            if (dpi.equalsIgnoreCase("1.15")) {
-
 
86
                comboDPI.setSelectedIndex(1);
-
 
87
            } else if (dpi.equalsIgnoreCase("1.3")) {
85
            comboDPI.setSelectedIndex(Float.valueOf(dpi).intValue());
88
                comboDPI.setSelectedIndex(2);
-
 
89
            } else if (dpi.equalsIgnoreCase("2")) {
-
 
90
                comboDPI.setSelectedIndex(3);
-
 
91
            } else if (dpi.equalsIgnoreCase("3")) {
-
 
92
                comboDPI.setSelectedIndex(4);
-
 
93
            } else if (dpi.equalsIgnoreCase("4")) {
-
 
94
                comboDPI.setSelectedIndex(5);
-
 
95
            }
86
        }
96
        }
87
 
97
 
88
        c.gridx++;
98
        c.gridx++;
89
        this.add(comboDPI, c);
99
        this.add(comboDPI, c);
90
 
100
 
Line 220... Line 230...
220
        } else {
230
        } else {
221
            properties.setProperty(UI_LOOK, "flat");
231
            properties.setProperty(UI_LOOK, "flat");
222
        }
232
        }
223
 
233
 
224
        if (this.comboDPI.getSelectedIndex() == 1) {
234
        if (this.comboDPI.getSelectedIndex() == 1) {
225
            properties.setProperty(UI_DPI, "1.3");
235
            properties.setProperty(UI_DPI, "1.15");
226
        } else if (this.comboDPI.getSelectedIndex() == 2) {
236
        } else if (this.comboDPI.getSelectedIndex() == 2) {
227
            properties.setProperty(UI_DPI, "2");
237
            properties.setProperty(UI_DPI, "1.3");
228
        } else if (this.comboDPI.getSelectedIndex() == 3) {
238
        } else if (this.comboDPI.getSelectedIndex() == 3) {
229
            properties.setProperty(UI_DPI, "3");
239
            properties.setProperty(UI_DPI, "2");
230
        } else if (this.comboDPI.getSelectedIndex() == 4) {
240
        } else if (this.comboDPI.getSelectedIndex() == 4) {
-
 
241
            properties.setProperty(UI_DPI, "3");
-
 
242
        } else if (this.comboDPI.getSelectedIndex() == 5) {
231
            properties.setProperty(UI_DPI, "4");
243
            properties.setProperty(UI_DPI, "4");
232
        } else {
244
        } else {
233
            properties.setProperty(UI_DPI, "1");
245
            properties.setProperty(UI_DPI, "1");
234
        }
246
        }
235
 
247