Typica is a free program for professional coffee roasters. https://typica.us
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

setsampleparameters.xml 1.0KB

123456789101112131415161718192021222324252627282930
  1. <window id="sampleParameters">
  2. <layout type="vertical">
  3. <layout type="horizontal">
  4. <label>Annotation:</label>
  5. <line id="template">Sample %1</line>
  6. </layout>
  7. <textarea id="instructions" />
  8. <button name="Reset Sample Number" type="push" id="reset" />
  9. <button name="Okay" type="push" id="ok" />
  10. </layout>
  11. <program>
  12. <![CDATA[
  13. print("Program loaded");
  14. var window = this;
  15. var instructions = findChildObject(this, 'instructions');
  16. instructions.plainText = "%1 will be replaced with a sample number.";
  17. instructions.readOnly = true;
  18. var reset = findChildObject(this, 'reset');
  19. reset.clicked.connect(function() {
  20. window.button.resetCount();
  21. });
  22. var okay = findChildObject(this, 'ok');
  23. var template = findChildObject(this, 'template');
  24. okay.clicked.connect(function() {
  25. window.button.setAnnotation(template.text);
  26. window.close();
  27. });
  28. ]]>
  29. </program>
  30. <window>