customgenerator.ui 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>CustomGenerator</class>
  4. <widget class="QDialog" name="CustomGenerator">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>725</width>
  10. <height>303</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>Dialog</string>
  15. </property>
  16. <layout class="QVBoxLayout" name="verticalLayout">
  17. <item>
  18. <layout class="QHBoxLayout" name="horizontalLayout_4" stretch="10,0,17">
  19. <item>
  20. <widget class="QLabel" name="label_3">
  21. <property name="sizePolicy">
  22. <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
  23. <horstretch>0</horstretch>
  24. <verstretch>0</verstretch>
  25. </sizepolicy>
  26. </property>
  27. <property name="text">
  28. <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-size:12pt; font-weight:600;&quot;&gt;Formula Editor&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-size:9pt;&quot;&gt;Almond applies an escape-time algorithm to display fractals. A formula can be entered in this form, which will then be iteratively applied to complex numbers until its absolute value reaches a certain threshold. Depending on how many iterations were needed to reach the threshold, a different color is applied to the image.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
  29. </property>
  30. <property name="textFormat">
  31. <enum>Qt::AutoText</enum>
  32. </property>
  33. <property name="wordWrap">
  34. <bool>true</bool>
  35. </property>
  36. </widget>
  37. </item>
  38. <item>
  39. <widget class="Line" name="line">
  40. <property name="orientation">
  41. <enum>Qt::Vertical</enum>
  42. </property>
  43. </widget>
  44. </item>
  45. <item>
  46. <layout class="QVBoxLayout" name="verticalLayout_5">
  47. <item>
  48. <layout class="QFormLayout" name="formLayout">
  49. <item row="0" column="0" colspan="2">
  50. <widget class="QLabel" name="descriptionInitial">
  51. <property name="font">
  52. <font>
  53. <pointsize>12</pointsize>
  54. </font>
  55. </property>
  56. <property name="text">
  57. <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Initial Iteration Value&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-size:9pt;&quot;&gt;Specify the initial value for z depending on c.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
  58. </property>
  59. <property name="textFormat">
  60. <enum>Qt::RichText</enum>
  61. </property>
  62. </widget>
  63. </item>
  64. <item row="1" column="0">
  65. <widget class="QLabel" name="label_5">
  66. <property name="font">
  67. <font>
  68. <pointsize>12</pointsize>
  69. </font>
  70. </property>
  71. <property name="text">
  72. <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;z&lt;span style=&quot; vertical-align:sub;&quot;&gt;0&lt;/span&gt; = &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
  73. </property>
  74. <property name="textFormat">
  75. <enum>Qt::RichText</enum>
  76. </property>
  77. </widget>
  78. </item>
  79. <item row="1" column="1">
  80. <widget class="QLineEdit" name="formula_z0">
  81. <property name="font">
  82. <font>
  83. <pointsize>12</pointsize>
  84. </font>
  85. </property>
  86. <property name="text">
  87. <string>0</string>
  88. </property>
  89. </widget>
  90. </item>
  91. <item row="2" column="0" colspan="2">
  92. <widget class="QLabel" name="label_4">
  93. <property name="font">
  94. <font>
  95. <pointsize>12</pointsize>
  96. </font>
  97. </property>
  98. <property name="text">
  99. <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Iteration Formula&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-size:9pt;&quot;&gt;Specify the iteration formula in terms of z and c.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
  100. </property>
  101. </widget>
  102. </item>
  103. <item row="3" column="0">
  104. <widget class="QLabel" name="label_2">
  105. <property name="font">
  106. <font>
  107. <pointsize>12</pointsize>
  108. </font>
  109. </property>
  110. <property name="text">
  111. <string>z := </string>
  112. </property>
  113. </widget>
  114. </item>
  115. <item row="3" column="1">
  116. <widget class="QLineEdit" name="formula_zi">
  117. <property name="font">
  118. <font>
  119. <pointsize>12</pointsize>
  120. </font>
  121. </property>
  122. <property name="text">
  123. <string>z^2+c</string>
  124. </property>
  125. </widget>
  126. </item>
  127. </layout>
  128. </item>
  129. </layout>
  130. </item>
  131. </layout>
  132. </item>
  133. <item>
  134. <widget class="QDialogButtonBox" name="buttonBox">
  135. <property name="orientation">
  136. <enum>Qt::Horizontal</enum>
  137. </property>
  138. <property name="standardButtons">
  139. <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
  140. </property>
  141. </widget>
  142. </item>
  143. </layout>
  144. </widget>
  145. <resources/>
  146. <connections>
  147. <connection>
  148. <sender>buttonBox</sender>
  149. <signal>accepted()</signal>
  150. <receiver>CustomGenerator</receiver>
  151. <slot>accept()</slot>
  152. <hints>
  153. <hint type="sourcelabel">
  154. <x>248</x>
  155. <y>254</y>
  156. </hint>
  157. <hint type="destinationlabel">
  158. <x>157</x>
  159. <y>274</y>
  160. </hint>
  161. </hints>
  162. </connection>
  163. <connection>
  164. <sender>buttonBox</sender>
  165. <signal>rejected()</signal>
  166. <receiver>CustomGenerator</receiver>
  167. <slot>reject()</slot>
  168. <hints>
  169. <hint type="sourcelabel">
  170. <x>316</x>
  171. <y>260</y>
  172. </hint>
  173. <hint type="destinationlabel">
  174. <x>286</x>
  175. <y>274</y>
  176. </hint>
  177. </hints>
  178. </connection>
  179. </connections>
  180. </ui>