diff options
author | Paweł Jastrzębski <pawelj@iosphe.re> | 2015-10-27 17:46:35 +0100 |
---|---|---|
committer | Paweł Jastrzębski <pawelj@iosphe.re> | 2015-10-27 17:46:35 +0100 |
commit | fff7eeca2bc663933c5922f12d539e441fb7c35d (patch) | |
tree | 6e17a12974c16f3757b022649631ea79f5fe1cc3 /gui | |
parent | Added cover upload (diff) | |
download | kcc-fff7eeca2bc663933c5922f12d539e441fb7c35d.tar.gz kcc-fff7eeca2bc663933c5922f12d539e441fb7c35d.tar.bz2 kcc-fff7eeca2bc663933c5922f12d539e441fb7c35d.zip |
GUI overhaul
Diffstat (limited to 'gui')
-rw-r--r-- | gui/KCC.qrc | 1 | ||||
-rw-r--r-- | gui/KCC.ui | 666 |
2 files changed, 302 insertions, 365 deletions
diff --git a/gui/KCC.qrc b/gui/KCC.qrc index 4c6d04d..3193604 100644 --- a/gui/KCC.qrc +++ b/gui/KCC.qrc @@ -18,6 +18,7 @@ <file>../icons/warning.png</file> </qresource> <qresource prefix="Other"> + <file>../icons/wiki.png</file> <file>../icons/editor.png</file> <file>../icons/list_background.png</file> <file>../icons/clear.png</file> diff --git a/gui/KCC.ui b/gui/KCC.ui index 67153f9..11321ff 100644 --- a/gui/KCC.ui +++ b/gui/KCC.ui @@ -7,19 +7,19 @@ <x>0</x> <y>0</y> <width>420</width> - <height>397</height> + <height>390</height> </rect> </property> <property name="minimumSize"> <size> <width>420</width> - <height>397</height> + <height>390</height> </size> </property> <property name="maximumSize"> <size> <width>420</width> - <height>397</height> + <height>390</height> </size> </property> <property name="font"> @@ -38,113 +38,6 @@ <locale language="C" country="AnyCountry"/> </property> <widget class="QWidget" name="Form"> - <widget class="QFrame" name="OptionsAdvanced"> - <property name="enabled"> - <bool>true</bool> - </property> - <property name="geometry"> - <rect> - <x>10</x> - <y>254</y> - <width>421</width> - <height>61</height> - </rect> - </property> - <property name="font"> - <font> - <pointsize>9</pointsize> - </font> - </property> - <layout class="QGridLayout" name="gridLayout"> - <property name="leftMargin"> - <number>9</number> - </property> - <item row="1" column="0"> - <widget class="QCheckBox" name="ProcessingBox"> - <property name="focusPolicy"> - <enum>Qt::NoFocus</enum> - </property> - <property name="toolTip"> - <string><html><head/><body><p style='white-space:pre'>Disable image optimizations.<br/><span style=" font-weight:600;">Input images must be already resized.</span></p></body></html></string> - </property> - <property name="text"> - <string>No optimisation</string> - </property> - </widget> - </item> - <item row="1" column="1"> - <widget class="QCheckBox" name="UpscaleBox"> - <property name="focusPolicy"> - <enum>Qt::NoFocus</enum> - </property> - <property name="toolTip"> - <string><html><head/><body><p><span style=" font-weight:600; text-decoration: underline;">Unchecked - Nothing<br/></span>Images smaller than device resolution will not be resized.</p><p><span style=" font-weight:600; text-decoration: underline;">Indeterminate - Stretching<br/></span>Images smaller than device resolution will be resized. Aspect ratio will be not preserved.</p><p><span style=" font-weight:600; text-decoration: underline;">Checked - Upscaling<br/></span>Images smaller than device resolution will be resized. Aspect ratio will be preserved.</p></body></html></string> - </property> - <property name="text"> - <string>Stretch/Upscale</string> - </property> - <property name="tristate"> - <bool>true</bool> - </property> - </widget> - </item> - <item row="3" column="1"> - <widget class="QCheckBox" name="WebtoonBox"> - <property name="focusPolicy"> - <enum>Qt::NoFocus</enum> - </property> - <property name="toolTip"> - <string><html><head/><body><p style='white-space:pre'>Enable special parsing mode for WebToons.</p></body></html></string> - </property> - <property name="text"> - <string>Webtoon mode</string> - </property> - </widget> - </item> - <item row="3" column="2"> - <widget class="QCheckBox" name="NoDitheringBox"> - <property name="focusPolicy"> - <enum>Qt::NoFocus</enum> - </property> - <property name="toolTip"> - <string><html><head/><body><p style='white-space:pre'>Create PNG files instead JPEG.<br/>Quality increase is not noticeable on most of devices.<br/>Output files <span style=" font-weight:600;">might</span> be smaller.<br/><span style=" font-weight:600;">MOBI conversion will be much slower.</span></p></body></html></string> - </property> - <property name="text"> - <string>PNG output</string> - </property> - </widget> - </item> - <item row="3" column="0"> - <widget class="QCheckBox" name="BorderBox"> - <property name="focusPolicy"> - <enum>Qt::NoFocus</enum> - </property> - <property name="toolTip"> - <string><html><head/><body><p><span style=" font-weight:600; text-decoration: underline;">Unchecked - Autodetection<br/></span>Color of margins fill will be detected automatically.</p><p><span style=" font-weight:600; text-decoration: underline;">Indeterminate - White<br/></span>Margins will be filled with white color.</p><p><span style=" font-weight:600; text-decoration: underline;">Checked - Black<br/></span>Margins will be filled with black color.</p></body></html></string> - </property> - <property name="text"> - <string>W/B margins</string> - </property> - <property name="tristate"> - <bool>true</bool> - </property> - </widget> - </item> - <item row="1" column="2"> - <widget class="QCheckBox" name="NoRotateBox"> - <property name="focusPolicy"> - <enum>Qt::NoFocus</enum> - </property> - <property name="toolTip"> - <string><html><head/><body><p style='white-space:pre'>Disable page splitting and rotation.</p></body></html></string> - </property> - <property name="text"> - <string>No split/rotate</string> - </property> - </widget> - </item> - </layout> - </widget> <widget class="QComboBox" name="DeviceBox"> <property name="geometry"> <rect> @@ -298,13 +191,13 @@ <normaloff>:/Other/icons/clear.png</normaloff>:/Other/icons/clear.png</iconset> </property> </widget> - <widget class="QFrame" name="OptionsBasic"> + <widget class="QFrame" name="Options"> <property name="geometry"> <rect> <x>10</x> - <y>230</y> - <width>421</width> - <height>41</height> + <y>237</y> + <width>401</width> + <height>70</height> </rect> </property> <property name="font"> @@ -312,69 +205,152 @@ <pointsize>9</pointsize> </font> </property> - <widget class="QCheckBox" name="MangaBox"> - <property name="geometry"> - <rect> - <x>9</x> - <y>10</y> - <width>130</width> - <height>18</height> - </rect> - </property> - <property name="focusPolicy"> - <enum>Qt::NoFocus</enum> - </property> - <property name="toolTip"> - <string><html><head/><body><p style='white-space:pre'>Enable right-to-left reading.</p></body></html></string> - </property> - <property name="text"> - <string>Manga mode</string> - </property> - </widget> - <widget class="QCheckBox" name="QualityBox"> - <property name="geometry"> - <rect> - <x>282</x> - <y>10</y> - <width>130</width> - <height>18</height> - </rect> - </property> - <property name="focusPolicy"> - <enum>Qt::NoFocus</enum> - </property> - <property name="toolTip"> - <string><html><head/><body><p style='white-space:pre'>Quality of Panel View/zoom. Highly impact size of output file.<br/><span style=" font-weight:600;">This option control only quality of magnification!</span></p></body></html></string> - </property> - <property name="text"> - <string>High/Ultra quality</string> + <layout class="QGridLayout" name="gridLayout" columnstretch="0,0,0"> + <property name="leftMargin"> + <number>0</number> </property> - <property name="tristate"> - <bool>true</bool> + <property name="topMargin"> + <number>0</number> </property> - </widget> - <widget class="QCheckBox" name="RotateBox"> - <property name="geometry"> - <rect> - <x>145</x> - <y>10</y> - <width>130</width> - <height>18</height> - </rect> + <property name="rightMargin"> + <number>0</number> </property> - <property name="focusPolicy"> - <enum>Qt::NoFocus</enum> + <property name="bottomMargin"> + <number>0</number> </property> - <property name="toolTip"> - <string><html><head/><body><p style='white-space:pre'>Disable splitting of two-page spreads.<br/>They will be rotated instead.</p></body></html></string> + <property name="horizontalSpacing"> + <number>40</number> </property> - <property name="text"> - <string>Horizontal mode</string> + <property name="verticalSpacing"> + <number>5</number> </property> - </widget> - <zorder>RotateBox</zorder> - <zorder>MangaBox</zorder> - <zorder>QualityBox</zorder> + <item row="2" column="0"> + <widget class="QCheckBox" name="MangaBox"> + <property name="focusPolicy"> + <enum>Qt::NoFocus</enum> + </property> + <property name="toolTip"> + <string><html><head/><body><p style='white-space:pre'>Enable right-to-left reading.</p></body></html></string> + </property> + <property name="text"> + <string>Manga mode</string> + </property> + </widget> + </item> + <item row="2" column="1"> + <widget class="QCheckBox" name="RotateBox"> + <property name="focusPolicy"> + <enum>Qt::NoFocus</enum> + </property> + <property name="toolTip"> + <string><html><head/><body><p><span style=" font-weight:600; text-decoration: underline;">Unchecked - Split<br/></span>Double page spreads will be cut into two separate pages.</p><p><span style=" font-weight:600; text-decoration: underline;">Indeterminate - Rotate and split<br/></span>Double page spreads will be displayed twice. First rotated and then split. </p><p><span style=" font-weight:600; text-decoration: underline;">Checked - Rotate<br/></span>Double page spreads will be rotated.</p></body></html></string> + </property> + <property name="text"> + <string>Spread splitter</string> + </property> + <property name="tristate"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="2" column="2"> + <widget class="QCheckBox" name="QualityBox"> + <property name="focusPolicy"> + <enum>Qt::NoFocus</enum> + </property> + <property name="toolTip"> + <string><html><head/><body><p style='white-space:pre'>High quality Panel View.<br/>Require source files with bigger resolution than target device.<br/><span style=" font-weight:600;">Highly impact size of output file!</span></p></body></html></string> + </property> + <property name="text"> + <string>HQ zoom</string> + </property> + </widget> + </item> + <item row="4" column="2"> + <widget class="QCheckBox" name="GammaBox"> + <property name="focusPolicy"> + <enum>Qt::NoFocus</enum> + </property> + <property name="toolTip"> + <string><html><head/><body><p style='white-space:pre'>Disable automatic gamma correction.</p></body></html></string> + </property> + <property name="text"> + <string>Custom gamma</string> + </property> + </widget> + </item> + <item row="5" column="1"> + <widget class="QCheckBox" name="NoDitheringBox"> + <property name="focusPolicy"> + <enum>Qt::NoFocus</enum> + </property> + <property name="toolTip"> + <string><html><head/><body><p style='white-space:pre'>Create PNG files instead JPEG.<br/>Quality increase is not noticeable on most of devices.<br/>Output files <span style=" font-weight:600;">might</span> be smaller.<br/><span style=" font-weight:600;">MOBI conversion will be much slower.</span></p></body></html></string> + </property> + <property name="text"> + <string>PNG output</string> + </property> + </widget> + </item> + <item row="5" column="2"> + <widget class="QCheckBox" name="ColorBox"> + <property name="focusPolicy"> + <enum>Qt::NoFocus</enum> + </property> + <property name="toolTip"> + <string><html><head/><body><p style='white-space:pre'>Disable conversion to grayscale.</p></body></html></string> + </property> + <property name="text"> + <string>Color mode</string> + </property> + </widget> + </item> + <item row="4" column="1"> + <widget class="QCheckBox" name="UpscaleBox"> + <property name="focusPolicy"> + <enum>Qt::NoFocus</enum> + </property> + <property name="toolTip"> + <string><html><head/><body><p><span style=" font-weight:600; text-decoration: underline;">Unchecked - Nothing<br/></span>Images smaller than device resolution will not be resized.</p><p><span style=" font-weight:600; text-decoration: underline;">Indeterminate - Stretching<br/></span>Images smaller than device resolution will be resized. Aspect ratio will be not preserved.</p><p><span style=" font-weight:600; text-decoration: underline;">Checked - Upscaling<br/></span>Images smaller than device resolution will be resized. Aspect ratio will be preserved.</p></body></html></string> + </property> + <property name="text"> + <string>Stretch/Upscale</string> + </property> + <property name="tristate"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="4" column="0"> + <widget class="QCheckBox" name="WebtoonBox"> + <property name="focusPolicy"> + <enum>Qt::NoFocus</enum> + </property> + <property name="toolTip"> + <string><html><head/><body><p style='white-space:pre'>Enable special parsing mode for Korean Webtoons.</p></body></html></string> + </property> + <property name="text"> + <string>Webtoon mode</string> + </property> + </widget> + </item> + <item row="5" column="0"> + <widget class="QCheckBox" name="BorderBox"> + <property name="focusPolicy"> + <enum>Qt::NoFocus</enum> + </property> + <property name="toolTip"> + <string><html><head/><body><p><span style=" font-weight:600; text-decoration: underline;">Unchecked - Autodetection<br/></span>Color of margins fill will be detected automatically.</p><p><span style=" font-weight:600; text-decoration: underline;">Indeterminate - White<br/></span>Margins will be filled with white color.</p><p><span style=" font-weight:600; text-decoration: underline;">Checked - Black<br/></span>Margins will be filled with black color.</p></body></html></string> + </property> + <property name="text"> + <string>W/B margins</string> + </property> + <property name="tristate"> + <bool>true</bool> + </property> + </widget> + </item> + </layout> </widget> <widget class="QListWidget" name="JobList"> <property name="geometry"> @@ -404,49 +380,7 @@ <enum>QAbstractItemView::ScrollPerPixel</enum> </property> </widget> - <widget class="QPushButton" name="BasicModeButton"> - <property name="geometry"> - <rect> - <x>10</x> - <y>10</y> - <width>141</width> - <height>32</height> - </rect> - </property> - <property name="font"> - <font> - <pointsize>9</pointsize> - </font> - </property> - <property name="focusPolicy"> - <enum>Qt::NoFocus</enum> - </property> - <property name="text"> - <string>Basic</string> - </property> - </widget> - <widget class="QPushButton" name="AdvModeButton"> - <property name="geometry"> - <rect> - <x>261</x> - <y>10</y> - <width>151</width> - <height>32</height> - </rect> - </property> - <property name="font"> - <font> - <pointsize>9</pointsize> - </font> - </property> - <property name="focusPolicy"> - <enum>Qt::NoFocus</enum> - </property> - <property name="text"> - <string>Advanced</string> - </property> - </widget> - <widget class="QFrame" name="OptionsAdvancedGamma"> + <widget class="QFrame" name="OptionsGamma"> <property name="enabled"> <bool>true</bool> </property> @@ -455,7 +389,7 @@ <x>10</x> <y>305</y> <width>401</width> - <height>41</height> + <height>35</height> </rect> </property> <property name="font"> @@ -463,41 +397,46 @@ <pointsize>9</pointsize> </font> </property> - <widget class="QLabel" name="GammaLabel"> - <property name="geometry"> - <rect> - <x>15</x> - <y>0</y> - <width>100</width> - <height>40</height> - </rect> - </property> - <property name="text"> - <string>Gamma: Auto</string> - </property> - </widget> - <widget class="QSlider" name="GammaSlider"> - <property name="geometry"> - <rect> - <x>110</x> - <y>10</y> - <width>270</width> - <height>22</height> - </rect> + <layout class="QHBoxLayout" name="horizontalLayout"> + <property name="spacing"> + <number>15</number> </property> - <property name="focusPolicy"> - <enum>Qt::ClickFocus</enum> + <property name="leftMargin"> + <number>0</number> </property> - <property name="maximum"> - <number>500</number> + <property name="topMargin"> + <number>0</number> </property> - <property name="singleStep"> - <number>5</number> + <property name="rightMargin"> + <number>0</number> </property> - <property name="orientation"> - <enum>Qt::Horizontal</enum> + <property name="bottomMargin"> + <number>0</number> </property> - </widget> + <item> + <widget class="QLabel" name="GammaLabel"> + <property name="text"> + <string>Gamma: Auto</string> + </property> + </widget> + </item> + <item> + <widget class="QSlider" name="GammaSlider"> + <property name="focusPolicy"> + <enum>Qt::ClickFocus</enum> + </property> + <property name="maximum"> + <number>500</number> + </property> + <property name="singleStep"> + <number>5</number> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + </item> + </layout> </widget> <widget class="QProgressBar" name="ProgressBar"> <property name="geometry"> @@ -525,13 +464,13 @@ <string/> </property> </widget> - <widget class="QFrame" name="OptionsExpert"> + <widget class="QFrame" name="OptionsCustom"> <property name="geometry"> <rect> <x>10</x> - <y>337</y> - <width>421</width> - <height>41</height> + <y>340</y> + <width>401</width> + <height>25</height> </rect> </property> <property name="font"> @@ -539,126 +478,100 @@ <pointsize>9</pointsize> </font> </property> - <widget class="QCheckBox" name="ColorBox"> - <property name="geometry"> - <rect> - <x>9</x> - <y>11</y> - <width>130</width> - <height>18</height> - </rect> + <layout class="QHBoxLayout" name="horizontalLayout_2"> + <property name="spacing"> + <number>15</number> </property> - <property name="focusPolicy"> - <enum>Qt::NoFocus</enum> + <property name="leftMargin"> + <number>0</number> </property> - <property name="toolTip"> - <string><html><head/><body><p style='white-space:pre'>Don't convert images to grayscale.</p></body></html></string> + <property name="topMargin"> + <number>0</number> </property> - <property name="text"> - <string>Color mode</string> + <property name="rightMargin"> + <number>0</number> </property> - </widget> - <widget class="QFrame" name="OptionsExpertInternal"> - <property name="geometry"> - <rect> - <x>100</x> - <y>0</y> - <width>295</width> - <height>40</height> - </rect> + <property name="bottomMargin"> + <number>0</number> </property> - <layout class="QGridLayout" name="gridLayout_2"> - <item row="0" column="0"> - <widget class="QLabel" name="wLabel"> - <property name="toolTip"> - <string><html><head/><body><p style='white-space:pre'>Resolution of target device.</p></body></html></string> - </property> - <property name="text"> - <string>Custom width: </string> - </property> - </widget> - </item> - <item row="0" column="1"> - <widget class="QLineEdit" name="customWidth"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>40</width> - <height>16777215</height> - </size> - </property> - <property name="focusPolicy"> - <enum>Qt::ClickFocus</enum> - </property> - <property name="acceptDrops"> - <bool>false</bool> - </property> - <property name="toolTip"> - <string><html><head/><body><p style='white-space:pre'>Resolution of target device.</p></body></html></string> - </property> - <property name="inputMask"> - <string>0000</string> - </property> - <property name="maxLength"> - <number>4</number> - </property> - </widget> - </item> - <item row="0" column="2"> - <widget class="QLabel" name="hLabel"> - <property name="toolTip"> - <string><html><head/><body><p style='white-space:pre'>Resolution of target device.</p></body></html></string> - </property> - <property name="text"> - <string>Custom height: </string> - </property> - </widget> - </item> - <item row="0" column="3"> - <widget class="QLineEdit" name="customHeight"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>40</width> - <height>16777215</height> - </size> - </property> - <property name="focusPolicy"> - <enum>Qt::ClickFocus</enum> - </property> - <property name="acceptDrops"> - <bool>false</bool> - </property> - <property name="toolTip"> - <string><html><head/><body><p style='white-space:pre'>Resolution of target device.</p></body></html></string> - </property> - <property name="inputMask"> - <string>0000</string> - </property> - <property name="maxLength"> - <number>4</number> - </property> - </widget> - </item> - </layout> - </widget> + <item> + <widget class="QLabel" name="wLabel"> + <property name="toolTip"> + <string><html><head/><body><p style='white-space:pre'>Resolution of target device.</p></body></html></string> + </property> + <property name="text"> + <string>Custom width: </string> + </property> + </widget> + </item> + <item> + <widget class="QLineEdit" name="customWidth"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="focusPolicy"> + <enum>Qt::ClickFocus</enum> + </property> + <property name="acceptDrops"> + <bool>false</bool> + </property> + <property name="toolTip"> + <string><html><head/><body><p style='white-space:pre'>Resolution of target device.</p></body></html></string> + </property> + <property name="inputMask"> + <string>0000</string> + </property> + <property name="maxLength"> + <number>4</number> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="hLabel"> + <property name="toolTip"> + <string><html><head/><body><p style='white-space:pre'>Resolution of target device.</p></body></html></string> + </property> + <property name="text"> + <string>Custom height: </string> + </property> + </widget> + </item> + <item> + <widget class="QLineEdit" name="customHeight"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="focusPolicy"> + <enum>Qt::ClickFocus</enum> + </property> + <property name="acceptDrops"> + <bool>false</bool> + </property> + <property name="toolTip"> + <string><html><head/><body><p style='white-space:pre'>Resolution of target device.</p></body></html></string> + </property> + <property name="inputMask"> + <string>0000</string> + </property> + <property name="maxLength"> + <number>4</number> + </property> + </widget> + </item> + </layout> </widget> <widget class="QPushButton" name="EditorButton"> <property name="geometry"> <rect> - <x>160</x> + <x>10</x> <y>10</y> - <width>91</width> + <width>200</width> <height>32</height> </rect> </property> @@ -678,20 +591,43 @@ <normaloff>:/Other/icons/editor.png</normaloff>:/Other/icons/editor.png</iconset> </property> </widget> - <zorder>OptionsAdvanced</zorder> + <widget class="QPushButton" name="WikiButton"> + <property name="geometry"> + <rect> + <x>211</x> + <y>10</y> + <width>200</width> + <height>32</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>9</pointsize> + </font> + </property> + <property name="focusPolicy"> + <enum>Qt::NoFocus</enum> + </property> + <property name="text"> + <string>Wiki</string> + </property> + <property name="icon"> + <iconset resource="KCC.qrc"> + <normaloff>:/Other/icons/wiki.png</normaloff>:/Other/icons/wiki.png</iconset> + </property> + </widget> <zorder>DeviceBox</zorder> <zorder>FormatBox</zorder> <zorder>ConvertButton</zorder> <zorder>DirectoryButton</zorder> <zorder>FileButton</zorder> <zorder>ClearButton</zorder> - <zorder>OptionsBasic</zorder> + <zorder>Options</zorder> <zorder>JobList</zorder> - <zorder>BasicModeButton</zorder> - <zorder>AdvModeButton</zorder> - <zorder>OptionsAdvancedGamma</zorder> - <zorder>OptionsExpert</zorder> + <zorder>OptionsGamma</zorder> + <zorder>OptionsCustom</zorder> <zorder>EditorButton</zorder> + <zorder>WikiButton</zorder> <zorder>ProgressBar</zorder> </widget> <widget class="QStatusBar" name="statusBar"> |