EcmaScriptShellDialog.ui 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>EcmaScriptShell</class>
  4. <widget class="QDialog" name="EcmaScriptShell">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>400</width>
  10. <height>256</height>
  11. </rect>
  12. </property>
  13. <property name="minimumSize">
  14. <size>
  15. <width>400</width>
  16. <height>256</height>
  17. </size>
  18. </property>
  19. <property name="windowTitle">
  20. <string>ECMAScript Shell</string>
  21. </property>
  22. <property name="modal">
  23. <bool>true</bool>
  24. </property>
  25. <layout class="QVBoxLayout">
  26. <item>
  27. <widget class="QLabel" name="Message">
  28. <property name="sizePolicy">
  29. <sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
  30. <horstretch>0</horstretch>
  31. <verstretch>0</verstretch>
  32. </sizepolicy>
  33. </property>
  34. <property name="text">
  35. <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;You are about to enable the ECMAScript Shell.&lt;/p&gt;&lt;p&gt;Through the ECMAScript Shell you can &lt;span style=&quot; color:#ff0000;&quot;&gt;modify your drawings&lt;/span&gt; but also &lt;span style=&quot; color:#ff0000;&quot;&gt;delete files&lt;/span&gt; or &lt;span style=&quot; color:#ff0000;&quot;&gt;crash the application&lt;/span&gt; which can lead to &lt;span style=&quot; color:#ff0000;&quot;&gt;data loss&lt;/span&gt;.&lt;/p&gt;&lt;p&gt;For inexperienced programmers, it is recommended to limit the use of the ECMAScript shell to the &lt;a href=&quot;http://www.qcad.org/doc/qcad/latest/developer/group__ecma__simple.html&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;QCAD Simple API&lt;/span&gt;&lt;/a&gt; which is considered to be &quot;safe&quot; to use.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
  36. </property>
  37. <property name="wordWrap">
  38. <bool>true</bool>
  39. </property>
  40. </widget>
  41. </item>
  42. <item>
  43. <widget class="QCheckBox" name="DontShowDialog">
  44. <property name="text">
  45. <string>Don't show this dialog again</string>
  46. </property>
  47. </widget>
  48. </item>
  49. <item>
  50. <widget class="QDialogButtonBox" name="ButtonBox">
  51. <property name="standardButtons">
  52. <set>QDialogButtonBox::Cancel</set>
  53. </property>
  54. </widget>
  55. </item>
  56. </layout>
  57. </widget>
  58. <tabstops>
  59. <tabstop>ButtonBox</tabstop>
  60. </tabstops>
  61. <resources/>
  62. <connections>
  63. <connection>
  64. <sender>ButtonBox</sender>
  65. <signal>accepted()</signal>
  66. <receiver>EcmaScriptShell</receiver>
  67. <slot>accept()</slot>
  68. <hints>
  69. <hint type="sourcelabel">
  70. <x>250</x>
  71. <y>235</y>
  72. </hint>
  73. <hint type="destinationlabel">
  74. <x>399</x>
  75. <y>196</y>
  76. </hint>
  77. </hints>
  78. </connection>
  79. <connection>
  80. <sender>ButtonBox</sender>
  81. <signal>rejected()</signal>
  82. <receiver>EcmaScriptShell</receiver>
  83. <slot>reject()</slot>
  84. <hints>
  85. <hint type="sourcelabel">
  86. <x>275</x>
  87. <y>232</y>
  88. </hint>
  89. <hint type="destinationlabel">
  90. <x>398</x>
  91. <y>165</y>
  92. </hint>
  93. </hints>
  94. </connection>
  95. </connections>
  96. </ui>