mirror of
https://github.com/283375/arcaea-offline-pyside-ui.git
synced 2025-07-01 12:26:26 +00:00
Compare commits
19 Commits
2be39d6bb3
...
v0.3.0b
Author | SHA1 | Date | |
---|---|---|---|
442fa2de75
|
|||
3c80981c8a
|
|||
2d4cc61f94
|
|||
a188d6987d
|
|||
ebafb3caec
|
|||
34e56395ab
|
|||
9c06c6d9f1
|
|||
d701055c74
|
|||
45505c62d0
|
|||
b802c32481
|
|||
9622175a62
|
|||
97b26510fb
|
|||
ce44a21be5
|
|||
a9bef5d4d6
|
|||
4b8d0d0427
|
|||
7679620617
|
|||
0bd709f49e
|
|||
109e635347
|
|||
8c90c27ba3
|
674
LICENSE
Normal file
674
LICENSE
Normal file
@ -0,0 +1,674 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://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 <https://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
|
||||
<https://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
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
34
index.py
34
index.py
@ -1,6 +1,8 @@
|
||||
import logging
|
||||
import sys
|
||||
import traceback
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
|
||||
from arcaea_offline.database import Database
|
||||
from PySide6.QtCore import QCoreApplication, QLocale
|
||||
@ -13,18 +15,36 @@ from ui.extends.shared.settings import Settings
|
||||
from ui.implements.mainwindow import MainWindow
|
||||
from ui.startup.databaseChecker import DatabaseChecker, DatabaseCheckerResult
|
||||
|
||||
logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
stream=sys.stdout,
|
||||
force=True,
|
||||
format="[{levelname}]{asctime}|{name}: {msg}",
|
||||
datefmt="%m-%d %H:%M:%S",
|
||||
style="{",
|
||||
rootLogger = logging.getLogger("root")
|
||||
rootLogger.setLevel(logging.DEBUG)
|
||||
|
||||
rootLoggerFormatter = logging.Formatter(
|
||||
"[{levelname}]{asctime}|{name}: {msg}", "%m-%d %H:%M:%S", "{"
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
QCoreApplication.setApplicationName("Arcaea Offline")
|
||||
|
||||
logFolder = (Path(sys.argv[0]).parent / "logs").resolve()
|
||||
logFolder.mkdir(exist_ok=True)
|
||||
|
||||
now = datetime.now()
|
||||
ymd = now.strftime("%Y%m%d")
|
||||
hms = now.strftime("%H%M%S")
|
||||
|
||||
rootLoggerFileHandler = logging.FileHandler(
|
||||
str(logFolder / f"arcaea-offline-pyside-ui-{ymd}-{hms}_debug.log"),
|
||||
encoding="utf-8",
|
||||
)
|
||||
rootLoggerFileHandler.setLevel(logging.DEBUG)
|
||||
rootLoggerFileHandler.setFormatter(rootLoggerFormatter)
|
||||
rootLogger.addHandler(rootLoggerFileHandler)
|
||||
rootLoggerStdOutHandler = logging.StreamHandler(sys.stdout)
|
||||
rootLoggerStdOutHandler.setLevel(logging.INFO)
|
||||
rootLoggerStdOutHandler.setFormatter(rootLoggerFormatter)
|
||||
rootLogger.addHandler(rootLoggerStdOutHandler)
|
||||
|
||||
app = QApplication(sys.argv)
|
||||
locale = (
|
||||
QLocale(Settings().language()) if Settings().language() else QLocale.system()
|
||||
|
18
prebuild.py
18
prebuild.py
@ -6,6 +6,23 @@ from pathlib import Path
|
||||
versionFile = Path("ui/resources/VERSION")
|
||||
assert versionFile.exists()
|
||||
|
||||
versionTexts = []
|
||||
|
||||
projectVersionText = "arcaea-offline-pyside-ui\n"
|
||||
gitDescribe = os.popen("git describe --tags --long")
|
||||
gitDescribeContent = gitDescribe.read().replace("\n", "")
|
||||
if gitDescribe.close() is None:
|
||||
projectVersionText += f"{gitDescribeContent}"
|
||||
else:
|
||||
gitRevParse = os.popen("git rev-parse --short HEAD")
|
||||
gitRevParseContent = gitRevParse.read().replace("\n", "")
|
||||
projectVersionText += f"commit {gitRevParseContent}"
|
||||
gitRevParse.close()
|
||||
projectVersionText += "\n"
|
||||
|
||||
versionTexts.append(projectVersionText)
|
||||
|
||||
|
||||
# detect pip
|
||||
pipName = None
|
||||
possiblePipNames = ["pip3", "pip"]
|
||||
@ -19,7 +36,6 @@ for possiblePipName in possiblePipNames:
|
||||
pipName = possiblePipName
|
||||
break
|
||||
|
||||
versionTexts = []
|
||||
|
||||
# if possiblePipName:
|
||||
# pipFreezeLines = os.popen(f"{possiblePipName} freeze").read().split("\n")
|
||||
|
@ -6,14 +6,89 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>450</width>
|
||||
<height>350</height>
|
||||
<width>400</width>
|
||||
<height>322</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string notr="true">ScoreEditor</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>formLabel.score</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="0">
|
||||
<widget class="QLabel" name="label_8">
|
||||
<property name="text">
|
||||
<string notr="true">Clear Type</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_10">
|
||||
<property name="text">
|
||||
<string notr="true">ID</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="1">
|
||||
<widget class="QComboBox" name="modifierComboBox">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="11" column="1">
|
||||
<widget class="QLabel" name="previewLabel">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QLabel { color: gray }</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string notr="true">None</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="1">
|
||||
<widget class="QSpinBox" name="maxRecallSpinBox">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>0</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="FocusSelectAllLineEdit" name="scoreLineEdit">
|
||||
<property name="inputMask">
|
||||
@ -21,7 +96,51 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="13" column="1">
|
||||
<item row="5" column="0">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>formLabel.date</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="12" column="0">
|
||||
<widget class="QCheckBox" name="warnIfIncompleteCheckBox">
|
||||
<property name="text">
|
||||
<string>warnIfIncomplete</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="11" column="0">
|
||||
<widget class="QLabel" name="label_11">
|
||||
<property name="text">
|
||||
<string>formLabel.preview</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="0">
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="text">
|
||||
<string notr="true">MAX RECALL</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="2">
|
||||
<widget class="QCheckBox" name="dateNoneCheckBox">
|
||||
<property name="text">
|
||||
<string>setNone</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="12" column="1">
|
||||
<widget class="QLabel" name="validateLabel">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
@ -37,48 +156,8 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="11" column="1">
|
||||
<widget class="QLineEdit" name="commentLineEdit">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="1">
|
||||
<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>
|
||||
<item row="13" column="2">
|
||||
<widget class="QPushButton" name="commitButton">
|
||||
<property name="text">
|
||||
<string>commitButton</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="10" column="1">
|
||||
<widget class="QComboBox" name="clearTypeComboBox">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<widget class="QSpinBox" name="farSpinBox">
|
||||
<item row="2" column="1">
|
||||
<widget class="QSpinBox" name="pureSpinBox">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
@ -93,26 +172,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>formLabel.score</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="11" column="2">
|
||||
<widget class="QCheckBox" name="commentNoneCheckBox">
|
||||
<property name="text">
|
||||
<string>setNone</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="2">
|
||||
<widget class="QCheckBox" name="farNoneCheckBox">
|
||||
<property name="text">
|
||||
@ -120,23 +179,10 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="10" column="0">
|
||||
<widget class="QLabel" name="label_8">
|
||||
<property name="text">
|
||||
<string notr="true">Clear Type</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string notr="true">FAR</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
<item row="10" column="1">
|
||||
<widget class="QLineEdit" name="commentLineEdit">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -156,73 +202,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLabel" name="idLabel">
|
||||
<property name="text">
|
||||
<string>idAutoInsert</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>formLabel.date</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="0">
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="text">
|
||||
<string notr="true">Modifier</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="2">
|
||||
<widget class="QCheckBox" name="maxRecallNoneCheckBox">
|
||||
<property name="text">
|
||||
<string>setNone</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="10" column="2">
|
||||
<widget class="QCheckBox" name="clearTypeNoneCheckBox">
|
||||
<property name="text">
|
||||
<string>setNone</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_10">
|
||||
<property name="text">
|
||||
<string notr="true">ID</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_2">
|
||||
<property name="text">
|
||||
<string notr="true">PURE</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
@ -233,7 +212,81 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="12" column="2">
|
||||
<widget class="QPushButton" name="commitButton">
|
||||
<property name="text">
|
||||
<string>commitButton</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="2">
|
||||
<widget class="QCheckBox" name="clearTypeNoneCheckBox">
|
||||
<property name="text">
|
||||
<string>setNone</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="0">
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="text">
|
||||
<string notr="true">Modifier</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="1">
|
||||
<widget class="QComboBox" name="clearTypeComboBox">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="10" column="2">
|
||||
<widget class="QCheckBox" name="commentNoneCheckBox">
|
||||
<property name="text">
|
||||
<string>setNone</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="10" column="0">
|
||||
<widget class="QLabel" name="label_9">
|
||||
<property name="text">
|
||||
<string>formLabel.comment</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLabel" name="idLabel">
|
||||
<property name="text">
|
||||
<string>idAutoInsert</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="2">
|
||||
<widget class="QCheckBox" name="pureNoneCheckBox">
|
||||
<property name="text">
|
||||
<string>setNone</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="2">
|
||||
<widget class="QCheckBox" name="modifierNoneCheckBox">
|
||||
<property name="text">
|
||||
<string>setNone</string>
|
||||
@ -259,40 +312,13 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="1">
|
||||
<widget class="QComboBox" name="modifierComboBox">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="2">
|
||||
<widget class="QCheckBox" name="dateNoneCheckBox">
|
||||
<item row="7" column="2">
|
||||
<widget class="QCheckBox" name="maxRecallNoneCheckBox">
|
||||
<property name="text">
|
||||
<string>setNone</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="2">
|
||||
<widget class="QCheckBox" name="pureNoneCheckBox">
|
||||
<property name="text">
|
||||
<string>setNone</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QSpinBox" name="pureSpinBox">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>0</number>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -303,18 +329,18 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="13" column="0">
|
||||
<widget class="QCheckBox" name="warnIfIncompleteCheckBox">
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>warnIfIncomplete</string>
|
||||
<string notr="true">FAR</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="1">
|
||||
<widget class="QSpinBox" name="maxRecallSpinBox">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<item row="3" column="1">
|
||||
<widget class="QSpinBox" name="farSpinBox">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
@ -327,60 +353,18 @@
|
||||
<property name="maximum">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>0</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="11" column="0">
|
||||
<widget class="QLabel" name="label_9">
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>formLabel.comment</string>
|
||||
<string notr="true">PURE</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="0">
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="text">
|
||||
<string notr="true">MAX RECALL</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="12" column="0">
|
||||
<widget class="QLabel" name="label_11">
|
||||
<property name="text">
|
||||
<string>formLabel.preview</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="12" column="1">
|
||||
<widget class="QLabel" name="previewLabel">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QLabel { color: gray }</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string notr="true">None</string>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
|
@ -17,7 +17,7 @@ from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
|
||||
QPalette, QPixmap, QRadialGradient, QTransform)
|
||||
from PySide6.QtWidgets import (QApplication, QCheckBox, QComboBox, QDateTimeEdit,
|
||||
QGridLayout, QLabel, QLineEdit, QPushButton,
|
||||
QSizePolicy, QSpacerItem, QSpinBox, QWidget)
|
||||
QSizePolicy, QSpinBox, QWidget)
|
||||
|
||||
from ui.implements.components.focusSelectAllLineEdit import FocusSelectAllLineEdit
|
||||
|
||||
@ -25,126 +25,22 @@ class Ui_ScoreEditor(object):
|
||||
def setupUi(self, ScoreEditor):
|
||||
if not ScoreEditor.objectName():
|
||||
ScoreEditor.setObjectName(u"ScoreEditor")
|
||||
ScoreEditor.resize(450, 350)
|
||||
ScoreEditor.resize(400, 322)
|
||||
ScoreEditor.setWindowTitle(u"ScoreEditor")
|
||||
self.gridLayout = QGridLayout(ScoreEditor)
|
||||
self.gridLayout.setObjectName(u"gridLayout")
|
||||
self.scoreLineEdit = FocusSelectAllLineEdit(ScoreEditor)
|
||||
self.scoreLineEdit.setObjectName(u"scoreLineEdit")
|
||||
self.scoreLineEdit.setInputMask(u"B9'999'999;_")
|
||||
|
||||
self.gridLayout.addWidget(self.scoreLineEdit, 1, 1, 1, 1)
|
||||
|
||||
self.validateLabel = QLabel(ScoreEditor)
|
||||
self.validateLabel.setObjectName(u"validateLabel")
|
||||
sizePolicy = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.validateLabel.sizePolicy().hasHeightForWidth())
|
||||
self.validateLabel.setSizePolicy(sizePolicy)
|
||||
self.validateLabel.setText(u"...")
|
||||
self.validateLabel.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||
|
||||
self.gridLayout.addWidget(self.validateLabel, 13, 1, 1, 1)
|
||||
|
||||
self.commentLineEdit = QLineEdit(ScoreEditor)
|
||||
self.commentLineEdit.setObjectName(u"commentLineEdit")
|
||||
self.commentLineEdit.setEnabled(False)
|
||||
|
||||
self.gridLayout.addWidget(self.commentLineEdit, 11, 1, 1, 1)
|
||||
|
||||
self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)
|
||||
|
||||
self.gridLayout.addItem(self.verticalSpacer, 6, 1, 1, 1)
|
||||
|
||||
self.commitButton = QPushButton(ScoreEditor)
|
||||
self.commitButton.setObjectName(u"commitButton")
|
||||
|
||||
self.gridLayout.addWidget(self.commitButton, 13, 2, 1, 1)
|
||||
|
||||
self.clearTypeComboBox = QComboBox(ScoreEditor)
|
||||
self.clearTypeComboBox.setObjectName(u"clearTypeComboBox")
|
||||
self.clearTypeComboBox.setEnabled(False)
|
||||
self.clearTypeComboBox.setMinimumSize(QSize(100, 0))
|
||||
|
||||
self.gridLayout.addWidget(self.clearTypeComboBox, 10, 1, 1, 1)
|
||||
|
||||
self.farSpinBox = QSpinBox(ScoreEditor)
|
||||
self.farSpinBox.setObjectName(u"farSpinBox")
|
||||
self.farSpinBox.setMinimumSize(QSize(100, 0))
|
||||
self.farSpinBox.setMinimum(0)
|
||||
self.farSpinBox.setMaximum(0)
|
||||
|
||||
self.gridLayout.addWidget(self.farSpinBox, 3, 1, 1, 1)
|
||||
|
||||
self.label = QLabel(ScoreEditor)
|
||||
self.label.setObjectName(u"label")
|
||||
self.label.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||
|
||||
self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
|
||||
|
||||
self.commentNoneCheckBox = QCheckBox(ScoreEditor)
|
||||
self.commentNoneCheckBox.setObjectName(u"commentNoneCheckBox")
|
||||
self.commentNoneCheckBox.setChecked(True)
|
||||
|
||||
self.gridLayout.addWidget(self.commentNoneCheckBox, 11, 2, 1, 1)
|
||||
|
||||
self.farNoneCheckBox = QCheckBox(ScoreEditor)
|
||||
self.farNoneCheckBox.setObjectName(u"farNoneCheckBox")
|
||||
|
||||
self.gridLayout.addWidget(self.farNoneCheckBox, 3, 2, 1, 1)
|
||||
|
||||
self.label_8 = QLabel(ScoreEditor)
|
||||
self.label_8.setObjectName(u"label_8")
|
||||
self.label_8.setText(u"Clear Type")
|
||||
self.label_8.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||
|
||||
self.gridLayout.addWidget(self.label_8, 10, 0, 1, 1)
|
||||
|
||||
self.label_3 = QLabel(ScoreEditor)
|
||||
self.label_3.setObjectName(u"label_3")
|
||||
self.label_3.setText(u"FAR")
|
||||
self.label_3.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||
|
||||
self.gridLayout.addWidget(self.label_3, 3, 0, 1, 1)
|
||||
|
||||
self.lostSpinBox = QSpinBox(ScoreEditor)
|
||||
self.lostSpinBox.setObjectName(u"lostSpinBox")
|
||||
self.lostSpinBox.setMinimumSize(QSize(100, 0))
|
||||
self.lostSpinBox.setMinimum(0)
|
||||
self.lostSpinBox.setMaximum(0)
|
||||
|
||||
self.gridLayout.addWidget(self.lostSpinBox, 4, 1, 1, 1)
|
||||
|
||||
self.idLabel = QLabel(ScoreEditor)
|
||||
self.idLabel.setObjectName(u"idLabel")
|
||||
|
||||
self.gridLayout.addWidget(self.idLabel, 0, 1, 1, 1)
|
||||
|
||||
self.label_5 = QLabel(ScoreEditor)
|
||||
self.label_5.setObjectName(u"label_5")
|
||||
self.label_5.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||
|
||||
self.gridLayout.addWidget(self.label_5, 5, 0, 1, 1)
|
||||
|
||||
self.label_7 = QLabel(ScoreEditor)
|
||||
self.label_7.setObjectName(u"label_7")
|
||||
self.label_7.setText(u"Modifier")
|
||||
self.label_7.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||
|
||||
self.gridLayout.addWidget(self.label_7, 9, 0, 1, 1)
|
||||
|
||||
self.maxRecallNoneCheckBox = QCheckBox(ScoreEditor)
|
||||
self.maxRecallNoneCheckBox.setObjectName(u"maxRecallNoneCheckBox")
|
||||
self.maxRecallNoneCheckBox.setChecked(True)
|
||||
|
||||
self.gridLayout.addWidget(self.maxRecallNoneCheckBox, 8, 2, 1, 1)
|
||||
|
||||
self.clearTypeNoneCheckBox = QCheckBox(ScoreEditor)
|
||||
self.clearTypeNoneCheckBox.setObjectName(u"clearTypeNoneCheckBox")
|
||||
self.clearTypeNoneCheckBox.setChecked(True)
|
||||
|
||||
self.gridLayout.addWidget(self.clearTypeNoneCheckBox, 10, 2, 1, 1)
|
||||
self.gridLayout.addWidget(self.label_8, 9, 0, 1, 1)
|
||||
|
||||
self.label_10 = QLabel(ScoreEditor)
|
||||
self.label_10.setObjectName(u"label_10")
|
||||
@ -153,71 +49,23 @@ class Ui_ScoreEditor(object):
|
||||
|
||||
self.gridLayout.addWidget(self.label_10, 0, 0, 1, 1)
|
||||
|
||||
self.label_2 = QLabel(ScoreEditor)
|
||||
self.label_2.setObjectName(u"label_2")
|
||||
self.label_2.setText(u"PURE")
|
||||
self.label_2.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||
|
||||
self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
|
||||
|
||||
self.label_4 = QLabel(ScoreEditor)
|
||||
self.label_4.setObjectName(u"label_4")
|
||||
self.label_4.setText(u"LOST")
|
||||
self.label_4.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||
|
||||
self.gridLayout.addWidget(self.label_4, 4, 0, 1, 1)
|
||||
|
||||
self.modifierNoneCheckBox = QCheckBox(ScoreEditor)
|
||||
self.modifierNoneCheckBox.setObjectName(u"modifierNoneCheckBox")
|
||||
self.modifierNoneCheckBox.setChecked(True)
|
||||
|
||||
self.gridLayout.addWidget(self.modifierNoneCheckBox, 9, 2, 1, 1)
|
||||
|
||||
self.dateTimeEdit = QDateTimeEdit(ScoreEditor)
|
||||
self.dateTimeEdit.setObjectName(u"dateTimeEdit")
|
||||
sizePolicy1 = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed)
|
||||
sizePolicy1.setHorizontalStretch(0)
|
||||
sizePolicy1.setVerticalStretch(0)
|
||||
sizePolicy1.setHeightForWidth(self.dateTimeEdit.sizePolicy().hasHeightForWidth())
|
||||
self.dateTimeEdit.setSizePolicy(sizePolicy1)
|
||||
self.dateTimeEdit.setDisplayFormat(u"yyyy/MM/dd HH:mm:ss")
|
||||
self.dateTimeEdit.setCalendarPopup(False)
|
||||
|
||||
self.gridLayout.addWidget(self.dateTimeEdit, 5, 1, 1, 1)
|
||||
|
||||
self.modifierComboBox = QComboBox(ScoreEditor)
|
||||
self.modifierComboBox.setObjectName(u"modifierComboBox")
|
||||
self.modifierComboBox.setEnabled(False)
|
||||
|
||||
self.gridLayout.addWidget(self.modifierComboBox, 9, 1, 1, 1)
|
||||
self.gridLayout.addWidget(self.modifierComboBox, 8, 1, 1, 1)
|
||||
|
||||
self.dateNoneCheckBox = QCheckBox(ScoreEditor)
|
||||
self.dateNoneCheckBox.setObjectName(u"dateNoneCheckBox")
|
||||
self.previewLabel = QLabel(ScoreEditor)
|
||||
self.previewLabel.setObjectName(u"previewLabel")
|
||||
sizePolicy = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Minimum)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.previewLabel.sizePolicy().hasHeightForWidth())
|
||||
self.previewLabel.setSizePolicy(sizePolicy)
|
||||
self.previewLabel.setStyleSheet(u"QLabel { color: gray }")
|
||||
self.previewLabel.setText(u"None")
|
||||
|
||||
self.gridLayout.addWidget(self.dateNoneCheckBox, 5, 2, 1, 1)
|
||||
|
||||
self.pureNoneCheckBox = QCheckBox(ScoreEditor)
|
||||
self.pureNoneCheckBox.setObjectName(u"pureNoneCheckBox")
|
||||
|
||||
self.gridLayout.addWidget(self.pureNoneCheckBox, 2, 2, 1, 1)
|
||||
|
||||
self.pureSpinBox = QSpinBox(ScoreEditor)
|
||||
self.pureSpinBox.setObjectName(u"pureSpinBox")
|
||||
self.pureSpinBox.setMinimumSize(QSize(100, 0))
|
||||
self.pureSpinBox.setMinimum(0)
|
||||
self.pureSpinBox.setMaximum(0)
|
||||
|
||||
self.gridLayout.addWidget(self.pureSpinBox, 2, 1, 1, 1)
|
||||
|
||||
self.lostNoneCheckBox = QCheckBox(ScoreEditor)
|
||||
self.lostNoneCheckBox.setObjectName(u"lostNoneCheckBox")
|
||||
|
||||
self.gridLayout.addWidget(self.lostNoneCheckBox, 4, 2, 1, 1)
|
||||
|
||||
self.warnIfIncompleteCheckBox = QCheckBox(ScoreEditor)
|
||||
self.warnIfIncompleteCheckBox.setObjectName(u"warnIfIncompleteCheckBox")
|
||||
|
||||
self.gridLayout.addWidget(self.warnIfIncompleteCheckBox, 13, 0, 1, 1)
|
||||
self.gridLayout.addWidget(self.previewLabel, 11, 1, 1, 1)
|
||||
|
||||
self.maxRecallSpinBox = QSpinBox(ScoreEditor)
|
||||
self.maxRecallSpinBox.setObjectName(u"maxRecallSpinBox")
|
||||
@ -227,39 +75,186 @@ class Ui_ScoreEditor(object):
|
||||
self.maxRecallSpinBox.setMaximum(0)
|
||||
self.maxRecallSpinBox.setValue(0)
|
||||
|
||||
self.gridLayout.addWidget(self.maxRecallSpinBox, 8, 1, 1, 1)
|
||||
self.gridLayout.addWidget(self.maxRecallSpinBox, 7, 1, 1, 1)
|
||||
|
||||
self.label_9 = QLabel(ScoreEditor)
|
||||
self.label_9.setObjectName(u"label_9")
|
||||
self.label_9.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||
self.scoreLineEdit = FocusSelectAllLineEdit(ScoreEditor)
|
||||
self.scoreLineEdit.setObjectName(u"scoreLineEdit")
|
||||
self.scoreLineEdit.setInputMask(u"B9'999'999;_")
|
||||
|
||||
self.gridLayout.addWidget(self.label_9, 11, 0, 1, 1)
|
||||
self.gridLayout.addWidget(self.scoreLineEdit, 1, 1, 1, 1)
|
||||
|
||||
self.label_5 = QLabel(ScoreEditor)
|
||||
self.label_5.setObjectName(u"label_5")
|
||||
self.label_5.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||
|
||||
self.gridLayout.addWidget(self.label_5, 5, 0, 1, 1)
|
||||
|
||||
self.warnIfIncompleteCheckBox = QCheckBox(ScoreEditor)
|
||||
self.warnIfIncompleteCheckBox.setObjectName(u"warnIfIncompleteCheckBox")
|
||||
|
||||
self.gridLayout.addWidget(self.warnIfIncompleteCheckBox, 12, 0, 1, 1)
|
||||
|
||||
self.label_11 = QLabel(ScoreEditor)
|
||||
self.label_11.setObjectName(u"label_11")
|
||||
self.label_11.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||
|
||||
self.gridLayout.addWidget(self.label_11, 11, 0, 1, 1)
|
||||
|
||||
self.label_6 = QLabel(ScoreEditor)
|
||||
self.label_6.setObjectName(u"label_6")
|
||||
self.label_6.setText(u"MAX RECALL")
|
||||
self.label_6.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||
|
||||
self.gridLayout.addWidget(self.label_6, 8, 0, 1, 1)
|
||||
self.gridLayout.addWidget(self.label_6, 7, 0, 1, 1)
|
||||
|
||||
self.label_11 = QLabel(ScoreEditor)
|
||||
self.label_11.setObjectName(u"label_11")
|
||||
self.label_11.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||
self.dateNoneCheckBox = QCheckBox(ScoreEditor)
|
||||
self.dateNoneCheckBox.setObjectName(u"dateNoneCheckBox")
|
||||
|
||||
self.gridLayout.addWidget(self.label_11, 12, 0, 1, 1)
|
||||
self.gridLayout.addWidget(self.dateNoneCheckBox, 5, 2, 1, 1)
|
||||
|
||||
self.previewLabel = QLabel(ScoreEditor)
|
||||
self.previewLabel.setObjectName(u"previewLabel")
|
||||
sizePolicy2 = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Minimum)
|
||||
self.validateLabel = QLabel(ScoreEditor)
|
||||
self.validateLabel.setObjectName(u"validateLabel")
|
||||
sizePolicy1 = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Preferred)
|
||||
sizePolicy1.setHorizontalStretch(0)
|
||||
sizePolicy1.setVerticalStretch(0)
|
||||
sizePolicy1.setHeightForWidth(self.validateLabel.sizePolicy().hasHeightForWidth())
|
||||
self.validateLabel.setSizePolicy(sizePolicy1)
|
||||
self.validateLabel.setText(u"...")
|
||||
self.validateLabel.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||
|
||||
self.gridLayout.addWidget(self.validateLabel, 12, 1, 1, 1)
|
||||
|
||||
self.pureSpinBox = QSpinBox(ScoreEditor)
|
||||
self.pureSpinBox.setObjectName(u"pureSpinBox")
|
||||
self.pureSpinBox.setMinimumSize(QSize(100, 0))
|
||||
self.pureSpinBox.setMinimum(0)
|
||||
self.pureSpinBox.setMaximum(0)
|
||||
|
||||
self.gridLayout.addWidget(self.pureSpinBox, 2, 1, 1, 1)
|
||||
|
||||
self.farNoneCheckBox = QCheckBox(ScoreEditor)
|
||||
self.farNoneCheckBox.setObjectName(u"farNoneCheckBox")
|
||||
|
||||
self.gridLayout.addWidget(self.farNoneCheckBox, 3, 2, 1, 1)
|
||||
|
||||
self.commentLineEdit = QLineEdit(ScoreEditor)
|
||||
self.commentLineEdit.setObjectName(u"commentLineEdit")
|
||||
self.commentLineEdit.setEnabled(False)
|
||||
|
||||
self.gridLayout.addWidget(self.commentLineEdit, 10, 1, 1, 1)
|
||||
|
||||
self.lostSpinBox = QSpinBox(ScoreEditor)
|
||||
self.lostSpinBox.setObjectName(u"lostSpinBox")
|
||||
self.lostSpinBox.setMinimumSize(QSize(100, 0))
|
||||
self.lostSpinBox.setMinimum(0)
|
||||
self.lostSpinBox.setMaximum(0)
|
||||
|
||||
self.gridLayout.addWidget(self.lostSpinBox, 4, 1, 1, 1)
|
||||
|
||||
self.label_4 = QLabel(ScoreEditor)
|
||||
self.label_4.setObjectName(u"label_4")
|
||||
self.label_4.setText(u"LOST")
|
||||
self.label_4.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||
|
||||
self.gridLayout.addWidget(self.label_4, 4, 0, 1, 1)
|
||||
|
||||
self.commitButton = QPushButton(ScoreEditor)
|
||||
self.commitButton.setObjectName(u"commitButton")
|
||||
|
||||
self.gridLayout.addWidget(self.commitButton, 12, 2, 1, 1)
|
||||
|
||||
self.clearTypeNoneCheckBox = QCheckBox(ScoreEditor)
|
||||
self.clearTypeNoneCheckBox.setObjectName(u"clearTypeNoneCheckBox")
|
||||
self.clearTypeNoneCheckBox.setChecked(True)
|
||||
|
||||
self.gridLayout.addWidget(self.clearTypeNoneCheckBox, 9, 2, 1, 1)
|
||||
|
||||
self.label_7 = QLabel(ScoreEditor)
|
||||
self.label_7.setObjectName(u"label_7")
|
||||
self.label_7.setText(u"Modifier")
|
||||
self.label_7.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||
|
||||
self.gridLayout.addWidget(self.label_7, 8, 0, 1, 1)
|
||||
|
||||
self.clearTypeComboBox = QComboBox(ScoreEditor)
|
||||
self.clearTypeComboBox.setObjectName(u"clearTypeComboBox")
|
||||
self.clearTypeComboBox.setEnabled(False)
|
||||
self.clearTypeComboBox.setMinimumSize(QSize(100, 0))
|
||||
|
||||
self.gridLayout.addWidget(self.clearTypeComboBox, 9, 1, 1, 1)
|
||||
|
||||
self.commentNoneCheckBox = QCheckBox(ScoreEditor)
|
||||
self.commentNoneCheckBox.setObjectName(u"commentNoneCheckBox")
|
||||
self.commentNoneCheckBox.setChecked(True)
|
||||
|
||||
self.gridLayout.addWidget(self.commentNoneCheckBox, 10, 2, 1, 1)
|
||||
|
||||
self.label_9 = QLabel(ScoreEditor)
|
||||
self.label_9.setObjectName(u"label_9")
|
||||
self.label_9.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||
|
||||
self.gridLayout.addWidget(self.label_9, 10, 0, 1, 1)
|
||||
|
||||
self.idLabel = QLabel(ScoreEditor)
|
||||
self.idLabel.setObjectName(u"idLabel")
|
||||
|
||||
self.gridLayout.addWidget(self.idLabel, 0, 1, 1, 1)
|
||||
|
||||
self.pureNoneCheckBox = QCheckBox(ScoreEditor)
|
||||
self.pureNoneCheckBox.setObjectName(u"pureNoneCheckBox")
|
||||
|
||||
self.gridLayout.addWidget(self.pureNoneCheckBox, 2, 2, 1, 1)
|
||||
|
||||
self.modifierNoneCheckBox = QCheckBox(ScoreEditor)
|
||||
self.modifierNoneCheckBox.setObjectName(u"modifierNoneCheckBox")
|
||||
self.modifierNoneCheckBox.setChecked(True)
|
||||
|
||||
self.gridLayout.addWidget(self.modifierNoneCheckBox, 8, 2, 1, 1)
|
||||
|
||||
self.dateTimeEdit = QDateTimeEdit(ScoreEditor)
|
||||
self.dateTimeEdit.setObjectName(u"dateTimeEdit")
|
||||
sizePolicy2 = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed)
|
||||
sizePolicy2.setHorizontalStretch(0)
|
||||
sizePolicy2.setVerticalStretch(0)
|
||||
sizePolicy2.setHeightForWidth(self.previewLabel.sizePolicy().hasHeightForWidth())
|
||||
self.previewLabel.setSizePolicy(sizePolicy2)
|
||||
self.previewLabel.setStyleSheet(u"QLabel { color: gray }")
|
||||
self.previewLabel.setText(u"None")
|
||||
self.previewLabel.setWordWrap(True)
|
||||
sizePolicy2.setHeightForWidth(self.dateTimeEdit.sizePolicy().hasHeightForWidth())
|
||||
self.dateTimeEdit.setSizePolicy(sizePolicy2)
|
||||
self.dateTimeEdit.setDisplayFormat(u"yyyy/MM/dd HH:mm:ss")
|
||||
self.dateTimeEdit.setCalendarPopup(False)
|
||||
|
||||
self.gridLayout.addWidget(self.previewLabel, 12, 1, 1, 1)
|
||||
self.gridLayout.addWidget(self.dateTimeEdit, 5, 1, 1, 1)
|
||||
|
||||
self.maxRecallNoneCheckBox = QCheckBox(ScoreEditor)
|
||||
self.maxRecallNoneCheckBox.setObjectName(u"maxRecallNoneCheckBox")
|
||||
self.maxRecallNoneCheckBox.setChecked(True)
|
||||
|
||||
self.gridLayout.addWidget(self.maxRecallNoneCheckBox, 7, 2, 1, 1)
|
||||
|
||||
self.lostNoneCheckBox = QCheckBox(ScoreEditor)
|
||||
self.lostNoneCheckBox.setObjectName(u"lostNoneCheckBox")
|
||||
|
||||
self.gridLayout.addWidget(self.lostNoneCheckBox, 4, 2, 1, 1)
|
||||
|
||||
self.label_3 = QLabel(ScoreEditor)
|
||||
self.label_3.setObjectName(u"label_3")
|
||||
self.label_3.setText(u"FAR")
|
||||
self.label_3.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||
|
||||
self.gridLayout.addWidget(self.label_3, 3, 0, 1, 1)
|
||||
|
||||
self.farSpinBox = QSpinBox(ScoreEditor)
|
||||
self.farSpinBox.setObjectName(u"farSpinBox")
|
||||
self.farSpinBox.setMinimumSize(QSize(100, 0))
|
||||
self.farSpinBox.setMinimum(0)
|
||||
self.farSpinBox.setMaximum(0)
|
||||
|
||||
self.gridLayout.addWidget(self.farSpinBox, 3, 1, 1, 1)
|
||||
|
||||
self.label_2 = QLabel(ScoreEditor)
|
||||
self.label_2.setObjectName(u"label_2")
|
||||
self.label_2.setText(u"PURE")
|
||||
self.label_2.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||
|
||||
self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
|
||||
|
||||
QWidget.setTabOrder(self.scoreLineEdit, self.pureSpinBox)
|
||||
QWidget.setTabOrder(self.pureSpinBox, self.pureNoneCheckBox)
|
||||
@ -293,21 +288,21 @@ class Ui_ScoreEditor(object):
|
||||
# setupUi
|
||||
|
||||
def retranslateUi(self, ScoreEditor):
|
||||
self.commitButton.setText(QCoreApplication.translate("ScoreEditor", u"commitButton", None))
|
||||
self.label.setText(QCoreApplication.translate("ScoreEditor", u"formLabel.score", None))
|
||||
self.commentNoneCheckBox.setText(QCoreApplication.translate("ScoreEditor", u"setNone", None))
|
||||
self.farNoneCheckBox.setText(QCoreApplication.translate("ScoreEditor", u"setNone", None))
|
||||
self.idLabel.setText(QCoreApplication.translate("ScoreEditor", u"idAutoInsert", None))
|
||||
self.label_5.setText(QCoreApplication.translate("ScoreEditor", u"formLabel.date", None))
|
||||
self.maxRecallNoneCheckBox.setText(QCoreApplication.translate("ScoreEditor", u"setNone", None))
|
||||
self.clearTypeNoneCheckBox.setText(QCoreApplication.translate("ScoreEditor", u"setNone", None))
|
||||
self.modifierNoneCheckBox.setText(QCoreApplication.translate("ScoreEditor", u"setNone", None))
|
||||
self.dateNoneCheckBox.setText(QCoreApplication.translate("ScoreEditor", u"setNone", None))
|
||||
self.pureNoneCheckBox.setText(QCoreApplication.translate("ScoreEditor", u"setNone", None))
|
||||
self.lostNoneCheckBox.setText(QCoreApplication.translate("ScoreEditor", u"setNone", None))
|
||||
self.warnIfIncompleteCheckBox.setText(QCoreApplication.translate("ScoreEditor", u"warnIfIncomplete", None))
|
||||
self.label_9.setText(QCoreApplication.translate("ScoreEditor", u"formLabel.comment", None))
|
||||
self.label_11.setText(QCoreApplication.translate("ScoreEditor", u"formLabel.preview", None))
|
||||
self.dateNoneCheckBox.setText(QCoreApplication.translate("ScoreEditor", u"setNone", None))
|
||||
self.farNoneCheckBox.setText(QCoreApplication.translate("ScoreEditor", u"setNone", None))
|
||||
self.commitButton.setText(QCoreApplication.translate("ScoreEditor", u"commitButton", None))
|
||||
self.clearTypeNoneCheckBox.setText(QCoreApplication.translate("ScoreEditor", u"setNone", None))
|
||||
self.commentNoneCheckBox.setText(QCoreApplication.translate("ScoreEditor", u"setNone", None))
|
||||
self.label_9.setText(QCoreApplication.translate("ScoreEditor", u"formLabel.comment", None))
|
||||
self.idLabel.setText(QCoreApplication.translate("ScoreEditor", u"idAutoInsert", None))
|
||||
self.pureNoneCheckBox.setText(QCoreApplication.translate("ScoreEditor", u"setNone", None))
|
||||
self.modifierNoneCheckBox.setText(QCoreApplication.translate("ScoreEditor", u"setNone", None))
|
||||
self.maxRecallNoneCheckBox.setText(QCoreApplication.translate("ScoreEditor", u"setNone", None))
|
||||
self.lostNoneCheckBox.setText(QCoreApplication.translate("ScoreEditor", u"setNone", None))
|
||||
pass
|
||||
# retranslateUi
|
||||
|
||||
|
@ -87,6 +87,13 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="licenseButton">
|
||||
<property name="text">
|
||||
<string notr="true">LICENSE</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_2">
|
||||
<property name="orientation">
|
||||
|
@ -72,6 +72,12 @@ class Ui_TabAbout(object):
|
||||
|
||||
self.horizontalLayout.addWidget(self.versionInfoButton)
|
||||
|
||||
self.licenseButton = QPushButton(TabAbout)
|
||||
self.licenseButton.setObjectName(u"licenseButton")
|
||||
self.licenseButton.setText(u"LICENSE")
|
||||
|
||||
self.horizontalLayout.addWidget(self.licenseButton)
|
||||
|
||||
self.horizontalSpacer_2 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
|
||||
|
||||
self.horizontalLayout.addItem(self.horizontalSpacer_2)
|
||||
|
@ -59,11 +59,11 @@
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_4">
|
||||
<property name="title">
|
||||
<string>siftDatabaseSelector.title</string>
|
||||
<string>phashDatabaseSelector.title</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_5">
|
||||
<item>
|
||||
<widget class="FileSelector" name="siftDatabaseSelector" native="true"/>
|
||||
<widget class="FileSelector" name="phashDatabaseSelector" native="true"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
|
@ -1,126 +1,126 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
################################################################################
|
||||
## Form generated from reading UI file 'tabOcr_B30.ui'
|
||||
##
|
||||
## Created by: Qt User Interface Compiler version 6.5.1
|
||||
##
|
||||
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
################################################################################
|
||||
|
||||
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
|
||||
QMetaObject, QObject, QPoint, QRect,
|
||||
QSize, QTime, QUrl, Qt)
|
||||
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
|
||||
QFont, QFontDatabase, QGradient, QIcon,
|
||||
QImage, QKeySequence, QLinearGradient, QPainter,
|
||||
QPalette, QPixmap, QRadialGradient, QTransform)
|
||||
from PySide6.QtWidgets import (QApplication, QComboBox, QGroupBox, QHBoxLayout,
|
||||
QSizePolicy, QVBoxLayout, QWidget)
|
||||
|
||||
from ui.implements.components.fileSelector import FileSelector
|
||||
from ui.implements.components.ocrQueue import OcrQueue
|
||||
|
||||
class Ui_TabOcr_B30(object):
|
||||
def setupUi(self, TabOcr_B30):
|
||||
if not TabOcr_B30.objectName():
|
||||
TabOcr_B30.setObjectName(u"TabOcr_B30")
|
||||
TabOcr_B30.resize(555, 461)
|
||||
TabOcr_B30.setWindowTitle(u"TabOcr_B30")
|
||||
self.verticalLayout_3 = QVBoxLayout(TabOcr_B30)
|
||||
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
|
||||
self.groupBox = QGroupBox(TabOcr_B30)
|
||||
self.groupBox.setObjectName(u"groupBox")
|
||||
self.verticalLayout = QVBoxLayout(self.groupBox)
|
||||
self.verticalLayout.setObjectName(u"verticalLayout")
|
||||
self.b30TypeComboBox = QComboBox(self.groupBox)
|
||||
self.b30TypeComboBox.setObjectName(u"b30TypeComboBox")
|
||||
|
||||
self.verticalLayout.addWidget(self.b30TypeComboBox)
|
||||
|
||||
|
||||
self.verticalLayout_3.addWidget(self.groupBox)
|
||||
|
||||
self.horizontalLayout = QHBoxLayout()
|
||||
self.horizontalLayout.setObjectName(u"horizontalLayout")
|
||||
self.groupBox_3 = QGroupBox(TabOcr_B30)
|
||||
self.groupBox_3.setObjectName(u"groupBox_3")
|
||||
self.verticalLayout_4 = QVBoxLayout(self.groupBox_3)
|
||||
self.verticalLayout_4.setObjectName(u"verticalLayout_4")
|
||||
self.knnModelSelector = FileSelector(self.groupBox_3)
|
||||
self.knnModelSelector.setObjectName(u"knnModelSelector")
|
||||
|
||||
self.verticalLayout_4.addWidget(self.knnModelSelector)
|
||||
|
||||
|
||||
self.horizontalLayout.addWidget(self.groupBox_3)
|
||||
|
||||
self.groupBox_5 = QGroupBox(TabOcr_B30)
|
||||
self.groupBox_5.setObjectName(u"groupBox_5")
|
||||
self.verticalLayout_6 = QVBoxLayout(self.groupBox_5)
|
||||
self.verticalLayout_6.setObjectName(u"verticalLayout_6")
|
||||
self.b30KnnModelSelector = FileSelector(self.groupBox_5)
|
||||
self.b30KnnModelSelector.setObjectName(u"b30KnnModelSelector")
|
||||
|
||||
self.verticalLayout_6.addWidget(self.b30KnnModelSelector)
|
||||
|
||||
|
||||
self.horizontalLayout.addWidget(self.groupBox_5)
|
||||
|
||||
|
||||
self.verticalLayout_3.addLayout(self.horizontalLayout)
|
||||
|
||||
self.horizontalLayout_3 = QHBoxLayout()
|
||||
self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
|
||||
self.groupBox_4 = QGroupBox(TabOcr_B30)
|
||||
self.groupBox_4.setObjectName(u"groupBox_4")
|
||||
self.verticalLayout_5 = QVBoxLayout(self.groupBox_4)
|
||||
self.verticalLayout_5.setObjectName(u"verticalLayout_5")
|
||||
self.siftDatabaseSelector = FileSelector(self.groupBox_4)
|
||||
self.siftDatabaseSelector.setObjectName(u"siftDatabaseSelector")
|
||||
|
||||
self.verticalLayout_5.addWidget(self.siftDatabaseSelector)
|
||||
|
||||
|
||||
self.horizontalLayout_3.addWidget(self.groupBox_4)
|
||||
|
||||
self.groupBox_2 = QGroupBox(TabOcr_B30)
|
||||
self.groupBox_2.setObjectName(u"groupBox_2")
|
||||
self.verticalLayout_2 = QVBoxLayout(self.groupBox_2)
|
||||
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
|
||||
self.imageSelector = FileSelector(self.groupBox_2)
|
||||
self.imageSelector.setObjectName(u"imageSelector")
|
||||
|
||||
self.verticalLayout_2.addWidget(self.imageSelector)
|
||||
|
||||
|
||||
self.horizontalLayout_3.addWidget(self.groupBox_2)
|
||||
|
||||
|
||||
self.verticalLayout_3.addLayout(self.horizontalLayout_3)
|
||||
|
||||
self.ocrQueue = OcrQueue(TabOcr_B30)
|
||||
self.ocrQueue.setObjectName(u"ocrQueue")
|
||||
sizePolicy = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Expanding)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.ocrQueue.sizePolicy().hasHeightForWidth())
|
||||
self.ocrQueue.setSizePolicy(sizePolicy)
|
||||
|
||||
self.verticalLayout_3.addWidget(self.ocrQueue)
|
||||
|
||||
|
||||
self.retranslateUi(TabOcr_B30)
|
||||
|
||||
QMetaObject.connectSlotsByName(TabOcr_B30)
|
||||
# setupUi
|
||||
|
||||
def retranslateUi(self, TabOcr_B30):
|
||||
self.groupBox.setTitle(QCoreApplication.translate("TabOcr_B30", u"b30type", None))
|
||||
self.groupBox_3.setTitle(QCoreApplication.translate("TabOcr_B30", u"knnModelSelector.title", None))
|
||||
self.groupBox_5.setTitle(QCoreApplication.translate("TabOcr_B30", u"b30KnnModelSelector.title", None))
|
||||
self.groupBox_4.setTitle(QCoreApplication.translate("TabOcr_B30", u"siftDatabaseSelector.title", None))
|
||||
self.groupBox_2.setTitle(QCoreApplication.translate("TabOcr_B30", u"imageSelector.title", None))
|
||||
pass
|
||||
# retranslateUi
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
################################################################################
|
||||
## Form generated from reading UI file 'tabOcr_B30.ui'
|
||||
##
|
||||
## Created by: Qt User Interface Compiler version 6.5.2
|
||||
##
|
||||
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
################################################################################
|
||||
|
||||
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
|
||||
QMetaObject, QObject, QPoint, QRect,
|
||||
QSize, QTime, QUrl, Qt)
|
||||
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
|
||||
QFont, QFontDatabase, QGradient, QIcon,
|
||||
QImage, QKeySequence, QLinearGradient, QPainter,
|
||||
QPalette, QPixmap, QRadialGradient, QTransform)
|
||||
from PySide6.QtWidgets import (QApplication, QComboBox, QGroupBox, QHBoxLayout,
|
||||
QSizePolicy, QVBoxLayout, QWidget)
|
||||
|
||||
from ui.implements.components.fileSelector import FileSelector
|
||||
from ui.implements.components.ocrQueue import OcrQueue
|
||||
|
||||
class Ui_TabOcr_B30(object):
|
||||
def setupUi(self, TabOcr_B30):
|
||||
if not TabOcr_B30.objectName():
|
||||
TabOcr_B30.setObjectName(u"TabOcr_B30")
|
||||
TabOcr_B30.resize(555, 461)
|
||||
TabOcr_B30.setWindowTitle(u"TabOcr_B30")
|
||||
self.verticalLayout_3 = QVBoxLayout(TabOcr_B30)
|
||||
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
|
||||
self.groupBox = QGroupBox(TabOcr_B30)
|
||||
self.groupBox.setObjectName(u"groupBox")
|
||||
self.verticalLayout = QVBoxLayout(self.groupBox)
|
||||
self.verticalLayout.setObjectName(u"verticalLayout")
|
||||
self.b30TypeComboBox = QComboBox(self.groupBox)
|
||||
self.b30TypeComboBox.setObjectName(u"b30TypeComboBox")
|
||||
|
||||
self.verticalLayout.addWidget(self.b30TypeComboBox)
|
||||
|
||||
|
||||
self.verticalLayout_3.addWidget(self.groupBox)
|
||||
|
||||
self.horizontalLayout = QHBoxLayout()
|
||||
self.horizontalLayout.setObjectName(u"horizontalLayout")
|
||||
self.groupBox_3 = QGroupBox(TabOcr_B30)
|
||||
self.groupBox_3.setObjectName(u"groupBox_3")
|
||||
self.verticalLayout_4 = QVBoxLayout(self.groupBox_3)
|
||||
self.verticalLayout_4.setObjectName(u"verticalLayout_4")
|
||||
self.knnModelSelector = FileSelector(self.groupBox_3)
|
||||
self.knnModelSelector.setObjectName(u"knnModelSelector")
|
||||
|
||||
self.verticalLayout_4.addWidget(self.knnModelSelector)
|
||||
|
||||
|
||||
self.horizontalLayout.addWidget(self.groupBox_3)
|
||||
|
||||
self.groupBox_5 = QGroupBox(TabOcr_B30)
|
||||
self.groupBox_5.setObjectName(u"groupBox_5")
|
||||
self.verticalLayout_6 = QVBoxLayout(self.groupBox_5)
|
||||
self.verticalLayout_6.setObjectName(u"verticalLayout_6")
|
||||
self.b30KnnModelSelector = FileSelector(self.groupBox_5)
|
||||
self.b30KnnModelSelector.setObjectName(u"b30KnnModelSelector")
|
||||
|
||||
self.verticalLayout_6.addWidget(self.b30KnnModelSelector)
|
||||
|
||||
|
||||
self.horizontalLayout.addWidget(self.groupBox_5)
|
||||
|
||||
|
||||
self.verticalLayout_3.addLayout(self.horizontalLayout)
|
||||
|
||||
self.horizontalLayout_3 = QHBoxLayout()
|
||||
self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
|
||||
self.groupBox_4 = QGroupBox(TabOcr_B30)
|
||||
self.groupBox_4.setObjectName(u"groupBox_4")
|
||||
self.verticalLayout_5 = QVBoxLayout(self.groupBox_4)
|
||||
self.verticalLayout_5.setObjectName(u"verticalLayout_5")
|
||||
self.phashDatabaseSelector = FileSelector(self.groupBox_4)
|
||||
self.phashDatabaseSelector.setObjectName(u"phashDatabaseSelector")
|
||||
|
||||
self.verticalLayout_5.addWidget(self.phashDatabaseSelector)
|
||||
|
||||
|
||||
self.horizontalLayout_3.addWidget(self.groupBox_4)
|
||||
|
||||
self.groupBox_2 = QGroupBox(TabOcr_B30)
|
||||
self.groupBox_2.setObjectName(u"groupBox_2")
|
||||
self.verticalLayout_2 = QVBoxLayout(self.groupBox_2)
|
||||
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
|
||||
self.imageSelector = FileSelector(self.groupBox_2)
|
||||
self.imageSelector.setObjectName(u"imageSelector")
|
||||
|
||||
self.verticalLayout_2.addWidget(self.imageSelector)
|
||||
|
||||
|
||||
self.horizontalLayout_3.addWidget(self.groupBox_2)
|
||||
|
||||
|
||||
self.verticalLayout_3.addLayout(self.horizontalLayout_3)
|
||||
|
||||
self.ocrQueue = OcrQueue(TabOcr_B30)
|
||||
self.ocrQueue.setObjectName(u"ocrQueue")
|
||||
sizePolicy = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Expanding)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.ocrQueue.sizePolicy().hasHeightForWidth())
|
||||
self.ocrQueue.setSizePolicy(sizePolicy)
|
||||
|
||||
self.verticalLayout_3.addWidget(self.ocrQueue)
|
||||
|
||||
|
||||
self.retranslateUi(TabOcr_B30)
|
||||
|
||||
QMetaObject.connectSlotsByName(TabOcr_B30)
|
||||
# setupUi
|
||||
|
||||
def retranslateUi(self, TabOcr_B30):
|
||||
self.groupBox.setTitle(QCoreApplication.translate("TabOcr_B30", u"b30type", None))
|
||||
self.groupBox_3.setTitle(QCoreApplication.translate("TabOcr_B30", u"knnModelSelector.title", None))
|
||||
self.groupBox_5.setTitle(QCoreApplication.translate("TabOcr_B30", u"b30KnnModelSelector.title", None))
|
||||
self.groupBox_4.setTitle(QCoreApplication.translate("TabOcr_B30", u"phashDatabaseSelector.title", None))
|
||||
self.groupBox_2.setTitle(QCoreApplication.translate("TabOcr_B30", u"imageSelector.title", None))
|
||||
pass
|
||||
# retranslateUi
|
||||
|
||||
|
@ -28,11 +28,22 @@
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="deviceUseAutoFactorCheckBox">
|
||||
<property name="text">
|
||||
<string>deviceSelector.useAutoFactor</string>
|
||||
</property>
|
||||
</widget>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="deviceUseAutoFactorCheckBox">
|
||||
<property name="text">
|
||||
<string>deviceSelector.useAutoFactor</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="deviceSizesV2CheckBox">
|
||||
<property name="text">
|
||||
<string notr="true">SizesV2</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="FileSelector" name="deviceFileSelector" native="true"/>
|
||||
@ -126,11 +137,11 @@
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_5">
|
||||
<property name="title">
|
||||
<string>siftDatabaseSelector.title</string>
|
||||
<string>phashDatabaseSelector.title</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_7">
|
||||
<item>
|
||||
<widget class="FileSelector" name="siftDatabaseSelector" native="true"/>
|
||||
<widget class="FileSelector" name="phashDatabaseSelector" native="true"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
@ -161,17 +172,17 @@
|
||||
<header>ui.implements.components.fileSelector</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>DevicesComboBox</class>
|
||||
<extends>QComboBox</extends>
|
||||
<header>ui.implements.components.devicesComboBox</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>OcrQueue</class>
|
||||
<extends>QWidget</extends>
|
||||
<header>ui.implements.components.ocrQueue</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>DevicesComboBox</class>
|
||||
<extends>QComboBox</extends>
|
||||
<header>ui.implements.components.devicesComboBox</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
|
@ -1,155 +1,166 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
################################################################################
|
||||
## Form generated from reading UI file 'tabOcr_Device.ui'
|
||||
##
|
||||
## Created by: Qt User Interface Compiler version 6.5.2
|
||||
##
|
||||
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
################################################################################
|
||||
|
||||
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
|
||||
QMetaObject, QObject, QPoint, QRect,
|
||||
QSize, QTime, QUrl, Qt)
|
||||
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
|
||||
QFont, QFontDatabase, QGradient, QIcon,
|
||||
QImage, QKeySequence, QLinearGradient, QPainter,
|
||||
QPalette, QPixmap, QRadialGradient, QTransform)
|
||||
from PySide6.QtWidgets import (QApplication, QCheckBox, QGroupBox, QHBoxLayout,
|
||||
QPushButton, QSizePolicy, QStackedWidget, QVBoxLayout,
|
||||
QWidget)
|
||||
|
||||
from ui.implements.components.devicesComboBox import DevicesComboBox
|
||||
from ui.implements.components.fileSelector import FileSelector
|
||||
from ui.implements.components.ocrQueue import OcrQueue
|
||||
|
||||
class Ui_TabOcr_Device(object):
|
||||
def setupUi(self, TabOcr_Device):
|
||||
if not TabOcr_Device.objectName():
|
||||
TabOcr_Device.setObjectName(u"TabOcr_Device")
|
||||
TabOcr_Device.resize(632, 527)
|
||||
TabOcr_Device.setWindowTitle(u"TabOcr_Device")
|
||||
self.verticalLayout_3 = QVBoxLayout(TabOcr_Device)
|
||||
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
|
||||
self.openWizardButton = QPushButton(TabOcr_Device)
|
||||
self.openWizardButton.setObjectName(u"openWizardButton")
|
||||
|
||||
self.verticalLayout_3.addWidget(self.openWizardButton)
|
||||
|
||||
self.groupBox = QGroupBox(TabOcr_Device)
|
||||
self.groupBox.setObjectName(u"groupBox")
|
||||
self.verticalLayout = QVBoxLayout(self.groupBox)
|
||||
self.verticalLayout.setObjectName(u"verticalLayout")
|
||||
self.deviceUseAutoFactorCheckBox = QCheckBox(self.groupBox)
|
||||
self.deviceUseAutoFactorCheckBox.setObjectName(u"deviceUseAutoFactorCheckBox")
|
||||
|
||||
self.verticalLayout.addWidget(self.deviceUseAutoFactorCheckBox)
|
||||
|
||||
self.deviceFileSelector = FileSelector(self.groupBox)
|
||||
self.deviceFileSelector.setObjectName(u"deviceFileSelector")
|
||||
|
||||
self.verticalLayout.addWidget(self.deviceFileSelector)
|
||||
|
||||
self.deviceComboBox = DevicesComboBox(self.groupBox)
|
||||
self.deviceComboBox.setObjectName(u"deviceComboBox")
|
||||
|
||||
self.verticalLayout.addWidget(self.deviceComboBox)
|
||||
|
||||
|
||||
self.verticalLayout_3.addWidget(self.groupBox)
|
||||
|
||||
self.horizontalWidget = QWidget(TabOcr_Device)
|
||||
self.horizontalWidget.setObjectName(u"horizontalWidget")
|
||||
sizePolicy = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Maximum)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.horizontalWidget.sizePolicy().hasHeightForWidth())
|
||||
self.horizontalWidget.setSizePolicy(sizePolicy)
|
||||
self.horizontalLayout_2 = QHBoxLayout(self.horizontalWidget)
|
||||
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
|
||||
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
|
||||
self.groupBox_6 = QGroupBox(self.horizontalWidget)
|
||||
self.groupBox_6.setObjectName(u"groupBox_6")
|
||||
self.verticalLayout_6 = QVBoxLayout(self.groupBox_6)
|
||||
self.verticalLayout_6.setObjectName(u"verticalLayout_6")
|
||||
self.knnModelSelector = FileSelector(self.groupBox_6)
|
||||
self.knnModelSelector.setObjectName(u"knnModelSelector")
|
||||
|
||||
self.verticalLayout_6.addWidget(self.knnModelSelector)
|
||||
|
||||
|
||||
self.horizontalLayout_2.addWidget(self.groupBox_6)
|
||||
|
||||
self.deviceDependenciesStackedWidget = QStackedWidget(self.horizontalWidget)
|
||||
self.deviceDependenciesStackedWidget.setObjectName(u"deviceDependenciesStackedWidget")
|
||||
self.deviceV1 = QWidget()
|
||||
self.deviceV1.setObjectName(u"deviceV1")
|
||||
self.verticalLayout_2 = QVBoxLayout(self.deviceV1)
|
||||
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
|
||||
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
|
||||
self.groupBox_4 = QGroupBox(self.deviceV1)
|
||||
self.groupBox_4.setObjectName(u"groupBox_4")
|
||||
self.verticalLayout_5 = QVBoxLayout(self.groupBox_4)
|
||||
self.verticalLayout_5.setObjectName(u"verticalLayout_5")
|
||||
self.tesseractFileSelector = FileSelector(self.groupBox_4)
|
||||
self.tesseractFileSelector.setObjectName(u"tesseractFileSelector")
|
||||
|
||||
self.verticalLayout_5.addWidget(self.tesseractFileSelector)
|
||||
|
||||
|
||||
self.verticalLayout_2.addWidget(self.groupBox_4)
|
||||
|
||||
self.deviceDependenciesStackedWidget.addWidget(self.deviceV1)
|
||||
self.deviceV2 = QWidget()
|
||||
self.deviceV2.setObjectName(u"deviceV2")
|
||||
self.verticalLayout_4 = QVBoxLayout(self.deviceV2)
|
||||
self.verticalLayout_4.setObjectName(u"verticalLayout_4")
|
||||
self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
|
||||
self.groupBox_5 = QGroupBox(self.deviceV2)
|
||||
self.groupBox_5.setObjectName(u"groupBox_5")
|
||||
self.verticalLayout_7 = QVBoxLayout(self.groupBox_5)
|
||||
self.verticalLayout_7.setObjectName(u"verticalLayout_7")
|
||||
self.siftDatabaseSelector = FileSelector(self.groupBox_5)
|
||||
self.siftDatabaseSelector.setObjectName(u"siftDatabaseSelector")
|
||||
|
||||
self.verticalLayout_7.addWidget(self.siftDatabaseSelector)
|
||||
|
||||
|
||||
self.verticalLayout_4.addWidget(self.groupBox_5)
|
||||
|
||||
self.deviceDependenciesStackedWidget.addWidget(self.deviceV2)
|
||||
|
||||
self.horizontalLayout_2.addWidget(self.deviceDependenciesStackedWidget)
|
||||
|
||||
|
||||
self.verticalLayout_3.addWidget(self.horizontalWidget)
|
||||
|
||||
self.ocrQueue = OcrQueue(TabOcr_Device)
|
||||
self.ocrQueue.setObjectName(u"ocrQueue")
|
||||
sizePolicy1 = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Expanding)
|
||||
sizePolicy1.setHorizontalStretch(0)
|
||||
sizePolicy1.setVerticalStretch(0)
|
||||
sizePolicy1.setHeightForWidth(self.ocrQueue.sizePolicy().hasHeightForWidth())
|
||||
self.ocrQueue.setSizePolicy(sizePolicy1)
|
||||
|
||||
self.verticalLayout_3.addWidget(self.ocrQueue)
|
||||
|
||||
|
||||
self.retranslateUi(TabOcr_Device)
|
||||
|
||||
self.deviceDependenciesStackedWidget.setCurrentIndex(0)
|
||||
|
||||
|
||||
QMetaObject.connectSlotsByName(TabOcr_Device)
|
||||
# setupUi
|
||||
|
||||
def retranslateUi(self, TabOcr_Device):
|
||||
self.openWizardButton.setText(QCoreApplication.translate("TabOcr_Device", u"openWizardButton", None))
|
||||
self.groupBox.setTitle(QCoreApplication.translate("TabOcr_Device", u"deviceSelector.title", None))
|
||||
self.deviceUseAutoFactorCheckBox.setText(QCoreApplication.translate("TabOcr_Device", u"deviceSelector.useAutoFactor", None))
|
||||
self.groupBox_6.setTitle(QCoreApplication.translate("TabOcr_Device", u"knnModelSelector.title", None))
|
||||
self.groupBox_4.setTitle(QCoreApplication.translate("TabOcr_Device", u"tesseractSelector.title", None))
|
||||
self.groupBox_5.setTitle(QCoreApplication.translate("TabOcr_Device", u"siftDatabaseSelector.title", None))
|
||||
pass
|
||||
# retranslateUi
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
################################################################################
|
||||
## Form generated from reading UI file 'tabOcr_Device.ui'
|
||||
##
|
||||
## Created by: Qt User Interface Compiler version 6.5.2
|
||||
##
|
||||
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
################################################################################
|
||||
|
||||
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
|
||||
QMetaObject, QObject, QPoint, QRect,
|
||||
QSize, QTime, QUrl, Qt)
|
||||
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
|
||||
QFont, QFontDatabase, QGradient, QIcon,
|
||||
QImage, QKeySequence, QLinearGradient, QPainter,
|
||||
QPalette, QPixmap, QRadialGradient, QTransform)
|
||||
from PySide6.QtWidgets import (QApplication, QCheckBox, QGroupBox, QHBoxLayout,
|
||||
QPushButton, QSizePolicy, QStackedWidget, QVBoxLayout,
|
||||
QWidget)
|
||||
|
||||
from ui.implements.components.devicesComboBox import DevicesComboBox
|
||||
from ui.implements.components.fileSelector import FileSelector
|
||||
from ui.implements.components.ocrQueue import OcrQueue
|
||||
|
||||
class Ui_TabOcr_Device(object):
|
||||
def setupUi(self, TabOcr_Device):
|
||||
if not TabOcr_Device.objectName():
|
||||
TabOcr_Device.setObjectName(u"TabOcr_Device")
|
||||
TabOcr_Device.resize(632, 527)
|
||||
TabOcr_Device.setWindowTitle(u"TabOcr_Device")
|
||||
self.verticalLayout_3 = QVBoxLayout(TabOcr_Device)
|
||||
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
|
||||
self.openWizardButton = QPushButton(TabOcr_Device)
|
||||
self.openWizardButton.setObjectName(u"openWizardButton")
|
||||
|
||||
self.verticalLayout_3.addWidget(self.openWizardButton)
|
||||
|
||||
self.groupBox = QGroupBox(TabOcr_Device)
|
||||
self.groupBox.setObjectName(u"groupBox")
|
||||
self.verticalLayout = QVBoxLayout(self.groupBox)
|
||||
self.verticalLayout.setObjectName(u"verticalLayout")
|
||||
self.horizontalLayout = QHBoxLayout()
|
||||
self.horizontalLayout.setObjectName(u"horizontalLayout")
|
||||
self.deviceUseAutoFactorCheckBox = QCheckBox(self.groupBox)
|
||||
self.deviceUseAutoFactorCheckBox.setObjectName(u"deviceUseAutoFactorCheckBox")
|
||||
|
||||
self.horizontalLayout.addWidget(self.deviceUseAutoFactorCheckBox)
|
||||
|
||||
self.deviceSizesV2CheckBox = QCheckBox(self.groupBox)
|
||||
self.deviceSizesV2CheckBox.setObjectName(u"deviceSizesV2CheckBox")
|
||||
self.deviceSizesV2CheckBox.setText(u"SizesV2")
|
||||
|
||||
self.horizontalLayout.addWidget(self.deviceSizesV2CheckBox)
|
||||
|
||||
|
||||
self.verticalLayout.addLayout(self.horizontalLayout)
|
||||
|
||||
self.deviceFileSelector = FileSelector(self.groupBox)
|
||||
self.deviceFileSelector.setObjectName(u"deviceFileSelector")
|
||||
|
||||
self.verticalLayout.addWidget(self.deviceFileSelector)
|
||||
|
||||
self.deviceComboBox = DevicesComboBox(self.groupBox)
|
||||
self.deviceComboBox.setObjectName(u"deviceComboBox")
|
||||
|
||||
self.verticalLayout.addWidget(self.deviceComboBox)
|
||||
|
||||
|
||||
self.verticalLayout_3.addWidget(self.groupBox)
|
||||
|
||||
self.horizontalWidget = QWidget(TabOcr_Device)
|
||||
self.horizontalWidget.setObjectName(u"horizontalWidget")
|
||||
sizePolicy = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Maximum)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.horizontalWidget.sizePolicy().hasHeightForWidth())
|
||||
self.horizontalWidget.setSizePolicy(sizePolicy)
|
||||
self.horizontalLayout_2 = QHBoxLayout(self.horizontalWidget)
|
||||
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
|
||||
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
|
||||
self.groupBox_6 = QGroupBox(self.horizontalWidget)
|
||||
self.groupBox_6.setObjectName(u"groupBox_6")
|
||||
self.verticalLayout_6 = QVBoxLayout(self.groupBox_6)
|
||||
self.verticalLayout_6.setObjectName(u"verticalLayout_6")
|
||||
self.knnModelSelector = FileSelector(self.groupBox_6)
|
||||
self.knnModelSelector.setObjectName(u"knnModelSelector")
|
||||
|
||||
self.verticalLayout_6.addWidget(self.knnModelSelector)
|
||||
|
||||
|
||||
self.horizontalLayout_2.addWidget(self.groupBox_6)
|
||||
|
||||
self.deviceDependenciesStackedWidget = QStackedWidget(self.horizontalWidget)
|
||||
self.deviceDependenciesStackedWidget.setObjectName(u"deviceDependenciesStackedWidget")
|
||||
self.deviceV1 = QWidget()
|
||||
self.deviceV1.setObjectName(u"deviceV1")
|
||||
self.verticalLayout_2 = QVBoxLayout(self.deviceV1)
|
||||
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
|
||||
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
|
||||
self.groupBox_4 = QGroupBox(self.deviceV1)
|
||||
self.groupBox_4.setObjectName(u"groupBox_4")
|
||||
self.verticalLayout_5 = QVBoxLayout(self.groupBox_4)
|
||||
self.verticalLayout_5.setObjectName(u"verticalLayout_5")
|
||||
self.tesseractFileSelector = FileSelector(self.groupBox_4)
|
||||
self.tesseractFileSelector.setObjectName(u"tesseractFileSelector")
|
||||
|
||||
self.verticalLayout_5.addWidget(self.tesseractFileSelector)
|
||||
|
||||
|
||||
self.verticalLayout_2.addWidget(self.groupBox_4)
|
||||
|
||||
self.deviceDependenciesStackedWidget.addWidget(self.deviceV1)
|
||||
self.deviceV2 = QWidget()
|
||||
self.deviceV2.setObjectName(u"deviceV2")
|
||||
self.verticalLayout_4 = QVBoxLayout(self.deviceV2)
|
||||
self.verticalLayout_4.setObjectName(u"verticalLayout_4")
|
||||
self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
|
||||
self.groupBox_5 = QGroupBox(self.deviceV2)
|
||||
self.groupBox_5.setObjectName(u"groupBox_5")
|
||||
self.verticalLayout_7 = QVBoxLayout(self.groupBox_5)
|
||||
self.verticalLayout_7.setObjectName(u"verticalLayout_7")
|
||||
self.phashDatabaseSelector = FileSelector(self.groupBox_5)
|
||||
self.phashDatabaseSelector.setObjectName(u"phashDatabaseSelector")
|
||||
|
||||
self.verticalLayout_7.addWidget(self.phashDatabaseSelector)
|
||||
|
||||
|
||||
self.verticalLayout_4.addWidget(self.groupBox_5)
|
||||
|
||||
self.deviceDependenciesStackedWidget.addWidget(self.deviceV2)
|
||||
|
||||
self.horizontalLayout_2.addWidget(self.deviceDependenciesStackedWidget)
|
||||
|
||||
|
||||
self.verticalLayout_3.addWidget(self.horizontalWidget)
|
||||
|
||||
self.ocrQueue = OcrQueue(TabOcr_Device)
|
||||
self.ocrQueue.setObjectName(u"ocrQueue")
|
||||
sizePolicy1 = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Expanding)
|
||||
sizePolicy1.setHorizontalStretch(0)
|
||||
sizePolicy1.setVerticalStretch(0)
|
||||
sizePolicy1.setHeightForWidth(self.ocrQueue.sizePolicy().hasHeightForWidth())
|
||||
self.ocrQueue.setSizePolicy(sizePolicy1)
|
||||
|
||||
self.verticalLayout_3.addWidget(self.ocrQueue)
|
||||
|
||||
|
||||
self.retranslateUi(TabOcr_Device)
|
||||
|
||||
self.deviceDependenciesStackedWidget.setCurrentIndex(0)
|
||||
|
||||
|
||||
QMetaObject.connectSlotsByName(TabOcr_Device)
|
||||
# setupUi
|
||||
|
||||
def retranslateUi(self, TabOcr_Device):
|
||||
self.openWizardButton.setText(QCoreApplication.translate("TabOcr_Device", u"openWizardButton", None))
|
||||
self.groupBox.setTitle(QCoreApplication.translate("TabOcr_Device", u"deviceSelector.title", None))
|
||||
self.deviceUseAutoFactorCheckBox.setText(QCoreApplication.translate("TabOcr_Device", u"deviceSelector.useAutoFactor", None))
|
||||
self.groupBox_6.setTitle(QCoreApplication.translate("TabOcr_Device", u"knnModelSelector.title", None))
|
||||
self.groupBox_4.setTitle(QCoreApplication.translate("TabOcr_Device", u"tesseractSelector.title", None))
|
||||
self.groupBox_5.setTitle(QCoreApplication.translate("TabOcr_Device", u"phashDatabaseSelector.title", None))
|
||||
pass
|
||||
# retranslateUi
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
<item>
|
||||
<widget class="QLabel" name="databaseDescribeLabel">
|
||||
<property name="text">
|
||||
<string extracomment="This database now have {} packs, {} songs, {} difficulties, {} chart info ({} complete) and {} scores.">databaseDescribeLabel {} {} {} {} {} {}</string>
|
||||
<string notr="true" extracomment="This database now have {} packs, {} songs, {} difficulties, {} chart info ({} complete) and {} scores.">...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -33,6 +33,7 @@ class Ui_TabOverview(object):
|
||||
|
||||
self.databaseDescribeLabel = QLabel(TabOverview)
|
||||
self.databaseDescribeLabel.setObjectName(u"databaseDescribeLabel")
|
||||
self.databaseDescribeLabel.setText(u"...")
|
||||
|
||||
self.verticalLayout.addWidget(self.databaseDescribeLabel)
|
||||
|
||||
@ -108,7 +109,6 @@ class Ui_TabOverview(object):
|
||||
# setupUi
|
||||
|
||||
def retranslateUi(self, TabOverview):
|
||||
self.databaseDescribeLabel.setText(QCoreApplication.translate("TabOverview", u"databaseDescribeLabel {} {} {} {} {} {}", None))
|
||||
pass
|
||||
# retranslateUi
|
||||
|
||||
|
297
ui/designer/tabs/tabTools/tabTools_ChartRecommend.ui
Normal file
297
ui/designer/tabs/tabTools/tabTools_ChartRecommend.ui
Normal file
@ -0,0 +1,297 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>TabTools_ChartRecommend</class>
|
||||
<widget class="QWidget" name="TabTools_ChartRecommend">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>668</width>
|
||||
<height>546</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string notr="true">TabTools_ChartRecommend</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="title">
|
||||
<string>constantRangeFromPlayRating</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<widget class="QDoubleSpinBox" name="rangeFromPlayRating_playRatingSpinBox">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="decimals">
|
||||
<number>3</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<double>100.000000000000000</double>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<double>0.100000000000000</double>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QGridLayout" name="gridLayout_3">
|
||||
<item row="0" column="2">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string notr="true">AA</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string notr="true">EX</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string notr="true">EX+</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="rangeFromPlayRating_ExPlusLabel">
|
||||
<property name="text">
|
||||
<string notr="true">...</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QLabel" name="rangeFromPlayRating_ExLabel">
|
||||
<property name="text">
|
||||
<string notr="true">...</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2">
|
||||
<widget class="QLabel" name="rangeFromPlayRating_AaLabel">
|
||||
<property name="text">
|
||||
<string notr="true">...</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_2">
|
||||
<property name="title">
|
||||
<string>chartsByConstant</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||
<item>
|
||||
<widget class="QDoubleSpinBox" name="chartsByConstant_constantSpinBox">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="decimals">
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<double>100.000000000000000</double>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<double>0.100000000000000</double>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="chartsByConstant_numLabel">
|
||||
<property name="text">
|
||||
<string notr="true">...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="chartsByConstant_refreshButton">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>refreshButton</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="widget" native="true">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="chartsByConstant_gridLayout"/>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_3">
|
||||
<property name="title">
|
||||
<string>chartsRecommendFromPlayRating</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="QDoubleSpinBox" name="chartsRecommendFromPlayRating_playRatingSpinBox">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="decimals">
|
||||
<number>3</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<double>100.000000000000000</double>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<double>0.100000000000000</double>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string notr="true">±</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QDoubleSpinBox" name="chartsRecommendFromPlayRating_boundsSpinBox">
|
||||
<property name="maximum">
|
||||
<double>2.000000000000000</double>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<double>0.010000000000000</double>
|
||||
</property>
|
||||
<property name="value">
|
||||
<double>0.100000000000000</double>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="chartsRecommendFromPlayRating_numLabel">
|
||||
<property name="text">
|
||||
<string notr="true">...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="chartsRecommendFromPlayRating_refreshButton">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>refreshButton</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="widget_2" native="true">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="chartsRecommendFromPlayRating_gridLayout"/>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
219
ui/designer/tabs/tabTools/tabTools_ChartRecommend_ui.py
Normal file
219
ui/designer/tabs/tabTools/tabTools_ChartRecommend_ui.py
Normal file
@ -0,0 +1,219 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
################################################################################
|
||||
## Form generated from reading UI file 'tabTools_ChartRecommend.ui'
|
||||
##
|
||||
## Created by: Qt User Interface Compiler version 6.5.2
|
||||
##
|
||||
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
################################################################################
|
||||
|
||||
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
|
||||
QMetaObject, QObject, QPoint, QRect,
|
||||
QSize, QTime, QUrl, Qt)
|
||||
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
|
||||
QFont, QFontDatabase, QGradient, QIcon,
|
||||
QImage, QKeySequence, QLinearGradient, QPainter,
|
||||
QPalette, QPixmap, QRadialGradient, QTransform)
|
||||
from PySide6.QtWidgets import (QApplication, QDoubleSpinBox, QGridLayout, QGroupBox,
|
||||
QHBoxLayout, QLabel, QPushButton, QSizePolicy,
|
||||
QSpacerItem, QVBoxLayout, QWidget)
|
||||
|
||||
class Ui_TabTools_ChartRecommend(object):
|
||||
def setupUi(self, TabTools_ChartRecommend):
|
||||
if not TabTools_ChartRecommend.objectName():
|
||||
TabTools_ChartRecommend.setObjectName(u"TabTools_ChartRecommend")
|
||||
TabTools_ChartRecommend.resize(668, 546)
|
||||
TabTools_ChartRecommend.setWindowTitle(u"TabTools_ChartRecommend")
|
||||
self.verticalLayout = QVBoxLayout(TabTools_ChartRecommend)
|
||||
self.verticalLayout.setObjectName(u"verticalLayout")
|
||||
self.groupBox = QGroupBox(TabTools_ChartRecommend)
|
||||
self.groupBox.setObjectName(u"groupBox")
|
||||
self.verticalLayout_2 = QVBoxLayout(self.groupBox)
|
||||
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
|
||||
self.rangeFromPlayRating_playRatingSpinBox = QDoubleSpinBox(self.groupBox)
|
||||
self.rangeFromPlayRating_playRatingSpinBox.setObjectName(u"rangeFromPlayRating_playRatingSpinBox")
|
||||
self.rangeFromPlayRating_playRatingSpinBox.setMinimumSize(QSize(100, 0))
|
||||
self.rangeFromPlayRating_playRatingSpinBox.setMaximumSize(QSize(100, 16777215))
|
||||
self.rangeFromPlayRating_playRatingSpinBox.setDecimals(3)
|
||||
self.rangeFromPlayRating_playRatingSpinBox.setMaximum(100.000000000000000)
|
||||
self.rangeFromPlayRating_playRatingSpinBox.setSingleStep(0.100000000000000)
|
||||
|
||||
self.verticalLayout_2.addWidget(self.rangeFromPlayRating_playRatingSpinBox)
|
||||
|
||||
self.gridLayout_3 = QGridLayout()
|
||||
self.gridLayout_3.setObjectName(u"gridLayout_3")
|
||||
self.label_3 = QLabel(self.groupBox)
|
||||
self.label_3.setObjectName(u"label_3")
|
||||
self.label_3.setText(u"AA")
|
||||
self.label_3.setAlignment(Qt.AlignBottom|Qt.AlignLeading|Qt.AlignLeft)
|
||||
|
||||
self.gridLayout_3.addWidget(self.label_3, 0, 2, 1, 1)
|
||||
|
||||
self.label_2 = QLabel(self.groupBox)
|
||||
self.label_2.setObjectName(u"label_2")
|
||||
self.label_2.setText(u"EX")
|
||||
self.label_2.setAlignment(Qt.AlignBottom|Qt.AlignLeading|Qt.AlignLeft)
|
||||
|
||||
self.gridLayout_3.addWidget(self.label_2, 0, 1, 1, 1)
|
||||
|
||||
self.label = QLabel(self.groupBox)
|
||||
self.label.setObjectName(u"label")
|
||||
self.label.setText(u"EX+")
|
||||
self.label.setAlignment(Qt.AlignBottom|Qt.AlignLeading|Qt.AlignLeft)
|
||||
|
||||
self.gridLayout_3.addWidget(self.label, 0, 0, 1, 1)
|
||||
|
||||
self.rangeFromPlayRating_ExPlusLabel = QLabel(self.groupBox)
|
||||
self.rangeFromPlayRating_ExPlusLabel.setObjectName(u"rangeFromPlayRating_ExPlusLabel")
|
||||
self.rangeFromPlayRating_ExPlusLabel.setText(u"...")
|
||||
self.rangeFromPlayRating_ExPlusLabel.setAlignment(Qt.AlignLeading|Qt.AlignLeft|Qt.AlignTop)
|
||||
|
||||
self.gridLayout_3.addWidget(self.rangeFromPlayRating_ExPlusLabel, 1, 0, 1, 1)
|
||||
|
||||
self.rangeFromPlayRating_ExLabel = QLabel(self.groupBox)
|
||||
self.rangeFromPlayRating_ExLabel.setObjectName(u"rangeFromPlayRating_ExLabel")
|
||||
self.rangeFromPlayRating_ExLabel.setText(u"...")
|
||||
self.rangeFromPlayRating_ExLabel.setAlignment(Qt.AlignLeading|Qt.AlignLeft|Qt.AlignTop)
|
||||
|
||||
self.gridLayout_3.addWidget(self.rangeFromPlayRating_ExLabel, 1, 1, 1, 1)
|
||||
|
||||
self.rangeFromPlayRating_AaLabel = QLabel(self.groupBox)
|
||||
self.rangeFromPlayRating_AaLabel.setObjectName(u"rangeFromPlayRating_AaLabel")
|
||||
self.rangeFromPlayRating_AaLabel.setText(u"...")
|
||||
self.rangeFromPlayRating_AaLabel.setAlignment(Qt.AlignLeading|Qt.AlignLeft|Qt.AlignTop)
|
||||
|
||||
self.gridLayout_3.addWidget(self.rangeFromPlayRating_AaLabel, 1, 2, 1, 1)
|
||||
|
||||
|
||||
self.verticalLayout_2.addLayout(self.gridLayout_3)
|
||||
|
||||
|
||||
self.verticalLayout.addWidget(self.groupBox)
|
||||
|
||||
self.groupBox_2 = QGroupBox(TabTools_ChartRecommend)
|
||||
self.groupBox_2.setObjectName(u"groupBox_2")
|
||||
self.verticalLayout_3 = QVBoxLayout(self.groupBox_2)
|
||||
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
|
||||
self.horizontalLayout_3 = QHBoxLayout()
|
||||
self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
|
||||
self.chartsByConstant_constantSpinBox = QDoubleSpinBox(self.groupBox_2)
|
||||
self.chartsByConstant_constantSpinBox.setObjectName(u"chartsByConstant_constantSpinBox")
|
||||
self.chartsByConstant_constantSpinBox.setMinimumSize(QSize(100, 0))
|
||||
self.chartsByConstant_constantSpinBox.setMaximumSize(QSize(100, 16777215))
|
||||
self.chartsByConstant_constantSpinBox.setDecimals(1)
|
||||
self.chartsByConstant_constantSpinBox.setMaximum(100.000000000000000)
|
||||
self.chartsByConstant_constantSpinBox.setSingleStep(0.100000000000000)
|
||||
|
||||
self.horizontalLayout_3.addWidget(self.chartsByConstant_constantSpinBox)
|
||||
|
||||
self.chartsByConstant_numLabel = QLabel(self.groupBox_2)
|
||||
self.chartsByConstant_numLabel.setObjectName(u"chartsByConstant_numLabel")
|
||||
self.chartsByConstant_numLabel.setText(u"...")
|
||||
|
||||
self.horizontalLayout_3.addWidget(self.chartsByConstant_numLabel)
|
||||
|
||||
self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
|
||||
|
||||
self.horizontalLayout_3.addItem(self.horizontalSpacer)
|
||||
|
||||
self.chartsByConstant_refreshButton = QPushButton(self.groupBox_2)
|
||||
self.chartsByConstant_refreshButton.setObjectName(u"chartsByConstant_refreshButton")
|
||||
self.chartsByConstant_refreshButton.setEnabled(False)
|
||||
|
||||
self.horizontalLayout_3.addWidget(self.chartsByConstant_refreshButton)
|
||||
|
||||
|
||||
self.verticalLayout_3.addLayout(self.horizontalLayout_3)
|
||||
|
||||
self.widget = QWidget(self.groupBox_2)
|
||||
self.widget.setObjectName(u"widget")
|
||||
sizePolicy = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Expanding)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.widget.sizePolicy().hasHeightForWidth())
|
||||
self.widget.setSizePolicy(sizePolicy)
|
||||
self.chartsByConstant_gridLayout = QGridLayout(self.widget)
|
||||
self.chartsByConstant_gridLayout.setObjectName(u"chartsByConstant_gridLayout")
|
||||
|
||||
self.verticalLayout_3.addWidget(self.widget)
|
||||
|
||||
|
||||
self.verticalLayout.addWidget(self.groupBox_2)
|
||||
|
||||
self.groupBox_3 = QGroupBox(TabTools_ChartRecommend)
|
||||
self.groupBox_3.setObjectName(u"groupBox_3")
|
||||
self.verticalLayout_4 = QVBoxLayout(self.groupBox_3)
|
||||
self.verticalLayout_4.setObjectName(u"verticalLayout_4")
|
||||
self.horizontalLayout_2 = QHBoxLayout()
|
||||
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
|
||||
self.chartsRecommendFromPlayRating_playRatingSpinBox = QDoubleSpinBox(self.groupBox_3)
|
||||
self.chartsRecommendFromPlayRating_playRatingSpinBox.setObjectName(u"chartsRecommendFromPlayRating_playRatingSpinBox")
|
||||
self.chartsRecommendFromPlayRating_playRatingSpinBox.setMinimumSize(QSize(100, 0))
|
||||
self.chartsRecommendFromPlayRating_playRatingSpinBox.setMaximumSize(QSize(100, 16777215))
|
||||
self.chartsRecommendFromPlayRating_playRatingSpinBox.setDecimals(3)
|
||||
self.chartsRecommendFromPlayRating_playRatingSpinBox.setMaximum(100.000000000000000)
|
||||
self.chartsRecommendFromPlayRating_playRatingSpinBox.setSingleStep(0.100000000000000)
|
||||
|
||||
self.horizontalLayout_2.addWidget(self.chartsRecommendFromPlayRating_playRatingSpinBox)
|
||||
|
||||
self.label_4 = QLabel(self.groupBox_3)
|
||||
self.label_4.setObjectName(u"label_4")
|
||||
self.label_4.setText(u"\u00b1")
|
||||
|
||||
self.horizontalLayout_2.addWidget(self.label_4)
|
||||
|
||||
self.chartsRecommendFromPlayRating_boundsSpinBox = QDoubleSpinBox(self.groupBox_3)
|
||||
self.chartsRecommendFromPlayRating_boundsSpinBox.setObjectName(u"chartsRecommendFromPlayRating_boundsSpinBox")
|
||||
self.chartsRecommendFromPlayRating_boundsSpinBox.setMaximum(2.000000000000000)
|
||||
self.chartsRecommendFromPlayRating_boundsSpinBox.setSingleStep(0.010000000000000)
|
||||
self.chartsRecommendFromPlayRating_boundsSpinBox.setValue(0.100000000000000)
|
||||
|
||||
self.horizontalLayout_2.addWidget(self.chartsRecommendFromPlayRating_boundsSpinBox)
|
||||
|
||||
self.chartsRecommendFromPlayRating_numLabel = QLabel(self.groupBox_3)
|
||||
self.chartsRecommendFromPlayRating_numLabel.setObjectName(u"chartsRecommendFromPlayRating_numLabel")
|
||||
self.chartsRecommendFromPlayRating_numLabel.setText(u"...")
|
||||
|
||||
self.horizontalLayout_2.addWidget(self.chartsRecommendFromPlayRating_numLabel)
|
||||
|
||||
self.horizontalSpacer_2 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
|
||||
|
||||
self.horizontalLayout_2.addItem(self.horizontalSpacer_2)
|
||||
|
||||
self.chartsRecommendFromPlayRating_refreshButton = QPushButton(self.groupBox_3)
|
||||
self.chartsRecommendFromPlayRating_refreshButton.setObjectName(u"chartsRecommendFromPlayRating_refreshButton")
|
||||
self.chartsRecommendFromPlayRating_refreshButton.setEnabled(False)
|
||||
|
||||
self.horizontalLayout_2.addWidget(self.chartsRecommendFromPlayRating_refreshButton)
|
||||
|
||||
|
||||
self.verticalLayout_4.addLayout(self.horizontalLayout_2)
|
||||
|
||||
self.widget_2 = QWidget(self.groupBox_3)
|
||||
self.widget_2.setObjectName(u"widget_2")
|
||||
sizePolicy.setHeightForWidth(self.widget_2.sizePolicy().hasHeightForWidth())
|
||||
self.widget_2.setSizePolicy(sizePolicy)
|
||||
self.chartsRecommendFromPlayRating_gridLayout = QGridLayout(self.widget_2)
|
||||
self.chartsRecommendFromPlayRating_gridLayout.setObjectName(u"chartsRecommendFromPlayRating_gridLayout")
|
||||
|
||||
self.verticalLayout_4.addWidget(self.widget_2)
|
||||
|
||||
|
||||
self.verticalLayout.addWidget(self.groupBox_3)
|
||||
|
||||
|
||||
self.retranslateUi(TabTools_ChartRecommend)
|
||||
|
||||
QMetaObject.connectSlotsByName(TabTools_ChartRecommend)
|
||||
# setupUi
|
||||
|
||||
def retranslateUi(self, TabTools_ChartRecommend):
|
||||
self.groupBox.setTitle(QCoreApplication.translate("TabTools_ChartRecommend", u"constantRangeFromPlayRating", None))
|
||||
self.groupBox_2.setTitle(QCoreApplication.translate("TabTools_ChartRecommend", u"chartsByConstant", None))
|
||||
self.chartsByConstant_refreshButton.setText(QCoreApplication.translate("TabTools_ChartRecommend", u"refreshButton", None))
|
||||
self.groupBox_3.setTitle(QCoreApplication.translate("TabTools_ChartRecommend", u"chartsRecommendFromPlayRating", None))
|
||||
self.chartsRecommendFromPlayRating_refreshButton.setText(QCoreApplication.translate("TabTools_ChartRecommend", u"refreshButton", None))
|
||||
pass
|
||||
# retranslateUi
|
||||
|
@ -7,7 +7,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>665</width>
|
||||
<height>570</height>
|
||||
<height>574</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
@ -689,6 +689,66 @@
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_6">
|
||||
<property name="title">
|
||||
<string>playRatingCalculate</string>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
||||
<item>
|
||||
<widget class="QLineEdit" name="playRatingCalculateScoreLineEdit">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>150</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="inputMask">
|
||||
<string notr="true">B9'999'999;_</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string notr="true">></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="playRatingCalculateResultLabel">
|
||||
<property name="font">
|
||||
<font>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string notr="true">...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -29,6 +29,11 @@
|
||||
<string>tab.stepCalculator</string>
|
||||
</attribute>
|
||||
</widget>
|
||||
<widget class="TabTools_ChartRecommend" name="tab_4">
|
||||
<attribute name="title">
|
||||
<string>tab.chartRecommend</string>
|
||||
</attribute>
|
||||
</widget>
|
||||
<widget class="TabTools_Andreal" name="tab_3">
|
||||
<attribute name="title">
|
||||
<string>tab.andreal</string>
|
||||
@ -57,6 +62,12 @@
|
||||
<header>ui.implements.tabs.tabTools.tabTools_Andreal</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>TabTools_ChartRecommend</class>
|
||||
<extends>QWidget</extends>
|
||||
<header>ui.implements.tabs.tabTools.tabTools_ChartRecommend</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
|
@ -19,6 +19,7 @@ from PySide6.QtWidgets import (QApplication, QSizePolicy, QTabWidget, QVBoxLayou
|
||||
QWidget)
|
||||
|
||||
from ui.implements.tabs.tabTools.tabTools_Andreal import TabTools_Andreal
|
||||
from ui.implements.tabs.tabTools.tabTools_ChartRecommend import TabTools_ChartRecommend
|
||||
from ui.implements.tabs.tabTools.tabTools_InfoLookup import TabTools_InfoLookup
|
||||
from ui.implements.tabs.tabTools.tabTools_StepCalculator import TabTools_StepCalculator
|
||||
|
||||
@ -38,6 +39,9 @@ class Ui_TabToolsEntry(object):
|
||||
self.tab_2 = TabTools_StepCalculator()
|
||||
self.tab_2.setObjectName(u"tab_2")
|
||||
self.tabWidget.addTab(self.tab_2, "")
|
||||
self.tab_4 = TabTools_ChartRecommend()
|
||||
self.tab_4.setObjectName(u"tab_4")
|
||||
self.tabWidget.addTab(self.tab_4, "")
|
||||
self.tab_3 = TabTools_Andreal()
|
||||
self.tab_3.setObjectName(u"tab_3")
|
||||
self.tabWidget.addTab(self.tab_3, "")
|
||||
@ -56,6 +60,7 @@ class Ui_TabToolsEntry(object):
|
||||
def retranslateUi(self, TabToolsEntry):
|
||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), QCoreApplication.translate("TabToolsEntry", u"tab.infoLookup", None))
|
||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), QCoreApplication.translate("TabToolsEntry", u"tab.stepCalculator", None))
|
||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_4), QCoreApplication.translate("TabToolsEntry", u"tab.chartRecommend", None))
|
||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), QCoreApplication.translate("TabToolsEntry", u"tab.andreal", None))
|
||||
pass
|
||||
# retranslateUi
|
||||
|
@ -222,7 +222,7 @@ class OcrQueueModel(QAbstractListModel):
|
||||
index = self.index(row, 0)
|
||||
imagePath: str = index.data(self.ImagePathRole)
|
||||
qImage: QImage = index.data(self.ImageQImageRole)
|
||||
logger.info(f"update request: {result}@row{row}")
|
||||
logger.debug(f"update request: {result}@row{row}")
|
||||
processOcrResultFunc = index.data(self.ProcessOcrResultFuncRole)
|
||||
|
||||
chart, scoreInsert = processOcrResultFunc(imagePath, qImage, result)
|
||||
@ -263,7 +263,13 @@ class OcrQueueModel(QAbstractListModel):
|
||||
index = self.index(row, 0)
|
||||
chart = index.data(self.ChartRole)
|
||||
score = index.data(self.ScoreRole)
|
||||
if isinstance(chart, Chart) and isinstance(score, Score):
|
||||
if (
|
||||
isinstance(chart, Chart)
|
||||
and isinstance(score, Score)
|
||||
and chart.notes is not None
|
||||
and score.pure is not None
|
||||
and score.far is not None
|
||||
):
|
||||
scoreRange = calculate_score_range(chart.notes, score.pure, score.far)
|
||||
scoreValidateOk = scoreRange[0] <= score.score <= scoreRange[1]
|
||||
self.setData(index, scoreValidateOk, self.ScoreValidateOkRole)
|
||||
|
@ -93,13 +93,18 @@ class ChartDelegate(TextSegmentDelegate):
|
||||
[{self.TextRole: "Chart Invalid", self.ColorRole: QColor("#ff0000")}]
|
||||
]
|
||||
|
||||
chartConstantString = (
|
||||
f"{chart.constant / 10:.1f}"
|
||||
if chart.constant is not None and chart.constant > 0
|
||||
else "?"
|
||||
)
|
||||
return [
|
||||
[
|
||||
{self.TextRole: f"{chart.title}"},
|
||||
],
|
||||
[
|
||||
{
|
||||
self.TextRole: f"{rating_class_to_text(chart.rating_class)} {chart.constant / 10:.1f}",
|
||||
self.TextRole: f"{rating_class_to_text(chart.rating_class)} {chartConstantString}",
|
||||
self.ColorRole: self.RatingClassColors[chart.rating_class],
|
||||
},
|
||||
],
|
||||
|
@ -96,7 +96,13 @@ class ScoreDelegate(TextSegmentDelegate):
|
||||
score = self.getScore(index)
|
||||
chart = self.getChart(index)
|
||||
|
||||
if isinstance(score, Score) and isinstance(chart, Chart):
|
||||
if (
|
||||
isinstance(score, Score)
|
||||
and isinstance(chart, Chart)
|
||||
and chart.notes is not None
|
||||
and score.pure is not None
|
||||
and score.far is not None
|
||||
):
|
||||
scoreRange = calculate_score_range(chart.notes, score.pure, score.far)
|
||||
return scoreRange[0] <= score.score <= scoreRange[1]
|
||||
|
||||
|
@ -29,13 +29,27 @@ class DbScoreTableModel(DbTableModel):
|
||||
def syncDb(self):
|
||||
newScores = self._db.get_scores()
|
||||
newScores = sorted(newScores, key=lambda x: x.id)
|
||||
newCharts = [
|
||||
self._db.get_chart(score.song_id, score.rating_class) for score in newScores
|
||||
]
|
||||
newCharts = []
|
||||
for score in newScores:
|
||||
dbChart = self._db.get_chart(score.song_id, score.rating_class)
|
||||
newCharts.append(
|
||||
dbChart
|
||||
if isinstance(dbChart, Chart)
|
||||
else Chart(
|
||||
song_id=score.song_id,
|
||||
rating_class=score.rating_class,
|
||||
title=score.song_id,
|
||||
set="unknown",
|
||||
)
|
||||
)
|
||||
newPtts = []
|
||||
for chart, score in zip(newCharts, newScores):
|
||||
if isinstance(chart, Chart) and isinstance(score, Score):
|
||||
newPtts.append(calculate_play_rating(chart.constant / 10, score.score))
|
||||
if (
|
||||
isinstance(chart, Chart)
|
||||
and chart.constant is not None
|
||||
and isinstance(score, Score)
|
||||
):
|
||||
newPtts.append(calculate_play_rating(chart.constant, score.score))
|
||||
else:
|
||||
newPtts.append(None)
|
||||
|
||||
@ -103,10 +117,11 @@ class DbScoreTableModel(DbTableModel):
|
||||
elif index.column() == 2 and role in [self.ChartRole, self.ScoreRole]:
|
||||
return self.__items[index.row()][role]
|
||||
elif index.column() == 3:
|
||||
potential = self.__items[index.row()][self.PttRole]
|
||||
if role == Qt.ItemDataRole.DisplayRole:
|
||||
return f"{self.__items[index.row()][self.PttRole]:.3f}"
|
||||
return f"{potential:.3f}" if potential is not None else "-"
|
||||
elif role == self.PttRole:
|
||||
return self.__items[index.row()][self.PttRole]
|
||||
return potential
|
||||
return None
|
||||
|
||||
def setData(self, index, value, role):
|
||||
@ -165,30 +180,35 @@ class DbScoreTableSortFilterProxyModel(QSortFilterProxyModel):
|
||||
Sort_C2_ScoreRole = Qt.ItemDataRole.UserRole + 75
|
||||
Sort_C2_TimeRole = Qt.ItemDataRole.UserRole + 76
|
||||
|
||||
def lessThan(self, source_left, source_right) -> bool:
|
||||
if source_left.column() != source_right.column():
|
||||
def lessThan(self, sourceLeft, sourceRight) -> bool:
|
||||
if sourceLeft.column() != sourceRight.column():
|
||||
return
|
||||
|
||||
column = source_left.column()
|
||||
column = sourceLeft.column()
|
||||
if column == 0:
|
||||
return source_left.data(DbScoreTableModel.IdRole) < source_right.data(
|
||||
return sourceLeft.data(DbScoreTableModel.IdRole) < sourceRight.data(
|
||||
DbScoreTableModel.IdRole
|
||||
)
|
||||
elif column == 2:
|
||||
score_left = source_left.data(DbScoreTableModel.ScoreRole)
|
||||
score_right = source_right.data(DbScoreTableModel.ScoreRole)
|
||||
if isinstance(score_left, Score) and isinstance(score_right, Score):
|
||||
scoreLeft = sourceLeft.data(DbScoreTableModel.ScoreRole)
|
||||
scoreRight = sourceRight.data(DbScoreTableModel.ScoreRole)
|
||||
if isinstance(scoreLeft, Score) and isinstance(scoreRight, Score):
|
||||
if self.sortRole() == self.Sort_C2_ScoreRole:
|
||||
return score_left.score < score_right.score
|
||||
return scoreLeft.score < scoreRight.score
|
||||
elif self.sortRole() == self.Sort_C2_TimeRole:
|
||||
if score_left.date and score_right.date:
|
||||
return score_left.date < score_right.date
|
||||
elif score_left.date:
|
||||
if scoreLeft.date and scoreRight.date:
|
||||
return scoreLeft.date < scoreRight.date
|
||||
elif scoreLeft.date:
|
||||
return False
|
||||
else:
|
||||
return True
|
||||
elif column == 3:
|
||||
return source_left.data(DbScoreTableModel.PttRole) < source_right.data(
|
||||
DbScoreTableModel.PttRole
|
||||
)
|
||||
return super().lessThan(source_left, source_right)
|
||||
pttLeft = sourceLeft.data(DbScoreTableModel.PttRole)
|
||||
pttRight = sourceRight.data(DbScoreTableModel.PttRole)
|
||||
if pttLeft and pttRight:
|
||||
return pttLeft < pttRight
|
||||
elif pttLeft:
|
||||
return False
|
||||
else:
|
||||
return True
|
||||
return super().lessThan(sourceLeft, sourceRight)
|
||||
|
@ -25,7 +25,9 @@ DEVICES_JSON_FILE = "Ocr/DevicesJsonFile"
|
||||
DEVICE_UUID = "Ocr/DeviceUuid"
|
||||
TESSERACT_FILE = "Ocr/TesseractFile"
|
||||
KNN_MODEL_FILE = "Ocr/KnnModelFile"
|
||||
B30_KNN_MODEL_FILE = "Ocr/B30KnnModelFile"
|
||||
SIFT_DATABASE_FILE = "Ocr/SiftDatabaseFile"
|
||||
PHASH_DATABASE_FILE = "Ocr/PHashDatabaseFile"
|
||||
|
||||
ANDREAL_FOLDER = "Andreal/AndrealFolder"
|
||||
ANDREAL_EXECUTABLE = "Andreal/AndrealExecutable"
|
||||
@ -104,6 +106,15 @@ class Settings(QSettings, metaclass=QObjectSingleton):
|
||||
def resetKnnModelFile(self):
|
||||
self._resetStrItem(KNN_MODEL_FILE)
|
||||
|
||||
def b30KnnModelFile(self):
|
||||
return self._strItem(B30_KNN_MODEL_FILE)
|
||||
|
||||
def setB30KnnModelFile(self, value: str):
|
||||
self._setStrItem(B30_KNN_MODEL_FILE, value)
|
||||
|
||||
def resetB30KnnModelFile(self):
|
||||
self._resetStrItem(B30_KNN_MODEL_FILE)
|
||||
|
||||
def siftDatabaseFile(self):
|
||||
return self._strItem(SIFT_DATABASE_FILE)
|
||||
|
||||
@ -113,6 +124,15 @@ class Settings(QSettings, metaclass=QObjectSingleton):
|
||||
def resetSiftDatabaseFile(self):
|
||||
self._resetStrItem(SIFT_DATABASE_FILE)
|
||||
|
||||
def phashDatabaseFile(self):
|
||||
return self._strItem(PHASH_DATABASE_FILE)
|
||||
|
||||
def setPHashDatabaseFile(self, value: str):
|
||||
self._setStrItem(PHASH_DATABASE_FILE, value)
|
||||
|
||||
def resetPHashDatabaseFile(self):
|
||||
self._resetStrItem(PHASH_DATABASE_FILE)
|
||||
|
||||
def andrealFolder(self):
|
||||
return self._strItem(ANDREAL_FOLDER)
|
||||
|
||||
|
@ -10,6 +10,9 @@ def keepWidgetInScreen(widget: QWidget, screen: QScreen = None):
|
||||
# for why using frameGeometry.width() / frameGeometry.height()
|
||||
# instead of width() / height().
|
||||
|
||||
# https://stackoverflow.com/questions/49700394/qt-unable-to-set-geometry
|
||||
widget.adjustSize()
|
||||
|
||||
screen = screen or QGuiApplication.primaryScreen()
|
||||
screenAvailableGeometry = screen.availableGeometry()
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import logging
|
||||
|
||||
from arcaea_offline.database import Database
|
||||
from arcaea_offline.models import Score
|
||||
from arcaea_offline.models import Chart, Score
|
||||
from arcaea_offline_ocr.b30.chieri.v4.ocr import ChieriBotV4Ocr
|
||||
from arcaea_offline_ocr.b30.shared import B30OcrResultItem
|
||||
from PySide6.QtGui import QImage
|
||||
@ -49,4 +49,12 @@ def b30ResultToScore(_: None, qImage: QImage, result: B30OcrResultItem):
|
||||
comment="B30 OCR",
|
||||
)
|
||||
|
||||
if not chart:
|
||||
chart = Chart(
|
||||
song_id=song_id,
|
||||
rating_class=result.rating_class,
|
||||
title=song_id,
|
||||
constant=0.0,
|
||||
)
|
||||
|
||||
return (chart, score)
|
||||
|
@ -2,11 +2,12 @@ import contextlib
|
||||
import logging
|
||||
from typing import Tuple
|
||||
|
||||
import cv2
|
||||
from arcaea_offline.database import Database
|
||||
from arcaea_offline.models import Chart, Score
|
||||
from arcaea_offline_ocr.device.shared import DeviceOcrResult
|
||||
from arcaea_offline_ocr.device.v2.ocr import DeviceV2Ocr
|
||||
from arcaea_offline_ocr.device.v2.rois import DeviceV2AutoRois, DeviceV2Rois
|
||||
from arcaea_offline_ocr.device.v2 import DeviceV2AutoRois, DeviceV2Ocr, DeviceV2Rois
|
||||
from arcaea_offline_ocr.device.v2.sizes import SizesV1, SizesV2
|
||||
from arcaea_offline_ocr.utils import imread_unicode
|
||||
from PySide6.QtCore import QDateTime, QFileInfo
|
||||
|
||||
@ -18,17 +19,25 @@ import exif
|
||||
|
||||
|
||||
class TabDeviceV2OcrRunnable(OcrRunnable):
|
||||
def __init__(self, imagePath, device, knnModel, siftDb):
|
||||
def __init__(self, imagePath, device, knnModel, phashDb, *, sizesV2: bool):
|
||||
super().__init__()
|
||||
self.imagePath = imagePath
|
||||
self.device = device
|
||||
self.knnModel = knnModel
|
||||
self.siftDb = siftDb
|
||||
self.phashDb = phashDb
|
||||
self.sizesV2 = sizesV2
|
||||
|
||||
def run(self):
|
||||
try:
|
||||
rois = DeviceV2Rois(self.device, imread_unicode(self.imagePath))
|
||||
ocr = DeviceV2Ocr(self.knnModel, self.siftDb)
|
||||
rois = DeviceV2Rois(
|
||||
self.device, imread_unicode(self.imagePath, cv2.IMREAD_COLOR)
|
||||
)
|
||||
rois.sizes = (
|
||||
SizesV2(self.device.factor)
|
||||
if self.sizesV2
|
||||
else SizesV1(self.device.factor)
|
||||
)
|
||||
ocr = DeviceV2Ocr(self.knnModel, self.phashDb)
|
||||
result = ocr.ocr(rois)
|
||||
self.signals.resultReady.emit(result)
|
||||
except Exception:
|
||||
@ -38,16 +47,19 @@ class TabDeviceV2OcrRunnable(OcrRunnable):
|
||||
|
||||
|
||||
class TabDeviceV2AutoRoisOcrRunnable(OcrRunnable):
|
||||
def __init__(self, imagePath, knnModel, siftDb):
|
||||
def __init__(self, imagePath, knnModel, phashDb, *, sizesV2: bool):
|
||||
super().__init__()
|
||||
self.imagePath = imagePath
|
||||
self.knnModel = knnModel
|
||||
self.siftDb = siftDb
|
||||
self.phashDb = phashDb
|
||||
self.sizesV2 = sizesV2
|
||||
|
||||
def run(self):
|
||||
try:
|
||||
rois = DeviceV2AutoRois(imread_unicode(self.imagePath))
|
||||
ocr = DeviceV2Ocr(self.knnModel, self.siftDb)
|
||||
rois = DeviceV2AutoRois(imread_unicode(self.imagePath, cv2.IMREAD_COLOR))
|
||||
factor = rois.sizes.factor
|
||||
rois.sizes = SizesV2(factor) if self.sizesV2 else SizesV1(factor)
|
||||
ocr = DeviceV2Ocr(self.knnModel, self.phashDb)
|
||||
result = ocr.ocr(rois)
|
||||
self.signals.resultReady.emit(result)
|
||||
except Exception:
|
||||
@ -85,4 +97,11 @@ class ScoreConverter:
|
||||
comment=f"OCR {QFileInfo(imagePath).fileName()}",
|
||||
)
|
||||
chart = db.get_chart(score.song_id, score.rating_class)
|
||||
if not chart:
|
||||
chart = Chart(
|
||||
song_id=result.song_id,
|
||||
rating_class=result.rating_class,
|
||||
title=result.song_id,
|
||||
constant=0.0,
|
||||
)
|
||||
return (chart, score)
|
||||
|
@ -2,6 +2,7 @@ from PySide6.QtCore import Signal
|
||||
from PySide6.QtWidgets import QWidget
|
||||
|
||||
from ui.designer.components.chartAndScoreInput_ui import Ui_ChartAndScoreInput
|
||||
from ui.extends.shared.language import LanguageChangeEventFilter
|
||||
from ui.implements.components.songIdSelector import SongIdSelectorMode
|
||||
|
||||
|
||||
@ -12,6 +13,9 @@ class ChartAndScoreInput(Ui_ChartAndScoreInput, QWidget):
|
||||
super().__init__(parent)
|
||||
self.setupUi(self)
|
||||
|
||||
self.languageChangeEventFilter = LanguageChangeEventFilter(self)
|
||||
self.installEventFilter(self.languageChangeEventFilter)
|
||||
|
||||
self.chartSelector.valueChanged.connect(self.updateScoreEditorChart)
|
||||
self.scoreEditor.accepted.connect(self.commit)
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
from PySide6.QtCore import QDir, QFileInfo, Qt, Signal, Slot
|
||||
from PySide6.QtGui import QDragEnterEvent, QDragLeaveEvent, QDropEvent
|
||||
from PySide6.QtWidgets import QFileDialog, QWidget
|
||||
|
||||
from ui.designer.components.fileSelector_ui import Ui_FileSelector
|
||||
@ -28,6 +29,26 @@ class FileSelector(Ui_FileSelector, QWidget):
|
||||
|
||||
self.settingsKey = None
|
||||
|
||||
self.setAcceptDrops(True)
|
||||
|
||||
def dragEnterEvent(self, event: QDragEnterEvent):
|
||||
if event.mimeData().hasUrls() and event.mimeData().urls()[0].isLocalFile():
|
||||
event.accept()
|
||||
self.elidedLabel.setText(
|
||||
f'Drop "{QFileInfo(event.mimeData().urls()[0].toLocalFile()).fileName()}"?'
|
||||
)
|
||||
return
|
||||
return super().dragEnterEvent(event)
|
||||
|
||||
def dragLeaveEvent(self, event: QDragLeaveEvent):
|
||||
self.updateLabel()
|
||||
return super().dragLeaveEvent(event)
|
||||
|
||||
def dropEvent(self, event: QDropEvent):
|
||||
url = event.mimeData().urls()[0]
|
||||
file = url.toLocalFile()
|
||||
self.selectFile(file)
|
||||
|
||||
def getOpenFileNames(self):
|
||||
selectedFiles, filter = QFileDialog.getOpenFileNames(
|
||||
self,
|
||||
|
@ -151,12 +151,19 @@ class ScoreEditor(Ui_ScoreEditor, QWidget):
|
||||
if score := self.value():
|
||||
texts = [
|
||||
f"({score.song_id}, {score.rating_class}), Score {score.score}",
|
||||
f"PURE {score.pure}, FAR {score.far}, LOST {score.lost}, MR {score.max_recall}",
|
||||
f"Date {score.date}, Clear type {score.clear_type}, Modifier {score.modifier}",
|
||||
f"PURE {score.pure}, FAR {score.far}, LOST {score.lost}",
|
||||
f"MAX RECALL {score.max_recall}",
|
||||
f"Date {score.date}",
|
||||
f"Clear type {score.clear_type}",
|
||||
f"Modifier {score.modifier}",
|
||||
]
|
||||
self.previewLabel.setText("<br>".join(texts))
|
||||
self.previewLabel.setText(
|
||||
f"{score.score}, P{score.pure} F{score.far} L{score.lost}, MR {score.max_recall}"
|
||||
)
|
||||
self.previewLabel.setToolTip("<br>".join(texts))
|
||||
else:
|
||||
self.previewLabel.setText("None")
|
||||
self.previewLabel.setToolTip("")
|
||||
|
||||
def validateBeforeAccept(self):
|
||||
return self.__validateBeforeAccept
|
||||
|
@ -48,9 +48,6 @@ class SongIdSelector(Ui_SongIdSelector, QWidget):
|
||||
|
||||
self.mode = SongIdSelectorMode.SongId
|
||||
|
||||
databaseUpdateSignals.songDataUpdated.connect(self.updateDatabase)
|
||||
|
||||
self.fillPackComboBox()
|
||||
self.packComboBox.setCurrentIndex(-1)
|
||||
self.songIdComboBox.setCurrentIndex(-1)
|
||||
|
||||
@ -70,6 +67,9 @@ class SongIdSelector(Ui_SongIdSelector, QWidget):
|
||||
self.packComboBox.currentIndexChanged.connect(self.valueChanged)
|
||||
self.songIdComboBox.currentIndexChanged.connect(self.valueChanged)
|
||||
|
||||
self.updateDatabase()
|
||||
databaseUpdateSignals.songDataUpdated.connect(self.updateDatabase)
|
||||
|
||||
def setMode(self, mode: SongIdSelectorMode):
|
||||
self.mode = mode
|
||||
|
||||
|
@ -1,7 +1,8 @@
|
||||
from PySide6.QtCore import QCoreApplication, Qt
|
||||
from PySide6.QtCore import Qt
|
||||
from PySide6.QtWidgets import QLabel, QPushButton, QWidget
|
||||
|
||||
from ui.designer.settings.settingsBaseWidget_ui import Ui_SettingsBaseWidget
|
||||
from ui.extends.shared.language import LanguageChangeEventFilter
|
||||
from ui.extends.shared.settings import Settings
|
||||
|
||||
|
||||
@ -10,6 +11,9 @@ class SettingsBaseWidget(Ui_SettingsBaseWidget, QWidget):
|
||||
super().__init__(parent)
|
||||
self.settings = Settings()
|
||||
|
||||
self.languageChangeEventFilter = LanguageChangeEventFilter(self)
|
||||
self.installEventFilter(self.languageChangeEventFilter)
|
||||
|
||||
def setTitle(self, title: str):
|
||||
self.titleLabel.setText(title)
|
||||
|
||||
|
@ -45,6 +45,17 @@ class SettingsOcr(SettingsBaseWidget):
|
||||
self.knnModelFileResetButton,
|
||||
)
|
||||
|
||||
if self.settings.b30KnnModelFile():
|
||||
self.b30KnnModelFileValueWidget.selectFile(self.settings.b30KnnModelFile())
|
||||
self.b30KnnModelFileValueWidget.filesSelected.connect(self.setB30KnnModelFile)
|
||||
self.b30KnnModelFileResetButton.clicked.connect(self.resetB30KnnModelFile)
|
||||
self.insertItem(
|
||||
"b30KnnModelFile",
|
||||
self.b30KnnModelFileLabel,
|
||||
self.b30KnnModelFileValueWidget,
|
||||
self.b30KnnModelFileResetButton,
|
||||
)
|
||||
|
||||
if self.settings.siftDatabaseFile():
|
||||
self.siftDatabaseFileValueWidget.selectFile(
|
||||
self.settings.siftDatabaseFile()
|
||||
@ -58,6 +69,21 @@ class SettingsOcr(SettingsBaseWidget):
|
||||
self.siftDatabaseFileResetButton,
|
||||
)
|
||||
|
||||
if self.settings.phashDatabaseFile():
|
||||
self.phashDatabaseFileValueWidget.selectFile(
|
||||
self.settings.phashDatabaseFile()
|
||||
)
|
||||
self.phashDatabaseFileValueWidget.filesSelected.connect(
|
||||
self.setPHashDatabaseFile
|
||||
)
|
||||
self.phashDatabaseFileResetButton.clicked.connect(self.resetPHashDatabaseFile)
|
||||
self.insertItem(
|
||||
"phashDatabaseFile",
|
||||
self.phashDatabaseFileLabel,
|
||||
self.phashDatabaseFileValueWidget,
|
||||
self.phashDatabaseFileResetButton,
|
||||
)
|
||||
|
||||
def setDevicesJson(self):
|
||||
selectedFile = self.devicesJsonValueWidget.selectedFiles()
|
||||
if selectedFile and selectedFile[0]:
|
||||
@ -79,8 +105,7 @@ class SettingsOcr(SettingsBaseWidget):
|
||||
self.settings.resetDevicesJsonFile()
|
||||
|
||||
def setDeviceUuid(self):
|
||||
device = self.deviceUuidValueWidget.currentData()
|
||||
if device:
|
||||
if device := self.deviceUuidValueWidget.currentData():
|
||||
self.settings.setDeviceUuid(device.uuid)
|
||||
|
||||
def resetDeviceUuid(self):
|
||||
@ -97,6 +122,16 @@ class SettingsOcr(SettingsBaseWidget):
|
||||
self.knnModelFileValueWidget.reset()
|
||||
self.settings.resetKnnModelFile()
|
||||
|
||||
def setB30KnnModelFile(self):
|
||||
selectedFile = self.b30KnnModelFileValueWidget.selectedFiles()
|
||||
if selectedFile and selectedFile[0]:
|
||||
file = selectedFile[0]
|
||||
self.settings.setB30KnnModelFile(file)
|
||||
|
||||
def resetB30KnnModelFile(self):
|
||||
self.b30KnnModelFileValueWidget.reset()
|
||||
self.settings.resetB30KnnModelFile()
|
||||
|
||||
def setSiftDatabaseFile(self):
|
||||
selectedFile = self.siftDatabaseFileValueWidget.selectedFiles()
|
||||
if selectedFile and selectedFile[0]:
|
||||
@ -107,6 +142,16 @@ class SettingsOcr(SettingsBaseWidget):
|
||||
self.siftDatabaseFileValueWidget.reset()
|
||||
self.settings.resetSiftDatabaseFile()
|
||||
|
||||
def setPHashDatabaseFile(self):
|
||||
selectedFile = self.phashDatabaseFileValueWidget.selectedFiles()
|
||||
if selectedFile and selectedFile[0]:
|
||||
file = selectedFile[0]
|
||||
self.settings.setPHashDatabaseFile(file)
|
||||
|
||||
def resetPHashDatabaseFile(self):
|
||||
self.phashDatabaseFileValueWidget.reset()
|
||||
self.settings.resetPHashDatabaseFile()
|
||||
|
||||
def setupUi(self, *args):
|
||||
self.devicesJsonLabel = QLabel(self)
|
||||
self.devicesJsonValueWidget = FileSelector(self)
|
||||
@ -120,10 +165,18 @@ class SettingsOcr(SettingsBaseWidget):
|
||||
self.knnModelFileValueWidget = FileSelector(self)
|
||||
self.knnModelFileResetButton = QPushButton(self)
|
||||
|
||||
self.b30KnnModelFileLabel = QLabel(self)
|
||||
self.b30KnnModelFileValueWidget = FileSelector(self)
|
||||
self.b30KnnModelFileResetButton = QPushButton(self)
|
||||
|
||||
self.siftDatabaseFileLabel = QLabel(self)
|
||||
self.siftDatabaseFileValueWidget = FileSelector(self)
|
||||
self.siftDatabaseFileResetButton = QPushButton(self)
|
||||
|
||||
self.phashDatabaseFileLabel = QLabel(self)
|
||||
self.phashDatabaseFileValueWidget = FileSelector(self)
|
||||
self.phashDatabaseFileResetButton = QPushButton(self)
|
||||
|
||||
super().setupUi(self)
|
||||
self.retranslateUi()
|
||||
|
||||
@ -142,6 +195,12 @@ class SettingsOcr(SettingsBaseWidget):
|
||||
self.knnModelFileLabel.setText(QCoreApplication.translate("Settings", "ocr.knnModelFile.label"))
|
||||
self.knnModelFileResetButton.setText(QCoreApplication.translate("Settings", "resetButton"))
|
||||
|
||||
self.b30KnnModelFileLabel.setText(QCoreApplication.translate("Settings", "ocr.b30KnnModelFile.label"))
|
||||
self.b30KnnModelFileResetButton.setText(QCoreApplication.translate("Settings", "resetButton"))
|
||||
|
||||
self.siftDatabaseFileLabel.setText(QCoreApplication.translate("Settings", "ocr.siftDatabaseFile.label"))
|
||||
self.siftDatabaseFileResetButton.setText(QCoreApplication.translate("Settings", "resetButton"))
|
||||
|
||||
self.phashDatabaseFileLabel.setText(QCoreApplication.translate("Settings", "ocr.phashDatabaseFile.label"))
|
||||
self.phashDatabaseFileResetButton.setText(QCoreApplication.translate("Settings", "resetButton"))
|
||||
# fmt: on
|
||||
|
@ -1,8 +1,9 @@
|
||||
from PySide6.QtCore import QFile, Qt, Slot
|
||||
from PySide6.QtGui import QPixmap
|
||||
from PySide6.QtWidgets import QMessageBox, QWidget
|
||||
from PySide6.QtWidgets import QMessageBox, QTextBrowser, QWidget
|
||||
|
||||
from ui.designer.tabs.tabAbout_ui import Ui_TabAbout
|
||||
from ui.extends.shared.language import LanguageChangeEventFilter
|
||||
|
||||
|
||||
class TabAbout(Ui_TabAbout, QWidget):
|
||||
@ -10,6 +11,9 @@ class TabAbout(Ui_TabAbout, QWidget):
|
||||
super().__init__(parent)
|
||||
self.setupUi(self)
|
||||
|
||||
self.languageChangeEventFilter = LanguageChangeEventFilter(self)
|
||||
self.installEventFilter(self.languageChangeEventFilter)
|
||||
|
||||
logoPixmap = QPixmap(":/images/logo.png").scaled(
|
||||
300,
|
||||
300,
|
||||
@ -24,8 +28,25 @@ class TabAbout(Ui_TabAbout, QWidget):
|
||||
|
||||
@Slot()
|
||||
def on_versionInfoButton_clicked(self):
|
||||
textBrowser = QTextBrowser(self)
|
||||
textBrowser.setWindowFlag(Qt.WindowType.Dialog, True)
|
||||
textBrowser.setWindowTitle("version")
|
||||
versionFile = QFile(":/VERSION")
|
||||
versionFile.open(QFile.OpenModeFlag.ReadOnly)
|
||||
versionText = str(versionFile.readAll(), encoding="utf-8")
|
||||
versionFile.close()
|
||||
QMessageBox.information(self, None, versionText)
|
||||
textBrowser.setText(versionText)
|
||||
textBrowser.show()
|
||||
|
||||
@Slot()
|
||||
def on_licenseButton_clicked(self):
|
||||
textBrowser = QTextBrowser(self)
|
||||
textBrowser.setWindowFlag(Qt.WindowType.Dialog, True)
|
||||
textBrowser.setWindowTitle("LICENSE")
|
||||
licenseFile = QFile(":/LICENSE")
|
||||
licenseFile.open(QFile.OpenModeFlag.ReadOnly)
|
||||
licenseText = str(licenseFile.readAll(), encoding="utf-8")
|
||||
licenseFile.close()
|
||||
textBrowser.setText(licenseText)
|
||||
textBrowser.setMinimumSize(500, 400)
|
||||
textBrowser.show()
|
||||
|
@ -4,6 +4,7 @@ from PySide6.QtWidgets import QMessageBox
|
||||
|
||||
from ui.extends.shared.delegates.chartDelegate import ChartDelegate
|
||||
from ui.extends.shared.delegates.scoreDelegate import ScoreDelegate
|
||||
from ui.extends.shared.language import LanguageChangeEventFilter
|
||||
from ui.extends.shared.models.tables.b30 import (
|
||||
DbB30TableModel,
|
||||
DbB30TableSortFilterProxyModel,
|
||||
@ -34,6 +35,10 @@ class TableScoreDelegate(ScoreDelegate):
|
||||
class DbB30TableViewer(DbTableViewer):
|
||||
def __init__(self, parent=None):
|
||||
super().__init__(parent)
|
||||
|
||||
self.languageChangeEventFilter = LanguageChangeEventFilter(self)
|
||||
self.installEventFilter(self.languageChangeEventFilter)
|
||||
|
||||
self.tableView.verticalHeader().setVisible(True)
|
||||
|
||||
self.tableModel = DbB30TableModel(self)
|
||||
|
@ -18,6 +18,7 @@ from PySide6.QtWidgets import QFileDialog, QMessageBox, QWidget
|
||||
|
||||
from ui.designer.tabs.tabDb.tabDb_Manage_ui import Ui_TabDb_Manage
|
||||
from ui.extends.shared.database import databaseUpdateSignals
|
||||
from ui.extends.shared.language import LanguageChangeEventFilter
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@ -27,6 +28,9 @@ class TabDb_Manage(Ui_TabDb_Manage, QWidget):
|
||||
super().__init__(parent)
|
||||
self.setupUi(self)
|
||||
|
||||
self.languageChangeEventFilter = LanguageChangeEventFilter(self)
|
||||
self.installEventFilter(self.languageChangeEventFilter)
|
||||
|
||||
@Slot()
|
||||
def on_syncArcSongDbButton_clicked(self):
|
||||
dbFile, filter = QFileDialog.getOpenFileName(
|
||||
|
@ -5,6 +5,7 @@ from PySide6.QtWidgets import QMessageBox
|
||||
|
||||
from ui.extends.shared.delegates.chartDelegate import ChartDelegate
|
||||
from ui.extends.shared.delegates.scoreDelegate import ScoreDelegate
|
||||
from ui.extends.shared.language import LanguageChangeEventFilter
|
||||
from ui.extends.shared.models.tables.score import (
|
||||
DbScoreTableModel,
|
||||
DbScoreTableSortFilterProxyModel,
|
||||
@ -33,6 +34,9 @@ class DbScoreTableViewer(DbTableViewer):
|
||||
def __init__(self, parent=None):
|
||||
super().__init__(parent)
|
||||
|
||||
self.languageChangeEventFilter = LanguageChangeEventFilter(self)
|
||||
self.installEventFilter(self.languageChangeEventFilter)
|
||||
|
||||
self.tableModel = DbScoreTableModel(self)
|
||||
self.tableProxyModel = DbScoreTableSortFilterProxyModel(self)
|
||||
self.tableProxyModel.setSourceModel(self.tableModel)
|
||||
|
@ -2,6 +2,7 @@ from PySide6.QtCore import QCoreApplication
|
||||
from PySide6.QtWidgets import QWidget
|
||||
|
||||
from ui.designer.tabs.tabDbEntry_ui import Ui_TabDbEntry
|
||||
from ui.extends.shared.language import LanguageChangeEventFilter
|
||||
from ui.implements.tabs.tabDb.tabDb_B30TableViewer import DbB30TableViewer
|
||||
from ui.implements.tabs.tabDb.tabDb_ScoreTableViewer import DbScoreTableViewer
|
||||
|
||||
@ -11,6 +12,9 @@ class TabDbEntry(Ui_TabDbEntry, QWidget):
|
||||
super().__init__(parent)
|
||||
self.setupUi(self)
|
||||
|
||||
self.languageChangeEventFilter = LanguageChangeEventFilter(self)
|
||||
self.installEventFilter(self.languageChangeEventFilter)
|
||||
|
||||
self.tabWidget.addTab(
|
||||
DbScoreTableViewer(self),
|
||||
QCoreApplication.translate("TabDbEntry", "tab.scoreTableViewer"),
|
||||
|
@ -2,12 +2,17 @@ from arcaea_offline.database import Database
|
||||
from PySide6.QtWidgets import QWidget
|
||||
|
||||
from ui.designer.tabs.tabInputScore_ui import Ui_TabInputScore
|
||||
from ui.extends.shared.language import LanguageChangeEventFilter
|
||||
|
||||
|
||||
class TabInputScore(Ui_TabInputScore, QWidget):
|
||||
def __init__(self, parent=None):
|
||||
super().__init__(parent)
|
||||
self.setupUi(self)
|
||||
|
||||
self.languageChangeEventFilter = LanguageChangeEventFilter(self)
|
||||
self.installEventFilter(self.languageChangeEventFilter)
|
||||
|
||||
self.chartAndScoreInput.scoreCommited.connect(self.commit)
|
||||
|
||||
def commit(self):
|
||||
|
@ -1,8 +1,8 @@
|
||||
import logging
|
||||
from pathlib import Path
|
||||
|
||||
import cv2
|
||||
from arcaea_offline_ocr.b30.chieri.v4.ocr import ChieriBotV4Ocr
|
||||
from arcaea_offline_ocr.phash_db import ImagePHashDatabase
|
||||
from arcaea_offline_ocr.sift_db import SIFTDatabase
|
||||
from arcaea_offline_ocr.utils import imread_unicode
|
||||
from PySide6.QtCore import Signal, Slot
|
||||
@ -11,7 +11,12 @@ from PySide6.QtWidgets import QWidget
|
||||
from ui.designer.tabs.tabOcr.tabOcr_B30_ui import Ui_TabOcr_B30
|
||||
from ui.extends.components.ocrQueue import OcrQueueModel
|
||||
from ui.extends.shared.cv2_utils import cv2BgrMatToQImage, qImageToCvMatBgr
|
||||
from ui.extends.shared.settings import KNN_MODEL_FILE, SIFT_DATABASE_FILE, Settings
|
||||
from ui.extends.shared.language import LanguageChangeEventFilter
|
||||
from ui.extends.shared.settings import (
|
||||
B30_KNN_MODEL_FILE,
|
||||
KNN_MODEL_FILE,
|
||||
PHASH_DATABASE_FILE,
|
||||
)
|
||||
from ui.extends.tabs.tabOcr.tabOcr_B30 import ChieriV4OcrRunnable, b30ResultToScore
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@ -24,6 +29,9 @@ class TabOcr_B30(Ui_TabOcr_B30, QWidget):
|
||||
super().__init__(parent)
|
||||
self.setupUi(self)
|
||||
|
||||
self.languageChangeEventFilter = LanguageChangeEventFilter(self)
|
||||
self.installEventFilter(self.languageChangeEventFilter)
|
||||
|
||||
self.b30TypeComboBox.addItem("ChieriV4", "chieri_v4")
|
||||
self.b30TypeComboBox.setCurrentIndex(0)
|
||||
self.b30TypeComboBox.setEnabled(False)
|
||||
@ -31,10 +39,7 @@ class TabOcr_B30(Ui_TabOcr_B30, QWidget):
|
||||
self.imageSelector.filesSelected.connect(self.imageSelected)
|
||||
self.knnModelSelector.filesSelected.connect(self.knnModelSelected)
|
||||
self.b30KnnModelSelector.filesSelected.connect(self.b30KnnModelSelected)
|
||||
self.siftDatabaseSelector.filesSelected.connect(self.siftDatabaseSelected)
|
||||
|
||||
self.knnModelSelector.connectSettings(KNN_MODEL_FILE)
|
||||
self.siftDatabaseSelector.connectSettings(SIFT_DATABASE_FILE)
|
||||
self.phashDatabaseSelector.filesSelected.connect(self.phashDatabaseSelected)
|
||||
|
||||
self.imagePath = None # for checking only
|
||||
self.img = None
|
||||
@ -42,16 +47,17 @@ class TabOcr_B30(Ui_TabOcr_B30, QWidget):
|
||||
self.paddle = None
|
||||
self.knnModel = None
|
||||
self.b30KnnModel = None
|
||||
self.siftDatabase = None
|
||||
# self.siftDatabase = None
|
||||
self.phashDatabase = None
|
||||
|
||||
self.ocr = None
|
||||
|
||||
self.tryPrepareOcr.connect(self.prepareOcr)
|
||||
|
||||
settings = Settings()
|
||||
logger.info("Applying default settings...")
|
||||
self.knnModelSelector.selectFile(settings.knnModelFile())
|
||||
self.siftDatabaseSelector.selectFile(settings.siftDatabaseFile())
|
||||
logger.info("Applying settings...")
|
||||
self.knnModelSelector.connectSettings(KNN_MODEL_FILE)
|
||||
self.b30KnnModelSelector.connectSettings(B30_KNN_MODEL_FILE)
|
||||
self.phashDatabaseSelector.connectSettings(PHASH_DATABASE_FILE)
|
||||
|
||||
self.ocrQueueModel = OcrQueueModel(self)
|
||||
self.ocrQueue.setModel(self.ocrQueueModel)
|
||||
@ -75,10 +81,10 @@ class TabOcr_B30(Ui_TabOcr_B30, QWidget):
|
||||
self.b30KnnModel = cv2.ml.KNearest.load(b30KnnModelPath)
|
||||
self.tryPrepareOcr.emit()
|
||||
|
||||
def siftDatabaseSelected(self):
|
||||
if selectedFiles := self.siftDatabaseSelector.selectedFiles():
|
||||
siftDatabasePath = selectedFiles[0]
|
||||
self.siftDatabase = SIFTDatabase(siftDatabasePath)
|
||||
def phashDatabaseSelected(self):
|
||||
if selectedFiles := self.phashDatabaseSelector.selectedFiles():
|
||||
phashDatabasePath = selectedFiles[0]
|
||||
self.phashDatabase = ImagePHashDatabase(phashDatabasePath)
|
||||
self.tryPrepareOcr.emit()
|
||||
|
||||
def prepareOcr(self):
|
||||
@ -91,13 +97,13 @@ class TabOcr_B30(Ui_TabOcr_B30, QWidget):
|
||||
not self.imagePath
|
||||
or not self.knnModel
|
||||
or not self.b30KnnModel
|
||||
or not self.siftDatabase
|
||||
or not self.phashDatabase
|
||||
):
|
||||
return
|
||||
|
||||
self.ocrQueueModel.clear()
|
||||
|
||||
ocr = ChieriBotV4Ocr(self.knnModel, self.b30KnnModel, self.siftDatabase)
|
||||
ocr = ChieriBotV4Ocr(self.knnModel, self.b30KnnModel, self.phashDatabase)
|
||||
ocr.set_factor(self.img)
|
||||
self.ocr = ocr
|
||||
|
||||
@ -113,7 +119,7 @@ class TabOcr_B30(Ui_TabOcr_B30, QWidget):
|
||||
not self.imagePath
|
||||
or not self.knnModel
|
||||
or not self.b30KnnModel
|
||||
or not self.siftDatabase
|
||||
or not self.phashDatabase
|
||||
):
|
||||
return
|
||||
|
||||
|
@ -5,16 +5,19 @@ import cv2
|
||||
# from arcaea_offline_ocr_device_creation_wizard.implements.wizard import Wizard
|
||||
from arcaea_offline_ocr.device.v1.definition import DeviceV1
|
||||
from arcaea_offline_ocr.device.v2.definition import DeviceV2
|
||||
from arcaea_offline_ocr.phash_db import ImagePHashDatabase
|
||||
from arcaea_offline_ocr.sift_db import SIFTDatabase
|
||||
from PySide6.QtCore import Qt, Slot
|
||||
from PySide6.QtWidgets import QApplication, QFileDialog, QWidget
|
||||
|
||||
from ui.designer.tabs.tabOcr.tabOcr_Device_ui import Ui_TabOcr_Device
|
||||
from ui.extends.components.ocrQueue import OcrQueueModel
|
||||
from ui.extends.shared.language import LanguageChangeEventFilter
|
||||
from ui.extends.shared.settings import (
|
||||
DEVICES_JSON_FILE,
|
||||
KNN_MODEL_FILE,
|
||||
SIFT_DATABASE_FILE,
|
||||
PHASH_DATABASE_FILE,
|
||||
TESSERACT_FILE,
|
||||
Settings,
|
||||
)
|
||||
from ui.extends.tabs.tabOcr.tabOcr_Device import (
|
||||
@ -32,21 +35,20 @@ class TabOcr_Device(Ui_TabOcr_Device, QWidget):
|
||||
self.setupUi(self)
|
||||
self.openWizardButton.setEnabled(False)
|
||||
|
||||
self.languageChangeEventFilter = LanguageChangeEventFilter(self)
|
||||
self.installEventFilter(self.languageChangeEventFilter)
|
||||
|
||||
self.deviceFileSelector.filesSelected.connect(self.deviceFileSelected)
|
||||
self.knnModelSelector.filesSelected.connect(self.knnModelFileSelected)
|
||||
self.siftDatabaseSelector.filesSelected.connect(self.siftDatabaseFileSelected)
|
||||
self.phashDatabaseSelector.filesSelected.connect(self.phashDatabaseFileSelected)
|
||||
|
||||
logger.info("Applying settings...")
|
||||
self.deviceFileSelector.connectSettings(DEVICES_JSON_FILE)
|
||||
self.knnModelSelector.connectSettings(KNN_MODEL_FILE)
|
||||
self.siftDatabaseSelector.connectSettings(SIFT_DATABASE_FILE)
|
||||
|
||||
self.tesseractFileSelector.connectSettings(TESSERACT_FILE)
|
||||
self.phashDatabaseSelector.connectSettings(PHASH_DATABASE_FILE)
|
||||
settings = Settings()
|
||||
logger.info("Applying default settings...")
|
||||
self.deviceFileSelector.selectFile(settings.devicesJsonFile())
|
||||
self.tesseractFileSelector.selectFile(settings.tesseractPath())
|
||||
self.deviceComboBox.selectDevice(settings.deviceUuid())
|
||||
self.knnModelSelector.selectFile(settings.knnModelFile())
|
||||
self.siftDatabaseSelector.selectFile(settings.siftDatabaseFile())
|
||||
|
||||
self.ocrQueueModel = OcrQueueModel(self)
|
||||
self.ocrQueue.setModel(self.ocrQueueModel)
|
||||
@ -88,18 +90,28 @@ class TabOcr_Device(Ui_TabOcr_Device, QWidget):
|
||||
if selectedFiles := self.knnModelSelector.selectedFiles():
|
||||
self.knnModel = cv2.ml.KNearest.load(selectedFiles[0])
|
||||
|
||||
def siftDatabaseFileSelected(self):
|
||||
if selectedFiles := self.siftDatabaseSelector.selectedFiles():
|
||||
self.siftDatabase = SIFTDatabase(selectedFiles[0])
|
||||
def phashDatabaseFileSelected(self):
|
||||
if selectedFiles := self.phashDatabaseSelector.selectedFiles():
|
||||
self.phashDatabase = ImagePHashDatabase(selectedFiles[0])
|
||||
|
||||
@Slot()
|
||||
def on_ocr_addImageButton_clicked(self):
|
||||
files, _filter = QFileDialog.getOpenFileNames(
|
||||
self, None, "", "Image Files (*.png *.jpg *.jpeg *.bmp *.webp);;*"
|
||||
)
|
||||
for file in files:
|
||||
filesNum = len(files)
|
||||
if filesNum >= 1000:
|
||||
updateFreq = 20
|
||||
elif filesNum >= 100:
|
||||
updateFreq = 10
|
||||
elif filesNum >= 30:
|
||||
updateFreq = 5
|
||||
else:
|
||||
updateFreq = 1
|
||||
for i, file in enumerate(files):
|
||||
self.ocrQueueModel.addItem(file)
|
||||
QApplication.processEvents()
|
||||
if i % updateFreq == 0:
|
||||
QApplication.processEvents()
|
||||
self.ocrQueue.resizeTableView()
|
||||
|
||||
@Slot()
|
||||
@ -111,14 +123,16 @@ class TabOcr_Device(Ui_TabOcr_Device, QWidget):
|
||||
runnable = TabDeviceV2AutoRoisOcrRunnable(
|
||||
imagePath,
|
||||
self.knnModel,
|
||||
self.siftDatabase,
|
||||
self.phashDatabase,
|
||||
sizesV2=self.deviceSizesV2CheckBox.isChecked(),
|
||||
)
|
||||
else:
|
||||
runnable = TabDeviceV2OcrRunnable(
|
||||
imagePath,
|
||||
self.deviceComboBox.currentData(),
|
||||
self.knnModel,
|
||||
self.siftDatabase,
|
||||
self.phashDatabase,
|
||||
sizesV2=self.deviceSizesV2CheckBox.isChecked(),
|
||||
)
|
||||
self.ocrQueueModel.setData(index, runnable, OcrQueueModel.OcrRunnableRole)
|
||||
self.ocrQueueModel.setData(
|
||||
|
@ -1,9 +1,13 @@
|
||||
from PySide6.QtWidgets import QWidget
|
||||
|
||||
from ui.designer.tabs.tabOcrEntry_ui import Ui_TabOcrEntry
|
||||
from ui.extends.shared.language import LanguageChangeEventFilter
|
||||
|
||||
|
||||
class TabOcrEntry(Ui_TabOcrEntry, QWidget):
|
||||
def __init__(self, parent=None):
|
||||
super().__init__(parent)
|
||||
self.setupUi(self)
|
||||
|
||||
self.languageChangeEventFilter = LanguageChangeEventFilter(self)
|
||||
self.installEventFilter(self.languageChangeEventFilter)
|
||||
|
@ -1,8 +1,10 @@
|
||||
from arcaea_offline.database import Database
|
||||
from PySide6.QtCore import QCoreApplication
|
||||
from PySide6.QtGui import QShowEvent
|
||||
from PySide6.QtWidgets import QWidget
|
||||
|
||||
from ui.designer.tabs.tabOverview_ui import Ui_TabOverview
|
||||
from ui.extends.shared.language import LanguageChangeEventFilter
|
||||
|
||||
|
||||
class TabOverview(Ui_TabOverview, QWidget):
|
||||
@ -10,9 +12,10 @@ class TabOverview(Ui_TabOverview, QWidget):
|
||||
super().__init__(parent)
|
||||
self.setupUi(self)
|
||||
|
||||
self.languageChangeEventFilter = LanguageChangeEventFilter(self)
|
||||
self.installEventFilter(self.languageChangeEventFilter)
|
||||
|
||||
self.db = Database()
|
||||
# self.db.register_update_hook(self.updateOverview)
|
||||
# self.updateOverview()
|
||||
|
||||
def showEvent(self, event: QShowEvent) -> None:
|
||||
self.updateOverview()
|
||||
@ -21,18 +24,19 @@ class TabOverview(Ui_TabOverview, QWidget):
|
||||
def updateOverview(self):
|
||||
b30 = self.db.get_b30() or 0.00
|
||||
self.b30Label.setText(str(f"{b30:.3f}"))
|
||||
self.retranslateUi(self)
|
||||
self.databaseDescribeLabel.setText(
|
||||
self.describeFormatString.format(
|
||||
self.db.count_packs(),
|
||||
self.db.count_songs(),
|
||||
self.db.count_difficulties(),
|
||||
self.db.count_chart_infos(),
|
||||
self.db.count_complete_chart_infos(),
|
||||
self.db.count_scores(),
|
||||
)
|
||||
)
|
||||
|
||||
def retranslateUi(self, *args):
|
||||
super().retranslateUi(self)
|
||||
db = Database()
|
||||
describeText = self.databaseDescribeLabel.text()
|
||||
describeText = describeText.format(
|
||||
db.count_packs(),
|
||||
db.count_songs(),
|
||||
db.count_difficulties(),
|
||||
db.count_chart_infos(),
|
||||
db.count_complete_chart_infos(),
|
||||
db.count_scores(),
|
||||
)
|
||||
self.databaseDescribeLabel.setText(describeText)
|
||||
# fmt: off
|
||||
self.describeFormatString = QCoreApplication.translate("TabOverview", "databaseDescribeLabel {} {} {} {} {} {}")
|
||||
# fmt: on
|
||||
|
@ -9,18 +9,10 @@ from arcaea_offline.external.andreal.api_data import (
|
||||
from arcaea_offline.models import Chart
|
||||
from PySide6.QtCore import QCoreApplication, QDir, QFileInfo, Qt, Slot
|
||||
from PySide6.QtGui import QGuiApplication, QImage, QPainter, QPaintEvent, QPixmap
|
||||
from PySide6.QtWidgets import (
|
||||
QButtonGroup,
|
||||
QDialog,
|
||||
QDialogButtonBox,
|
||||
QFileDialog,
|
||||
QLabel,
|
||||
QMessageBox,
|
||||
QVBoxLayout,
|
||||
QWidget,
|
||||
)
|
||||
from PySide6.QtWidgets import QButtonGroup, QFileDialog, QLabel, QMessageBox, QWidget
|
||||
|
||||
from ui.designer.tabs.tabTools.tabTools_Andreal_ui import Ui_TabTools_Andreal
|
||||
from ui.extends.shared.language import LanguageChangeEventFilter
|
||||
from ui.extends.shared.settings import ANDREAL_EXECUTABLE, ANDREAL_FOLDER
|
||||
from ui.extends.tabs.tabTools.tabTools_Andreal import AndrealHelper
|
||||
from ui.implements.components.chartSelector import ChartSelector
|
||||
@ -69,32 +61,14 @@ class ChartSelectorDialog(ChartSelector):
|
||||
self.setSongIdSelectorMode(SongIdSelectorMode.Chart)
|
||||
|
||||
|
||||
class ImageTypeWhatIsThisDialog(QDialog):
|
||||
def __init__(self, parent=None):
|
||||
super().__init__(parent)
|
||||
self.verticalLayout = QVBoxLayout(self)
|
||||
|
||||
self.label = QLabel(
|
||||
# fmt: off
|
||||
QCoreApplication.translate('TabTools_Andreal', 'imageWhatIsThisDialog.description')
|
||||
# fmt: on
|
||||
)
|
||||
|
||||
self.verticalLayout.addWidget(self.label)
|
||||
|
||||
self.buttonBox = QDialogButtonBox(Qt.Orientation.Horizontal)
|
||||
self.buttonBox.addButton(QDialogButtonBox.StandardButton.Ok)
|
||||
self.buttonBox.accepted.connect(self.close)
|
||||
self.buttonBox.rejected.connect(self.close)
|
||||
|
||||
self.verticalLayout.addWidget(self.buttonBox)
|
||||
|
||||
|
||||
class TabTools_Andreal(Ui_TabTools_Andreal, QWidget):
|
||||
def __init__(self, parent=None):
|
||||
super().__init__(parent)
|
||||
self.setupUi(self)
|
||||
|
||||
self.languageChangeEventFilter = LanguageChangeEventFilter(self)
|
||||
self.installEventFilter(self.languageChangeEventFilter)
|
||||
|
||||
self.db = Database()
|
||||
|
||||
self.andrealHelper = AndrealHelper(self)
|
||||
@ -125,10 +99,6 @@ class TabTools_Andreal(Ui_TabTools_Andreal, QWidget):
|
||||
self.andrealHelper.ready.connect(self.generateReady)
|
||||
self.andrealHelper.finished.connect(self.generateFinished)
|
||||
|
||||
self.imageTypeWhatIsThisButton.clicked.connect(
|
||||
lambda: ImageTypeWhatIsThisDialog(self).show()
|
||||
)
|
||||
|
||||
self.imageTypeButtonGroup = QButtonGroup(self)
|
||||
self.imageTypeButtonGroup.addButton(self.imageType_infoRadioButton, 0)
|
||||
self.imageTypeButtonGroup.addButton(self.imageType_bestRadioButton, 1)
|
||||
@ -159,6 +129,16 @@ class TabTools_Andreal(Ui_TabTools_Andreal, QWidget):
|
||||
f"{chart.title}({chart.song_id}), {chart.rating_class}"
|
||||
)
|
||||
|
||||
@Slot()
|
||||
def on_imageTypeWhatIsThisButton_clicked(self):
|
||||
QMessageBox.information(
|
||||
self,
|
||||
None,
|
||||
# fmt: off
|
||||
QCoreApplication.translate("TabTools_Andreal", "imageWhatIsThisDialog.description"),
|
||||
# fmt: on
|
||||
)
|
||||
|
||||
def imageFormat(self):
|
||||
buttonId = self.imageFormatButtonGroup.checkedId()
|
||||
return ["jpg", "png"][buttonId] if buttonId > -1 else None
|
||||
|
123
ui/implements/tabs/tabTools/tabTools_ChartRecommend.py
Normal file
123
ui/implements/tabs/tabTools/tabTools_ChartRecommend.py
Normal file
@ -0,0 +1,123 @@
|
||||
import logging
|
||||
import random
|
||||
|
||||
from arcaea_offline.calculate import calculate_constants_from_play_rating
|
||||
from arcaea_offline.database import Database
|
||||
from arcaea_offline.models import Chart, ScoreBest
|
||||
from arcaea_offline.utils.rating import rating_class_to_text
|
||||
from arcaea_offline.utils.score import score_to_grade_text
|
||||
from PySide6.QtCore import Slot
|
||||
from PySide6.QtWidgets import QLabel, QWidget
|
||||
|
||||
from ui.designer.tabs.tabTools.tabTools_ChartRecommend_ui import (
|
||||
Ui_TabTools_ChartRecommend,
|
||||
)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def chartToText(chart: Chart):
|
||||
return f"{chart.artist} - {chart.title}<br>({chart.song_id}) {rating_class_to_text(chart.rating_class)}"
|
||||
|
||||
|
||||
def scoreBestToText(score: ScoreBest):
|
||||
return f"{score_to_grade_text(score.score)} {score.score} > {score.potential:.4f}"
|
||||
|
||||
|
||||
class TabTools_ChartRecommend(Ui_TabTools_ChartRecommend, QWidget):
|
||||
def __init__(self, parent=None):
|
||||
super().__init__(parent)
|
||||
self.setupUi(self)
|
||||
|
||||
self.db = Database()
|
||||
|
||||
self.chartsByConstant = []
|
||||
self.chartsRecommendFromPlayRating = []
|
||||
|
||||
self.numLabelFormatString = "{} charts"
|
||||
|
||||
self.chartsRecommendFromPlayRating_playRatingSpinBox.valueChanged.connect(
|
||||
self.updateChartsRecommendFromPlayRating
|
||||
)
|
||||
self.chartsRecommendFromPlayRating_boundsSpinBox.valueChanged.connect(
|
||||
self.updateChartsRecommendFromPlayRating
|
||||
)
|
||||
|
||||
self.chartsByConstant_refreshButton.clicked.connect(self.fillChartsByConstant)
|
||||
self.chartsRecommendFromPlayRating_refreshButton.clicked.connect(
|
||||
self.fillChartsRecommendFromPlayRating
|
||||
)
|
||||
|
||||
@Slot(float)
|
||||
def on_rangeFromPlayRating_playRatingSpinBox_valueChanged(self, value: float):
|
||||
try:
|
||||
result = calculate_constants_from_play_rating(value)
|
||||
exPlusLower, exPlusUpper = result.EXPlus
|
||||
exLower, exUpper = result.EX
|
||||
aaLower, aaUpper = result.AA
|
||||
|
||||
self.rangeFromPlayRating_ExPlusLabel.setText(
|
||||
f"{exPlusLower:.3f}~{exPlusUpper:.3f}"
|
||||
)
|
||||
self.rangeFromPlayRating_ExLabel.setText(f"{exLower:.3f}~{exUpper:.3f}")
|
||||
self.rangeFromPlayRating_AaLabel.setText(f"{aaLower:.3f}~{aaUpper:.3f}")
|
||||
except Exception:
|
||||
logging.exception("cannot calculate constant from play rating")
|
||||
self.rangeFromPlayRating_ExPlusLabel.setText("...")
|
||||
self.rangeFromPlayRating_ExLabel.setText("...")
|
||||
self.rangeFromPlayRating_AaLabel.setText("...")
|
||||
|
||||
def fillChartsByConstant(self):
|
||||
while item := self.chartsByConstant_gridLayout.takeAt(0):
|
||||
item.widget().deleteLater()
|
||||
|
||||
charts = random.sample(
|
||||
self.chartsByConstant, k=min(len(self.chartsByConstant), 6)
|
||||
)
|
||||
row = 0
|
||||
for i, chart in enumerate(charts):
|
||||
if i % 3 == 0:
|
||||
row += 1
|
||||
label = QLabel(self)
|
||||
label.setText(chartToText(chart))
|
||||
self.chartsByConstant_gridLayout.addWidget(label, row, i % 3)
|
||||
|
||||
@Slot(float)
|
||||
def on_chartsByConstant_constantSpinBox_valueChanged(self, value: float):
|
||||
self.chartsByConstant = self.db.get_charts_by_constant(int(value * 10))
|
||||
chartsNum = len(self.chartsByConstant)
|
||||
self.chartsByConstant_refreshButton.setEnabled(chartsNum > 6)
|
||||
self.chartsByConstant_numLabel.setText(
|
||||
self.numLabelFormatString.format(chartsNum)
|
||||
)
|
||||
self.fillChartsByConstant()
|
||||
|
||||
def fillChartsRecommendFromPlayRating(self):
|
||||
while item := self.chartsRecommendFromPlayRating_gridLayout.takeAt(0):
|
||||
item.widget().deleteLater()
|
||||
|
||||
charts = random.sample(
|
||||
self.chartsRecommendFromPlayRating,
|
||||
k=min(len(self.chartsRecommendFromPlayRating), 6),
|
||||
)
|
||||
row = 0
|
||||
for i, chart in enumerate(charts):
|
||||
if i % 3 == 0:
|
||||
row += 1
|
||||
scoreBest = self.db.get_score_best(chart.song_id, chart.rating_class)
|
||||
label = QLabel(self)
|
||||
label.setText(f"{chartToText(chart)}<br>-<br>{scoreBestToText(scoreBest)}")
|
||||
self.chartsRecommendFromPlayRating_gridLayout.addWidget(label, row, i % 3)
|
||||
|
||||
def updateChartsRecommendFromPlayRating(self):
|
||||
playRating = self.chartsRecommendFromPlayRating_playRatingSpinBox.value()
|
||||
bounds = self.chartsRecommendFromPlayRating_boundsSpinBox.value()
|
||||
self.chartsRecommendFromPlayRating = self.db.recommend_charts(
|
||||
playRating, bounds
|
||||
)
|
||||
chartsNum = len(self.chartsRecommendFromPlayRating)
|
||||
self.chartsRecommendFromPlayRating_refreshButton.setEnabled(chartsNum > 6)
|
||||
self.chartsRecommendFromPlayRating_numLabel.setText(
|
||||
self.numLabelFormatString.format(chartsNum)
|
||||
)
|
||||
self.fillChartsRecommendFromPlayRating()
|
@ -1,10 +1,12 @@
|
||||
import re
|
||||
|
||||
from arcaea_offline.calculate import calculate_play_rating
|
||||
from arcaea_offline.database import Database
|
||||
from PySide6.QtCore import QDateTime
|
||||
from PySide6.QtWidgets import QVBoxLayout, QWidget
|
||||
|
||||
from ui.designer.tabs.tabTools.tabTools_InfoLookup_ui import Ui_TabTools_InfoLookup
|
||||
from ui.extends.shared.language import LanguageChangeEventFilter
|
||||
|
||||
|
||||
class TabTools_InfoLookup(Ui_TabTools_InfoLookup, QWidget):
|
||||
@ -12,6 +14,9 @@ class TabTools_InfoLookup(Ui_TabTools_InfoLookup, QWidget):
|
||||
super().__init__(parent)
|
||||
self.setupUi(self)
|
||||
|
||||
self.languageChangeEventFilter = LanguageChangeEventFilter(self)
|
||||
self.installEventFilter(self.languageChangeEventFilter)
|
||||
|
||||
self.ratingClassSelector.setLayout(QVBoxLayout)
|
||||
|
||||
self.db = Database()
|
||||
@ -22,6 +27,16 @@ class TabTools_InfoLookup(Ui_TabTools_InfoLookup, QWidget):
|
||||
self.ratingClassSelector.valueChanged.connect(self.updateDifficultyLabels)
|
||||
self.ratingClassSelector.valueChanged.connect(self.updateChartInfoLabels)
|
||||
|
||||
self.songIdSelector.valueChanged.connect(
|
||||
self.updatePlayRatingCalculateResultLabel
|
||||
)
|
||||
self.ratingClassSelector.valueChanged.connect(
|
||||
self.updatePlayRatingCalculateResultLabel
|
||||
)
|
||||
self.playRatingCalculateScoreLineEdit.textChanged.connect(
|
||||
self.updatePlayRatingCalculateResultLabel
|
||||
)
|
||||
|
||||
self.langSelectComboBox.addItem("En - English [en]", "en")
|
||||
self.langSelectComboBox.addItem("あ - Japanese [ja]", "ja")
|
||||
self.langSelectComboBox.addItem("한 - Korean [ko]", "ko")
|
||||
@ -189,7 +204,38 @@ class TabTools_InfoLookup(Ui_TabTools_InfoLookup, QWidget):
|
||||
|
||||
chartInfo = self.db.get_chart_info(songId, ratingClass)
|
||||
|
||||
if not chartInfo:
|
||||
self.resetChartInfoLabels()
|
||||
return
|
||||
|
||||
self.chartConstantLabel.setText(str(chartInfo.constant / 10))
|
||||
self.chartNotesLabel.setText(
|
||||
str(chartInfo.notes) if chartInfo.notes is not None else "-"
|
||||
)
|
||||
|
||||
def resetPlayRatingCalculateResultLabel(self):
|
||||
self.playRatingCalculateResultLabel.setText("...")
|
||||
|
||||
def updatePlayRatingCalculateResultLabel(self):
|
||||
songId = self.songIdSelector.songId()
|
||||
ratingClass = self.ratingClassSelector.value()
|
||||
|
||||
if not songId or ratingClass is None:
|
||||
self.resetPlayRatingCalculateResultLabel()
|
||||
return
|
||||
|
||||
chartInfo = self.db.get_chart_info(songId, ratingClass)
|
||||
|
||||
if not chartInfo or not chartInfo.constant:
|
||||
self.resetPlayRatingCalculateResultLabel()
|
||||
return
|
||||
|
||||
if scoreText := self.playRatingCalculateScoreLineEdit.text().replace("'", ""):
|
||||
score = int(scoreText)
|
||||
|
||||
self.playRatingCalculateResultLabel.setText(
|
||||
f"{calculate_play_rating(chartInfo.constant, score):.3f}"
|
||||
)
|
||||
else:
|
||||
self.resetPlayRatingCalculateResultLabel()
|
||||
return
|
||||
|
@ -29,6 +29,7 @@ from PySide6.QtWidgets import (
|
||||
from ui.designer.tabs.tabTools.tabTools_StepCalculator_ui import (
|
||||
Ui_TabTools_StepCalculator,
|
||||
)
|
||||
from ui.extends.shared.language import LanguageChangeEventFilter
|
||||
from ui.implements.components.chartAndScoreInput import ChartAndScoreInput
|
||||
from ui.implements.components.songIdSelector import SongIdSelectorMode
|
||||
|
||||
@ -90,6 +91,9 @@ class TabTools_StepCalculator(Ui_TabTools_StepCalculator, QWidget):
|
||||
super().__init__(parent)
|
||||
self.setupUi(self)
|
||||
|
||||
self.languageChangeEventFilter = LanguageChangeEventFilter(self)
|
||||
self.installEventFilter(self.languageChangeEventFilter)
|
||||
|
||||
self.calculate_toStep_calculatePlayResultFromScoreButton.clicked.connect(
|
||||
self.openChartAndScoreInputDialog
|
||||
)
|
||||
@ -210,7 +214,7 @@ class TabTools_StepCalculator(Ui_TabTools_StepCalculator, QWidget):
|
||||
if score := dialog.score():
|
||||
chart = dialog.chart()
|
||||
self.calculate_toStep_playResultSpinBox.setValue(
|
||||
float(calculate_play_rating(chart.constant / 10, score.score))
|
||||
float(calculate_play_rating(chart.constant, score.score))
|
||||
)
|
||||
dialog.close()
|
||||
dialog.deleteLater()
|
||||
|
@ -1,9 +1,13 @@
|
||||
from PySide6.QtWidgets import QWidget
|
||||
|
||||
from ui.designer.tabs.tabToolsEntry_ui import Ui_TabToolsEntry
|
||||
from ui.extends.shared.language import LanguageChangeEventFilter
|
||||
|
||||
|
||||
class TabToolsEntry(Ui_TabToolsEntry, QWidget):
|
||||
def __init__(self, parent=None):
|
||||
super().__init__(parent)
|
||||
self.setupUi(self)
|
||||
|
||||
self.languageChangeEventFilter = LanguageChangeEventFilter(self)
|
||||
self.installEventFilter(self.languageChangeEventFilter)
|
||||
|
674
ui/resources/LICENSE
Normal file
674
ui/resources/LICENSE
Normal file
@ -0,0 +1,674 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://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 <https://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
|
||||
<https://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
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
Binary file not shown.
Before Width: | Height: | Size: 162 KiB |
Binary file not shown.
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 89 KiB |
Binary file not shown.
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 91 KiB |
@ -89,12 +89,12 @@
|
||||
<translation>Continue</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../startup/databaseChecker.py" line="117"/>
|
||||
<location filename="../../startup/databaseChecker.py" line="115"/>
|
||||
<source>dialog.tryInitExistingDatabase</source>
|
||||
<translation>The existing database doesn't seem to be initialized properly, try initialize again?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../startup/databaseChecker.py" line="133"/>
|
||||
<location filename="../../startup/databaseChecker.py" line="131"/>
|
||||
<source>dialog.confirmNewDatabase</source>
|
||||
<translation>Database file does not exist. Create now?</translation>
|
||||
</message>
|
||||
@ -283,22 +283,22 @@ validation</translation>
|
||||
<context>
|
||||
<name>OcrTableModel</name>
|
||||
<message>
|
||||
<location filename="../../extends/components/ocrQueue.py" line="341"/>
|
||||
<location filename="../../extends/components/ocrQueue.py" line="347"/>
|
||||
<source>horizontalHeader.title.select</source>
|
||||
<translation>Select</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../extends/components/ocrQueue.py" line="342"/>
|
||||
<location filename="../../extends/components/ocrQueue.py" line="348"/>
|
||||
<source>horizontalHeader.title.imagePreview</source>
|
||||
<translation>Image Preview</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../extends/components/ocrQueue.py" line="343"/>
|
||||
<location filename="../../extends/components/ocrQueue.py" line="349"/>
|
||||
<source>horizontalHeader.title.chart</source>
|
||||
<translation>Chart</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../extends/components/ocrQueue.py" line="344"/>
|
||||
<location filename="../../extends/components/ocrQueue.py" line="350"/>
|
||||
<source>horizontalHeader.title.score</source>
|
||||
<translation>Score</translation>
|
||||
</message>
|
||||
@ -314,54 +314,54 @@ validation</translation>
|
||||
<context>
|
||||
<name>ScoreEditor</name>
|
||||
<message>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="109"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="119"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="189"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="199"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="239"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="272"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="279"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="302"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="139"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="178"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="225"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="258"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="285"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="292"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="318"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="328"/>
|
||||
<source>setNone</source>
|
||||
<translation>None</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="169"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="102"/>
|
||||
<source>formLabel.date</source>
|
||||
<translation>Time</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="338"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="268"/>
|
||||
<source>formLabel.comment</source>
|
||||
<translation>Comment</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="358"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="119"/>
|
||||
<source>formLabel.preview</source>
|
||||
<translation>Preview</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="99"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="20"/>
|
||||
<source>formLabel.score</source>
|
||||
<translation>Score</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="162"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="278"/>
|
||||
<source>idAutoInsert</source>
|
||||
<translation>(Auto insert)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="309"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="112"/>
|
||||
<source>warnIfIncomplete</source>
|
||||
<translation>Warn if incomplete</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="63"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="218"/>
|
||||
<source>commitButton</source>
|
||||
<translation>Commit</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="320"/>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="327"/>
|
||||
<source>validate.ok</source>
|
||||
<translation>OK</translation>
|
||||
</message>
|
||||
@ -406,57 +406,57 @@ validation</translation>
|
||||
<translation>Cannot verify an incomplete score. Commit anyway?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="205"/>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="212"/>
|
||||
<source>confirmDialog.chartNotSet.title</source>
|
||||
<translation>Chart not set</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="206"/>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="213"/>
|
||||
<source>confirmDialog.chartNotSet.text</source>
|
||||
<translation>Chart not set, cannot commit.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="214"/>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="221"/>
|
||||
<source>confirmDialog.scoreIncomplete.title</source>
|
||||
<translation>Score incomplete</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="215"/>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="222"/>
|
||||
<source>confirmDialog.scoreIncomplete.text</source>
|
||||
<translation>Necessary score field missing, cannot commit.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="324"/>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="331"/>
|
||||
<source>validate.chartNotSet</source>
|
||||
<translation>Chart not set</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="328"/>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="335"/>
|
||||
<source>validate.chartIncomple</source>
|
||||
<translation>No chart data, cannot verify</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="332"/>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="339"/>
|
||||
<source>validate.scoreMismatch</source>
|
||||
<translation>Possible invalid score</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="336"/>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="343"/>
|
||||
<source>validate.scoreEmpty</source>
|
||||
<translation>Empty score</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="340"/>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="347"/>
|
||||
<source>validate.scoreIncomplete</source>
|
||||
<translation>Missing necessary score field</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="346"/>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="353"/>
|
||||
<source>validate.scoreIncompleteForValidate</source>
|
||||
<translation>Score incomplete, cannot verify</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="351"/>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="358"/>
|
||||
<source>validate.unknownState</source>
|
||||
<translation>Unknown</translation>
|
||||
</message>
|
||||
@ -477,10 +477,12 @@ validation</translation>
|
||||
<location filename="../../implements/settings/settingsAndreal.py" line="82"/>
|
||||
<location filename="../../implements/settings/settingsAndreal.py" line="85"/>
|
||||
<location filename="../../implements/settings/settingsGeneral.py" line="107"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="137"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="140"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="143"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="146"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="190"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="193"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="196"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="199"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="202"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="205"/>
|
||||
<source>resetButton</source>
|
||||
<translation>Reset</translation>
|
||||
</message>
|
||||
@ -515,30 +517,40 @@ validation</translation>
|
||||
<translation>Database URL</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="134"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="187"/>
|
||||
<source>ocr.title</source>
|
||||
<translation>OCR</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="136"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="189"/>
|
||||
<source>ocr.devicesJson.label</source>
|
||||
<translation>Default devices.json</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="139"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="192"/>
|
||||
<source>ocr.deviceUuid.label</source>
|
||||
<translation>Default device</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="142"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="195"/>
|
||||
<source>ocr.knnModelFile.label</source>
|
||||
<translation>Default KNearest model</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="145"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="198"/>
|
||||
<source>ocr.b30KnnModelFile.label</source>
|
||||
<translation>Default B30 KNearest model</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="201"/>
|
||||
<source>ocr.siftDatabaseFile.label</source>
|
||||
<translation>Default SIFT database file</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="204"/>
|
||||
<source>ocr.phashDatabaseFile.label</source>
|
||||
<translation>Default image PHash database</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SongIdSelector</name>
|
||||
@ -570,7 +582,7 @@ validation</translation>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabAbout.ui" line="86"/>
|
||||
<source>Version Info</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Version Info</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
@ -581,12 +593,12 @@ validation</translation>
|
||||
<translation>Manage</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/tabs/tabDbEntry.py" line="16"/>
|
||||
<location filename="../../implements/tabs/tabDbEntry.py" line="20"/>
|
||||
<source>tab.scoreTableViewer</source>
|
||||
<translation>Table [Score]</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/tabs/tabDbEntry.py" line="20"/>
|
||||
<location filename="../../implements/tabs/tabDbEntry.py" line="24"/>
|
||||
<source>tab.b30TableViewer</source>
|
||||
<translation>Table [B30]</translation>
|
||||
</message>
|
||||
@ -704,8 +716,8 @@ validation</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabOcr/tabOcr_B30.ui" line="62"/>
|
||||
<source>siftDatabaseSelector.title</source>
|
||||
<translation>Select Image SIFT Database</translation>
|
||||
<source>phashDatabaseSelector.title</source>
|
||||
<translation>Select Image PHash Database</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabOcr/tabOcr_B30.ui" line="74"/>
|
||||
@ -726,33 +738,32 @@ validation</translation>
|
||||
<translation>Select Device</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabOcr/tabOcr_Device.ui" line="33"/>
|
||||
<location filename="../../designer/tabs/tabOcr/tabOcr_Device.ui" line="35"/>
|
||||
<source>deviceSelector.useAutoFactor</source>
|
||||
<translation>Auto calculate factor</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabOcr/tabOcr_Device.ui" line="70"/>
|
||||
<location filename="../../designer/tabs/tabOcr/tabOcr_Device.ui" line="81"/>
|
||||
<source>knnModelSelector.title</source>
|
||||
<translation>Select KNearest Model</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabOcr/tabOcr_Device.ui" line="101"/>
|
||||
<location filename="../../designer/tabs/tabOcr/tabOcr_Device.ui" line="112"/>
|
||||
<source>tesseractSelector.title</source>
|
||||
<translation>Select tesseract Path</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabOcr/tabOcr_Device.ui" line="129"/>
|
||||
<source>siftDatabaseSelector.title</source>
|
||||
<translation>Select Image SIFT Database</translation>
|
||||
<location filename="../../designer/tabs/tabOcr/tabOcr_Device.ui" line="140"/>
|
||||
<source>phashDatabaseSelector.title</source>
|
||||
<translation>Select Image PHash Database</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TabOverview</name>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabOverview.ui" line="23"/>
|
||||
<location filename="../../implements/tabs/tabOverview.py" line="43"/>
|
||||
<source>databaseDescribeLabel {} {} {} {} {} {}</source>
|
||||
<extracomment>This database now have {} packs, {} songs, {} difficulties, {} chart info ({} complete) and {} scores.</extracomment>
|
||||
<translation>This database now have {} packs, {} songs, {} difficulties, {} chart info ({} complete) and {} scores.</translation>
|
||||
<translation>There are {} packs, {} songs, {} difficulties, {} chart info ({} complete) and {} scores in database.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
@ -769,6 +780,11 @@ validation</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabToolsEntry.ui" line="34"/>
|
||||
<source>tab.chartRecommend</source>
|
||||
<translation>Chart Recommend</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabToolsEntry.ui" line="39"/>
|
||||
<source>tab.andreal</source>
|
||||
<translation>Andreal Image Generator</translation>
|
||||
</message>
|
||||
@ -836,11 +852,35 @@ validation</translation>
|
||||
<translation>Generate</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/tabs/tabTools/tabTools_Andreal.py" line="81"/>
|
||||
<location filename="../../implements/tabs/tabTools/tabTools_Andreal.py" line="138"/>
|
||||
<source>imageWhatIsThisDialog.description</source>
|
||||
<translation>Generate image of...<ul><li>/a - the most recent score</li><li>/a b30 - best30 image</li><li>/a info - best score of the selected chart</li></ul></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TabTools_ChartRecommend</name>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabTools/tabTools_ChartRecommend.ui" line="20"/>
|
||||
<source>constantRangeFromPlayRating</source>
|
||||
<translation>Chart Constant Range from Play Rating</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabTools/tabTools_ChartRecommend.ui" line="118"/>
|
||||
<source>chartsByConstant</source>
|
||||
<translation>Charts by Constant</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabTools/tabTools_ChartRecommend.ui" line="174"/>
|
||||
<location filename="../../designer/tabs/tabTools/tabTools_ChartRecommend.ui" line="273"/>
|
||||
<source>refreshButton</source>
|
||||
<translation>Roll</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabTools/tabTools_ChartRecommend.ui" line="197"/>
|
||||
<source>chartsRecommendFromPlayRating</source>
|
||||
<translation>Chart from Play Rating Based on Best Score</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TabTools_InfoLookup</name>
|
||||
<message>
|
||||
@ -1008,6 +1048,11 @@ validation</translation>
|
||||
<source>difficulty.title</source>
|
||||
<translation>Title</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabTools/tabTools_InfoLookup.ui" line="695"/>
|
||||
<source>playRatingCalculate</source>
|
||||
<translation>Calculate Play Rating</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TabTools_StepCalculator</name>
|
||||
|
@ -89,12 +89,12 @@
|
||||
<translation>继续</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../startup/databaseChecker.py" line="117"/>
|
||||
<location filename="../../startup/databaseChecker.py" line="115"/>
|
||||
<source>dialog.tryInitExistingDatabase</source>
|
||||
<translation>现有的数据库似乎没有正确初始化,是否尝试再次初始化?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../startup/databaseChecker.py" line="133"/>
|
||||
<location filename="../../startup/databaseChecker.py" line="131"/>
|
||||
<source>dialog.confirmNewDatabase</source>
|
||||
<translation>数据库文件不存在,是否创建?</translation>
|
||||
</message>
|
||||
@ -282,22 +282,22 @@
|
||||
<context>
|
||||
<name>OcrTableModel</name>
|
||||
<message>
|
||||
<location filename="../../extends/components/ocrQueue.py" line="341"/>
|
||||
<location filename="../../extends/components/ocrQueue.py" line="347"/>
|
||||
<source>horizontalHeader.title.select</source>
|
||||
<translation>选择</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../extends/components/ocrQueue.py" line="342"/>
|
||||
<location filename="../../extends/components/ocrQueue.py" line="348"/>
|
||||
<source>horizontalHeader.title.imagePreview</source>
|
||||
<translation>图像预览</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../extends/components/ocrQueue.py" line="343"/>
|
||||
<location filename="../../extends/components/ocrQueue.py" line="349"/>
|
||||
<source>horizontalHeader.title.chart</source>
|
||||
<translation>谱面</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../extends/components/ocrQueue.py" line="344"/>
|
||||
<location filename="../../extends/components/ocrQueue.py" line="350"/>
|
||||
<source>horizontalHeader.title.score</source>
|
||||
<translation>分数</translation>
|
||||
</message>
|
||||
@ -313,54 +313,54 @@
|
||||
<context>
|
||||
<name>ScoreEditor</name>
|
||||
<message>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="109"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="119"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="189"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="199"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="239"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="272"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="279"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="302"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="139"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="178"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="225"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="258"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="285"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="292"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="318"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="328"/>
|
||||
<source>setNone</source>
|
||||
<translation>置空</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="169"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="102"/>
|
||||
<source>formLabel.date</source>
|
||||
<translation>时间</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="338"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="268"/>
|
||||
<source>formLabel.comment</source>
|
||||
<translation>注释</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="358"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="119"/>
|
||||
<source>formLabel.preview</source>
|
||||
<translation>预览</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="99"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="20"/>
|
||||
<source>formLabel.score</source>
|
||||
<translation>分数</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="162"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="278"/>
|
||||
<source>idAutoInsert</source>
|
||||
<translation>(自动插入)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="309"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="112"/>
|
||||
<source>warnIfIncomplete</source>
|
||||
<translation>不完整时要求确认</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="63"/>
|
||||
<location filename="../../designer/components/scoreEditor.ui" line="218"/>
|
||||
<source>commitButton</source>
|
||||
<translation>提交</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="320"/>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="327"/>
|
||||
<source>validate.ok</source>
|
||||
<translation>OK</translation>
|
||||
</message>
|
||||
@ -405,57 +405,57 @@
|
||||
<translation>无法验证不完整的分数。继续提交吗?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="205"/>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="212"/>
|
||||
<source>confirmDialog.chartNotSet.title</source>
|
||||
<translation>未指定谱面</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="206"/>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="213"/>
|
||||
<source>confirmDialog.chartNotSet.text</source>
|
||||
<translation>未指定谱面,无法提交。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="214"/>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="221"/>
|
||||
<source>confirmDialog.scoreIncomplete.title</source>
|
||||
<translation>分数不完整</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="215"/>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="222"/>
|
||||
<source>confirmDialog.scoreIncomplete.text</source>
|
||||
<translation>缺失必要的分数数据,无法提交。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="324"/>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="331"/>
|
||||
<source>validate.chartNotSet</source>
|
||||
<translation>未指定谱面</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="328"/>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="335"/>
|
||||
<source>validate.chartIncomple</source>
|
||||
<translation>谱面数据缺失,无法验证分数</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="332"/>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="339"/>
|
||||
<source>validate.scoreMismatch</source>
|
||||
<translation>分数可能有误</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="336"/>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="343"/>
|
||||
<source>validate.scoreEmpty</source>
|
||||
<translation>分数为空</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="340"/>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="347"/>
|
||||
<source>validate.scoreIncomplete</source>
|
||||
<translation>缺失必要分数数据</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="346"/>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="353"/>
|
||||
<source>validate.scoreIncompleteForValidate</source>
|
||||
<translation>分数不完整,无法验证</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="351"/>
|
||||
<location filename="../../implements/components/scoreEditor.py" line="358"/>
|
||||
<source>validate.unknownState</source>
|
||||
<translation>未知</translation>
|
||||
</message>
|
||||
@ -476,10 +476,12 @@
|
||||
<location filename="../../implements/settings/settingsAndreal.py" line="82"/>
|
||||
<location filename="../../implements/settings/settingsAndreal.py" line="85"/>
|
||||
<location filename="../../implements/settings/settingsGeneral.py" line="107"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="137"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="140"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="143"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="146"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="190"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="193"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="196"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="199"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="202"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="205"/>
|
||||
<source>resetButton</source>
|
||||
<translation>重置</translation>
|
||||
</message>
|
||||
@ -514,30 +516,40 @@
|
||||
<translation>数据库 URL</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="134"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="187"/>
|
||||
<source>ocr.title</source>
|
||||
<translation>OCR</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="136"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="189"/>
|
||||
<source>ocr.devicesJson.label</source>
|
||||
<translation>默认设备定义文件</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="139"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="192"/>
|
||||
<source>ocr.deviceUuid.label</source>
|
||||
<translation>默认设备</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="142"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="195"/>
|
||||
<source>ocr.knnModelFile.label</source>
|
||||
<translation>默认 KNearest 模型</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="145"/>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="198"/>
|
||||
<source>ocr.b30KnnModelFile.label</source>
|
||||
<translation>默认 B30 KNearest 模型</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="201"/>
|
||||
<source>ocr.siftDatabaseFile.label</source>
|
||||
<translation>默认 SIFT 特征值数据库</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/settings/settingsOcr.py" line="204"/>
|
||||
<source>ocr.phashDatabaseFile.label</source>
|
||||
<translation>默认图像 PHash 数据库</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SongIdSelector</name>
|
||||
@ -569,7 +581,7 @@
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabAbout.ui" line="86"/>
|
||||
<source>Version Info</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>版本信息</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
@ -580,12 +592,12 @@
|
||||
<translation>管理</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/tabs/tabDbEntry.py" line="16"/>
|
||||
<location filename="../../implements/tabs/tabDbEntry.py" line="20"/>
|
||||
<source>tab.scoreTableViewer</source>
|
||||
<translation>表 [分数]</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/tabs/tabDbEntry.py" line="20"/>
|
||||
<location filename="../../implements/tabs/tabDbEntry.py" line="24"/>
|
||||
<source>tab.b30TableViewer</source>
|
||||
<translation>表 [B30]</translation>
|
||||
</message>
|
||||
@ -703,8 +715,8 @@
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabOcr/tabOcr_B30.ui" line="62"/>
|
||||
<source>siftDatabaseSelector.title</source>
|
||||
<translation>选择图像 SIFT 特征值数据库</translation>
|
||||
<source>phashDatabaseSelector.title</source>
|
||||
<translation>选择图像 PHash 数据库</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabOcr/tabOcr_B30.ui" line="74"/>
|
||||
@ -725,32 +737,31 @@
|
||||
<translation>选择设备</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabOcr/tabOcr_Device.ui" line="33"/>
|
||||
<location filename="../../designer/tabs/tabOcr/tabOcr_Device.ui" line="35"/>
|
||||
<source>deviceSelector.useAutoFactor</source>
|
||||
<translation>自动计算 factor</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabOcr/tabOcr_Device.ui" line="70"/>
|
||||
<location filename="../../designer/tabs/tabOcr/tabOcr_Device.ui" line="81"/>
|
||||
<source>knnModelSelector.title</source>
|
||||
<translation>选择 KNearest 模型</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabOcr/tabOcr_Device.ui" line="101"/>
|
||||
<location filename="../../designer/tabs/tabOcr/tabOcr_Device.ui" line="112"/>
|
||||
<source>tesseractSelector.title</source>
|
||||
<translation>选择 tesseract 路径</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabOcr/tabOcr_Device.ui" line="129"/>
|
||||
<source>siftDatabaseSelector.title</source>
|
||||
<translation>选择图像 SIFT 特征值数据库</translation>
|
||||
<location filename="../../designer/tabs/tabOcr/tabOcr_Device.ui" line="140"/>
|
||||
<source>phashDatabaseSelector.title</source>
|
||||
<translation>选择图像 PHash 数据库</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TabOverview</name>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabOverview.ui" line="23"/>
|
||||
<location filename="../../implements/tabs/tabOverview.py" line="43"/>
|
||||
<source>databaseDescribeLabel {} {} {} {} {} {}</source>
|
||||
<extracomment>This database now have {} packs, {} songs, {} difficulties, {} chart info ({} complete) and {} scores.</extracomment>
|
||||
<translation>数据库中有 {} 个曲包,{} 首歌曲,{} 个难度,{} 个谱面信息({} 个完整),{} 个分数记录。</translation>
|
||||
</message>
|
||||
</context>
|
||||
@ -768,6 +779,11 @@
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabToolsEntry.ui" line="34"/>
|
||||
<source>tab.chartRecommend</source>
|
||||
<translation>谱面推荐</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabToolsEntry.ui" line="39"/>
|
||||
<source>tab.andreal</source>
|
||||
<translation>Andreal 图片生成</translation>
|
||||
</message>
|
||||
@ -835,11 +851,35 @@
|
||||
<translation>生成</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../implements/tabs/tabTools/tabTools_Andreal.py" line="81"/>
|
||||
<location filename="../../implements/tabs/tabTools/tabTools_Andreal.py" line="138"/>
|
||||
<source>imageWhatIsThisDialog.description</source>
|
||||
<translation>生成……<ul><li>/a - 最近一次成绩</li><li>/a b30 - /a b30</li><li>/a info - 所选谱面的最好成绩</li></ul></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TabTools_ChartRecommend</name>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabTools/tabTools_ChartRecommend.ui" line="20"/>
|
||||
<source>constantRangeFromPlayRating</source>
|
||||
<translation>由单曲 PTT 逆算谱面定数范围</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabTools/tabTools_ChartRecommend.ui" line="118"/>
|
||||
<source>chartsByConstant</source>
|
||||
<translation>按定数查谱</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabTools/tabTools_ChartRecommend.ui" line="174"/>
|
||||
<location filename="../../designer/tabs/tabTools/tabTools_ChartRecommend.ui" line="273"/>
|
||||
<source>refreshButton</source>
|
||||
<translation>换一批</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabTools/tabTools_ChartRecommend.ui" line="197"/>
|
||||
<source>chartsRecommendFromPlayRating</source>
|
||||
<translation>由单曲 PTT 结合最好成绩推荐谱面</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TabTools_InfoLookup</name>
|
||||
<message>
|
||||
@ -1007,6 +1047,11 @@
|
||||
<source>difficulty.title</source>
|
||||
<translation>标题</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../designer/tabs/tabTools/tabTools_InfoLookup.ui" line="695"/>
|
||||
<source>playRatingCalculate</source>
|
||||
<translation>计算单曲 PTT</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TabTools_StepCalculator</name>
|
||||
|
@ -2,6 +2,7 @@
|
||||
<RCC version="1.0">
|
||||
<qresource prefix="/">
|
||||
<file>VERSION</file>
|
||||
<file>LICENSE</file>
|
||||
|
||||
<file>images/icon.png</file>
|
||||
<file>images/logo.png</file>
|
||||
|
Reference in New Issue
Block a user