1

Updating UI for new features

Former-commit-id: 919f207ce9b501886e0b139e9c085ac447c3385a
This commit is contained in:
Alex Yatskov 2013-11-10 10:15:11 -08:00
parent 88a3b2e3a0
commit ae17b6554e
7 changed files with 445 additions and 529 deletions

View File

@ -6,16 +6,16 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>650</width> <width>500</width>
<height>400</height> <height>400</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>About</string> <string>About</string>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QVBoxLayout" name="verticalLayout_2">
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_2"> <layout class="QHBoxLayout" name="horizontalLayout">
<item> <item>
<widget class="QLabel" name="label"> <widget class="QLabel" name="label">
<property name="text"> <property name="text">
@ -27,14 +27,42 @@
</widget> </widget>
</item> </item>
<item> <item>
<spacer name="verticalSpacer"> <layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="labelVersion">
<property name="text">
<string>&lt;b&gt;Yomichan {0}&lt;/b&gt;</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>(c) 2013 by Alex Yatskov</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_4">
<property name="text">
<string>&lt;a href = &quot;http://foosoft.net/yomichan&quot;&gt;http://foosoft.net/yomichan&lt;/a&gt;</string>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation"> <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>20</width> <width>40</width>
<height>40</height> <height>20</height>
</size> </size>
</property> </property>
</spacer> </spacer>
@ -42,87 +70,64 @@
</layout> </layout>
</item> </item>
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout"> <widget class="Line" name="line">
<item> <property name="orientation">
<widget class="QLabel" name="labelVersion"> <enum>Qt::Horizontal</enum>
<property name="text"> </property>
<string>&lt;b&gt;Yomichan {0}&lt;/b&gt;</string> </widget>
</property> </item>
</widget> <item>
</item> <widget class="QLabel" name="label_6">
<item> <property name="text">
<widget class="QLabel" name="label_3"> <string>This software uses the &lt;a href = &quot;http://www.famfamfam.com/lab/icons/silk/&quot;&gt;Silk web icon set&lt;/a&gt; created by Mark James.</string>
<property name="text"> </property>
<string>(c) 2012 by Alex Yatskov</string> <property name="wordWrap">
</property> <bool>true</bool>
</widget> </property>
</item> <property name="openExternalLinks">
<item> <bool>true</bool>
<widget class="QLabel" name="label_4"> </property>
<property name="text"> </widget>
<string>&lt;a href = &quot;http://foosoft.net/yomichan&quot;&gt;http://foosoft.net/yomichan&lt;/a&gt;</string> </item>
</property> <item>
<property name="openExternalLinks"> <widget class="QLabel" name="label_7">
<bool>true</bool> <property name="text">
</property> <string>Portions of this application's code and data are based on the &lt;a href=&quot;http://www.polarcloud.com/rikaichan/&quot;&gt;Rikaichan&lt;/a&gt; extension developed by Jonathan Zarate.</string>
</widget> </property>
</item> <property name="wordWrap">
<item> <bool>true</bool>
<widget class="Line" name="line"> </property>
<property name="orientation"> <property name="openExternalLinks">
<enum>Qt::Horizontal</enum> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_6"> <widget class="QLabel" name="label_5">
<property name="text"> <property name="text">
<string>This software uses the &lt;a href = &quot;http://www.famfamfam.com/lab/icons/silk/&quot;&gt;Silk web icon set&lt;/a&gt; created by Mark James.</string> <string>This package uses the &lt;a href=&quot;http://www.csse.monash.edu.au/~jwb/edict.html&quot;&gt;EDICT&lt;/a&gt; and &lt;a href=&quot;http://www.csse.monash.edu.au/~jwb/kanjidic.html&quot;&gt;KANJIDIC&lt;/a&gt; dictionary files. These files are the property of the &lt;a href=&quot;http://www.edrdg.org/&quot;&gt; Electronic Dictionary Research and Development Group&lt;/a&gt;, and are used in conformance with the Group's &lt;a href=&quot;http://www.edrdg.org/edrdg/licence.html&quot;&gt;licence&lt;/a&gt;.</string>
</property> </property>
<property name="wordWrap"> <property name="wordWrap">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="openExternalLinks"> <property name="openExternalLinks">
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_7"> <widget class="QPlainTextEdit" name="plainTextEdit">
<property name="text"> <property name="horizontalScrollBarPolicy">
<string>Portions of this application's code and data are based on the &lt;a href=&quot;http://www.polarcloud.com/rikaichan/&quot;&gt;Rikaichan&lt;/a&gt; extension developed by Jonathan Zarate.</string> <enum>Qt::ScrollBarAlwaysOff</enum>
</property> </property>
<property name="wordWrap"> <property name="lineWrapMode">
<bool>true</bool> <enum>QPlainTextEdit::NoWrap</enum>
</property> </property>
<property name="openExternalLinks"> <property name="readOnly">
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> <property name="plainText">
</item> <string> GNU GENERAL PUBLIC LICENSE
<item>
<widget class="QLabel" name="label_5">
<property name="text">
<string>This package uses the &lt;a href=&quot;http://www.csse.monash.edu.au/~jwb/edict.html&quot;&gt;EDICT&lt;/a&gt; and &lt;a href=&quot;http://www.csse.monash.edu.au/~jwb/kanjidic.html&quot;&gt;KANJIDIC&lt;/a&gt; dictionary files. These files are the property of the &lt;a href=&quot;http://www.edrdg.org/&quot;&gt; Electronic Dictionary Research and Development Group&lt;/a&gt;, and are used in conformance with the Group's &lt;a href=&quot;http://www.edrdg.org/edrdg/licence.html&quot;&gt;licence&lt;/a&gt;.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPlainTextEdit" name="plainTextEdit">
<property name="lineWrapMode">
<enum>QPlainTextEdit::NoWrap</enum>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
<property name="plainText">
<string> GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007 Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. &lt;http://fsf.org/&gt; Copyright (C) 2007 Free Software Foundation, Inc. &lt;http://fsf.org/&gt;
@ -797,20 +802,18 @@ the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read Public License instead of this License. But first, please read
&lt;http://www.gnu.org/philosophy/why-not-lgpl.html&gt;. &lt;http://www.gnu.org/philosophy/why-not-lgpl.html&gt;.
</string> </string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QDialogButtonBox" name="buttonBox"> <widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="standardButtons"> <property name="standardButtons">
<set>QDialogButtonBox::Ok</set> <set>QDialogButtonBox::Ok</set>
</property> </property>
</widget> </widget>
</item>
</layout>
</item> </item>
</layout> </layout>
</widget> </widget>

View File

