Commit 0b1c4c99 authored by EXT Ait Ammar Adam's avatar EXT Ait Ammar Adam
Browse files

Debut_QRCODE

parent f78284ac
......@@ -7,7 +7,7 @@
<script type="text/javascript" src="closure-library/closure/goog/base.js"></script>
<link type="text/css" rel="stylesheet" href="media/blockly.css">
<link type="text/css" rel="stylesheet" href="closure-library/closure/goog/css/dialog.css">
<script type="text/javascript" src="blockly-3f244231-2a2a-4696-896a-2b879c94d219.js"></script>
<script type="text/javascript" src="blockly-7074bee1-7825-4c6e-9a88-b9328221ab1d.js"></script>
<style>
html, body {
background-color: #fff;
......
4F7B94AD8CF0A719C7A3DC864F5AB4D9.cache.js
locale default
user.agent safari
803954A8035324FC654E8FCB6578D408.cache.js
8423DEF5C3FF7F9A9FBD810625A2E2E0.cache.js
locale fr_FR
user.agent safari
909DED7F43EC5B35C6DD79BCB93F445F.cache.js
BA672E2E625AFB2859DB17BCB8E173FC.cache.js
locale fr_FR
user.agent gecko1_8
BBE1C4E290C2CF1B2ACF92934C08BE3A.cache.js
BB7C60FEE4CE5E84EFA7F4E827A3B827.cache.js
locale default
user.agent gecko1_8
F75F0885BF32987559A3CE6F81508416.cache.js
locale default
user.agent safari
Devmode:devmode.js
\ No newline at end of file
......@@ -4937,4 +4937,22 @@ public class JemBlocksStrings {
" </block>\n" +
" <yacodeblocks ya-version=\"151\" language-version=\"20\"></yacodeblocks>\n" +
"</xml>";
// AA
public static String TTP = "<block type=\"component_event\" id=\"277\" x=\"614\" y=\"369\">\n" +
" <mutation component_type=\"Button\" instance_name=\"BoutonTTP\" event_name=\"Click\"></mutation>\n" +
" <field name=\"COMPONENT_SELECTOR\">BoutonTTP</field>\n" +
" <statement name=\"DO\">\n" +
" <block type=\"component_method\" id=\"278\" inline=\"false\">\n" +
" <mutation component_type=\"TextToSpeech\" method_name=\"Speak\" is_generic=\"false\" instance_name=\"Texte_à_parole1\"></mutation>\n" +
" <field name=\"COMPONENT_SELECTOR\">Texte_à_parole1</field>\n" +
" <value name=\"ARG0\">\n" +
" <block type=\"component_set_get\" id=\"279\">\n" +
" <mutation component_type=\"Label\" set_or_get=\"get\" property_name=\"Text\" is_generic=\"false\" instance_name=\"LabelTTP\"></mutation>\n" +
" <field name=\"COMPONENT_SELECTOR\">LabelTTP</field>\n" +
" <field name=\"PROP\">Text</field>\n" +
" </block>\n" +
" </value>\n" +
" </block>\n" +
" </statement>\n" +
" </block>";
}
\ No newline at end of file
......@@ -644,6 +644,13 @@ public final class YaBlocksEditor extends FileEditor
}
}
this.reloadBlocks(webViewerBlock);
} //AA
if (component.getName().contains("parole")){
String blockTTP = JemBlocksStrings.TTP;
blockTTP.replace("Texte_à_parole1",component.getName());
String webViewerBlock = JemBlocksMethods.addNewBlocks(this, blockTTP);
this.reloadBlocks(webViewerBlock);
}
}
......
......@@ -334,7 +334,7 @@ public final class YaFormEditor extends SimpleEditor implements FormChangeListen
if (loadComplete) {
if (permanentlyDeleted) {
onFormStructureChange(this.getForm());
checkRemovedComponent(component);
// Encore voir si c'est la dernière image pour envoyer 370
// changeMiddleContainerSize("370"); // AOUS (désactivéé pour le moment 27/08/17)
......@@ -1033,8 +1033,54 @@ public final class YaFormEditor extends SimpleEditor implements FormChangeListen
@Override
public void checkRemovedComponent(MockComponent component) {
MockForm thisForm = this.getForm();
String thisFormName = thisForm.getName();
// Composant Prise photo
// if (component.getName().contains("CameraButton")) ne rien faire
if (component.getName().contains("CameraButton")) {
for(MockComponent compo : thisForm.getChildren())
{
if( compo.getName().contains("Prise_d_image"))
{
thisForm.removeComponent(compo,true);
}
}
}
if (component.getName().contains("parole")){
SimpleEditor simpleEditor= (SimpleEditor)Ode.getInstance().getCurrentFileEditor();
if (!(thisFormName.equals("Screen1"))) {
MockComponent ecran = thisForm.getCurrentJemScreen(this);
String nomecran = ecran.getName();
for (MockComponent child : thisForm.getChildren()){
if ( child.getName().contains("Middle")){
MockContainer childcontainer = (MockContainer) child;
for (MockComponent children : childcontainer.getChildren()){
if (children.getName().equals("LabelTTP") || children.getName().equals("BoutonTTP") ) {
((MockContainer) child).removeComponent(children, true);
}
}
for (MockComponent children : childcontainer.getChildren()){
if (children.getName().equals("LabelTTP") || children.getName().equals("BoutonTTP") ) {
((MockContainer) child).removeComponent(children, true);
}
}
}
}
}
}
if (component.getName().equals("LabelTTP")){
}
}
public void changeMiddleContainerSize(String length){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment