colorScaleEditorDlg.ui 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>ColorScaleEditorDlg</class>
  4. <widget class="QDialog" name="ColorScaleEditorDlg">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>500</width>
  10. <height>430</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>Color Scale Editor</string>
  15. </property>
  16. <layout class="QVBoxLayout" name="verticalLayout">
  17. <item>
  18. <widget class="QFrame" name="frame">
  19. <layout class="QHBoxLayout" name="horizontalLayout">
  20. <property name="leftMargin">
  21. <number>0</number>
  22. </property>
  23. <property name="topMargin">
  24. <number>0</number>
  25. </property>
  26. <property name="rightMargin">
  27. <number>0</number>
  28. </property>
  29. <property name="bottomMargin">
  30. <number>0</number>
  31. </property>
  32. <item>
  33. <spacer name="horizontalSpacer">
  34. <property name="orientation">
  35. <enum>Qt::Horizontal</enum>
  36. </property>
  37. <property name="sizeHint" stdset="0">
  38. <size>
  39. <width>40</width>
  40. <height>20</height>
  41. </size>
  42. </property>
  43. </spacer>
  44. </item>
  45. <item>
  46. <widget class="QLabel" name="label">
  47. <property name="text">
  48. <string>Current</string>
  49. </property>
  50. </widget>
  51. </item>
  52. <item>
  53. <widget class="QComboBox" name="rampComboBox">
  54. <property name="sizeAdjustPolicy">
  55. <enum>QComboBox::AdjustToContents</enum>
  56. </property>
  57. </widget>
  58. </item>
  59. <item>
  60. <widget class="QToolButton" name="exportToolButton">
  61. <property name="toolTip">
  62. <string>Export color scale to a file</string>
  63. </property>
  64. <property name="icon">
  65. <iconset resource="../../../qCC/icons.qrc">
  66. <normaloff>:/CC/images/ccSave.png</normaloff>:/CC/images/ccSave.png</iconset>
  67. </property>
  68. </widget>
  69. </item>
  70. <item>
  71. <widget class="QToolButton" name="importToolButton">
  72. <property name="toolTip">
  73. <string>Import color scale from a file</string>
  74. </property>
  75. <property name="icon">
  76. <iconset resource="../../../qCC/icons.qrc">
  77. <normaloff>:/CC/images/ccOpen.png</normaloff>:/CC/images/ccOpen.png</iconset>
  78. </property>
  79. </widget>
  80. </item>
  81. <item>
  82. <spacer name="horizontalSpacer_4">
  83. <property name="orientation">
  84. <enum>Qt::Horizontal</enum>
  85. </property>
  86. <property name="sizeHint" stdset="0">
  87. <size>
  88. <width>40</width>
  89. <height>20</height>
  90. </size>
  91. </property>
  92. </spacer>
  93. </item>
  94. </layout>
  95. </widget>
  96. </item>
  97. <item>
  98. <layout class="QHBoxLayout" name="horizontalLayout_4">
  99. <item>
  100. <spacer name="horizontalSpacer_6">
  101. <property name="orientation">
  102. <enum>Qt::Horizontal</enum>
  103. </property>
  104. <property name="sizeHint" stdset="0">
  105. <size>
  106. <width>40</width>
  107. <height>20</height>
  108. </size>
  109. </property>
  110. </spacer>
  111. </item>
  112. <item>
  113. <widget class="QFrame" name="colorScaleParametersFrame">
  114. <property name="sizePolicy">
  115. <sizepolicy hsizetype="Preferred" vsizetype="Maximum">
  116. <horstretch>0</horstretch>
  117. <verstretch>0</verstretch>
  118. </sizepolicy>
  119. </property>
  120. <property name="frameShape">
  121. <enum>QFrame::StyledPanel</enum>
  122. </property>
  123. <property name="frameShadow">
  124. <enum>QFrame::Raised</enum>
  125. </property>
  126. <layout class="QHBoxLayout" name="horizontalLayout_3">
  127. <property name="leftMargin">
  128. <number>0</number>
  129. </property>
  130. <property name="topMargin">
  131. <number>0</number>
  132. </property>
  133. <property name="rightMargin">
  134. <number>0</number>
  135. </property>
  136. <property name="bottomMargin">
  137. <number>0</number>
  138. </property>
  139. <item>
  140. <widget class="QLabel" name="label_4">
  141. <property name="text">
  142. <string>Mode</string>
  143. </property>
  144. </widget>
  145. </item>
  146. <item>
  147. <widget class="QComboBox" name="scaleModeComboBox">
  148. <property name="sizePolicy">
  149. <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
  150. <horstretch>0</horstretch>
  151. <verstretch>0</verstretch>
  152. </sizepolicy>
  153. </property>
  154. <item>
  155. <property name="text">
  156. <string>relative</string>
  157. </property>
  158. </item>
  159. <item>
  160. <property name="text">
  161. <string>absolute</string>
  162. </property>
  163. </item>
  164. </widget>
  165. </item>
  166. <item>
  167. <widget class="QToolButton" name="renameToolButton">
  168. <property name="text">
  169. <string>Rename</string>
  170. </property>
  171. </widget>
  172. </item>
  173. <item>
  174. <widget class="QToolButton" name="saveToolButton">
  175. <property name="text">
  176. <string>Save</string>
  177. </property>
  178. </widget>
  179. </item>
  180. <item>
  181. <widget class="QToolButton" name="deleteToolButton">
  182. <property name="text">
  183. <string>Delete</string>
  184. </property>
  185. </widget>
  186. </item>
  187. </layout>
  188. </widget>
  189. </item>
  190. <item>
  191. <widget class="QToolButton" name="copyToolButton">
  192. <property name="text">
  193. <string>Copy</string>
  194. </property>
  195. </widget>
  196. </item>
  197. <item>
  198. <widget class="QToolButton" name="newToolButton">
  199. <property name="text">
  200. <string>New</string>
  201. </property>
  202. </widget>
  203. </item>
  204. <item>
  205. <spacer name="horizontalSpacer_5">
  206. <property name="orientation">
  207. <enum>Qt::Horizontal</enum>
  208. </property>
  209. <property name="sizeHint" stdset="0">
  210. <size>
  211. <width>48</width>
  212. <height>19</height>
  213. </size>
  214. </property>
  215. </spacer>
  216. </item>
  217. </layout>
  218. </item>
  219. <item>
  220. <widget class="QLabel" name="lockWarningLabel">
  221. <property name="styleSheet">
  222. <string notr="true">QLabel{ color: red; }</string>
  223. </property>
  224. <property name="text">
  225. <string>(this ramp is locked - copy it before editing it)</string>
  226. </property>
  227. <property name="alignment">
  228. <set>Qt::AlignCenter</set>
  229. </property>
  230. </widget>
  231. </item>
  232. <item>
  233. <widget class="QFrame" name="colorScaleEditorFrame">
  234. <property name="sizePolicy">
  235. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  236. <horstretch>0</horstretch>
  237. <verstretch>0</verstretch>
  238. </sizepolicy>
  239. </property>
  240. <property name="minimumSize">
  241. <size>
  242. <width>0</width>
  243. <height>50</height>
  244. </size>
  245. </property>
  246. <property name="frameShape">
  247. <enum>QFrame::StyledPanel</enum>
  248. </property>
  249. <property name="frameShadow">
  250. <enum>QFrame::Raised</enum>
  251. </property>
  252. </widget>
  253. </item>
  254. <item>
  255. <widget class="QGroupBox" name="selectedSliderGroupBox">
  256. <property name="sizePolicy">
  257. <sizepolicy hsizetype="Expanding" vsizetype="Maximum">
  258. <horstretch>0</horstretch>
  259. <verstretch>0</verstretch>
  260. </sizepolicy>
  261. </property>
  262. <property name="title">
  263. <string>Selected slider</string>
  264. </property>
  265. <layout class="QHBoxLayout" name="horizontalLayout_2">
  266. <item>
  267. <widget class="QToolButton" name="deleteSliderToolButton">
  268. <property name="icon">
  269. <iconset resource="../../../qCC/icons.qrc">
  270. <normaloff>:/CC/images/smallTrash.png</normaloff>:/CC/images/smallTrash.png</iconset>
  271. </property>
  272. </widget>
  273. </item>
  274. <item>
  275. <spacer name="horizontalSpacer_2">
  276. <property name="orientation">
  277. <enum>Qt::Horizontal</enum>
  278. </property>
  279. <property name="sizeType">
  280. <enum>QSizePolicy::Preferred</enum>
  281. </property>
  282. <property name="sizeHint" stdset="0">
  283. <size>
  284. <width>40</width>
  285. <height>20</height>
  286. </size>
  287. </property>
  288. </spacer>
  289. </item>
  290. <item>
  291. <widget class="QLabel" name="label_3">
  292. <property name="text">
  293. <string>Color</string>
  294. </property>
  295. </widget>
  296. </item>
  297. <item>
  298. <widget class="QToolButton" name="colorToolButton"/>
  299. </item>
  300. <item>
  301. <widget class="QLabel" name="label_2">
  302. <property name="text">
  303. <string>Value</string>
  304. </property>
  305. </widget>
  306. </item>
  307. <item>
  308. <widget class="QDoubleSpinBox" name="valueDoubleSpinBox">
  309. <property name="sizePolicy">
  310. <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
  311. <horstretch>0</horstretch>
  312. <verstretch>0</verstretch>
  313. </sizepolicy>
  314. </property>
  315. <property name="keyboardTracking">
  316. <bool>false</bool>
  317. </property>
  318. <property name="decimals">
  319. <number>6</number>
  320. </property>
  321. </widget>
  322. </item>
  323. <item>
  324. <widget class="QLabel" name="valueLabel">
  325. <property name="text">
  326. <string notr="true">(32%)</string>
  327. </property>
  328. </widget>
  329. </item>
  330. <item>
  331. <spacer name="horizontalSpacer_3">
  332. <property name="orientation">
  333. <enum>Qt::Horizontal</enum>
  334. </property>
  335. <property name="sizeHint" stdset="0">
  336. <size>
  337. <width>40</width>
  338. <height>20</height>
  339. </size>
  340. </property>
  341. </spacer>
  342. </item>
  343. </layout>
  344. </widget>
  345. </item>
  346. <item>
  347. <widget class="QGroupBox" name="customLabelsGroupBox">
  348. <property name="title">
  349. <string>Custom labels (one value per line)</string>
  350. </property>
  351. <property name="checkable">
  352. <bool>true</bool>
  353. </property>
  354. <property name="checked">
  355. <bool>false</bool>
  356. </property>
  357. <layout class="QVBoxLayout" name="verticalLayout_2">
  358. <item>
  359. <widget class="QLabel" name="label_5">
  360. <property name="font">
  361. <font>
  362. <italic>true</italic>
  363. </font>
  364. </property>
  365. <property name="text">
  366. <string>One numerical value per line (+ optionally a text label between double quotes)</string>
  367. </property>
  368. </widget>
  369. </item>
  370. <item>
  371. <widget class="QPlainTextEdit" name="customLabelsPlainTextEdit">
  372. <property name="plainText">
  373. <string>(auto)</string>
  374. </property>
  375. </widget>
  376. </item>
  377. </layout>
  378. </widget>
  379. </item>
  380. <item>
  381. <layout class="QHBoxLayout" name="horizontalLayout_5">
  382. <item>
  383. <spacer name="horizontalSpacer_7">
  384. <property name="orientation">
  385. <enum>Qt::Horizontal</enum>
  386. </property>
  387. <property name="sizeHint" stdset="0">
  388. <size>
  389. <width>40</width>
  390. <height>20</height>
  391. </size>
  392. </property>
  393. </spacer>
  394. </item>
  395. <item>
  396. <widget class="QPushButton" name="applyPushButton">
  397. <property name="text">
  398. <string>Apply</string>
  399. </property>
  400. </widget>
  401. </item>
  402. <item>
  403. <widget class="QPushButton" name="closePushButton">
  404. <property name="text">
  405. <string>Close</string>
  406. </property>
  407. </widget>
  408. </item>
  409. </layout>
  410. </item>
  411. </layout>
  412. </widget>
  413. <resources>
  414. <include location="../../../qCC/icons.qrc"/>
  415. </resources>
  416. <connections/>
  417. </ui>