@ -23,40 +23,47 @@
<attribute name="title"> <attribute name="title">
<string>General</string> <string>General</string>
</attribute> </attribute>
<layout class="QVBoxLayout" name="verticalLayout_4"> <layout class="QFormLayout" name="formLayout_2">
<item> <item row="0" column="0" colspan="2">
<widget class="QCheckBox" name="checkGeneralRecentLoad"> <widget class="QCheckBox" name="checkLoadRecentFile">
<property name="text"> <property name="text">
<string>Load recent file on startup</string> <string>Load recent file on startup</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="1" column="0" colspan="2">
<widget class="QCheckBox" name="checkGeneralReadingsStrip"> <widget class="QCheckBox" name="checkStripReadings">
<property name="text"> <property name="text">
<string>Strip readings in from loaded files</string> <string>Strip readings from loaded files</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="2" column="0" colspan="2">
<widget class="QCheckBox" name="checkGeneralFindUpdates"> <widget class="QCheckBox" name="checkCheckForUpdates">
<property name="text"> <property name="text">
<string>Check for updates on startup</string> <string>Check for updates on startup</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="3" column="0">
<spacer name="verticalSpacer"> <widget class="QLabel" name="label_14">
<property name="orientation"> <property name="text">
<enum>Qt::Vertical</enum> <string>Maximum scan length</string>
</property> </property>
<property name="sizeHint" stdset="0"> </widget>
<size> </item>
<width>20</width> <item row="3" column="1">
<height>139</height> <widget class="QSpinBox" name="spinMaxScanLength">
</size> <property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
</spacer> <property name="minimum">
<number>1</number>
</property>
</widget>
</item> </item>
</layout> </layout>
</widget> </widget>
@ -68,10 +75,23 @@
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QHBoxLayout" name="horizontalLayout">
<item> <item>
<widget class="QFontComboBox" name="comboContentFontFamily"/> <widget class="QFontComboBox" name="comboFontFamily">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item> </item>
<item> <item>
<widget class="QSpinBox" name="spinContentFontSize"> <widget class="QSpinBox" name="spinFontSize">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimum"> <property name="minimum">
<number>1</number> <number>1</number>
</property> </property>
@ -84,14 +104,14 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="buttonContentColorFg"> <widget class="QPushButton" name="buttonColorFg">
<property name="text"> <property name="text">
<string>Foreground...</string> <string>Foreground...</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="buttonContentColorBg"> <widget class="QPushButton" name="buttonColorBg">
<property name="text"> <property name="text">
<string>Background...</string> <string>Background...</string>
</property> </property>
@ -100,7 +120,7 @@
</layout> </layout>
</item> </item>
<item> <item>
<widget class="QPlainTextEdit" name="textContentSample"> <widget class="QPlainTextEdit" name="textSample">
<property name="plainText"> <property name="plainText">
<string>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam accumsan nisi a leo faucibus ut varius velit fringilla. Cras hendrerit eleifend porttitor. Quisque eu elit quis tellus hendrerit ornare et ac tellus. Nunc id felis ut sapien blandit viverra vel ac est. Ut erat lorem, rutrum at scelerisque sollicitudin, lacinia quis diam. Suspendisse potenti. Integer id justo ac ligula aliquet mattis. Etiam malesuada faucibus risus, vel hendrerit elit consectetur quis. Etiam consectetur ipsum ut odio feugiat suscipit. Etiam a tellus metus. </string> <string>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam accumsan nisi a leo faucibus ut varius velit fringilla. Cras hendrerit eleifend porttitor. Quisque eu elit quis tellus hendrerit ornare et ac tellus. Nunc id felis ut sapien blandit viverra vel ac est. Ut erat lorem, rutrum at scelerisque sollicitudin, lacinia quis diam. Suspendisse potenti. Integer id justo ac ligula aliquet mattis. Etiam malesuada faucibus risus, vel hendrerit elit consectetur quis. Etiam consectetur ipsum ut odio feugiat suscipit. Etiam a tellus metus. </string>
</property> </property>
@ -108,72 +128,13 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="tabSearch">
<attribute name="title">
<string>Search</string>
</attribute>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<layout class="QFormLayout" name="formLayout">
<item row="0" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
<string>Maximum scan length</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="spinSearchScanMax">
<property name="minimum">
<number>1</number>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>Maximum result count</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QSpinBox" name="spinSearchResultMax">
<property name="minimum">
<number>1</number>
</property>
</widget>
</item>
<item row="2" column="0" colspan="2">
<widget class="QCheckBox" name="checkSearchGroupByExp">
<property name="text">
<string>Group results by expression</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>423</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<widget class="QWidget" name="tabAnki"> <widget class="QWidget" name="tabAnki">
<attribute name="title"> <attribute name="title">
<string>Anki</string> <string>Anki</string>
</attribute> </attribute>
<layout class="QVBoxLayout" name="verticalLayout_5"> <layout class="QVBoxLayout" name="verticalLayout_2">
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_4"> <layout class="QHBoxLayout" name="horizontalLayout_3">
<item> <item>
<widget class="QLabel" name="label_13"> <widget class="QLabel" name="label_13">
<property name="text"> <property name="text">
@ -182,7 +143,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QComboBox" name="comboBoxAnkiDeck"> <widget class="QComboBox" name="comboBoxDeck">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
@ -199,7 +160,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QComboBox" name="comboBoxAnkiModel"> <widget class="QComboBox" name="comboBoxModel">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
@ -213,138 +174,62 @@
<item> <item>
<widget class="QLabel" name="label_11"> <widget class="QLabel" name="label_11">
<property name="text"> <property name="text">
<string>Specify how your model fields are populated when adding facts</string> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Specify how your model fields are populated when adding facts.&lt;br /&gt;Allowed tags: &lt;strong&gt;{expression}&lt;/strong&gt;, &lt;strong&gt;{reading}&lt;/strong&gt;, &lt;strong&gt;{glossary}&lt;/strong&gt; and &lt;strong&gt;{sentence}&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_3"> <widget class="QTableWidget" name="tableFields">
<column>
<property name="text">
<string>Field</string>
</property>
</column>
<column>
<property name="text">
<string>Value</string>
</property>
</column>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item> <item>
<widget class="QTableWidget" name="tableAnkiFields"> <widget class="QLabel" name="label">
<column> <property name="text">
<property name="text"> <string>Show settings for</string>
<string>Field</string> </property>
</property>
</column>
<column>
<property name="text">
<string>Value</string>
</property>
</column>
</widget> </widget>
</item> </item>
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_2"> <widget class="QRadioButton" name="radioButtonSettingsVocab">
<item> <property name="text">
<layout class="QGridLayout" name="gridLayout"> <string>Vocabulary</string>
<item row="0" column="1"> </property>
<widget class="QLabel" name="label_7"> <property name="checked">
<property name="text"> <bool>true</bool>
<string>%e</string> </property>
</property> </widget>
</widget> </item>
</item> <item>
<item row="1" column="0"> <widget class="QRadioButton" name="radioButtonSettingsKanji">
<widget class="QLabel" name="label_2"> <property name="text">
<property name="font"> <string>Kanji</string>
<font> </property>
<weight>75</weight> </widget>
<bold>true</bold> </item>
</font> <item>
</property> <spacer name="horizontalSpacer">
<property name="text"> <property name="orientation">
<string>Reading</string> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="alignment"> <property name="sizeHint" stdset="0">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <size>
</property> <width>40</width>
</widget> <height>20</height>
</item> </size>
<item row="2" column="0"> </property>
<widget class="QLabel" name="label_3"> </spacer>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Glossary</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLabel" name="label_9">
<property name="text">
<string>%g</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_4">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Sentence</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLabel" name="label_10">
<property name="text">
<string>%s</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLabel" name="label_8">
<property name="text">
<string>%r</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Expression</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item> </item>
</layout> </layout>
</item> </item>

View File

