initial drop
0
__init__.py
Normal file
0
core/__init__.py
Normal file
30
core/about.py
Normal file
@ -0,0 +1,30 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2011 Alex Yatskov
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
from PyQt4 import QtGui
|
||||
from about_ui import Ui_DialogAbout
|
||||
from constants import constants
|
||||
|
||||
|
||||
class DialogAbout(QtGui.QDialog, Ui_DialogAbout):
|
||||
def __init__(self, parent):
|
||||
QtGui.QDialog.__init__(self, parent)
|
||||
self.setupUi(self)
|
||||
|
||||
text = unicode(self.labelVersion.text())
|
||||
text = text.format(constants['version'])
|
||||
self.labelVersion.setText(text)
|
766
core/about_ui.py
Normal file
@ -0,0 +1,766 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Form implementation generated from reading ui file 'dev/about.ui'
|
||||
#
|
||||
# Created: Sun Feb 20 12:12:38 2011
|
||||
# by: PyQt4 UI code generator 4.8.3
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
||||
from PyQt4 import QtCore, QtGui
|
||||
|
||||
try:
|
||||
_fromUtf8 = QtCore.QString.fromUtf8
|
||||
except AttributeError:
|
||||
_fromUtf8 = lambda s: s
|
||||
|
||||
class Ui_DialogAbout(object):
|
||||
def setupUi(self, DialogAbout):
|
||||
DialogAbout.setObjectName(_fromUtf8("DialogAbout"))
|
||||
DialogAbout.resize(600, 400)
|
||||
self.horizontalLayout = QtGui.QHBoxLayout(DialogAbout)
|
||||
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
|
||||
self.verticalLayout_2 = QtGui.QVBoxLayout()
|
||||
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
|
||||
self.label = QtGui.QLabel(DialogAbout)
|
||||
self.label.setText(_fromUtf8(""))
|
||||
self.label.setPixmap(QtGui.QPixmap(_fromUtf8(":/logos/logos/logo64x64.png")))
|
||||
self.label.setObjectName(_fromUtf8("label"))
|
||||
self.verticalLayout_2.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.setObjectName(_fromUtf8("verticalLayout"))
|
||||
self.labelVersion = QtGui.QLabel(DialogAbout)
|
||||
self.labelVersion.setObjectName(_fromUtf8("labelVersion"))
|
||||
self.verticalLayout.addWidget(self.labelVersion)
|
||||
self.label_3 = QtGui.QLabel(DialogAbout)
|
||||
self.label_3.setObjectName(_fromUtf8("label_3"))
|
||||
self.verticalLayout.addWidget(self.label_3)
|
||||
self.label_4 = QtGui.QLabel(DialogAbout)
|
||||
self.label_4.setOpenExternalLinks(True)
|
||||
self.label_4.setObjectName(_fromUtf8("label_4"))
|
||||
self.verticalLayout.addWidget(self.label_4)
|
||||
self.line = QtGui.QFrame(DialogAbout)
|
||||
self.line.setFrameShape(QtGui.QFrame.HLine)
|
||||
self.line.setFrameShadow(QtGui.QFrame.Sunken)
|
||||
self.line.setObjectName(_fromUtf8("line"))
|
||||
self.verticalLayout.addWidget(self.line)
|
||||
self.label_6 = QtGui.QLabel(DialogAbout)
|
||||
self.label_6.setWordWrap(True)
|
||||
self.label_6.setOpenExternalLinks(True)
|
||||
self.label_6.setObjectName(_fromUtf8("label_6"))
|
||||
self.verticalLayout.addWidget(self.label_6)
|
||||
self.label_7 = QtGui.QLabel(DialogAbout)
|
||||
self.label_7.setWordWrap(True)
|
||||
self.label_7.setOpenExternalLinks(True)
|
||||
self.label_7.setObjectName(_fromUtf8("label_7"))
|
||||
self.verticalLayout.addWidget(self.label_7)
|
||||
self.label_5 = QtGui.QLabel(DialogAbout)
|
||||
self.label_5.setWordWrap(True)
|
||||
self.label_5.setOpenExternalLinks(True)
|
||||
self.label_5.setObjectName(_fromUtf8("label_5"))
|
||||
self.verticalLayout.addWidget(self.label_5)
|
||||
self.plainTextEdit = QtGui.QPlainTextEdit(DialogAbout)
|
||||
self.plainTextEdit.setLineWrapMode(QtGui.QPlainTextEdit.NoWrap)
|
||||
self.plainTextEdit.setReadOnly(True)
|
||||
self.plainTextEdit.setObjectName(_fromUtf8("plainTextEdit"))
|
||||
self.verticalLayout.addWidget(self.plainTextEdit)
|
||||
self.buttonBox = QtGui.QDialogButtonBox(DialogAbout)
|
||||
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
|
||||
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Ok)
|
||||
self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
|
||||
self.verticalLayout.addWidget(self.buttonBox)
|
||||
self.horizontalLayout.addLayout(self.verticalLayout)
|
||||
|
||||
self.retranslateUi(DialogAbout)
|
||||
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), DialogAbout.accept)
|
||||
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), DialogAbout.reject)
|
||||
QtCore.QMetaObject.connectSlotsByName(DialogAbout)
|
||||
|
||||
def retranslateUi(self, DialogAbout):
|
||||
DialogAbout.setWindowTitle(QtGui.QApplication.translate("DialogAbout", "About", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.labelVersion.setText(QtGui.QApplication.translate("DialogAbout", "<b>Yomichan {0}</b>", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.label_3.setText(QtGui.QApplication.translate("DialogAbout", "(c) 2011 by Alex Yatskov", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.label_4.setText(QtGui.QApplication.translate("DialogAbout", "<a href = \"http://foosoft.net/yomichan\">http://foosoft.net/yomichan</a>", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.label_6.setText(QtGui.QApplication.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, QtGui.QApplication.UnicodeUTF8))
|
||||
self.label_7.setText(QtGui.QApplication.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, QtGui.QApplication.UnicodeUTF8))
|
||||
self.label_5.setText(QtGui.QApplication.translate("DialogAbout", "This package uses the <a href=\"http://www.csse.monash.edu.au/~jwb/edict.html\">EDICT</a> and <a href=\"http://www.csse.monash.edu.au/~jwb/kanjidic.html\">KANJIDIC</a> dictionary files. These files are the property of the <a href=\"http://www.edrdg.org/\"> Electronic Dictionary Research and Development Group</a>, and are used in conformance with the Group\'s <a href=\"http://www.edrdg.org/edrdg/licence.html\">licence</a>.", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.plainTextEdit.setPlainText(QtGui.QApplication.translate("DialogAbout", " GNU GENERAL PUBLIC LICENSE\n"
|
||||
" Version 3, 29 June 2007\n"
|
||||
"\n"
|
||||
" Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>\n"
|
||||
" Everyone is permitted to copy and distribute verbatim copies\n"
|
||||
" of this license document, but changing it is not allowed.\n"
|
||||
"\n"
|
||||
" Preamble\n"
|
||||
"\n"
|
||||
" The GNU General Public License is a free, copyleft license for\n"
|
||||
"software and other kinds of works.\n"
|
||||
"\n"
|
||||
" The licenses for most software and other practical works are designed\n"
|
||||
"to take away your freedom to share and change the works. By contrast,\n"
|
||||
"the GNU General Public License is intended to guarantee your freedom to\n"
|
||||
"share and change all versions of a program--to make sure it remains free\n"
|
||||
"software for all its users. We, the Free Software Foundation, use the\n"
|
||||
"GNU General Public License for most of our software; it applies also to\n"
|
||||
"any other work released this way by its authors. You can apply it to\n"
|
||||
"your programs, too.\n"
|
||||
"\n"
|
||||
" When we speak of free software, we are referring to freedom, not\n"
|
||||
"price. Our General Public Licenses are designed to make sure that you\n"
|
||||
"have the freedom to distribute copies of free software (and charge for\n"
|
||||
"them if you wish), that you receive source code or can get it if you\n"
|
||||
"want it, that you can change the software or use pieces of it in new\n"
|
||||
"free programs, and that you know you can do these things.\n"
|
||||
"\n"
|
||||
" To protect your rights, we need to prevent others from denying you\n"
|
||||
"these rights or asking you to surrender the rights. Therefore, you have\n"
|
||||
"certain responsibilities if you distribute copies of the software, or if\n"
|
||||
"you modify it: responsibilities to respect the freedom of others.\n"
|
||||
"\n"
|
||||
" For example, if you distribute copies of such a program, whether\n"
|
||||
"gratis or for a fee, you must pass on to the recipients the same\n"
|
||||
"freedoms that you received. You must make sure that they, too, receive\n"
|
||||
"or can get the source code. And you must show them these terms so they\n"
|
||||
"know their rights.\n"
|
||||
"\n"
|
||||
" Developers that use the GNU GPL protect your rights with two steps:\n"
|
||||
"(1) assert copyright on the software, and (2) offer you this License\n"
|
||||
"giving you legal permission to copy, distribute and/or modify it.\n"
|
||||
"\n"
|
||||
" For the developers\' and authors\' protection, the GPL clearly explains\n"
|
||||
"that there is no warranty for this free software. For both users\' and\n"
|
||||
"authors\' sake, the GPL requires that modified versions be marked as\n"
|
||||
"changed, so that their problems will not be attributed erroneously to\n"
|
||||
"authors of previous versions.\n"
|
||||
"\n"
|
||||
" Some devices are designed to deny users access to install or run\n"
|
||||
"modified versions of the software inside them, although the manufacturer\n"
|
||||
"can do so. This is fundamentally incompatible with the aim of\n"
|
||||
"protecting users\' freedom to change the software. The systematic\n"
|
||||
"pattern of such abuse occurs in the area of products for individuals to\n"
|
||||
"use, which is precisely where it is most unacceptable. Therefore, we\n"
|
||||
"have designed this version of the GPL to prohibit the practice for those\n"
|
||||
"products. If such problems arise substantially in other domains, we\n"
|
||||
"stand ready to extend this provision to those domains in future versions\n"
|
||||
"of the GPL, as needed to protect the freedom of users.\n"
|
||||
"\n"
|
||||
" Finally, every program is threatened constantly by software patents.\n"
|
||||
"States should not allow patents to restrict development and use of\n"
|
||||
"software on general-purpose computers, but in those that do, we wish to\n"
|
||||
"avoid the special danger that patents applied to a free program could\n"
|
||||
"make it effectively proprietary. To prevent this, the GPL assures that\n"
|
||||
"patents cannot be used to render the program non-free.\n"
|
||||
"\n"
|
||||
" The precise terms and conditions for copying, distribution and\n"
|
||||
"modification follow.\n"
|
||||
"\n"
|
||||
" TERMS AND CONDITIONS\n"
|
||||
"\n"
|
||||
" 0. Definitions.\n"
|
||||
"\n"
|
||||
" \"This License\" refers to version 3 of the GNU General Public License.\n"
|
||||
"\n"
|
||||
" \"Copyright\" also means copyright-like laws that apply to other kinds of\n"
|
||||
"works, such as semiconductor masks.\n"
|
||||
"\n"
|
||||
" \"The Program\" refers to any copyrightable work licensed under this\n"
|
||||
"License. Each licensee is addressed as \"you\". \"Licensees\" and\n"
|
||||
"\"recipients\" may be individuals or organizations.\n"
|
||||
"\n"
|
||||
" To \"modify\" a work means to copy from or adapt all or part of the work\n"
|
||||
"in a fashion requiring copyright permission, other than the making of an\n"
|
||||
"exact copy. The resulting work is called a \"modified version\" of the\n"
|
||||
"earlier work or a work \"based on\" the earlier work.\n"
|
||||
"\n"
|
||||
" A \"covered work\" means either the unmodified Program or a work based\n"
|
||||
"on the Program.\n"
|
||||
"\n"
|
||||
" To \"propagate\" a work means to do anything with it that, without\n"
|
||||
"permission, would make you directly or secondarily liable for\n"
|
||||
"infringement under applicable copyright law, except executing it on a\n"
|
||||
"computer or modifying a private copy. Propagation includes copying,\n"
|
||||
"distribution (with or without modification), making available to the\n"
|
||||
"public, and in some countries other activities as well.\n"
|
||||
"\n"
|
||||
" To \"convey\" a work means any kind of propagation that enables other\n"
|
||||
"parties to make or receive copies. Mere interaction with a user through\n"
|
||||
"a computer network, with no transfer of a copy, is not conveying.\n"
|
||||
"\n"
|
||||
" An interactive user interface displays \"Appropriate Legal Notices\"\n"
|
||||
"to the extent that it includes a convenient and prominently visible\n"
|
||||
"feature that (1) displays an appropriate copyright notice, and (2)\n"
|
||||
"tells the user that there is no warranty for the work (except to the\n"
|
||||
"extent that warranties are provided), that licensees may convey the\n"
|
||||
"work under this License, and how to view a copy of this License. If\n"
|
||||
"the interface presents a list of user commands or options, such as a\n"
|
||||
"menu, a prominent item in the list meets this criterion.\n"
|
||||
"\n"
|
||||
" 1. Source Code.\n"
|
||||
"\n"
|
||||
" The \"source code\" for a work means the preferred form of the work\n"
|
||||
"for making modifications to it. \"Object code\" means any non-source\n"
|
||||
"form of a work.\n"
|
||||
"\n"
|
||||
" A \"Standard Interface\" means an interface that either is an official\n"
|
||||
"standard defined by a recognized standards body, or, in the case of\n"
|
||||
"interfaces specified for a particular programming language, one that\n"
|
||||
"is widely used among developers working in that language.\n"
|
||||
"\n"
|
||||
" The \"System Libraries\" of an executable work include anything, other\n"
|
||||
"than the work as a whole, that (a) is included in the normal form of\n"
|
||||
"packaging a Major Component, but which is not part of that Major\n"
|
||||
"Component, and (b) serves only to enable use of the work with that\n"
|
||||
"Major Component, or to implement a Standard Interface for which an\n"
|
||||
"implementation is available to the public in source code form. A\n"
|
||||
"\"Major Component\", in this context, means a major essential component\n"
|
||||
"(kernel, window system, and so on) of the specific operating system\n"
|
||||
"(if any) on which the executable work runs, or a compiler used to\n"
|
||||
"produce the work, or an object code interpreter used to run it.\n"
|
||||
"\n"
|
||||
" The \"Corresponding Source\" for a work in object code form means all\n"
|
||||
"the source code needed to generate, install, and (for an executable\n"
|
||||
"work) run the object code and to modify the work, including scripts to\n"
|
||||
"control those activities. However, it does not include the work\'s\n"
|
||||
"System Libraries, or general-purpose tools or generally available free\n"
|
||||
"programs which are used unmodified in performing those activities but\n"
|
||||
"which are not part of the work. For example, Corresponding Source\n"
|
||||
"includes interface definition files associated with source files for\n"
|
||||
"the work, and the source code for shared libraries and dynamically\n"
|
||||
"linked subprograms that the work is specifically designed to require,\n"
|
||||
"such as by intimate data communication or control flow between those\n"
|
||||
"subprograms and other parts of the work.\n"
|
||||
"\n"
|
||||
" The Corresponding Source need not include anything that users\n"
|
||||
"can regenerate automatically from other parts of the Corresponding\n"
|
||||
"Source.\n"
|
||||
"\n"
|
||||
" The Corresponding Source for a work in source code form is that\n"
|
||||
"same work.\n"
|
||||
"\n"
|
||||
" 2. Basic Permissions.\n"
|
||||
"\n"
|
||||
" All rights granted under this License are granted for the term of\n"
|
||||
"copyright on the Program, and are irrevocable provided the stated\n"
|
||||
"conditions are met. This License explicitly affirms your unlimited\n"
|
||||
"permission to run the unmodified Program. The output from running a\n"
|
||||
"covered work is covered by this License only if the output, given its\n"
|
||||
"content, constitutes a covered work. This License acknowledges your\n"
|
||||
"rights of fair use or other equivalent, as provided by copyright law.\n"
|
||||
"\n"
|
||||
" You may make, run and propagate covered works that you do not\n"
|
||||
"convey, without conditions so long as your license otherwise remains\n"
|
||||
"in force. You may convey covered works to others for the sole purpose\n"
|
||||
"of having them make modifications exclusively for you, or provide you\n"
|
||||
"with facilities for running those works, provided that you comply with\n"
|
||||
"the terms of this License in conveying all material for which you do\n"
|
||||
"not control copyright. Those thus making or running the covered works\n"
|
||||
"for you must do so exclusively on your behalf, under your direction\n"
|
||||
"and control, on terms that prohibit them from making any copies of\n"
|
||||
"your copyrighted material outside their relationship with you.\n"
|
||||
"\n"
|
||||
" Conveying under any other circumstances is permitted solely under\n"
|
||||
"the conditions stated below. Sublicensing is not allowed; section 10\n"
|
||||
"makes it unnecessary.\n"
|
||||
"\n"
|
||||
" 3. Protecting Users\' Legal Rights From Anti-Circumvention Law.\n"
|
||||
"\n"
|
||||
" No covered work shall be deemed part of an effective technological\n"
|
||||
"measure under any applicable law fulfilling obligations under article\n"
|
||||
"11 of the WIPO copyright treaty adopted on 20 December 1996, or\n"
|
||||
"similar laws prohibiting or restricting circumvention of such\n"
|
||||
"measures.\n"
|
||||
"\n"
|
||||
" When you convey a covered work, you waive any legal power to forbid\n"
|
||||
"circumvention of technological measures to the extent such circumvention\n"
|
||||
"is effected by exercising rights under this License with respect to\n"
|
||||
"the covered work, and you disclaim any intention to limit operation or\n"
|
||||
"modification of the work as a means of enforcing, against the work\'s\n"
|
||||
"users, your or third parties\' legal rights to forbid circumvention of\n"
|
||||
"technological measures.\n"
|
||||
"\n"
|
||||
" 4. Conveying Verbatim Copies.\n"
|
||||
"\n"
|
||||
" You may convey verbatim copies of the Program\'s source code as you\n"
|
||||
"receive it, in any medium, provided that you conspicuously and\n"
|
||||
"appropriately publish on each copy an appropriate copyright notice;\n"
|
||||
"keep intact all notices stating that this License and any\n"
|
||||
"non-permissive terms added in accord with section 7 apply to the code;\n"
|
||||
"keep intact all notices of the absence of any warranty; and give all\n"
|
||||
"recipients a copy of this License along with the Program.\n"
|
||||
"\n"
|
||||
" You may charge any price or no price for each copy that you convey,\n"
|
||||
"and you may offer support or warranty protection for a fee.\n"
|
||||
"\n"
|
||||
" 5. Conveying Modified Source Versions.\n"
|
||||
"\n"
|
||||
" You may convey a work based on the Program, or the modifications to\n"
|
||||
"produce it from the Program, in the form of source code under the\n"
|
||||
"terms of section 4, provided that you also meet all of these conditions:\n"
|
||||
"\n"
|
||||
" a) The work must carry prominent notices stating that you modified\n"
|
||||
" it, and giving a relevant date.\n"
|
||||
"\n"
|
||||
" b) The work must carry prominent notices stating that it is\n"
|
||||
" released under this License and any conditions added under section\n"
|
||||
" 7. This requirement modifies the requirement in section 4 to\n"
|
||||
" \"keep intact all notices\".\n"
|
||||
"\n"
|
||||
" c) You must license the entire work, as a whole, under this\n"
|
||||
" License to anyone who comes into possession of a copy. This\n"
|
||||
" License will therefore apply, along with any applicable section 7\n"
|
||||
" additional terms, to the whole of the work, and all its parts,\n"
|
||||
" regardless of how they are packaged. This License gives no\n"
|
||||
" permission to license the work in any other way, but it does not\n"
|
||||
" invalidate such permission if you have separately received it.\n"
|
||||
"\n"
|
||||
" d) If the work has interactive user interfaces, each must display\n"
|
||||
" Appropriate Legal Notices; however, if the Program has interactive\n"
|
||||
" interfaces that do not display Appropriate Legal Notices, your\n"
|
||||
" work need not make them do so.\n"
|
||||
"\n"
|
||||
" A compilation of a covered work with other separate and independent\n"
|
||||
"works, which are not by their nature extensions of the covered work,\n"
|
||||
"and which are not combined with it such as to form a larger program,\n"
|
||||
"in or on a volume of a storage or distribution medium, is called an\n"
|
||||
"\"aggregate\" if the compilation and its resulting copyright are not\n"
|
||||
"used to limit the access or legal rights of the compilation\'s users\n"
|
||||
"beyond what the individual works permit. Inclusion of a covered work\n"
|
||||
"in an aggregate does not cause this License to apply to the other\n"
|
||||
"parts of the aggregate.\n"
|
||||
"\n"
|
||||
" 6. Conveying Non-Source Forms.\n"
|
||||
"\n"
|
||||
" You may convey a covered work in object code form under the terms\n"
|
||||
"of sections 4 and 5, provided that you also convey the\n"
|
||||
"machine-readable Corresponding Source under the terms of this License,\n"
|
||||
"in one of these ways:\n"
|
||||
"\n"
|
||||
" a) Convey the object code in, or embodied in, a physical product\n"
|
||||
" (including a physical distribution medium), accompanied by the\n"
|
||||
" Corresponding Source fixed on a durable physical medium\n"
|
||||
" customarily used for software interchange.\n"
|
||||
"\n"
|
||||
" b) Convey the object code in, or embodied in, a physical product\n"
|
||||
" (including a physical distribution medium), accompanied by a\n"
|
||||
" written offer, valid for at least three years and valid for as\n"
|
||||
" long as you offer spare parts or customer support for that product\n"
|
||||
" model, to give anyone who possesses the object code either (1) a\n"
|
||||
" copy of the Corresponding Source for all the software in the\n"
|
||||
" product that is covered by this License, on a durable physical\n"
|
||||
" medium customarily used for software interchange, for a price no\n"
|
||||
" more than your reasonable cost of physically performing this\n"
|
||||
" conveying of source, or (2) access to copy the\n"
|
||||
" Corresponding Source from a network server at no charge.\n"
|
||||
"\n"
|
||||
" c) Convey individual copies of the object code with a copy of the\n"
|
||||
" written offer to provide the Corresponding Source. This\n"
|
||||
" alternative is allowed only occasionally and noncommercially, and\n"
|
||||
" only if you received the object code with such an offer, in accord\n"
|
||||
" with subsection 6b.\n"
|
||||
"\n"
|
||||
" d) Convey the object code by offering access from a designated\n"
|
||||
" place (gratis or for a charge), and offer equivalent access to the\n"
|
||||
" Corresponding Source in the same way through the same place at no\n"
|
||||
" further charge. You need not require recipients to copy the\n"
|
||||
" Corresponding Source along with the object code. If the place to\n"
|
||||
" copy the object code is a network server, the Corresponding Source\n"
|
||||
" may be on a different server (operated by you or a third party)\n"
|
||||
" that supports equivalent copying facilities, provided you maintain\n"
|
||||
" clear directions next to the object code saying where to find the\n"
|
||||
" Corresponding Source. Regardless of what server hosts the\n"
|
||||
" Corresponding Source, you remain obligated to ensure that it is\n"
|
||||
" available for as long as needed to satisfy these requirements.\n"
|
||||
"\n"
|
||||
" e) Convey the object code using peer-to-peer transmission, provided\n"
|
||||
" you inform other peers where the object code and Corresponding\n"
|
||||
" Source of the work are being offered to the general public at no\n"
|
||||
" charge under subsection 6d.\n"
|
||||
"\n"
|
||||
" A separable portion of the object code, whose source code is excluded\n"
|
||||
"from the Corresponding Source as a System Library, need not be\n"
|
||||
"included in conveying the object code work.\n"
|
||||
"\n"
|
||||
" A \"User Product\" is either (1) a \"consumer product\", which means any\n"
|
||||
"tangible personal property which is normally used for personal, family,\n"
|
||||
"or household purposes, or (2) anything designed or sold for incorporation\n"
|
||||
"into a dwelling. In determining whether a product is a consumer product,\n"
|
||||
"doubtful cases shall be resolved in favor of coverage. For a particular\n"
|
||||
"product received by a particular user, \"normally used\" refers to a\n"
|
||||
"typical or common use of that class of product, regardless of the status\n"
|
||||
"of the particular user or of the way in which the particular user\n"
|
||||
"actually uses, or expects or is expected to use, the product. A product\n"
|
||||
"is a consumer product regardless of whether the product has substantial\n"
|
||||
"commercial, industrial or non-consumer uses, unless such uses represent\n"
|
||||
"the only significant mode of use of the product.\n"
|
||||
"\n"
|
||||
" \"Installation Information\" for a User Product means any methods,\n"
|
||||
"procedures, authorization keys, or other information required to install\n"
|
||||
"and execute modified versions of a covered work in that User Product from\n"
|
||||
"a modified version of its Corresponding Source. The information must\n"
|
||||
"suffice to ensure that the continued functioning of the modified object\n"
|
||||
"code is in no case prevented or interfered with solely because\n"
|
||||
"modification has been made.\n"
|
||||
"\n"
|
||||
" If you convey an object code work under this section in, or with, or\n"
|
||||
"specifically for use in, a User Product, and the conveying occurs as\n"
|
||||
"part of a transaction in which the right of possession and use of the\n"
|
||||
"User Product is transferred to the recipient in perpetuity or for a\n"
|
||||
"fixed term (regardless of how the transaction is characterized), the\n"
|
||||
"Corresponding Source conveyed under this section must be accompanied\n"
|
||||
"by the Installation Information. But this requirement does not apply\n"
|
||||
"if neither you nor any third party retains the ability to install\n"
|
||||
"modified object code on the User Product (for example, the work has\n"
|
||||
"been installed in ROM).\n"
|
||||
"\n"
|
||||
" The requirement to provide Installation Information does not include a\n"
|
||||
"requirement to continue to provide support service, warranty, or updates\n"
|
||||
"for a work that has been modified or installed by the recipient, or for\n"
|
||||
"the User Product in which it has been modified or installed. Access to a\n"
|
||||
"network may be denied when the modification itself materially and\n"
|
||||
"adversely affects the operation of the network or violates the rules and\n"
|
||||
"protocols for communication across the network.\n"
|
||||
"\n"
|
||||
" Corresponding Source conveyed, and Installation Information provided,\n"
|
||||
"in accord with this section must be in a format that is publicly\n"
|
||||
"documented (and with an implementation available to the public in\n"
|
||||
"source code form), and must require no special password or key for\n"
|
||||
"unpacking, reading or copying.\n"
|
||||
"\n"
|
||||
" 7. Additional Terms.\n"
|
||||
"\n"
|
||||
" \"Additional permissions\" are terms that supplement the terms of this\n"
|
||||
"License by making exceptions from one or more of its conditions.\n"
|
||||
"Additional permissions that are applicable to the entire Program shall\n"
|
||||
"be treated as though they were included in this License, to the extent\n"
|
||||
"that they are valid under applicable law. If additional permissions\n"
|
||||
"apply only to part of the Program, that part may be used separately\n"
|
||||
"under those permissions, but the entire Program remains governed by\n"
|
||||
"this License without regard to the additional permissions.\n"
|
||||
"\n"
|
||||
" When you convey a copy of a covered work, you may at your option\n"
|
||||
"remove any additional permissions from that copy, or from any part of\n"
|
||||
"it. (Additional permissions may be written to require their own\n"
|
||||
"removal in certain cases when you modify the work.) You may place\n"
|
||||
"additional permissions on material, added by you to a covered work,\n"
|
||||
"for which you have or can give appropriate copyright permission.\n"
|
||||
"\n"
|
||||
" Notwithstanding any other provision of this License, for material you\n"
|
||||
"add to a covered work, you may (if authorized by the copyright holders of\n"
|
||||
"that material) supplement the terms of this License with terms:\n"
|
||||
"\n"
|
||||
" a) Disclaiming warranty or limiting liability differently from the\n"
|
||||
" terms of sections 15 and 16 of this License; or\n"
|
||||
"\n"
|
||||
" b) Requiring preservation of specified reasonable legal notices or\n"
|
||||
" author attributions in that material or in the Appropriate Legal\n"
|
||||
" Notices displayed by works containing it; or\n"
|
||||
"\n"
|
||||
" c) Prohibiting misrepresentation of the origin of that material, or\n"
|
||||
" requiring that modified versions of such material be marked in\n"
|
||||
" reasonable ways as different from the original version; or\n"
|
||||
"\n"
|
||||
" d) Limiting the use for publicity purposes of names of licensors or\n"
|
||||
" authors of the material; or\n"
|
||||
"\n"
|
||||
" e) Declining to grant rights under trademark law for use of some\n"
|
||||
" trade names, trademarks, or service marks; or\n"
|
||||
"\n"
|
||||
" f) Requiring indemnification of licensors and authors of that\n"
|
||||
" material by anyone who conveys the material (or modified versions of\n"
|
||||
" it) with contractual assumptions of liability to the recipient, for\n"
|
||||
" any liability that these contractual assumptions directly impose on\n"
|
||||
" those licensors and authors.\n"
|
||||
"\n"
|
||||
" All other non-permissive additional terms are considered \"further\n"
|
||||
"restrictions\" within the meaning of section 10. If the Program as you\n"
|
||||
"received it, or any part of it, contains a notice stating that it is\n"
|
||||
"governed by this License along with a term that is a further\n"
|
||||
"restriction, you may remove that term. If a license document contains\n"
|
||||
"a further restriction but permits relicensing or conveying under this\n"
|
||||
"License, you may add to a covered work material governed by the terms\n"
|
||||
"of that license document, provided that the further restriction does\n"
|
||||
"not survive such relicensing or conveying.\n"
|
||||
"\n"
|
||||
" If you add terms to a covered work in accord with this section, you\n"
|
||||
"must place, in the relevant source files, a statement of the\n"
|
||||
"additional terms that apply to those files, or a notice indicating\n"
|
||||
"where to find the applicable terms.\n"
|
||||
"\n"
|
||||
" Additional terms, permissive or non-permissive, may be stated in the\n"
|
||||
"form of a separately written license, or stated as exceptions;\n"
|
||||
"the above requirements apply either way.\n"
|
||||
"\n"
|
||||
" 8. Termination.\n"
|
||||
"\n"
|
||||
" You may not propagate or modify a covered work except as expressly\n"
|
||||
"provided under this License. Any attempt otherwise to propagate or\n"
|
||||
"modify it is void, and will automatically terminate your rights under\n"
|
||||
"this License (including any patent licenses granted under the third\n"
|
||||
"paragraph of section 11).\n"
|
||||
"\n"
|
||||
" However, if you cease all violation of this License, then your\n"
|
||||
"license from a particular copyright holder is reinstated (a)\n"
|
||||
"provisionally, unless and until the copyright holder explicitly and\n"
|
||||
"finally terminates your license, and (b) permanently, if the copyright\n"
|
||||
"holder fails to notify you of the violation by some reasonable means\n"
|
||||
"prior to 60 days after the cessation.\n"
|
||||
"\n"
|
||||
" Moreover, your license from a particular copyright holder is\n"
|
||||
"reinstated permanently if the copyright holder notifies you of the\n"
|
||||
"violation by some reasonable means, this is the first time you have\n"
|
||||
"received notice of violation of this License (for any work) from that\n"
|
||||
"copyright holder, and you cure the violation prior to 30 days after\n"
|
||||
"your receipt of the notice.\n"
|
||||
"\n"
|
||||
" Termination of your rights under this section does not terminate the\n"
|
||||
"licenses of parties who have received copies or rights from you under\n"
|
||||
"this License. If your rights have been terminated and not permanently\n"
|
||||
"reinstated, you do not qualify to receive new licenses for the same\n"
|
||||
"material under section 10.\n"
|
||||
"\n"
|
||||
" 9. Acceptance Not Required for Having Copies.\n"
|
||||
"\n"
|
||||
" You are not required to accept this License in order to receive or\n"
|
||||
"run a copy of the Program. Ancillary propagation of a covered work\n"
|
||||
"occurring solely as a consequence of using peer-to-peer transmission\n"
|
||||
"to receive a copy likewise does not require acceptance. However,\n"
|
||||
"nothing other than this License grants you permission to propagate or\n"
|
||||
"modify any covered work. These actions infringe copyright if you do\n"
|
||||
"not accept this License. Therefore, by modifying or propagating a\n"
|
||||
"covered work, you indicate your acceptance of this License to do so.\n"
|
||||
"\n"
|
||||
" 10. Automatic Licensing of Downstream Recipients.\n"
|
||||
"\n"
|
||||
" Each time you convey a covered work, the recipient automatically\n"
|
||||
"receives a license from the original licensors, to run, modify and\n"
|
||||
"propagate that work, subject to this License. You are not responsible\n"
|
||||
"for enforcing compliance by third parties with this License.\n"
|
||||
"\n"
|
||||
" An \"entity transaction\" is a transaction transferring control of an\n"
|
||||
"organization, or substantially all assets of one, or subdividing an\n"
|
||||
"organization, or merging organizations. If propagation of a covered\n"
|
||||
"work results from an entity transaction, each party to that\n"
|
||||
"transaction who receives a copy of the work also receives whatever\n"
|
||||
"licenses to the work the party\'s predecessor in interest had or could\n"
|
||||
"give under the previous paragraph, plus a right to possession of the\n"
|
||||
"Corresponding Source of the work from the predecessor in interest, if\n"
|
||||
"the predecessor has it or can get it with reasonable efforts.\n"
|
||||
"\n"
|
||||
" You may not impose any further restrictions on the exercise of the\n"
|
||||
"rights granted or affirmed under this License. For example, you may\n"
|
||||
"not impose a license fee, royalty, or other charge for exercise of\n"
|
||||
"rights granted under this License, and you may not initiate litigation\n"
|
||||
"(including a cross-claim or counterclaim in a lawsuit) alleging that\n"
|
||||
"any patent claim is infringed by making, using, selling, offering for\n"
|
||||
"sale, or importing the Program or any portion of it.\n"
|
||||
"\n"
|
||||
" 11. Patents.\n"
|
||||
"\n"
|
||||
" A \"contributor\" is a copyright holder who authorizes use under this\n"
|
||||
"License of the Program or a work on which the Program is based. The\n"
|
||||
"work thus licensed is called the contributor\'s \"contributor version\".\n"
|
||||
"\n"
|
||||
" A contributor\'s \"essential patent claims\" are all patent claims\n"
|
||||
"owned or controlled by the contributor, whether already acquired or\n"
|
||||
"hereafter acquired, that would be infringed by some manner, permitted\n"
|
||||
"by this License, of making, using, or selling its contributor version,\n"
|
||||
"but do not include claims that would be infringed only as a\n"
|
||||
"consequence of further modification of the contributor version. For\n"
|
||||
"purposes of this definition, \"control\" includes the right to grant\n"
|
||||
"patent sublicenses in a manner consistent with the requirements of\n"
|
||||
"this License.\n"
|
||||
"\n"
|
||||
" Each contributor grants you a non-exclusive, worldwide, royalty-free\n"
|
||||
"patent license under the contributor\'s essential patent claims, to\n"
|
||||
"make, use, sell, offer for sale, import and otherwise run, modify and\n"
|
||||
"propagate the contents of its contributor version.\n"
|
||||
"\n"
|
||||
" In the following three paragraphs, a \"patent license\" is any express\n"
|
||||
"agreement or commitment, however denominated, not to enforce a patent\n"
|
||||
"(such as an express permission to practice a patent or covenant not to\n"
|
||||
"sue for patent infringement). To \"grant\" such a patent license to a\n"
|
||||
"party means to make such an agreement or commitment not to enforce a\n"
|
||||
"patent against the party.\n"
|
||||
"\n"
|
||||
" If you convey a covered work, knowingly relying on a patent license,\n"
|
||||
"and the Corresponding Source of the work is not available for anyone\n"
|
||||
"to copy, free of charge and under the terms of this License, through a\n"
|
||||
"publicly available network server or other readily accessible means,\n"
|
||||
"then you must either (1) cause the Corresponding Source to be so\n"
|
||||
"available, or (2) arrange to deprive yourself of the benefit of the\n"
|
||||
"patent license for this particular work, or (3) arrange, in a manner\n"
|
||||
"consistent with the requirements of this License, to extend the patent\n"
|
||||
"license to downstream recipients. \"Knowingly relying\" means you have\n"
|
||||
"actual knowledge that, but for the patent license, your conveying the\n"
|
||||
"covered work in a country, or your recipient\'s use of the covered work\n"
|
||||
"in a country, would infringe one or more identifiable patents in that\n"
|
||||
"country that you have reason to believe are valid.\n"
|
||||
"\n"
|
||||
" If, pursuant to or in connection with a single transaction or\n"
|
||||
"arrangement, you convey, or propagate by procuring conveyance of, a\n"
|
||||
"covered work, and grant a patent license to some of the parties\n"
|
||||
"receiving the covered work authorizing them to use, propagate, modify\n"
|
||||
"or convey a specific copy of the covered work, then the patent license\n"
|
||||
"you grant is automatically extended to all recipients of the covered\n"
|
||||
"work and works based on it.\n"
|
||||
"\n"
|
||||
" A patent license is \"discriminatory\" if it does not include within\n"
|
||||
"the scope of its coverage, prohibits the exercise of, or is\n"
|
||||
"conditioned on the non-exercise of one or more of the rights that are\n"
|
||||
"specifically granted under this License. You may not convey a covered\n"
|
||||
"work if you are a party to an arrangement with a third party that is\n"
|
||||
"in the business of distributing software, under which you make payment\n"
|
||||
"to the third party based on the extent of your activity of conveying\n"
|
||||
"the work, and under which the third party grants, to any of the\n"
|
||||
"parties who would receive the covered work from you, a discriminatory\n"
|
||||
"patent license (a) in connection with copies of the covered work\n"
|
||||
"conveyed by you (or copies made from those copies), or (b) primarily\n"
|
||||
"for and in connection with specific products or compilations that\n"
|
||||
"contain the covered work, unless you entered into that arrangement,\n"
|
||||
"or that patent license was granted, prior to 28 March 2007.\n"
|
||||
"\n"
|
||||
" Nothing in this License shall be construed as excluding or limiting\n"
|
||||
"any implied license or other defenses to infringement that may\n"
|
||||
"otherwise be available to you under applicable patent law.\n"
|
||||
"\n"
|
||||
" 12. No Surrender of Others\' Freedom.\n"
|
||||
"\n"
|
||||
" If conditions are imposed on you (whether by court order, agreement or\n"
|
||||
"otherwise) that contradict the conditions of this License, they do not\n"
|
||||
"excuse you from the conditions of this License. If you cannot convey a\n"
|
||||
"covered work so as to satisfy simultaneously your obligations under this\n"
|
||||
"License and any other pertinent obligations, then as a consequence you may\n"
|
||||
"not convey it at all. For example, if you agree to terms that obligate you\n"
|
||||
"to collect a royalty for further conveying from those to whom you convey\n"
|
||||
"the Program, the only way you could satisfy both those terms and this\n"
|
||||
"License would be to refrain entirely from conveying the Program.\n"
|
||||
"\n"
|
||||
" 13. Use with the GNU Affero General Public License.\n"
|
||||
"\n"
|
||||
" Notwithstanding any other provision of this License, you have\n"
|
||||
"permission to link or combine any covered work with a work licensed\n"
|
||||
"under version 3 of the GNU Affero General Public License into a single\n"
|
||||
"combined work, and to convey the resulting work. The terms of this\n"
|
||||
"License will continue to apply to the part which is the covered work,\n"
|
||||
"but the special requirements of the GNU Affero General Public License,\n"
|
||||
"section 13, concerning interaction through a network will apply to the\n"
|
||||
"combination as such.\n"
|
||||
"\n"
|
||||
" 14. Revised Versions of this License.\n"
|
||||
"\n"
|
||||
" The Free Software Foundation may publish revised and/or new versions of\n"
|
||||
"the GNU General Public License from time to time. Such new versions will\n"
|
||||
"be similar in spirit to the present version, but may differ in detail to\n"
|
||||
"address new problems or concerns.\n"
|
||||
"\n"
|
||||
" Each version is given a distinguishing version number. If the\n"
|
||||
"Program specifies that a certain numbered version of the GNU General\n"
|
||||
"Public License \"or any later version\" applies to it, you have the\n"
|
||||
"option of following the terms and conditions either of that numbered\n"
|
||||
"version or of any later version published by the Free Software\n"
|
||||
"Foundation. If the Program does not specify a version number of the\n"
|
||||
"GNU General Public License, you may choose any version ever published\n"
|
||||
"by the Free Software Foundation.\n"
|
||||
"\n"
|
||||
" If the Program specifies that a proxy can decide which future\n"
|
||||
"versions of the GNU General Public License can be used, that proxy\'s\n"
|
||||
"public statement of acceptance of a version permanently authorizes you\n"
|
||||
"to choose that version for the Program.\n"
|
||||
"\n"
|
||||
" Later license versions may give you additional or different\n"
|
||||
"permissions. However, no additional obligations are imposed on any\n"
|
||||
"author or copyright holder as a result of your choosing to follow a\n"
|
||||
"later version.\n"
|
||||
"\n"
|
||||
" 15. Disclaimer of Warranty.\n"
|
||||
"\n"
|
||||
" THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\n"
|
||||
"APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\n"
|
||||
"HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\n"
|
||||
"OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\n"
|
||||
"THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n"
|
||||
"PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\n"
|
||||
"IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\n"
|
||||
"ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n"
|
||||
"\n"
|
||||
" 16. Limitation of Liability.\n"
|
||||
"\n"
|
||||
" IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\n"
|
||||
"WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\n"
|
||||
"THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\n"
|
||||
"GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\n"
|
||||
"USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\n"
|
||||
"DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\n"
|
||||
"PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\n"
|
||||
"EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\n"
|
||||
"SUCH DAMAGES.\n"
|
||||
"\n"
|
||||
" 17. Interpretation of Sections 15 and 16.\n"
|
||||
"\n"
|
||||
" If the disclaimer of warranty and limitation of liability provided\n"
|
||||
"above cannot be given local legal effect according to their terms,\n"
|
||||
"reviewing courts shall apply local law that most closely approximates\n"
|
||||
"an absolute waiver of all civil liability in connection with the\n"
|
||||
"Program, unless a warranty or assumption of liability accompanies a\n"
|
||||
"copy of the Program in return for a fee.\n"
|
||||
"\n"
|
||||
" END OF TERMS AND CONDITIONS\n"
|
||||
"\n"
|
||||
" How to Apply These Terms to Your New Programs\n"
|
||||
"\n"
|
||||
" If you develop a new program, and you want it to be of the greatest\n"
|
||||
"possible use to the public, the best way to achieve this is to make it\n"
|
||||
"free software which everyone can redistribute and change under these terms.\n"
|
||||
"\n"
|
||||
" To do so, attach the following notices to the program. It is safest\n"
|
||||
"to attach them to the start of each source file to most effectively\n"
|
||||
"state the exclusion of warranty; and each file should have at least\n"
|
||||
"the \"copyright\" line and a pointer to where the full notice is found.\n"
|
||||
"\n"
|
||||
" <one line to give the program\'s name and a brief idea of what it does.>\n"
|
||||
" Copyright (C) <year> <name of author>\n"
|
||||
"\n"
|
||||
" This program is free software: you can redistribute it and/or modify\n"
|
||||
" it under the terms of the GNU General Public License as published by\n"
|
||||
" the Free Software Foundation, either version 3 of the License, or\n"
|
||||
" (at your option) any later version.\n"
|
||||
"\n"
|
||||
" This program is distributed in the hope that it will be useful,\n"
|
||||
" but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
|
||||
" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n"
|
||||
" GNU General Public License for more details.\n"
|
||||
"\n"
|
||||
" You should have received a copy of the GNU General Public License\n"
|
||||
" along with this program. If not, see <http://www.gnu.org/licenses/>.\n"
|
||||
"\n"
|
||||
"Also add information on how to contact you by electronic and paper mail.\n"
|
||||
"\n"
|
||||
" If the program does terminal interaction, make it output a short\n"
|
||||
"notice like this when it starts in an interactive mode:\n"
|
||||
"\n"
|
||||
" <program> Copyright (C) <year> <name of author>\n"
|
||||
" This program comes with ABSOLUTELY NO WARRANTY; for details type `show w\'.\n"
|
||||
" This is free software, and you are welcome to redistribute it\n"
|
||||
" under certain conditions; type `show c\' for details.\n"
|
||||
"\n"
|
||||
"The hypothetical commands `show w\' and `show c\' should show the appropriate\n"
|
||||
"parts of the General Public License. Of course, your program\'s commands\n"
|
||||
"might be different; for a GUI interface, you would use an \"about box\".\n"
|
||||
"\n"
|
||||
" You should also get your employer (if you work as a programmer) or school,\n"
|
||||
"if any, to sign a \"copyright disclaimer\" for the program, if necessary.\n"
|
||||
"For more information on this, and how to apply and follow the GNU GPL, see\n"
|
||||
"<http://www.gnu.org/licenses/>.\n"
|
||||
"\n"
|
||||
" The GNU General Public License does not permit incorporating your program\n"
|
||||
"into proprietary programs. If your program is a subroutine library, you\n"
|
||||
"may consider it more useful to permit linking proprietary applications with\n"
|
||||
"the library. If this is what you want to do, use the GNU Lesser General\n"
|
||||
"Public License instead of this License. But first, please read\n"
|
||||
"<http://www.gnu.org/philosophy/why-not-lgpl.html>.\n"
|
||||
"", None, QtGui.QApplication.UnicodeUTF8))
|
||||
|
||||
import resources_rc
|
106
core/anki_host.py
Normal file
@ -0,0 +1,106 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2011 Alex Yatskov
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
import ankiqt
|
||||
from anki import hooks, lang
|
||||
from ankiqt import ui
|
||||
import re
|
||||
|
||||
|
||||
class Anki:
|
||||
def addFact(self, fields, tags=unicode()):
|
||||
fact = self.createFact(fields, tags)
|
||||
if not fact:
|
||||
return None
|
||||
|
||||
action = lang._('Add')
|
||||
|
||||
deck = self.deck()
|
||||
deck.setUndoStart(action)
|
||||
deck.addFact(fact)
|
||||
deck.setUndoEnd(action)
|
||||
deck.rebuildCounts()
|
||||
|
||||
ankiqt.mw.updateTitleBar()
|
||||
ankiqt.mw.statusView.redraw()
|
||||
|
||||
return fact.id
|
||||
|
||||
|
||||
def canAddFact(self, fields):
|
||||
return bool(self.createFact(fields))
|
||||
|
||||
|
||||
def createFact(self, fields, tags=unicode()):
|
||||
deck = self.deck()
|
||||
fact = deck.newFact()
|
||||
fact.tags = self.cleanupTags(tags)
|
||||
|
||||
try:
|
||||
for field in fact.fields:
|
||||
field.value = fields.get(field.getName()) or unicode()
|
||||
if not fact.fieldValid(field) or not fact.fieldUnique(field, deck.s):
|
||||
return None
|
||||
except KeyError:
|
||||
return None
|
||||
|
||||
return fact
|
||||
|
||||
|
||||
def browseFact(self, factId):
|
||||
browser = ui.dialogs.get('CardList', self.window())
|
||||
browser.dialog.filterEdit.setText('fid:' + str(factId))
|
||||
browser.updateSearch()
|
||||
browser.onFact()
|
||||
|
||||
|
||||
def cleanupTags(self, tags):
|
||||
return re.sub('[;,]', unicode(), tags).strip()
|
||||
|
||||
|
||||
def fields(self):
|
||||
return [
|
||||
(field.name, field.required, field.unique) for field in self.model().fieldModels
|
||||
]
|
||||
|
||||
|
||||
def deck(self):
|
||||
return self.window().deck
|
||||
|
||||
|
||||
def model(self):
|
||||
return self.deck().currentModel
|
||||
|
||||
|
||||
def window(self):
|
||||
return ankiqt.mw
|
||||
|
||||
|
||||
def toolsMenu(self):
|
||||
return self.window().mainWin.menuTools
|
||||
|
||||
|
||||
def toolBar(self):
|
||||
return self.window().mainWin.toolBar
|
||||
|
||||
|
||||
def addHook(self, name, callback):
|
||||
hooks.addHook(name, callback)
|
||||
|
||||
|
||||
def removeHook(self, name, callback):
|
||||
hooks.removeHook(name, callback)
|
24
core/constants.py
Normal file
@ -0,0 +1,24 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2011 Alex Yatskov
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
constants = {
|
||||
'version': '0.03b',
|
||||
|
||||
'urlUpdates': 'http://foosoft.net/projects/yomichan/dev/updates.xml',
|
||||
'urlHomepage': 'https://code.google.com/p/yomichan/',
|
||||
'urlFeedback': 'http://foosoft.net/contact/'
|
||||
}
|
256
core/preference_data.py
Normal file
@ -0,0 +1,256 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2011 Alex Yatskov
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
import os
|
||||
from xml.dom import minidom
|
||||
from PyQt4 import QtCore, QtGui
|
||||
|
||||
|
||||
class Preferences:
|
||||
def __init__(self):
|
||||
self.clear()
|
||||
|
||||
|
||||
def clear(self):
|
||||
self.generalFindUpdates = True
|
||||
self.generalReadingsStrip = False
|
||||
self.generalRecentLoad = True
|
||||
self.generalRecentFiles = list()
|
||||
self.generalRecentMax = 10
|
||||
|
||||
self.uiContentFontFamily = 'Arial'
|
||||
self.uiContentFontSize = 12
|
||||
self.uiContentColorFg = QtGui.QColor(QtCore.Qt.black).rgba()
|
||||
self.uiContentColorBg = QtGui.QColor(QtCore.Qt.white).rgba()
|
||||
self.uiContentWordWrap = False
|
||||
|
||||
self.uiReaderState = None
|
||||
self.uiReaderPosition = None
|
||||
self.uiReaderSize = None
|
||||
|
||||
self.searchScanMax = 16
|
||||
self.searchResultMax = 32
|
||||
self.searchGroupByExp = True
|
||||
|
||||
self.ankiFields = dict()
|
||||
self.ankiTags = list()
|
||||
self.ankiShowIcon = True
|
||||
|
||||
|
||||
def load(self, filename=None):
|
||||
if not filename:
|
||||
filename = self.defaultFilename()
|
||||
|
||||
try:
|
||||
doc = minidom.parse(filename)
|
||||
except:
|
||||
return False
|
||||
|
||||
root = doc.documentElement
|
||||
if root.nodeName != 'yomichan':
|
||||
return False
|
||||
|
||||
self.clear()
|
||||
|
||||
for general in root.getElementsByTagName('general'):
|
||||
self.generalRecentLoad = self.__readAttrBool(general, 'recentLoad', self.generalRecentLoad)
|
||||
self.generalReadingsStrip = self.__readAttrBool(general, 'readingsStrip', self.generalReadingsStrip)
|
||||
self.generalFindUpdates = self.__readAttrBool(general, 'findUpdates', self.generalFindUpdates)
|
||||
|
||||
for recent in general.getElementsByTagName('recent'):
|
||||
path = self.__readAttrStr(recent, 'path')
|
||||
position = self.__readAttrInt(recent, 'position')
|
||||
if path and os.path.isfile(path):
|
||||
self.generalRecentFiles.append((path, position))
|
||||
|
||||
for ui in root.getElementsByTagName('ui'):
|
||||
for content in ui.getElementsByTagName('content'):
|
||||
self.uiContentFontFamily = self.__readAttrStr(content, 'fontFamily', self.uiContentFontFamily)
|
||||
self.uiContentFontSize = self.__readAttrInt(content, 'fontSize', self.uiContentFontSize)
|
||||
self.uiContentColorFg = self.__readAttrInt(content, 'colorFg', self.uiContentColorFg)
|
||||
self.uiContentColorBg = self.__readAttrInt(content, 'colorBg', self.uiContentColorBg)
|
||||
self.uiContentWordWrap = self.__readAttrBool(content, 'wordWrap', self.uiContentWordWrap)
|
||||
|
||||
for reader in ui.getElementsByTagName('reader'):
|
||||
self.uiReaderState = self.__readAttrStr(reader, 'state', self.uiReaderState)
|
||||
self.uiReaderPosition = self.__readAttrIntTuple(reader, 'position', self.uiReaderPosition)
|
||||
self.uiReaderSize = self.__readAttrIntTuple(reader, 'size', self.uiReaderSize)
|
||||
|
||||
for search in root.getElementsByTagName('search'):
|
||||
self.searchScanMax = self.__readAttrInt(search, 'scanMax', self.searchScanMax)
|
||||
self.searchResultMax = self.__readAttrInt(search, 'resultMax', self.searchResultMax)
|
||||
self.searchGroupByExp = self.__readAttrBool(search, 'groupByExp', self.searchGroupByExp)
|
||||
|
||||
for anki in root.getElementsByTagName('anki'):
|
||||
self.ankiShowIcon = self.__readAttrBool(anki, 'showIcon', self.ankiShowIcon)
|
||||
|
||||
for tag in anki.getElementsByTagName('tag'):
|
||||
value = self.__readAttrStr(tag, 'value', unicode())
|
||||
self.ankiTags.append(value)
|
||||
|
||||
for model in anki.getElementsByTagName('model'):
|
||||
for field in model.getElementsByTagName('field'):
|
||||
name = self.__readAttrStr(field, 'name')
|
||||
value = self.__readAttrStr(field, 'value')
|
||||
if name and value:
|
||||
self.ankiFields[name] = value
|
||||
|
||||
return True
|
||||
|
||||
|
||||
def save(self, filename=None):
|
||||
if not filename:
|
||||
filename = self.defaultFilename()
|
||||
|
||||
directory = os.path.split(filename)[0]
|
||||
if not os.path.isdir(directory):
|
||||
try:
|
||||
os.makedirs(directory)
|
||||
except OSError:
|
||||
return False
|
||||
|
||||
doc = minidom.Document()
|
||||
root = doc.createElement('yomichan')
|
||||
doc.appendChild(root)
|
||||
|
||||
general = doc.createElement('general')
|
||||
root.appendChild(general)
|
||||
self.__writeAttrBool(general, 'recentLoad', self.generalRecentLoad)
|
||||
self.__writeAttrBool(general, 'readingsStrip', self.generalReadingsStrip)
|
||||
self.__writeAttrBool(general, 'findUpdates', self.generalFindUpdates)
|
||||
for path, position in self.generalRecentFiles:
|
||||
recent = doc.createElement('recent')
|
||||
general.appendChild(recent)
|
||||
self.__writeAttrStr(recent, 'path', path)
|
||||
self.__writeAttrInt(recent, 'position', position)
|
||||
|
||||
ui = doc.createElement('ui')
|
||||
root.appendChild(ui)
|
||||
|
||||
content = doc.createElement('content')
|
||||
ui.appendChild(content)
|
||||
self.__writeAttrStr(content, 'fontFamily', self.uiContentFontFamily)
|
||||
self.__writeAttrInt(content, 'fontSize', self.uiContentFontSize)
|
||||
self.__writeAttrInt(content, 'colorFg', self.uiContentColorFg)
|
||||
self.__writeAttrInt(content, 'colorBg', self.uiContentColorBg)
|
||||
self.__writeAttrBool(content, 'wordWrap', self.uiContentWordWrap)
|
||||
|
||||
reader = doc.createElement('reader')
|
||||
ui.appendChild(reader)
|
||||
self.__writeAttrStr(reader, 'state', self.uiReaderState)
|
||||
self.__writeAttrIntTuple(reader, 'position', self.uiReaderPosition)
|
||||
self.__writeAttrIntTuple(reader, 'size', self.uiReaderSize)
|
||||
|
||||
search = doc.createElement('search')
|
||||
root.appendChild(search)
|
||||
self.__writeAttrInt(search, 'scanMax', self.searchScanMax)
|
||||
self.__writeAttrInt(search, 'resultMax', self.searchResultMax)
|
||||
self.__writeAttrBool(search, 'groupByExp', self.searchGroupByExp)
|
||||
|
||||
anki = doc.createElement('anki')
|
||||
root.appendChild(anki)
|
||||
self.__writeAttrBool(anki, 'showIcon', self.ankiShowIcon)
|
||||
|
||||
for value in self.ankiTags:
|
||||
tag = doc.createElement('tag')
|
||||
anki.appendChild(tag)
|
||||
self.__writeAttrStr(tag, 'value', value)
|
||||
|
||||
if self.ankiFields:
|
||||
model = doc.createElement('model')
|
||||
anki.appendChild(model)
|
||||
for name, value in self.ankiFields.items():
|
||||
field = doc.createElement('field')
|
||||
model.appendChild(field)
|
||||
self.__writeAttrStr(field, 'name', name)
|
||||
self.__writeAttrStr(field, 'value', value)
|
||||
|
||||
try:
|
||||
with open(filename, 'w') as fp:
|
||||
fp.write(doc.toprettyxml(encoding='utf-8'))
|
||||
except IOError:
|
||||
return False
|
||||
|
||||
return True
|
||||
|
||||
|
||||
def defaultFilename(self):
|
||||
return os.path.expanduser('~/.yomichan/preferences.xml')
|
||||
|
||||
|
||||
def filePosition(self, filename):
|
||||
results = filter(lambda x: x[0] == filename, self.generalRecentFiles)
|
||||
return results[0][1] if results else 0
|
||||
|
||||
|
||||
def recentFiles(self):
|
||||
return map(lambda x: x[0], self.generalRecentFiles)
|
||||
|
||||
|
||||
def updateFactTags(self, tags):
|
||||
if tags in self.ankiTags:
|
||||
self.ankiTags.remove(tags)
|
||||
self.ankiTags.insert(0, tags)
|
||||
|
||||
|
||||
def updateRecentFile(self, filename, position):
|
||||
self.generalRecentFiles = filter(lambda x: x[0] != filename, self.generalRecentFiles)
|
||||
self.generalRecentFiles.insert(0, (filename, position))
|
||||
self.generalRecentFiles = self.generalRecentFiles[:self.generalRecentMax]
|
||||
|
||||
|
||||
def clearRecentFiles(self):
|
||||
self.generalRecentFiles = list()
|
||||
|
||||
|
||||
def __readAttrStr(self, node, name, default=None):
|
||||
return node.getAttribute(name) or default
|
||||
|
||||
|
||||
def __readAttrBool(self, node, name, default=False):
|
||||
value = self.__readAttrStr(node, name)
|
||||
return value.lower() == 'true' if value else default
|
||||
|
||||
|
||||
def __readAttrInt(self, node, name, default=0):
|
||||
value = self.__readAttrStr(node, name)
|
||||
return int(value) if value else default
|
||||
|
||||
|
||||
def __readAttrIntTuple(self, node, name, default=None):
|
||||
value = self.__readAttrStr(node, name)
|
||||
return tuple([int(v) for v in value.split(',')]) if value else default
|
||||
|
||||
|
||||
def __writeAttrStr(self, node, name, value):
|
||||
if value != None:
|
||||
node.setAttribute(name, value)
|
||||
|
||||
|
||||
def __writeAttrBool(self, node, name, value):
|
||||
if value != None:
|
||||
node.setAttribute(name, ['false', 'true'][bool(value)])
|
||||
|
||||
|
||||
def __writeAttrInt(self, node, name, value):
|
||||
if value != None:
|
||||
node.setAttribute(name, str(value))
|
||||
|
||||
|
||||
def __writeAttrIntTuple(self, node, name, value):
|
||||
if value != None:
|
||||
node.setAttribute(name, ','.join([str(v) for v in value]))
|
153
core/preferences.py
Normal file
@ -0,0 +1,153 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2011 Alex Yatskov
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
from PyQt4 import QtGui, QtCore
|
||||
from preferences_ui import Ui_DialogPreferences
|
||||
|
||||
|
||||
class DialogPreferences(QtGui.QDialog, Ui_DialogPreferences):
|
||||
def __init__(self, parent, preferences, anki):
|
||||
QtGui.QDialog.__init__(self, parent)
|
||||
self.setupUi(self)
|
||||
|
||||
bindings = [
|
||||
(self, 'accepted()', self.__onAccept),
|
||||
(self.buttonContentColorFg, 'clicked()', self.__onButtonColorFgClicked),
|
||||
(self.buttonContentColorBg, 'clicked()', self.__onButtonColorBgClicked),
|
||||
(self.comboContentFontFamily, 'currentFontChanged(const QFont&)', self.__onFontFamilyChanged),
|
||||
(self.spinContentFontSize, 'valueChanged(int)', self.__onFontSizeChanged)
|
||||
]
|
||||
|
||||
for action, signal, callback in bindings:
|
||||
self.connect(action, QtCore.SIGNAL(signal), callback)
|
||||
|
||||
self.__preferences = preferences
|
||||
self.__anki = anki
|
||||
|
||||
self.__dataToDialog()
|
||||
|
||||
|
||||
def __dataToDialog(self):
|
||||
self.checkGeneralRecentLoad.setChecked(self.__preferences.generalRecentLoad)
|
||||
self.checkGeneralReadingsStrip.setChecked(self.__preferences.generalReadingsStrip)
|
||||
self.checkGeneralFindUpdates.setChecked(self.__preferences.generalFindUpdates)
|
||||
|
||||
self.__updateSampleText()
|
||||
font = self.textContentSample.font()
|
||||
self.comboContentFontFamily.setCurrentFont(font)
|
||||
self.spinContentFontSize.setValue(font.pointSize())
|
||||
|
||||
self.spinSearchScanMax.setValue(self.__preferences.searchScanMax)
|
||||
self.spinSearchResultMax.setValue(self.__preferences.searchResultMax)
|
||||
self.checkSearchGroupByExp.setChecked(self.__preferences.searchGroupByExp)
|
||||
|
||||
self.checkAnkiShowIcon.setChecked(self.__preferences.ankiShowIcon)
|
||||
self.tabAnki.setEnabled(bool(self.__anki))
|
||||
if self.__anki:
|
||||
self.__setAnkiFields(self.__anki.fields(), self.__preferences.ankiFields)
|
||||
|
||||
|
||||
def __dialogToData(self):
|
||||
self.__preferences.generalRecentLoad = self.checkGeneralRecentLoad.isChecked()
|
||||
self.__preferences.generalReadingsStrip = self.checkGeneralReadingsStrip.isChecked()
|
||||
self.__preferences.generalFindUpdates = self.checkGeneralFindUpdates.isChecked()
|
||||
|
||||
self.__preferences.searchScanMax = self.spinSearchScanMax.value()
|
||||
self.__preferences.searchResultMax = self.spinSearchResultMax.value()
|
||||
self.__preferences.searchGroupByExp = self.checkSearchGroupByExp.isChecked()
|
||||
|
||||
self.__preferences.ankiShowIcon = self.checkAnkiShowIcon.isChecked()
|
||||
if self.__anki:
|
||||
self.__preferences.ankiFields = self.__ankiFields()
|
||||
|
||||
|
||||
def __updateSampleText(self):
|
||||
palette = self.textContentSample.palette()
|
||||
palette.setColor(QtGui.QPalette.Base, QtGui.QColor(self.__preferences.uiContentColorBg))
|
||||
palette.setColor(QtGui.QPalette.Text, QtGui.QColor(self.__preferences.uiContentColorFg))
|
||||
self.textContentSample.setPalette(palette)
|
||||
|
||||
font = self.textContentSample.font()
|
||||
font.setFamily(self.__preferences.uiContentFontFamily)
|
||||
font.setPointSize(self.__preferences.uiContentFontSize)
|
||||
self.textContentSample.setFont(font)
|
||||
|
||||
|
||||
def __setAnkiFields(self, fieldsAnki, fieldsPrefs):
|
||||
self.tableAnkiFields.setRowCount(len(fieldsAnki))
|
||||
|
||||
for i, (name, required, unique) in enumerate(fieldsAnki):
|
||||
columns = list()
|
||||
|
||||
itemName = QtGui.QTableWidgetItem(name)
|
||||
itemName.setFlags(QtCore.Qt.ItemIsSelectable)
|
||||
columns.append(itemName)
|
||||
|
||||
itemValue = QtGui.QTableWidgetItem(fieldsPrefs.get(name, unicode()))
|
||||
columns.append(itemValue)
|
||||
|
||||
itemRequired = QtGui.QTableWidgetItem()
|
||||
itemRequired.setFlags(QtCore.Qt.ItemIsUserCheckable)
|
||||
itemRequired.setCheckState(QtCore.Qt.Checked if required else QtCore.Qt.Unchecked)
|
||||
columns.append(itemRequired)
|
||||
|
||||
itemUnique = QtGui.QTableWidgetItem()
|
||||
itemUnique.setFlags(QtCore.Qt.ItemIsUserCheckable)
|
||||
itemUnique.setCheckState(QtCore.Qt.Checked if unique else QtCore.Qt.Unchecked)
|
||||
columns.append(itemUnique)
|
||||
|
||||
for j, column in enumerate(columns):
|
||||
self.tableAnkiFields.setItem(i, j, column)
|
||||
|
||||
|
||||
def __ankiFields(self):
|
||||
result = dict()
|
||||
|
||||
for i in range(0, self.tableAnkiFields.rowCount()):
|
||||
itemName = unicode(self.tableAnkiFields.item(i, 0).text())
|
||||
itemValue = unicode(self.tableAnkiFields.item(i, 1).text())
|
||||
result[itemName] = itemValue
|
||||
|
||||
return result
|
||||
|
||||
|
||||
def __onAccept(self):
|
||||
self.__dialogToData()
|
||||
|
||||
|
||||
def __onButtonColorFgClicked(self):
|
||||
color, ok = QtGui.QColorDialog.getRgba(self.__preferences.uiContentColorFg, self)
|
||||
if ok:
|
||||
self.__preferences.uiContentColorFg = color
|
||||
self.__updateSampleText()
|
||||
|
||||
|
||||
def __onButtonColorBgClicked(self):
|
||||
color, ok = QtGui.QColorDialog.getRgba(self.__preferences.uiContentColorBg, self)
|
||||
if ok:
|
||||
self.__preferences.uiContentColorBg = color
|
||||
self.__updateSampleText()
|
||||
|
||||
|
||||
def __onFontFamilyChanged(self, font):
|
||||
self.__preferences.uiContentFontFamily = font.family()
|
||||
self.__updateSampleText()
|
||||
|
||||
|
||||
def __onFontSizeChanged(self, size):
|
||||
self.__preferences.uiContentFontSize = size
|
||||
self.__updateSampleText()
|
216
core/preferences_ui.py
Normal file
@ -0,0 +1,216 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Form implementation generated from reading ui file 'dev/preferences.ui'
|
||||
#
|
||||
# Created: Sat Feb 19 20:53:26 2011
|
||||
# by: PyQt4 UI code generator 4.8.3
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
||||
from PyQt4 import QtCore, QtGui
|
||||
|
||||
try:
|
||||
_fromUtf8 = QtCore.QString.fromUtf8
|
||||
except AttributeError:
|
||||
_fromUtf8 = lambda s: s
|
||||
|
||||
class Ui_DialogPreferences(object):
|
||||
def setupUi(self, DialogPreferences):
|
||||
DialogPreferences.setObjectName(_fromUtf8("DialogPreferences"))
|
||||
DialogPreferences.resize(600, 300)
|
||||
self.verticalLayout = QtGui.QVBoxLayout(DialogPreferences)
|
||||
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
|
||||
self.tabWidget = QtGui.QTabWidget(DialogPreferences)
|
||||
self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
|
||||
self.tabGeneral = QtGui.QWidget()
|
||||
self.tabGeneral.setObjectName(_fromUtf8("tabGeneral"))
|
||||
self.verticalLayout_4 = QtGui.QVBoxLayout(self.tabGeneral)
|
||||
self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
|
||||
self.checkGeneralRecentLoad = QtGui.QCheckBox(self.tabGeneral)
|
||||
self.checkGeneralRecentLoad.setObjectName(_fromUtf8("checkGeneralRecentLoad"))
|
||||
self.verticalLayout_4.addWidget(self.checkGeneralRecentLoad)
|
||||
self.checkGeneralReadingsStrip = QtGui.QCheckBox(self.tabGeneral)
|
||||
self.checkGeneralReadingsStrip.setObjectName(_fromUtf8("checkGeneralReadingsStrip"))
|
||||
self.verticalLayout_4.addWidget(self.checkGeneralReadingsStrip)
|
||||
self.checkGeneralFindUpdates = QtGui.QCheckBox(self.tabGeneral)
|
||||
self.checkGeneralFindUpdates.setObjectName(_fromUtf8("checkGeneralFindUpdates"))
|
||||
self.verticalLayout_4.addWidget(self.checkGeneralFindUpdates)
|
||||
spacerItem = QtGui.QSpacerItem(20, 139, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
||||
self.verticalLayout_4.addItem(spacerItem)
|
||||
self.tabWidget.addTab(self.tabGeneral, _fromUtf8(""))
|
||||
self.tabAppearance = QtGui.QWidget()
|
||||
self.tabAppearance.setObjectName(_fromUtf8("tabAppearance"))
|
||||
self.verticalLayout_3 = QtGui.QVBoxLayout(self.tabAppearance)
|
||||
self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
|
||||
self.horizontalLayout = QtGui.QHBoxLayout()
|
||||
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
|
||||
self.comboContentFontFamily = QtGui.QFontComboBox(self.tabAppearance)
|
||||
self.comboContentFontFamily.setObjectName(_fromUtf8("comboContentFontFamily"))
|
||||
self.horizontalLayout.addWidget(self.comboContentFontFamily)
|
||||
self.spinContentFontSize = QtGui.QSpinBox(self.tabAppearance)
|
||||
self.spinContentFontSize.setMinimum(1)
|
||||
self.spinContentFontSize.setMaximum(72)
|
||||
self.spinContentFontSize.setProperty(_fromUtf8("value"), 12)
|
||||
self.spinContentFontSize.setObjectName(_fromUtf8("spinContentFontSize"))
|
||||
self.horizontalLayout.addWidget(self.spinContentFontSize)
|
||||
self.buttonContentColorFg = QtGui.QPushButton(self.tabAppearance)
|
||||
self.buttonContentColorFg.setObjectName(_fromUtf8("buttonContentColorFg"))
|
||||
self.horizontalLayout.addWidget(self.buttonContentColorFg)
|
||||
self.buttonContentColorBg = QtGui.QPushButton(self.tabAppearance)
|
||||
self.buttonContentColorBg.setObjectName(_fromUtf8("buttonContentColorBg"))
|
||||
self.horizontalLayout.addWidget(self.buttonContentColorBg)
|
||||
self.verticalLayout_3.addLayout(self.horizontalLayout)
|
||||
self.textContentSample = QtGui.QPlainTextEdit(self.tabAppearance)
|
||||
self.textContentSample.setObjectName(_fromUtf8("textContentSample"))
|
||||
self.verticalLayout_3.addWidget(self.textContentSample)
|
||||
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.setObjectName(_fromUtf8("tabAnki"))
|
||||
self.verticalLayout_5 = QtGui.QVBoxLayout(self.tabAnki)
|
||||
self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
|
||||
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.setObjectName(_fromUtf8("horizontalLayout_3"))
|
||||
self.tableAnkiFields = QtGui.QTableWidget(self.tabAnki)
|
||||
self.tableAnkiFields.setObjectName(_fromUtf8("tableAnkiFields"))
|
||||
self.tableAnkiFields.setColumnCount(4)
|
||||
self.tableAnkiFields.setRowCount(0)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
self.tableAnkiFields.setHorizontalHeaderItem(0, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
self.tableAnkiFields.setHorizontalHeaderItem(1, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
self.tableAnkiFields.setHorizontalHeaderItem(2, item)
|
||||
item = QtGui.QTableWidgetItem()
|
||||
self.tableAnkiFields.setHorizontalHeaderItem(3, item)
|
||||
self.horizontalLayout_3.addWidget(self.tableAnkiFields)
|
||||
self.verticalLayout_2 = QtGui.QVBoxLayout()
|
||||
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_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.setWeight(75)
|
||||
font.setBold(True)
|
||||
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.setWeight(75)
|
||||
font.setBold(True)
|
||||
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.setWeight(75)
|
||||
font.setBold(True)
|
||||
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)
|
||||
font = QtGui.QFont()
|
||||
font.setWeight(75)
|
||||
font.setBold(True)
|
||||
self.label.setFont(font)
|
||||
self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.label.setObjectName(_fromUtf8("label"))
|
||||
self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
|
||||
self.verticalLayout_2.addLayout(self.gridLayout)
|
||||
spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
||||
self.verticalLayout_2.addItem(spacerItem2)
|
||||
self.horizontalLayout_3.addLayout(self.verticalLayout_2)
|
||||
self.verticalLayout_5.addLayout(self.horizontalLayout_3)
|
||||
self.checkAnkiShowIcon = QtGui.QCheckBox(self.tabAnki)
|
||||
self.checkAnkiShowIcon.setObjectName(_fromUtf8("checkAnkiShowIcon"))
|
||||
self.verticalLayout_5.addWidget(self.checkAnkiShowIcon)
|
||||
self.tabWidget.addTab(self.tabAnki, _fromUtf8(""))
|
||||
self.verticalLayout.addWidget(self.tabWidget)
|
||||
self.buttonBox = QtGui.QDialogButtonBox(DialogPreferences)
|
||||
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
|
||||
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
|
||||
self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
|
||||
self.verticalLayout.addWidget(self.buttonBox)
|
||||
|
||||
self.retranslateUi(DialogPreferences)
|
||||
self.tabWidget.setCurrentIndex(0)
|
||||
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), DialogPreferences.accept)
|
||||
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), DialogPreferences.reject)
|
||||
QtCore.QMetaObject.connectSlotsByName(DialogPreferences)
|
||||
|
||||
def retranslateUi(self, DialogPreferences):
|
||||
DialogPreferences.setWindowTitle(QtGui.QApplication.translate("DialogPreferences", "Preferences", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.checkGeneralRecentLoad.setText(QtGui.QApplication.translate("DialogPreferences", "Load recent file on startup", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.checkGeneralReadingsStrip.setText(QtGui.QApplication.translate("DialogPreferences", "Strip readings in from loaded files", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.checkGeneralFindUpdates.setText(QtGui.QApplication.translate("DialogPreferences", "Check for updates on startup", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabGeneral), QtGui.QApplication.translate("DialogPreferences", "General", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.buttonContentColorFg.setText(QtGui.QApplication.translate("DialogPreferences", "Foreground...", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.buttonContentColorBg.setText(QtGui.QApplication.translate("DialogPreferences", "Background...", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.textContentSample.setPlainText(QtGui.QApplication.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, QtGui.QApplication.UnicodeUTF8))
|
||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabAppearance), QtGui.QApplication.translate("DialogPreferences", "Appearance", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.label_5.setText(QtGui.QApplication.translate("DialogPreferences", "Maximum scan length", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.label_6.setText(QtGui.QApplication.translate("DialogPreferences", "Maximum result count", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.checkSearchGroupByExp.setText(QtGui.QApplication.translate("DialogPreferences", "Group results by expression", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabSearch), QtGui.QApplication.translate("DialogPreferences", "Search", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.label_11.setText(QtGui.QApplication.translate("DialogPreferences", "Specify how your deck\'s model fields are populated when adding facts", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.tableAnkiFields.horizontalHeaderItem(0).setText(QtGui.QApplication.translate("DialogPreferences", "Field", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.tableAnkiFields.horizontalHeaderItem(1).setText(QtGui.QApplication.translate("DialogPreferences", "Value", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.tableAnkiFields.horizontalHeaderItem(2).setText(QtGui.QApplication.translate("DialogPreferences", "Required", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.tableAnkiFields.horizontalHeaderItem(3).setText(QtGui.QApplication.translate("DialogPreferences", "Unique", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.label_7.setText(QtGui.QApplication.translate("DialogPreferences", "%e", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.label_2.setText(QtGui.QApplication.translate("DialogPreferences", "Reading", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.label_3.setText(QtGui.QApplication.translate("DialogPreferences", "Glossary", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.label_9.setText(QtGui.QApplication.translate("DialogPreferences", "%g", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.label_4.setText(QtGui.QApplication.translate("DialogPreferences", "Sentence", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.label_10.setText(QtGui.QApplication.translate("DialogPreferences", "%s", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.label_8.setText(QtGui.QApplication.translate("DialogPreferences", "%r", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.label.setText(QtGui.QApplication.translate("DialogPreferences", "Expression", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.checkAnkiShowIcon.setText(QtGui.QApplication.translate("DialogPreferences", "Show icon in toolbar", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabAnki), QtGui.QApplication.translate("DialogPreferences", "Anki", None, QtGui.QApplication.UnicodeUTF8))
|
||||
|
||||
import resources_rc
|
498
core/reader.py
Normal file
@ -0,0 +1,498 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2011 Alex Yatskov
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
import os
|
||||
from PyQt4 import QtGui, QtCore
|
||||
from reader_ui import Ui_MainWindowReader
|
||||
from preferences import DialogPreferences
|
||||
from preference_data import Preferences
|
||||
from update import UpdateFinder
|
||||
from about import DialogAbout
|
||||
from constants import constants
|
||||
import reader_util
|
||||
|
||||
|
||||
class MainWindowReader(QtGui.QMainWindow, Ui_MainWindowReader):
|
||||
class State:
|
||||
def __init__(self):
|
||||
self.filename = unicode()
|
||||
self.definitions = list()
|
||||
self.searchPosition = 0
|
||||
self.searchText = unicode()
|
||||
self.scanPosition = 0
|
||||
|
||||
|
||||
def __init__(self, parent=None, languages=None, filename=None, preferences=None, anki=None, closed=None, updated=None):
|
||||
QtGui.QMainWindow.__init__(self, parent)
|
||||
self.setupUi(self)
|
||||
|
||||
self.textContent.mouseMoveEvent = self.onContentMouseMove
|
||||
self.textContent.mousePressEvent = self.onContentMousePress
|
||||
self.dockAnki.setEnabled(bool(anki))
|
||||
|
||||
if preferences:
|
||||
self.preferences = preferences
|
||||
else:
|
||||
self.preferences = Preferences()
|
||||
self.preferences.load()
|
||||
|
||||
self.updateFinder = UpdateFinder()
|
||||
self.state = self.State()
|
||||
self.languages = languages
|
||||
self.addedFacts = list()
|
||||
self.anki = anki
|
||||
self.closed = closed
|
||||
self.updated = updated
|
||||
self.zoom = 0
|
||||
|
||||
self.applyPreferences()
|
||||
self.updateRecentFiles()
|
||||
self.updateDefinitions()
|
||||
|
||||
if filename:
|
||||
self.openFile(filename)
|
||||
elif self.preferences.generalRecentLoad:
|
||||
filenames = self.preferences.recentFiles()
|
||||
if filenames:
|
||||
self.openFile(filenames[0])
|
||||
|
||||
if self.preferences.generalFindUpdates:
|
||||
self.updateFinder.start()
|
||||
|
||||
bindings = [
|
||||
(self.actionOpen, 'triggered()', self.onActionOpen),
|
||||
(self.actionPreferences, 'triggered()', self.onActionPreferences),
|
||||
(self.actionAbout, 'triggered()', self.onActionAbout),
|
||||
(self.actionZoomIn, 'triggered()', self.onActionZoomIn),
|
||||
(self.actionZoomOut, 'triggered()', self.onActionZoomOut),
|
||||
(self.actionZoomReset, 'triggered()', self.onActionZoomReset),
|
||||
(self.actionFind, 'triggered()', self.onActionFind),
|
||||
(self.actionFindNext, 'triggered()', self.onActionFindNext),
|
||||
(self.actionToggleWrap, 'toggled(bool)', self.onActionToggleWrap),
|
||||
(self.actionCopyDefinition, 'triggered()', self.onActionCopyDefinition),
|
||||
(self.actionCopyAllDefinitions, 'triggered()', self.onActionCopyAllDefinitions),
|
||||
(self.actionCopySentence, 'triggered()', self.onActionCopySentence),
|
||||
(self.actionHomepage, 'triggered()', self.onActionHomepage),
|
||||
(self.actionFeedback, 'triggered()', self.onActionFeedback),
|
||||
(self.textDefinitions, 'anchorClicked(const QUrl&)', self.onDefinitionsAnchorClicked),
|
||||
(self.textDefinitionSearch, 'returnPressed()', self.onDefinitionSearchReturn),
|
||||
(self.listDefinitions, 'itemDoubleClicked(QListWidgetItem *)', self.onDefinitionDoubleClicked),
|
||||
(self.updateFinder, 'updateSearchResult', self.onUpdaterSearchResult)
|
||||
]
|
||||
|
||||
for action, signal, callback in bindings:
|
||||
self.connect(action, QtCore.SIGNAL(signal), callback)
|
||||
|
||||
|
||||
def applyPreferences(self):
|
||||
if self.preferences.uiReaderState != None:
|
||||
self.restoreState(QtCore.QByteArray.fromBase64(self.preferences.uiReaderState))
|
||||
if self.preferences.uiReaderPosition != None:
|
||||
self.move(QtCore.QPoint(*self.preferences.uiReaderPosition))
|
||||
if self.preferences.uiReaderSize != None:
|
||||
self.resize(QtCore.QSize(*self.preferences.uiReaderSize))
|
||||
|
||||
for tags in self.preferences.ankiTags:
|
||||
self.comboTags.addItem(tags)
|
||||
|
||||
self.applyPreferencesContent()
|
||||
|
||||
|
||||
def applyPreferencesContent(self):
|
||||
palette = self.textContent.palette()
|
||||
palette.setColor(QtGui.QPalette.Base, QtGui.QColor(self.preferences.uiContentColorBg))
|
||||
palette.setColor(QtGui.QPalette.Text, QtGui.QColor(self.preferences.uiContentColorFg))
|
||||
self.textContent.setPalette(palette)
|
||||
|
||||
font = self.textContent.font()
|
||||
font.setFamily(self.preferences.uiContentFontFamily)
|
||||
font.setPointSize(self.preferences.uiContentFontSize + self.zoom)
|
||||
self.textContent.setFont(font)
|
||||
|
||||
self.actionToggleWrap.setChecked(self.preferences.uiContentWordWrap)
|
||||
|
||||
|
||||
def closeEvent(self, event):
|
||||
self.closeFile()
|
||||
self.preferences.uiReaderState = self.saveState().toBase64()
|
||||
self.preferences.save()
|
||||
|
||||
if self.closed:
|
||||
self.closed()
|
||||
|
||||
|
||||
def keyPressEvent(self, event):
|
||||
if self.dockDefinitions.isVisible() and event.key() == QtCore.Qt.Key_Shift:
|
||||
self.updateSampleFromPosition()
|
||||
|
||||
|
||||
def dragEnterEvent(self, event):
|
||||
if event.mimeData().hasUrls():
|
||||
event.acceptProposedAction()
|
||||
|
||||
|
||||
def dropEvent(self, event):
|
||||
url = event.mimeData().urls()[0]
|
||||
self.openFile(url.toLocalFile())
|
||||
|
||||
|
||||
def moveEvent(self, event):
|
||||
self.preferences.uiReaderPosition = (event.pos().x(), event.pos().y())
|
||||
|
||||
|
||||
def resizeEvent(self, event):
|
||||
self.preferences.uiReaderSize = (event.size().width(), event.size().height())
|
||||
|
||||
|
||||
def onActionOpen(self):
|
||||
filename = QtGui.QFileDialog.getOpenFileName(
|
||||
parent=self,
|
||||
caption='Select a file to open',
|
||||
filter='Text files (*.txt);;All files (*.*)'
|
||||
)
|
||||
if not filename.isNull():
|
||||
self.openFile(filename)
|
||||
|
||||
|
||||
def onActionPreferences(self):
|
||||
dialog = DialogPreferences(self, self.preferences, self.anki)
|
||||
if dialog.exec_() == QtGui.QDialog.Accepted:
|
||||
self.applyPreferencesContent()
|
||||
if self.updated:
|
||||
self.updated()
|
||||
|
||||
|
||||
def onActionAbout(self):
|
||||
dialog = DialogAbout(self)
|
||||
dialog.exec_()
|
||||
|
||||
|
||||
def onActionZoomIn(self):
|
||||
font = self.textContent.font()
|
||||
if font.pointSize() < 72:
|
||||
font.setPointSize(font.pointSize() + 1)
|
||||
self.textContent.setFont(font)
|
||||
self.zoom += 1
|
||||
|
||||
|
||||
def onActionZoomOut(self):
|
||||
font = self.textContent.font()
|
||||
if font.pointSize() > 1:
|
||||
font.setPointSize(font.pointSize() - 1)
|
||||
self.textContent.setFont(font)
|
||||
self.zoom -= 1
|
||||
|
||||
|
||||
def onActionZoomReset(self):
|
||||
if self.zoom:
|
||||
font = self.textContent.font()
|
||||
font.setPointSize(font.pointSize() - self.zoom)
|
||||
self.textContent.setFont(font)
|
||||
self.zoom = 0
|
||||
|
||||
|
||||
def onActionFind(self):
|
||||
searchText = self.state.searchText
|
||||
|
||||
cursor = self.textContent.textCursor()
|
||||
if cursor.hasSelection():
|
||||
searchText = cursor.selectedText()
|
||||
|
||||
searchText, ok = QtGui.QInputDialog.getText(self, 'Find', 'Search text:', text=searchText)
|
||||
if searchText and ok:
|
||||
self.findText(searchText)
|
||||
|
||||
|
||||
def onActionFindNext(self):
|
||||
if self.state.searchText:
|
||||
self.findText(self.state.searchText)
|
||||
|
||||
|
||||
def onActionToggleWrap(self, wrap):
|
||||
mode = QtGui.QPlainTextEdit.WidgetWidth if wrap else QtGui.QPlainTextEdit.NoWrap
|
||||
self.preferences.uiContentWordWrap = wrap
|
||||
self.textContent.setLineWrapMode(wrap)
|
||||
|
||||
|
||||
def onActionCopyDefinition(self):
|
||||
reader_util.copyDefinitions(self.state.definitions[:1])
|
||||
|
||||
|
||||
def onActionCopyAllDefinitions(self):
|
||||
reader_util.copyDefinitions(self.state.definitions)
|
||||
|
||||
|
||||
def onActionCopySentence(self):
|
||||
content = unicode(self.textContent.toPlainText())
|
||||
sentence = reader_util.findSentence(content, self.state.scanPosition)
|
||||
QtGui.QApplication.clipboard().setText(sentence)
|
||||
|
||||
|
||||
def onActionHomepage(self):
|
||||
url = QtCore.QUrl(constants['urlHomepage'])
|
||||
QtGui.QDesktopServices().openUrl(url)
|
||||
|
||||
|
||||
def onActionFeedback(self):
|
||||
url = QtCore.QUrl(constants['urlFeedback'])
|
||||
QtGui.QDesktopServices().openUrl(url)
|
||||
|
||||
|
||||
def onDefinitionsAnchorClicked(self, url):
|
||||
command, index = unicode(url.toString()).split(':')
|
||||
definition = self.state.definitions[int(index)]
|
||||
|
||||
if command == 'addFactExpression':
|
||||
markup = reader_util.buildFactMarkupExpression(
|
||||
definition.expression,
|
||||
definition.reading,
|
||||
definition.glossary,
|
||||
definition.sentence
|
||||
)
|
||||
self.ankiAddFact(markup)
|
||||
if command == 'addFactReading':
|
||||
markup = reader_util.buildFactMarkupReading(
|
||||
definition.reading,
|
||||
definition.glossary,
|
||||
definition.sentence
|
||||
)
|
||||
self.ankiAddFact(markup)
|
||||
elif command == 'copyDefinition':
|
||||
reader_util.copyDefinitions([definition])
|
||||
|
||||
|
||||
def onDefinitionSearchReturn(self):
|
||||
text = unicode(self.textDefinitionSearch.text())
|
||||
definitions, length = self.language().wordSearch(
|
||||
text,
|
||||
self.preferences.searchResultMax,
|
||||
self.preferences.searchGroupByExp
|
||||
)
|
||||
self.state.definitions = reader_util.convertDefinitions(definitions)
|
||||
self.updateDefinitions()
|
||||
|
||||
|
||||
def onDefinitionDoubleClicked(self, item):
|
||||
if self.anki:
|
||||
row = self.listDefinitions.row(item)
|
||||
self.anki.browseFact(self.addedFacts[row])
|
||||
|
||||
|
||||
def onUpdaterSearchResult(self, result):
|
||||
if result and result > constants['version']:
|
||||
QtGui.QMessageBox.information(
|
||||
self,
|
||||
'Yomichan',
|
||||
'A new version of Yomichan is available for download!\n\nYou can download this update ({0} > {1}) ' \
|
||||
'from "Shared Plugins" in Anki or directly from the Yomichan homepage.'.format(constants['version'], result)
|
||||
)
|
||||
|
||||
|
||||
def onContentMouseMove(self, event):
|
||||
QtGui.QPlainTextEdit.mouseMoveEvent(self.textContent, event)
|
||||
self.updateSampleMouseEvent(event)
|
||||
|
||||
|
||||
def onContentMousePress(self, event):
|
||||
QtGui.QPlainTextEdit.mousePressEvent(self.textContent, event)
|
||||
self.updateSampleMouseEvent(event)
|
||||
|
||||
|
||||
def openFile(self, filename):
|
||||
filename = unicode(filename)
|
||||
try:
|
||||
with open(filename.encode('utf-8'), 'rb') as fp:
|
||||
content = fp.read()
|
||||
except IOError:
|
||||
self.setStatus(u'Failed to load file {0}'.format(filename))
|
||||
QtGui.QMessageBox.critical(self, 'Yomichan', 'Cannot open file for read')
|
||||
return
|
||||
|
||||
self.closeFile()
|
||||
|
||||
self.state.filename = filename
|
||||
self.state.scanPosition = self.preferences.filePosition(filename)
|
||||
if self.state.scanPosition > len(content):
|
||||
self.state.scanPosition = 0
|
||||
|
||||
self.updateRecentFile()
|
||||
self.updateRecentFiles()
|
||||
|
||||
content, encoding = reader_util.decodeContent(content)
|
||||
if self.preferences.generalReadingsStrip:
|
||||
content = reader_util.stripContentReadings(content)
|
||||
|
||||
self.textContent.setPlainText(content)
|
||||
if self.state.scanPosition > 0:
|
||||
cursor = self.textContent.textCursor()
|
||||
cursor.setPosition(self.state.scanPosition)
|
||||
self.textContent.setTextCursor(cursor)
|
||||
self.textContent.centerCursor()
|
||||
|
||||
self.setStatus(u'Loaded file {0}'.format(filename))
|
||||
self.setWindowTitle(u'Yomichan - {0} ({1})'.format(os.path.split(filename)[1], encoding))
|
||||
|
||||
def closeFile(self):
|
||||
self.setWindowTitle('Yomichan')
|
||||
self.textContent.setPlainText(unicode())
|
||||
self.updateRecentFile(False)
|
||||
self.state = self.State()
|
||||
|
||||
|
||||
def findText(self, text):
|
||||
content = self.textContent.toPlainText()
|
||||
index = content.indexOf(text, self.state.searchPosition)
|
||||
|
||||
if index == -1:
|
||||
wrap = self.state.searchPosition != 0
|
||||
self.state.searchPosition = 0
|
||||
if wrap:
|
||||
self.findText(text)
|
||||
else:
|
||||
QtGui.QMessageBox.information(self, 'Yomichan', 'Search text not found')
|
||||
else:
|
||||
self.state.searchPosition = index + len(text)
|
||||
cursor = self.textContent.textCursor()
|
||||
cursor.setPosition(index, QtGui.QTextCursor.MoveAnchor)
|
||||
cursor.setPosition(self.state.searchPosition, QtGui.QTextCursor.KeepAnchor)
|
||||
self.textContent.setTextCursor(cursor)
|
||||
|
||||
self.state.searchText = text
|
||||
|
||||
|
||||
def ankiAddFact(self, markup):
|
||||
if not self.anki:
|
||||
return False
|
||||
|
||||
fields = reader_util.replaceMarkupInFields(self.preferences.ankiFields, markup)
|
||||
|
||||
tags = self.anki.cleanupTags(unicode(self.comboTags.currentText()))
|
||||
tagIndex = self.comboTags.findText(tags)
|
||||
if tagIndex > 0:
|
||||
self.comboTags.removeItem(tagIndex)
|
||||
if tagIndex != 0:
|
||||
self.comboTags.insertItem(0, tags)
|
||||
self.preferences.updateFactTags(tags)
|
||||
|
||||
factId = self.anki.addFact(fields, tags)
|
||||
if not factId:
|
||||
return False
|
||||
|
||||
expression, reading = markup['%e'], markup['%r']
|
||||
summary = expression
|
||||
if reading:
|
||||
summary = u'{0} [{1}]'.format(expression, reading)
|
||||
|
||||
self.addedFacts.append(factId)
|
||||
self.listDefinitions.addItem(summary)
|
||||
self.listDefinitions.setCurrentRow(self.listDefinitions.count() - 1)
|
||||
self.setStatus(u'Added expression {0}; {1} new fact(s) total'.format(expression, len(self.addedFacts)))
|
||||
|
||||
self.updateDefinitions()
|
||||
return True
|
||||
|
||||
|
||||
def ankiIsFactValid(self, markup):
|
||||
if not self.anki:
|
||||
return False
|
||||
|
||||
fields = reader_util.replaceMarkupInFields(self.preferences.ankiFields, markup)
|
||||
return self.anki.canAddFact(fields)
|
||||
|
||||
|
||||
def updateSampleMouseEvent(self, event):
|
||||
cursor = self.textContent.cursorForPosition(event.pos())
|
||||
self.state.scanPosition = cursor.position()
|
||||
requested = event.buttons() & QtCore.Qt.MidButton or event.modifiers() & QtCore.Qt.ShiftModifier
|
||||
if self.dockDefinitions.isVisible() and requested:
|
||||
self.updateSampleFromPosition()
|
||||
|
||||
|
||||
def updateSampleFromPosition(self):
|
||||
samplePosStart = self.state.scanPosition
|
||||
samplePosEnd = self.state.scanPosition + self.preferences.searchScanMax
|
||||
|
||||
cursor = self.textContent.textCursor()
|
||||
content = unicode(self.textContent.toPlainText())
|
||||
contentSample = content[samplePosStart:samplePosEnd]
|
||||
|
||||
if not contentSample or unicode.isspace(contentSample[0]):
|
||||
cursor.clearSelection()
|
||||
self.textContent.setTextCursor(cursor)
|
||||
return
|
||||
|
||||
contentSampleFlat = contentSample.replace('\n', unicode())
|
||||
definitionsMatched, lengthMatched = self.language().wordSearch(
|
||||
contentSampleFlat,
|
||||
self.preferences.searchResultMax,
|
||||
self.preferences.searchGroupByExp
|
||||
)
|
||||
sentence = reader_util.findSentence(content, samplePosStart)
|
||||
|
||||
self.state.definitions = reader_util.convertDefinitions(definitionsMatched, sentence)
|
||||
self.updateDefinitions()
|
||||
|
||||
lengthSelect = 0
|
||||
if lengthMatched:
|
||||
for c in contentSample:
|
||||
lengthSelect += 1
|
||||
if c != '\n':
|
||||
lengthMatched -= 1
|
||||
if lengthMatched <= 0:
|
||||
break
|
||||
|
||||
cursor.setPosition(samplePosStart, QtGui.QTextCursor.MoveAnchor)
|
||||
cursor.setPosition(samplePosStart + lengthSelect, QtGui.QTextCursor.KeepAnchor)
|
||||
self.textContent.setTextCursor(cursor)
|
||||
|
||||
|
||||
def clearRecentFiles(self):
|
||||
self.preferences.clearFiles()
|
||||
self.updateRecentFiles()
|
||||
|
||||
|
||||
def updateRecentFiles(self):
|
||||
self.menuOpenRecent.clear()
|
||||
|
||||
filenames = self.preferences.recentFiles()
|
||||
if not filenames:
|
||||
return
|
||||
|
||||
for filename in filenames:
|
||||
self.menuOpenRecent.addAction(filename, (lambda fn=filename: self.openFile(fn)))
|
||||
|
||||
self.menuOpenRecent.addSeparator()
|
||||
self.menuOpenRecent.addAction('Clear file history', self.clearRecentFiles)
|
||||
|
||||
|
||||
def updateRecentFile(self, addIfNeeded=True):
|
||||
if self.state.filename:
|
||||
if addIfNeeded or self.state.filename in self.preferences.recentFiles():
|
||||
self.preferences.updateRecentFile(self.state.filename, self.state.scanPosition)
|
||||
|
||||
|
||||
def updateDefinitions(self):
|
||||
html = reader_util.buildDefinitionsHtml(self.state.definitions, self.ankiIsFactValid)
|
||||
self.textDefinitions.setHtml(html)
|
||||
|
||||
|
||||
def setStatus(self, status):
|
||||
self.statusBar.showMessage(status)
|
||||
|
||||
|
||||
def language(self):
|
||||
return self.languages['Japanese']
|
284
core/reader_ui.py
Normal file
@ -0,0 +1,284 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Form implementation generated from reading ui file 'dev/reader.ui'
|
||||
#
|
||||
# Created: Sun Feb 20 11:54:17 2011
|
||||
# by: PyQt4 UI code generator 4.8.3
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
||||
from PyQt4 import QtCore, QtGui
|
||||
|
||||
try:
|
||||
_fromUtf8 = QtCore.QString.fromUtf8
|
||||
except AttributeError:
|
||||
_fromUtf8 = lambda s: s
|
||||
|
||||
class Ui_MainWindowReader(object):
|
||||
def setupUi(self, MainWindowReader):
|
||||
MainWindowReader.setObjectName(_fromUtf8("MainWindowReader"))
|
||||
MainWindowReader.resize(900, 650)
|
||||
MainWindowReader.setAcceptDrops(True)
|
||||
icon = QtGui.QIcon()
|
||||
icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/logos/logos/logo32x32.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||
MainWindowReader.setWindowIcon(icon)
|
||||
self.centralwidget = QtGui.QWidget(MainWindowReader)
|
||||
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
|
||||
self.horizontalLayout = QtGui.QHBoxLayout(self.centralwidget)
|
||||
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
|
||||
self.textContent = QtGui.QPlainTextEdit(self.centralwidget)
|
||||
self.textContent.setMouseTracking(True)
|
||||
self.textContent.setReadOnly(True)
|
||||
self.textContent.setObjectName(_fromUtf8("textContent"))
|
||||
self.horizontalLayout.addWidget(self.textContent)
|
||||
MainWindowReader.setCentralWidget(self.centralwidget)
|
||||
self.menubar = QtGui.QMenuBar(MainWindowReader)
|
||||
self.menubar.setGeometry(QtCore.QRect(0, 0, 900, 25))
|
||||
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"))
|
||||
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)
|
||||
self.dockDefinitions = QtGui.QDockWidget(MainWindowReader)
|
||||
self.dockDefinitions.setObjectName(_fromUtf8("dockDefinitions"))
|
||||
self.dockWidgetContents = QtGui.QWidget()
|
||||
self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents"))
|
||||
self.verticalLayout = QtGui.QVBoxLayout(self.dockWidgetContents)
|
||||
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
|
||||
self.textDefinitions = QtGui.QTextBrowser(self.dockWidgetContents)
|
||||
self.textDefinitions.setAcceptDrops(False)
|
||||
self.textDefinitions.setOpenLinks(False)
|
||||
self.textDefinitions.setObjectName(_fromUtf8("textDefinitions"))
|
||||
self.verticalLayout.addWidget(self.textDefinitions)
|
||||
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)
|
||||
self.textDefinitionSearch = QtGui.QLineEdit(self.dockWidgetContents)
|
||||
self.textDefinitionSearch.setObjectName(_fromUtf8("textDefinitionSearch"))
|
||||
self.horizontalLayout_3.addWidget(self.textDefinitionSearch)
|
||||
self.verticalLayout.addLayout(self.horizontalLayout_3)
|
||||
self.dockDefinitions.setWidget(self.dockWidgetContents)
|
||||
MainWindowReader.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.dockDefinitions)
|
||||
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)
|
||||
self.actionOpen = QtGui.QAction(MainWindowReader)
|
||||
icon1 = QtGui.QIcon()
|
||||
icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/images/icons/folder_page.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||
self.actionOpen.setIcon(icon1)
|
||||
self.actionOpen.setIconVisibleInMenu(True)
|
||||
self.actionOpen.setObjectName(_fromUtf8("actionOpen"))
|
||||
self.actionQuit = QtGui.QAction(MainWindowReader)
|
||||
icon2 = QtGui.QIcon()
|
||||
icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/images/icons/cross.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||
self.actionQuit.setIcon(icon2)
|
||||
self.actionQuit.setIconVisibleInMenu(True)
|
||||
self.actionQuit.setObjectName(_fromUtf8("actionQuit"))
|
||||
self.actionPreferences = QtGui.QAction(MainWindowReader)
|
||||
icon3 = QtGui.QIcon()
|
||||
icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/images/icons/wrench.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||
self.actionPreferences.setIcon(icon3)
|
||||
self.actionPreferences.setIconVisibleInMenu(True)
|
||||
self.actionPreferences.setObjectName(_fromUtf8("actionPreferences"))
|
||||
self.actionAbout = QtGui.QAction(MainWindowReader)
|
||||
icon4 = QtGui.QIcon()
|
||||
icon4.addPixmap(QtGui.QPixmap(_fromUtf8(":/images/icons/information.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||
self.actionAbout.setIcon(icon4)
|
||||
self.actionAbout.setIconVisibleInMenu(True)
|
||||
self.actionAbout.setObjectName(_fromUtf8("actionAbout"))
|
||||
self.actionZoomIn = QtGui.QAction(MainWindowReader)
|
||||
icon5 = QtGui.QIcon()
|
||||
icon5.addPixmap(QtGui.QPixmap(_fromUtf8(":/images/icons/magnifier_zoom_in.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||
self.actionZoomIn.setIcon(icon5)
|
||||
self.actionZoomIn.setIconVisibleInMenu(True)
|
||||
self.actionZoomIn.setObjectName(_fromUtf8("actionZoomIn"))
|
||||
self.actionZoomOut = QtGui.QAction(MainWindowReader)
|
||||
icon6 = QtGui.QIcon()
|
||||
icon6.addPixmap(QtGui.QPixmap(_fromUtf8(":/images/icons/magifier_zoom_out.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||
self.actionZoomOut.setIcon(icon6)
|
||||
self.actionZoomOut.setIconVisibleInMenu(True)
|
||||
self.actionZoomOut.setObjectName(_fromUtf8("actionZoomOut"))
|
||||
self.actionZoomReset = QtGui.QAction(MainWindowReader)
|
||||
icon7 = QtGui.QIcon()
|
||||
icon7.addPixmap(QtGui.QPixmap(_fromUtf8(":/images/icons/magnifier.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||
self.actionZoomReset.setIcon(icon7)
|
||||
self.actionZoomReset.setIconVisibleInMenu(True)
|
||||
self.actionZoomReset.setObjectName(_fromUtf8("actionZoomReset"))
|
||||
self.actionFind = QtGui.QAction(MainWindowReader)
|
||||
icon8 = QtGui.QIcon()
|
||||
icon8.addPixmap(QtGui.QPixmap(_fromUtf8(":/images/icons/find.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||
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"))
|
||||
self.actionToggleDefinitions = QtGui.QAction(MainWindowReader)
|
||||
self.actionToggleDefinitions.setCheckable(True)
|
||||
self.actionToggleDefinitions.setObjectName(_fromUtf8("actionToggleDefinitions"))
|
||||
self.actionCopyDefinition = QtGui.QAction(MainWindowReader)
|
||||
icon9 = QtGui.QIcon()
|
||||
icon9.addPixmap(QtGui.QPixmap(_fromUtf8(":/images/icons/page_copy.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||
self.actionCopyDefinition.setIcon(icon9)
|
||||
self.actionCopyDefinition.setIconVisibleInMenu(True)
|
||||
self.actionCopyDefinition.setObjectName(_fromUtf8("actionCopyDefinition"))
|
||||
self.actionCopyAllDefinitions = QtGui.QAction(MainWindowReader)
|
||||
self.actionCopyAllDefinitions.setObjectName(_fromUtf8("actionCopyAllDefinitions"))
|
||||
self.actionHomepage = QtGui.QAction(MainWindowReader)
|
||||
icon10 = QtGui.QIcon()
|
||||
icon10.addPixmap(QtGui.QPixmap(_fromUtf8(":/images/icons/world_go.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||
self.actionHomepage.setIcon(icon10)
|
||||
self.actionHomepage.setIconVisibleInMenu(True)
|
||||
self.actionHomepage.setObjectName(_fromUtf8("actionHomepage"))
|
||||
self.actionToggleAnki = QtGui.QAction(MainWindowReader)
|
||||
self.actionToggleAnki.setCheckable(True)
|
||||
self.actionToggleAnki.setObjectName(_fromUtf8("actionToggleAnki"))
|
||||
self.actionCopySentence = QtGui.QAction(MainWindowReader)
|
||||
self.actionCopySentence.setObjectName(_fromUtf8("actionCopySentence"))
|
||||
self.actionFeedback = QtGui.QAction(MainWindowReader)
|
||||
icon11 = QtGui.QIcon()
|
||||
icon11.addPixmap(QtGui.QPixmap(_fromUtf8(":/images/icons/email.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||
self.actionFeedback.setIcon(icon11)
|
||||
self.actionFeedback.setObjectName(_fromUtf8("actionFeedback"))
|
||||
self.menuFile.addAction(self.actionOpen)
|
||||
self.menuFile.addAction(self.menuOpenRecent.menuAction())
|
||||
self.menuFile.addSeparator()
|
||||
self.menuFile.addAction(self.actionQuit)
|
||||
self.menuEdit.addAction(self.actionCopyDefinition)
|
||||
self.menuEdit.addAction(self.actionCopyAllDefinitions)
|
||||
self.menuEdit.addAction(self.actionCopySentence)
|
||||
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.actionToggleDefinitions)
|
||||
self.menuView.addAction(self.actionToggleAnki)
|
||||
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)
|
||||
QtCore.QObject.connect(self.actionToggleDefinitions, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.dockDefinitions.setVisible)
|
||||
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.dockDefinitions, QtCore.SIGNAL(_fromUtf8("visibilityChanged(bool)")), self.actionToggleDefinitions.setChecked)
|
||||
QtCore.QObject.connect(self.dockAnki, QtCore.SIGNAL(_fromUtf8("visibilityChanged(bool)")), self.actionToggleAnki.setChecked)
|
||||
QtCore.QMetaObject.connectSlotsByName(MainWindowReader)
|
||||
|
||||
def retranslateUi(self, MainWindowReader):
|
||||
MainWindowReader.setWindowTitle(QtGui.QApplication.translate("MainWindowReader", "Yomichan", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.menuFile.setTitle(QtGui.QApplication.translate("MainWindowReader", "&File", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.menuOpenRecent.setTitle(QtGui.QApplication.translate("MainWindowReader", "Open &recent", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.menuEdit.setTitle(QtGui.QApplication.translate("MainWindowReader", "&Edit", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.menuHelp.setTitle(QtGui.QApplication.translate("MainWindowReader", "&Help", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.menuView.setTitle(QtGui.QApplication.translate("MainWindowReader", "&View", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.menuTextSize.setTitle(QtGui.QApplication.translate("MainWindowReader", "&Zoom", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.toolBar.setWindowTitle(QtGui.QApplication.translate("MainWindowReader", "toolBar", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.dockDefinitions.setWindowTitle(QtGui.QApplication.translate("MainWindowReader", "Definitions", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.label.setText(QtGui.QApplication.translate("MainWindowReader", "Search", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.dockAnki.setWindowTitle(QtGui.QApplication.translate("MainWindowReader", "Anki", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.label_3.setText(QtGui.QApplication.translate("MainWindowReader", "Active tag(s)", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionOpen.setText(QtGui.QApplication.translate("MainWindowReader", "&Open...", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionOpen.setToolTip(QtGui.QApplication.translate("MainWindowReader", "Open file", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionOpen.setShortcut(QtGui.QApplication.translate("MainWindowReader", "Ctrl+O", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionQuit.setText(QtGui.QApplication.translate("MainWindowReader", "&Quit", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionQuit.setToolTip(QtGui.QApplication.translate("MainWindowReader", "Quit Yomichan", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionQuit.setShortcut(QtGui.QApplication.translate("MainWindowReader", "Ctrl+Q", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionPreferences.setText(QtGui.QApplication.translate("MainWindowReader", "&Preferences...", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionPreferences.setToolTip(QtGui.QApplication.translate("MainWindowReader", "Edit preferences", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionAbout.setText(QtGui.QApplication.translate("MainWindowReader", "&About...", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionAbout.setToolTip(QtGui.QApplication.translate("MainWindowReader", "About Yomichan", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionAbout.setShortcut(QtGui.QApplication.translate("MainWindowReader", "F1", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionZoomIn.setText(QtGui.QApplication.translate("MainWindowReader", "Zoom &in", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionZoomIn.setShortcut(QtGui.QApplication.translate("MainWindowReader", "Ctrl++", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionZoomOut.setText(QtGui.QApplication.translate("MainWindowReader", "Zoom &out", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionZoomOut.setShortcut(QtGui.QApplication.translate("MainWindowReader", "Ctrl+-", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionZoomReset.setText(QtGui.QApplication.translate("MainWindowReader", "&Reset", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionZoomReset.setToolTip(QtGui.QApplication.translate("MainWindowReader", "Reset zoom", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionZoomReset.setShortcut(QtGui.QApplication.translate("MainWindowReader", "Ctrl+0", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionFind.setText(QtGui.QApplication.translate("MainWindowReader", "&Find...", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionFind.setToolTip(QtGui.QApplication.translate("MainWindowReader", "Find text", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionFind.setShortcut(QtGui.QApplication.translate("MainWindowReader", "Ctrl+F", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionFindNext.setText(QtGui.QApplication.translate("MainWindowReader", "Find &next", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionFindNext.setToolTip(QtGui.QApplication.translate("MainWindowReader", "Find text again", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionFindNext.setShortcut(QtGui.QApplication.translate("MainWindowReader", "F3", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionToggleWrap.setText(QtGui.QApplication.translate("MainWindowReader", "&Word wrap", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionToggleWrap.setToolTip(QtGui.QApplication.translate("MainWindowReader", "Toggle word wrap", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionToggleDefinitions.setText(QtGui.QApplication.translate("MainWindowReader", "&Definitions", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionToggleDefinitions.setToolTip(QtGui.QApplication.translate("MainWindowReader", "Toggle definitions", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionCopyDefinition.setText(QtGui.QApplication.translate("MainWindowReader", "Copy &definition", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionCopyDefinition.setShortcut(QtGui.QApplication.translate("MainWindowReader", "Ctrl+D", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionCopyAllDefinitions.setText(QtGui.QApplication.translate("MainWindowReader", "Copy &all definitions", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionHomepage.setText(QtGui.QApplication.translate("MainWindowReader", "&Homepage...", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionHomepage.setToolTip(QtGui.QApplication.translate("MainWindowReader", "Yomichan homepage", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionToggleAnki.setText(QtGui.QApplication.translate("MainWindowReader", "&Anki", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionCopySentence.setText(QtGui.QApplication.translate("MainWindowReader", "Copy sen&tence", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionCopySentence.setShortcut(QtGui.QApplication.translate("MainWindowReader", "Ctrl+T", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionFeedback.setText(QtGui.QApplication.translate("MainWindowReader", "&Feedback...", None, QtGui.QApplication.UnicodeUTF8))
|
||||
|
||||
import resources_rc
|
184
core/reader_util.py
Normal file
@ -0,0 +1,184 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2011 Alex Yatskov
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
import re
|
||||
from PyQt4 import QtGui
|
||||
|
||||
|
||||
class Definition:
|
||||
def __init__(self, expression, reading, glossary, conjugations, source, sentence):
|
||||
self.expression = expression
|
||||
self.reading = reading
|
||||
self.glossary = glossary
|
||||
self.conjugations = conjugations
|
||||
self.source = source
|
||||
self.sentence = sentence
|
||||
|
||||
|
||||
def decodeContent(content):
|
||||
encodings = ['utf-8', 'shift_jis', 'utf-16']
|
||||
errors = dict()
|
||||
|
||||
for encoding in encodings:
|
||||
try:
|
||||
return content.decode(encoding), encoding
|
||||
except UnicodeDecodeError, e:
|
||||
errors[encoding] = e[2]
|
||||
|
||||
encoding = sorted(errors, key=errors.get, reverse=True)[0]
|
||||
return content.decode(encoding, 'replace'), encoding
|
||||
|
||||
|
||||
def stripContentReadings(content):
|
||||
return re.sub(u'《[^》]+》', unicode(), content)
|
||||
|
||||
|
||||
def findSentence(content, position):
|
||||
quotesFwd = {u'「': u'」', u'『': u'』', u"'": u"'", u'"': u'"'}
|
||||
quotesBwd = {u'」': u'「', u'』': u'『', u"'": u"'", u'"': u'"'}
|
||||
terminators = u'。..??!!'
|
||||
|
||||
quoteStack = list()
|
||||
|
||||
start = 0
|
||||
for i in xrange(position, start, -1):
|
||||
c = content[i]
|
||||
|
||||
if not quoteStack and (c in terminators or c in quotesFwd or c == '\n'):
|
||||
start = i + 1
|
||||
break
|
||||
|
||||
if quoteStack and c == quoteStack[0]:
|
||||
quoteStack.pop()
|
||||
elif c in quotesBwd:
|
||||
quoteStack.insert(0, quotesBwd[c])
|
||||
|
||||
quoteStack = list()
|
||||
|
||||
end = len(content)
|
||||
for i in xrange(position, end):
|
||||
c = content[i]
|
||||
|
||||
if not quoteStack:
|
||||
if c in terminators:
|
||||
end = i + 1
|
||||
break
|
||||
elif c in quotesBwd:
|
||||
end = i
|
||||
break
|
||||
|
||||
if quoteStack and c == quoteStack[0]:
|
||||
quoteStack.pop()
|
||||
elif c in quotesFwd:
|
||||
quoteStack.insert(0, quotesFwd[c])
|
||||
|
||||
return content[start:end].strip()
|
||||
|
||||
|
||||
def replaceMarkupInField(field, markup):
|
||||
for marker, value in markup.items():
|
||||
field = field.replace(marker, value or unicode())
|
||||
|
||||
return field
|
||||
|
||||
|
||||
def replaceMarkupInFields(fields, markup):
|
||||
result = dict()
|
||||
for field, value in fields.items():
|
||||
result[field] = replaceMarkupInField(value, markup)
|
||||
|
||||
return result
|
||||
|
||||
|
||||
def buildFactMarkupExpression(expression, reading, glossary, sentence=None):
|
||||
return {
|
||||
'%e': expression, '%r': reading, '%g': glossary, '%s': sentence
|
||||
}
|
||||
|
||||
|
||||
def buildFactMarkupReading(reading, glossary, sentence=None):
|
||||
return {
|
||||
'%e': reading, '%r': None, '%g': glossary, '%s': sentence
|
||||
}
|
||||
|
||||
|
||||
def convertDefinitions(definitions, sentence=None):
|
||||
return [
|
||||
Definition(*(definition + (sentence,))) for definition in definitions
|
||||
]
|
||||
|
||||
|
||||
def copyDefinitions(definitions):
|
||||
text = unicode()
|
||||
|
||||
for definition in definitions:
|
||||
if definition.reading:
|
||||
text += u'{0}\t{1}\t{2}\n'.format(definition.expression, definition.reading, definition.glossary)
|
||||
else:
|
||||
text += u'{0}\t{1}\n'.format(definition.expression, definition.glossary)
|
||||
|
||||
QtGui.QApplication.clipboard().setText(text)
|
||||
|
||||
|
||||
def buildDefinitionHtml(definition, factIndex, factQuery):
|
||||
reading = unicode()
|
||||
if definition.reading:
|
||||
reading = u'[{0}]'.format(definition.reading)
|
||||
|
||||
conjugation = unicode()
|
||||
if definition.conjugations:
|
||||
conjugation = '<span class = "conjugations"><{0}><br/></span>'.format(definition.conjugations)
|
||||
|
||||
links = '<a href = "copyDefinition:{0}"><img src = "://images/icons/page_copy.png" title = "Copy definition" align = "right"/></a>'.format(factIndex)
|
||||
if factQuery:
|
||||
if factQuery(buildFactMarkupExpression(definition.expression, definition.reading, definition.glossary)):
|
||||
links += '<a href = "addFactExpression:{0}"><img src = "://images/icons/add.png" title = "Add fact as expression" align = "right"/></a>'.format(factIndex)
|
||||
if factQuery(buildFactMarkupReading(definition.reading, definition.glossary)):
|
||||
links += '<a href = "addFactReading:{0}"><img src = "://images/icons/bullet_add.png" title = "Add fact as reading" align = "right"/></a>'.format(factIndex)
|
||||
|
||||
html = u"""
|
||||
<span class = "links">{0}</span>
|
||||
<span class = "expression">{1} {2}<br/></span>
|
||||
<span class = "glossary">{3}<br/></span>
|
||||
<span class = "conjugation">{4}</span>
|
||||
<br clear = "all"/>""".format(links, definition.expression, reading, definition.glossary, conjugation)
|
||||
|
||||
return html
|
||||
|
||||
|
||||
def buildDefinitionsHtml(definitions, factQuery):
|
||||
palette = QtGui.QApplication.palette()
|
||||
toolTipBg = palette.color(QtGui.QPalette.Window).name()
|
||||
toolTipFg = palette.color(QtGui.QPalette.WindowText).name()
|
||||
|
||||
html = u"""
|
||||
<html><head><style>
|
||||
body {{ background-color: {0}; color: {1}; font-size: 11pt; }}
|
||||
span.expression {{ font-size: 15pt; }}
|
||||
</style></head><body>""".format(toolTipBg, toolTipFg)
|
||||
|
||||
if definitions:
|
||||
for i, definition in enumerate(definitions):
|
||||
html += buildDefinitionHtml(definition, i, factQuery)
|
||||
else:
|
||||
html += """
|
||||
<p>No definitions to display.</p>
|
||||
<p>Mouse over text with the <em>middle mouse button</em> or <em>shift key</em> pressed to search.</p>
|
||||
<p>You can also also input terms in the search box below.</p>"""
|
||||
|
||||
html += '</body></html>'
|
||||
return html
|
806
core/resources_rc.py
Normal file
@ -0,0 +1,806 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Resource object code
|
||||
#
|
||||
# Created: Sun Feb 20 11:54:17 2011
|
||||
# by: The Resource Compiler for PyQt (Qt v4.7.1)
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
||||
from PyQt4 import QtCore
|
||||
|
||||
qt_resource_data = "\
|
||||
\x00\x00\x01\x1e\
|
||||
\x89\
|
||||
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
|
||||
\x00\x00\x10\x00\x00\x00\x10\x08\x06\x00\x00\x00\x1f\xf3\xff\x61\
|
||||
\x00\x00\x00\x04\x67\x41\x4d\x41\x00\x00\xaf\xc8\x37\x05\x8a\xe9\
|
||||
\x00\x00\x00\x19\x74\x45\x58\x74\x53\x6f\x66\x74\x77\x61\x72\x65\
|
||||
\x00\x41\x64\x6f\x62\x65\x20\x49\x6d\x61\x67\x65\x52\x65\x61\x64\
|
||||
\x79\x71\xc9\x65\x3c\x00\x00\x00\xb0\x49\x44\x41\x54\x38\xcb\x63\
|
||||
\xf8\xff\xff\x3f\x03\x25\x98\x61\xd4\x00\xec\x06\xe4\x4f\x89\xac\
|
||||
\xc9\x9b\x12\xf1\x29\xad\xcf\xff\x7f\x64\x8b\xc3\x27\xcf\x0a\xbd\
|
||||
\x1a\xa2\x0d\xc8\xe8\x0f\x6c\x68\x5c\x9d\xf8\x7f\xcb\x95\xa9\xff\
|
||||
\x2f\x3c\xdb\xf5\xbf\x7f\x77\xd6\xff\xf0\x7e\xdd\xff\xe6\xd9\x92\
|
||||
\x3d\x44\x19\x10\xdb\xee\xf2\x7d\xe3\xe5\x09\xff\x37\x5e\x9b\xf4\
|
||||
\x1f\x04\x7a\xf6\xa4\xfe\xef\xdf\x93\x0e\x32\xe0\x3b\x51\x06\xf8\
|
||||
\x54\x1b\xfe\xdf\x76\x65\xce\x7f\x64\xb0\xe9\xd2\x54\x90\x01\xff\
|
||||
\x89\x32\xc0\x32\x47\xfa\x7b\xf7\xae\xa4\xff\xed\xbb\x12\xc0\x9a\
|
||||
\xdb\x77\x26\x90\xe6\x02\xa0\xc2\x96\xe0\x1e\x8d\xff\xbd\xbb\x52\
|
||||
\xc0\x36\x83\x68\x10\x9f\xe8\x30\x80\x1a\xd2\x01\xc4\x9f\x40\xce\
|
||||
\x86\xd2\x1d\xa3\x49\x19\x37\x06\x00\x12\x3f\xe3\x3b\x23\x4b\x32\
|
||||
\xa6\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
|
||||
\x00\x00\x02\x97\
|
||||
\x89\
|
||||
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
|
||||
\x00\x00\x10\x00\x00\x00\x10\x08\x06\x00\x00\x00\x1f\xf3\xff\x61\
|
||||
\x00\x00\x00\x04\x67\x41\x4d\x41\x00\x00\xaf\xc8\x37\x05\x8a\xe9\
|
||||
\x00\x00\x00\x19\x74\x45\x58\x74\x53\x6f\x66\x74\x77\x61\x72\x65\
|
||||
\x00\x41\x64\x6f\x62\x65\x20\x49\x6d\x61\x67\x65\x52\x65\x61\x64\
|
||||
\x79\x71\xc9\x65\x3c\x00\x00\x02\x29\x49\x44\x41\x54\x38\xcb\x75\
|
||||
\xd3\x3d\x68\x54\x41\x14\x86\xe1\xf7\xcc\xcc\xdd\x6c\xb2\x6e\x76\
|
||||
\x15\x7f\x82\x92\x42\x30\x49\x25\x56\x41\x8b\x18\x51\x8b\x14\x9a\
|
||||
\x4a\x1b\x41\x30\xa5\x28\x5a\x89\xa0\x9d\xa0\xb1\xb0\x97\x60\x21\
|
||||
\x04\xac\xb4\x4e\x27\x12\x13\x51\x12\x0c\xa8\x65\x88\x69\x92\x88\
|
||||
\x24\xb8\xc6\xb8\xff\x77\xee\x1c\x8b\xbb\x82\x92\xdd\xd3\x4c\x33\
|
||||
\xe7\x63\xce\x33\x33\x32\x76\xef\xc3\xcb\xde\x7c\x74\xcc\x18\x8a\
|
||||
\x8a\x26\x20\x88\x2a\x0d\xaf\x95\x9d\x6a\xf3\x79\xb3\x54\x7a\x36\
|
||||
\x3f\x35\x5e\xa7\x43\xc9\xe5\x47\x8b\x9f\x5e\xdd\x1f\xce\x6d\x96\
|
||||
\x83\x15\x20\xa8\x12\x27\x01\x67\x61\x7a\x61\x9b\xa5\xc5\x8d\x37\
|
||||
\xdf\xd7\x37\x6e\xcf\x3d\xbd\x50\x6d\x17\x60\x8c\x48\x4f\xa9\xaa\
|
||||
\x76\x65\x4b\xf9\xfa\x23\xb0\xbc\x99\xf0\x79\x3d\x66\x4f\x97\x63\
|
||||
\x64\xa8\xc8\xe8\x48\xff\xb9\xdc\xfe\xc2\xdd\x4e\x27\x30\x0a\x62\
|
||||
\x05\xb2\x0e\x32\x56\xc8\x58\x21\x9b\x31\x6c\x6e\xd7\x18\xda\x0b\
|
||||
\x13\x27\x0b\xf4\xf7\xf5\x5c\xed\x14\xe0\x00\x44\x20\xb2\xa0\x0a\
|
||||
\x6a\x85\xac\x33\xcc\x2e\xff\x3e\xda\xf0\x1e\xef\x03\xc7\x07\x0f\
|
||||
\x71\x6b\xfa\x4b\x45\x82\xca\x4e\xdd\xaf\xaf\xad\xd5\x5f\x34\x4b\
|
||||
\xa5\x27\xf3\x53\xe3\x35\xa7\x80\x20\x58\x63\x5a\x2a\x4a\x08\x4a\
|
||||
\x23\x8e\xb9\x7e\xf6\x30\x5b\xe5\x40\x6a\xd3\xd7\xd3\xb2\x19\x98\
|
||||
\x5e\xd8\x7e\xb0\xb4\xb8\x31\x3c\x7a\x63\xe6\x8a\x53\x85\x90\x76\
|
||||
\x22\x04\xac\x40\xc6\x19\x92\x44\xf9\x59\x55\x56\xb6\x14\x63\x94\
|
||||
\xd8\x07\x76\x6a\x9e\x33\x83\xdd\x8c\x0c\x15\xc9\x65\xcc\xc5\x99\
|
||||
\xd7\xe5\xc7\x4e\x55\x11\xc0\x19\x30\x62\x08\x0a\x56\x40\x49\xd7\
|
||||
\xac\x4b\x67\x14\xfd\xd7\x26\xe2\xc4\xc1\x02\xb3\x73\x5d\x37\x0d\
|
||||
\x6a\x48\x82\x6f\x7f\xc7\x2d\x1b\x27\xe0\x5a\x36\xab\x25\xe1\xdd\
|
||||
\x6a\x83\x5f\x35\x25\x72\x06\x27\x6a\x6d\xc3\x97\x81\xe2\x7f\xcd\
|
||||
\x9d\x6c\xe8\xb2\x88\x11\xac\xb5\x28\xe0\xe2\x66\xa3\x12\x99\x7c\
|
||||
\xae\x90\x8d\x51\x05\x23\x82\x48\x9a\xd0\xce\x46\x54\x09\x41\x10\
|
||||
\x11\x54\xc1\xf9\x44\xbf\x5d\x9b\xfc\x78\xa0\xe9\x29\x80\xd6\x20\
|
||||
\xed\xce\x17\x2c\x13\xa7\x8f\xec\xb2\x31\x01\xc8\x40\xb7\x03\x55\
|
||||
\xc5\xcd\x4c\x9e\x1a\x6b\x37\xff\xa5\x87\x4b\x71\x12\xbc\x6b\x3d\
|
||||
\x95\x5d\x15\xd4\x43\x10\x4c\xc7\x4f\xa2\xd6\xa5\x36\xed\xab\xe1\
|
||||
\xcb\x48\x30\xe2\x3a\x6d\xa8\xd6\xea\xa5\xc8\xe4\xf7\xed\xb2\x21\
|
||||
\x1d\xd2\x9a\x5e\x82\xfa\xa6\xa8\x6a\xdb\x80\xf3\x77\xde\xbf\xb5\
|
||||
\x46\x06\xc0\xf4\x81\x56\xfe\xda\xb4\x58\x25\x68\x52\x2e\xe4\xa2\
|
||||
\xee\x3f\x17\x97\xff\x1b\x29\xed\xa4\x7a\x00\x00\x00\x00\x49\x45\
|
||||
\x4e\x44\xae\x42\x60\x82\
|
||||
\x00\x00\x02\x93\
|
||||
\x89\
|
||||
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
|
||||
\x00\x00\x10\x00\x00\x00\x10\x08\x06\x00\x00\x00\x1f\xf3\xff\x61\
|
||||
\x00\x00\x00\x04\x67\x41\x4d\x41\x00\x00\xaf\xc8\x37\x05\x8a\xe9\
|
||||
\x00\x00\x00\x19\x74\x45\x58\x74\x53\x6f\x66\x74\x77\x61\x72\x65\
|
||||
\x00\x41\x64\x6f\x62\x65\x20\x49\x6d\x61\x67\x65\x52\x65\x61\x64\
|
||||
\x79\x71\xc9\x65\x3c\x00\x00\x02\x25\x49\x44\x41\x54\x38\xcb\x63\
|
||||
\xf8\xff\xff\x3f\x03\x25\x98\x81\xea\x06\x34\xf7\xcf\x79\xb4\x64\
|
||||
\xc3\x9e\xff\xad\x13\xe7\xfe\x07\xf1\x27\x2f\x58\x07\x66\x87\xc6\
|
||||
\xa6\xde\x22\xca\x80\x8a\xe6\xbe\x47\xeb\x76\x1c\x06\x69\x00\x1b\
|
||||
\x90\x51\x54\xf3\xbf\x6f\xf6\x8a\xff\x40\x83\x9f\xe0\x35\x20\x29\
|
||||
\xbb\xe4\x7f\xd7\xf4\x25\xff\x6b\x3b\xa7\xfe\x6f\x9b\x34\xff\xbf\
|
||||
\x89\xa5\x1d\xd8\x00\x07\x37\x9f\xff\x59\x25\x75\xff\x0b\xaa\x5a\
|
||||
\xc1\x62\x56\xf6\xae\xcb\x15\x94\x54\x79\x04\x85\x45\x99\xc0\x06\
|
||||
\x2c\x58\xb3\x93\xa3\xa8\xb6\xdd\xa3\xa9\x6f\x36\xd8\xa9\x85\xd5\
|
||||
\x6d\xff\x3d\xfc\xc3\xfe\xbb\x78\x05\xfc\xcf\x29\x6b\xf8\x1f\x9b\
|
||||
\x96\xf7\x3f\x22\xa7\xe9\x7f\xed\xc4\x65\xff\x4b\x5a\xa6\x80\xe5\
|
||||
\xb8\xb9\x79\xaa\xd8\xd8\xd9\x19\xc1\x06\x4c\x98\xbb\x9a\x65\xca\
|
||||
\xc2\xf5\x0f\x17\xad\xdb\xf5\x3f\xb7\xbc\x09\x8c\xab\x27\xae\xfa\
|
||||
\x3f\x65\xf9\xae\xff\x7d\x4b\xb6\xff\x6a\x9c\xbe\xe1\x7f\x6d\xef\
|
||||
\xfc\xff\xd1\xb9\xcd\xff\xc3\x93\x0b\xc1\x2e\x64\x66\x61\x79\xc0\
|
||||
\xc0\xc0\xc0\x0c\x36\x00\xe8\x5c\x56\x90\xcd\xd3\x16\x6f\xfc\x9f\
|
||||
\x5d\x5a\xff\x1f\xe4\xe7\x94\xdc\xf2\xff\xd1\xc9\x39\xff\xd5\xb4\
|
||||
\xf4\xc0\x36\x82\x5c\x02\x13\x8f\x4b\x2f\x00\xea\x62\xf8\x07\xc4\
|
||||
\xac\x60\x03\xd2\x0a\x2a\x59\xfd\x42\x63\x7e\x5a\xd8\x3a\xfd\xf7\
|
||||
\x0a\x8c\xf8\x6f\x6c\x61\xfb\x5f\x5b\xdf\xf8\xbf\xac\x82\xf2\x53\
|
||||
\x11\x31\x71\x03\x49\x19\xb9\xad\x62\x12\x52\xff\x81\xfe\xfe\x2f\
|
||||
\x2a\x2e\xf9\x9f\x97\x8f\xff\x3f\x23\x23\xe3\x3b\xa0\x01\x4c\xf0\
|
||||
\x40\xf4\x09\x8a\x3a\x0c\x0a\xb8\x5d\x87\xcf\xfc\x5f\xb5\xe5\xc0\
|
||||
\xff\xee\x19\xcb\x40\x01\xb6\x02\x24\xa7\xaa\xa9\xb3\xa2\xb2\x65\
|
||||
\xc2\xff\xb5\x3b\x0e\x81\xe5\x40\x31\xc2\xc7\x2f\x78\x18\x25\x16\
|
||||
\xdc\x7c\x82\xff\xe4\x57\x34\x83\x0d\x00\xba\xe8\x7f\x7c\x46\xe1\
|
||||
\x7f\x3d\x63\xf3\xab\x20\x39\xa0\xcd\x57\x41\x31\x00\x32\x20\x35\
|
||||
\xbf\xe2\x7f\x7a\x61\xf5\x7f\x0e\x4e\xae\x3f\x28\x06\x38\xba\xfb\
|
||||
\xfe\x87\x19\x00\x53\xa4\xa1\xad\xff\x53\x51\x45\x9d\x51\x42\x5a\
|
||||
\xf6\x1d\x28\xe0\x60\x06\x80\xc2\x82\x95\x95\xed\x3f\x8a\x01\xd6\
|
||||
\x8e\x6e\xe0\x78\x06\x25\x20\x90\x02\x50\x60\xea\x1a\x99\xfd\x07\
|
||||
\xfa\x9f\x5f\x49\x55\xe3\x0a\xc8\x00\x50\x2c\xc1\xe4\x80\x61\x80\
|
||||
\x6a\x00\x28\x81\x18\x98\x58\x82\x03\x0f\xe8\xe7\xff\x40\x9b\xff\
|
||||
\x4b\xcb\x2a\xfc\x07\x06\xa2\x14\xd0\xbf\xb7\x39\xb9\xb8\xff\x03\
|
||||
\xe3\x1d\x14\x7d\xa0\x18\x00\x63\xda\x65\x26\x52\x31\x00\x9e\x32\
|
||||
\x68\x8d\x0e\x5a\x3c\x75\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\
|
||||
\x60\x82\
|
||||
\x00\x00\x02\xb0\
|
||||
\x89\
|
||||
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
|
||||
\x00\x00\x10\x00\x00\x00\x10\x08\x06\x00\x00\x00\x1f\xf3\xff\x61\
|
||||
\x00\x00\x00\x04\x67\x41\x4d\x41\x00\x00\xaf\xc8\x37\x05\x8a\xe9\
|
||||
\x00\x00\x00\x19\x74\x45\x58\x74\x53\x6f\x66\x74\x77\x61\x72\x65\
|
||||
\x00\x41\x64\x6f\x62\x65\x20\x49\x6d\x61\x67\x65\x52\x65\x61\x64\
|
||||
\x79\x71\xc9\x65\x3c\x00\x00\x02\x42\x49\x44\x41\x54\x18\x19\x05\
|
||||
\xc1\x41\x8b\x55\x65\x18\x00\xe0\xe7\xfd\xce\x77\xef\xdc\x61\x68\
|
||||
\xd4\x4d\x89\x51\x4b\x8d\xd9\x8b\x50\x46\xb8\x69\x55\x8b\x36\x41\
|
||||
\xd0\x42\x5a\x15\xfd\x89\x36\x91\xe0\x3e\xdd\x64\x05\xfd\x84\x5c\
|
||||
\x59\x44\x64\x51\x42\x50\x9b\x08\xb1\x69\xa1\x23\x4e\xe2\xa8\xe3\
|
||||
\xcc\xdc\x7b\xcf\x3d\xe7\x7b\x7b\x9e\xc8\x4c\x00\x00\x70\xed\xe6\
|
||||
\xc3\x5c\x0e\x83\x61\x68\xe0\xf6\xce\xa3\xa3\x68\x19\xfb\x8b\xe1\
|
||||
\xde\xdd\xbb\x8b\x6f\xfa\xbd\xbd\xcb\x3f\x5d\x7d\x7b\x1e\x99\x09\
|
||||
\x00\x00\xae\xfc\x70\x3f\x3f\xbc\x70\xca\xc3\x83\x26\xd0\x32\xad\
|
||||
\xc6\xa6\x76\x7c\xfd\xdb\x13\xbf\xdf\xda\xf9\xf6\xc1\xbd\x9d\xf7\
|
||||
\x2a\x00\x00\xc0\x38\xa6\xc7\x47\xe9\xce\xc3\x54\x4a\x5a\x0d\xcd\
|
||||
\xfe\x7c\xf0\xc6\xe9\x75\xe7\xcf\x1c\xb7\x31\x2d\x6f\x5d\xff\xee\
|
||||
\xe0\xb3\x02\x00\x00\x90\xe8\x82\x59\x65\xda\x85\x69\x17\x66\xd3\
|
||||
\xe2\xbf\x27\x73\x67\x4e\x70\xf1\xdc\x31\x1b\xd3\xb5\x8f\x0b\x00\
|
||||
\x00\x00\x44\x30\xe9\xa8\x41\xed\xc2\xac\x16\xdb\x7b\xe1\xe6\xf6\
|
||||
\xd2\xd3\x79\x9a\xd4\xa2\xde\xbe\x7e\xf6\x8f\xd9\xe6\xd6\x56\x44\
|
||||
\x01\x40\x4a\x9f\x0a\xa1\x2b\x05\x88\xd4\x5a\xb2\xd6\x89\x12\xba\
|
||||
\xae\x93\xa8\x91\xe5\x95\x97\xce\x7f\x39\x89\x08\x12\x92\x08\x6e\
|
||||
\xdc\xd7\x40\x08\x4d\x17\x4c\x6b\x11\x99\x5a\x0b\x11\x21\x93\x6a\
|
||||
\xc8\x85\xd6\xaf\x2d\x1f\x5c\x31\xf6\x1d\x65\x53\xc4\x73\x7e\xbc\
|
||||
\xf5\xb2\x8b\xaf\xbf\xa8\x16\x4a\x14\x2d\xe9\x82\xd2\x30\x65\xbd\
|
||||
\x92\x99\xaa\x55\x94\x6c\xbd\xb1\x9f\xca\x96\x0e\xb7\x7f\xf6\xf4\
|
||||
\xef\x3f\x5d\x3a\xce\xee\x17\x04\x12\x81\x0e\x1d\x66\x68\x1f\xfc\
|
||||
\x42\x0b\x55\xe4\xac\x0d\x73\xfb\xdb\x77\xac\xf6\x76\xb4\xd5\xc2\
|
||||
\x89\xb3\xef\xab\x5b\x1f\xd9\xdc\xe8\x64\x16\x40\xca\xa4\x14\xfe\
|
||||
\xf9\xfc\x9c\xe5\x70\x20\x5a\x89\x6a\x55\xd4\xf5\xe7\x9d\xbc\x70\
|
||||
\x09\x8d\x4c\xa9\x39\x7a\xf0\x95\xfe\x19\x29\x64\x16\x84\x14\xea\
|
||||
\xe6\x6b\x60\x5a\x36\xb5\x1c\xfa\x6a\x95\x99\xe3\x42\xbf\x7b\x0d\
|
||||
\x09\x68\x0e\xe7\x45\x3f\xb0\x5c\xb1\x1a\x46\x8b\x7e\x30\x5f\xf6\
|
||||
\x8e\xbf\xf0\x58\xc5\xbb\x9f\xfc\xba\x7b\x6c\x63\xb2\x5e\x2d\x65\
|
||||
\xb6\x81\x40\x26\x1a\x6d\x65\x73\x6d\xc5\x74\x29\xc7\x05\xed\x50\
|
||||
\x1b\xf7\xe5\xf0\xd4\xec\xd4\x9b\xfe\xc5\x8d\xcb\xaf\x9e\x84\xaa\
|
||||
\xcf\x0c\x23\x99\xe4\x48\xf6\xb2\x2d\x69\x0b\x99\x73\x39\x1e\xc9\
|
||||
\xf1\x40\x0e\xfb\x72\x7c\x86\x06\x00\x6a\xf6\xad\x0e\x47\x8f\xb4\
|
||||
\x61\x42\x16\xb2\x93\x39\xa1\xad\xc9\xb6\x41\xae\x64\xf6\x44\x4f\
|
||||
\x19\x8c\x8b\x05\x00\xa8\xb9\x58\xfe\xb5\x7d\xf5\x9d\xd3\x12\x01\
|
||||
\x00\x00\x00\x48\xc4\xf7\xb4\xbc\x0d\xf0\x3f\x69\x21\x3c\x29\xd5\
|
||||
\x29\xa8\xd6\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
|
||||
\x00\x00\x02\x81\
|
||||
\x89\
|
||||
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
|
||||
\x00\x00\x10\x00\x00\x00\x10\x08\x06\x00\x00\x00\x1f\xf3\xff\x61\
|
||||
\x00\x00\x00\x04\x67\x41\x4d\x41\x00\x00\xaf\xc8\x37\x05\x8a\xe9\
|
||||
\x00\x00\x00\x19\x74\x45\x58\x74\x53\x6f\x66\x74\x77\x61\x72\x65\
|
||||
\x00\x41\x64\x6f\x62\x65\x20\x49\x6d\x61\x67\x65\x52\x65\x61\x64\
|
||||
\x79\x71\xc9\x65\x3c\x00\x00\x02\x13\x49\x44\x41\x54\x18\x19\xa5\
|
||||
\xc1\xcb\x4e\x13\x61\x18\x80\xe1\xf7\xfb\xe7\xef\xf4\x40\xa7\x07\
|
||||
\x39\x54\x29\x85\x58\x13\xe2\xd6\x6b\xf0\x02\x5c\x7b\x05\x6e\xbd\
|
||||
\x01\xf7\xae\xdd\xba\x33\x71\x21\x3b\x13\x4d\x88\x2e\x30\x91\x85\
|
||||
\x1a\xdd\xb3\xc0\x04\x6c\xa5\x52\xda\x02\x1d\x4a\x3b\xd3\x99\xff\
|
||||
\x93\x62\xa2\xee\xfb\x3c\xa2\xaa\xcc\xc3\x30\x27\xfb\xe4\xf9\xe7\
|
||||
\x9d\x5c\x21\xb8\xd7\x0b\xa7\x0b\x17\x93\xc4\x38\x05\x87\x92\x3a\
|
||||
\xc5\xa9\x92\xaa\xe2\x9c\x92\x3a\x25\x75\x4a\xea\x54\x91\x74\x3a\
|
||||
\xbd\x3c\xef\xb5\xf6\xf6\xf7\xed\x72\xb5\xdc\x78\xf4\x60\xb3\x14\
|
||||
\x4d\x55\x72\x59\x8f\xff\x09\xff\x08\x57\x04\x04\x18\x47\x89\x37\
|
||||
\x8e\xd2\xd5\x87\x4f\xa3\x89\xe9\x0e\x93\x66\x9c\x38\x79\xb9\xd3\
|
||||
\xa1\xd5\x8b\x19\x45\xca\x61\xdf\xd1\x1a\x38\xda\x67\x8e\xce\xb9\
|
||||
\xa3\x1b\x2a\xbd\x91\x32\x4d\xa1\xdd\x8f\x79\xf6\xa6\xc3\xe9\x28\
|
||||
\x32\xc1\x72\xe3\x8e\x19\x45\xa9\x64\x33\x86\xfa\xad\x12\xef\xbe\
|
||||
\x75\x39\xbb\x98\x52\x2b\x09\x19\x0f\x7c\x4f\xf0\xad\xe0\x5b\xa8\
|
||||
\xe4\x85\xfe\x30\x66\x6b\xf7\x98\xca\x8d\x12\x8b\x95\x2c\x57\xc4\
|
||||
\x5c\x4e\x12\x66\x9a\x37\x8b\xac\xd5\x4a\x6c\x7f\xed\x72\x1a\x4e\
|
||||
\x59\x2a\x1a\x7c\x0b\xbe\x07\xe5\x9c\x30\x08\x63\xb6\x76\xbb\x2c\
|
||||
\x2d\x96\x68\xd6\x8b\x88\x72\xcd\x8c\x26\x29\x33\xd6\x83\xe6\x6a\
|
||||
\x91\xe5\x6a\x81\x57\x1f\x5a\x0c\xc2\x98\x72\x4e\x08\x72\x42\x3f\
|
||||
\x8c\x79\xf1\xbe\x45\xb9\x5c\xa0\xb9\x5a\x24\x6f\xf9\xcb\x8c\xc6\
|
||||
\x09\x33\x22\x90\x4c\x13\x72\xd6\xb1\x5e\xaf\xf0\xf6\x4b\x97\x76\
|
||||
\x6f\x42\xbb\x37\xe1\xf5\xa7\x2e\x8d\x7a\x85\xc0\x4f\x31\x9a\xe0\
|
||||
\x5b\xfe\x10\xb0\x97\x51\x8a\x02\x71\x9c\x70\x3c\x08\x69\xd4\x02\
|
||||
\x7c\x3f\x43\x67\x90\xe3\xe3\xde\x10\x03\x6c\x36\xaa\xd4\x16\xf3\
|
||||
\x8c\x26\x31\x9d\x5e\xc8\x52\x35\x40\x15\x50\xc1\x5e\x46\x89\xa6\
|
||||
\x4e\xa5\xdb\x0f\x69\x2c\x07\xe4\x73\x19\x50\xb8\xbd\x52\x60\x7d\
|
||||
\xa5\x80\x00\xa2\xe0\x50\x6c\xc1\xc7\xae\x04\x1c\x9d\x0c\x19\x57\
|
||||
\xf2\xa0\x4e\xed\x68\xf0\xf3\x20\x8a\x93\x8d\xbb\x6b\x79\x29\xe6\
|
||||
\x8d\x88\x49\x31\x80\x08\x88\x08\x33\x02\x08\x57\x84\x2b\x96\x8d\
|
||||
\x6a\xe0\x0e\x7e\x85\xf1\xf0\xa4\x7d\x64\xe3\x8b\x93\xc3\xfb\x8f\
|
||||
\xb7\xab\xd9\x60\x61\xc1\x66\x3d\xb1\xd6\xc3\x78\x82\x67\xc0\x18\
|
||||
\xc1\x58\x10\x40\x84\x6b\x02\x9a\x26\x71\x3c\x3e\x3f\xed\x9f\x7c\
|
||||
\x6f\xfd\x10\x55\x65\x1e\x86\x39\x19\xe6\xf4\x1b\xfd\x49\xf9\x7b\
|
||||
\xf0\xc8\xb1\x5b\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
|
||||
\
|
||||
\x00\x00\x02\x67\
|
||||
\x89\
|
||||
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
|
||||
\x00\x00\x10\x00\x00\x00\x10\x08\x06\x00\x00\x00\x1f\xf3\xff\x61\
|
||||
\x00\x00\x00\x04\x67\x41\x4d\x41\x00\x00\xaf\xc8\x37\x05\x8a\xe9\
|
||||
\x00\x00\x00\x19\x74\x45\x58\x74\x53\x6f\x66\x74\x77\x61\x72\x65\
|
||||
\x00\x41\x64\x6f\x62\x65\x20\x49\x6d\x61\x67\x65\x52\x65\x61\x64\
|
||||
\x79\x71\xc9\x65\x3c\x00\x00\x01\xf9\x49\x44\x41\x54\x38\xcb\xa5\
|
||||
\x92\xbf\x6b\x93\x61\x10\xc7\xbf\xef\x8f\x24\x46\xac\xa9\x9a\xa4\
|
||||
\x10\x83\x3f\xe8\x50\xf5\x0f\x10\x2a\x42\xa0\x45\x70\xc8\xd4\xad\
|
||||
\x20\x0e\x82\x38\x54\x77\xdd\xba\x08\x8e\x0e\xa6\x83\x8b\x8b\xd2\
|
||||
\x4d\x04\x3b\x54\x45\x21\x22\x88\x9a\x41\xd0\xc6\x56\xd0\x44\x0b\
|
||||
\x31\xd1\xd8\x0a\x26\x6f\xde\xe7\x79\xee\x9e\x73\xb0\x56\x24\x79\
|
||||
\x95\xe2\x67\xb9\x9b\x3e\xf7\xbd\xe3\x1c\x11\xc1\xff\xe0\xff\x6a\
|
||||
\x1e\xd7\xd8\xb5\xd6\x96\x88\xa5\xc8\xcc\x39\x62\x0b\x43\xdc\x20\
|
||||
\xe2\x05\x63\x78\x66\x7a\x3c\x6d\x07\x09\x1c\x11\x41\xb9\xc6\xae\
|
||||
\x65\xfb\x28\x95\x90\xc2\xae\xed\x0e\x7c\x57\x00\x01\x42\x12\xac\
|
||||
\xb6\x43\x7c\xfc\xd2\x2b\x1b\xa2\x89\xb3\x93\xf9\x3e\x89\x0b\x00\
|
||||
\xcc\xb6\xb4\x33\x61\x0b\xd9\x1d\x0e\x42\xc3\x68\x77\x18\xad\x0e\
|
||||
\x23\xd0\x16\x07\x32\x49\x64\x53\xb1\x82\xd2\x54\x1a\x94\xc0\x05\
|
||||
\x00\x22\x2e\xee\x4e\x3a\xf8\xae\x18\x81\x16\x90\x15\x30\x0b\xba\
|
||||
\x5a\xb0\xd6\x63\xec\xdd\x93\x84\xd2\x54\x8c\x14\x18\xe2\x9c\xe7\
|
||||
\x02\x81\x16\xb0\x15\xb0\xc5\x4f\x89\x15\x74\x95\x45\x3c\xe6\x41\
|
||||
\x6b\xca\x45\x1e\x51\x1b\x82\x95\x18\xc8\x0a\xac\x05\x58\x7e\x57\
|
||||
\xb1\x00\x0b\xa0\x0c\x21\x32\x81\xd6\xd4\x08\x8d\x85\xef\x3a\x1b\
|
||||
\x93\xb1\x59\x63\xbe\x83\x20\x34\x20\xad\x3f\x47\x0b\x0c\x2d\xd4\
|
||||
\x5b\x01\x86\x12\x2e\xe2\x9e\x03\xde\x48\x92\xf0\x1d\x0c\x27\x3d\
|
||||
\xbc\x7e\xd7\xc6\x48\xf7\xe5\xf0\xc3\xcb\xc5\xb1\x81\x02\xa5\x69\
|
||||
\xa6\xd6\xec\x94\x97\x3e\x7c\x43\xcc\x03\xb2\x43\x3e\xb2\x29\x1f\
|
||||
\x71\x57\xf0\xbc\xda\x44\xe7\x6b\x13\x93\xb9\xd6\x36\xa5\x82\x27\
|
||||
\x77\x2e\x1e\x1b\xeb\xfb\x03\x00\xb8\x7a\xf7\xbd\x6b\x88\x4a\xc6\
|
||||
\x70\x51\x13\xe7\xc8\x30\x0c\xf1\xa7\x74\x6f\x49\x4f\xa4\x5e\x1d\
|
||||
\xcc\x1f\x3e\x8a\xc6\xca\x0b\xbc\xad\xdc\x6f\x1b\x13\x1e\x3f\x75\
|
||||
\xed\xcd\xca\x1f\x82\x28\x16\x67\x4f\xc4\xb5\x0e\xe7\xd3\xfb\x0e\
|
||||
\x4d\xed\x3f\x32\x8e\xd5\xe5\x67\xa8\x56\xee\xb5\xcf\x5c\xaf\x67\
|
||||
\x36\x57\xf8\x1b\x27\x67\x1f\x68\xa5\x82\xe9\x7a\xf5\xe9\xed\xe5\
|
||||
\xca\x22\xb2\xf9\x51\x68\xad\xd2\x7d\x2b\xfc\x8b\x1b\xe7\x46\xe3\
|
||||
\x44\x6a\xde\x8b\x25\xa6\x82\xce\xfa\x95\xf3\x37\xd7\x2e\x6d\x49\
|
||||
\x00\x00\x73\xa7\x33\x1e\x33\x8d\x5c\xb8\xb5\xde\xd8\x72\x82\x28\
|
||||
\x7e\x00\x4a\xb8\x37\xa1\xaa\x32\xcb\xa1\x00\x00\x00\x00\x49\x45\
|
||||
\x4e\x44\xae\x42\x60\x82\
|
||||
\x00\x00\x02\x91\
|
||||
\x89\
|
||||
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
|
||||
\x00\x00\x10\x00\x00\x00\x10\x08\x06\x00\x00\x00\x1f\xf3\xff\x61\
|
||||
\x00\x00\x00\x04\x67\x41\x4d\x41\x00\x00\xaf\xc8\x37\x05\x8a\xe9\
|
||||
\x00\x00\x00\x19\x74\x45\x58\x74\x53\x6f\x66\x74\x77\x61\x72\x65\
|
||||
\x00\x41\x64\x6f\x62\x65\x20\x49\x6d\x61\x67\x65\x52\x65\x61\x64\
|
||||
\x79\x71\xc9\x65\x3c\x00\x00\x02\x23\x49\x44\x41\x54\x38\xcb\xa5\
|
||||
\x92\x6f\x48\x13\x61\x1c\xc7\x65\xc1\x5e\x27\xf4\x22\x2c\x08\x0c\
|
||||
\x5a\x10\x44\x04\xbd\x28\x7a\x13\x14\x04\xbd\xad\x5e\x14\x11\x58\
|
||||
\xd9\x8b\x90\xfe\x91\x11\x51\x46\x54\x92\x28\xa1\xcb\x8e\xd4\xf5\
|
||||
\x67\x65\xad\x64\xb3\xa2\xa5\xb5\xad\x6e\x99\x6e\xb6\x3f\xce\x86\
|
||||
\xb3\x39\x77\xd7\xee\x16\x5e\xde\x36\x66\xdb\xed\x76\x87\xe3\xdb\
|
||||
\xdd\x8a\x60\xb5\x45\xd6\x8b\x0f\x3c\x6f\x3e\x9f\xe7\xf7\x7b\x78\
|
||||
\xaa\x00\x54\xfd\x0f\x3f\x0f\x4e\x6a\x5e\xf3\x66\x5a\x26\x6c\x61\
|
||||
\x89\x1d\x0c\xe5\x0a\xcf\x83\xd9\x42\xff\xd8\x1c\xdb\xe7\x49\x11\
|
||||
\x0f\x46\x78\xcd\x1f\x03\xa4\x22\xbf\x8e\xc8\xa4\x8f\x91\x40\x25\
|
||||
\x64\x30\x29\x09\x4c\x52\xc2\xd4\x97\x3c\x1c\x13\x69\xdc\x26\x67\
|
||||
\xc8\x2e\x3b\xab\xa9\x18\x70\x44\x64\xc2\xcb\xe4\xc1\xa6\x64\x84\
|
||||
\x66\x44\xf8\x99\x1c\x3c\xb1\x1c\x02\x6c\x0e\xd1\x59\x09\xd6\xb1\
|
||||
\x04\xf4\x2f\x68\xa2\x62\xe0\xe5\xa4\xc8\x52\xbc\x54\x94\xbd\x8a\
|
||||
\xf8\xfe\x93\x00\x37\x25\x60\x38\x2a\x7c\x0f\x31\x02\x5a\x9f\x44\
|
||||
\xd8\x8a\x01\x75\xdf\x98\x32\xb2\x2a\x8f\xd2\x02\x5c\x8a\xfc\x6e\
|
||||
\x3a\x0b\xe9\xc2\x79\xcc\x1f\x6d\x80\x7c\xa0\x0e\xe2\xce\xdd\xc8\
|
||||
\x6e\xdb\x8e\xb9\x0d\x9b\x90\x5a\xb5\x36\x55\x12\xb0\xf8\xd3\x05\
|
||||
\x3a\x21\xc1\xad\xc8\x23\xca\xad\x43\x8a\xec\x9c\xca\x16\xe5\xaf\
|
||||
\x0f\x3b\x91\xbe\xdb\x8e\x64\x77\x1b\x78\x7d\x33\xb8\xd6\x8b\x48\
|
||||
\xd4\xac\x44\x49\xc0\xe4\x4e\xb0\x93\x3f\xc6\x7f\x1b\xc9\x82\x54\
|
||||
\x64\xc7\xc7\x0c\x32\xc7\x4f\xfe\x7a\x73\x51\x9e\xad\x5e\x2e\x96\
|
||||
\x04\x8c\x43\x1c\x31\x10\x48\x22\xcc\xe5\x8b\xbb\xab\xb2\x2d\x94\
|
||||
\x29\xc6\x3e\xc4\x45\x18\x6c\x34\x3a\xae\x1b\x44\xfb\xa5\x1d\xba\
|
||||
\xb2\x6f\xd0\xed\x88\x6b\x6e\x0c\xc6\x48\xcb\x28\x07\x5f\x4c\x40\
|
||||
\xf0\xb3\x88\x71\x05\x77\x34\x83\x9e\x57\x34\xda\x4d\x2e\x4c\x58\
|
||||
\xae\xc0\x7a\x6e\x0b\xdf\x7f\x7a\xa3\xae\xec\x47\xba\xf6\x2c\xaa\
|
||||
\x69\xb1\x84\x89\xcb\x8f\x42\x6c\x53\x6f\xb0\x70\xf6\x4e\xa0\xd0\
|
||||
\xd8\xe3\x8b\xb7\xe8\x8d\x94\xd7\x78\x0a\x9c\xa7\x0f\xfe\xfb\x8d\
|
||||
\x30\x1d\x5b\xc7\xdf\x3b\xb2\x5a\xf7\x5b\xa0\x12\x03\x4d\x5b\xb5\
|
||||
\x4f\xcf\x6c\x36\x0f\x13\x07\x11\x77\x1a\xe0\xba\x59\x0f\xc3\xa1\
|
||||
\x15\xfc\x5f\x07\x54\x1e\x9f\x58\xaf\xed\x6d\x58\x63\xb6\xb7\xed\
|
||||
\x42\xd4\x7a\x15\xc4\xfe\xa5\x58\x50\x40\xe5\x56\x7d\xad\xb6\xab\
|
||||
\x6e\x99\xd9\x70\xb8\x16\xfa\xbd\xd5\xcd\x0b\x0e\xa8\x74\xee\x5b\
|
||||
\xb2\xa8\x63\xcf\xe2\x9a\xb2\x8f\xf8\xaf\x7c\x03\x6d\xbb\xfd\xe1\
|
||||
\x1e\xb2\x45\xb5\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
|
||||
\
|
||||
\x00\x00\x02\xdd\
|
||||
\x89\
|
||||
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
|
||||
\x00\x00\x10\x00\x00\x00\x10\x08\x06\x00\x00\x00\x1f\xf3\xff\x61\
|
||||
\x00\x00\x00\x04\x67\x41\x4d\x41\x00\x00\xaf\xc8\x37\x05\x8a\xe9\
|
||||
\x00\x00\x00\x19\x74\x45\x58\x74\x53\x6f\x66\x74\x77\x61\x72\x65\
|
||||
\x00\x41\x64\x6f\x62\x65\x20\x49\x6d\x61\x67\x65\x52\x65\x61\x64\
|
||||
\x79\x71\xc9\x65\x3c\x00\x00\x02\x6f\x49\x44\x41\x54\x38\xcb\xa5\
|
||||
\x93\xeb\x4b\x93\x61\x18\x87\xfd\x5b\xb6\x2f\x05\x83\xa4\x86\x59\
|
||||
\x28\xa8\x29\x25\x58\x28\x6f\xd9\x6c\x8a\x8a\x4e\xdb\x96\x73\x6b\
|
||||
\x8a\xce\xf6\x6e\x2e\x9d\xba\xcd\x03\x2d\x9d\x13\x0f\x15\xb5\xa1\
|
||||
\xdb\x68\xa4\x3b\x38\x0f\xc3\x03\x66\xe2\xd4\xd2\x45\xea\xeb\x50\
|
||||
\xa2\x8d\x22\x08\x6a\xc3\xaf\xbf\xde\x15\x4d\x47\xcb\x88\x1e\xf8\
|
||||
\x7d\x79\xe0\xba\x9e\xe7\xbe\xb9\xef\x24\x00\x49\xff\x93\xdf\x2e\
|
||||
\x74\xd3\x75\xcc\x0e\x8f\x84\x6c\x75\x89\xa8\xe6\x09\x41\x58\xfe\
|
||||
\xa2\x3a\xdc\xf0\xbc\x82\x92\x5a\xcb\x48\xd1\x68\x31\xf3\x44\x81\
|
||||
\x6e\x5a\x4a\xb4\x4f\x4a\x42\xcf\xd6\x7b\xb1\x1a\x5a\x84\xff\xf3\
|
||||
\x06\xd6\x3f\xad\x60\x32\x60\x87\xd2\x53\x03\xbe\x89\x13\xe2\x3d\
|
||||
\xb9\x4e\x24\x14\xfc\x84\xc5\x91\xe9\x3d\x3b\x0e\xbe\xed\x61\xf6\
|
||||
\x83\x0b\x26\x6a\x10\x8f\x77\x0c\xb0\xef\x9b\xb0\xf4\x71\x0e\xda\
|
||||
\x05\x19\x4a\x47\xf2\x23\xdc\xc1\x3c\x22\x4e\xa0\x9d\x92\x32\x68\
|
||||
\x38\xe8\xde\xb5\x60\xef\xeb\x36\x86\xb7\xf5\x78\xb8\xd6\x81\x6e\
|
||||
\x5f\x2b\x0c\x7e\x1d\xfa\xfc\x5a\x74\x6f\xb6\xc0\x7d\x60\x07\xe9\
|
||||
\x11\xa2\xd0\x78\x25\x58\xd0\x9b\xcd\x88\x09\x68\x58\xd1\xbf\xac\
|
||||
\xc6\xbb\x2f\x9b\xf4\x8b\x7d\xe8\xdd\xd2\x42\xf3\x4a\x89\x5f\x47\
|
||||
\xbd\x26\x83\x7c\x51\x08\xc5\x72\x2d\x9c\xfb\x36\xdc\x1c\xc9\x41\
|
||||
\xde\x83\x0c\x45\x4c\xd0\xe2\xac\xa1\x5c\x01\x1b\xfd\x55\x33\x3a\
|
||||
\x57\x55\x68\x5b\x91\x43\x36\x2b\x8a\x09\x04\x36\x2e\x1a\x66\xca\
|
||||
\x20\x9d\x2a\xc6\xc0\x1b\x1d\xf4\x4b\xcd\xb8\xdc\x9d\x46\xc5\x04\
|
||||
\x8a\x71\xfe\xa1\xf7\xbd\x0b\xfd\x6f\x75\x34\xdc\x84\x3f\x1d\xf1\
|
||||
\x64\x11\x14\xf3\x7c\x58\xfc\xc3\xc8\xd2\xa5\x1e\xc6\x04\x4d\x76\
|
||||
\xde\xe1\x44\x60\x0c\xda\x0d\x12\x2a\x5f\xfd\x89\x02\xd2\x5b\x0d\
|
||||
\xab\x7f\x08\xe9\x1d\xec\x23\x41\xbd\xad\x9c\x32\xfa\xb4\x30\x6c\
|
||||
\x69\xd0\xf4\x52\x08\xf1\x7c\x05\x78\xd6\x1b\x71\x60\x34\x77\x3d\
|
||||
\x5c\xf4\xfb\xd4\xe8\xf2\xde\xc3\x05\x75\xf2\x51\x09\xe2\xb1\x12\
|
||||
\xc5\x6d\x2b\x01\x47\xc0\x02\xd9\x7c\x25\x24\xde\xd2\x1f\x35\x1f\
|
||||
\x17\x88\x9c\x1c\xd4\xb9\x8b\xe1\xd8\x35\xe3\x52\x4f\x2a\xd8\xf7\
|
||||
\x59\x47\x4d\x14\x9a\x8b\x18\x55\x4f\x0b\x83\xa4\x47\x80\x71\x6a\
|
||||
\x34\xd6\xb0\x28\x58\xeb\x8c\x26\x0a\x73\x31\xb1\x63\xc2\x1d\xcb\
|
||||
\xad\x28\x1c\x4c\x56\x9e\x66\xc4\x0d\x52\xf9\xa3\x02\xa2\x64\xe8\
|
||||
\x6a\xa4\xd1\x51\x09\x27\x2d\x31\xfa\xda\x41\xce\x54\x41\x3e\x55\
|
||||
\x09\xe3\x6a\x1b\x1c\x34\x2c\xb4\x70\xc0\x56\xb1\x22\x34\x4c\x24\
|
||||
\x1c\x65\xce\x40\x2e\x41\x18\x72\x42\xf9\x03\x99\xe8\x59\x20\x61\
|
||||
\x7e\x6d\x80\x79\xc3\x00\x8d\xb7\x11\x59\x5d\x29\x51\x38\x74\x1c\
|
||||
\x4e\xb8\x4c\xd7\xf4\x99\xcc\xdc\x9e\x74\x32\xbb\xf3\x22\x95\xa1\
|
||||
\x49\x09\xa7\xb5\x9f\x0d\x9f\x6f\x3d\x43\x9d\x53\xb1\xc8\x64\xe5\
|
||||
\x29\xe6\x5f\xb7\xf1\x5f\xf3\x1d\x41\x46\xcb\x1f\x00\x28\xd3\xc1\
|
||||
\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
|
||||
\x00\x00\x02\xdd\
|
||||
\x89\
|
||||
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
|
||||
\x00\x00\x10\x00\x00\x00\x10\x08\x06\x00\x00\x00\x1f\xf3\xff\x61\
|
||||
\x00\x00\x00\x04\x67\x41\x4d\x41\x00\x00\xaf\xc8\x37\x05\x8a\xe9\
|
||||
\x00\x00\x00\x19\x74\x45\x58\x74\x53\x6f\x66\x74\x77\x61\x72\x65\
|
||||
\x00\x41\x64\x6f\x62\x65\x20\x49\x6d\x61\x67\x65\x52\x65\x61\x64\
|
||||
\x79\x71\xc9\x65\x3c\x00\x00\x02\x6f\x49\x44\x41\x54\x38\xcb\xa5\
|
||||
\x93\xeb\x4b\x93\x61\x18\x87\xfd\x5b\xb6\x2f\x05\x83\xa4\x86\x59\
|
||||
\x28\xa8\x29\x25\x58\x28\x6f\xd9\x6c\x8a\x8a\x4e\xdb\x96\x73\x6b\
|
||||
\x8a\xce\xf6\x6e\x2e\x9d\xba\xcd\x03\x2d\x9d\x13\x0f\x15\xb5\xa1\
|
||||
\xdb\x68\xa4\x3b\x38\x0f\xc3\x03\x66\xe2\xd4\xd2\x45\xea\xeb\x50\
|
||||
\xa2\x8d\x22\x08\x6a\xc3\xaf\xbf\xde\x15\x4d\x47\xcb\x88\x1e\xf8\
|
||||
\x7d\x79\xe0\xba\x9e\xe7\xbe\xb9\xef\x24\x00\x49\xff\x93\xdf\x2e\
|
||||
\x74\xd3\x75\xcc\x0e\x8f\x84\x6c\x75\x89\xa8\xe6\x09\x41\x58\xfe\
|
||||
\xa2\x3a\xdc\xf0\xbc\x82\x92\x5a\xcb\x48\xd1\x68\x31\xf3\x44\x81\
|
||||
\x6e\x5a\x4a\xb4\x4f\x4a\x42\xcf\xd6\x7b\xb1\x1a\x5a\x84\xff\xf3\
|
||||
\x06\xd6\x3f\xad\x60\x32\x60\x87\xd2\x53\x03\xbe\x89\x13\xe2\x3d\
|
||||
\xb9\x4e\x24\x14\xfc\x84\xc5\x91\xe9\x3d\x3b\x0e\xbe\xed\x61\xf6\
|
||||
\x83\x0b\x26\x6a\x10\x8f\x77\x0c\xb0\xef\x9b\xb0\xf4\x71\x0e\xda\
|
||||
\x05\x19\x4a\x47\xf2\x23\xdc\xc1\x3c\x22\x4e\xa0\x9d\x92\x32\x68\
|
||||
\x38\xe8\xde\xb5\x60\xef\xeb\x36\x86\xb7\xf5\x78\xb8\xd6\x81\x6e\
|
||||
\x5f\x2b\x0c\x7e\x1d\xfa\xfc\x5a\x74\x6f\xb6\xc0\x7d\x60\x07\xe9\
|
||||
\x11\xa2\xd0\x78\x25\x58\xd0\x9b\xcd\x88\x09\x68\x58\xd1\xbf\xac\
|
||||
\xc6\xbb\x2f\x9b\xf4\x8b\x7d\xe8\xdd\xd2\x42\xf3\x4a\x89\x5f\x47\
|
||||
\xbd\x26\x83\x7c\x51\x08\xc5\x72\x2d\x9c\xfb\x36\xdc\x1c\xc9\x41\
|
||||
\xde\x83\x0c\x45\x4c\xd0\xe2\xac\xa1\x5c\x01\x1b\xfd\x55\x33\x3a\
|
||||
\x57\x55\x68\x5b\x91\x43\x36\x2b\x8a\x09\x04\x36\x2e\x1a\x66\xca\
|
||||
\x20\x9d\x2a\xc6\xc0\x1b\x1d\xf4\x4b\xcd\xb8\xdc\x9d\x46\xc5\x04\
|
||||
\x8a\x71\xfe\xa1\xf7\xbd\x0b\xfd\x6f\x75\x34\xdc\x84\x3f\x1d\xf1\
|
||||
\x64\x11\x14\xf3\x7c\x58\xfc\xc3\xc8\xd2\xa5\x1e\xc6\x04\x4d\x76\
|
||||
\xde\xe1\x44\x60\x0c\xda\x0d\x12\x2a\x5f\xfd\x89\x02\xd2\x5b\x0d\
|
||||
\xab\x7f\x08\xe9\x1d\xec\x23\x41\xbd\xad\x9c\x32\xfa\xb4\x30\x6c\
|
||||
\x69\xd0\xf4\x52\x08\xf1\x7c\x05\x78\xd6\x1b\x71\x60\x34\x77\x3d\
|
||||
\x5c\xf4\xfb\xd4\xe8\xf2\xde\xc3\x05\x75\xf2\x51\x09\xe2\xb1\x12\
|
||||
\xc5\x6d\x2b\x01\x47\xc0\x02\xd9\x7c\x25\x24\xde\xd2\x1f\x35\x1f\
|
||||
\x17\x88\x9c\x1c\xd4\xb9\x8b\xe1\xd8\x35\xe3\x52\x4f\x2a\xd8\xf7\
|
||||
\x59\x47\x4d\x14\x9a\x8b\x18\x55\x4f\x0b\x83\xa4\x47\x80\x71\x6a\
|
||||
\x34\xd6\xb0\x28\x58\xeb\x8c\x26\x0a\x73\x31\xb1\x63\xc2\x1d\xcb\
|
||||
\xad\x28\x1c\x4c\x56\x9e\x66\xc4\x0d\x52\xf9\xa3\x02\xa2\x64\xe8\
|
||||
\x6a\xa4\xd1\x51\x09\x27\x2d\x31\xfa\xda\x41\xce\x54\x41\x3e\x55\
|
||||
\x09\xe3\x6a\x1b\x1c\x34\x2c\xb4\x70\xc0\x56\xb1\x22\x34\x4c\x24\
|
||||
\x1c\x65\xce\x40\x2e\x41\x18\x72\x42\xf9\x03\x99\xe8\x59\x20\x61\
|
||||
\x7e\x6d\x80\x79\xc3\x00\x8d\xb7\x11\x59\x5d\x29\x51\x38\x74\x1c\
|
||||
\x4e\xb8\x4c\xd7\xf4\x99\xcc\xdc\x9e\x74\x32\xbb\xf3\x22\x95\xa1\
|
||||
\x49\x09\xa7\xb5\x9f\x0d\x9f\x6f\x3d\x43\x9d\x53\xb1\xc8\x64\xe5\
|
||||
\x29\xe6\x5f\xb7\xf1\x5f\xf3\x1d\x41\x46\xcb\x1f\x00\x28\xd3\xc1\
|
||||
\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
|
||||
\x00\x00\x02\xa8\
|
||||
\x89\
|
||||
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
|
||||
\x00\x00\x10\x00\x00\x00\x10\x08\x06\x00\x00\x00\x1f\xf3\xff\x61\
|
||||
\x00\x00\x00\x04\x67\x41\x4d\x41\x00\x00\xaf\xc8\x37\x05\x8a\xe9\
|
||||
\x00\x00\x00\x19\x74\x45\x58\x74\x53\x6f\x66\x74\x77\x61\x72\x65\
|
||||
\x00\x41\x64\x6f\x62\x65\x20\x49\x6d\x61\x67\x65\x52\x65\x61\x64\
|
||||
\x79\x71\xc9\x65\x3c\x00\x00\x02\x3a\x49\x44\x41\x54\x38\xcb\xa5\
|
||||
\x92\x5b\x68\x92\x71\x18\xc6\x87\x81\xd7\x05\x5d\x44\x5d\x04\xbb\
|
||||
\x59\xac\x68\xad\x88\x58\x74\xba\x18\xd1\x55\x14\xd5\x58\x8d\x5a\
|
||||
\xb3\xb9\x90\x6a\x48\x63\xcb\x21\x24\x44\x07\x1a\x1d\x20\xab\x8f\
|
||||
\x4c\x6b\x58\x6b\xae\xa1\x5b\x2b\xdb\x9a\xb3\x7d\xe6\x0e\x6e\x1e\
|
||||
\xb2\x24\x97\x73\x6a\xfa\x19\xb3\x74\xb2\xf0\xf8\x49\xf2\xf4\x7d\
|
||||
\x12\x81\xe4\xa2\xd5\xc5\x03\xff\x9b\xdf\xef\xff\xbc\x2f\x6f\x11\
|
||||
\x80\xa2\xff\xc9\xaf\x87\xc1\xfb\x9d\x33\x3c\x93\x21\x74\x2e\x9a\
|
||||
\x1a\x70\x26\xb3\x2f\x1c\xf1\x6c\xcf\xdb\x6f\x54\xb7\x39\x4a\x3c\
|
||||
\x19\x0b\x73\xfe\x28\x20\x19\xf8\xb5\x3b\x43\x5a\x03\x34\xbc\x91\
|
||||
\x0c\x02\x51\x1a\x81\x39\x1a\xd3\x5f\xd2\xd0\x7f\x98\xc7\x43\x72\
|
||||
\x96\x94\x0d\x51\x9c\x05\x05\x7a\x77\x86\xb0\x04\xd2\xa0\xa2\x19\
|
||||
\x38\x67\x53\xb0\x05\x92\x30\xfb\x93\xb0\x53\x49\x78\xbe\xd2\x10\
|
||||
\xea\x05\xe0\x6b\x6b\x50\xab\xae\x4a\x15\x14\xbc\x9a\x4a\x51\xde\
|
||||
\x30\x9d\x83\x2d\x0c\x38\xf9\x29\x01\x93\x37\x81\x51\x4f\x22\x27\
|
||||
\x3a\xf1\xfc\x30\x3a\x27\x2f\xa0\x4a\xb9\x17\x05\x05\xec\xbc\x7e\
|
||||
\xa6\x32\x0b\x4f\xf8\x12\x18\x67\xe0\x91\x99\x38\x1a\x75\x02\xd4\
|
||||
\xf5\x56\x43\xa4\xad\x87\xcc\x28\x82\xa0\xb3\x1a\xbb\x6f\xec\xc4\
|
||||
\xae\xcb\x15\xd1\x3c\x81\xc6\x36\x9f\xf5\x45\x68\x98\x18\x78\x8c\
|
||||
\xf9\xd5\xc8\xc0\x86\xe9\x38\x5b\x19\xf2\x91\x56\xdc\x1e\x6e\xc2\
|
||||
\xb5\xc1\xd3\xb8\xf8\x92\x0f\x71\xef\x31\x6c\x11\x97\x23\x4f\xa0\
|
||||
\x32\x45\xa8\xa9\x9f\xf5\xdf\xb8\xe3\x20\x19\x58\xff\x31\x06\x9e\
|
||||
\xaa\x0e\xfb\x64\x7b\xc0\x6b\xdf\x8f\xf3\x7d\xc7\x71\x40\x5a\x89\
|
||||
\xcd\xa2\x32\x94\x09\x4b\x53\x79\x02\xa5\x31\x44\xf4\xdb\xe7\xe0\
|
||||
\x0a\xa5\x73\xb3\xb3\xb0\xce\x19\xcb\xc9\xde\x07\x53\x6c\x65\x08\
|
||||
\xbb\x0e\x62\x53\xf3\xfa\xc2\x3b\xb8\xaf\x0f\x72\xee\x0e\xf8\x49\
|
||||
\xcd\x44\x08\x56\x7f\x02\x8e\xcf\x29\xbc\x63\x62\xf2\xc4\x20\x1f\
|
||||
\xf4\x61\x87\x64\x3b\xca\x9b\xd6\x61\x6b\x63\x69\xb6\xe7\x5c\x45\
|
||||
\x49\xc1\x43\xba\xd9\xe7\xe1\xb4\x69\x5c\xc4\xa5\x2e\x27\x25\xe9\
|
||||
\x70\x64\xc5\xed\xf6\x6c\x8b\xdc\x1a\x6c\x93\x2a\xbd\x16\x65\x33\
|
||||
\x42\xe6\x6e\xd8\x1e\xb7\x40\x25\xdc\x10\x7e\x74\x6a\x4d\xc9\x6f\
|
||||
\x82\x85\xd2\x2f\xa9\xe4\x3e\x6b\xdd\xa6\x1e\x25\xea\x11\x34\x28\
|
||||
\x30\x7e\xaf\x01\x0a\xfe\xea\xf0\x5f\x0b\xd8\x3c\x3d\xbb\x91\xdb\
|
||||
\x71\x66\xad\x7a\xe8\xfa\x21\x78\xb4\x57\x41\xd4\xae\xc0\xa2\x04\
|
||||
\x6c\x1e\x34\x14\x73\x65\xbc\x55\x6a\xc5\xc9\x62\x48\x6b\x96\x5d\
|
||||
\x59\xb4\x80\xcd\x9d\xa3\xcb\x97\xdc\x3a\xb2\x74\x65\xc1\x25\xfe\
|
||||
\x6b\x7e\x00\x80\xf3\xf0\x49\x9c\xc2\xfb\xac\x00\x00\x00\x00\x49\
|
||||
\x45\x4e\x44\xae\x42\x60\x82\
|
||||
\x00\x00\x03\xb0\
|
||||
\x89\
|
||||
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
|
||||
\x00\x00\x10\x00\x00\x00\x10\x08\x06\x00\x00\x00\x1f\xf3\xff\x61\
|
||||
\x00\x00\x00\x04\x67\x41\x4d\x41\x00\x00\xaf\xc8\x37\x05\x8a\xe9\
|
||||
\x00\x00\x00\x19\x74\x45\x58\x74\x53\x6f\x66\x74\x77\x61\x72\x65\
|
||||
\x00\x41\x64\x6f\x62\x65\x20\x49\x6d\x61\x67\x65\x52\x65\x61\x64\
|
||||
\x79\x71\xc9\x65\x3c\x00\x00\x03\x42\x49\x44\x41\x54\x18\x19\x05\
|
||||
\xc1\xdb\x4f\x5b\x75\x00\xc0\xf1\xef\x69\x4f\x29\x2d\xbd\x50\x28\
|
||||
\xb3\xd0\x15\x0c\x43\x1c\x30\x26\x9b\x4c\x48\x80\x19\xcd\x18\x2e\
|
||||
\xea\x83\x89\xfa\x32\xa3\x91\x07\x63\x4c\x0c\x7f\x80\x8f\x66\x7b\
|
||||
\x30\x26\x26\x46\xf7\xa6\x92\x98\xa8\x7b\x31\x7b\xda\x0c\x3a\x1d\
|
||||
\x19\x38\x37\x77\xc5\x85\x6d\x14\xe2\xca\xd5\xd1\xb4\xa5\x85\x9e\
|
||||
\x9e\xcb\xef\xe2\xe7\x63\x68\xad\x01\x00\x00\x98\x9a\x9f\x1c\x03\
|
||||
\x3e\x06\x8e\x01\x2d\x80\x09\x94\x81\xeb\x5a\xe9\x73\x5f\x8e\x7d\
|
||||
\xf7\x0b\x00\x00\x80\xa1\xb5\x06\x60\x6a\x7e\xd2\x04\xa6\x81\x37\
|
||||
\x5f\xcf\x9c\x08\x26\x42\x2d\x54\xac\x06\x2c\x17\x84\xb4\x11\x3c\
|
||||
\xe1\xf2\xd6\x25\x21\x85\xfc\x55\x08\xf9\xf6\x37\xa7\x7e\xda\x03\
|
||||
\x30\xb4\xd6\x4c\xcd\x4f\x06\x80\x3f\x06\x93\x7d\x23\x27\x33\x2f\
|
||||
\x51\xb1\x83\x38\xb8\x2c\x57\x0c\xea\x74\x90\x82\xa5\xd0\xc2\x25\
|
||||
\x84\xc5\x96\x73\x95\x9b\x9b\x37\x17\x84\x27\x8e\xff\xf0\xd6\x85\
|
||||
\xb2\x0f\x00\x98\x3e\xda\xdc\x3d\x32\xda\x36\x48\x51\xba\x78\x3e\
|
||||
\x03\x21\x7c\xd4\x44\x1d\x16\x75\x14\x9d\x20\xdb\x76\x88\xf5\x72\
|
||||
\x80\xf6\xc8\x0b\x0c\xa6\x9e\x3d\xec\x3a\xde\x8f\x00\xfe\xd2\xf8\
|
||||
\xea\x28\xf0\xd9\xe9\xee\xd7\xfc\xf7\x65\x95\x2d\x6a\xd4\x94\x60\
|
||||
\xcf\x8e\x50\x74\x02\x54\x6c\xc8\x6e\xec\x52\xae\x56\x09\x26\x0a\
|
||||
\x18\xf1\x2c\xc3\xc9\x83\x5c\x5e\xbc\xd1\xf9\xfd\xf5\xe9\x7b\xfe\
|
||||
\xa1\xc9\x23\x5f\x4c\xb4\x0d\x1d\x32\xfc\x21\xb6\x7c\x02\xf4\x3e\
|
||||
\x5a\x65\x84\x5b\x4f\xfc\xd4\x6c\x1f\x8b\x1b\x7b\xa8\xfa\x12\xc1\
|
||||
\x8e\x47\x38\xb1\x2c\x79\x55\xc2\x2c\x49\x0e\x35\x67\x7c\xb7\x1e\
|
||||
\x3f\x6c\x32\x81\x63\x99\x58\x9a\xbb\xd6\x26\xf9\x7a\x1f\xbd\xfe\
|
||||
\x03\x28\x04\xb9\x6d\x17\xdb\xae\x11\x4f\x69\x2a\x4d\x33\x2c\xab\
|
||||
\x1d\x70\x34\x8d\x22\x48\x36\xef\x70\xe2\xe9\xa3\x78\x8e\xe8\x37\
|
||||
\x81\xe6\xb0\xd9\x40\xce\xda\x64\xdb\xb1\x88\x86\x3b\xd9\x71\xa3\
|
||||
\x94\x4a\x8a\x78\x8b\xcd\xbe\x84\x45\x5e\x0e\x90\xbe\x73\x0e\x69\
|
||||
\x57\xc9\x67\x0e\x52\xdc\x09\x13\x09\x45\xf1\x5c\xd1\xe8\xd3\x5a\
|
||||
\x1b\x86\x06\xd7\xa9\xa0\xad\x56\x4c\x4f\x72\xe9\x2f\x0f\xa3\x3e\
|
||||
\xc4\xd6\xb2\xc9\xda\x6a\x8c\x36\x27\x84\xf0\x34\xfb\x93\x3d\x04\
|
||||
\x97\xef\xe0\xd9\x35\xd0\x1a\x21\x84\x61\x4a\xa1\x8a\x15\xb7\x92\
|
||||
\x6e\xf6\x37\x12\xad\x7f\x8e\xf5\xbc\x89\xed\x05\x68\x55\x1f\x11\
|
||||
\x0f\x4b\x9c\x0d\x8f\xdd\x9c\x20\xdd\xd4\x45\x4f\x6a\x88\x5d\xbb\
|
||||
\xca\xc2\xfa\xef\x14\xab\x13\x48\xa1\xca\xa6\xf0\xc4\xed\xc7\xc5\
|
||||
\xd5\x74\x57\x38\xc3\x6f\xff\xcd\xd3\x18\xee\xa2\xce\x9f\x41\x28\
|
||||
\x97\xf1\xbe\xf7\x90\x5a\x21\x95\x44\xa1\xd9\x2c\xaf\xd1\xbf\x7f\
|
||||
\x84\x3d\xb7\xc6\x27\x17\x3e\x04\xba\x1f\xf8\x3c\x57\x7c\xf5\xf3\
|
||||
\xc3\x59\xd1\x11\x69\xc1\xb4\x36\x28\x17\xfe\x24\x91\x70\xb0\x85\
|
||||
\x8b\xd4\x8a\x5c\x21\xcb\xbf\x85\x25\x56\xf2\x8b\xec\xd4\x0a\xe4\
|
||||
\x8a\x2b\x0c\x64\xc6\x78\x26\xf5\x3c\xbb\x81\x7b\xa3\xbe\x6f\x5f\
|
||||
\x3d\x3f\xe3\x3a\xde\xc5\x99\xc5\x59\x5e\x4c\x0f\x10\xf7\x37\x90\
|
||||
\x88\x28\x6c\x61\x23\xa4\xe0\xa9\x58\x3b\xa9\x58\x07\xad\xf1\x4e\
|
||||
\x02\xfe\x10\x2d\xd1\x34\xb7\xd7\xe6\xb9\xb6\x72\xc3\xb2\x5c\x62\
|
||||
\x26\x80\xe7\x78\xef\x5c\xc9\xde\x9d\x73\x6a\xee\xe1\x89\x23\xc7\
|
||||
\x79\xb4\x6d\xf2\x8f\x70\x98\xbe\xf6\x39\xae\x72\xb1\x85\xcb\x81\
|
||||
\x64\x2f\xc3\x9d\x27\xf9\x3b\x37\xc7\x95\xa5\x59\x27\x2c\xdb\x7b\
|
||||
\x96\xcf\x66\x6b\x86\xd6\x1a\x80\x57\xbe\x7e\x39\x2a\x3c\x71\x5e\
|
||||
\x78\x72\xfc\xdd\x91\xf7\x4d\x64\x0a\xad\xc3\x18\x3e\x83\x64\xbc\
|
||||
\xc2\xa7\x17\x4f\xd3\xd7\x3a\xcc\xd5\xa5\xb9\xdd\x06\xdd\xde\xbb\
|
||||
\x70\x66\x69\x1d\xc0\xd0\x5a\x03\x00\x00\x30\x72\x66\xe8\x0d\x29\
|
||||
\xe4\x07\x52\xaa\x7e\x25\x55\x02\x00\x28\xef\xf8\xef\x27\x85\x22\
|
||||
\x50\x53\x32\xb0\x7d\x56\x0b\x00\x80\xff\x01\x38\xdd\xb8\x02\x3b\
|
||||
\x59\x7d\xca\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
|
||||
\x00\x00\x02\x62\
|
||||
\x89\
|
||||
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
|
||||
\x00\x00\x10\x00\x00\x00\x10\x08\x06\x00\x00\x00\x1f\xf3\xff\x61\
|
||||
\x00\x00\x00\x04\x67\x41\x4d\x41\x00\x00\xaf\xc8\x37\x05\x8a\xe9\
|
||||
\x00\x00\x00\x19\x74\x45\x58\x74\x53\x6f\x66\x74\x77\x61\x72\x65\
|
||||
\x00\x41\x64\x6f\x62\x65\x20\x49\x6d\x61\x67\x65\x52\x65\x61\x64\
|
||||
\x79\x71\xc9\x65\x3c\x00\x00\x01\xf4\x49\x44\x41\x54\x38\xcb\x95\
|
||||
\x93\xcb\x6f\x12\x51\x18\xc5\xf9\x5f\xfc\x5b\x8c\x1a\x63\x8c\x2b\
|
||||
\x57\x2e\x5d\x8b\xd1\x85\xa4\x69\x9a\xe1\x35\x0c\x1d\x20\x0e\x05\
|
||||
\x67\x1c\xa0\x0b\x6d\xb0\x96\xd6\x18\x4a\x5b\x46\xd4\x71\x86\x97\
|
||||
\xc9\xe8\xa4\x23\x0f\x5f\xd0\x14\x29\x08\xda\x71\xd5\xb8\x18\xd3\
|
||||
\xd3\x3b\x2c\x1a\x93\xb6\x40\x17\xf7\x91\x7b\xf3\x3b\xdf\xf9\xce\
|
||||
\xcd\x75\x00\x70\x4c\x1a\xa9\x54\xca\x99\x48\x24\x1a\xa2\x28\x5a\
|
||||
\x82\x20\x58\xff\xdf\x4d\x84\x93\xc9\xa4\x93\x80\x07\xdd\x6e\x17\
|
||||
\xa6\x69\x22\x1e\x8f\xe3\x5c\x02\x04\x6e\x74\x3a\x1d\xf4\xfb\x7d\
|
||||
\xe4\xf3\x79\x44\xa3\xd1\xf3\x09\xf0\x3c\x6f\xd9\xd5\x75\x5d\x07\
|
||||
\xc7\x71\x8a\x7d\x16\x0e\x87\xc1\xb2\x2c\x82\xc1\xa0\x35\x51\x80\
|
||||
\x58\xfe\xd7\x6a\xb5\x50\x2a\x95\x10\x89\x44\xde\x85\x42\x21\x35\
|
||||
\x93\xc9\xa0\xd9\x6c\x82\xa6\xe9\xf1\x02\xb1\x58\xec\x32\xb1\x7c\
|
||||
\x58\xab\xd5\x50\xad\x56\x51\x28\x14\x20\x49\x12\x14\x45\x41\xb1\
|
||||
\x58\x84\xcf\xe7\x6b\x9c\x0a\xce\xaf\xfe\xe0\x02\xe9\xaf\x3a\xb1\
|
||||
\x6c\x55\x2a\x15\x68\x9a\x06\x7b\x2d\x97\xcb\x50\x55\x15\xb2\x2c\
|
||||
\xc3\xeb\xf5\x1e\xb8\xdd\x6e\xe7\x09\x98\x59\xde\xe5\x12\xf9\x3e\
|
||||
\xf8\x8d\x1e\xd8\xe5\xcf\x30\x0c\x03\xb9\x5c\x0e\x0c\xc3\x1c\xda\
|
||||
\x96\x49\x55\xcb\xe3\xf1\x34\x28\x8a\x72\x9e\x08\x91\xb6\xe1\xcd\
|
||||
\x1e\x0a\xfa\x1f\x48\x1f\x4d\xb0\x6b\x1d\xcc\x88\x06\x02\x81\xc0\
|
||||
\x5f\xbf\xdf\x7f\xe1\x34\xb7\xc7\x1b\x5f\x7a\x97\x13\x08\xfc\x8a\
|
||||
\x80\x69\x79\x80\x27\xaf\x7f\x22\x5b\xfd\x0d\xea\xe9\x0e\x6e\x31\
|
||||
\xc6\xfb\xb3\x72\x1a\x4d\x9e\xa5\x1d\x8e\x5f\xef\x41\xfa\x60\x62\
|
||||
\xe9\xed\x00\xf1\xf5\x3d\x24\x49\x1b\x6b\xe5\x5f\x70\x2d\xb6\x71\
|
||||
\xc3\x53\x7f\x7e\xa6\xc0\x1c\x81\x17\xb2\x3d\x6c\x69\x04\x7e\x33\
|
||||
\xc0\x42\x76\x0f\x22\x71\xb2\x5a\x1c\xe2\x41\xaa\x8d\xeb\xd4\xa7\
|
||||
\xcc\xb8\x97\x72\xb8\x16\x5b\xd8\xd4\xf6\x47\x96\xb9\x97\x5d\x3c\
|
||||
\x26\xe1\x65\xd4\x21\xee\x27\xda\xb8\x36\x37\x1e\x1e\x09\xdc\x79\
|
||||
\xf4\x8d\xf4\xba\x0f\x71\x8b\x24\x4f\xda\x58\x21\xf0\x3d\x02\x5f\
|
||||
\x99\xdd\x7e\x31\xcd\x47\x73\xdc\x7e\xf8\x45\xb3\x83\x5a\x51\x86\
|
||||
\x78\x26\x0f\x71\x57\xf8\x8e\x4b\x33\xd3\xc1\xc7\x21\xde\xa4\xeb\
|
||||
\x75\x12\x14\xae\xce\x6e\xe3\xa2\x6b\x7a\xd8\x1e\x47\x72\x6a\xf9\
|
||||
\x51\xfb\x6e\xbb\x1b\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\
|
||||
\x82\
|
||||
\x00\x00\x03\x0a\
|
||||
\x89\
|
||||
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
|
||||
\x00\x00\x10\x00\x00\x00\x10\x08\x06\x00\x00\x00\x1f\xf3\xff\x61\
|
||||
\x00\x00\x00\x04\x67\x41\x4d\x41\x00\x00\xaf\xc8\x37\x05\x8a\xe9\
|
||||
\x00\x00\x00\x19\x74\x45\x58\x74\x53\x6f\x66\x74\x77\x61\x72\x65\
|
||||
\x00\x41\x64\x6f\x62\x65\x20\x49\x6d\x61\x67\x65\x52\x65\x61\x64\
|
||||
\x79\x71\xc9\x65\x3c\x00\x00\x02\x9c\x49\x44\x41\x54\x38\xcb\xa5\
|
||||
\x93\xcb\x6b\xd4\x57\x1c\xc5\x3f\x77\x4c\xac\x64\x4c\x26\x31\x0a\
|
||||
\x99\x89\x36\x8f\xd1\xa8\x28\x68\xa1\x89\x52\x2c\x08\xc5\x4d\x21\
|
||||
\x52\x3b\x54\x41\xa2\x2e\x5c\x74\x95\x6d\x15\x5c\xf9\x1f\x08\x0a\
|
||||
\x3e\x56\xbe\xb0\xa5\x74\x9a\xae\x85\x5a\x9a\x94\x86\xce\xa2\x1b\
|
||||
\x99\xc6\x30\xd5\xc4\x34\x8f\xd1\x18\x33\xc9\x24\xfd\xcd\xdc\xef\
|
||||
\xbd\xf7\xeb\x42\x48\x7c\xb4\x1b\x3d\xcb\x2f\x5f\x3e\x1c\x38\xe7\
|
||||
\x18\x55\xe5\x7d\x54\xf3\xe6\x21\x73\x75\x34\x2d\xc1\x1d\x57\x17\
|
||||
\x4e\x56\xad\xb4\x38\x0d\x28\xa1\x08\xe1\xa6\x77\xe1\xce\xe0\xd9\
|
||||
\x4f\x1e\xbe\xfa\x6f\x5e\x75\xf0\xc5\x95\x91\x8c\xb5\x72\xb1\x23\
|
||||
\xa1\xc9\x9e\xb6\x46\x1a\xd6\xae\x01\x60\x21\x72\x0c\x15\x9e\x70\
|
||||
\x7f\x7a\x79\x06\xa3\xfd\xb9\xf3\x9f\x65\xdf\x02\x1c\xbe\x9c\xcf\
|
||||
\xd8\x48\x6e\x1c\xda\x56\x17\xdf\xdd\x5a\xcf\xd4\x9c\xa5\xb8\x10\
|
||||
\xe1\x83\x92\xa8\x5b\x43\x2a\xb1\x8e\xc2\xb3\x32\x03\x3f\x3f\x5c\
|
||||
\xa6\x86\x53\xb9\x0b\x87\xb3\x2b\x80\xde\x4b\xf7\x3b\x45\xdc\xd0\
|
||||
\xa1\xad\xf1\xd4\xf6\x96\x7a\x72\x63\x25\x9c\x13\xf6\xb4\x35\x81\
|
||||
\x2a\x7f\x8e\xcd\x63\x62\x86\x5d\xc9\xf5\xfc\x33\x5f\xe6\xa7\xbb\
|
||||
\x85\x69\x34\x7c\x9a\xbb\x76\xf4\x51\x0c\x40\x82\xeb\xeb\x68\xd0\
|
||||
\xd4\x8e\x64\x03\xc3\x85\xe7\xd8\xc8\x22\xd5\x40\xef\xc7\x49\x7a\
|
||||
\xbb\x53\x88\x13\x6c\xd5\x92\x9f\x2c\xd1\xbe\x31\x41\xd7\xd6\x86\
|
||||
\x94\x46\xd2\x07\x10\x03\xb0\xde\x9f\xd8\xd7\xde\xcc\x58\x71\x09\
|
||||
\x11\x41\x82\xc7\x07\xc7\x8f\xc3\x13\x64\x87\x27\xb0\x62\xb1\xce\
|
||||
\xb2\x14\x45\x8c\xcf\x2e\x72\x60\x6f\x1b\xc6\xda\x13\x2b\x29\xd8\
|
||||
\xc8\xb6\x36\xd5\xd7\x50\x98\x29\xe1\xbc\x47\xbc\xa0\x21\xd0\x77\
|
||||
\xb0\x13\x05\x86\x47\xa6\xd1\x10\x00\x43\x71\x6e\x91\xae\xd4\x66\
|
||||
\xd4\x47\xad\xab\x0e\xaa\x16\x0d\x8a\x53\xb0\xae\x4a\xf0\x9e\x10\
|
||||
\x94\xfc\xe3\x79\xfe\xad\x38\xbc\x75\x78\xf1\x38\x71\x38\x2b\xa8\
|
||||
\x01\xbc\x67\x05\x00\x7e\x6a\x6e\xb9\x42\x73\xbc\x16\xa3\x31\x34\
|
||||
\x28\xc1\x7b\x5e\x26\xa4\x78\x71\x04\x11\x82\x58\x12\xf1\x0f\x78\
|
||||
\xb2\x58\xc6\x98\x30\xb5\x0a\xb0\xee\xd6\x60\x7e\x92\xb6\x4d\x71\
|
||||
\x08\x01\x9c\x72\x64\x7f\x3b\x3b\x3f\x6c\xa2\x6e\x5d\x2d\xfd\x47\
|
||||
\xf6\x20\x22\x38\x11\x3a\x5a\x12\x0c\x0d\xfd\x0d\xe8\xad\xd5\x26\
|
||||
\x56\xa2\xdb\x23\x0f\xca\x5f\xa7\x93\x8d\xa9\x9e\xae\x4d\xfc\x96\
|
||||
\x9f\xe4\xfb\x5f\x47\xf9\xf6\xde\x5f\xa8\x38\x54\x03\x8a\xf2\xd1\
|
||||
\xf6\x2d\x8c\x97\x16\x79\x94\x2f\x4c\x1b\xb8\xfd\x5a\x91\xba\x4f\
|
||||
\x7f\x97\xd1\x72\xe5\xc6\xe7\x5f\xee\x8e\x77\x6e\xac\xe7\xc1\xe3\
|
||||
\x59\x66\x9f\x97\x09\x2e\xb0\xa1\xb1\x8e\x6d\x5b\x9a\x19\x2f\x2d\
|
||||
\x71\xef\x87\x5f\x96\x31\xb5\xa7\x72\x03\xdf\x64\xdf\xaa\x72\xf7\
|
||||
\xb1\xeb\x19\xd4\x5e\x4c\xef\x4a\x26\x0f\xec\x4b\xd3\xbc\x7e\x2d\
|
||||
\xa0\x3c\x5d\xa8\x30\xf8\xfb\x28\x13\xf9\xc2\x8c\x31\xb1\xfe\xdc\
|
||||
\xc0\x99\xec\x7f\x6e\x01\xa0\xe7\xab\x2b\x69\x55\x7f\x1c\x0d\x27\
|
||||
\x09\x95\x16\x34\x60\x8c\x29\x02\x37\x0d\x72\xe7\x8f\x81\x73\xff\
|
||||
\x3f\xa6\x77\xd1\x0b\xa8\x3f\x82\x7b\x59\xb6\x21\xb9\x00\x00\x00\
|
||||
\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
|
||||
\x00\x00\x02\x19\
|
||||
\x89\
|
||||
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
|
||||
\x00\x00\x10\x00\x00\x00\x10\x08\x06\x00\x00\x00\x1f\xf3\xff\x61\
|
||||
\x00\x00\x00\x04\x67\x41\x4d\x41\x00\x00\xaf\xc8\x37\x05\x8a\xe9\
|
||||
\x00\x00\x00\x19\x74\x45\x58\x74\x53\x6f\x66\x74\x77\x61\x72\x65\
|
||||
\x00\x41\x64\x6f\x62\x65\x20\x49\x6d\x61\x67\x65\x52\x65\x61\x64\
|
||||
\x79\x71\xc9\x65\x3c\x00\x00\x01\xab\x49\x44\x41\x54\x38\xcb\xbd\
|
||||
\x93\xd9\x2e\x43\x61\x14\x85\x7b\xe7\x38\xef\x62\x6e\xd5\x18\x53\
|
||||
\x42\xaa\x86\x54\x27\xea\xe8\x29\x45\x29\x8d\x1b\xaa\xa7\xad\x56\
|
||||
\xab\x43\x4a\x0c\xc7\xa5\x18\x6a\x8e\xc4\x14\x94\x20\x12\x97\x5a\
|
||||
\xd5\x86\x67\x10\x2f\xa1\xba\xfc\x95\x68\xc2\x85\x18\x12\x17\xff\
|
||||
\xdd\xbf\xd6\xde\xfb\xdb\x6b\x0b\x00\x08\xfe\xf2\x04\xff\x6e\xa0\
|
||||
\x5e\x6b\xe2\x5b\x96\xea\x9d\xbf\x32\x50\xad\x36\xf2\xa6\x63\x3d\
|
||||
\xfa\x0f\x58\x48\xf8\x2a\xee\x47\x06\xca\x60\x03\x3f\x78\xd4\x85\
|
||||
\xd9\x7b\x37\xbc\x37\x56\xe8\xb6\xd4\xa8\xf0\x14\xd9\xbe\x25\x56\
|
||||
\xac\x48\x79\xe3\xa1\x0e\xd3\x71\x17\xa6\xe2\x4e\x74\x6e\xb7\xa2\
|
||||
\xd2\x5b\x8c\x12\x87\x90\x4a\x7f\x32\x5e\xb2\x35\x86\x33\xa6\xe7\
|
||||
\xb3\x58\xbe\x2c\xe5\x53\x2d\x4f\xc6\x9c\x08\xc4\x1c\x6f\x95\xcb\
|
||||
\xdd\xe2\x44\xf1\x58\x01\x95\x1e\xc1\x78\xc1\x96\xf5\x9e\x32\x4f\
|
||||
\xdc\xb5\x09\xec\xae\x72\xe8\x5d\x4c\x60\xf1\x7d\xfb\x5a\x04\xee\
|
||||
\xc6\xe0\xbf\xb3\x83\xdd\x54\xa1\xcc\x55\x98\x28\xb2\xe7\x53\x69\
|
||||
\x88\xfd\xe7\xda\xda\xde\x50\xfb\xa3\x2f\xcc\x61\x3a\x36\x0e\xcd\
|
||||
\x96\x2c\x41\x60\x0d\xc9\x16\x25\x53\x86\x3d\x06\xbe\xa8\x1d\xde\
|
||||
\x5b\x0e\x1d\x1b\x0a\x94\x8e\x8b\x12\x62\x5b\x1e\xf5\x61\x8d\x3d\
|
||||
\x27\x9a\x4c\xfd\x61\x1b\xcc\x57\x03\x98\x7b\xf0\xc0\x1b\xb6\xc2\
|
||||
\x78\xa4\x83\xe9\x44\x8f\x89\xb0\x05\xee\x5b\x0b\x98\x75\x39\x4a\
|
||||
\x9c\xc2\x97\x42\xeb\x47\x71\x7a\x04\x66\x47\x4e\x93\xca\x30\x85\
|
||||
\xf4\x6f\x73\xfa\xa3\x36\xb8\x22\x66\xb8\xc2\x66\x68\xd6\x5a\x52\
|
||||
\xb0\x92\x22\x2e\x97\xfa\x32\x48\x04\x16\x2d\x5b\x90\xa0\x7b\xb7\
|
||||
\x1d\xee\xc8\x28\x1c\x37\xc3\x68\x0b\xca\x40\x60\x25\x45\x96\x1c\
|
||||
\xea\x5b\x49\x94\xcc\x57\xd3\x75\x33\x95\xa4\x65\x05\xd4\x2b\xcd\
|
||||
\x20\xb0\x92\xc2\xd1\x6c\xea\x47\x51\x26\xfb\xa5\xcb\x27\xc4\x20\
|
||||
\xb0\x9e\x0b\xcc\xd9\x19\xbf\xba\x05\x02\x8b\xce\x1f\xc9\xca\xf8\
|
||||
\x97\x6b\x7c\x05\xbe\xa2\xa9\x3c\x52\x0a\x03\x48\x00\x00\x00\x00\
|
||||
\x49\x45\x4e\x44\xae\x42\x60\x82\
|
||||
\x00\x00\x02\x8f\
|
||||
\x89\
|
||||
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
|
||||
\x00\x00\x10\x00\x00\x00\x10\x08\x06\x00\x00\x00\x1f\xf3\xff\x61\
|
||||
\x00\x00\x00\x04\x67\x41\x4d\x41\x00\x00\xaf\xc8\x37\x05\x8a\xe9\
|
||||
\x00\x00\x00\x19\x74\x45\x58\x74\x53\x6f\x66\x74\x77\x61\x72\x65\
|
||||
\x00\x41\x64\x6f\x62\x65\x20\x49\x6d\x61\x67\x65\x52\x65\x61\x64\
|
||||
\x79\x71\xc9\x65\x3c\x00\x00\x02\x21\x49\x44\x41\x54\x38\xcb\x95\
|
||||
\x93\xeb\x4e\x13\x51\x14\x85\x89\x89\xc9\x89\xcf\xa0\x56\x89\x86\
|
||||
\xc8\x91\x80\xc4\x1b\x42\x5b\x06\x28\xad\x0d\x08\x26\xd0\xfb\x85\
|
||||
\x5e\xa4\x80\xb4\xa5\xed\xa4\x4d\xa1\x36\xea\x0f\x4d\x7c\x12\x9f\
|
||||
\x0b\x44\xc5\xde\xb0\xd2\x99\x76\x3a\xd3\xe5\xae\x98\x4a\x2d\x25\
|
||||
\xe1\xc7\x4e\xce\x64\xce\xfa\xf6\xac\xb5\xf7\x0c\x00\x18\xb8\x4c\
|
||||
\xd5\xd7\x42\xd7\xce\x3e\x77\x5f\x10\x33\x3a\x2a\xde\x57\xec\x0f\
|
||||
\x72\xd9\xed\x8d\xd7\x6c\x4e\x43\x2f\xa0\x2d\xce\xec\xa2\x95\xce\
|
||||
\x42\x8b\x27\x7b\x20\x75\x5f\x80\xd7\x03\x61\x34\x36\xb6\xf0\xeb\
|
||||
\xe5\xca\xe7\xea\xe2\xd2\xbd\x7f\x80\xbf\x62\xe4\xdf\xa1\x45\xa5\
|
||||
\x25\x44\x34\x37\xb7\x3b\x10\xd9\xbb\xc6\xa9\x3b\x9a\xd1\x38\x90\
|
||||
\xcb\xa3\x7d\x3e\x36\x5b\xe3\xe5\x19\xd3\x95\x53\x40\x2a\xcd\x5a\
|
||||
\x09\x51\x6b\xed\xbe\x01\x3e\x7e\x82\x96\xcd\xb5\x01\x68\x04\x42\
|
||||
\x5c\xf6\xf8\x39\x75\x87\xb2\x1d\x03\xe8\xbd\xec\x0f\xe0\x78\xfe\
|
||||
\xb9\x5a\x16\xe6\xae\x76\x59\xd0\x62\x09\xa6\xbe\x8e\xa9\x9a\x98\
|
||||
\x01\xde\x7f\x80\x9a\x4a\xa3\x1e\x0c\x83\xba\x43\xd9\x8a\x02\xd9\
|
||||
\xbd\x3f\xe7\x8a\xc9\x42\xe2\x59\x76\x6e\x88\xcd\xc8\x26\x6b\x84\
|
||||
\xd6\xd5\x66\x74\x87\xec\xbc\x05\xf6\xf2\x24\xcc\x01\x99\x2c\x64\
|
||||
\x8f\x0f\x95\x39\xb3\x5a\x9e\x9e\x61\xfd\xa7\x70\x1a\x16\x93\x5c\
|
||||
\x5e\x0d\x59\xb2\xe3\xf6\x01\x0e\x37\x20\xa6\x51\x99\x9d\xd7\x4a\
|
||||
\x46\x81\xfd\x7f\xbf\x07\x20\x39\x3d\xed\x51\x01\x34\x0d\xd8\x9c\
|
||||
\xc0\x8a\x1d\xd8\x49\x92\x6f\x0b\x0a\x13\x53\xfc\x42\x80\xe4\x70\
|
||||
\x73\xc9\xe5\x81\x12\x8e\x00\x49\x91\x84\x29\x20\x46\x76\x28\x40\
|
||||
\x79\xd5\x8e\xb2\xde\x88\xef\x63\xe3\xfc\x5c\x40\xcd\xee\xe2\x92\
|
||||
\xd3\x0d\x25\xb4\x0e\xd0\x18\x25\x87\x0b\x14\x96\x5a\x9c\x32\x68\
|
||||
\x27\x8b\xcb\x40\x64\x03\xb5\x17\xcb\x28\x3c\x7c\x8c\xc3\xa1\x61\
|
||||
\xde\x05\xa0\xcd\xe2\xd4\x1d\x4a\xf0\x15\x75\x4d\x40\xa2\x4f\xa7\
|
||||
\xb0\xd4\xe2\xa4\x81\x15\x9e\x4c\xb0\xa3\xf1\x47\x6a\xd5\x64\x06\
|
||||
\x82\x21\x9c\x58\xac\x38\x1a\x19\xc5\xc1\xad\x41\xde\x01\xd0\x66\
|
||||
\x09\x35\x9b\x03\x4a\x20\x04\x69\xd5\x01\x0a\x4b\x2d\x3e\xd3\x77\
|
||||
\x02\xfb\x36\x32\xc6\xbe\x0e\xdf\x57\x7f\x1a\x05\x48\xd6\x05\xfc\
|
||||
\x18\x7d\x80\xfd\x1b\x3a\xa1\xcb\x02\x6d\x96\x50\x5d\x58\x42\xc9\
|
||||
\x30\xad\x51\x58\x3d\x69\x1f\xde\x1d\x62\x5f\x06\xef\xa8\x67\xc5\
|
||||
\x3d\x21\x96\xf4\x46\xa1\xf0\x74\x92\xf5\xfb\x99\x0e\x74\xb7\xd9\
|
||||
\xfe\xf5\x9b\xc2\x85\x63\xbc\x6c\xfd\x06\x72\xbb\xa4\xc7\xdb\xed\
|
||||
\xbe\x14\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
|
||||
\x00\x00\x00\xb6\
|
||||
\x89\
|
||||
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
|
||||
\x00\x00\x40\x00\x00\x00\x40\x08\x02\x00\x00\x00\x25\x0b\xe6\x89\
|
||||
\x00\x00\x00\x01\x73\x52\x47\x42\x00\xae\xce\x1c\xe9\x00\x00\x00\
|
||||
\x70\x49\x44\x41\x54\x68\xde\xed\xd8\x41\x0a\x80\x20\x10\x40\x51\
|
||||
\x15\xef\x7f\xe5\x69\x2d\x28\x14\x52\x43\xf2\xfe\xb2\x85\xf0\x50\
|
||||
\x86\xb4\x14\x49\xd2\x46\x75\xfa\x35\x22\xb6\x16\xad\xdf\x2d\xdb\
|
||||
\xfe\xbe\x03\x00\x00\x00\x47\x8e\xd1\xfb\x4d\x27\xe3\x6a\x8c\xda\
|
||||
\x01\x00\x00\x00\x00\x00\x00\x00\x00\x80\xa1\xfe\xc6\xed\xfb\xd1\
|
||||
\xaf\xab\x4b\x3d\x00\x00\x00\x40\x66\x5e\x25\x1c\x21\x00\x00\x00\
|
||||
\x00\x00\x00\x00\x80\xbc\xbc\x4a\x38\x42\x00\x00\x00\x92\xa4\xbc\
|
||||
\x2e\x93\xea\x18\x60\x46\xf8\x1a\x46\x00\x00\x00\x00\x49\x45\x4e\
|
||||
\x44\xae\x42\x60\x82\
|
||||
\x00\x00\x00\x8f\
|
||||
\x89\
|
||||
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
|
||||
\x00\x00\x20\x00\x00\x00\x20\x08\x02\x00\x00\x00\xfc\x18\xed\xa3\
|
||||
\x00\x00\x00\x01\x73\x52\x47\x42\x00\xae\xce\x1c\xe9\x00\x00\x00\
|
||||
\x49\x49\x44\x41\x54\x48\xc7\x63\x60\x18\x05\x03\x0d\x18\x91\x39\
|
||||
\xff\xff\xff\xc7\xa7\x94\x91\x91\x0c\x95\x4c\xb4\xf6\x01\x13\x5d\
|
||||
\x83\x08\x2b\x80\x87\x06\xb2\xc7\x07\x91\x0f\x46\x2d\x18\x01\x16\
|
||||
\xb0\x10\x9f\x93\xc9\xcb\xf3\xa3\x71\x30\x5a\x54\x8c\x5a\x30\x5a\
|
||||
\x54\x8c\x88\xa2\x62\x14\x0c\x3c\x00\x00\xa8\x90\x18\x2c\xda\xaa\
|
||||
\x1f\x7c\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
|
||||
"
|
||||
|
||||
qt_resource_name = "\
|
||||
\x00\x05\
|
||||
\x00\x73\x5e\x63\
|
||||
\x00\x6c\
|
||||
\x00\x6f\x00\x67\x00\x6f\x00\x73\
|
||||
\x00\x06\
|
||||
\x07\x03\x7d\xc3\
|
||||
\x00\x69\
|
||||
\x00\x6d\x00\x61\x00\x67\x00\x65\x00\x73\
|
||||
\x00\x05\
|
||||
\x00\x6f\xa6\x53\
|
||||
\x00\x69\
|
||||
\x00\x63\x00\x6f\x00\x6e\x00\x73\
|
||||
\x00\x0e\
|
||||
\x0f\xc2\xd9\x87\
|
||||
\x00\x62\
|
||||
\x00\x75\x00\x6c\x00\x6c\x00\x65\x00\x74\x00\x5f\x00\x61\x00\x64\x00\x64\x00\x2e\x00\x70\x00\x6e\x00\x67\
|
||||
\x00\x0d\
|
||||
\x0a\x83\x3c\x47\
|
||||
\x00\x70\
|
||||
\x00\x61\x00\x67\x00\x65\x00\x5f\x00\x63\x00\x6f\x00\x70\x00\x79\x00\x2e\x00\x70\x00\x6e\x00\x67\
|
||||
\x00\x08\
|
||||
\x00\x47\x5a\xe7\
|
||||
\x00\x66\
|
||||
\x00\x69\x00\x6e\x00\x64\x00\x2e\x00\x70\x00\x6e\x00\x67\
|
||||
\x00\x0f\
|
||||
\x02\x91\xee\x07\
|
||||
\x00\x66\
|
||||
\x00\x6f\x00\x6c\x00\x64\x00\x65\x00\x72\x00\x5f\x00\x70\x00\x61\x00\x67\x00\x65\x00\x2e\x00\x70\x00\x6e\x00\x67\
|
||||
\x00\x09\
|
||||
\x07\xff\x8f\x27\
|
||||
\x00\x65\
|
||||
\x00\x6d\x00\x61\x00\x69\x00\x6c\x00\x2e\x00\x70\x00\x6e\x00\x67\
|
||||
\x00\x0d\
|
||||
\x09\x39\xc9\x07\
|
||||
\x00\x6d\
|
||||
\x00\x61\x00\x67\x00\x6e\x00\x69\x00\x66\x00\x69\x00\x65\x00\x72\x00\x2e\x00\x70\x00\x6e\x00\x67\
|
||||
\x00\x15\
|
||||
\x0f\x1a\x7b\xe7\
|
||||
\x00\x6d\
|
||||
\x00\x61\x00\x67\x00\x69\x00\x66\x00\x69\x00\x65\x00\x72\x00\x5f\x00\x7a\x00\x6f\x00\x6f\x00\x6d\x00\x5f\x00\x6f\x00\x75\x00\x74\
|
||||
\x00\x2e\x00\x70\x00\x6e\x00\x67\
|
||||
\x00\x07\
|
||||
\x07\xa7\x57\x87\
|
||||
\x00\x61\
|
||||
\x00\x64\x00\x64\x00\x2e\x00\x70\x00\x6e\x00\x67\
|
||||
\x00\x15\
|
||||
\x0c\x5f\x27\xc7\
|
||||
\x00\x6d\
|
||||
\x00\x61\x00\x67\x00\x6e\x00\x69\x00\x66\x00\x69\x00\x65\x00\x72\x00\x5f\x00\x7a\x00\x6f\x00\x6f\x00\x6d\x00\x5f\x00\x69\x00\x6e\
|
||||
\x00\x2e\x00\x70\x00\x6e\x00\x67\
|
||||
\x00\x0c\
|
||||
\x0a\x2f\x72\x07\
|
||||
\x00\x77\
|
||||
\x00\x6f\x00\x72\x00\x6c\x00\x64\x00\x5f\x00\x67\x00\x6f\x00\x2e\x00\x70\x00\x6e\x00\x67\
|
||||
\x00\x0a\
|
||||
\x04\x94\x86\xc7\
|
||||
\x00\x77\
|
||||
\x00\x72\x00\x65\x00\x6e\x00\x63\x00\x68\x00\x2e\x00\x70\x00\x6e\x00\x67\
|
||||
\x00\x0f\
|
||||
\x06\xb2\xe7\x27\
|
||||
\x00\x69\
|
||||
\x00\x6e\x00\x66\x00\x6f\x00\x72\x00\x6d\x00\x61\x00\x74\x00\x69\x00\x6f\x00\x6e\x00\x2e\x00\x70\x00\x6e\x00\x67\
|
||||
\x00\x08\
|
||||
\x0f\x9e\x58\x07\
|
||||
\x00\x74\
|
||||
\x00\x69\x00\x63\x00\x6b\x00\x2e\x00\x70\x00\x6e\x00\x67\
|
||||
\x00\x09\
|
||||
\x06\xa6\x82\x67\
|
||||
\x00\x63\
|
||||
\x00\x72\x00\x6f\x00\x73\x00\x73\x00\x2e\x00\x70\x00\x6e\x00\x67\
|
||||
\x00\x0d\
|
||||
\x0d\x2b\x05\xe7\
|
||||
\x00\x6c\
|
||||
\x00\x6f\x00\x67\x00\x6f\x00\x36\x00\x34\x00\x78\x00\x36\x00\x34\x00\x2e\x00\x70\x00\x6e\x00\x67\
|
||||
\x00\x0d\
|
||||
\x0d\xd9\x1b\xa7\
|
||||
\x00\x6c\
|
||||
\x00\x6f\x00\x67\x00\x6f\x00\x33\x00\x32\x00\x78\x00\x33\x00\x32\x00\x2e\x00\x70\x00\x6e\x00\x67\
|
||||
"
|
||||
|
||||
qt_resource_struct = "\
|
||||
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00\x00\x01\
|
||||
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x13\
|
||||
\x00\x00\x00\x10\x00\x02\x00\x00\x00\x01\x00\x00\x00\x03\
|
||||
\x00\x00\x00\x22\x00\x02\x00\x00\x00\x0f\x00\x00\x00\x04\
|
||||
\x00\x00\x00\x74\x00\x00\x00\x00\x00\x01\x00\x00\x03\xbd\
|
||||
\x00\x00\x00\x8a\x00\x00\x00\x00\x00\x01\x00\x00\x06\x54\
|
||||
\x00\x00\x01\x78\x00\x00\x00\x00\x00\x01\x00\x00\x1c\xaf\
|
||||
\x00\x00\x01\xcc\x00\x00\x00\x00\x00\x01\x00\x00\x24\x40\
|
||||
\x00\x00\x01\x92\x00\x00\x00\x00\x00\x01\x00\x00\x1f\x15\
|
||||
\x00\x00\x01\x16\x00\x00\x00\x00\x00\x01\x00\x00\x13\x6e\
|
||||
\x00\x00\x01\x16\x00\x00\x00\x00\x00\x01\x00\x00\x10\x8d\
|
||||
\x00\x00\x00\xae\x00\x00\x00\x00\x00\x01\x00\x00\x09\x08\
|
||||
\x00\x00\x00\xc6\x00\x00\x00\x00\x00\x01\x00\x00\x0b\x8d\
|
||||
\x00\x00\x01\x5a\x00\x00\x00\x00\x00\x01\x00\x00\x18\xfb\
|
||||
\x00\x00\x00\x54\x00\x00\x00\x00\x00\x01\x00\x00\x01\x22\
|
||||
\x00\x00\x01\x2a\x00\x00\x00\x00\x00\x01\x00\x00\x16\x4f\
|
||||
\x00\x00\x00\xe6\x00\x00\x00\x00\x00\x01\x00\x00\x0d\xf8\
|
||||
\x00\x00\x01\xb6\x00\x00\x00\x00\x00\x01\x00\x00\x22\x23\
|
||||
\x00\x00\x00\x32\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
|
||||
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00\x00\x14\
|
||||
\x00\x00\x01\xe4\x00\x00\x00\x00\x00\x01\x00\x00\x26\xd3\
|
||||
\x00\x00\x02\x04\x00\x00\x00\x00\x00\x01\x00\x00\x27\x8d\
|
||||
"
|
||||
|
||||
def qInitResources():
|
||||
QtCore.qRegisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data)
|
||||
|
||||
def qCleanupResources():
|
||||
QtCore.qUnregisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data)
|
||||
|
||||
qInitResources()
|
38
core/update.py
Normal file
@ -0,0 +1,38 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2011 Alex Yatskov
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
import os
|
||||
import urllib2
|
||||
from xml.dom import minidom
|
||||
from PyQt4 import QtCore
|
||||
from constants import constants
|
||||
|
||||
|
||||
class UpdateFinder(QtCore.QThread):
|
||||
def run(self):
|
||||
latest = None
|
||||
try:
|
||||
fp = urllib2.urlopen(constants['urlUpdates'])
|
||||
data = fp.read()
|
||||
doc = minidom.parseString(data)
|
||||
root = doc.documentElement
|
||||
if root.nodeName == 'updates':
|
||||
latest = root.getAttribute('latest') or None
|
||||
except:
|
||||
pass
|
||||
finally:
|
||||
self.emit(QtCore.SIGNAL('updateSearchResult'), latest)
|
854
dev/about.ui
Normal file
@ -0,0 +1,854 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>DialogAbout</class>
|
||||
<widget class="QDialog" name="DialogAbout">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>600</width>
|
||||
<height>400</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>About</string>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="pixmap">
|
||||
<pixmap resource="resources.qrc">:/logos/logos/logo64x64.png</pixmap>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer">
|
||||
<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 class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="labelVersion">
|
||||
<property name="text">
|
||||
<string><b>Yomichan {0}</b></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>(c) 2011 by Alex Yatskov</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string><a href = "http://foosoft.net/yomichan">http://foosoft.net/yomichan</a></string>
|
||||
</property>
|
||||
<property name="openExternalLinks">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Line" name="line">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="text">
|
||||
<string>This software uses the <a href = "http://www.famfamfam.com/lab/icons/silk/">Silk web icon set</a> created by Mark James.</string>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="openExternalLinks">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="text">
|
||||
<string>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.</string>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="openExternalLinks">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>This package uses the <a href="http://www.csse.monash.edu.au/~jwb/edict.html">EDICT</a> and <a href="http://www.csse.monash.edu.au/~jwb/kanjidic.html">KANJIDIC</a> dictionary files. These files are the property of the <a href="http://www.edrdg.org/"> Electronic Dictionary Research and Development Group</a>, and are used in conformance with the Group's <a href="http://www.edrdg.org/edrdg/licence.html">licence</a>.</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
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<http://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
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
|
||||
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
||||
</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QDialogButtonBox" name="buttonBox">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="standardButtons">
|
||||
<set>QDialogButtonBox::Ok</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="resources.qrc"/>
|
||||
</resources>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>buttonBox</sender>
|
||||
<signal>accepted()</signal>
|
||||
<receiver>DialogAbout</receiver>
|
||||
<slot>accept()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>248</x>
|
||||
<y>254</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>157</x>
|
||||
<y>274</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>buttonBox</sender>
|
||||
<signal>rejected()</signal>
|
||||
<receiver>DialogAbout</receiver>
|
||||
<slot>reject()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>316</x>
|
||||
<y>260</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>286</x>
|
||||
<y>274</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
</ui>
|
BIN
dev/icons/add.png
Normal file
After Width: | Height: | Size: 733 B |
BIN
dev/icons/bullet_add.png
Normal file
After Width: | Height: | Size: 286 B |
BIN
dev/icons/cross.png
Normal file
After Width: | Height: | Size: 655 B |
BIN
dev/icons/email.png
Normal file
After Width: | Height: | Size: 641 B |
BIN
dev/icons/find.png
Normal file
After Width: | Height: | Size: 659 B |
BIN
dev/icons/folder_page.png
Normal file
After Width: | Height: | Size: 688 B |
BIN
dev/icons/information.png
Normal file
After Width: | Height: | Size: 778 B |
BIN
dev/icons/magifier_zoom_out.png
Normal file
After Width: | Height: | Size: 657 B |
BIN
dev/icons/magnifier.png
Normal file
After Width: | Height: | Size: 615 B |
BIN
dev/icons/magnifier_zoom_in.png
Normal file
After Width: | Height: | Size: 680 B |
BIN
dev/icons/page_copy.png
Normal file
After Width: | Height: | Size: 663 B |
BIN
dev/icons/tick.png
Normal file
After Width: | Height: | Size: 537 B |
BIN
dev/icons/world_go.png
Normal file
After Width: | Height: | Size: 944 B |
BIN
dev/icons/wrench.png
Normal file
After Width: | Height: | Size: 610 B |
BIN
dev/logos/logo32x32.png
Normal file
After Width: | Height: | Size: 143 B |
BIN
dev/logos/logo64x64.png
Normal file
After Width: | Height: | Size: 182 B |
BIN
dev/logos/logo9x9.png
Normal file
After Width: | Height: | Size: 111 B |
383
dev/preferences.ui
Normal file
@ -0,0 +1,383 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>DialogPreferences</class>
|
||||
<widget class="QDialog" name="DialogPreferences">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>600</width>
|
||||
<height>300</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Preferences</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QTabWidget" name="tabWidget">
|
||||
<property name="currentIndex">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="tabGeneral">
|
||||
<attribute name="title">
|
||||
<string>General</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkGeneralRecentLoad">
|
||||
<property name="text">
|
||||
<string>Load recent file on startup</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkGeneralReadingsStrip">
|
||||
<property name="text">
|
||||
<string>Strip readings in from loaded files</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkGeneralFindUpdates">
|
||||
<property name="text">
|
||||
<string>Check for updates on startup</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>139</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="tabAppearance">
|
||||
<attribute name="title">
|
||||
<string>Appearance</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QFontComboBox" name="comboContentFontFamily"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinContentFontSize">
|
||||
<property name="minimum">
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>72</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>12</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="buttonContentColorFg">
|
||||
<property name="text">
|
||||
<string>Foreground...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="buttonContentColorBg">
|
||||
<property name="text">
|
||||
<string>Background...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPlainTextEdit" name="textContentSample">
|
||||
<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>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</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">
|
||||
<attribute name="title">
|
||||
<string>Anki</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_5">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_11">
|
||||
<property name="text">
|
||||
<string>Specify how your deck's model fields are populated when adding facts</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||
<item>
|
||||
<widget class="QTableWidget" name="tableAnkiFields">
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Field</string>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Value</string>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Required</string>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Unique</string>
|
||||
</property>
|
||||
</column>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="1">
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="text">
|
||||
<string>%e</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="font">
|
||||
<font>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Reading</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<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>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkAnkiShowIcon">
|
||||
<property name="text">
|
||||
<string>Show icon in toolbar</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QDialogButtonBox" name="buttonBox">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="standardButtons">
|
||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="resources.qrc"/>
|
||||
</resources>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>buttonBox</sender>
|
||||
<signal>accepted()</signal>
|
||||
<receiver>DialogPreferences</receiver>
|
||||
<slot>accept()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>248</x>
|
||||
<y>254</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>157</x>
|
||||
<y>274</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>buttonBox</sender>
|
||||
<signal>rejected()</signal>
|
||||
<receiver>DialogPreferences</receiver>
|
||||
<slot>reject()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>316</x>
|
||||
<y>260</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>286</x>
|
||||
<y>274</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
</ui>
|
524
dev/reader.ui
Normal file
@ -0,0 +1,524 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>MainWindowReader</class>
|
||||
<widget class="QMainWindow" name="MainWindowReader">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>900</width>
|
||||
<height>650</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="acceptDrops">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Yomichan</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/logos/logos/logo32x32.png</normaloff>:/logos/logos/logo32x32.png</iconset>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralwidget">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QPlainTextEdit" name="textContent">
|
||||
<property name="mouseTracking">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="readOnly">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QMenuBar" name="menubar">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>900</width>
|
||||
<height>25</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuFile">
|
||||
<property name="title">
|
||||
<string>&File</string>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuOpenRecent">
|
||||
<property name="title">
|
||||
<string>Open &recent</string>
|
||||
</property>
|
||||
</widget>
|
||||
<addaction name="actionOpen"/>
|
||||
<addaction name="menuOpenRecent"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionQuit"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuEdit">
|
||||
<property name="title">
|
||||
<string>&Edit</string>
|
||||
</property>
|
||||
<addaction name="actionCopyDefinition"/>
|
||||
<addaction name="actionCopyAllDefinitions"/>
|
||||
<addaction name="actionCopySentence"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionFind"/>
|
||||
<addaction name="actionFindNext"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionPreferences"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuHelp">
|
||||
<property name="title">
|
||||
<string>&Help</string>
|
||||
</property>
|
||||
<addaction name="actionHomepage"/>
|
||||
<addaction name="actionFeedback"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionAbout"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuView">
|
||||
<property name="title">
|
||||
<string>&View</string>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuTextSize">
|
||||
<property name="title">
|
||||
<string>&Zoom</string>
|
||||
</property>
|
||||
<addaction name="actionZoomIn"/>
|
||||
<addaction name="actionZoomOut"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionZoomReset"/>
|
||||
</widget>
|
||||
<addaction name="menuTextSize"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionToggleDefinitions"/>
|
||||
<addaction name="actionToggleAnki"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionToggleWrap"/>
|
||||
</widget>
|
||||
<addaction name="menuFile"/>
|
||||
<addaction name="menuEdit"/>
|
||||
<addaction name="menuView"/>
|
||||
<addaction name="menuHelp"/>
|
||||
</widget>
|
||||
<widget class="QToolBar" name="toolBar">
|
||||
<property name="windowTitle">
|
||||
<string>toolBar</string>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>16</width>
|
||||
<height>16</height>
|
||||
</size>
|
||||
</property>
|
||||
<attribute name="toolBarArea">
|
||||
<enum>TopToolBarArea</enum>
|
||||
</attribute>
|
||||
<attribute name="toolBarBreak">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<addaction name="actionOpen"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionZoomIn"/>
|
||||
<addaction name="actionZoomOut"/>
|
||||
<addaction name="actionZoomReset"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionFind"/>
|
||||
</widget>
|
||||
<widget class="QDockWidget" name="dockDefinitions">
|
||||
<property name="windowTitle">
|
||||
<string>Definitions</string>
|
||||
</property>
|
||||
<attribute name="dockWidgetArea">
|
||||
<number>2</number>
|
||||
</attribute>
|
||||
<widget class="QWidget" name="dockWidgetContents">
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QTextBrowser" name="textDefinitions">
|
||||
<property name="acceptDrops">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="openLinks">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Search</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="textDefinitionSearch"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QStatusBar" name="statusBar"/>
|
||||
<widget class="QDockWidget" name="dockAnki">
|
||||
<property name="windowTitle">
|
||||
<string>Anki</string>
|
||||
</property>
|
||||
<attribute name="dockWidgetArea">
|
||||
<number>1</number>
|
||||
</attribute>
|
||||
<widget class="QWidget" name="dockWidgetContents_2">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<widget class="QListWidget" name="listDefinitions"/>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Active tag(s)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboTags">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="editable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
<action name="actionOpen">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/images/icons/folder_page.png</normaloff>:/images/icons/folder_page.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Open...</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Open file</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+O</string>
|
||||
</property>
|
||||
<property name="iconVisibleInMenu">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionQuit">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/images/icons/cross.png</normaloff>:/images/icons/cross.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Quit</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Quit Yomichan</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+Q</string>
|
||||
</property>
|
||||
<property name="iconVisibleInMenu">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionPreferences">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/images/icons/wrench.png</normaloff>:/images/icons/wrench.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Preferences...</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Edit preferences</string>
|
||||
</property>
|
||||
<property name="iconVisibleInMenu">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionAbout">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/images/icons/information.png</normaloff>:/images/icons/information.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&About...</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>About Yomichan</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>F1</string>
|
||||
</property>
|
||||
<property name="iconVisibleInMenu">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionZoomIn">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/images/icons/magnifier_zoom_in.png</normaloff>:/images/icons/magnifier_zoom_in.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Zoom &in</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl++</string>
|
||||
</property>
|
||||
<property name="iconVisibleInMenu">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionZoomOut">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/images/icons/magifier_zoom_out.png</normaloff>:/images/icons/magifier_zoom_out.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Zoom &out</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+-</string>
|
||||
</property>
|
||||
<property name="iconVisibleInMenu">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionZoomReset">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/images/icons/magnifier.png</normaloff>:/images/icons/magnifier.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Reset</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Reset zoom</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+0</string>
|
||||
</property>
|
||||
<property name="iconVisibleInMenu">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionFind">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/images/icons/find.png</normaloff>:/images/icons/find.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Find...</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Find text</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+F</string>
|
||||
</property>
|
||||
<property name="iconVisibleInMenu">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionFindNext">
|
||||
<property name="text">
|
||||
<string>Find &next</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Find text again</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>F3</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionToggleWrap">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Word wrap</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Toggle word wrap</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionToggleDefinitions">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Definitions</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Toggle definitions</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionCopyDefinition">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/images/icons/page_copy.png</normaloff>:/images/icons/page_copy.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Copy &definition</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+D</string>
|
||||
</property>
|
||||
<property name="iconVisibleInMenu">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionCopyAllDefinitions">
|
||||
<property name="text">
|
||||
<string>Copy &all definitions</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionHomepage">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/images/icons/world_go.png</normaloff>:/images/icons/world_go.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Homepage...</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Yomichan homepage</string>
|
||||
</property>
|
||||
<property name="iconVisibleInMenu">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionToggleAnki">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Anki</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionCopySentence">
|
||||
<property name="text">
|
||||
<string>Copy sen&tence</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+T</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionFeedback">
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/images/icons/email.png</normaloff>:/images/icons/email.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Feedback...</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="resources.qrc"/>
|
||||
</resources>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>actionToggleDefinitions</sender>
|
||||
<signal>toggled(bool)</signal>
|
||||
<receiver>dockDefinitions</receiver>
|
||||
<slot>setVisible(bool)</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>-1</x>
|
||||
<y>-1</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>634</x>
|
||||
<y>313</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>actionQuit</sender>
|
||||
<signal>triggered()</signal>
|
||||
<receiver>MainWindowReader</receiver>
|
||||
<slot>close()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>-1</x>
|
||||
<y>-1</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>449</x>
|
||||
<y>324</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>actionToggleAnki</sender>
|
||||
<signal>toggled(bool)</signal>
|
||||
<receiver>dockAnki</receiver>
|
||||
<slot>setVisible(bool)</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>-1</x>
|
||||
<y>-1</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>136</x>
|
||||
<y>342</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>dockDefinitions</sender>
|
||||
<signal>visibilityChanged(bool)</signal>
|
||||
<receiver>actionToggleDefinitions</receiver>
|
||||
<slot>setChecked(bool)</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>762</x>
|
||||
<y>342</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>-1</x>
|
||||
<y>-1</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>dockAnki</sender>
|
||||
<signal>visibilityChanged(bool)</signal>
|
||||
<receiver>actionToggleAnki</receiver>
|
||||
<slot>setChecked(bool)</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>136</x>
|
||||
<y>342</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>-1</x>
|
||||
<y>-1</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
</ui>
|
23
dev/resources.qrc
Normal file
@ -0,0 +1,23 @@
|
||||
<RCC>
|
||||
<qresource prefix="images">
|
||||
<file>icons/email.png</file>
|
||||
<file>icons/world_go.png</file>
|
||||
<file>icons/tick.png</file>
|
||||
<file>icons/add.png</file>
|
||||
<file>icons/bullet_add.png</file>
|
||||
<file>icons/page_copy.png</file>
|
||||
<file>icons/add.png</file>
|
||||
<file>icons/cross.png</file>
|
||||
<file>icons/find.png</file>
|
||||
<file>icons/folder_page.png</file>
|
||||
<file>icons/information.png</file>
|
||||
<file>icons/magifier_zoom_out.png</file>
|
||||
<file>icons/magnifier_zoom_in.png</file>
|
||||
<file>icons/magnifier.png</file>
|
||||
<file>icons/wrench.png</file>
|
||||
</qresource>
|
||||
<qresource prefix="logos">
|
||||
<file>logos/logo32x32.png</file>
|
||||
<file>logos/logo64x64.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
BIN
icons/accept.png
Normal file
After Width: | Height: | Size: 781 B |
BIN
icons/add.png
Normal file
After Width: | Height: | Size: 733 B |
BIN
icons/anchor.png
Normal file
After Width: | Height: | Size: 523 B |
BIN
icons/application.png
Normal file
After Width: | Height: | Size: 464 B |
BIN
icons/application_add.png
Normal file
After Width: | Height: | Size: 619 B |
BIN
icons/application_cascade.png
Normal file
After Width: | Height: | Size: 524 B |
BIN
icons/application_delete.png
Normal file
After Width: | Height: | Size: 610 B |
BIN
icons/application_double.png
Normal file
After Width: | Height: | Size: 533 B |
BIN
icons/application_edit.png
Normal file
After Width: | Height: | Size: 703 B |
BIN
icons/application_error.png
Normal file
After Width: | Height: | Size: 656 B |
BIN
icons/application_form.png
Normal file
After Width: | Height: | Size: 467 B |
BIN
icons/application_form_add.png
Normal file
After Width: | Height: | Size: 592 B |
BIN
icons/application_form_delete.png
Normal file
After Width: | Height: | Size: 605 B |
BIN
icons/application_form_edit.png
Normal file
After Width: | Height: | Size: 714 B |
BIN
icons/application_form_magnify.png
Normal file
After Width: | Height: | Size: 612 B |
BIN
icons/application_get.png
Normal file
After Width: | Height: | Size: 581 B |
BIN
icons/application_go.png
Normal file
After Width: | Height: | Size: 634 B |
BIN
icons/application_home.png
Normal file
After Width: | Height: | Size: 685 B |
BIN
icons/application_key.png
Normal file
After Width: | Height: | Size: 670 B |
BIN
icons/application_lightning.png
Normal file
After Width: | Height: | Size: 656 B |
BIN
icons/application_link.png
Normal file
After Width: | Height: | Size: 701 B |
BIN
icons/application_osx.png
Normal file
After Width: | Height: | Size: 487 B |
BIN
icons/application_osx_terminal.png
Normal file
After Width: | Height: | Size: 525 B |
BIN
icons/application_put.png
Normal file
After Width: | Height: | Size: 585 B |
BIN
icons/application_side_boxes.png
Normal file
After Width: | Height: | Size: 478 B |
BIN
icons/application_side_contract.png
Normal file
After Width: | Height: | Size: 547 B |
BIN
icons/application_side_expand.png
Normal file
After Width: | Height: | Size: 581 B |
BIN
icons/application_side_list.png
Normal file
After Width: | Height: | Size: 510 B |
BIN
icons/application_side_tree.png
Normal file
After Width: | Height: | Size: 483 B |
BIN
icons/application_split.png
Normal file
After Width: | Height: | Size: 520 B |
BIN
icons/application_tile_horizontal.png
Normal file
After Width: | Height: | Size: 432 B |
BIN
icons/application_tile_vertical.png
Normal file
After Width: | Height: | Size: 492 B |
BIN
icons/application_view_columns.png
Normal file
After Width: | Height: | Size: 493 B |
BIN
icons/application_view_detail.png
Normal file
After Width: | Height: | Size: 576 B |
BIN
icons/application_view_gallery.png
Normal file
After Width: | Height: | Size: 555 B |
BIN
icons/application_view_icons.png
Normal file
After Width: | Height: | Size: 476 B |
BIN
icons/application_view_list.png
Normal file
After Width: | Height: | Size: 473 B |
BIN
icons/application_view_tile.png
Normal file
After Width: | Height: | Size: 465 B |
BIN
icons/application_xp.png
Normal file
After Width: | Height: | Size: 426 B |
BIN
icons/application_xp_terminal.png
Normal file
After Width: | Height: | Size: 507 B |
BIN
icons/arrow_branch.png
Normal file
After Width: | Height: | Size: 582 B |
BIN
icons/arrow_divide.png
Normal file
After Width: | Height: | Size: 677 B |
BIN
icons/arrow_down.png
Normal file
After Width: | Height: | Size: 379 B |
BIN
icons/arrow_in.png
Normal file
After Width: | Height: | Size: 600 B |
BIN
icons/arrow_inout.png
Normal file
After Width: | Height: | Size: 551 B |
BIN
icons/arrow_join.png
Normal file
After Width: | Height: | Size: 626 B |
BIN
icons/arrow_left.png
Normal file
After Width: | Height: | Size: 345 B |
BIN
icons/arrow_merge.png
Normal file
After Width: | Height: | Size: 484 B |
BIN
icons/arrow_out.png
Normal file
After Width: | Height: | Size: 594 B |
BIN
icons/arrow_redo.png
Normal file
After Width: | Height: | Size: 625 B |
BIN
icons/arrow_refresh.png
Normal file
After Width: | Height: | Size: 685 B |
BIN
icons/arrow_refresh_small.png
Normal file
After Width: | Height: | Size: 506 B |
BIN
icons/arrow_right.png
Normal file
After Width: | Height: | Size: 349 B |
BIN
icons/arrow_rotate_anticlockwise.png
Normal file
After Width: | Height: | Size: 608 B |
BIN
icons/arrow_rotate_clockwise.png
Normal file
After Width: | Height: | Size: 602 B |
BIN
icons/arrow_switch.png
Normal file
After Width: | Height: | Size: 683 B |
BIN
icons/arrow_turn_left.png
Normal file
After Width: | Height: | Size: 516 B |
BIN
icons/arrow_turn_right.png
Normal file
After Width: | Height: | Size: 489 B |
BIN
icons/arrow_undo.png
Normal file
After Width: | Height: | Size: 631 B |
BIN
icons/arrow_up.png
Normal file
After Width: | Height: | Size: 372 B |
BIN
icons/asterisk_orange.png
Normal file
After Width: | Height: | Size: 760 B |
BIN
icons/asterisk_yellow.png
Normal file
After Width: | Height: | Size: 743 B |
BIN
icons/attach.png
Normal file
After Width: | Height: | Size: 391 B |
BIN
icons/award_star_add.png
Normal file
After Width: | Height: | Size: 853 B |