Skip to content

Commit

Permalink
Merge pull request #27 from cpc6128/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
cpc6128 authored Jan 5, 2021
2 parents a4a7348 + 66895be commit e7b73b8
Show file tree
Hide file tree
Showing 31 changed files with 94 additions and 22 deletions.
2 changes: 1 addition & 1 deletion linotte-accessibilite/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>langagelinotte</artifactId>
<groupId>fr.codevallee</groupId>
<version>3.5</version>
<version>3.6</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion linotte-alize/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>langagelinotte</artifactId>
<groupId>fr.codevallee</groupId>
<version>3.5</version>
<version>3.6</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion linotte-dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>langagelinotte</artifactId>
<groupId>fr.codevallee</groupId>
<version>3.5</version>
<version>3.6</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion linotte-ext/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>langagelinotte</artifactId>
<groupId>fr.codevallee</groupId>
<version>3.5</version>
<version>3.6</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
10 changes: 8 additions & 2 deletions linotte-greffons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>langagelinotte</artifactId>
<groupId>fr.codevallee</groupId>
<version>3.5</version>
<version>3.6</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -14,7 +14,7 @@
<dependency>
<groupId>fr.codevallee</groupId>
<artifactId>linotte-moteur</artifactId>
<version>3.5</version>
<version>3.6</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand All @@ -33,16 +33,20 @@
<version>3.4.1</version>
</dependency>

<!-- Désactivation de la 3D car bogue sur certaines JVM -->
<!-- https://github.com/cpc6128/LangageLinotte/issues/13 -->

<dependency>
<groupId>org.jogamp.gluegen</groupId>
<artifactId>gluegen-rt-main</artifactId>
<version>2.3.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jogamp.jogl</groupId>
<artifactId>jogl-all-main</artifactId>
<version>2.3.2</version>
<scope>provided</scope>
</dependency>


Expand All @@ -51,12 +55,14 @@
<groupId>com.massisframework.j3d</groupId>
<artifactId>java3d-core</artifactId>
<version>1.6.0.1</version>
<scope>provided</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/com.massisframework.j3d/vecmath -->
<dependency>
<groupId>com.massisframework.j3d</groupId>
<artifactId>vecmath</artifactId>
<version>1.6.0.1</version>
<scope>provided</scope>
</dependency>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public void initialisation() throws GreffonException {
}
setVisible(getAttributeAsString("visible").equals("oui"));
barre = new JToolBar();
super.initaccessibilite(barre);
// Position :
x = getAttributeAsBigDecimal("x").intValue();
y = getAttributeAsBigDecimal("y").intValue();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public void initialisation() throws GreffonException {
return;
}
textPane = new JTextArea();
super.initaccessibilite(textPane);
textPane.setLineWrap(false);
initialize();
setVisible(getAttributeAsString("visible").equals("oui"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public void initialisation() throws GreffonException {
String touche = getAttributeAsString("touche");
String icone = getAttributeAsString("icône");
button = new JButton(texte);
super.initaccessibilite(button);
chargerImage(icone);
// Position :
x = getAttributeAsBigDecimal("x").intValue();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public void initialisation() throws GreffonException {
String texte = getAttributeAsString("texte");
String icone = getAttributeAsString("icône");
radionButton = new JRadioButton(texte);
super.initaccessibilite(radionButton);
radionButton.setActionCommand(texte);
chargerImage(icone);
// Position :
Expand Down Expand Up @@ -95,8 +96,6 @@ public boolean enregistrerPourDestruction() {
}

/**
* @param hauteur
* @param largeur
* @param source
*/
private void chargerImage(String source) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public void initialisation() throws GreffonException {
String texte = getAttributeAsString("texte");
String icone = getAttributeAsString("icône");
checkBox = new JCheckBox(texte);
super.initaccessibilite(checkBox);
checkBox.setActionCommand(texte);
chargerImage(icone);
// Position :
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public void initialisation() throws GreffonException {
} else {
champ = new JTextField(texte);
}
super.initaccessibilite(champ);

champ.setColumns(10);
// Droit d'ecriture :
champ.setEditable(!"lecture".equals(mode));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ public abstract class ComposantSwing extends Composant {

private ComposantSwing composantPere;

public void initaccessibilite(JComponent xxx) throws GreffonException {
Component component = getJComponent();
xxx.setFocusable(true);
}
public void initEvenement() throws GreffonException {
clic_souris.clear();
souris_entrante.clear();
Expand All @@ -33,7 +37,9 @@ public void initEvenement() throws GreffonException {

Component component = getJComponent();
removeMouseListener();


// Action de l'action avec la touche entrée :

mouseListener = new MouseListener() {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public void initialisation() throws GreffonException {
setVisible(getAttributeAsString("visible").equals("oui"));
String texte = getAttributeAsString("texte");
label = new JLabel(texte);
super.initaccessibilite(label);
// Position :
x = getAttributeAsBigDecimal("x").intValue();
y = getAttributeAsBigDecimal("y").intValue();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public void initialisation() throws GreffonException {
listModel = new DefaultListModel();
setVisible(getAttributeAsString("visible").equals("oui"));
list = new JListX(listModel);
super.initaccessibilite(list);

list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
// Position :
x = getAttributeAsBigDecimal("x").intValue();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public void initialisation() throws GreffonException {
setVisible(getAttributeAsString("visible").equals("oui"));
String texte = getAttributeAsString("texte");
menu = new JMenu(texte);
super.initaccessibilite(menu);
//menu.getAccessibleContext().setAccessibleName(texte);
menu.setVisible(isVisible());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public void initialisation() throws GreffonException {

String texte = getAttributeAsString("texte");
button = new JButton(texte);
super.initaccessibilite(button);

initEvenement();
button.setVisible(isVisible());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public void initialisation() throws GreffonException {
String texte = getAttributeAsString("texte");
String icone = getAttributeAsString("icône");
checkBox = new JCheckBoxMenuItem(texte);
super.initaccessibilite(checkBox);
checkBox.setActionCommand(texte);
chargerImage(icone);
String couleur = getAttributeAsString("couleurtexte");
Expand Down Expand Up @@ -98,8 +99,6 @@ public boolean enregistrerPourDestruction() {
}

/**
* @param hauteur
* @param largeur
* @param source
*/
private void chargerImage(String source) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public void initialisation() throws GreffonException {
}
setVisible(getAttributeAsString("visible").equals("oui"));
tabbedPane = new JTabbedPane();
super.initaccessibilite(tabbedPane);
// Position :
x = getAttributeAsBigDecimal("x").intValue();
y = getAttributeAsBigDecimal("y").intValue();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public void initialisation() throws GreffonException {
return;
}
setVisible(getAttributeAsString("visible").equals("oui"));
panneau = new JPanel();
panneau = new JPanel(new MigLayout());
super.initaccessibilite(panneau);

// Position :
x = getAttributeAsBigDecimal("x").intValue();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public class Popup extends ComposantDeplacable {
@Override
public void initialisation() throws GreffonException {
pane = new JOptionPane();
super.initaccessibilite(pane);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public void initialisation() throws GreffonException {
listModel = new DefaultComboBoxModel<String>();
setVisible(getAttributeAsString("visible").equals("oui"));
combobox = new JComboBox<String>(listModel);
super.initaccessibilite(combobox);
// Position :
x = getAttributeAsBigDecimal("x").intValue();
y = getAttributeAsBigDecimal("y").intValue();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public void initialisation() throws GreffonException {
int min, max, valeur;
setVisible(getAttributeAsString("visible").equals("oui"));
slider = new JSlider();
super.initaccessibilite(slider);
// Position :
x = getAttributeAsBigDecimal("x").intValue();
y = getAttributeAsBigDecimal("y").intValue();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public void initialisation() throws GreffonException {
String texte = getAttributeAsString("texte");
String icone = getAttributeAsString("icône");
menu = new JMenuItem(texte);
super.initaccessibilite(menu);
chargerImage(icone);
menu.setVisible(isVisible());
super.initEvenement();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public void initialisation() throws GreffonException {
setVisible(getAttributeAsString("visible").equals("oui"));
model = new JTableModel();
table = new JTable(model);
super.initaccessibilite(table);
scrollPane = new JScrollPane(table);
table.setFillsViewportHeight(true);
// Position :
Expand Down
6 changes: 3 additions & 3 deletions linotte-lanceur/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>langagelinotte</artifactId>
<groupId>fr.codevallee</groupId>
<version>3.5</version>
<version>3.6</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -15,13 +15,13 @@
<dependency>
<groupId>fr.codevallee</groupId>
<artifactId>linotte-moteur</artifactId>
<version>3.5</version>
<version>3.6</version>
</dependency>
<!-- sera corrigé quand les greffons ne dépendrons plus du moteur -->
<dependency>
<groupId>fr.codevallee</groupId>
<artifactId>linotte-greffons</artifactId>
<version>3.5</version>
<version>3.6</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.formdev.flatlaf.FlatDarculaLaf;
import com.formdev.flatlaf.FlatIntelliJLaf;
import com.formdev.flatlaf.IntelliJTheme;
import console.Jinotte;
import org.linotte.frame.atelier.Atelier;
import org.linotte.frame.gui.SplashWindow;
Expand Down Expand Up @@ -33,6 +34,8 @@ public static void main(String[] args) {
}
//UIManager.put("JComponent.roundRect", true);
//UIManager.put("JButton.buttonType", "roundRect");
//UIManager.put("JTabbedPane.hideTabAreaWithOneTab", true);

SwingUtilities.invokeAndWait(() -> splashWindow1.set(new SplashWindow(new Frame())));
Atelier.initialisationFrameAtelierEtToile();
splashWindow1.get().fermer();
Expand Down
10 changes: 5 additions & 5 deletions linotte-moteur/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>langagelinotte</artifactId>
<groupId>fr.codevallee</groupId>
<version>3.5</version>
<version>3.6</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -15,12 +15,12 @@
<dependency>
<groupId>fr.codevallee</groupId>
<artifactId>linotte-alize</artifactId>
<version>3.5</version>
<version>3.6</version>
</dependency>
<dependency>
<groupId>fr.codevallee</groupId>
<artifactId>linotte-ext</artifactId>
<version>3.5</version>
<version>3.6</version>
<scope>compile</scope>
</dependency>

Expand All @@ -47,12 +47,12 @@
<dependency>
<groupId>com.formdev</groupId>
<artifactId>flatlaf</artifactId>
<version>0.44</version>
<version>0.46</version>
</dependency>
<dependency>
<groupId>com.formdev</groupId>
<artifactId>flatlaf-swingx</artifactId>
<version>0.44</version>
<version>0.46</version>
</dependency>
<!-- version pour jdk 8 : -->
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion linotte-resources/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>langagelinotte</artifactId>
<groupId>fr.codevallee</groupId>
<version>3.5</version>
<version>3.6</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
3 changes: 3 additions & 0 deletions linotte-resources/src/main/exemples/00_quoideneuf.liv
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ Bonne programmation !
Historique des versions :
-------------------------

*09/11/20 - Linotte 3.6
-Correction : Suppression de la 3D à cause d'incompatiblité avec certaines JVMs.

*09/11/20 - Linotte 3.5
-Correction : Possibilité d'utiliser des espèces dans des sous-paragraphes en début de programme.

Expand Down
Loading

0 comments on commit e7b73b8

Please sign in to comment.