@ -21,7 +21,7 @@
<normaloff>:/img/img/icon_logo_32.png</normaloff>:/img/img/icon_logo_32.png</iconset> <normaloff>:/img/img/icon_logo_32.png</normaloff>:/img/img/icon_logo_32.png</iconset>
</property> </property>
<widget class="QWidget" name="centralwidget"> <widget class="QWidget" name="centralwidget">
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QVBoxLayout" name="verticalLayout_4">
<item> <item>
<widget class="QPlainTextEdit" name="textContent"> <widget class="QPlainTextEdit" name="textContent">
<property name="mouseTracking"> <property name="mouseTracking">
@ -103,8 +103,9 @@
</widget> </widget>
<addaction name="menuTextSize"/> <addaction name="menuTextSize"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="actionToggleDefinitions"/>
<addaction name="actionToggleAnki"/> <addaction name="actionToggleAnki"/>
<addaction name="actionToggleVocabulary"/>
<addaction name="actionToggleKanji"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="actionToggleWrap"/> <addaction name="actionToggleWrap"/>
</widget> </widget>
@ -137,9 +138,9 @@
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="actionFind"/> <addaction name="actionFind"/>
</widget> </widget>
<widget class="QDockWidget" name="dockDefinitions"> <widget class="QDockWidget" name="dockVocab">
<property name="windowTitle"> <property name="windowTitle">
<string>Definitions</string> <string>Vocabulary</string>
</property> </property>
<attribute name="dockWidgetArea"> <attribute name="dockWidgetArea">
<number>2</number> <number>2</number>
@ -166,7 +167,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLineEdit" name="textDefinitionSearch"/> <widget class="QLineEdit" name="textVocabSearch"/>
</item> </item>
</layout> </layout>
</item> </item>
@ -213,6 +214,35 @@
</layout> </layout>
</widget> </widget>
</widget> </widget>
<widget class="QDockWidget" name="dockKanji">
<property name="windowTitle">
<string>Kanji</string>
</property>
<attribute name="dockWidgetArea">
<number>2</number>
</attribute>
<widget class="QWidget" name="dockWidgetContents_3">
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QTextBrowser" name="textBrowser"/>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>Search</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="textKanjiSearch"/>
</item>
</layout>
</item>
</layout>
</widget>
</widget>
<action name="actionOpen"> <action name="actionOpen">
<property name="icon"> <property name="icon">
<iconset resource="../../../../../mnt/izumi/projects/yomichan/ui/resources.qrc"> <iconset resource="../../../../../mnt/izumi/projects/yomichan/ui/resources.qrc">
@ -373,12 +403,12 @@
<string>Toggle word wrap</string> <string>Toggle word wrap</string>
</property> </property>
</action> </action>
<action name="actionToggleDefinitions"> <action name="actionToggleVocabulary">
<property name="checkable"> <property name="checkable">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="text"> <property name="text">
<string>&amp;Definitions</string> <string>&amp;Vocabulary</string>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>Toggle definitions</string> <string>Toggle definitions</string>
@ -444,15 +474,23 @@
<string>&amp;Feedback...</string> <string>&amp;Feedback...</string>
</property> </property>
</action> </action>
<action name="actionToggleKanji">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>&amp;Kanji</string>
</property>
</action>
</widget> </widget>
<resources> <resources>
<include location="../../../../../mnt/izumi/projects/yomichan/ui/resources.qrc"/> <include location="../../../../../mnt/izumi/projects/yomichan/ui/resources.qrc"/>
</resources> </resources>
<connections> <connections>
<connection> <connection>
<sender>actionToggleDefinitions</sender> <sender>actionToggleVocabulary</sender>
<signal>toggled(bool)</signal> <signal>toggled(bool)</signal>
<receiver>dockDefinitions</receiver> <receiver>dockVocab</receiver>
<slot>setVisible(bool)</slot> <slot>setVisible(bool)</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">
@ -497,5 +535,21 @@
</hint> </hint>
</hints> </hints>
</connection> </connection>
<connection>
<sender>actionToggleKanji</sender>
<signal>toggled(bool)</signal>
<receiver>dockKanji</receiver>
<slot>setVisible(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>786</x>
<y>591</y>
</hint>
<hint type="destinationlabel">
<x>762</x>
<y>479</y>
</hint>
</hints>
</connection>
</connections> </connections>
</ui> </ui>

View File

@ -2,8 +2,8 @@
# Form implementation generated from reading ui file 'ui/about.ui' # Form implementation generated from reading ui file 'ui/about.ui'
# #
# Created: Mon Feb 4 19:14:32 2013 # Created: Sun Nov 10 10:14:42 2013
# by: PyQt4 UI code generator 4.9.6 # by: PyQt4 UI code generator 4.10
# #
# WARNING! All changes made in this file will be lost! # WARNING! All changes made in this file will be lost!
@ -26,19 +26,16 @@ except AttributeError:
class Ui_DialogAbout(object): class Ui_DialogAbout(object):
def setupUi(self, DialogAbout): def setupUi(self, DialogAbout):
DialogAbout.setObjectName(_fromUtf8("DialogAbout")) DialogAbout.setObjectName(_fromUtf8("DialogAbout"))
DialogAbout.resize(650, 400) DialogAbout.resize(500, 400)
self.horizontalLayout = QtGui.QHBoxLayout(DialogAbout) self.verticalLayout_2 = QtGui.QVBoxLayout(DialogAbout)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.verticalLayout_2 = QtGui.QVBoxLayout()
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.label = QtGui.QLabel(DialogAbout) self.label = QtGui.QLabel(DialogAbout)
self.label.setText(_fromUtf8("")) self.label.setText(_fromUtf8(""))
self.label.setPixmap(QtGui.QPixmap(_fromUtf8(":/img/img/icon_logo_64.png"))) self.label.setPixmap(QtGui.QPixmap(_fromUtf8(":/img/img/icon_logo_64.png")))
self.label.setObjectName(_fromUtf8("label")) self.label.setObjectName(_fromUtf8("label"))
self.verticalLayout_2.addWidget(self.label) self.horizontalLayout.addWidget(self.label)
spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
self.verticalLayout_2.addItem(spacerItem)
self.horizontalLayout.addLayout(self.verticalLayout_2)
self.verticalLayout = QtGui.QVBoxLayout() self.verticalLayout = QtGui.QVBoxLayout()
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.labelVersion = QtGui.QLabel(DialogAbout) self.labelVersion = QtGui.QLabel(DialogAbout)
@ -51,37 +48,41 @@ class Ui_DialogAbout(object):
self.label_4.setOpenExternalLinks(True) self.label_4.setOpenExternalLinks(True)
self.label_4.setObjectName(_fromUtf8("label_4")) self.label_4.setObjectName(_fromUtf8("label_4"))
self.verticalLayout.addWidget(self.label_4) self.verticalLayout.addWidget(self.label_4)
self.horizontalLayout.addLayout(self.verticalLayout)
spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.verticalLayout_2.addLayout(self.horizontalLayout)
self.line = QtGui.QFrame(DialogAbout) self.line = QtGui.QFrame(DialogAbout)
self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShape(QtGui.QFrame.HLine)
self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setFrameShadow(QtGui.QFrame.Sunken)
self.line.setObjectName(_fromUtf8("line")) self.line.setObjectName(_fromUtf8("line"))
self.verticalLayout.addWidget(self.line) self.verticalLayout_2.addWidget(self.line)
self.label_6 = QtGui.QLabel(DialogAbout) self.label_6 = QtGui.QLabel(DialogAbout)
self.label_6.setWordWrap(True) self.label_6.setWordWrap(True)
self.label_6.setOpenExternalLinks(True) self.label_6.setOpenExternalLinks(True)
self.label_6.setObjectName(_fromUtf8("label_6")) self.label_6.setObjectName(_fromUtf8("label_6"))
self.verticalLayout.addWidget(self.label_6) self.verticalLayout_2.addWidget(self.label_6)
self.label_7 = QtGui.QLabel(DialogAbout) self.label_7 = QtGui.QLabel(DialogAbout)
self.label_7.setWordWrap(True) self.label_7.setWordWrap(True)
self.label_7.setOpenExternalLinks(True) self.label_7.setOpenExternalLinks(True)
self.label_7.setObjectName(_fromUtf8("label_7")) self.label_7.setObjectName(_fromUtf8("label_7"))
self.verticalLayout.addWidget(self.label_7) self.verticalLayout_2.addWidget(self.label_7)
self.label_5 = QtGui.QLabel(DialogAbout) self.label_5 = QtGui.QLabel(DialogAbout)
self.label_5.setWordWrap(True) self.label_5.setWordWrap(True)
self.label_5.setOpenExternalLinks(True) self.label_5.setOpenExternalLinks(True)
self.label_5.setObjectName(_fromUtf8("label_5")) self.label_5.setObjectName(_fromUtf8("label_5"))
self.verticalLayout.addWidget(self.label_5) self.verticalLayout_2.addWidget(self.label_5)
self.plainTextEdit = QtGui.QPlainTextEdit(DialogAbout) self.plainTextEdit = QtGui.QPlainTextEdit(DialogAbout)
self.plainTextEdit.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.plainTextEdit.setLineWrapMode(QtGui.QPlainTextEdit.NoWrap) self.plainTextEdit.setLineWrapMode(QtGui.QPlainTextEdit.NoWrap)
self.plainTextEdit.setReadOnly(True) self.plainTextEdit.setReadOnly(True)
self.plainTextEdit.setObjectName(_fromUtf8("plainTextEdit")) self.plainTextEdit.setObjectName(_fromUtf8("plainTextEdit"))
self.verticalLayout.addWidget(self.plainTextEdit) self.verticalLayout_2.addWidget(self.plainTextEdit)
self.buttonBox = QtGui.QDialogButtonBox(DialogAbout) self.buttonBox = QtGui.QDialogButtonBox(DialogAbout)
self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Ok) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Ok)
self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
self.verticalLayout.addWidget(self.buttonBox) self.verticalLayout_2.addWidget(self.buttonBox)
self.horizontalLayout.addLayout(self.verticalLayout)
self.retranslateUi(DialogAbout) self.retranslateUi(DialogAbout)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), DialogAbout.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), DialogAbout.accept)
@ -91,7 +92,7 @@ class Ui_DialogAbout(object):
def retranslateUi(self, DialogAbout): def retranslateUi(self, DialogAbout):
DialogAbout.setWindowTitle(_translate("DialogAbout", "About", None)) DialogAbout.setWindowTitle(_translate("DialogAbout", "About", None))
self.labelVersion.setText(_translate("DialogAbout", "<b>Yomichan {0}</b>", None)) self.labelVersion.setText(_translate("DialogAbout", "<b>Yomichan {0}</b>", None))
self.label_3.setText(_translate("DialogAbout", "(c) 2012 by Alex Yatskov", None)) self.label_3.setText(_translate("DialogAbout", "(c) 2013 by Alex Yatskov", None))
self.label_4.setText(_translate("DialogAbout", "<a href = \"http://foosoft.net/yomichan\">http://foosoft.net/yomichan</a>", None)) self.label_4.setText(_translate("DialogAbout", "<a href = \"http://foosoft.net/yomichan\">http://foosoft.net/yomichan</a>", None))
self.label_6.setText(_translate("DialogAbout", "This software uses the <a href = \"http://www.famfamfam.com/lab/icons/silk/\">Silk web icon set</a> created by Mark James.", None)) self.label_6.setText(_translate("DialogAbout", "This software uses the <a href = \"http://www.famfamfam.com/lab/icons/silk/\">Silk web icon set</a> created by Mark James.", None))
self.label_7.setText(_translate("DialogAbout", "Portions of this application\'s code and data are based on the <a href=\"http://www.polarcloud.com/rikaichan/\">Rikaichan</a> extension developed by Jonathan Zarate.", None)) self.label_7.setText(_translate("DialogAbout", "Portions of this application\'s code and data are based on the <a href=\"http://www.polarcloud.com/rikaichan/\">Rikaichan</a> extension developed by Jonathan Zarate.", None))

