Typica is a free program for professional coffee roasters. https://typica.us
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

newroaster.xml 921B

1234567891011121314151617181920212223242526272829303132
  1. <window id="newroaster">
  2. <layout type="vertical">
  3. <layout type="horizontal">
  4. <label>Roaster Name:</label>
  5. <line id="name" />
  6. </layout>
  7. <layout type="horizontal">
  8. <label>Roaster Number:</label>
  9. <line id="id" />
  10. </layout>
  11. <button name="Submit" id="submit" type="push" />
  12. </layout>
  13. <program>
  14. <![CDATA[
  15. var button = findChildObject(this, 'submit');
  16. var rname = findChildObject(this, 'name');
  17. var rnumber = findChildObject(this, 'id');
  18. var nrwindow = this;
  19. button.clicked.connect(function() {
  20. var q = "INSERT INTO machine VALUES (";
  21. q = q + rnumber.text;
  22. q = q + ", :name)";
  23. query = new QSqlQuery();
  24. query.prepare(q);
  25. query.bind(":name", rname.text);
  26. query.exec();
  27. query = query.invalidate();
  28. nrwindow.close();
  29. });
  30. ]]>
  31. </program>
  32. </window>