<div dir="ltr">We can delete the block when it is double clicked. Should I make a demo video about that?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 20, 2017 at 12:11 PM, Emmanuel Charruau <span dir="ltr"><<a href="mailto:echarruau@gmail.com" target="_blank">echarruau@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">M'y worry is more about how you will attach graphical éléments.  Allow user to delete some if they want to.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">Le 20 mars 2017 00:26, "Souradeep Barua" <<a href="mailto:sourad97@gmail.com" target="_blank">sourad97@gmail.com</a>> a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi, <br></div>Emmanuel Charruau (IRC Nickname: Allon1) asked me how I would implement the block part in programming shape activity from Qt Point of view. He asked me to send this to Johnny and other mentors, that's why I am sending this to the mailing list.<br><br></div>Following is a description. Please let me know if you find this convincing, or else I would change my proposal.<br><br>A mockup of the activity is here : <a href="https://youtu.be/ERcfHr7W2ek" target="_blank">https://youtu.be/ERcfHr7W2ek </a><br><br>The bar on the left side of the answer sheet will be a qml object, which is a grid view. It has drop points attached to it.<br>Adding a new block to it will increase the count (Similar to what is done on AnswerSheet.qml in programming maze). <br><br><br>The loop qml object will have properties like :<br><br>repeat:  when the value of it's spin box is changed, editingFinished() signal is sent. And the corresponding onEditingFinished handler sets this variable to the spin box value.<br>statements_count: counts the number of statements attached to it<br><br>We use an array to store information about the instructions. If we are calling it codequeue.<br><br>function create_queue() {<br>    codequeue = []<br>    for 1 to bar.count:<br>        if(barmodel.get(index) == normal_statements)<br>            codequeue.push(normal_stateme<wbr>nts)<br>        else if(barmodel.get(index) == loop_object)<br>        {<br>            for 1 to loop_object.repeat:<br>                for 1 to loop_object.statements_count:<br>                    codequeue.push(normal_stateme<wbr>nts)<br>        }<br>}<br>    <br>When the codequeue is iterated:<br>function run() {<br>    if(codequeue[it++] == forward)<br>        movePenForward()<br>    else if(codequeue[it++] == turn)<br>        turnPen()<br>    <br>} <br clear="all"><div><div><div><br></div><div>Please let me know as soon as possible, if this seems convincing to you that it can be finished within the given timeline or else, I would change my proposal immediately. <br></div><div><br>Thanks :)<br></div><div>-- <br><div class="m_-1353481848974666481m_-6953045653938156816gmail_signature"><div dir="ltr"><div><div><div><b>Regards,<br><br></b></div><b>Souradeep Barua,<br></b></div><b>Computer Science and Engineering Department,<br></b></div><b>Jadavpur University, kolkata<br></b></div></div>
</div></div></div></div>
</blockquote></div></div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div><div><b>Regards,<br><br></b></div><b>Souradeep Barua,<br></b></div><b>Computer Science and Engineering Department,<br></b></div><b>Jadavpur University, kolkata<br></b></div></div>
</div>