2012-12-25 20:51:46 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
# Form implementation generated from reading ui file 'ui/reader.ui'
|
|
|
|
#
|
2015-02-15 04:31:13 +00:00
|
|
|
# Created: Sun Feb 15 13:27:51 2015
|
2014-12-20 10:45:41 +00:00
|
|
|
# by: PyQt4 UI code generator 4.10.4
|
2012-12-25 20:51:46 +00:00
|
|
|
#
|
|
|
|
# WARNING! All changes made in this file will be lost!
|
|
|
|
|
|
|
|
from PyQt4 import QtCore, QtGui
|
|
|
|
|
|
|
|
try:
|
|
|
|
_fromUtf8 = QtCore.QString.fromUtf8
|
|
|
|
except AttributeError:
|
|
|
|
def _fromUtf8(s):
|
|
|
|
return s
|
|
|
|
|
|
|
|
try:
|
|
|
|
_encoding = QtGui.QApplication.UnicodeUTF8
|
|
|
|
def _translate(context, text, disambig):
|
|
|
|
return QtGui.QApplication.translate(context, text, disambig, _encoding)
|
|
|
|
except AttributeError:
|
|
|
|
def _translate(context, text, disambig):
|
|
|
|
return QtGui.QApplication.translate(context, text, disambig)
|
|
|
|
|
|
|
|
class Ui_MainWindowReader(object):
|
|
|
|
def setupUi(self, MainWindowReader):
|
|
|
|
MainWindowReader.setObjectName(_fromUtf8("MainWindowReader"))
|
|
|
|
MainWindowReader.resize(900, 650)
|
|
|
|
MainWindowReader.setAcceptDrops(True)
|
|
|
|
icon = QtGui.QIcon()
|
2012-12-25 21:10:24 +00:00
|
|
|
icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/img/img/icon_logo_32.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
2012-12-25 20:51:46 +00:00
|
|
|
MainWindowReader.setWindowIcon(icon)
|
|
|
|
self.centralwidget = QtGui.QWidget(MainWindowReader)
|
|
|
|
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
|
2013-11-10 18:15:11 +00:00
|
|
|
self.verticalLayout_4 = QtGui.QVBoxLayout(self.centralwidget)
|
|
|
|
self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
|
2012-12-25 20:51:46 +00:00
|
|
|
self.textContent = QtGui.QPlainTextEdit(self.centralwidget)
|
|
|
|
self.textContent.setMouseTracking(True)
|
|
|
|
self.textContent.setReadOnly(True)
|
|
|
|
self.textContent.setObjectName(_fromUtf8("textContent"))
|
2013-11-10 18:15:11 +00:00
|
|
|
self.verticalLayout_4.addWidget(self.textContent)
|
2012-12-25 20:51:46 +00:00
|
|
|
MainWindowReader.setCentralWidget(self.centralwidget)
|
|
|
|
self.menubar = QtGui.QMenuBar(MainWindowReader)
|
2014-12-20 10:45:41 +00:00
|
|
|
self.menubar.setGeometry(QtCore.QRect(0, 0, 900, 27))
|
2012-12-25 20:51:46 +00:00
|
|
|
self.menubar.setObjectName(_fromUtf8("menubar"))
|
|
|
|
self.menuFile = QtGui.QMenu(self.menubar)
|
|
|
|
self.menuFile.setObjectName(_fromUtf8("menuFile"))
|
|
|
|
self.menuOpenRecent = QtGui.QMenu(self.menuFile)
|
|
|
|
self.menuOpenRecent.setObjectName(_fromUtf8("menuOpenRecent"))
|
2014-12-24 08:04:57 +00:00
|
|
|
self.menuImport = QtGui.QMenu(self.menuFile)
|
|
|
|
self.menuImport.setObjectName(_fromUtf8("menuImport"))
|
2012-12-25 20:51:46 +00:00
|
|
|
self.menuEdit = QtGui.QMenu(self.menubar)
|
|
|
|
self.menuEdit.setObjectName(_fromUtf8("menuEdit"))
|
|
|
|
self.menuHelp = QtGui.QMenu(self.menubar)
|
|
|
|
self.menuHelp.setObjectName(_fromUtf8("menuHelp"))
|
|
|
|
self.menuView = QtGui.QMenu(self.menubar)
|
|
|
|
self.menuView.setObjectName(_fromUtf8("menuView"))
|
|
|
|
self.menuTextSize = QtGui.QMenu(self.menuView)
|
|
|
|
self.menuTextSize.setObjectName(_fromUtf8("menuTextSize"))
|
|
|
|
MainWindowReader.setMenuBar(self.menubar)
|
|
|
|
self.toolBar = QtGui.QToolBar(MainWindowReader)
|
|
|
|
self.toolBar.setIconSize(QtCore.QSize(16, 16))
|
|
|
|
self.toolBar.setObjectName(_fromUtf8("toolBar"))
|
|
|
|
MainWindowReader.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
|
2013-11-10 18:15:11 +00:00
|
|
|
self.dockVocab = QtGui.QDockWidget(MainWindowReader)
|
|
|
|
self.dockVocab.setObjectName(_fromUtf8("dockVocab"))
|
2012-12-25 20:51:46 +00:00
|
|
|
self.dockWidgetContents = QtGui.QWidget()
|
|
|
|
self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents"))
|
|
|
|
self.verticalLayout = QtGui.QVBoxLayout(self.dockWidgetContents)
|
|
|
|
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
|
2013-11-11 01:59:13 +00:00
|
|
|
self.textVocabDefs = QtGui.QTextBrowser(self.dockWidgetContents)
|
|
|
|
self.textVocabDefs.setAcceptDrops(False)
|
|
|
|
self.textVocabDefs.setOpenLinks(False)
|
|
|
|
self.textVocabDefs.setObjectName(_fromUtf8("textVocabDefs"))
|
|
|
|
self.verticalLayout.addWidget(self.textVocabDefs)
|
2012-12-25 20:51:46 +00:00
|
|
|
self.horizontalLayout_3 = QtGui.QHBoxLayout()
|
|
|
|
self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
|
|
|
|
self.label = QtGui.QLabel(self.dockWidgetContents)
|
|
|
|
self.label.setObjectName(_fromUtf8("label"))
|
|
|
|
self.horizontalLayout_3.addWidget(self.label)
|
2013-11-10 18:15:11 +00:00
|
|
|
self.textVocabSearch = QtGui.QLineEdit(self.dockWidgetContents)
|
|
|
|
self.textVocabSearch.setObjectName(_fromUtf8("textVocabSearch"))
|
|
|
|
self.horizontalLayout_3.addWidget(self.textVocabSearch)
|
2012-12-25 20:51:46 +00:00
|
|
|
self.verticalLayout.addLayout(self.horizontalLayout_3)
|
2013-11-10 18:15:11 +00:00
|
|
|
self.dockVocab.setWidget(self.dockWidgetContents)
|
|
|
|
MainWindowReader.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.dockVocab)
|
2012-12-25 20:51:46 +00:00
|
|
|
self.statusBar = QtGui.QStatusBar(MainWindowReader)
|
|
|
|
self.statusBar.setObjectName(_fromUtf8("statusBar"))
|
|
|
|
MainWindowReader.setStatusBar(self.statusBar)
|
|
|
|
self.dockAnki = QtGui.QDockWidget(MainWindowReader)
|
|
|
|
self.dockAnki.setObjectName(_fromUtf8("dockAnki"))
|
|
|
|
self.dockWidgetContents_2 = QtGui.QWidget()
|
|
|
|
self.dockWidgetContents_2.setObjectName(_fromUtf8("dockWidgetContents_2"))
|
|
|
|
self.verticalLayout_2 = QtGui.QVBoxLayout(self.dockWidgetContents_2)
|
|
|
|
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
|
|
|
|
self.listDefinitions = QtGui.QListWidget(self.dockWidgetContents_2)
|
|
|
|
self.listDefinitions.setObjectName(_fromUtf8("listDefinitions"))
|
|
|
|
self.verticalLayout_2.addWidget(self.listDefinitions)
|
|
|
|
self.horizontalLayout_2 = QtGui.QHBoxLayout()
|
|
|
|
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
|
|
|
|
self.label_3 = QtGui.QLabel(self.dockWidgetContents_2)
|
|
|
|
self.label_3.setObjectName(_fromUtf8("label_3"))
|
|
|
|
self.horizontalLayout_2.addWidget(self.label_3)
|
|
|
|
self.comboTags = QtGui.QComboBox(self.dockWidgetContents_2)
|
|
|
|
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
|
|
|
|
sizePolicy.setHorizontalStretch(0)
|
|
|
|
sizePolicy.setVerticalStretch(0)
|
|
|
|
sizePolicy.setHeightForWidth(self.comboTags.sizePolicy().hasHeightForWidth())
|
|
|
|
self.comboTags.setSizePolicy(sizePolicy)
|
|
|
|
self.comboTags.setEditable(True)
|
|
|
|
self.comboTags.setObjectName(_fromUtf8("comboTags"))
|
|
|
|
self.horizontalLayout_2.addWidget(self.comboTags)
|
|
|
|
self.verticalLayout_2.addLayout(self.horizontalLayout_2)
|
|
|
|
self.dockAnki.setWidget(self.dockWidgetContents_2)
|
|
|
|
MainWindowReader.addDockWidget(QtCore.Qt.DockWidgetArea(1), self.dockAnki)
|
2013-11-10 18:15:11 +00:00
|
|
|
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"))
|
2013-11-11 01:59:13 +00:00
|
|
|
self.textKanjiDefs = QtGui.QTextBrowser(self.dockWidgetContents_3)
|
2013-11-14 17:22:20 +00:00
|
|
|
self.textKanjiDefs.setAcceptDrops(False)
|
2013-11-14 16:36:26 +00:00
|
|
|
self.textKanjiDefs.setOpenLinks(False)
|
2013-11-11 01:59:13 +00:00
|
|
|
self.textKanjiDefs.setObjectName(_fromUtf8("textKanjiDefs"))
|
|
|
|
self.verticalLayout_3.addWidget(self.textKanjiDefs)
|
2013-11-10 18:15:11 +00:00
|
|
|
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)
|
2012-12-25 20:51:46 +00:00
|
|
|
self.actionOpen = QtGui.QAction(MainWindowReader)
|
|
|
|
icon1 = QtGui.QIcon()
|
2012-12-25 21:10:24 +00:00
|
|
|
icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/img/img/icon_action_open.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
2012-12-25 20:51:46 +00:00
|
|
|
self.actionOpen.setIcon(icon1)
|
|
|
|
self.actionOpen.setIconVisibleInMenu(True)
|
|
|
|
self.actionOpen.setObjectName(_fromUtf8("actionOpen"))
|
|
|
|
self.actionQuit = QtGui.QAction(MainWindowReader)
|
|
|
|
icon2 = QtGui.QIcon()
|
2012-12-25 21:10:24 +00:00
|
|
|
icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/img/img/icon_action_quit.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
2012-12-25 20:51:46 +00:00
|
|
|
self.actionQuit.setIcon(icon2)
|
|
|
|
self.actionQuit.setIconVisibleInMenu(True)
|
|
|
|
self.actionQuit.setObjectName(_fromUtf8("actionQuit"))
|
|
|
|
self.actionPreferences = QtGui.QAction(MainWindowReader)
|
|
|
|
icon3 = QtGui.QIcon()
|
2012-12-25 21:10:24 +00:00
|
|
|
icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/img/img/icon_action_preferences.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
2012-12-25 20:51:46 +00:00
|
|
|
self.actionPreferences.setIcon(icon3)
|
|
|
|
self.actionPreferences.setIconVisibleInMenu(True)
|
|
|
|
self.actionPreferences.setObjectName(_fromUtf8("actionPreferences"))
|
|
|
|
self.actionAbout = QtGui.QAction(MainWindowReader)
|
|
|
|
icon4 = QtGui.QIcon()
|
2012-12-25 21:10:24 +00:00
|
|
|
icon4.addPixmap(QtGui.QPixmap(_fromUtf8(":/img/img/icon_action_about.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
2012-12-25 20:51:46 +00:00
|
|
|
self.actionAbout.setIcon(icon4)
|
|
|
|
self.actionAbout.setIconVisibleInMenu(True)
|
|
|
|
self.actionAbout.setObjectName(_fromUtf8("actionAbout"))
|
|
|
|
self.actionZoomIn = QtGui.QAction(MainWindowReader)
|
|
|
|
icon5 = QtGui.QIcon()
|
2012-12-25 21:10:24 +00:00
|
|
|
icon5.addPixmap(QtGui.QPixmap(_fromUtf8(":/img/img/icon_action_zoom_in.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
2012-12-25 20:51:46 +00:00
|
|
|
self.actionZoomIn.setIcon(icon5)
|
|
|
|
self.actionZoomIn.setIconVisibleInMenu(True)
|
|
|
|
self.actionZoomIn.setObjectName(_fromUtf8("actionZoomIn"))
|
|
|
|
self.actionZoomOut = QtGui.QAction(MainWindowReader)
|
|
|
|
icon6 = QtGui.QIcon()
|
2012-12-25 21:10:24 +00:00
|
|
|
icon6.addPixmap(QtGui.QPixmap(_fromUtf8(":/img/img/icon_action_zoom_out.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
2012-12-25 20:51:46 +00:00
|
|
|
self.actionZoomOut.setIcon(icon6)
|
|
|
|
self.actionZoomOut.setIconVisibleInMenu(True)
|
|
|
|
self.actionZoomOut.setObjectName(_fromUtf8("actionZoomOut"))
|
|
|
|
self.actionZoomReset = QtGui.QAction(MainWindowReader)
|
|
|
|
icon7 = QtGui.QIcon()
|
2012-12-25 21:10:24 +00:00
|
|
|
icon7.addPixmap(QtGui.QPixmap(_fromUtf8(":/img/img/icon_action_zoom_reset.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
2012-12-25 20:51:46 +00:00
|
|
|
self.actionZoomReset.setIcon(icon7)
|
|
|
|
self.actionZoomReset.setIconVisibleInMenu(True)
|
|
|
|
self.actionZoomReset.setObjectName(_fromUtf8("actionZoomReset"))
|
|
|
|
self.actionFind = QtGui.QAction(MainWindowReader)
|
|
|
|
icon8 = QtGui.QIcon()
|
2012-12-25 21:10:24 +00:00
|
|
|
icon8.addPixmap(QtGui.QPixmap(_fromUtf8(":/img/img/icon_action_find.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
2012-12-25 20:51:46 +00:00
|
|
|
self.actionFind.setIcon(icon8)
|
|
|
|
self.actionFind.setIconVisibleInMenu(True)
|
|
|
|
self.actionFind.setObjectName(_fromUtf8("actionFind"))
|
|
|
|
self.actionFindNext = QtGui.QAction(MainWindowReader)
|
|
|
|
self.actionFindNext.setObjectName(_fromUtf8("actionFindNext"))
|
|
|
|
self.actionToggleWrap = QtGui.QAction(MainWindowReader)
|
|
|
|
self.actionToggleWrap.setCheckable(True)
|
|
|
|
self.actionToggleWrap.setChecked(True)
|
|
|
|
self.actionToggleWrap.setObjectName(_fromUtf8("actionToggleWrap"))
|
2013-11-10 18:21:25 +00:00
|
|
|
self.actionToggleVocab = QtGui.QAction(MainWindowReader)
|
|
|
|
self.actionToggleVocab.setCheckable(True)
|
|
|
|
self.actionToggleVocab.setObjectName(_fromUtf8("actionToggleVocab"))
|
2012-12-25 20:51:46 +00:00
|
|
|
self.actionHomepage = QtGui.QAction(MainWindowReader)
|
2013-11-11 01:59:13 +00:00
|
|
|
icon9 = QtGui.QIcon()
|
|
|
|
icon9.addPixmap(QtGui.QPixmap(_fromUtf8(":/img/img/icon_action_homepage.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
|
|
self.actionHomepage.setIcon(icon9)
|
2012-12-25 20:51:46 +00:00
|
|
|
self.actionHomepage.setIconVisibleInMenu(True)
|
|
|
|
self.actionHomepage.setObjectName(_fromUtf8("actionHomepage"))
|
|
|
|
self.actionToggleAnki = QtGui.QAction(MainWindowReader)
|
|
|
|
self.actionToggleAnki.setCheckable(True)
|
|
|
|
self.actionToggleAnki.setObjectName(_fromUtf8("actionToggleAnki"))
|
|
|
|
self.actionFeedback = QtGui.QAction(MainWindowReader)
|
2013-11-11 01:59:13 +00:00
|
|
|
icon10 = QtGui.QIcon()
|
|
|
|
icon10.addPixmap(QtGui.QPixmap(_fromUtf8(":/img/img/icon_action_feedback.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
|
|
self.actionFeedback.setIcon(icon10)
|
2012-12-25 20:51:46 +00:00
|
|
|
self.actionFeedback.setObjectName(_fromUtf8("actionFeedback"))
|
2013-11-10 18:15:11 +00:00
|
|
|
self.actionToggleKanji = QtGui.QAction(MainWindowReader)
|
|
|
|
self.actionToggleKanji.setCheckable(True)
|
|
|
|
self.actionToggleKanji.setObjectName(_fromUtf8("actionToggleKanji"))
|
2014-12-24 08:04:57 +00:00
|
|
|
self.actionKindleDeck = QtGui.QAction(MainWindowReader)
|
|
|
|
self.actionKindleDeck.setObjectName(_fromUtf8("actionKindleDeck"))
|
|
|
|
self.actionWordList = QtGui.QAction(MainWindowReader)
|
|
|
|
self.actionWordList.setObjectName(_fromUtf8("actionWordList"))
|
|
|
|
self.menuImport.addAction(self.actionKindleDeck)
|
|
|
|
self.menuImport.addAction(self.actionWordList)
|
2012-12-25 20:51:46 +00:00
|
|
|
self.menuFile.addAction(self.actionOpen)
|
|
|
|
self.menuFile.addAction(self.menuOpenRecent.menuAction())
|
|
|
|
self.menuFile.addSeparator()
|
2014-12-24 08:04:57 +00:00
|
|
|
self.menuFile.addAction(self.menuImport.menuAction())
|
2014-12-20 10:45:41 +00:00
|
|
|
self.menuFile.addSeparator()
|
2012-12-25 20:51:46 +00:00
|
|
|
self.menuFile.addAction(self.actionQuit)
|
|
|
|
self.menuEdit.addSeparator()
|
|
|
|
self.menuEdit.addAction(self.actionFind)
|
|
|
|
self.menuEdit.addAction(self.actionFindNext)
|
|
|
|
self.menuEdit.addSeparator()
|
|
|
|
self.menuEdit.addAction(self.actionPreferences)
|
|
|
|
self.menuHelp.addAction(self.actionHomepage)
|
|
|
|
self.menuHelp.addAction(self.actionFeedback)
|
|
|
|
self.menuHelp.addSeparator()
|
|
|
|
self.menuHelp.addAction(self.actionAbout)
|
|
|
|
self.menuTextSize.addAction(self.actionZoomIn)
|
|
|
|
self.menuTextSize.addAction(self.actionZoomOut)
|
|
|
|
self.menuTextSize.addSeparator()
|
|
|
|
self.menuTextSize.addAction(self.actionZoomReset)
|
|
|
|
self.menuView.addAction(self.menuTextSize.menuAction())
|
|
|
|
self.menuView.addSeparator()
|
|
|
|
self.menuView.addAction(self.actionToggleAnki)
|
2013-11-10 18:21:25 +00:00
|
|
|
self.menuView.addAction(self.actionToggleVocab)
|
2013-11-10 18:15:11 +00:00
|
|
|
self.menuView.addAction(self.actionToggleKanji)
|
2012-12-25 20:51:46 +00:00
|
|
|
self.menuView.addSeparator()
|
|
|
|
self.menuView.addAction(self.actionToggleWrap)
|
|
|
|
self.menubar.addAction(self.menuFile.menuAction())
|
|
|
|
self.menubar.addAction(self.menuEdit.menuAction())
|
|
|
|
self.menubar.addAction(self.menuView.menuAction())
|
|
|
|
self.menubar.addAction(self.menuHelp.menuAction())
|
|
|
|
self.toolBar.addAction(self.actionOpen)
|
|
|
|
self.toolBar.addSeparator()
|
|
|
|
self.toolBar.addAction(self.actionZoomIn)
|
|
|
|
self.toolBar.addAction(self.actionZoomOut)
|
|
|
|
self.toolBar.addAction(self.actionZoomReset)
|
|
|
|
self.toolBar.addSeparator()
|
|
|
|
self.toolBar.addAction(self.actionFind)
|
|
|
|
|
|
|
|
self.retranslateUi(MainWindowReader)
|
2013-11-10 18:21:25 +00:00
|
|
|
QtCore.QObject.connect(self.actionToggleVocab, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.dockVocab.setVisible)
|
2012-12-25 20:51:46 +00:00
|
|
|
QtCore.QObject.connect(self.actionQuit, QtCore.SIGNAL(_fromUtf8("triggered()")), MainWindowReader.close)
|
|
|
|
QtCore.QObject.connect(self.actionToggleAnki, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.dockAnki.setVisible)
|
2013-11-10 18:15:11 +00:00
|
|
|
QtCore.QObject.connect(self.actionToggleKanji, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.dockKanji.setVisible)
|
2012-12-25 20:51:46 +00:00
|
|
|
QtCore.QMetaObject.connectSlotsByName(MainWindowReader)
|
|
|
|
|
|
|
|
def retranslateUi(self, MainWindowReader):
|
|
|
|
MainWindowReader.setWindowTitle(_translate("MainWindowReader", "Yomichan", None))
|
2015-01-30 09:42:18 +00:00
|
|
|
self.textContent.setPlainText(_translate("MainWindowReader", "Paste text here or open a .txt file you want to read!", None))
|
2012-12-25 20:51:46 +00:00
|
|
|
self.menuFile.setTitle(_translate("MainWindowReader", "&File", None))
|
|
|
|
self.menuOpenRecent.setTitle(_translate("MainWindowReader", "Open &recent", None))
|
2014-12-24 08:04:57 +00:00
|
|
|
self.menuImport.setTitle(_translate("MainWindowReader", "&Import", None))
|
2012-12-25 20:51:46 +00:00
|
|
|
self.menuEdit.setTitle(_translate("MainWindowReader", "&Edit", None))
|
|
|
|
self.menuHelp.setTitle(_translate("MainWindowReader", "&Help", None))
|
|
|
|
self.menuView.setTitle(_translate("MainWindowReader", "&View", None))
|
|
|
|
self.menuTextSize.setTitle(_translate("MainWindowReader", "&Zoom", None))
|
|
|
|
self.toolBar.setWindowTitle(_translate("MainWindowReader", "toolBar", None))
|
2013-11-10 18:15:11 +00:00
|
|
|
self.dockVocab.setWindowTitle(_translate("MainWindowReader", "Vocabulary", None))
|
2013-11-16 19:21:35 +00:00
|
|
|
self.label.setText(_translate("MainWindowReader", "Expression", None))
|
2012-12-25 20:51:46 +00:00
|
|
|
self.dockAnki.setWindowTitle(_translate("MainWindowReader", "Anki", None))
|
|
|
|
self.label_3.setText(_translate("MainWindowReader", "Active tag(s)", None))
|
2013-11-10 18:15:11 +00:00
|
|
|
self.dockKanji.setWindowTitle(_translate("MainWindowReader", "Kanji", None))
|
2013-11-16 19:21:35 +00:00
|
|
|
self.label_2.setText(_translate("MainWindowReader", "Character", None))
|
2012-12-25 20:51:46 +00:00
|
|
|
self.actionOpen.setText(_translate("MainWindowReader", "&Open...", None))
|
|
|
|
self.actionOpen.setToolTip(_translate("MainWindowReader", "Open file", None))
|
|
|
|
self.actionOpen.setShortcut(_translate("MainWindowReader", "Ctrl+O", None))
|
|
|
|
self.actionQuit.setText(_translate("MainWindowReader", "&Quit", None))
|
|
|
|
self.actionQuit.setToolTip(_translate("MainWindowReader", "Quit Yomichan", None))
|
2013-02-05 03:15:10 +00:00
|
|
|
self.actionQuit.setShortcut(_translate("MainWindowReader", "Esc", None))
|
2012-12-25 20:51:46 +00:00
|
|
|
self.actionPreferences.setText(_translate("MainWindowReader", "&Preferences...", None))
|
|
|
|
self.actionPreferences.setToolTip(_translate("MainWindowReader", "Edit preferences", None))
|
|
|
|
self.actionAbout.setText(_translate("MainWindowReader", "&About...", None))
|
|
|
|
self.actionAbout.setToolTip(_translate("MainWindowReader", "About Yomichan", None))
|
|
|
|
self.actionAbout.setShortcut(_translate("MainWindowReader", "F1", None))
|
|
|
|
self.actionZoomIn.setText(_translate("MainWindowReader", "Zoom &in", None))
|
|
|
|
self.actionZoomIn.setShortcut(_translate("MainWindowReader", "Ctrl++", None))
|
|
|
|
self.actionZoomOut.setText(_translate("MainWindowReader", "Zoom &out", None))
|
|
|
|
self.actionZoomOut.setShortcut(_translate("MainWindowReader", "Ctrl+-", None))
|
|
|
|
self.actionZoomReset.setText(_translate("MainWindowReader", "&Reset", None))
|
|
|
|
self.actionZoomReset.setToolTip(_translate("MainWindowReader", "Reset zoom", None))
|
|
|
|
self.actionZoomReset.setShortcut(_translate("MainWindowReader", "Ctrl+0", None))
|
|
|
|
self.actionFind.setText(_translate("MainWindowReader", "&Find...", None))
|
|
|
|
self.actionFind.setToolTip(_translate("MainWindowReader", "Find text", None))
|
|
|
|
self.actionFind.setShortcut(_translate("MainWindowReader", "Ctrl+F", None))
|
|
|
|
self.actionFindNext.setText(_translate("MainWindowReader", "Find &next", None))
|
|
|
|
self.actionFindNext.setToolTip(_translate("MainWindowReader", "Find text again", None))
|
|
|
|
self.actionFindNext.setShortcut(_translate("MainWindowReader", "F3", None))
|
|
|
|
self.actionToggleWrap.setText(_translate("MainWindowReader", "&Word wrap", None))
|
|
|
|
self.actionToggleWrap.setToolTip(_translate("MainWindowReader", "Toggle word wrap", None))
|
2013-11-10 18:21:25 +00:00
|
|
|
self.actionToggleVocab.setText(_translate("MainWindowReader", "&Vocabulary", None))
|
|
|
|
self.actionToggleVocab.setToolTip(_translate("MainWindowReader", "Toggle definitions", None))
|
2012-12-25 20:51:46 +00:00
|
|
|
self.actionHomepage.setText(_translate("MainWindowReader", "&Homepage...", None))
|
|
|
|
self.actionHomepage.setToolTip(_translate("MainWindowReader", "Yomichan homepage", None))
|
|
|
|
self.actionToggleAnki.setText(_translate("MainWindowReader", "&Anki", None))
|
|
|
|
self.actionFeedback.setText(_translate("MainWindowReader", "&Feedback...", None))
|
2013-11-10 18:15:11 +00:00
|
|
|
self.actionToggleKanji.setText(_translate("MainWindowReader", "&Kanji", None))
|
2014-12-24 08:04:57 +00:00
|
|
|
self.actionKindleDeck.setText(_translate("MainWindowReader", "&Kindle deck...", None))
|
|
|
|
self.actionWordList.setText(_translate("MainWindowReader", "&Word list...", None))
|
2012-12-25 20:51:46 +00:00
|
|
|
|
2012-12-25 21:10:24 +00:00
|
|
|
import resources_rc
|