ScaleDialog.ui 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>ScaleOptions</class>
  4. <widget class="QDialog" name="ScaleOptions">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>422</width>
  10. <height>335</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>Scale Options</string>
  15. </property>
  16. <layout class="QVBoxLayout" name="verticalLayout_4">
  17. <item>
  18. <layout class="QHBoxLayout" name="horizontalLayout_3">
  19. <item>
  20. <layout class="QVBoxLayout" name="verticalLayout_3">
  21. <item>
  22. <widget class="QGroupBox" name="groupBox">
  23. <property name="title">
  24. <string>Number of Copies</string>
  25. </property>
  26. <layout class="QVBoxLayout" name="verticalLayout">
  27. <item>
  28. <widget class="QRadioButton" name="DeleteOriginal">
  29. <property name="text">
  30. <string>&amp;Delete original</string>
  31. </property>
  32. <property name="shortcut">
  33. <string notr="true">Ctrl+D</string>
  34. </property>
  35. <property name="checked">
  36. <bool>true</bool>
  37. </property>
  38. </widget>
  39. </item>
  40. <item>
  41. <widget class="QRadioButton" name="KeepOriginal">
  42. <property name="text">
  43. <string>&amp;Keep original</string>
  44. </property>
  45. <property name="shortcut">
  46. <string notr="true">Ctrl+K</string>
  47. </property>
  48. </widget>
  49. </item>
  50. <item>
  51. <widget class="QRadioButton" name="MultipleCopies">
  52. <property name="text">
  53. <string>&amp;Multiple copies</string>
  54. </property>
  55. <property name="shortcut">
  56. <string notr="true">Ctrl+M</string>
  57. </property>
  58. </widget>
  59. </item>
  60. <item>
  61. <widget class="RMathLineEdit" name="NumberOfCopies">
  62. <property name="enabled">
  63. <bool>false</bool>
  64. </property>
  65. <property name="text">
  66. <string notr="true">2</string>
  67. </property>
  68. <property name="angle" stdset="0">
  69. <bool>false</bool>
  70. </property>
  71. </widget>
  72. </item>
  73. </layout>
  74. </widget>
  75. </item>
  76. <item>
  77. <spacer name="verticalSpacer">
  78. <property name="orientation">
  79. <enum>Qt::Vertical</enum>
  80. </property>
  81. <property name="sizeHint" stdset="0">
  82. <size>
  83. <width>20</width>
  84. <height>20</height>
  85. </size>
  86. </property>
  87. </spacer>
  88. </item>
  89. </layout>
  90. </item>
  91. <item>
  92. <spacer name="horizontalSpacer">
  93. <property name="orientation">
  94. <enum>Qt::Horizontal</enum>
  95. </property>
  96. <property name="sizeType">
  97. <enum>QSizePolicy::Maximum</enum>
  98. </property>
  99. <property name="sizeHint" stdset="0">
  100. <size>
  101. <width>13</width>
  102. <height>20</height>
  103. </size>
  104. </property>
  105. </spacer>
  106. </item>
  107. <item>
  108. <layout class="QVBoxLayout" name="verticalLayout_2">
  109. <item>
  110. <widget class="QToolButton" name="toolButton">
  111. <property name="minimumSize">
  112. <size>
  113. <width>210</width>
  114. <height>155</height>
  115. </size>
  116. </property>
  117. <property name="styleSheet">
  118. <string notr="true">border: 1px inset; background-color: rgb(255, 255, 255);</string>
  119. </property>
  120. <property name="icon">
  121. <iconset>
  122. <normaloff>ScaleDialog.svg</normaloff>ScaleDialog.svg</iconset>
  123. </property>
  124. <property name="iconSize">
  125. <size>
  126. <width>210</width>
  127. <height>155</height>
  128. </size>
  129. </property>
  130. </widget>
  131. </item>
  132. <item>
  133. <spacer name="verticalSpacer_2">
  134. <property name="orientation">
  135. <enum>Qt::Vertical</enum>
  136. </property>
  137. <property name="sizeHint" stdset="0">
  138. <size>
  139. <width>20</width>
  140. <height>13</height>
  141. </size>
  142. </property>
  143. </spacer>
  144. </item>
  145. <item>
  146. <layout class="QHBoxLayout" name="horizontalLayout_2">
  147. <property name="spacing">
  148. <number>0</number>
  149. </property>
  150. <item>
  151. <widget class="QWidget" name="FactorEntry" native="true">
  152. <layout class="QGridLayout" name="gridLayout">
  153. <property name="leftMargin">
  154. <number>6</number>
  155. </property>
  156. <property name="topMargin">
  157. <number>6</number>
  158. </property>
  159. <property name="rightMargin">
  160. <number>6</number>
  161. </property>
  162. <property name="bottomMargin">
  163. <number>6</number>
  164. </property>
  165. <item row="0" column="0">
  166. <widget class="QLabel" name="LabelX">
  167. <property name="text">
  168. <string>Factor x:</string>
  169. </property>
  170. <property name="buddy">
  171. <cstring>FactorX</cstring>
  172. </property>
  173. </widget>
  174. </item>
  175. <item row="0" column="1">
  176. <widget class="RMathLineEdit" name="FactorX">
  177. <property name="text">
  178. <string notr="true">0.5</string>
  179. </property>
  180. </widget>
  181. </item>
  182. <item row="0" column="2" rowspan="2">
  183. <widget class="QToolButton" name="KeepProportions">
  184. <property name="sizePolicy">
  185. <sizepolicy hsizetype="Fixed" vsizetype="MinimumExpanding">
  186. <horstretch>0</horstretch>
  187. <verstretch>0</verstretch>
  188. </sizepolicy>
  189. </property>
  190. <property name="toolTip">
  191. <string>Proportional</string>
  192. </property>
  193. <property name="icon">
  194. <iconset>
  195. <normaloff>KeepProportionsOn.svg</normaloff>KeepProportionsOn.svg</iconset>
  196. </property>
  197. <property name="iconSize">
  198. <size>
  199. <width>16</width>
  200. <height>32</height>
  201. </size>
  202. </property>
  203. <property name="checkable">
  204. <bool>true</bool>
  205. </property>
  206. <property name="checked">
  207. <bool>true</bool>
  208. </property>
  209. </widget>
  210. </item>
  211. <item row="1" column="0">
  212. <widget class="QLabel" name="LabelY">
  213. <property name="enabled">
  214. <bool>false</bool>
  215. </property>
  216. <property name="text">
  217. <string>Factor y:</string>
  218. </property>
  219. <property name="buddy">
  220. <cstring>FactorY</cstring>
  221. </property>
  222. </widget>
  223. </item>
  224. <item row="1" column="1">
  225. <widget class="RMathLineEdit" name="FactorY">
  226. <property name="enabled">
  227. <bool>false</bool>
  228. </property>
  229. <property name="text">
  230. <string notr="true">0.5</string>
  231. </property>
  232. </widget>
  233. </item>
  234. </layout>
  235. </widget>
  236. </item>
  237. <item>
  238. <widget class="QWidget" name="widget" native="true">
  239. <layout class="QHBoxLayout" name="horizontalLayout">
  240. <property name="leftMargin">
  241. <number>6</number>
  242. </property>
  243. <property name="topMargin">
  244. <number>6</number>
  245. </property>
  246. <property name="rightMargin">
  247. <number>6</number>
  248. </property>
  249. <property name="bottomMargin">
  250. <number>6</number>
  251. </property>
  252. <item>
  253. <widget class="QToolButton" name="FactorByMouse">
  254. <property name="sizePolicy">
  255. <sizepolicy hsizetype="Fixed" vsizetype="MinimumExpanding">
  256. <horstretch>0</horstretch>
  257. <verstretch>0</verstretch>
  258. </sizepolicy>
  259. </property>
  260. <property name="toolTip">
  261. <string>Define factor using mouse cursor</string>
  262. </property>
  263. <property name="icon">
  264. <iconset>
  265. <normaloff>ByMouse.svg</normaloff>ByMouse.svg</iconset>
  266. </property>
  267. <property name="iconSize">
  268. <size>
  269. <width>16</width>
  270. <height>32</height>
  271. </size>
  272. </property>
  273. <property name="checkable">
  274. <bool>true</bool>
  275. </property>
  276. </widget>
  277. </item>
  278. </layout>
  279. </widget>
  280. </item>
  281. </layout>
  282. </item>
  283. <item>
  284. <widget class="QCheckBox" name="UseCurrentAttributes">
  285. <property name="text">
  286. <string>Use current layer and &amp;attributes</string>
  287. </property>
  288. </widget>
  289. </item>
  290. </layout>
  291. </item>
  292. </layout>
  293. </item>
  294. <item>
  295. <widget class="QDialogButtonBox" name="buttonBox">
  296. <property name="orientation">
  297. <enum>Qt::Horizontal</enum>
  298. </property>
  299. <property name="standardButtons">
  300. <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
  301. </property>
  302. </widget>
  303. </item>
  304. </layout>
  305. </widget>
  306. <customwidgets>
  307. <customwidget>
  308. <class>RMathLineEdit</class>
  309. <extends>QLineEdit</extends>
  310. <header>RMathLineEdit.h</header>
  311. </customwidget>
  312. </customwidgets>
  313. <tabstops>
  314. <tabstop>DeleteOriginal</tabstop>
  315. <tabstop>KeepOriginal</tabstop>
  316. <tabstop>MultipleCopies</tabstop>
  317. <tabstop>NumberOfCopies</tabstop>
  318. <tabstop>FactorX</tabstop>
  319. <tabstop>KeepProportions</tabstop>
  320. <tabstop>FactorY</tabstop>
  321. <tabstop>UseCurrentAttributes</tabstop>
  322. <tabstop>buttonBox</tabstop>
  323. </tabstops>
  324. <resources/>
  325. <connections>
  326. <connection>
  327. <sender>buttonBox</sender>
  328. <signal>accepted()</signal>
  329. <receiver>ScaleOptions</receiver>
  330. <slot>accept()</slot>
  331. <hints>
  332. <hint type="sourcelabel">
  333. <x>169</x>
  334. <y>330</y>
  335. </hint>
  336. <hint type="destinationlabel">
  337. <x>115</x>
  338. <y>334</y>
  339. </hint>
  340. </hints>
  341. </connection>
  342. <connection>
  343. <sender>buttonBox</sender>
  344. <signal>rejected()</signal>
  345. <receiver>ScaleOptions</receiver>
  346. <slot>reject()</slot>
  347. <hints>
  348. <hint type="sourcelabel">
  349. <x>169</x>
  350. <y>330</y>
  351. </hint>
  352. <hint type="destinationlabel">
  353. <x>286</x>
  354. <y>274</y>
  355. </hint>
  356. </hints>
  357. </connection>
  358. <connection>
  359. <sender>MultipleCopies</sender>
  360. <signal>toggled(bool)</signal>
  361. <receiver>NumberOfCopies</receiver>
  362. <slot>setEnabled(bool)</slot>
  363. <hints>
  364. <hint type="sourcelabel">
  365. <x>122</x>
  366. <y>86</y>
  367. </hint>
  368. <hint type="destinationlabel">
  369. <x>122</x>
  370. <y>113</y>
  371. </hint>
  372. </hints>
  373. </connection>
  374. <connection>
  375. <sender>KeepProportions</sender>
  376. <signal>toggled(bool)</signal>
  377. <receiver>FactorY</receiver>
  378. <slot>setDisabled(bool)</slot>
  379. <hints>
  380. <hint type="sourcelabel">
  381. <x>350</x>
  382. <y>247</y>
  383. </hint>
  384. <hint type="destinationlabel">
  385. <x>314</x>
  386. <y>247</y>
  387. </hint>
  388. </hints>
  389. </connection>
  390. <connection>
  391. <sender>KeepProportions</sender>
  392. <signal>toggled(bool)</signal>
  393. <receiver>LabelY</receiver>
  394. <slot>setDisabled(bool)</slot>
  395. <hints>
  396. <hint type="sourcelabel">
  397. <x>350</x>
  398. <y>247</y>
  399. </hint>
  400. <hint type="destinationlabel">
  401. <x>248</x>
  402. <y>247</y>
  403. </hint>
  404. </hints>
  405. </connection>
  406. <connection>
  407. <sender>FactorByMouse</sender>
  408. <signal>toggled(bool)</signal>
  409. <receiver>FactorEntry</receiver>
  410. <slot>setDisabled(bool)</slot>
  411. <hints>
  412. <hint type="sourcelabel">
  413. <x>376</x>
  414. <y>222</y>
  415. </hint>
  416. <hint type="destinationlabel">
  417. <x>356</x>
  418. <y>210</y>
  419. </hint>
  420. </hints>
  421. </connection>
  422. </connections>
  423. </ui>