Splash Editor modified

This commit is contained in:
Kjell Kernen
2014-02-06 20:52:17 +01:00
parent 9badcb3513
commit c7b7cd2ba9
5 changed files with 432 additions and 304 deletions
+367 -252
View File
@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>739</width>
<height>238</height>
<width>892</width>
<height>299</height>
</rect>
</property>
<property name="sizePolicy">
@@ -17,18 +17,266 @@
</sizepolicy>
</property>
<property name="windowTitle">
<string>Customize Splash</string>
<string>Transmitter Splash Screen Editor</string>
</property>
<property name="windowIcon">
<iconset resource="companion.qrc">
<normaloff>:/icon.png</normaloff>:/icon.png</iconset>
</property>
<widget class="QLineEdit" name="rightFileName">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>460</x>
<y>0</y>
<width>424</width>
<height>25</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>424</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>424</width>
<height>16777215</height>
</size>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QPushButton" name="leftLoadButton">
<property name="geometry">
<rect>
<x>10</x>
<y>210</y>
<width>81</width>
<height>27</height>
</rect>
</property>
<property name="text">
<string>Load</string>
</property>
</widget>
<widget class="QToolButton" name="leftLibraryButton">
<property name="geometry">
<rect>
<x>90</x>
<y>210</y>
<width>26</width>
<height>23</height>
</rect>
</property>
<property name="toolTip">
<string>Open Splash Library</string>
</property>
<property name="text">
<string>...</string>
</property>
<property name="iconSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
</widget>
<widget class="QPushButton" name="rightLoadButton">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>460</x>
<y>210</y>
<width>90</width>
<height>27</height>
</rect>
</property>
<property name="text">
<string>Load</string>
</property>
</widget>
<widget class="QLineEdit" name="leftFileName">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>10</x>
<y>0</y>
<width>424</width>
<height>25</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>424</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>424</width>
<height>16777215</height>
</size>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QPushButton" name="leftSaveButton">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>350</x>
<y>210</y>
<width>81</width>
<height>27</height>
</rect>
</property>
<property name="text">
<string>Save</string>
</property>
</widget>
<widget class="QLabel" name="rightImageLabel">
<property name="geometry">
<rect>
<x>460</x>
<y>30</y>
<width>424</width>
<height>128</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>424</width>
<height>128</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>424</width>
<height>128</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::Panel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="companion.qrc">:/images/customize.png</pixmap>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
</widget>
<widget class="QLabel" name="leftImageLabel">
<property name="geometry">
<rect>
<x>10</x>
<y>30</y>
<width>424</width>
<height>128</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>424</width>
<height>128</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>424</width>
<height>128</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::Panel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="companion.qrc">:/images/customize.png</pixmap>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
</widget>
<widget class="QPushButton" name="rightInvertButton">
<property name="geometry">
<rect>
<x>460</x>
<y>160</y>
<width>85</width>
<height>27</height>
</rect>
</property>
<property name="text">
<string>Invert</string>
</property>
</widget>
<widget class="QPushButton" name="rightSaveButton">
<property name="geometry">
<rect>
<x>790</x>
<y>210</y>
<width>90</width>
<height>27</height>
</rect>
</property>
<property name="text">
<string>Save</string>
</property>
</widget>
<widget class="QPushButton" name="leftInvertButton">
<property name="geometry">
<rect>
<x>10</x>
<y>160</y>
<width>81</width>
<height>27</height>
</rect>
</property>
<property name="text">
<string>Invert</string>
</property>
</widget>
<widget class="QTextEdit" name="HowToLabel">
<property name="geometry">
<rect>
<x>100</x>
<y>190</y>
<width>541</width>
<x>10</x>
<y>250</y>
<width>871</width>
<height>40</height>
</rect>
</property>
@@ -45,7 +293,7 @@
</size>
</property>
<property name="styleSheet">
<string notr="true">background:rgb(255, 255, 0);</string>
<string notr="true">background:rgb(235, 235, 235);</string>
</property>
<property name="verticalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
@@ -67,82 +315,108 @@ p, li { white-space: pre-wrap; }
<bool>true</bool>
</property>
</widget>
<widget class="QPushButton" name="pushButton">
<widget class="QToolButton" name="copyLeftToRight">
<property name="geometry">
<rect>
<x>350</x>
<y>30</y>
<width>31</width>
<height>27</height>
</rect>
</property>
<property name="font">
<font>
<family>Courier 10 Pitch</family>
<pointsize>10</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string notr="true">=&gt;</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_2">
<property name="geometry">
<rect>
<x>350</x>
<y>60</y>
<width>31</width>
<height>27</height>
</rect>
</property>
<property name="font">
<font>
<family>Courier 10 Pitch</family>
<pointsize>10</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string notr="true">&lt;=</string>
</property>
</widget>
<widget class="QLineEdit" name="ImageFileName">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>390</x>
<y>130</y>
<width>251</width>
<height>25</height>
</rect>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QPushButton" name="FlashLoadButton">
<property name="geometry">
<rect>
<x>90</x>
<y>160</y>
<width>108</width>
<height>27</height>
<x>437</x>
<y>120</y>
<width>20</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>Load Firmware</string>
<string>...</string>
</property>
<property name="arrowType">
<enum>Qt::RightArrow</enum>
</property>
</widget>
<widget class="QToolButton" name="libraryButton">
<widget class="QToolButton" name="copyRightToLeft">
<property name="geometry">
<rect>
<x>200</x>
<y>160</y>
<x>437</x>
<y>40</y>
<width>20</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>...</string>
</property>
<property name="arrowType">
<enum>Qt::LeftArrow</enum>
</property>
</widget>
<widget class="Line" name="line">
<property name="geometry">
<rect>
<x>442</x>
<y>5</y>
<width>10</width>
<height>31</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
<widget class="Line" name="line_2">
<property name="geometry">
<rect>
<x>442</x>
<y>70</y>
<width>10</width>
<height>41</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
<widget class="Line" name="line_3">
<property name="geometry">
<rect>
<x>442</x>
<y>150</y>
<width>10</width>
<height>91</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
<widget class="Line" name="line_4">
<property name="geometry">
<rect>
<x>10</x>
<y>190</y>
<width>421</width>
<height>16</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="Line" name="line_5">
<property name="geometry">
<rect>
<x>460</x>
<y>190</y>
<width>421</width>
<height>16</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QToolButton" name="rightLibraryButton">
<property name="geometry">
<rect>
<x>550</x>
<y>210</y>
<width>26</width>
<height>23</height>
</rect>
@@ -160,185 +434,26 @@ p, li { white-space: pre-wrap; }
</size>
</property>
</widget>
<widget class="QPushButton" name="ImageLoadButton">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>390</x>
<y>160</y>
<width>90</width>
<height>27</height>
</rect>
</property>
<property name="text">
<string>Load Image</string>
</property>
</widget>
<widget class="QLineEdit" name="FWFileName">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>90</x>
<y>130</y>
<width>251</width>
<height>25</height>
</rect>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QPushButton" name="SaveFlashButton">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>230</x>
<y>160</y>
<width>108</width>
<height>27</height>
</rect>
</property>
<property name="text">
<string>Save Firmware</string>
</property>
</widget>
<widget class="QLabel" name="imageLabel_2">
<property name="geometry">
<rect>
<x>390</x>
<y>0</y>
<width>256</width>
<height>128</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>256</width>
<height>128</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>424</width>
<height>128</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::Panel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="companion.qrc">:/images/customize.png</pixmap>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
</widget>
<widget class="QLabel" name="imageLabel">
<property name="geometry">
<rect>
<x>91</x>
<y>1</y>
<width>256</width>
<height>128</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>256</width>
<height>128</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>424</width>
<height>128</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::Panel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="companion.qrc">:/images/customize.png</pixmap>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
</widget>
<widget class="QPushButton" name="InvertColorButton_2">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>90</width>
<height>27</height>
</rect>
</property>
<property name="text">
<string>Invert</string>
</property>
</widget>
<widget class="QPushButton" name="SaveImageButton">
<property name="geometry">
<rect>
<x>550</x>
<y>160</y>
<width>90</width>
<height>27</height>
</rect>
</property>
<property name="text">
<string>Save Image</string>
</property>
</widget>
<widget class="QPushButton" name="InvertColorButton">
<property name="geometry">
<rect>
<x>650</x>
<y>0</y>
<width>90</width>
<height>27</height>
</rect>
</property>
<property name="text">
<string>Invert</string>
</property>
</widget>
<zorder>rightFileName</zorder>
<zorder>leftLoadButton</zorder>
<zorder>leftLibraryButton</zorder>
<zorder>rightLoadButton</zorder>
<zorder>leftFileName</zorder>
<zorder>leftSaveButton</zorder>
<zorder>rightImageLabel</zorder>
<zorder>rightInvertButton</zorder>
<zorder>rightSaveButton</zorder>
<zorder>leftInvertButton</zorder>
<zorder>leftImageLabel</zorder>
<zorder>HowToLabel</zorder>
<zorder>layoutWidget</zorder>
<zorder>layoutWidget_2</zorder>
<zorder>imageLabel</zorder>
<zorder>pushButton</zorder>
<zorder>pushButton_2</zorder>
<zorder>copyLeftToRight</zorder>
<zorder>copyRightToLeft</zorder>
<zorder>line</zorder>
<zorder>line_2</zorder>
<zorder>line_3</zorder>
<zorder>line_4</zorder>
<zorder>line_5</zorder>
<zorder>rightLibraryButton</zorder>
</widget>
<resources>
<include location="companion.qrc"/>