OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Comparer les révisions

Ignorer les espaces blanc Révision 170 → Révision 171

/trunk/Modules/Module Fidelity Card/src/org/openconcerto/modules/card/SQLElementNames_en.xml
Fichier supprimé
/trunk/Modules/Module Fidelity Card/src/org/openconcerto/modules/card/SQLElementNames_fr.xml
Fichier supprimé
/trunk/Modules/Module Fidelity Card/src/org/openconcerto/modules/card/labels_en.xml
3,9 → 3,9
<TABLE name="CLIENT">
<FIELD name="ID_FIDELITY_CARD" label="Fidelity card" />
</TABLE>
<TABLE name="FIDELITY_CARD">
<element refid="org.openconcerto.modules.card/FIDELITY_CARD" name="fidelity card">
<FIELD name="POINTS" label="Points" />
<FIELD name="SERIAL" label="Serial number" />
<FIELD name="EXPIRATION_DATE" label="Expiration date" />
</TABLE>
</element>
</ROOT>
/trunk/Modules/Module Fidelity Card/src/org/openconcerto/modules/card/labels_fr.xml
3,9 → 3,10
<TABLE name="CLIENT">
<FIELD name="ID_FIDELITY_CARD" label="Carte de fidélité" />
</TABLE>
<TABLE name="FIDELITY_CARD">
<element refid="org.openconcerto.modules.card/FIDELITY_CARD" nameClass="feminine" name="carte de fidélité"
namePlural="cartes de fidélité">
<FIELD name="POINTS" label="Points" />
<FIELD name="SERIAL" label="Numéro de série" />
<FIELD name="EXPIRATION_DATE" label="Date limite" />
</TABLE>
</element>
</ROOT>
/trunk/Modules/Module Fidelity Card/src/org/openconcerto/modules/card/ModuleCard.java
20,6 → 20,7
import org.openconcerto.sql.element.SQLElement.ReferenceAction;
import org.openconcerto.sql.element.SQLElementDirectory;
import org.openconcerto.sql.element.UISQLComponent;
import org.openconcerto.sql.model.DBRoot;
import org.openconcerto.sql.model.SQLTable;
import org.openconcerto.sql.utils.SQLCreateTable;
import org.openconcerto.utils.ListMap;
110,11 → 111,11
}
 
@Override
public List<ModulePreferencePanelDesc> getPrefDescriptors() {
public List<ModulePreferencePanelDesc> getPrefDescriptors(final DBRoot root) {
return Arrays.<ModulePreferencePanelDesc> asList(new ModulePreferencePanelDesc("Préf") {
@Override
protected ModulePreferencePanel createPanel() {
return new ModulePreferencePanel("Mon super titre") {
return new ModulePreferencePanel(root, "Mon super titre") {
@Override
protected void addViews() {
this.addView(new SQLPrefView<Boolean>(PrefType.BOOLEAN_TYPE, "Un booléen", "boolPref").setDefaultValue(Boolean.TRUE));
126,7 → 127,7
}, new ModulePreferencePanelDesc("Préf2") {
@Override
protected ModulePreferencePanel createPanel() {
return new ModulePreferencePanel("Mon super titre") {
return new ModulePreferencePanel(root, "Mon super titre") {
@Override
protected void addViews() {
this.addView(new SQLPrefView<String>(PrefType.STRING_TYPE, 512, "Du texte", "textPref").setDefaultValue("long texte"));