OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 174 Rev 182
Line 1... Line 1...
1
/*
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 * 
3
 * 
4
 * Copyright 2011 OpenConcerto, by ILM Informatique. All rights reserved.
4
 * Copyright 2011-2019 OpenConcerto, by ILM Informatique. All rights reserved.
5
 * 
5
 * 
6
 * The contents of this file are subject to the terms of the GNU General Public License Version 3
6
 * The contents of this file are subject to the terms of the GNU General Public License Version 3
7
 * only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
7
 * only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
8
 * copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
8
 * copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
9
 * language governing permissions and limitations under the License.
9
 * language governing permissions and limitations under the License.
Line 57... Line 57...
57
 
57
 
58
    TicketPanel(final CaisseControler controler) {
58
    TicketPanel(final CaisseControler controler) {
59
        this.controler = controler;
59
        this.controler = controler;
60
        this.controler.addCaisseListener(this);
60
        this.controler.addCaisseListener(this);
61
        if (this.controler.getPOSConf().getScreenWidth() < 1280) {
61
        if (this.controler.getPOSConf().getScreenWidth() < 1280) {
62
            this.xOffset = -24;
62
            this.xOffset = -60;
63
        }
63
        }
64
        this.setOpaque(false);
64
        this.setOpaque(false);
65
        this.bg = new ImageIcon(TicketPanel.class.getResource("ticket.png")).getImage();
65
        this.bg = new ImageIcon(TicketPanel.class.getResource("ticket.png")).getImage();
66
        this.setLayout(null);
66
        this.setLayout(null);
67
 
67
 
Line 98... Line 98...
98
                this.renderer.paint(g, TicketPanel.this.list, (TicketItem) value, index, isSelected);
98
                this.renderer.paint(g, TicketPanel.this.list, (TicketItem) value, index, isSelected);
99
                g.translate(0, -posY);
99
                g.translate(0, -posY);
100
            }
100
            }
101
        };
101
        };
102
        this.list.setOpaque(false);
102
        this.list.setOpaque(false);
103
        this.list.setSize(315, 450);
103
        this.list.setSize(320, 450);
104
        this.list.setFixedCellHeight(40);
104
        this.list.setFixedCellHeight(40);
-
 
105
        System.out.println("TicketPanel.TicketPanel() this.controler.getPOSConf().getScreenWidth()"+this.controler.getPOSConf().getScreenWidth());
105
        this.list.setLocation(30 + this.xOffset, 18);
106
        this.list.setLocation(64 + this.xOffset, 18);
-
 
107
       // this.list.setLocation(30  , 18);
106
        this.add(this.list);
108
        this.add(this.list);
107
 
109
 
108
        this.lTotal.setSize(276 - 10, 32);
110
        this.lTotal.setSize(276 - 10, 32);
109
        this.lTotal.setLocation(68 + this.xOffset, 500 - 32);
111
        this.lTotal.setLocation(68 + this.xOffset, 500 - 32);
110
        this.lTotal.setFont(new Font("Arial", Font.BOLD, 18));
112
        this.lTotal.setFont(new Font("Arial", Font.BOLD, 18));