Subversion Repositories eFlore/Applications.coel

Rev

Rev 69 | Rev 907 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
64 jpm 1
package org.tela_botanica.client.composants;
2
 
3
import org.tela_botanica.client.RegistreId;
516 jp_milcent 4
import org.tela_botanica.client.images.Images;
64 jpm 5
 
66 jpm 6
import com.extjs.gxt.ui.client.GXT;
64 jpm 7
import com.extjs.gxt.ui.client.Registry;
66 jpm 8
import com.extjs.gxt.ui.client.Version;
64 jpm 9
import com.extjs.gxt.ui.client.widget.TabItem;
10
import com.extjs.gxt.ui.client.widget.TabPanel;
11
import com.extjs.gxt.ui.client.widget.Window;
12
import com.extjs.gxt.ui.client.widget.layout.FitData;
13
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
14
import com.google.gwt.core.client.GWT;
15
 
16
public class ParametreFenetre extends Window {
17
 
18
	public ParametreFenetre() {
19
		setSize(500, 300);
20
		setPlain(true);
21
		setHeading("Paramêtres et préférences");
516 jp_milcent 22
		setIcon(Images.ICONES.application());
64 jpm 23
		setLayout(new FitLayout());
24
 
66 jpm 25
		TabPanel panneaux = new TabPanel();
26
		panneaux.setBorders(false);
27
		TabItem parametresOnglet = new TabItem("Paramêtres");
516 jp_milcent 28
		parametresOnglet.setIcon(Images.ICONES.engrenages());
66 jpm 29
		parametresOnglet.addText("Paramêtres de l'application...");
30
		parametresOnglet.addStyleName("pad-text");
64 jpm 31
 
66 jpm 32
		TabItem preferencesOnglet = new TabItem("Préférences");
33
		preferencesOnglet.addText("Préférences de l'application...");
516 jp_milcent 34
		preferencesOnglet.setIcon(Images.ICONES.groupeEngrenage());
66 jpm 35
		preferencesOnglet.addStyleName("pad-text");
64 jpm 36
 
66 jpm 37
		TabItem aproposOnglet = new TabItem("A propos...");
516 jp_milcent 38
		aproposOnglet.setIcon(Images.ICONES.information());
66 jpm 39
		aproposOnglet.addText("<h1>"+(String) Registry.get(RegistreId.APPLI_NOM)+"</h1>");
40
		aproposOnglet.addText("Code : "+(String) Registry.get(RegistreId.APPLI_CODE));
41
		aproposOnglet.addText("Version : "+(String) Registry.get(RegistreId.APPLI_VERSION));
42
		aproposOnglet.addText("Révision : "+(String) Registry.get(RegistreId.APPLI_REVISION));
43
		aproposOnglet.addText("<hr />");
44
		aproposOnglet.addText("<h1>"+"Cadre de travail"+"</h1>");
45
		aproposOnglet.addText("GWT : v"+GWT.getVersion());
46
		Version gxtVersion = GXT.getVersion();
47
		aproposOnglet.addText("GXT : v"+gxtVersion.getRelease());
48
		aproposOnglet.addText("<hr />");
49
		aproposOnglet.addText("<h1>"+"Navigateur"+"</h1>");
50
		aproposOnglet.addText("COEL fonctionne actuellement dans : "+GXT.getUserAgent());
64 jpm 51
 
66 jpm 52
		aproposOnglet.addStyleName("pad-text");
64 jpm 53
 
66 jpm 54
		panneaux.add(parametresOnglet);
55
		panneaux.add(preferencesOnglet);
56
		panneaux.add(aproposOnglet);
57
 
58
		add(panneaux, new FitData(4));
64 jpm 59
	}
60
 
61
}