colorFromScalarDlg.ui 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>ColorFromScalarDialog</class>
  4. <widget class="QDialog" name="ColorFromScalarDialog">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>620</width>
  10. <height>800</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>Color From Scalar Fields</string>
  15. </property>
  16. <layout class="QVBoxLayout" name="verticalLayout">
  17. <property name="spacing">
  18. <number>6</number>
  19. </property>
  20. <property name="leftMargin">
  21. <number>6</number>
  22. </property>
  23. <property name="topMargin">
  24. <number>6</number>
  25. </property>
  26. <property name="rightMargin">
  27. <number>6</number>
  28. </property>
  29. <property name="bottomMargin">
  30. <number>6</number>
  31. </property>
  32. <item>
  33. <layout class="QHBoxLayout" name="horizontalLayout">
  34. <property name="leftMargin">
  35. <number>6</number>
  36. </property>
  37. <item>
  38. <widget class="QLabel" name="label">
  39. <property name="text">
  40. <string>Mapping type:</string>
  41. </property>
  42. </widget>
  43. </item>
  44. <item>
  45. <widget class="QRadioButton" name="toggleRGB">
  46. <property name="text">
  47. <string>To RGB</string>
  48. </property>
  49. <property name="checked">
  50. <bool>true</bool>
  51. </property>
  52. </widget>
  53. </item>
  54. <item>
  55. <widget class="QRadioButton" name="toggleHSV">
  56. <property name="text">
  57. <string>To HSV</string>
  58. </property>
  59. </widget>
  60. </item>
  61. <item>
  62. <spacer name="horizontalSpacer_4">
  63. <property name="orientation">
  64. <enum>Qt::Horizontal</enum>
  65. </property>
  66. <property name="sizeHint" stdset="0">
  67. <size>
  68. <width>40</width>
  69. <height>20</height>
  70. </size>
  71. </property>
  72. </spacer>
  73. </item>
  74. </layout>
  75. </item>
  76. <item>
  77. <widget class="QGroupBox" name="mRedGroupBox">
  78. <property name="sizePolicy">
  79. <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
  80. <horstretch>0</horstretch>
  81. <verstretch>0</verstretch>
  82. </sizepolicy>
  83. </property>
  84. <property name="font">
  85. <font>
  86. <weight>50</weight>
  87. <bold>false</bold>
  88. </font>
  89. </property>
  90. <layout class="QVBoxLayout" name="verticalLayout_2">
  91. <property name="spacing">
  92. <number>3</number>
  93. </property>
  94. <property name="leftMargin">
  95. <number>6</number>
  96. </property>
  97. <property name="topMargin">
  98. <number>0</number>
  99. </property>
  100. <property name="rightMargin">
  101. <number>6</number>
  102. </property>
  103. <property name="bottomMargin">
  104. <number>6</number>
  105. </property>
  106. <item>
  107. <layout class="QHBoxLayout" name="horizontalLayout_2">
  108. <item>
  109. <widget class="QLabel" name="mRedLabel">
  110. <property name="font">
  111. <font>
  112. <weight>75</weight>
  113. <bold>true</bold>
  114. <underline>true</underline>
  115. </font>
  116. </property>
  117. <property name="text">
  118. <string>Red</string>
  119. </property>
  120. </widget>
  121. </item>
  122. <item>
  123. <spacer name="horizontalSpacer">
  124. <property name="orientation">
  125. <enum>Qt::Horizontal</enum>
  126. </property>
  127. <property name="sizeHint" stdset="0">
  128. <size>
  129. <width>40</width>
  130. <height>20</height>
  131. </size>
  132. </property>
  133. </spacer>
  134. </item>
  135. <item>
  136. <widget class="QComboBox" name="channelComboR">
  137. <property name="currentText">
  138. <string>RGB</string>
  139. </property>
  140. <item>
  141. <property name="text">
  142. <string>RGB</string>
  143. </property>
  144. </item>
  145. <item>
  146. <property name="text">
  147. <string>Red</string>
  148. </property>
  149. </item>
  150. <item>
  151. <property name="text">
  152. <string>Green</string>
  153. </property>
  154. </item>
  155. <item>
  156. <property name="text">
  157. <string>Blue</string>
  158. </property>
  159. </item>
  160. </widget>
  161. </item>
  162. <item>
  163. <widget class="QLabel" name="MinLabelR">
  164. <property name="text">
  165. <string>Minimum:</string>
  166. </property>
  167. </widget>
  168. </item>
  169. <item>
  170. <widget class="QDoubleSpinBox" name="minInputSpinBoxR"/>
  171. </item>
  172. <item>
  173. <spacer name="horizontalSpacer_5">
  174. <property name="orientation">
  175. <enum>Qt::Horizontal</enum>
  176. </property>
  177. <property name="sizeHint" stdset="0">
  178. <size>
  179. <width>40</width>
  180. <height>20</height>
  181. </size>
  182. </property>
  183. </spacer>
  184. </item>
  185. <item>
  186. <widget class="QCheckBox" name="fixR">
  187. <property name="text">
  188. <string>Fix</string>
  189. </property>
  190. </widget>
  191. </item>
  192. <item>
  193. <widget class="QCheckBox" name="reverseR">
  194. <property name="text">
  195. <string>Reverse</string>
  196. </property>
  197. </widget>
  198. </item>
  199. <item>
  200. <spacer name="horizontalSpacer_6">
  201. <property name="orientation">
  202. <enum>Qt::Horizontal</enum>
  203. </property>
  204. <property name="sizeHint" stdset="0">
  205. <size>
  206. <width>40</width>
  207. <height>20</height>
  208. </size>
  209. </property>
  210. </spacer>
  211. </item>
  212. <item>
  213. <widget class="QLabel" name="MaxLabelR">
  214. <property name="text">
  215. <string>Maximum:</string>
  216. </property>
  217. </widget>
  218. </item>
  219. <item>
  220. <widget class="QDoubleSpinBox" name="maxInputSpinBoxR"/>
  221. </item>
  222. </layout>
  223. </item>
  224. <item>
  225. <widget class="QFrame" name="histoFrameR">
  226. <property name="sizePolicy">
  227. <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
  228. <horstretch>0</horstretch>
  229. <verstretch>0</verstretch>
  230. </sizepolicy>
  231. </property>
  232. <property name="frameShape">
  233. <enum>QFrame::StyledPanel</enum>
  234. </property>
  235. </widget>
  236. </item>
  237. </layout>
  238. </widget>
  239. </item>
  240. <item>
  241. <widget class="QGroupBox" name="mGreenGroupBox">
  242. <property name="title">
  243. <string/>
  244. </property>
  245. <layout class="QVBoxLayout" name="verticalLayout_3">
  246. <property name="spacing">
  247. <number>3</number>
  248. </property>
  249. <property name="leftMargin">
  250. <number>6</number>
  251. </property>
  252. <property name="topMargin">
  253. <number>0</number>
  254. </property>
  255. <property name="rightMargin">
  256. <number>6</number>
  257. </property>
  258. <property name="bottomMargin">
  259. <number>6</number>
  260. </property>
  261. <item>
  262. <layout class="QHBoxLayout" name="horizontalLayout_4">
  263. <item>
  264. <widget class="QLabel" name="mGreenLabel">
  265. <property name="font">
  266. <font>
  267. <weight>75</weight>
  268. <bold>true</bold>
  269. <underline>true</underline>
  270. </font>
  271. </property>
  272. <property name="text">
  273. <string>Green</string>
  274. </property>
  275. </widget>
  276. </item>
  277. <item>
  278. <spacer name="horizontalSpacer_2">
  279. <property name="orientation">
  280. <enum>Qt::Horizontal</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="QComboBox" name="channelComboG">
  292. <property name="currentText">
  293. <string>RGB</string>
  294. </property>
  295. <item>
  296. <property name="text">
  297. <string>RGB</string>
  298. </property>
  299. </item>
  300. <item>
  301. <property name="text">
  302. <string>Red</string>
  303. </property>
  304. </item>
  305. <item>
  306. <property name="text">
  307. <string>Green</string>
  308. </property>
  309. </item>
  310. <item>
  311. <property name="text">
  312. <string>Blue</string>
  313. </property>
  314. </item>
  315. </widget>
  316. </item>
  317. <item>
  318. <widget class="QLabel" name="MinLabelG">
  319. <property name="text">
  320. <string>Minimum:</string>
  321. </property>
  322. </widget>
  323. </item>
  324. <item>
  325. <widget class="QDoubleSpinBox" name="minInputSpinBoxG"/>
  326. </item>
  327. <item>
  328. <spacer name="horizontalSpacer_10">
  329. <property name="orientation">
  330. <enum>Qt::Horizontal</enum>
  331. </property>
  332. <property name="sizeHint" stdset="0">
  333. <size>
  334. <width>40</width>
  335. <height>20</height>
  336. </size>
  337. </property>
  338. </spacer>
  339. </item>
  340. <item>
  341. <widget class="QCheckBox" name="fixG">
  342. <property name="text">
  343. <string>Fix</string>
  344. </property>
  345. </widget>
  346. </item>
  347. <item>
  348. <widget class="QCheckBox" name="reverseG">
  349. <property name="text">
  350. <string>Reverse</string>
  351. </property>
  352. </widget>
  353. </item>
  354. <item>
  355. <spacer name="horizontalSpacer_8">
  356. <property name="orientation">
  357. <enum>Qt::Horizontal</enum>
  358. </property>
  359. <property name="sizeHint" stdset="0">
  360. <size>
  361. <width>40</width>
  362. <height>20</height>
  363. </size>
  364. </property>
  365. </spacer>
  366. </item>
  367. <item>
  368. <widget class="QLabel" name="MaxLabelG">
  369. <property name="text">
  370. <string>Maximum:</string>
  371. </property>
  372. </widget>
  373. </item>
  374. <item>
  375. <widget class="QDoubleSpinBox" name="maxInputSpinBoxG"/>
  376. </item>
  377. </layout>
  378. </item>
  379. <item>
  380. <widget class="QFrame" name="histoFrameG">
  381. <property name="sizePolicy">
  382. <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
  383. <horstretch>0</horstretch>
  384. <verstretch>0</verstretch>
  385. </sizepolicy>
  386. </property>
  387. <property name="frameShape">
  388. <enum>QFrame::StyledPanel</enum>
  389. </property>
  390. <property name="frameShadow">
  391. <enum>QFrame::Raised</enum>
  392. </property>
  393. </widget>
  394. </item>
  395. </layout>
  396. </widget>
  397. </item>
  398. <item>
  399. <widget class="QGroupBox" name="mBlueGroupBox">
  400. <property name="title">
  401. <string/>
  402. </property>
  403. <layout class="QVBoxLayout" name="verticalLayout_4">
  404. <property name="spacing">
  405. <number>3</number>
  406. </property>
  407. <property name="leftMargin">
  408. <number>6</number>
  409. </property>
  410. <property name="topMargin">
  411. <number>0</number>
  412. </property>
  413. <property name="rightMargin">
  414. <number>6</number>
  415. </property>
  416. <property name="bottomMargin">
  417. <number>6</number>
  418. </property>
  419. <item>
  420. <layout class="QHBoxLayout" name="horizontalLayout_5">
  421. <item>
  422. <widget class="QLabel" name="mBlueLabel">
  423. <property name="font">
  424. <font>
  425. <weight>75</weight>
  426. <bold>true</bold>
  427. <underline>true</underline>
  428. </font>
  429. </property>
  430. <property name="text">
  431. <string>Blue</string>
  432. </property>
  433. </widget>
  434. </item>
  435. <item>
  436. <spacer name="horizontalSpacer_3">
  437. <property name="orientation">
  438. <enum>Qt::Horizontal</enum>
  439. </property>
  440. <property name="sizeHint" stdset="0">
  441. <size>
  442. <width>40</width>
  443. <height>20</height>
  444. </size>
  445. </property>
  446. </spacer>
  447. </item>
  448. <item>
  449. <widget class="QComboBox" name="channelComboB">
  450. <property name="currentText">
  451. <string>RGB</string>
  452. </property>
  453. <item>
  454. <property name="text">
  455. <string>RGB</string>
  456. </property>
  457. </item>
  458. <item>
  459. <property name="text">
  460. <string>Red</string>
  461. </property>
  462. </item>
  463. <item>
  464. <property name="text">
  465. <string>Green</string>
  466. </property>
  467. </item>
  468. <item>
  469. <property name="text">
  470. <string>Blue</string>
  471. </property>
  472. </item>
  473. </widget>
  474. </item>
  475. <item>
  476. <widget class="QLabel" name="MinLabelB">
  477. <property name="text">
  478. <string>Minimum:</string>
  479. </property>
  480. </widget>
  481. </item>
  482. <item>
  483. <widget class="QDoubleSpinBox" name="minInputSpinBoxB"/>
  484. </item>
  485. <item>
  486. <spacer name="horizontalSpacer_7">
  487. <property name="orientation">
  488. <enum>Qt::Horizontal</enum>
  489. </property>
  490. <property name="sizeHint" stdset="0">
  491. <size>
  492. <width>40</width>
  493. <height>20</height>
  494. </size>
  495. </property>
  496. </spacer>
  497. </item>
  498. <item>
  499. <widget class="QCheckBox" name="fixB">
  500. <property name="text">
  501. <string>Fix</string>
  502. </property>
  503. </widget>
  504. </item>
  505. <item>
  506. <widget class="QCheckBox" name="reverseB">
  507. <property name="text">
  508. <string>Reverse</string>
  509. </property>
  510. </widget>
  511. </item>
  512. <item>
  513. <spacer name="horizontalSpacer_9">
  514. <property name="orientation">
  515. <enum>Qt::Horizontal</enum>
  516. </property>
  517. <property name="sizeHint" stdset="0">
  518. <size>
  519. <width>40</width>
  520. <height>20</height>
  521. </size>
  522. </property>
  523. </spacer>
  524. </item>
  525. <item>
  526. <widget class="QLabel" name="MaxLabelB">
  527. <property name="text">
  528. <string>Maximum:</string>
  529. </property>
  530. </widget>
  531. </item>
  532. <item>
  533. <widget class="QDoubleSpinBox" name="maxInputSpinBoxB"/>
  534. </item>
  535. </layout>
  536. </item>
  537. <item>
  538. <widget class="QFrame" name="histoFrameB">
  539. <property name="sizePolicy">
  540. <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
  541. <horstretch>0</horstretch>
  542. <verstretch>0</verstretch>
  543. </sizepolicy>
  544. </property>
  545. <property name="frameShape">
  546. <enum>QFrame::StyledPanel</enum>
  547. </property>
  548. <property name="frameShadow">
  549. <enum>QFrame::Raised</enum>
  550. </property>
  551. </widget>
  552. </item>
  553. </layout>
  554. </widget>
  555. </item>
  556. <item>
  557. <widget class="QGroupBox" name="mAlphaGroupBox">
  558. <property name="title">
  559. <string/>
  560. </property>
  561. <layout class="QVBoxLayout" name="verticalLayout_5">
  562. <property name="spacing">
  563. <number>3</number>
  564. </property>
  565. <property name="leftMargin">
  566. <number>6</number>
  567. </property>
  568. <property name="topMargin">
  569. <number>0</number>
  570. </property>
  571. <property name="rightMargin">
  572. <number>6</number>
  573. </property>
  574. <property name="bottomMargin">
  575. <number>6</number>
  576. </property>
  577. <item>
  578. <layout class="QHBoxLayout" name="horizontalLayout_7">
  579. <item>
  580. <widget class="QLabel" name="mAlphaLabel">
  581. <property name="font">
  582. <font>
  583. <weight>75</weight>
  584. <bold>true</bold>
  585. <underline>true</underline>
  586. </font>
  587. </property>
  588. <property name="text">
  589. <string>Alpha</string>
  590. </property>
  591. </widget>
  592. </item>
  593. <item>
  594. <spacer name="horizontalSpacer_11">
  595. <property name="orientation">
  596. <enum>Qt::Horizontal</enum>
  597. </property>
  598. <property name="sizeHint" stdset="0">
  599. <size>
  600. <width>40</width>
  601. <height>20</height>
  602. </size>
  603. </property>
  604. </spacer>
  605. </item>
  606. <item>
  607. <widget class="QComboBox" name="channelComboA">
  608. <property name="currentText">
  609. <string>RGB</string>
  610. </property>
  611. <item>
  612. <property name="text">
  613. <string>RGB</string>
  614. </property>
  615. </item>
  616. <item>
  617. <property name="text">
  618. <string>Red</string>
  619. </property>
  620. </item>
  621. <item>
  622. <property name="text">
  623. <string>Green</string>
  624. </property>
  625. </item>
  626. <item>
  627. <property name="text">
  628. <string>Blue</string>
  629. </property>
  630. </item>
  631. </widget>
  632. </item>
  633. <item>
  634. <widget class="QLabel" name="MinLabelA">
  635. <property name="text">
  636. <string>Minimum:</string>
  637. </property>
  638. </widget>
  639. </item>
  640. <item>
  641. <widget class="QDoubleSpinBox" name="minInputSpinBoxA"/>
  642. </item>
  643. <item>
  644. <spacer name="horizontalSpacer_15">
  645. <property name="orientation">
  646. <enum>Qt::Horizontal</enum>
  647. </property>
  648. <property name="sizeHint" stdset="0">
  649. <size>
  650. <width>40</width>
  651. <height>20</height>
  652. </size>
  653. </property>
  654. </spacer>
  655. </item>
  656. <item>
  657. <widget class="QCheckBox" name="fixA">
  658. <property name="text">
  659. <string>Fix</string>
  660. </property>
  661. <property name="checked">
  662. <bool>false</bool>
  663. </property>
  664. </widget>
  665. </item>
  666. <item>
  667. <widget class="QCheckBox" name="reverseA">
  668. <property name="text">
  669. <string>Reverse</string>
  670. </property>
  671. </widget>
  672. </item>
  673. <item>
  674. <spacer name="horizontalSpacer_16">
  675. <property name="orientation">
  676. <enum>Qt::Horizontal</enum>
  677. </property>
  678. <property name="sizeHint" stdset="0">
  679. <size>
  680. <width>40</width>
  681. <height>20</height>
  682. </size>
  683. </property>
  684. </spacer>
  685. </item>
  686. <item>
  687. <widget class="QLabel" name="MaxLabelA">
  688. <property name="text">
  689. <string>Maximum:</string>
  690. </property>
  691. </widget>
  692. </item>
  693. <item>
  694. <widget class="QDoubleSpinBox" name="maxInputSpinBoxA"/>
  695. </item>
  696. </layout>
  697. </item>
  698. <item>
  699. <widget class="QFrame" name="histoFrameA">
  700. <property name="sizePolicy">
  701. <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
  702. <horstretch>0</horstretch>
  703. <verstretch>0</verstretch>
  704. </sizepolicy>
  705. </property>
  706. <property name="frameShape">
  707. <enum>QFrame::StyledPanel</enum>
  708. </property>
  709. <property name="frameShadow">
  710. <enum>QFrame::Raised</enum>
  711. </property>
  712. </widget>
  713. </item>
  714. </layout>
  715. </widget>
  716. </item>
  717. <item>
  718. <widget class="QDialogButtonBox" name="buttonBox">
  719. <property name="orientation">
  720. <enum>Qt::Horizontal</enum>
  721. </property>
  722. <property name="standardButtons">
  723. <set>QDialogButtonBox::Apply|QDialogButtonBox::Close</set>
  724. </property>
  725. </widget>
  726. </item>
  727. </layout>
  728. </widget>
  729. <resources/>
  730. <connections>
  731. <connection>
  732. <sender>buttonBox</sender>
  733. <signal>accepted()</signal>
  734. <receiver>ColorFromScalarDialog</receiver>
  735. <slot>accept()</slot>
  736. <hints>
  737. <hint type="sourcelabel">
  738. <x>248</x>
  739. <y>254</y>
  740. </hint>
  741. <hint type="destinationlabel">
  742. <x>157</x>
  743. <y>274</y>
  744. </hint>
  745. </hints>
  746. </connection>
  747. <connection>
  748. <sender>buttonBox</sender>
  749. <signal>rejected()</signal>
  750. <receiver>ColorFromScalarDialog</receiver>
  751. <slot>reject()</slot>
  752. <hints>
  753. <hint type="sourcelabel">
  754. <x>316</x>
  755. <y>260</y>
  756. </hint>
  757. <hint type="destinationlabel">
  758. <x>286</x>
  759. <y>274</y>
  760. </hint>
  761. </hints>
  762. </connection>
  763. </connections>
  764. </ui>