View File

@ -2,8 +2,8 @@
# Form implementation generated from reading ui file 'ui/preferences.ui' # Form implementation generated from reading ui file 'ui/preferences.ui'
# #
# Created: Mon Feb 4 19:14:33 2013 # Created: Sun Nov 10 10:14:42 2013
# by: PyQt4 UI code generator 4.9.6 # by: PyQt4 UI code generator 4.10
# #
# WARNING! All changes made in this file will be lost! # WARNING! All changes made in this file will be lost!
@ -33,19 +33,29 @@ class Ui_DialogPreferences(object):
self.tabWidget.setObjectName(_fromUtf8("tabWidget")) self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
self.tabGeneral = QtGui.QWidget() self.tabGeneral = QtGui.QWidget()
self.tabGeneral.setObjectName(_fromUtf8("tabGeneral")) self.tabGeneral.setObjectName(_fromUtf8("tabGeneral"))
self.verticalLayout_4 = QtGui.QVBoxLayout(self.tabGeneral) self.formLayout_2 = QtGui.QFormLayout(self.tabGeneral)
self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.formLayout_2.setObjectName(_fromUtf8("formLayout_2"))
self.checkGeneralRecentLoad = QtGui.QCheckBox(self.tabGeneral) self.checkLoadRecentFile = QtGui.QCheckBox(self.tabGeneral)
self.checkGeneralRecentLoad.setObjectName(_fromUtf8("checkGeneralRecentLoad")) self.checkLoadRecentFile.setObjectName(_fromUtf8("checkLoadRecentFile"))
self.verticalLayout_4.addWidget(self.checkGeneralRecentLoad) self.formLayout_2.setWidget(0, QtGui.QFormLayout.SpanningRole, self.checkLoadRecentFile)
self.checkGeneralReadingsStrip = QtGui.QCheckBox(self.tabGeneral) self.checkStripReadings = QtGui.QCheckBox(self.tabGeneral)
self.checkGeneralReadingsStrip.setObjectName(_fromUtf8("checkGeneralReadingsStrip")) self.checkStripReadings.setObjectName(_fromUtf8("checkStripReadings"))
self.verticalLayout_4.addWidget(self.checkGeneralReadingsStrip) self.formLayout_2.setWidget(1, QtGui.QFormLayout.SpanningRole, self.checkStripReadings)
self.checkGeneralFindUpdates = QtGui.QCheckBox(self.tabGeneral) self.checkCheckForUpdates = QtGui.QCheckBox(self.tabGeneral)
self.checkGeneralFindUpdates.setObjectName(_fromUtf8("checkGeneralFindUpdates")) self.checkCheckForUpdates.setObjectName(_fromUtf8("checkCheckForUpdates"))
self.verticalLayout_4.addWidget(self.checkGeneralFindUpdates) self.formLayout_2.setWidget(2, QtGui.QFormLayout.SpanningRole, self.checkCheckForUpdates)
spacerItem = QtGui.QSpacerItem(20, 139, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.label_14 = QtGui.QLabel(self.tabGeneral)
self.verticalLayout_4.addItem(spacerItem) self.label_14.setObjectName(_fromUtf8("label_14"))
self.formLayout_2.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_14)
self.spinMaxScanLength = QtGui.QSpinBox(self.tabGeneral)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.spinMaxScanLength.sizePolicy().hasHeightForWidth())
self.spinMaxScanLength.setSizePolicy(sizePolicy)
self.spinMaxScanLength.setMinimum(1)
self.spinMaxScanLength.setObjectName(_fromUtf8("spinMaxScanLength"))
self.formLayout_2.setWidget(3, QtGui.QFormLayout.FieldRole, self.spinMaxScanLength)
self.tabWidget.addTab(self.tabGeneral, _fromUtf8("")) self.tabWidget.addTab(self.tabGeneral, _fromUtf8(""))
self.tabAppearance = QtGui.QWidget() self.tabAppearance = QtGui.QWidget()
self.tabAppearance.setObjectName(_fromUtf8("tabAppearance")) self.tabAppearance.setObjectName(_fromUtf8("tabAppearance"))
@ -53,149 +63,92 @@ class Ui_DialogPreferences(object):
self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.comboContentFontFamily = QtGui.QFontComboBox(self.tabAppearance) self.comboFontFamily = QtGui.QFontComboBox(self.tabAppearance)
self.comboContentFontFamily.setObjectName(_fromUtf8("comboContentFontFamily")) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
self.horizontalLayout.addWidget(self.comboContentFontFamily) sizePolicy.setHorizontalStretch(0)
self.spinContentFontSize = QtGui.QSpinBox(self.tabAppearance) sizePolicy.setVerticalStretch(0)
self.spinContentFontSize.setMinimum(1) sizePolicy.setHeightForWidth(self.comboFontFamily.sizePolicy().hasHeightForWidth())
self.spinContentFontSize.setMaximum(72) self.comboFontFamily.setSizePolicy(sizePolicy)
self.spinContentFontSize.setProperty("value", 12) self.comboFontFamily.setObjectName(_fromUtf8("comboFontFamily"))
self.spinContentFontSize.setObjectName(_fromUtf8("spinContentFontSize")) self.horizontalLayout.addWidget(self.comboFontFamily)
self.horizontalLayout.addWidget(self.spinContentFontSize) self.spinFontSize = QtGui.QSpinBox(self.tabAppearance)
self.buttonContentColorFg = QtGui.QPushButton(self.tabAppearance) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
self.buttonContentColorFg.setObjectName(_fromUtf8("buttonContentColorFg")) sizePolicy.setHorizontalStretch(0)
self.horizontalLayout.addWidget(self.buttonContentColorFg) sizePolicy.setVerticalStretch(0)
self.buttonContentColorBg = QtGui.QPushButton(self.tabAppearance) sizePolicy.setHeightForWidth(self.spinFontSize.sizePolicy().hasHeightForWidth())
self.buttonContentColorBg.setObjectName(_fromUtf8("buttonContentColorBg")) self.spinFontSize.setSizePolicy(sizePolicy)
self.horizontalLayout.addWidget(self.buttonContentColorBg) self.spinFontSize.setMinimum(1)
self.spinFontSize.setMaximum(72)
self.spinFontSize.setProperty("value", 12)
self.spinFontSize.setObjectName(_fromUtf8("spinFontSize"))
self.horizontalLayout.addWidget(self.spinFontSize)
self.buttonColorFg = QtGui.QPushButton(self.tabAppearance)
self.buttonColorFg.setObjectName(_fromUtf8("buttonColorFg"))
self.horizontalLayout.addWidget(self.buttonColorFg)
self.buttonColorBg = QtGui.QPushButton(self.tabAppearance)
self.buttonColorBg.setObjectName(_fromUtf8("buttonColorBg"))
self.horizontalLayout.addWidget(self.buttonColorBg)
self.verticalLayout_3.addLayout(self.horizontalLayout) self.verticalLayout_3.addLayout(self.horizontalLayout)
self.textContentSample = QtGui.QPlainTextEdit(self.tabAppearance) self.textSample = QtGui.QPlainTextEdit(self.tabAppearance)
self.textContentSample.setObjectName(_fromUtf8("textContentSample")) self.textSample.setObjectName(_fromUtf8("textSample"))
self.verticalLayout_3.addWidget(self.textContentSample) self.verticalLayout_3.addWidget(self.textSample)
self.tabWidget.addTab(self.tabAppearance, _fromUtf8("")) self.tabWidget.addTab(self.tabAppearance, _fromUtf8(""))
self.tabSearch = QtGui.QWidget()
self.tabSearch.setObjectName(_fromUtf8("tabSearch"))
self.horizontalLayout_2 = QtGui.QHBoxLayout(self.tabSearch)
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.formLayout = QtGui.QFormLayout()
self.formLayout.setObjectName(_fromUtf8("formLayout"))
self.label_5 = QtGui.QLabel(self.tabSearch)
self.label_5.setObjectName(_fromUtf8("label_5"))
self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_5)
self.spinSearchScanMax = QtGui.QSpinBox(self.tabSearch)
self.spinSearchScanMax.setMinimum(1)
self.spinSearchScanMax.setObjectName(_fromUtf8("spinSearchScanMax"))
self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.spinSearchScanMax)
self.label_6 = QtGui.QLabel(self.tabSearch)
self.label_6.setObjectName(_fromUtf8("label_6"))
self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_6)
self.spinSearchResultMax = QtGui.QSpinBox(self.tabSearch)
self.spinSearchResultMax.setMinimum(1)
self.spinSearchResultMax.setObjectName(_fromUtf8("spinSearchResultMax"))
self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.spinSearchResultMax)
self.checkSearchGroupByExp = QtGui.QCheckBox(self.tabSearch)
self.checkSearchGroupByExp.setObjectName(_fromUtf8("checkSearchGroupByExp"))
self.formLayout.setWidget(2, QtGui.QFormLayout.SpanningRole, self.checkSearchGroupByExp)
self.horizontalLayout_2.addLayout(self.formLayout)
spacerItem1 = QtGui.QSpacerItem(423, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem1)
self.tabWidget.addTab(self.tabSearch, _fromUtf8(""))
self.tabAnki = QtGui.QWidget() self.tabAnki = QtGui.QWidget()
self.tabAnki.setObjectName(_fromUtf8("tabAnki")) self.tabAnki.setObjectName(_fromUtf8("tabAnki"))
self.verticalLayout_5 = QtGui.QVBoxLayout(self.tabAnki) self.verticalLayout_2 = QtGui.QVBoxLayout(self.tabAnki)
self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5")) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.horizontalLayout_4 = QtGui.QHBoxLayout()
self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
self.label_13 = QtGui.QLabel(self.tabAnki)
self.label_13.setObjectName(_fromUtf8("label_13"))
self.horizontalLayout_4.addWidget(self.label_13)
self.comboBoxAnkiDeck = QtGui.QComboBox(self.tabAnki)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.comboBoxAnkiDeck.sizePolicy().hasHeightForWidth())
self.comboBoxAnkiDeck.setSizePolicy(sizePolicy)
self.comboBoxAnkiDeck.setObjectName(_fromUtf8("comboBoxAnkiDeck"))
self.horizontalLayout_4.addWidget(self.comboBoxAnkiDeck)
self.label_12 = QtGui.QLabel(self.tabAnki)
self.label_12.setObjectName(_fromUtf8("label_12"))
self.horizontalLayout_4.addWidget(self.label_12)
self.comboBoxAnkiModel = QtGui.QComboBox(self.tabAnki)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.comboBoxAnkiModel.sizePolicy().hasHeightForWidth())
self.comboBoxAnkiModel.setSizePolicy(sizePolicy)
self.comboBoxAnkiModel.setObjectName(_fromUtf8("comboBoxAnkiModel"))
self.horizontalLayout_4.addWidget(self.comboBoxAnkiModel)
self.verticalLayout_5.addLayout(self.horizontalLayout_4)
self.label_11 = QtGui.QLabel(self.tabAnki)
self.label_11.setObjectName(_fromUtf8("label_11"))
self.verticalLayout_5.addWidget(self.label_11)
self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3 = QtGui.QHBoxLayout()
self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
self.tableAnkiFields = QtGui.QTableWidget(self.tabAnki) self.label_13 = QtGui.QLabel(self.tabAnki)
self.tableAnkiFields.setObjectName(_fromUtf8("tableAnkiFields")) self.label_13.setObjectName(_fromUtf8("label_13"))
self.tableAnkiFields.setColumnCount(2) self.horizontalLayout_3.addWidget(self.label_13)
self.tableAnkiFields.setRowCount(0) self.comboBoxDeck = QtGui.QComboBox(self.tabAnki)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.comboBoxDeck.sizePolicy().hasHeightForWidth())
self.comboBoxDeck.setSizePolicy(sizePolicy)
self.comboBoxDeck.setObjectName(_fromUtf8("comboBoxDeck"))
self.horizontalLayout_3.addWidget(self.comboBoxDeck)
self.label_12 = QtGui.QLabel(self.tabAnki)
self.label_12.setObjectName(_fromUtf8("label_12"))
self.horizontalLayout_3.addWidget(self.label_12)
self.comboBoxModel = QtGui.QComboBox(self.tabAnki)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.comboBoxModel.sizePolicy().hasHeightForWidth())
self.comboBoxModel.setSizePolicy(sizePolicy)
self.comboBoxModel.setObjectName(_fromUtf8("comboBoxModel"))
self.horizontalLayout_3.addWidget(self.comboBoxModel)
self.verticalLayout_2.addLayout(self.horizontalLayout_3)
self.label_11 = QtGui.QLabel(self.tabAnki)
self.label_11.setObjectName(_fromUtf8("label_11"))
self.verticalLayout_2.addWidget(self.label_11)
self.tableFields = QtGui.QTableWidget(self.tabAnki)
self.tableFields.setObjectName(_fromUtf8("tableFields"))
self.tableFields.setColumnCount(2)
self.tableFields.setRowCount(0)
item = QtGui.QTableWidgetItem() item = QtGui.QTableWidgetItem()
self.tableAnkiFields.setHorizontalHeaderItem(0, item) self.tableFields.setHorizontalHeaderItem(0, item)
item = QtGui.QTableWidgetItem() item = QtGui.QTableWidgetItem()
self.tableAnkiFields.setHorizontalHeaderItem(1, item) self.tableFields.setHorizontalHeaderItem(1, item)
self.horizontalLayout_3.addWidget(self.tableAnkiFields) self.verticalLayout_2.addWidget(self.tableFields)
self.verticalLayout_2 = QtGui.QVBoxLayout() self.horizontalLayout_2 = QtGui.QHBoxLayout()
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.gridLayout = QtGui.QGridLayout()
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.label_7 = QtGui.QLabel(self.tabAnki)
self.label_7.setObjectName(_fromUtf8("label_7"))
self.gridLayout.addWidget(self.label_7, 0, 1, 1, 1)
self.label_2 = QtGui.QLabel(self.tabAnki)
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.label_2.setFont(font)
self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
self.label_3 = QtGui.QLabel(self.tabAnki)
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.label_3.setFont(font)
self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_3.setObjectName(_fromUtf8("label_3"))
self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
self.label_9 = QtGui.QLabel(self.tabAnki)
self.label_9.setObjectName(_fromUtf8("label_9"))
self.gridLayout.addWidget(self.label_9, 2, 1, 1, 1)
self.label_4 = QtGui.QLabel(self.tabAnki)
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.label_4.setFont(font)
self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_4.setObjectName(_fromUtf8("label_4"))
self.gridLayout.addWidget(self.label_4, 3, 0, 1, 1)
self.label_10 = QtGui.QLabel(self.tabAnki)
self.label_10.setObjectName(_fromUtf8("label_10"))
self.gridLayout.addWidget(self.label_10, 3, 1, 1, 1)
self.label_8 = QtGui.QLabel(self.tabAnki)
self.label_8.setObjectName(_fromUtf8("label_8"))
self.gridLayout.addWidget(self.label_8, 1, 1, 1, 1)
self.label = QtGui.QLabel(self.tabAnki) self.label = QtGui.QLabel(self.tabAnki)
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.label.setFont(font)
self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label.setObjectName(_fromUtf8("label")) self.label.setObjectName(_fromUtf8("label"))
self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.horizontalLayout_2.addWidget(self.label)
self.verticalLayout_2.addLayout(self.gridLayout) self.radioButtonSettingsVocab = QtGui.QRadioButton(self.tabAnki)
spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.radioButtonSettingsVocab.setChecked(True)
self.verticalLayout_2.addItem(spacerItem2) self.radioButtonSettingsVocab.setObjectName(_fromUtf8("radioButtonSettingsVocab"))
self.horizontalLayout_3.addLayout(self.verticalLayout_2) self.horizontalLayout_2.addWidget(self.radioButtonSettingsVocab)
self.verticalLayout_5.addLayout(self.horizontalLayout_3) self.radioButtonSettingsKanji = QtGui.QRadioButton(self.tabAnki)
self.radioButtonSettingsKanji.setObjectName(_fromUtf8("radioButtonSettingsKanji"))
self.horizontalLayout_2.addWidget(self.radioButtonSettingsKanji)
spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem)
self.verticalLayout_2.addLayout(self.horizontalLayout_2)
self.tabWidget.addTab(self.tabAnki, _fromUtf8("")) self.tabWidget.addTab(self.tabAnki, _fromUtf8(""))
self.verticalLayout.addWidget(self.tabWidget) self.verticalLayout.addWidget(self.tabWidget)
self.buttonBox = QtGui.QDialogButtonBox(DialogPreferences) self.buttonBox = QtGui.QDialogButtonBox(DialogPreferences)
@ -212,33 +165,25 @@ class Ui_DialogPreferences(object):
def retranslateUi(self, DialogPreferences): def retranslateUi(self, DialogPreferences):
DialogPreferences.setWindowTitle(_translate("DialogPreferences", "Preferences", None)) DialogPreferences.setWindowTitle(_translate("DialogPreferences", "Preferences", None))
self.checkGeneralRecentLoad.setText(_translate("DialogPreferences", "Load recent file on startup", None)) self.checkLoadRecentFile.setText(_translate("DialogPreferences", "Load recent file on startup", None))
self.checkGeneralReadingsStrip.setText(_translate("DialogPreferences", "Strip readings in from loaded files", None)) self.checkStripReadings.setText(_translate("DialogPreferences", "Strip readings from loaded files", None))
self.checkGeneralFindUpdates.setText(_translate("DialogPreferences", "Check for updates on startup", None)) self.checkCheckForUpdates.setText(_translate("DialogPreferences", "Check for updates on startup", None))
self.label_14.setText(_translate("DialogPreferences", "Maximum scan length", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabGeneral), _translate("DialogPreferences", "General", None)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabGeneral), _translate("DialogPreferences", "General", None))
self.buttonContentColorFg.setText(_translate("DialogPreferences", "Foreground...", None)) self.buttonColorFg.setText(_translate("DialogPreferences", "Foreground...", None))
self.buttonContentColorBg.setText(_translate("DialogPreferences", "Background...", None)) self.buttonColorBg.setText(_translate("DialogPreferences", "Background...", None))
self.textContentSample.setPlainText(_translate("DialogPreferences", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam accumsan nisi a leo faucibus ut varius velit fringilla. Cras hendrerit eleifend porttitor. Quisque eu elit quis tellus hendrerit ornare et ac tellus. Nunc id felis ut sapien blandit viverra vel ac est. Ut erat lorem, rutrum at scelerisque sollicitudin, lacinia quis diam. Suspendisse potenti. Integer id justo ac ligula aliquet mattis. Etiam malesuada faucibus risus, vel hendrerit elit consectetur quis. Etiam consectetur ipsum ut odio feugiat suscipit. Etiam a tellus metus. ", None)) self.textSample.setPlainText(_translate("DialogPreferences", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam accumsan nisi a leo faucibus ut varius velit fringilla. Cras hendrerit eleifend porttitor. Quisque eu elit quis tellus hendrerit ornare et ac tellus. Nunc id felis ut sapien blandit viverra vel ac est. Ut erat lorem, rutrum at scelerisque sollicitudin, lacinia quis diam. Suspendisse potenti. Integer id justo ac ligula aliquet mattis. Etiam malesuada faucibus risus, vel hendrerit elit consectetur quis. Etiam consectetur ipsum ut odio feugiat suscipit. Etiam a tellus metus. ", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabAppearance), _translate("DialogPreferences", "Appearance", None)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabAppearance), _translate("DialogPreferences", "Appearance", None))
self.label_5.setText(_translate("DialogPreferences", "Maximum scan length", None))
self.label_6.setText(_translate("DialogPreferences", "Maximum result count", None))
self.checkSearchGroupByExp.setText(_translate("DialogPreferences", "Group results by expression", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabSearch), _translate("DialogPreferences", "Search", None))
self.label_13.setText(_translate("DialogPreferences", "Deck", None)) self.label_13.setText(_translate("DialogPreferences", "Deck", None))
self.label_12.setText(_translate("DialogPreferences", "Model", None)) self.label_12.setText(_translate("DialogPreferences", "Model", None))
self.label_11.setText(_translate("DialogPreferences", "Specify how your model fields are populated when adding facts", None)) self.label_11.setText(_translate("DialogPreferences", "<html><head/><body><p>Specify how your model fields are populated when adding facts.<br />Allowed tags: <strong>{expression}</strong>, <strong>{reading}</strong>, <strong>{glossary}</strong> and <strong>{sentence}</p></body></html>", None))
item = self.tableAnkiFields.horizontalHeaderItem(0) item = self.tableFields.horizontalHeaderItem(0)
item.setText(_translate("DialogPreferences", "Field", None)) item.setText(_translate("DialogPreferences", "Field", None))
item = self.tableAnkiFields.horizontalHeaderItem(1) item = self.tableFields.horizontalHeaderItem(1)
item.setText(_translate("DialogPreferences", "Value", None)) item.setText(_translate("DialogPreferences", "Value", None))
self.label_7.setText(_translate("DialogPreferences", "%e", None)) self.label.setText(_translate("DialogPreferences", "Show settings for", None))
self.label_2.setText(_translate("DialogPreferences", "Reading", None)) self.radioButtonSettingsVocab.setText(_translate("DialogPreferences", "Vocabulary", None))
self.label_3.setText(_translate("DialogPreferences", "Glossary", None)) self.radioButtonSettingsKanji.setText(_translate("DialogPreferences", "Kanji", None))
self.label_9.setText(_translate("DialogPreferences", "%g", None))
self.label_4.setText(_translate("DialogPreferences", "Sentence", None))
self.label_10.setText(_translate("DialogPreferences", "%s", None))
self.label_8.setText(_translate("DialogPreferences", "%r", None))
self.label.setText(_translate("DialogPreferences", "Expression", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabAnki), _translate("DialogPreferences", "Anki", None)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabAnki), _translate("DialogPreferences", "Anki", None))
import resources_rc import resources_rc

