Files
core/Test/Applications/gradient/Gradient/mainwindow.ui
danya f6e2e91a4d Radial fix, PDF gradinet implementation
Fixed radial shading cone display
Started working on coons shading, it can convert pdfreader colors to graphics colors(rgb only) and drow similar (in math sense) shape, however size is still wrong, figuring out how to diplay shape with corect size and offset.
Todo:
 Other gradients
 Size and offset
 Alpha Channel
2021-04-03 17:40:56 +03:00

634 lines
14 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1025</width>
<height>651</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralwidget">
<property name="enabled">
<bool>true</bool>
</property>
<widget class="QLabel" name="lable_test">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>400</height>
</rect>
</property>
<property name="frameShape">
<enum>QFrame::Box</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Sunken</enum>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QPushButton" name="RenderPic">
<property name="geometry">
<rect>
<x>600</x>
<y>540</y>
<width>171</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>RenderPic</string>
</property>
<property name="autoDefault">
<bool>false</bool>
</property>
</widget>
<widget class="QListWidget" name="GradientType">
<property name="geometry">
<rect>
<x>20</x>
<y>400</y>
<width>171</width>
<height>161</height>
</rect>
</property>
<item>
<property name="text">
<string>Functional</string>
</property>
</item>
<item>
<property name="text">
<string>Linear</string>
</property>
</item>
<item>
<property name="text">
<string>Radial</string>
</property>
</item>
<item>
<property name="text">
<string>Triangle</string>
</property>
</item>
<item>
<property name="text">
<string>CoonsPatch</string>
</property>
</item>
<item>
<property name="text">
<string>TesnorCoonsPatch</string>
</property>
</item>
<item>
<property name="text">
<string>TriangleParametric</string>
</property>
</item>
<item>
<property name="text">
<string>CoonsPatchParametric</string>
</property>
</item>
<item>
<property name="text">
<string>TensorCoonsPatchParametric</string>
</property>
</item>
</widget>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>20</x>
<y>570</y>
<width>101</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Gradient Type</string>
</property>
</widget>
<widget class="QListWidget" name="ColorSpaces">
<property name="geometry">
<rect>
<x>210</x>
<y>400</y>
<width>121</width>
<height>161</height>
</rect>
</property>
<item>
<property name="text">
<string>Rainbow</string>
</property>
</item>
<item>
<property name="text">
<string>Black and white</string>
</property>
</item>
<item>
<property name="text">
<string>Red Blue</string>
</property>
</item>
<item>
<property name="text">
<string>Pastel</string>
</property>
</item>
</widget>
<widget class="QLabel" name="label_5">
<property name="geometry">
<rect>
<x>230</x>
<y>570</y>
<width>58</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Colours</string>
</property>
</widget>
<widget class="QLabel" name="label_6">
<property name="geometry">
<rect>
<x>340</x>
<y>530</y>
<width>141</width>
<height>41</height>
</rect>
</property>
<property name="text">
<string>Double Click to change</string>
</property>
</widget>
<widget class="QSlider" name="Point1X">
<property name="geometry">
<rect>
<x>460</x>
<y>30</y>
<width>160</width>
<height>16</height>
</rect>
</property>
<property name="maximum">
<number>400</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QSlider" name="Point1Y">
<property name="geometry">
<rect>
<x>460</x>
<y>60</y>
<width>160</width>
<height>16</height>
</rect>
</property>
<property name="maximum">
<number>400</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QSlider" name="Point2X">
<property name="geometry">
<rect>
<x>460</x>
<y>90</y>
<width>160</width>
<height>16</height>
</rect>
</property>
<property name="maximum">
<number>400</number>
</property>
<property name="value">
<number>400</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QSlider" name="Point2Y">
<property name="geometry">
<rect>
<x>460</x>
<y>120</y>
<width>160</width>
<height>16</height>
</rect>
</property>
<property name="maximum">
<number>400</number>
</property>
<property name="value">
<number>400</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>460</x>
<y>10</y>
<width>151</width>
<height>18</height>
</rect>
</property>
<property name="text">
<string>Points XY Linear</string>
</property>
</widget>
<widget class="QLabel" name="label_3">
<property name="geometry">
<rect>
<x>740</x>
<y>170</y>
<width>58</width>
<height>18</height>
</rect>
</property>
<property name="text">
<string>r0 r1</string>
</property>
</widget>
<widget class="QSlider" name="r0slider">
<property name="geometry">
<rect>
<x>720</x>
<y>200</y>
<width>160</width>
<height>16</height>
</rect>
</property>
<property name="maximum">
<number>200</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QSlider" name="r1slider">
<property name="geometry">
<rect>
<x>720</x>
<y>230</y>
<width>160</width>
<height>16</height>
</rect>
</property>
<property name="maximum">
<number>200</number>
</property>
<property name="value">
<number>100</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QSlider" name="CenterX0">
<property name="geometry">
<rect>
<x>720</x>
<y>30</y>
<width>160</width>
<height>16</height>
</rect>
</property>
<property name="maximum">
<number>400</number>
</property>
<property name="value">
<number>200</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QSlider" name="CenterY0">
<property name="geometry">
<rect>
<x>720</x>
<y>60</y>
<width>160</width>
<height>16</height>
</rect>
</property>
<property name="maximum">
<number>400</number>
</property>
<property name="value">
<number>200</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QSlider" name="CenterX1">
<property name="geometry">
<rect>
<x>720</x>
<y>90</y>
<width>160</width>
<height>16</height>
</rect>
</property>
<property name="maximum">
<number>400</number>
</property>
<property name="value">
<number>200</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QSlider" name="CenterY1">
<property name="geometry">
<rect>
<x>720</x>
<y>120</y>
<width>160</width>
<height>16</height>
</rect>
</property>
<property name="maximum">
<number>400</number>
</property>
<property name="value">
<number>200</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QLabel" name="label_4">
<property name="geometry">
<rect>
<x>740</x>
<y>10</y>
<width>131</width>
<height>18</height>
</rect>
</property>
<property name="text">
<string>CenterXY Radial</string>
</property>
</widget>
<widget class="QCheckBox" name="ContinueForvard">
<property name="geometry">
<rect>
<x>380</x>
<y>420</y>
<width>141</width>
<height>24</height>
</rect>
</property>
<property name="text">
<string>Continue Forward</string>
</property>
</widget>
<widget class="QCheckBox" name="ContinueBack">
<property name="geometry">
<rect>
<x>380</x>
<y>460</y>
<width>141</width>
<height>24</height>
</rect>
</property>
<property name="text">
<string>Continue Back</string>
</property>
</widget>
<widget class="QSlider" name="TrianglePoint1X">
<property name="geometry">
<rect>
<x>440</x>
<y>190</y>
<width>160</width>
<height>16</height>
</rect>
</property>
<property name="maximum">
<number>400</number>
</property>
<property name="value">
<number>100</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QSlider" name="TrianglePoint1Y">
<property name="geometry">
<rect>
<x>440</x>
<y>220</y>
<width>160</width>
<height>16</height>
</rect>
</property>
<property name="maximum">
<number>400</number>
</property>
<property name="value">
<number>100</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QSlider" name="TrianglePoint2Y">
<property name="geometry">
<rect>
<x>440</x>
<y>290</y>
<width>160</width>
<height>16</height>
</rect>
</property>
<property name="maximum">
<number>400</number>
</property>
<property name="value">
<number>200</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QSlider" name="TrianglePoint2X">
<property name="geometry">
<rect>
<x>440</x>
<y>260</y>
<width>160</width>
<height>16</height>
</rect>
</property>
<property name="maximum">
<number>400</number>
</property>
<property name="value">
<number>300</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QSlider" name="TrianglePoint3Y">
<property name="geometry">
<rect>
<x>440</x>
<y>350</y>
<width>160</width>
<height>16</height>
</rect>
</property>
<property name="maximum">
<number>400</number>
</property>
<property name="value">
<number>350</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QSlider" name="TrianglePoint3X">
<property name="geometry">
<rect>
<x>440</x>
<y>320</y>
<width>160</width>
<height>16</height>
</rect>
</property>
<property name="maximum">
<number>400</number>
</property>
<property name="value">
<number>200</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QLabel" name="label_7">
<property name="geometry">
<rect>
<x>420</x>
<y>170</y>
<width>111</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>XY triangle</string>
</property>
</widget>
<widget class="QLabel" name="label_8">
<property name="geometry">
<rect>
<x>770</x>
<y>320</y>
<width>54</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>PDF</string>
</property>
</widget>
<widget class="QPushButton" name="LeftButton">
<property name="geometry">
<rect>
<x>680</x>
<y>400</y>
<width>80</width>
<height>25</height>
</rect>
</property>
<property name="text">
<string>Left</string>
</property>
</widget>
<widget class="QPushButton" name="RightButton">
<property name="geometry">
<rect>
<x>790</x>
<y>400</y>
<width>80</width>
<height>25</height>
</rect>
</property>
<property name="text">
<string>Right</string>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit">
<property name="geometry">
<rect>
<x>730</x>
<y>360</y>
<width>113</width>
<height>25</height>
</rect>
</property>
<property name="text">
<string>746</string>
</property>
</widget>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1025</width>
<height>23</height>
</rect>
</property>
</widget>
<widget class="QStatusBar" name="statusbar"/>
<widget class="QToolBar" name="toolBar">
<property name="windowTitle">
<string>toolBar</string>
</property>
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
</widget>
</widget>
<resources/>
<connections/>
<slots>
<signal>on_button_Push()</signal>
</slots>
</ui>