View File

@ -2,8 +2,8 @@
# Form implementation generated from reading ui file 'ui/reader.ui' # Form implementation generated from reading ui file 'ui/reader.ui'
# #
# Created: Mon Feb 4 19:14:33 2013 # Created: Sun Nov 10 10:14:42 2013
# by: PyQt4 UI code generator 4.9.6 # by: PyQt4 UI code generator 4.10
# #
# WARNING! All changes made in this file will be lost! # WARNING! All changes made in this file will be lost!
@ -33,13 +33,13 @@ class Ui_MainWindowReader(object):
MainWindowReader.setWindowIcon(icon) MainWindowReader.setWindowIcon(icon)
self.centralwidget = QtGui.QWidget(MainWindowReader) self.centralwidget = QtGui.QWidget(MainWindowReader)
self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.horizontalLayout = QtGui.QHBoxLayout(self.centralwidget) self.verticalLayout_4 = QtGui.QVBoxLayout(self.centralwidget)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
self.textContent = QtGui.QPlainTextEdit(self.centralwidget) self.textContent = QtGui.QPlainTextEdit(self.centralwidget)
self.textContent.setMouseTracking(True) self.textContent.setMouseTracking(True)
self.textContent.setReadOnly(True) self.textContent.setReadOnly(True)
self.textContent.setObjectName(_fromUtf8("textContent")) self.textContent.setObjectName(_fromUtf8("textContent"))
self.horizontalLayout.addWidget(self.textContent) self.verticalLayout_4.addWidget(self.textContent)
MainWindowReader.setCentralWidget(self.centralwidget) MainWindowReader.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindowReader) self.menubar = QtGui.QMenuBar(MainWindowReader)
self.menubar.setGeometry(QtCore.QRect(0, 0, 900, 25)) self.menubar.setGeometry(QtCore.QRect(0, 0, 900, 25))
@ -64,8 +64,8 @@ class Ui_MainWindowReader(object):
self.toolBar.setIconSize(QtCore.QSize(16, 16)) self.toolBar.setIconSize(QtCore.QSize(16, 16))
self.toolBar.setObjectName(_fromUtf8("toolBar")) self.toolBar.setObjectName(_fromUtf8("toolBar"))
MainWindowReader.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar) MainWindowReader.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
self.dockDefinitions = QtGui.QDockWidget(MainWindowReader) self.dockVocab = QtGui.QDockWidget(MainWindowReader)
self.dockDefinitions.setObjectName(_fromUtf8("dockDefinitions")) self.dockVocab.setObjectName(_fromUtf8("dockVocab"))
self.dockWidgetContents = QtGui.QWidget() self.dockWidgetContents = QtGui.QWidget()
self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents")) self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents"))
self.verticalLayout = QtGui.QVBoxLayout(self.dockWidgetContents) self.verticalLayout = QtGui.QVBoxLayout(self.dockWidgetContents)
@ -80,12 +80,12 @@ class Ui_MainWindowReader(object):
self.label = QtGui.QLabel(self.dockWidgetContents) self.label = QtGui.QLabel(self.dockWidgetContents)
self.label.setObjectName(_fromUtf8("label")) self.label.setObjectName(_fromUtf8("label"))
self.horizontalLayout_3.addWidget(self.label) self.horizontalLayout_3.addWidget(self.label)
self.textDefinitionSearch = QtGui.QLineEdit(self.dockWidgetContents) self.textVocabSearch = QtGui.QLineEdit(self.dockWidgetContents)
self.textDefinitionSearch.setObjectName(_fromUtf8("textDefinitionSearch")) self.textVocabSearch.setObjectName(_fromUtf8("textVocabSearch"))
self.horizontalLayout_3.addWidget(self.textDefinitionSearch) self.horizontalLayout_3.addWidget(self.textVocabSearch)
self.verticalLayout.addLayout(self.horizontalLayout_3) self.verticalLayout.addLayout(self.horizontalLayout_3)
self.dockDefinitions.setWidget(self.dockWidgetContents) self.dockVocab.setWidget(self.dockWidgetContents)
MainWindowReader.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.dockDefinitions) MainWindowReader.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.dockVocab)
self.statusBar = QtGui.QStatusBar(MainWindowReader) self.statusBar = QtGui.QStatusBar(MainWindowReader)
self.statusBar.setObjectName(_fromUtf8("statusBar")) self.statusBar.setObjectName(_fromUtf8("statusBar"))
MainWindowReader.setStatusBar(self.statusBar) MainWindowReader.setStatusBar(self.statusBar)
@ -115,6 +115,26 @@ class Ui_MainWindowReader(object):
self.verticalLayout_2.addLayout(self.horizontalLayout_2) self.verticalLayout_2.addLayout(self.horizontalLayout_2)
self.dockAnki.setWidget(self.dockWidgetContents_2) self.dockAnki.setWidget(self.dockWidgetContents_2)
MainWindowReader.addDockWidget(QtCore.Qt.DockWidgetArea(1), self.dockAnki) MainWindowReader.addDockWidget(QtCore.Qt.DockWidgetArea(1), self.dockAnki)
self.dockKanji = QtGui.QDockWidget(MainWindowReader)
self.dockKanji.setObjectName(_fromUtf8("dockKanji"))
self.dockWidgetContents_3 = QtGui.QWidget()
self.dockWidgetContents_3.setObjectName(_fromUtf8("dockWidgetContents_3"))
self.verticalLayout_3 = QtGui.QVBoxLayout(self.dockWidgetContents_3)
self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
self.textBrowser = QtGui.QTextBrowser(self.dockWidgetContents_3)
self.textBrowser.setObjectName(_fromUtf8("textBrowser"))
self.verticalLayout_3.addWidget(self.textBrowser)
self.horizontalLayout_4 = QtGui.QHBoxLayout()
self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
self.label_2 = QtGui.QLabel(self.dockWidgetContents_3)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.horizontalLayout_4.addWidget(self.label_2)
self.textKanjiSearch = QtGui.QLineEdit(self.dockWidgetContents_3)
self.textKanjiSearch.setObjectName(_fromUtf8("textKanjiSearch"))
self.horizontalLayout_4.addWidget(self.textKanjiSearch)
self.verticalLayout_3.addLayout(self.horizontalLayout_4)
self.dockKanji.setWidget(self.dockWidgetContents_3)
MainWindowReader.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.dockKanji)
self.actionOpen = QtGui.QAction(MainWindowReader) self.actionOpen = QtGui.QAction(MainWindowReader)
icon1 = QtGui.QIcon() icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/img/img/icon_action_open.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/img/img/icon_action_open.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
@ -169,9 +189,9 @@ class Ui_MainWindowReader(object):
self.actionToggleWrap.setCheckable(True) self.actionToggleWrap.setCheckable(True)
self.actionToggleWrap.setChecked(True) self.actionToggleWrap.setChecked(True)
self.actionToggleWrap.setObjectName(_fromUtf8("actionToggleWrap")) self.actionToggleWrap.setObjectName(_fromUtf8("actionToggleWrap"))
self.actionToggleDefinitions = QtGui.QAction(MainWindowReader) self.actionToggleVocabulary = QtGui.QAction(MainWindowReader)
self.actionToggleDefinitions.setCheckable(True) self.actionToggleVocabulary.setCheckable(True)
self.actionToggleDefinitions.setObjectName(_fromUtf8("actionToggleDefinitions")) self.actionToggleVocabulary.setObjectName(_fromUtf8("actionToggleVocabulary"))
self.actionCopyDefinition = QtGui.QAction(MainWindowReader) self.actionCopyDefinition = QtGui.QAction(MainWindowReader)
icon9 = QtGui.QIcon() icon9 = QtGui.QIcon()
icon9.addPixmap(QtGui.QPixmap(_fromUtf8(":/img/img/icon_copy_definition.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) icon9.addPixmap(QtGui.QPixmap(_fromUtf8(":/img/img/icon_copy_definition.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
@ -196,6 +216,9 @@ class Ui_MainWindowReader(object):
icon11.addPixmap(QtGui.QPixmap(_fromUtf8(":/img/img/icon_action_feedback.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) icon11.addPixmap(QtGui.QPixmap(_fromUtf8(":/img/img/icon_action_feedback.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actionFeedback.setIcon(icon11) self.actionFeedback.setIcon(icon11)
self.actionFeedback.setObjectName(_fromUtf8("actionFeedback")) self.actionFeedback.setObjectName(_fromUtf8("actionFeedback"))
self.actionToggleKanji = QtGui.QAction(MainWindowReader)
self.actionToggleKanji.setCheckable(True)
self.actionToggleKanji.setObjectName(_fromUtf8("actionToggleKanji"))
self.menuFile.addAction(self.actionOpen) self.menuFile.addAction(self.actionOpen)
self.menuFile.addAction(self.menuOpenArchive.menuAction()) self.menuFile.addAction(self.menuOpenArchive.menuAction())
self.menuFile.addAction(self.menuOpenRecent.menuAction()) self.menuFile.addAction(self.menuOpenRecent.menuAction())
@ -219,8 +242,9 @@ class Ui_MainWindowReader(object):
self.menuTextSize.addAction(self.actionZoomReset) self.menuTextSize.addAction(self.actionZoomReset)
self.menuView.addAction(self.menuTextSize.menuAction()) self.menuView.addAction(self.menuTextSize.menuAction())
self.menuView.addSeparator() self.menuView.addSeparator()
self.menuView.addAction(self.actionToggleDefinitions)
self.menuView.addAction(self.actionToggleAnki) self.menuView.addAction(self.actionToggleAnki)
self.menuView.addAction(self.actionToggleVocabulary)
self.menuView.addAction(self.actionToggleKanji)
self.menuView.addSeparator() self.menuView.addSeparator()
self.menuView.addAction(self.actionToggleWrap) self.menuView.addAction(self.actionToggleWrap)
self.menubar.addAction(self.menuFile.menuAction()) self.menubar.addAction(self.menuFile.menuAction())
@ -236,9 +260,10 @@ class Ui_MainWindowReader(object):
self.toolBar.addAction(self.actionFind) self.toolBar.addAction(self.actionFind)
self.retranslateUi(MainWindowReader) self.retranslateUi(MainWindowReader)
QtCore.QObject.connect(self.actionToggleDefinitions, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.dockDefinitions.setVisible) QtCore.QObject.connect(self.actionToggleVocabulary, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.dockVocab.setVisible)
QtCore.QObject.connect(self.actionQuit, QtCore.SIGNAL(_fromUtf8("triggered()")), MainWindowReader.close) QtCore.QObject.connect(self.actionQuit, QtCore.SIGNAL(_fromUtf8("triggered()")), MainWindowReader.close)
QtCore.QObject.connect(self.actionToggleAnki, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.dockAnki.setVisible) QtCore.QObject.connect(self.actionToggleAnki, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.dockAnki.setVisible)
QtCore.QObject.connect(self.actionToggleKanji, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.dockKanji.setVisible)
QtCore.QMetaObject.connectSlotsByName(MainWindowReader) QtCore.QMetaObject.connectSlotsByName(MainWindowReader)
def retranslateUi(self, MainWindowReader): def retranslateUi(self, MainWindowReader):
@ -251,10 +276,12 @@ class Ui_MainWindowReader(object):
self.menuView.setTitle(_translate("MainWindowReader", "&View", None)) self.menuView.setTitle(_translate("MainWindowReader", "&View", None))
self.menuTextSize.setTitle(_translate("MainWindowReader", "&Zoom", None)) self.menuTextSize.setTitle(_translate("MainWindowReader", "&Zoom", None))
self.toolBar.setWindowTitle(_translate("MainWindowReader", "toolBar", None)) self.toolBar.setWindowTitle(_translate("MainWindowReader", "toolBar", None))
self.dockDefinitions.setWindowTitle(_translate("MainWindowReader", "Definitions", None)) self.dockVocab.setWindowTitle(_translate("MainWindowReader", "Vocabulary", None))
self.label.setText(_translate("MainWindowReader", "Search", None)) self.label.setText(_translate("MainWindowReader", "Search", None))
self.dockAnki.setWindowTitle(_translate("MainWindowReader", "Anki", None)) self.dockAnki.setWindowTitle(_translate("MainWindowReader", "Anki", None))
self.label_3.setText(_translate("MainWindowReader", "Active tag(s)", None)) self.label_3.setText(_translate("MainWindowReader", "Active tag(s)", None))
self.dockKanji.setWindowTitle(_translate("MainWindowReader", "Kanji", None))
self.label_2.setText(_translate("MainWindowReader", "Search", None))
self.actionOpen.setText(_translate("MainWindowReader", "&Open...", None)) self.actionOpen.setText(_translate("MainWindowReader", "&Open...", None))
self.actionOpen.setToolTip(_translate("MainWindowReader", "Open file", None)) self.actionOpen.setToolTip(_translate("MainWindowReader", "Open file", None))
self.actionOpen.setShortcut(_translate("MainWindowReader", "Ctrl+O", None)) self.actionOpen.setShortcut(_translate("MainWindowReader", "Ctrl+O", None))
@ -281,8 +308,8 @@ class Ui_MainWindowReader(object):
self.actionFindNext.setShortcut(_translate("MainWindowReader", "F3", None)) self.actionFindNext.setShortcut(_translate("MainWindowReader", "F3", None))
self.actionToggleWrap.setText(_translate("MainWindowReader", "&Word wrap", None)) self.actionToggleWrap.setText(_translate("MainWindowReader", "&Word wrap", None))
self.actionToggleWrap.setToolTip(_translate("MainWindowReader", "Toggle word wrap", None)) self.actionToggleWrap.setToolTip(_translate("MainWindowReader", "Toggle word wrap", None))
self.actionToggleDefinitions.setText(_translate("MainWindowReader", "&Definitions", None)) self.actionToggleVocabulary.setText(_translate("MainWindowReader", "&Vocabulary", None))
self.actionToggleDefinitions.setToolTip(_translate("MainWindowReader", "Toggle definitions", None)) self.actionToggleVocabulary.setToolTip(_translate("MainWindowReader", "Toggle definitions", None))
self.actionCopyDefinition.setText(_translate("MainWindowReader", "Copy &definition", None)) self.actionCopyDefinition.setText(_translate("MainWindowReader", "Copy &definition", None))
self.actionCopyDefinition.setShortcut(_translate("MainWindowReader", "Ctrl+D", None)) self.actionCopyDefinition.setShortcut(_translate("MainWindowReader", "Ctrl+D", None))
self.actionCopyAllDefinitions.setText(_translate("MainWindowReader", "Copy &all definitions", None)) self.actionCopyAllDefinitions.setText(_translate("MainWindowReader", "Copy &all definitions", None))
@ -292,5 +319,6 @@ class Ui_MainWindowReader(object):
self.actionCopySentence.setText(_translate("MainWindowReader", "Copy sen&tence", None)) self.actionCopySentence.setText(_translate("MainWindowReader", "Copy sen&tence", None))
self.actionCopySentence.setShortcut(_translate("MainWindowReader", "Ctrl+T", None)) self.actionCopySentence.setShortcut(_translate("MainWindowReader", "Ctrl+T", None))
self.actionFeedback.setText(_translate("MainWindowReader", "&Feedback...", None)) self.actionFeedback.setText(_translate("MainWindowReader", "&Feedback...", None))
self.actionToggleKanji.setText(_translate("MainWindowReader", "&Kanji", None))
import resources_rc import resources_rc

View File

@ -2,7 +2,7 @@
# Resource object code # Resource object code
# #
# Created: Mon Feb 4 19:14:33 2013 # Created: Sun Nov 10 10:14:42 2013
# by: The Resource Compiler for PyQt (Qt v4.8.4) # by: The Resource Compiler for PyQt (Qt v4.8.4)
# #
# WARNING! All changes made in this file will be lost! # WARNING! All changes made in this file will be lost!